blockchain-a-z-learn-how-to.../Module 3 - Create a Smart C.../etherwallet-v3.11.2.4/js/etherwallet-master.js

109313 lines
6.1 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports=[]
},{}],2:[function(require,module,exports){
module.exports=[
{
"name": "Select a contract...",
"address": "",
"abi": ''
},{
"name": "SmartBillions - Smart",
"address": "0x6F6DEb5db0C4994A8283A01D6CFeEB27Fc3bBe9C",
"abi": '[{"constant":false,"inputs":[],"name":"investDirect","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_partner","type":"address"}],"name":"invest","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"play","outputs":[{"name":"","type":"uint256"}],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_partner","type":"address"}],"name":"playRandom","outputs":[{"name":"","type":"uint256"}],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"uint256"},{"name":"_partner","type":"address"}],"name":"playSystem","outputs":[{"name":"","type":"uint256"}],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"won","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"payable":true,"type":"fallback"}]'
},{
"name": "DAO Classic Withdraw",
"address": "0x180826b05452ce96e157f0708c43381fee64a6b8",
"abi": '[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"seal","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"totalAccounts","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"fill","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"sealed","outputs":[{"name":"","type":"bool"}],"type":"function"},{"inputs":[],"type":"constructor"}]'
},{
"name": "BitEther",
"address": "0x085fb4f24031eaedbc2b611aa528f22343eb52db",
"abi": '[{"constant":false,"inputs":[],"name":"getEra","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_eraBlock","type":"uint256"},{"name":"_blockMined","type":"uint256"},{"name":"_blockNumber","type":"uint256"},{"name":"_rewardPrev","type":"uint256"},{"name":"_reward","type":"uint256"}],"name":"getUnclaimed","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_block","type":"uint256"}],"name":"getEraForBlock","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_miner","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_current","type":"bool"}],"name":"Reward","type":"event"}]'
},{
"name": "Saint Hodl Contracts",
"address": "0x1010101010101010101010101010101010101010",
"abi": '[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lockers","outputs":[{"name":"freedom","type":"uint256"},{"name":"bal","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freezeBlocks","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"locker","type":"address"},{"indexed":true,"name":"amount","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"locker","type":"address"},{"indexed":true,"name":"amount","type":"uint256"}],"name":"Released","type":"event"}]'
},{
"name": "Mist's Multisig Contract",
"address": "0x0000000000000000000000000000000000000000",
"abi": '[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"removeOwner","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_numOwners","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_lastDay","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"resetSpentToday","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_spentToday","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"addOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_required","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_h","type":"bytes32"}],"name":"confirm","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_newLimit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"_r","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"_operation","type":"bytes32"}],"name":"revoke","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_newRequired","type":"uint256"}],"name":"changeRequirement","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_operation","type":"bytes32"},{"name":"_owner","type":"address"}],"name":"hasConfirmed","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"kill","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"changeOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_dailyLimit","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"},{"name":"_daylimit","type":"uint256"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"}],"name":"OwnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequirement","type":"uint256"}],"name":"RequirementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"SingleTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MultiTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"initiator","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"ConfirmationNeeded","type":"event"}]'
},{
"name": "Generic ERC223 Token",
"address": "0x0001000000001000000000100000000010000001",
"abi":'[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","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":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"Transfer","type":"event"}]'
}
]
},{}],3:[function(require,module,exports){
module.exports=[{
"name": "Select a contract...",
"address": "",
"abi": ""
},{
"name": "Athenian: Warrior for Battle",
"address": "0x17052d51E954592C1046320c2371AbaB6C73Ef10",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"tokenSupply","type":"uint256"}],"name":"SetupToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "Battle Of Thermopylae: Battle",
"address": "0x553B4546D26F383d4f4a056B7f50DaDFf07FB252",
"abi": '[{"constant":true,"inputs":[],"name":"getGreeksBattlePoints","outputs":[{"name":"greeksBattlePoints","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_ATHENIANS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_warriors","type":"uint256"}],"name":"assignAtheniansToBattle","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"immortals","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"deprecated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BTL_IMMORTAL","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getImmortalsOnTheBattlefield","outputs":[{"name":"immortalsOnTheBattlefield","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BTL_PERSIAN","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newVersion","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_faction","type":"address"}],"name":"getTotalSlaves","outputs":[{"name":"slaves","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_warriors","type":"uint256"}],"name":"assignImmortalsToBattle","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"athenians","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BATTLE_POINT_DECIMALS","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTemporaryWinningFaction","outputs":[{"name":"temporaryWinningFaction","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"battles","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getPersiansOnTheBattlefield","outputs":[{"name":"persiansOnTheBattlefield","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isInTime","outputs":[{"name":"inTime","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_battleTokenAddress","type":"address"},{"name":"_battleTokenOwner","type":"address"}],"name":"setBattleTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"BTL_SPARTAN","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"WAD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isInProgress","outputs":[{"name":"inProgress","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"redeemWarriors","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BTL_ATHENIAN","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isTimeExpired","outputs":[{"name":"timeExpired","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BP_ATHENIAN","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"avarageBlockTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"persians","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getAtheniansOnTheBattlefield","outputs":[{"name":"atheniansOnTheBattlefield","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"warriorsOnTheBattlefield","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getGreeksBattlePointsBy","outputs":[{"name":"playerBattlePoints","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"},{"name":"_loosingMainTroops","type":"address"}],"name":"computeSlaves","outputs":[{"name":"slaves","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isEnded","outputs":[{"name":"ended","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"warriorsByPlayer","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"spartans","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getPersiansBattlePoints","outputs":[{"name":"persiansBattlePoints","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getPersiansBattlePointsBy","outputs":[{"name":"playerBattlePoints","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getSpartansOnTheBattlefield","outputs":[{"name":"spartansOnTheBattlefield","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BATTLE_CASUALTIES","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_PERSIANS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newVersion","type":"string"},{"name":"_newAddress","type":"address"}],"name":"setDeprecated","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SPARTANS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getWinningFaction","outputs":[{"name":"winningFaction","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BP_PERSIAN","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_IMMORTALS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"battlesOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BP_IMMORTAL","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BP_SPARTAN","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_warriors","type":"uint256"}],"name":"assignSpartansToBattle","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isDraw","outputs":[{"name":"draw","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_warriors","type":"uint256"}],"name":"assignPersiansToBattle","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_startTime","type":"uint256"},{"name":"_life","type":"uint256"},{"name":"_avarageBlockTime","type":"uint8"},{"name":"_persians","type":"address"},{"name":"_immortals","type":"address"},{"name":"_spartans","type":"address"},{"name":"_athenians","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"_faction","type":"address"},{"indexed":false,"name":"_battlePointsIncrementForecast","type":"uint256"}],"name":"WarriorsAssignedToBattlefield","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_faction","type":"address"},{"indexed":false,"name":"_survivedWarriors","type":"uint256"}],"name":"WarriorsBackToHome","type":"event"}]'
},{
"name": "BattleDrome ICO / Crowdsale",
"address": "0xeaAf270436a0ed397ED23BBF64DF7b1DCAfF142F",
"abi": '[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"duration","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"devRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_contributor","type":"address"}],"name":"checkTokBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_contributor","type":"address"}],"name":"checkSavedEthBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"checkTokDev","outputs":[{"name":"total","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ratio","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"savedBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"checkTokSold","outputs":[{"name":"total","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"checkTokTotal","outputs":[{"name":"total","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_contributor","type":"address"}],"name":"checkEthBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creatorPaid","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minimumPurchase","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isComplete","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"Token","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"contribute","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"payMe","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"payCreator","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"percentOfGoal","outputs":[{"name":"goalPercent","type":"uint16"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isSuccessful","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_contributor","type":"address"},{"indexed":true,"name":"_value","type":"uint256"},{"indexed":true,"name":"_timestamp","type":"uint256"}],"name":"Contribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_receiver","type":"address"},{"indexed":true,"name":"_value","type":"uint256"},{"indexed":true,"name":"_timestamp","type":"uint256"}],"name":"PayTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_receiver","type":"address"},{"indexed":true,"name":"_value","type":"uint256"},{"indexed":true,"name":"_timestamp","type":"uint256"}],"name":"PayEther","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_value","type":"uint256"},{"indexed":true,"name":"_timestamp","type":"uint256"}],"name":"BurnTokens","type":"event"}]'
},{
"name": "BitMartToken",
"address": "0x986EE2B944c42D017F52Af21c4c69B84DBeA35d8",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"unfreeze","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"freezeOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"freeze","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"decimalUnits","type":"uint8"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Unfreeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]'
},{
"name": "BlockCAT CAT Token / Crowdsale",
"address": "0x56ba2Ee7890461f463F7be02aAC3099f6d5811A8",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"HIDDEN_CAP","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DEV_PORTION","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"RESERVE_PORTION","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleStartBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdrawFunds","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"triggerRefund","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalETHRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"endSale","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"changeDeveloperCATDestinationAddress","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"reserveCATDestination","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleEndBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"devETHDestination","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CAT_PER_ETH_FIRST_EARLY_BIRD_RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"devCATDestination","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleHasEnded","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ADDITIONAL_PORTION","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CAT_PER_ETH_SECOND_EARLY_BIRD_RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minCapReached","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleFirstEarlyBirdEndBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleSecondEarlyBirdEndBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CAT_PER_ETH_BASE_RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"changeReserveCATDestinationAddress","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"createTokens","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"changeDeveloperETHDestinationAddress","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"triggerMinCap","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"executor","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"SECURITY_ETHER_CAP","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"ETHContributed","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"allowRefund","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[{"name":"_devETHDestination","type":"address"},{"name":"_devCATDestination","type":"address"},{"name":"_reserveCATDestination","type":"address"},{"name":"_saleStartBlock","type":"uint256"},{"name":"_saleEndBlock","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_creator","type":"address"},{"indexed":false,"name":"_amountOfCAT","type":"uint256"}],"name":"CreatedCAT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_refunder","type":"address"},{"indexed":false,"name":"_amountOfWei","type":"uint256"}],"name":"CATRefundedForWei","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
},{
"name": "Consensys Multisig",
"address": "0x1010101010101010101010101010101010101010",
"abi": '[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"owners","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"removeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"revokeConfirmation","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"confirmations","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"pending","type":"bool"},{"name":"executed","type":"bool"}],"name":"getTransactionCount","outputs":[{"name":"count","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"addOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"isConfirmed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"getConfirmationCount","outputs":[{"name":"count","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"transactions","outputs":[{"name":"destination","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"},{"name":"executed","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getOwners","outputs":[{"name":"","type":"address[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"from","type":"uint256"},{"name":"to","type":"uint256"},{"name":"pending","type":"bool"},{"name":"executed","type":"bool"}],"name":"getTransactionIds","outputs":[{"name":"_transactionIds","type":"uint256[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"getConfirmations","outputs":[{"name":"_confirmations","type":"address[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transactionCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_required","type":"uint256"}],"name":"changeRequirement","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"confirmTransaction","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"destination","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"submitTransaction","outputs":[{"name":"transactionId","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_OWNER_COUNT","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"required","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"},{"name":"newOwner","type":"address"}],"name":"replaceOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"transactionId","type":"uint256"}],"name":"executeTransaction","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_sender","type":"address"},{"indexed":true,"name":"_transactionId","type":"uint256"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_sender","type":"address"},{"indexed":true,"name":"_transactionId","type":"uint256"}],"name":"Revocation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_transactionId","type":"uint256"}],"name":"Submission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_transactionId","type":"uint256"}],"name":"Execution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_transactionId","type":"uint256"}],"name":"ExecutionFailure","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_sender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"}],"name":"OwnerAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"}],"name":"OwnerRemoval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_required","type":"uint256"}],"name":"RequirementChange","type":"event"}]'
},{
"name": "CryptoKitties",
"address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
"abi": '[{"constant":true,"inputs":[{"name":"_interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cfoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_preferredTransport","type":"string"}],"name":"tokenMetadata","outputs":[{"name":"infoUrl","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"promoCreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ceoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GEN0_STARTING_PRICE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setSiringAuctionAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pregnantKitties","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_kittyId","type":"uint256"}],"name":"isPregnant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GEN0_AUCTION_DURATION","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"siringAuction","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"_address","type":"address"}],"name":"setGeneScienceAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCEO","type":"address"}],"name":"setCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCOO","type":"address"}],"name":"setCOO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_kittyId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_endingPrice","type":"uint256"},{"name":"_duration","type":"uint256"}],"name":"createSaleAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"sireAllowedToAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_matronId","type":"uint256"},{"name":"_sireId","type":"uint256"}],"name":"canBreedWith","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"kittyIndexToApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_kittyId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_endingPrice","type":"uint256"},{"name":"_duration","type":"uint256"}],"name":"createSiringAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"val","type":"uint256"}],"name":"setAutoBirthFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_sireId","type":"uint256"}],"name":"approveSiring","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCFO","type":"address"}],"name":"setCFO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"},{"name":"_owner","type":"address"}],"name":"createPromoKitty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"secs","type":"uint256"}],"name":"setSecondsPerBlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GEN0_CREATION_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setSaleAuctionAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"count","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_v2Address","type":"address"}],"name":"setNewAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secondsPerBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"name":"ownerTokens","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_matronId","type":"uint256"}],"name":"giveBirth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAuctionBalances","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"cooldowns","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"kittyIndexToOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"cooAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"autoBirthFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"erc721Metadata","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"}],"name":"createGen0Auction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_kittyId","type":"uint256"}],"name":"isReadyToBreed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PROMO_CREATION_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_contractAddress","type":"address"}],"name":"setMetadataAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"saleAuction","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint256"}],"name":"getKitty","outputs":[{"name":"isGestating","type":"bool"},{"name":"isReady","type":"bool"},{"name":"cooldownIndex","type":"uint256"},{"name":"nextActionAt","type":"uint256"},{"name":"siringWithId","type":"uint256"},{"name":"birthTime","type":"uint256"},{"name":"matronId","type":"uint256"},{"name":"sireId","type":"uint256"},{"name":"generation","type":"uint256"},{"name":"genes","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_sireId","type":"uint256"},{"name":"_matronId","type":"uint256"}],"name":"bidOnSiringAuction","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"gen0CreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"geneScience","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_matronId","type":"uint256"},{"name":"_sireId","type":"uint256"}],"name":"breedWithAuto","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"matronId","type":"uint256"},{"indexed":false,"name":"sireId","type":"uint256"},{"indexed":false,"name":"cooldownEndBlock","type":"uint256"}],"name":"Pregnant","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"approved","type":"address"},{"indexed":false,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"kittyId","type":"uint256"},{"indexed":false,"name":"matronId","type":"uint256"},{"indexed":false,"name":"sireId","type":"uint256"},{"indexed":false,"name":"genes","type":"uint256"}],"name":"Birth","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"}]'
},{
"name": "CryptoKitties Sales Auction",
"address": "0xb1690c08e213a35ed9bab7b318de14420fb57d8c",
"abi": '[{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_endingPrice","type":"uint256"},{"name":"_duration","type":"uint256"},{"name":"_seller","type":"address"}],"name":"createAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"lastGen0SalePrices","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getAuction","outputs":[{"name":"seller","type":"address"},{"name":"startingPrice","type":"uint256"},{"name":"endingPrice","type":"uint256"},{"name":"duration","type":"uint256"},{"name":"startedAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ownerCut","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isSaleClockAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"cancelAuctionWhenPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gen0SaleCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"cancelAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getCurrentPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nonFungibleContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"averageGen0SalePrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_nftAddr","type":"address"},{"name":"_cut","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"startingPrice","type":"uint256"},{"indexed":false,"name":"endingPrice","type":"uint256"},{"indexed":false,"name":"duration","type":"uint256"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"totalPrice","type":"uint256"},{"indexed":false,"name":"winner","type":"address"}],"name":"AuctionSuccessful","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"}],"name":"AuctionCancelled","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"}]'
},{
"name": "CryptoKitties Siring Auction",
"address": "0xc7af99fe5513eb6710e6d5f44f9989da40f27f26",
"abi": '[{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_endingPrice","type":"uint256"},{"name":"_duration","type":"uint256"},{"name":"_seller","type":"address"}],"name":"createAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isSiringClockAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getAuction","outputs":[{"name":"seller","type":"address"},{"name":"startingPrice","type":"uint256"},{"name":"endingPrice","type":"uint256"},{"name":"duration","type":"uint256"},{"name":"startedAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ownerCut","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"cancelAuctionWhenPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"cancelAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getCurrentPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nonFungibleContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_nftAddr","type":"address"},{"name":"_cut","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"startingPrice","type":"uint256"},{"indexed":false,"name":"endingPrice","type":"uint256"},{"indexed":false,"name":"duration","type":"uint256"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"totalPrice","type":"uint256"},{"indexed":false,"name":"winner","type":"address"}],"name":"AuctionSuccessful","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenId","type":"uint256"}],"name":"AuctionCancelled","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"}]'
},{
"name": "CryptoPunks",
"address": "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"punksOfferedForSale","outputs":[{"name":"isForSale","type":"bool"},{"name":"punkIndex","type":"uint256"},{"name":"seller","type":"address"},{"name":"minValue","type":"uint256"},{"name":"onlySellTo","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"}],"name":"enterBidForPunk","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"},{"name":"minPrice","type":"uint256"}],"name":"acceptBidForPunk","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addresses","type":"address[]"},{"name":"indices","type":"uint256[]"}],"name":"setInitialOwners","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"imageHash","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"nextPunkIndexToAssign","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"punkIndexToAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"punkBids","outputs":[{"name":"hasBid","type":"bool"},{"name":"punkIndex","type":"uint256"},{"name":"bidder","type":"address"},{"name":"value","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"allInitialOwnersAssigned","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"allPunksAssigned","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"}],"name":"buyPunk","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"punkIndex","type":"uint256"}],"name":"transferPunk","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"}],"name":"withdrawBidForPunk","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"punkIndex","type":"uint256"}],"name":"setInitialOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"},{"name":"minSalePriceInWei","type":"uint256"},{"name":"toAddress","type":"address"}],"name":"offerPunkForSaleToAddress","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"punksRemainingToAssign","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"},{"name":"minSalePriceInWei","type":"uint256"}],"name":"offerPunkForSale","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"}],"name":"getPunk","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pendingWithdrawals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"punkIndex","type":"uint256"}],"name":"punkNoLongerForSale","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":true,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"punkIndex","type":"uint256"}],"name":"Assign","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"punkIndex","type":"uint256"}],"name":"PunkTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"punkIndex","type":"uint256"},{"indexed":false,"name":"minValue","type":"uint256"},{"indexed":true,"name":"toAddress","type":"address"}],"name":"PunkOffered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"punkIndex","type":"uint256"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":true,"name":"fromAddress","type":"address"}],"name":"PunkBidEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"punkIndex","type":"uint256"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":true,"name":"fromAddress","type":"address"}],"name":"PunkBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"punkIndex","type":"uint256"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":true,"name":"fromAddress","type":"address"},{"indexed":true,"name":"toAddress","type":"address"}],"name":"PunkBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"punkIndex","type":"uint256"}],"name":"PunkNoLongerForSale","type":"event"}]'
},{
"name": "DGD Crowdsale / Claim",
"address": "0xF0160428a8552AC9bB7E050D90eEADE4DDD52843",
"abi": '[{"constant":false,"inputs":[{"name":"_eth","type":"uint256"}],"name":"setEthToCents","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"startDate","outputs":[{"name":"date","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"claimFounders","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"}],"name":"userInfo","outputs":[{"name":"centstotal","type":"uint256"},{"name":"weitotal","type":"uint256"},{"name":"share","type":"uint256"},{"name":"badges","type":"uint256"},{"name":"claimed","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"getPeriod","outputs":[{"name":"saleperiod","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"periodTwo","outputs":[{"name":"date","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_user","type":"address"}],"name":"proxyPurchase","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"BILLION","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"ethToCents","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"_wei","type":"uint256"}],"name":"weiToCents","outputs":[{"name":"centsvalue","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalWei","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"WEI_PER_ETH","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"goalReached","outputs":[{"name":"reached","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_proxy","type":"address"}],"name":"getPayout","outputs":[{"name":"payout","type":"address"},{"name":"isproxy","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"myInfo","outputs":[{"name":"centstotal","type":"uint256"},{"name":"weitotal","type":"uint256"},{"name":"share","type":"uint256"},{"name":"badges","type":"uint256"},{"name":"claimed","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_payout","type":"address"}],"name":"regProxy","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"getSaleStatus","outputs":[{"name":"fclaim","type":"bool"},{"name":"reltokens","type":"uint256"},{"name":"relbadges","type":"uint256"},{"name":"claimers","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"sendFunds","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"isEnded","outputs":[{"name":"ended","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"unlock","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"_contrib","type":"uint256"},{"name":"_total","type":"uint256"}],"name":"calcShare","outputs":[{"name":"share","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_payout","type":"address"}],"name":"getProxy","outputs":[{"name":"proxy","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"periodThree","outputs":[{"name":"date","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalCents","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"endDate","outputs":[{"name":"date","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getSaleConfig","outputs":[{"name":"start","type":"uint256"},{"name":"two","type":"uint256"},{"name":"three","type":"uint256"},{"name":"end","type":"uint256"},{"name":"goal","type":"uint256"},{"name":"cap","type":"uint256"},{"name":"badgecost","type":"uint256"},{"name":"famount","type":"uint256"},{"name":"fwallet","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"getSaleInfo","outputs":[{"name":"weiamount","type":"uint256"},{"name":"cents","type":"uint256"},{"name":"realcents","type":"uint256"},{"name":"amount","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_user","type":"address"}],"name":"claimFor","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"CENTS","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"_a","type":"uint256"},{"name":"_c","type":"uint256"}],"name":"ppb","outputs":[{"name":"b","type":"uint256"}],"type":"function"},{"inputs":[{"name":"_config","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_exchange","type":"uint256"},{"indexed":true,"name":"_rate","type":"uint256"},{"indexed":true,"name":"_cents","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_user","type":"address"},{"indexed":true,"name":"_amount","type":"uint256"},{"indexed":true,"name":"_badges","type":"uint256"}],"name":"Claim","type":"event"}]'
},{
"name": "DAO Original",
"address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413",
"abi": '[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"open","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"proposalHash","type":"bytes32"},{"name":"proposalDeposit","type":"uint256"},{"name":"newCurator","type":"bool"},{"name":"yea","type":"uint256"},{"name":"nay","type":"uint256"},{"name":"creator","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"minTokensToCreate","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"rewardAccount","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"daoCreator","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"divisor","outputs":[{"name":"divisor","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"extraBalance","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_proposalID","type":"uint256"},{"name":"_transactionData","type":"bytes"}],"name":"executeProposal","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"unblockMe","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalRewardToken","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"actualBalance","outputs":[{"name":"_actualBalance","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"allowedRecipients","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferWithoutReward","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_description","type":"string"},{"name":"_transactionData","type":"bytes"},{"name":"_debatingPeriod","type":"uint256"},{"name":"_newCurator","type":"bool"}],"name":"newProposal","outputs":[{"name":"_proposalID","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"DAOpaidOut","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"minQuorumDivisor","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_newContract","type":"address"}],"name":"newContract","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"},{"name":"_allowed","type":"bool"}],"name":"changeAllowedRecipients","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"halveMinQuorum","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"paidOut","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_proposalID","type":"uint256"},{"name":"_newCurator","type":"address"}],"name":"splitDAO","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"DAOrewardAccount","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"proposalDeposit","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numberOfProposals","outputs":[{"name":"_numberOfProposals","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"lastTimeMinQuorumMet","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_toMembers","type":"bool"}],"name":"retrieveDAOReward","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"receiveEther","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"isFueled","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_tokenHolder","type":"address"}],"name":"createTokenProxy","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"_proposalID","type":"uint256"}],"name":"getNewDAOAddress","outputs":[{"name":"_newDAO","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_proposalID","type":"uint256"},{"name":"_supportsProposal","type":"bool"}],"name":"vote","outputs":[{"name":"_voteID","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"getMyReward","outputs":[{"name":"_success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"rewardToken","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFromWithoutReward","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_proposalDeposit","type":"uint256"}],"name":"changeProposalDeposit","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"blocked","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"curator","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[{"name":"_proposalID","type":"uint256"},{"name":"_recipient","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_transactionData","type":"bytes"}],"name":"checkProposalCode","outputs":[{"name":"_codeChecksOut","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"privateCreation","outputs":[{"name":"","type":"address"}],"type":"function"},{"inputs":[{"name":"_curator","type":"address"},{"name":"_daoCreator","type":"address"},{"name":"_proposalDeposit","type":"uint256"},{"name":"_minTokensToCreate","type":"uint256"},{"name":"_closingTime","type":"uint256"},{"name":"_privateCreation","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"uint256"}],"name":"FuelingToDate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"CreatedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"newCurator","type":"bool"},{"indexed":false,"name":"description","type":"string"}],"name":"ProposalAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"position","type":"bool"},{"indexed":true,"name":"voter","type":"address"}],"name":"Voted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"result","type":"bool"},{"indexed":false,"name":"quorum","type":"uint256"}],"name":"ProposalTallied","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_newCurator","type":"address"}],"name":"NewCurator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_recipient","type":"address"},{"indexed":false,"name":"_allowed","type":"bool"}],"name":"AllowedRecipientChanged","type":"event"}]'
},{
"name": "DIVX Token",
"address": "0x13f11C9905A08ca76e3e853bE63D4f0944326C72",
"abi": '[{"constant":false,"inputs":[],"name":"resume","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"withdrawWei","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"privateExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"thirdExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"firstXRChangeBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"receivedWeiMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"firstExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingEndBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"secondExchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"thirdXRChangeBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isRedeeming","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isPaused","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"createTokens","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"stopRedeeming","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingStartBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"secondXRChangeBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startRedeeming","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalReceivedWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"diviAddress","type":"bytes32"}],"name":"redeem","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"receivedWeiCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_fundDeposit","type":"address"},{"name":"_fundingStartBlock","type":"uint256"},{"name":"_firstXRChangeBlock","type":"uint256"},{"name":"_secondXRChangeBlock","type":"uint256"},{"name":"_thirdXRChangeBlock","type":"uint256"},{"name":"_fundingEndBlock","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_tokenValue","type":"uint256"}],"name":"LogCreate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_tokenValue","type":"uint256"}],"name":"LogRefund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_diviAddress","type":"bytes32"}],"name":"LogRedeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "Ethereum Lottery",
"address": "0xc0ADF1CCc703A0a3393892600883A1A91a4E38de",
"abi": '[{"constant":true,"inputs":[],"name":"lastInitTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"poissonData","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"int256"}],"name":"lotteries","outputs":[{"name":"jackpot","type":"uint256"},{"name":"decidingBlock","type":"int256"},{"name":"numTickets","type":"uint256"},{"name":"numTicketsSold","type":"uint256"},{"name":"ticketPrice","type":"uint256"},{"name":"cutoffTimestamp","type":"uint256"},{"name":"winningTicket","type":"int256"},{"name":"winner","type":"address"},{"name":"finalizationBlock","type":"uint256"},{"name":"finalizer","type":"address"},{"name":"message","type":"string"},{"name":"nearestKnownBlock","type":"int256"},{"name":"nearestKnownBlockHash","type":"int256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"recentActivity","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"destruct","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"},{"name":"_offset","type":"uint256"},{"name":"_n","type":"uint256"},{"name":"_addr","type":"address"}],"name":"getTicketDetails","outputs":[{"name":"details","type":"uint8[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_message","type":"string"}],"name":"getMessageLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"}],"name":"getLotteryDetailsB","outputs":[{"name":"_actualId","type":"int256"},{"name":"_winningTicket","type":"int256"},{"name":"_winner","type":"address"},{"name":"_finalizationBlock","type":"uint256"},{"name":"_finalizer","type":"address"},{"name":"_message","type":"string"},{"name":"_prevLottery","type":"int256"},{"name":"_nextLottery","type":"int256"},{"name":"_blockHeight","type":"int256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getRecentActivity","outputs":[{"name":"_id","type":"int256"},{"name":"_idx","type":"uint256"},{"name":"_recentActivity","type":"uint256[1000]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"recentActivityIdx","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"id","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_jackpot","type":"uint256"},{"name":"_numTickets","type":"uint256"},{"name":"_ticketPrice","type":"uint256"},{"name":"_durationInBlocks","type":"int256"}],"name":"initLottery","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"int256"},{"name":"_message","type":"string"}],"name":"setMessage","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"proposeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"needsInitialization","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"needsFinalization","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_tickets","type":"uint256[]"}],"name":"buyTickets","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"proposedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"btcRelay","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"}],"name":"getLotteryDetailsA","outputs":[{"name":"_actualId","type":"int256"},{"name":"_jackpot","type":"uint256"},{"name":"_decidingBlock","type":"int256"},{"name":"_numTickets","type":"uint256"},{"name":"_numTicketsSold","type":"uint256"},{"name":"_lastSaleTimestamp","type":"uint256"},{"name":"_ticketPrice","type":"uint256"},{"name":"_cutoffTimestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"},{"name":"_ticket","type":"uint256"}],"name":"getTicketOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_steps","type":"uint256"}],"name":"finalizeLottery","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"lastSaleTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_btcRelay","type":"address"},{"name":"_poissonData","type":"address"},{"name":"_escrow","type":"address"}],"payable":false,"type":"constructor"}]'
},{
"name": "EagleCoin [EAGLE] Contract Address",
"address": "0x994f0dffdbae0bbf09b652d6f11a493fd33f42b9",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"coinAge","outputs":[{"name":"myCoinAge","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"ownerSetStakeStartTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxTotalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getBlockNumber","outputs":[{"name":"blockNumber","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"chainStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipients","type":"address[]"},{"name":"_values","type":"uint256[]"}],"name":"batchTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"ownerBurnToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalInitialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"annualInterest","outputs":[{"name":"interest","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeMinAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chainStartBlockNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeMaxAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxMintProofOfStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"},{"indexed":false,"name":"_reward","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
},{
"name": "Etherisc Flight Delay",
"address": "0xc0f29798c57e890cac82a79dadbebfb3d3fa67b9",
"abi": '[{"constant":false,"inputs":[{"name":"_carrierFlightNumber","type":"bytes32"},{"name":"_departureYearMonthDay","type":"bytes32"},{"name":"_departureTime","type":"uint256"},{"name":"_arrivalTime","type":"uint256"},{"name":"_currency","type":"uint8"},{"name":"_customerExternalId","type":"bytes32"}],"name":"newPolicy","outputs":[],"payable":true,"type":"function"}]'
},{
"name": "Etheroll Rewards",
"address": "0xa4463f9Ff0d87531232c8c4819B536c332DA6EAc",
"abi": '[{"constant":true,"inputs":[{"name":"_tokenHolder","type":"address"}],"name":"getTokensHeldByAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"ownerUpdateCurrentEpoch","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"payoutsPaused","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newTreasury","type":"address"}],"name":"ownerSetTreasury","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalRewardsForEpoch","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newPayoutStatus","type":"bool"}],"name":"ownerPausePayouts","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"ownerChangeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"treasury","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"currentEpoch","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_sendTo","type":"address"},{"name":"_amount","type":"uint256"}],"name":"ownerTransferEther","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"theTokenAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_tokenHolder","type":"address"}],"name":"getExpectedPayout","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_tokenHolder","type":"address"}],"name":"getAddressLastPaidOutEpoch","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getMyReward","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"ownerkill","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newTotalRewardsForEpochInWei","type":"uint256"}],"name":"ownerUpdateTotalRewardsForEpoch","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"tokenAddress","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"SentToAddress","type":"address"},{"indexed":true,"name":"AmountTransferred","type":"uint256"}],"name":"LogOwnerTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"SentToAddress","type":"address"},{"indexed":true,"name":"AmountTransferred","type":"uint256"},{"indexed":true,"name":"NumberOfTokens","type":"uint256"},{"indexed":false,"name":"TotalRewardsForEpoch","type":"uint256"},{"indexed":false,"name":"Epoch","type":"uint256"}],"name":"LogPaidOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"NewCurrentEpoch","type":"uint256"}],"name":"LogEpochUpdated","type":"event"}]'
},{
"name": "EOS: Contribution",
"address": "0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf",
"abi": '[{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"claimed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"time","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint128"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"foundersAllocation","outputs":[{"name":"","type":"uint128"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"day","type":"uint256"}],"name":"claim","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"foundersKey","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"userBuys","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"day","type":"uint256"}],"name":"createOnDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"freeze","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"keys","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dailyTotals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"openTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"EOS","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"today","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"eos","type":"address"}],"name":"initialize","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"createFirstDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"claimAll","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"dayFor","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"day","type":"uint256"},{"name":"limit","type":"uint256"}],"name":"buyWithLimit","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"collect","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfDays","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"key","type":"string"}],"name":"register","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"createPerDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_numberOfDays","type":"uint256"},{"name":"_totalSupply","type":"uint128"},{"name":"_openTime","type":"uint256"},{"name":"_startTime","type":"uint256"},{"name":"_foundersAllocation","type":"uint128"},{"name":"_foundersKey","type":"string"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"window","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"window","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"key","type":"string"}],"name":"LogRegister","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogCollect","type":"event"},{"anonymous":false,"inputs":[],"name":"LogFreeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}]'
},{
"name": "ENS: Eth Registrar (Auction)",
"address": "0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef",
"abi": '[{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"releaseDeed","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"getAllowedTime","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"unhashedName","type":"string"}],"name":"invalidateName","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"hash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"value","type":"uint256"},{"name":"salt","type":"bytes32"}],"name":"shaBid","outputs":[{"name":"sealedBid","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"bidder","type":"address"},{"name":"seal","type":"bytes32"}],"name":"cancelBid","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"entries","outputs":[{"name":"","type":"uint8"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_value","type":"uint256"},{"name":"_salt","type":"bytes32"}],"name":"unsealBid","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"transferRegistrars","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"sealedBids","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"newOwner","type":"address"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_timestamp","type":"uint256"}],"name":"isAllowed","outputs":[{"name":"allowed","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"finalizeAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registryStarted","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"launchLength","outputs":[{"name":"","type":"uint32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"sealedBid","type":"bytes32"}],"name":"newBid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"labels","type":"bytes32[]"}],"name":"eraseNode","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashes","type":"bytes32[]"}],"name":"startAuctions","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"},{"name":"deed","type":"address"},{"name":"registrationDate","type":"uint256"}],"name":"acceptRegistrarTransfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"startAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hashes","type":"bytes32[]"},{"name":"sealedBid","type":"bytes32"}],"name":"startAuctionsAndBid","outputs":[],"payable":true,"type":"function"},{"inputs":[{"name":"_ens","type":"address"},{"name":"_rootNode","type":"bytes32"},{"name":"_startDate","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"status","type":"uint8"}],"name":"BidRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"HashReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashInvalidated","type":"event"}]'
},{
"name": "ENS: Registry",
"address": "0x314159265dD8dbb310642f98f50C066173C1259b",
"abi": '[{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"label","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setSubnodeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"ttl","type":"uint64"}],"name":"setTTL","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"ttl","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"label","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"ttl","type":"uint64"}],"name":"NewTTL","type":"event"}]'
},{
"name": "ENS: Reverse Registrar",
"address": "0x9062C0A6Dbd6108336BcBe4593a3D1cE05512069",
"abi": '[{"constant":false,"inputs":[{"name":"owner","type":"address"},{"name":"resolver","type":"address"}],"name":"claimWithResolver","outputs":[{"name":"node","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"claim","outputs":[{"name":"node","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"defaultResolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"node","outputs":[{"name":"ret","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"}],"name":"setName","outputs":[{"name":"node","type":"bytes32"}],"payable":false,"type":"function"},{"inputs":[{"name":"ensAddr","type":"address"},{"name":"resolverAddr","type":"address"}],"payable":false,"type":"constructor"}]'
},{
"name": "ENS: Public Resolver",
"address": "0x5FfC014343cd971B7eb70732021E26C35B744cc4",
"abi": '[{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"},{"name":"value","type":"string"}],"name":"setText","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentTypes","type":"uint256"}],"name":"ABI","outputs":[{"name":"contentType","type":"uint256"},{"name":"data","type":"bytes"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"name":"setPubkey","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"content","outputs":[{"name":"ret","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"addr","outputs":[{"name":"ret","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"}],"name":"text","outputs":[{"name":"ret","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentType","type":"uint256"},{"name":"data","type":"bytes"}],"name":"setABI","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"name","outputs":[{"name":"ret","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"string"}],"name":"setName","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes32"}],"name":"setContent","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"pubkey","outputs":[{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"addr","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"ensAddr","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"a","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"hash","type":"bytes32"}],"name":"ContentChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"contentType","type":"uint256"}],"name":"ABIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"x","type":"bytes32"},{"indexed":false,"name":"y","type":"bytes32"}],"name":"PubkeyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"indexedKey","type":"string"},{"indexed":false,"name":"key","type":"string"}],"name":"TextChanged","type":"event"}]'
},{
"name": "EtherDelta (02/09/2017)",
"address": "0x8d12A197cB00D4747a1fe03395095ce2A5CC6819",
"abi": '[{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"trade","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"}],"name":"order","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orderFills","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"cancelOrder","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"depositToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"amountFilled","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"feeMake_","type":"uint256"}],"name":"changeFeeMake","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"feeMake","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"feeRebate_","type":"uint256"}],"name":"changeFeeRebate","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"feeAccount","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"},{"name":"sender","type":"address"}],"name":"testTrade","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"feeAccount_","type":"address"}],"name":"changeFeeAccount","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"feeRebate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"feeTake_","type":"uint256"}],"name":"changeFeeTake","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"admin_","type":"address"}],"name":"changeAdmin","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orders","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"feeTake","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"accountLevelsAddr_","type":"address"}],"name":"changeAccountLevelsAddr","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"accountLevelsAddr","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"},{"name":"user","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"availableVolume","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"admin_","type":"address"},{"name":"feeAccount_","type":"address"},{"name":"accountLevelsAddr_","type":"address"},{"name":"feeMake_","type":"uint256"},{"name":"feeTake_","type":"uint256"},{"name":"feeRebate_","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","type":"uint256"},{"indexed":false,"name":"expires","type":"uint256"},{"indexed":false,"name":"nonce","type":"uint256"},{"indexed":false,"name":"user","type":"address"}],"name":"Order","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","type":"uint256"},{"indexed":false,"name":"expires","type":"uint256"},{"indexed":false,"name":"nonce","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"v","type":"uint8"},{"indexed":false,"name":"r","type":"bytes32"},{"indexed":false,"name":"s","type":"bytes32"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","type":"uint256"},{"indexed":false,"name":"get","type":"address"},{"indexed":false,"name":"give","type":"address"}],"name":"Trade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"Withdraw","type":"event"}]'
},{
"name": "Global Academy Place (GAP)",
"address": "0xC86414354c06dC8bA428A08BCc589C72c2805959",
"abi": '[{"constant":false,"inputs":[{"name":"_deposits","type":"uint256"},{"name":"actualSellPriceInWei","type":"uint256"},{"name":"_actualPriceInCents","type":"uint256"}],"name":"deposit","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"maximumBuyBackPriceInCents","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"secondLevelPrice","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"Killer","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"deadline","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"depositsTillNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"checkActualPrice","outputs":[{"name":"_sellPrice","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"_thirdLevelEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"amountRaisedEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumBuyBackAmountInWEI","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"actualPriceInCents","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumBuyBack","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"thirdLevelPrice","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"_secondLevelEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_NewPrice","type":"uint256"}],"name":"manualBuyPrice","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contrubutedAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"_firstLevelEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumBuyBackAmountInCents","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"amountInWei","type":"uint256"},{"name":"_to","type":"address"}],"name":"ownerWithdrawal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"KilledTillNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CapLevelPrice","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"actualSellPriceInWei","type":"uint256"},{"name":"_mustToSellCourses","type":"uint256"},{"name":"maxBuyBackPriceCents","type":"uint256"}],"name":"BuyBackStart","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"buyTokens","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"sell","outputs":[{"name":"revenue","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"firstLevelPrice","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"mustToSellCourses","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"_capLevelEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"safeWithdrawal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"KilledTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_beneficiary","type":"address"},{"indexed":false,"name":"amountRaised","type":"uint256"}],"name":"GoalReached","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "IIC - Ibiscoin ERC20 Token Contract",
"address": "0x16662F73dF3e79e54c6c5938b4313f92C524C120",
"abi": '[{"constant":false,"inputs":[{"name":"newSellPrice","type":"uint256"},{"name":"newBuyPrice","type":"uint256"}],"name":"setPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]'
},{
"name": "Immortal - Warrior for Battle Contract",
"address": "0x22E5F62D0FA19974749faa194e3d3eF6d89c08d7",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"redeemEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenAssigned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_contributor","type":"address"},{"indexed":false,"name":"_immortals","type":"uint256"}],"name":"Assigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "LookRev Crowdsale",
"address": "0x21ae23b882a340a22282162086bc98d3e2b73018",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TOKENS_TOTAL","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_tokensPerKEther","type":"uint256"}],"name":"setTokensPerKEther","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"participant","type":"address"},{"name":"_required","type":"bool"}],"name":"kycVerify","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"finalised","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"KYC_THRESHOLD","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CONTRIBUTIONS_MIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"START_DATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"initialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"participant","type":"address"},{"name":"balance","type":"uint256"}],"name":"addPrecommitment","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TOKENS_SOFT_CAP","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"END_DATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_amount","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TOKENS_HARD_CAP","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DECIMALSFACTOR","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CONTRIBUTIONS_MAX","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalise","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokensPerKEther","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"kycRequired","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_wallet","type":"address"}],"name":"setWallet","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"participant","type":"address"}],"name":"proxyPayment","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newWallet","type":"address"}],"name":"WalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokensPerKEther","type":"uint256"}],"name":"TokensPerKEtherUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"ethers","type":"uint256"},{"indexed":false,"name":"participantTokenBalance","type":"uint256"},{"indexed":false,"name":"tokens","type":"uint256"},{"indexed":false,"name":"newTotalSupply","type":"uint256"},{"indexed":false,"name":"tokensPerKEther","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"PrecommitmentAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"required","type":"bool"}],"name":"KycVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "Global Messaging Token (GMT)",
"address": "0xb3Bd49E28f8F832b8d1E246106991e546c323502",
"abi": '[{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "endBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "ethFundAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondCapEndingBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isStopped", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minCap", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "tokenExchangeRate", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "claimTokens", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "startBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "baseTokenCapPerAddress", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "finalize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "blocksInSecondCapPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "restartSale", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "targets", "type": "address[]"}, {"name": "isRegistered", "type": "bool"}], "name": "changeRegistrationStatuses", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "purchases", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isFinalized", "outputs": [{"name": "", "type": "bool"}], "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": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_newOwner", "type": "address"}], "name": "changeOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "assignedSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "registered", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "blocksInFirstCapPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "gmtFundAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "gmtFund", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "baseEthCapPerAddress", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "firstCapEndingBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "stopSale", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "tokenUnit", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "target", "type": "address"}, {"name": "isRegistered", "type": "bool"}], "name": "changeRegistrationStatus", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "gasLimitInWei", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_ethFundAddress", "type": "address"}, {"name": "_gmtFundAddress", "type": "address"}, {"name": "_startBlock", "type": "uint256"}, {"name": "_endBlock", "type": "uint256"}, {"name": "_tokenExchangeRate", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "RefundSent", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "ClaimGMT", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]'
},{
"name": "Milestone Tracker",
"address": "0x3C01ddC7aF41E6888cBD8d0398Fe34a81C3c7f36",
"abi": '[{"constant":true,"inputs":[],"name":"proposedMilestones","outputs":[{"name":"","type":"bytes"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"changingMilestones","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"campaignCanceled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"collectMilestonePayment","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unproposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"donor","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"milestoneCompleted","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashProposals","type":"bytes32"}],"name":"acceptProposedMilestones","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"approveCompletedMilestone","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"recipient","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newMilestones","type":"bytes"}],"name":"proposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"arbitrator","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"arbitrateCancelCampaign","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newRecipient","type":"address"}],"name":"changeRecipient","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfMilestones","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"rejectMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newDonor","type":"address"}],"name":"changeDonor","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"milestones","outputs":[{"name":"description","type":"string"},{"name":"url","type":"string"},{"name":"minCompletionDate","type":"uint256"},{"name":"maxCompletionDate","type":"uint256"},{"name":"reviewer","type":"address"},{"name":"reviewTime","type":"uint256"},{"name":"paymentSource","type":"address"},{"name":"payData","type":"bytes"},{"name":"status","type":"uint8"},{"name":"doneTime","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"arbitrateApproveMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"cancelMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newArbitrator","type":"address"}],"name":"changeArbitrator","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_arbitrator","type":"address"},{"name":"_donor","type":"address"},{"name":"_recipient","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListProposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListUnproposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idProposal","type":"uint256"},{"indexed":false,"name":"newProposal","type":"uint8"}],"name":"ProposalStatusChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"CampaignCalncelled","type":"event"}]'
},{
"name": "Mist's Multisig Contract",
"address": "0x0101010101010101010101010101010101010101",
"abi": '[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"removeOwner","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_numOwners","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_lastDay","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"resetSpentToday","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_spentToday","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"addOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_required","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_h","type":"bytes32"}],"name":"confirm","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_newLimit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"_r","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"_operation","type":"bytes32"}],"name":"revoke","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_newRequired","type":"uint256"}],"name":"changeRequirement","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_operation","type":"bytes32"},{"name":"_owner","type":"address"}],"name":"hasConfirmed","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"kill","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"changeOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_dailyLimit","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"},{"name":"_daylimit","type":"uint256"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"}],"name":"OwnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequirement","type":"uint256"}],"name":"RequirementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"SingleTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MultiTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"initiator","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"ConfirmationNeeded","type":"event"}]'
},{
"name": "Modum Token",
"address": "0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e",
"abi": '[{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_addr","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"weiPerToken","type":"uint256"}],"name":"Payout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_addr","type":"address"},{"indexed":false,"name":"option","type":"bool"},{"indexed":false,"name":"votes","type":"uint256"}],"name":"Voted","type":"event"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"accounts","outputs":[{"name":"lastProposalStartTime","type":"uint256"},{"name":"lastAirdropWei","type":"uint256"},{"name":"lastAirdropClaimTime","type":"uint256"},{"name":"bonusWei","type":"uint256"},{"name":"valueModVote","type":"uint256"},{"name":"valueMod","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"blockingDuration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimBonus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimVotingProposal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currentProposal","outputs":[{"name":"addr","type":"string"},{"name":"hash","type":"bytes32"},{"name":"valueMod","type":"uint256"},{"name":"startTime","type":"uint256"},{"name":"yay","type":"uint256"},{"name":"nay","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isProposalActive","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isVoteOngoing","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isVotingPhaseOver","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastNegativeVoting","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address[]"},{"name":"_value","type":"uint256[]"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mintDone","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":false,"inputs":[{"name":"_addr","type":"address[]"}],"name":"payBonus","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"redistributionTimeout","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rounding","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"setMintDone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"showBonus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"showVotes","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":"totalDropPerUnlockedToken","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"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"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":"_vote","type":"bool"}],"name":"vote","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"votingDuration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"string"},{"name":"_hash","type":"bytes32"},{"name":"_value","type":"uint256"}],"name":"votingProposal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]'
},{
"name": "NVC Fund",
"address": "0x53b60A7c2F6d95E12c5e5A3cCaAcFE35620AeFf6",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimal","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"decimalUnits","type":"uint8"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
},{
"name": "Pass DAO: Committees Contract",
"address": "0x6A3DCd2Ad3C693aA8CBc3e5bCB075b674209A033",
"abi": '[{ "constant": false, "inputs": [ { "name": "_committeeID", "type": "uint256" }, { "name": "_supportsProposal", "type": "bool" } ], "name": "vote", "outputs": [], "payable": false, "type": "function" },{ "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256" } ], "name": "buySharesForProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [], "name": "withdrawPendingAmounts", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "type": "function"}, { "constant": false, "inputs": [ { "name": "_contractorCreator", "type": "address" }, { "name": "_recipient", "type": "address" }, { "name": "_metaProject", "type": "bool" }, { "name": "_passProject", "type": "address" }, { "name": "_projectName", "type": "string" }, { "name": "_projectDescription", "type": "string" } ], "name": "createContractor", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_amount", "type": "uint256" }, { "name": "_contractor", "type": "address" }, { "name": "_contractorProposalID", "type": "uint256" }, { "name": "_proposalDescription", "type": "string" }, { "name": "_hashOfTheContractorProposalDocument", "type": "bytes32" }, { "name": "_moderator", "typPassDe": "address" }, { "name": "_initialSharePriceMultiplier", "type": "uint256" }, { "name": "_minutesFundingPeriod", "type": "uint256" }, { "name": "_minutesDebatingPeriod", "type": "uint256" } ], "name": "contractorProposal", "outputs": [ { "name": "", "type": "uint256" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_name", "type": "string" }, { "name": "_description", "type": "string" }, { "name": "_project", "type": "address" }, { "name": "_minutesDebatingPeriod", "type": "uint256" } ], "name": "resolutionProposal", "outputs": [ { "name": "", "type": "uint256" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_minQuorumDivisor", "type": "uint256" }, { "name": "_minCommitteeFees", "type": "uint256" }, { "name": "_minPercentageOfLikes", "type": "uint256" }, { "name": "_minutesSetProposalPeriod", "type": "uint256" }, { "name": "_minMinutesDebatePeriod", "type": "uint256" }, { "name": "_feesRewardInflationRate", "type": "uint256" }, { "name": "_defaultMinutesFundingPeriod", "type": "uint256" }, { "name": "_tokenPriceInflationRate", "type": "uint256" } ], "name": "rulesProposal", "outputs": [ { "name": "", "type": "uint256" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_newCommitteeRoom", "type": "address" }, { "name": "_newShareManager", "type": "address" }, { "name": "_newTokenManager", "type": "address" }, { "name": "_minutesDebatingPeriod", "type": "uint256" } ], "name": "upgradeProposal", "outputs": [ { "name": "", "type": "uint256" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_committeeID", "type": "uint256" } ], "name": "executeDecision", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256" } ], "name": "orderToContractor", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "type": "function" }]'
},{
"name": "Pass DAO: Tokens Contract",
"address": "0x85bC00724203D53536072b000C44A2cc16CD12C5",
"abi": '[{ "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256" }, { "name": "_buyer", "type": "address" } ], "name": "buyTokensForProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [], "name": "withdrawPendingAmounts", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [], "name": "buyTokens", "outputs": [ { "name": "", "type": "bool" } ], "payable": true, "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "uint256" }, { "name": "_to", "type": "uint256" } ], "name": "removeOrders", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_tokenAmount", "type": "uint256" }, { "name": "_from", "type": "uint256" }, { "name": "_to", "type": "uint256" } ], "name": "sellTokens", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "type": "function" }]'
},{
"name": "Persian: Warrior for Battle Contract",
"address": "0x163733bcc28dbf26B41a8CfA83e369b5B3af741b",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"icoStartBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxTotalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalContributions","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contributions","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"claimToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"icoEndBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"estimateBalanceOf","outputs":[{"name":"estimatedTokens","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isICOOpen","outputs":[{"name":"_open","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isICOEnded","outputs":[{"name":"_ended","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"contribute","outputs":[{"name":"success","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"redeemEther","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_icoStartBlock","type":"uint256"},{"name":"_icoEndBlock","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_contributor","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_estimatedTotalTokenBalance","type":"uint256"}],"name":"Contributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_contributor","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "☼Plasma Token & Token Wallet",
"address": "0x59416A25628A76b4730eC51486114c32E0B582A1",
"abi": '[{"constant":true,"inputs":[],"name":"message","outputs":[{"name":"","type":"string"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenRateEther","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"registrationFromLogin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"PromilleDeposit","type":"uint256"},{"name":"DeleteMainAccount","type":"bool"}],"name":"setupAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"NewPIN","type":"uint256"}],"name":"setupAccountPIN","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"deleteLogin","type":"string"},{"name":"newLogin","type":"string"}],"name":"setupLoginVipAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"}],"name":"setupAliasAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"Freezen","type":"bool"}],"name":"frozenSubAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"}],"name":"buyVipStatusPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"buyTokenPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"toTransferETHER","type":"address"},{"name":"microToken","type":"uint256"},{"name":"SellDeposit","type":"bool"}],"name":"sellToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"login","type":"string"},{"name":"password","type":"string"}],"name":"depositaryPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"microToken","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"},{"name":"PIN","type":"uint256"}],"name":"transferFromLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"transferToLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"microToken","type":"uint256"}],"name":"returnDepositToBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"PIN","type":"uint256"}],"name":"transferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"PIN","type":"uint256"}],"name":"unblockTransferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleRefund","type":"uint256"}],"name":"transferRefundSubAccountPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"pinMainAccount","type":"uint256"},{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleReferee","type":"uint256"}],"name":"refereeTransferProtect","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"VipAccount","type":"bool"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"MainAccount","type":"address"},{"name":"MyReferralAccount","type":"address"}],"name":"MyAccountStatus","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Deposit","type":"bool"},{"name":"PromilleDeposit","type":"bool"},{"name":"ZoneToken","type":"bool"}],"name":"MyAccountValue","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myMessage","type":"string"}],"name":"advertisingPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"Message","type":"string"}],"name":"Advertising","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"PriceVipAccountMicroEther","type":"uint256"},{"indexed":false,"name":"TransferTokensFeeInPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone1InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone2InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone3InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone4InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone5InPromille","type":"uint256"}],"name":"OptionsContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"microETHER","type":"uint256"}],"name":"TokenSellingRate","type":"event"}]'
},{
"name": "Rebellious",
"address": "0x5f53f7a8075614b699baad0bc2c899f4bad8fbbf",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"coinAge","outputs":[{"name":"myCoinAge","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"ownerSetStakeStartTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxTotalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getBlockNumber","outputs":[{"name":"blockNumber","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"chainStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipients","type":"address[]"},{"name":"_values","type":"uint256[]"}],"name":"batchTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"ownerBurnToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalInitialSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"annualInterest","outputs":[{"name":"interest","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeMinAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chainStartBlockNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakeMaxAge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxMintProofOfStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"},{"indexed":false,"name":"_reward","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
},{
"name": "Replay Safe Split",
"address": "0xAA1A6e3e6EF20068f7F8d8C835d2D22fd5116444",
"abi": '[{"constant":false,"inputs":[{"name":"targetFork","type":"address"},{"name":"targetNoFork","type":"address"}],"name":"split","outputs":[{"name":"","type":"bool"}],"type":"function"}]'
},{
"name": "SingularDTV Fund",
"address": "0xe736091FC36f1ad476f5E4e03e4425940822D3BA",
"abi": '[{"inputs": [{"type": "address", "name": "singularDTVCrowdfundingAddress"}, {"type": "address", "name": "singularDTVTokenAddress"}], "constant": false, "type": "function", "name": "setup", "outputs": [{"type": "bool", "name": ""}]}, {"inputs": [], "constant": false, "type": "function", "name": "depositRevenue", "outputs": [{"type": "bool", "name": ""}]}, {"inputs": [], "constant": false, "type": "function", "name": "withdrawRevenue", "outputs": [{"type": "uint256", "name": ""}]}, {"inputs": [{"type": "address", "name": "forAddress"}], "constant": false, "type": "function", "name": "softWithdrawRevenueFor", "outputs": [{"type": "uint256", "name": ""}]}, {"inputs": [], "constant": true, "type": "function", "name": "workshop", "outputs": [{"type": "address", "name": ""}]}, {"inputs": [{"type": "address", "name": ""}], "constant": true, "type": "function", "name": "revenueAtTimeOfWithdraw", "outputs": [{"type": "uint256", "name": ""}]}, {"inputs": [], "constant": true, "type": "function", "name": "singularDTVToken", "outputs": [{"type": "address", "name": ""}]}, {"inputs": [], "constant": true, "type": "function", "name": "owner", "outputs": [{"type": "address", "name": ""}]}, {"inputs": [], "constant": true, "type": "function", "name": "singularDTVCrowdfunding", "outputs": [{"type": "address", "name": ""}]}, {"inputs": [], "constant": true, "type": "function", "name": "totalRevenue", "outputs": [{"type": "uint256", "name": ""}]}, {"inputs": [{"type": "address", "name": ""}], "constant": true, "type": "function", "name": "owed", "outputs": [{"type": "uint256", "name": ""}]}, {"inputs": [], "type": "constructor"}]'
},{
"name": "SIFT Vote SVP002",
"address": "0x7f39f3a01701bbb3b637597ab3267c213c8a11df",
"abi": '[{"constant":true,"inputs":[],"name":"vote02YesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vote02NoCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"voteStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vote03YesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vote01YesCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"vote","type":"bool"}],"name":"voteSvp01","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vote03NoCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"voteCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vote01NoCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"voteEndTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_count","type":"uint256"}],"name":"setVoterCount","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"voterAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"vote","type":"bool"}],"name":"voteSvp02","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"vote","type":"bool"}],"name":"voteSvp03","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_position","type":"uint256"},{"name":"_voter","type":"address"},{"name":"_voteCount","type":"uint256"}],"name":"setVoter","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_authenticationManagerAddress","type":"address"},{"name":"_voteStartTime","type":"uint256"},{"name":"_voteEndTime","type":"uint256"}],"payable":false,"type":"constructor"}]'
},{
"name": "SIFT Dividends",
"address": "0x9599954b6ade1f00f36a95cdf3a1b773ba3be19a",
"abi": '[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"dividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdrawDividend","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"contractVersion","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_siftContractAddress","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"PaymentAvailable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"paymentPerShare","type":"uint256"},{"indexed":false,"name":"timestamp","type":"uint256"}],"name":"DividendPayment","type":"event"}]'
},{
"name": "SIFT Transparency",
"address": "0x27c8566bfb73280606e58f60cb3374788a43d850",
"abi": '[{"constant":true,"inputs":[],"name":"accountBalanceCount","outputs":[{"name":"_count","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_accountType","type":"string"},{"name":"_accountIssuer","type":"string"},{"name":"_balance","type":"uint256"},{"name":"_accountReference","type":"string"},{"name":"_validationUrl","type":"string"},{"name":"_timestamp","type":"uint256"}],"name":"accountBalancePublish","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundValueCount","outputs":[{"name":"_count","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_usdTotalFund","type":"uint256"},{"name":"_etherTotalFund","type":"uint256"},{"name":"_definedTimestamp","type":"uint256"}],"name":"fundValuePublish","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"fundValues","outputs":[{"name":"usdValue","type":"uint256"},{"name":"etherEquivalent","type":"uint256"},{"name":"suppliedTimestamp","type":"uint256"},{"name":"blockTimestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"accountBalances","outputs":[{"name":"accountType","type":"string"},{"name":"accountIssuer","type":"string"},{"name":"balance","type":"uint256"},{"name":"accountReference","type":"string"},{"name":"validationUrl","type":"string"},{"name":"suppliedTimestamp","type":"uint256"},{"name":"blockTimestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"contractVersion","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_authenticationManagerAddress","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"usdValue","type":"uint256"},{"indexed":false,"name":"etherEquivalent","type":"uint256"},{"indexed":false,"name":"suppliedTimestamp","type":"uint256"},{"indexed":false,"name":"blockTimestamp","type":"uint256"}],"name":"FundValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"accountType","type":"string"},{"indexed":false,"name":"accountIssuer","type":"string"},{"indexed":false,"name":"balance","type":"uint256"},{"indexed":false,"name":"accountReference","type":"string"},{"indexed":false,"name":"validationUrl","type":"string"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"blockTimestamp","type":"uint256"}],"name":"AccountBalance","type":"event"}]'
},{
"name": "SIFT Authentication",
"address": "0xc6a3746aa3fec176559f0865fd5240159402a81f",
"abi": '[{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isCurrentOrPastAccountReader","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"removeAdmin","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"removeAccountReader","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"addAdmin","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"contractVersion","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"addAccountReader","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isCurrentAdmin","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isCurrentOrPastAdmin","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isCurrentAccountReader","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addedBy","type":"address"},{"indexed":false,"name":"admin","type":"address"}],"name":"AdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"removedBy","type":"address"},{"indexed":false,"name":"admin","type":"address"}],"name":"AdminRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addedBy","type":"address"},{"indexed":false,"name":"account","type":"address"}],"name":"AccountReaderAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"removedBy","type":"address"},{"indexed":false,"name":"account","type":"address"}],"name":"AccountReaderRemoved","type":"event"}]'
},{
"name": "Skrilla Token",
"address": "0x4c382F8E09615AC86E08CE58266CC227e7d4D913",
"abi": '[{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"tokenSaleBalanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_buyer","type":"address"}],"name":"getCurrentPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "Telcoin Redeem",
"address": "0x6D9FE564C9B1C81C305e066346dF73de6cF9295f",
"abi": '[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[],"name":"finishMinting","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"vestedBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"redeem","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"redeemableBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiaries","type":"address[]"}],"name":"redeemMany","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalRedeemed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_telcoin","type":"address"},{"name":"_vestingStart","type":"uint256"},{"name":"_vestingDuration","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"sacrificedValue","type":"uint256"},{"indexed":false,"name":"grantedValue","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
},{
"name": "StashPay",
"address": "0xecd570bBf74761b960Fa04Cc10fe2c4e86FfDA36",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"distributionComplete","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"publicKeySize","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getData","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"},{"name":"freeze","type":"bool"}],"name":"distributeAdviserBounty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"publicKey","type":"string"}],"name":"registerKey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"timeTransferbleUntil","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sale","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_data","type":"string"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"},{"name":"freeze","type":"bool"}],"name":"multiDistributeAdviserBounty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"publicKeys","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_publicKeySize","type":"uint8"}],"name":"modifyPublicKeySize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"data","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"adviserAndBounty","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_target","type":"address"}],"name":"isFrozen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"multiDistribute","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"_publicKey","type":"string"}],"name":"RegisterKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_size","type":"uint8"}],"name":"ModifyPublicKeySize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"data","type":"string"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[],"name":"LogStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "TRV",
"address": "0xA671f2914Ba0e73979FFc47cD350801d1714b18f",
"abi": '[{"constant":false,"inputs":[],"name":"checkGoalReached","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingMinimumTargetInUsd","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_source","type":"address"}],"name":"addToSyncList","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_price","type":"uint256"}],"name":"setEtherPrice","outputs":[{"name":"result","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalUsdRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"icoState","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"priceInUsd","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenAllocation","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"userRefund","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"stopIco","outputs":[{"name":"result","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startIco","outputs":[{"name":"result","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingMaximumTargetInUsd","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"drain","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"syncList","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"AutorizeRefund","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"etherPriceInUsd","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"fundingGoalReached","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_priceInUsd","type":"uint256"},{"name":"_tokenHolder","type":"address"},{"name":"_tokenAllocation","type":"uint256"},{"name":"_fundingMinimumTargetInUsd","type":"uint256"},{"name":"_fundingMaximumTargetInUsd","type":"uint256"}],"name":"settingsIco","outputs":[{"name":"result","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"safeWithdrawal","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"removeContract","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"ifSuccessfulSendTo","type":"address"},{"name":"_fundingMinimumTargetInUsd","type":"uint256"},{"name":"_fundingMaximumTargetInUsd","type":"uint256"},{"name":"tokenPriceInUSD","type":"uint256"},{"name":"addressOfTokenUsedAsReward","type":"address"},{"name":"_tokenHolder","type":"address"},{"name":"_tokenAllocation","type":"uint256"},{"name":"_etherPriceInUsd","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_beneficiary","type":"address"},{"indexed":false,"name":"_amountRaised","type":"uint256"},{"indexed":false,"name":"_totalUsdRaised","type":"uint256"}],"name":"GoalMinimumReached","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_beneficiary","type":"address"},{"indexed":false,"name":"_amountRaised","type":"uint256"},{"indexed":false,"name":"_totalUsdRaised","type":"uint256"}],"name":"GoalMaximumReached","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_backer","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]'
},{
"name": "VIBEX",
"address": "0x882448f83d90b2bf477af2ea79327fdea1335d93",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ETH_RECEIVED_MIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"proceed","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenExchange","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalReceivedEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MIN_ETH_TRANS","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ethFundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"deadlines","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenAccountAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"prices","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ETH_RECEIVED_CAP","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startRedeeming","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TOKEN_MIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"redeemTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenExchangeAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"LogCreateVIBEX","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_value2","type":"uint256"},{"indexed":false,"name":"_value3","type":"uint256"}],"name":"LogRedeemVIBE","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "Who The Eth?",
"address": "0x842D6dA3097B5efdE5a81535144f947Ab482b6eE",
"abi": '[{"constant": true,"inputs": [],"name": "numberOfNames","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "","type": "address"}],"name": "names","outputs": [{"name": "","type": "string"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [{"name": "","type": "address"}],"name": "bank","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"},{"anonymous": false,"inputs": [{"indexed": true,"name": "_address","type": "address"},{"indexed": false,"name": "_name","type": "string"},{"indexed": false,"name": "_time","type": "uint256"},{"indexed": true,"name": "_referrer","type": "address"},{"indexed": false,"name": "_value","type": "uint256"}],"name": "AddedName","type": "event"},{"constant": false,"inputs": [],"name": "pullFunds","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": false,"inputs": [{"name": "newName","type": "string"}],"name": "setName","outputs": [],"payable": true,"stateMutability": "payable","type": "function"},{"constant": false,"inputs": [{"name": "newName","type": "string"},{"name": "ref","type": "address"}],"name": "setNameRefer","outputs": [],"payable": true,"stateMutability": "payable","type": "function"},{"inputs": [],"payable": false,"stateMutability": "nonpayable","type": "constructor"}]'
},{
"name": "X8X",
"address": "0x910Dfc18D6EA3D6a7124A6F8B5458F281060fa4c",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_UINT256","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenAddress","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"salvageTokensFromContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_untilBlock","type":"uint256"},{"name":"_reason","type":"string"}],"name":"lockUntil","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupplyLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedUntilBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mintTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_untilBlock","type":"uint256"},{"indexed":false,"name":"_reason","type":"string"}],"name":"ContractLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_prevOwner","type":"address"},{"indexed":false,"name":"_newOwner","type":"address"}],"name":"OwnerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]'
},{
"name": "XSC",
"address": "0x0F513fFb4926ff82D7F60A05069047AcA295C413",
"abi": '[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'
}]
},{}],4:[function(require,module,exports){
arguments[4][1][0].apply(exports,arguments)
},{"dup":1}],5:[function(require,module,exports){
module.exports=[{
"name": "Select a contract...",
"address": "",
"abi": ' '
},{
"name": "💥 PLASMA TOKEN KOVAN",
"address": "0xbd287b4398b248032183994229f5f6a9fdac98b1",
"abi": '[{"constant":true,"inputs":[],"name":"message","outputs":[{"name":"","type":"string"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenRateEther","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"registrationFromLogin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"PromilleDeposit","type":"uint256"},{"name":"DeleteMainAccount","type":"bool"}],"name":"setupAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"NewPIN","type":"uint256"}],"name":"setupAccountPIN","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"deleteLogin","type":"string"},{"name":"newLogin","type":"string"}],"name":"setupLoginVipAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"}],"name":"setupAliasAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"Freezen","type":"bool"}],"name":"frozenSubAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"}],"name":"buyVipStatusPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"buyTokenPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"toTransferETHER","type":"address"},{"name":"microToken","type":"uint256"},{"name":"SellDeposit","type":"bool"}],"name":"sellToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"login","type":"string"},{"name":"password","type":"string"}],"name":"depositaryPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"microToken","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"},{"name":"PIN","type":"uint256"}],"name":"transferFromLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"transferToLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"microToken","type":"uint256"}],"name":"returnDepositToBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"PIN","type":"uint256"}],"name":"transferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"PIN","type":"uint256"}],"name":"unblockTransferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleRefund","type":"uint256"}],"name":"transferRefundSubAccountPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"pinMainAccount","type":"uint256"},{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleReferee","type":"uint256"}],"name":"refereeTransferProtect","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"VipAccount","type":"bool"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"MainAccount","type":"address"},{"name":"MyReferralAccount","type":"address"}],"name":"MyAccountStatus","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Deposit","type":"bool"},{"name":"PromilleDeposit","type":"bool"},{"name":"ZoneToken","type":"bool"}],"name":"MyAccountValue","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myMessage","type":"string"}],"name":"advertisingPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"Message","type":"string"}],"name":"Advertising","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"PriceVipAccountMicroEther","type":"uint256"},{"indexed":false,"name":"TransferTokensFeeInPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone1InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone2InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone3InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone4InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone5InPromille","type":"uint256"}],"name":"OptionsContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"microETHER","type":"uint256"}],"name":"TokenSellingRate","type":"event"}]'
}]
},{}],6:[function(require,module,exports){
module.exports=[]
},{}],7:[function(require,module,exports){
module.exports=[{
"name": "Select a contract...",
"address": "",
"abi": ' '
},{
"name": "☼Plasma Token and Token Wallet Contract",
"address": "0xA52832A0B3EBfAeF629B1a44A922F46c90445108",
"abi": '[{"constant":true,"inputs":[],"name":"message","outputs":[{"name":"","type":"string"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenRateEther","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"registrationFromLogin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"PromilleDeposit","type":"uint256"},{"name":"DeleteMainAccount","type":"bool"}],"name":"setupAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"NewPIN","type":"uint256"}],"name":"setupAccountPIN","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"deleteLogin","type":"string"},{"name":"newLogin","type":"string"}],"name":"setupLoginVipAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"}],"name":"setupAliasAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"Freezen","type":"bool"}],"name":"frozenSubAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"}],"name":"buyVipStatusPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"buyTokenPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"toTransferETHER","type":"address"},{"name":"microToken","type":"uint256"},{"name":"SellDeposit","type":"bool"}],"name":"sellToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"login","type":"string"},{"name":"password","type":"string"}],"name":"depositaryPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"microToken","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"},{"name":"PIN","type":"uint256"}],"name":"transferFromLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"transferToLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"microToken","type":"uint256"}],"name":"returnDepositToBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"PIN","type":"uint256"}],"name":"transferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"PIN","type":"uint256"}],"name":"unblockTransferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleRefund","type":"uint256"}],"name":"transferRefundSubAccountPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"pinMainAccount","type":"uint256"},{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleReferee","type":"uint256"}],"name":"refereeTransferProtect","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"VipAccount","type":"bool"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"MainAccount","type":"address"},{"name":"MyReferralAccount","type":"address"}],"name":"MyAccountStatus","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Deposit","type":"bool"},{"name":"PromilleDeposit","type":"bool"},{"name":"ZoneToken","type":"bool"}],"name":"MyAccountValue","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myMessage","type":"string"}],"name":"advertisingPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"Message","type":"string"}],"name":"Advertising","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"PriceVipAccountMicroEther","type":"uint256"},{"indexed":false,"name":"TransferTokensFeeInPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone1InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone2InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone3InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone4InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone5InPromille","type":"uint256"}],"name":"OptionsContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"microETHER","type":"uint256"}],"name":"TokenSellingRate","type":"event"}]'
},{
"name": "DomainSale",
"address": "0x0000000000000000000000000000000000000000",
"abi": '[{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"sale","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"invalidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registrar","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"finish","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"minimumBid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionEnds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isBuyable","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_price","type":"uint256"},{"name":"reserve","type":"uint256"},{"name":"referrer","type":"address"}],"name":"offer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"reserve","type":"uint256"}],"name":"Offer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"bid","type":"uint256"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"}],"name":"Cancel","type":"event"}]'
},{
"name": "ENS - Eth Registrar (Auction)",
"address": "0x21397c1a1f4acd9132fe36df011610564b87e24b",
"abi": '[{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"expiryTimes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"subnode","type":"bytes32"},{"name":"owner","type":"address"}],"name":"register","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"inputs":[{"name":"ensAddr","type":"address"},{"name":"node","type":"bytes32"}],"type":"constructor"}]'
},{
"name": "ENS - Registry",
"address": "0xe7410170f87102df0055eb195163a03b7f2bff4a",
"abi": '[{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"label","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setSubnodeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"ttl","type":"uint64"}],"name":"setTTL","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"ttl","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"label","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"ttl","type":"uint64"}],"name":"NewTTL","type":"event"}]'
}]
},{}],8:[function(require,module,exports){
module.exports=[{
"name": "Select a contract...",
"address": "",
"abi": ' '
},{
"name": "💥 Plasma Token and Token Wallet Contract ABI",
"address": "0x95D7321EdCe519419ba1DbC60A89bAfbF55EAC0D",
"abi": '[{"constant":true,"inputs":[],"name":"message","outputs":[{"name":"","type":"string"}],"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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerStatus","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ViewerValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenRateEther","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"registrationFromLogin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"PromilleDeposit","type":"uint256"},{"name":"DeleteMainAccount","type":"bool"}],"name":"setupAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"NewPIN","type":"uint256"}],"name":"setupAccountPIN","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"deleteLogin","type":"string"},{"name":"newLogin","type":"string"}],"name":"setupLoginVipAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"}],"name":"setupAliasAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"Freezen","type":"bool"}],"name":"frozenSubAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"}],"name":"buyVipStatusPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"buyTokenPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"toTransferETHER","type":"address"},{"name":"microToken","type":"uint256"},{"name":"SellDeposit","type":"bool"}],"name":"sellToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"login","type":"string"},{"name":"password","type":"string"}],"name":"depositaryPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Account","type":"address"},{"name":"microToken","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"},{"name":"PIN","type":"uint256"}],"name":"transferFromLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"Login","type":"string"}],"name":"transferToLoginPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"microToken","type":"uint256"}],"name":"returnDepositToBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"PIN","type":"uint256"}],"name":"transferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"PIN","type":"uint256"}],"name":"unblockTransferProtectPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleRefund","type":"uint256"}],"name":"transferRefundSubAccountPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"MainAccount","type":"address"},{"name":"pinMainAccount","type":"uint256"},{"name":"SubAccount","type":"address"},{"name":"pinSubAccount","type":"uint256"},{"name":"promilleReferee","type":"uint256"}],"name":"refereeTransferProtect","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"VipAccount","type":"bool"},{"name":"ActiveAliasAccount","type":"bool"},{"name":"ActiveMainAccount","type":"bool"},{"name":"MainAccount","type":"address"},{"name":"MyReferralAccount","type":"address"}],"name":"MyAccountStatus","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"Deposit","type":"bool"},{"name":"PromilleDeposit","type":"bool"},{"name":"ZoneToken","type":"bool"}],"name":"MyAccountValue","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myMessage","type":"string"}],"name":"advertisingPay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burnToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"Message","type":"string"}],"name":"Advertising","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"microToken","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"PriceVipAccountMicroEther","type":"uint256"},{"indexed":false,"name":"TransferTokensFeeInPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone1InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone2InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone3InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone4InPromille","type":"uint256"},{"indexed":false,"name":"BonusForZone5InPromille","type":"uint256"}],"name":"OptionsContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"microETHER","type":"uint256"}],"name":"TokenSellingRate","type":"event"}]'
},{
"name": "DomainSale",
"address": "0x5fb681680d5c0d6d0c848a9d4527ffb7dfb9151d",
"abi": '[{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"sale","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"invalidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registrar","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"finish","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"minimumBid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionEnds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isBuyable","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_price","type":"uint256"},{"name":"reserve","type":"uint256"},{"name":"referrer","type":"address"}],"name":"offer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"reserve","type":"uint256"}],"name":"Offer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"bid","type":"uint256"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"}],"name":"Cancel","type":"event"}]'
},{
"name": "DomainSale",
"address": "0x5fb681680d5c0d6d0c848a9d4527ffb7dfb9151d",
"abi": '[{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"sale","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"invalidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registrar","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionStarted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"finish","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"minimumBid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"auctionEnds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isBuyable","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"isAuction","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_price","type":"uint256"},{"name":"reserve","type":"uint256"},{"name":"referrer","type":"address"}],"name":"offer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"bidReferrer","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"reserve","type":"uint256"}],"name":"Offer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"bid","type":"uint256"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"seller","type":"address"},{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"}],"name":"Cancel","type":"event"}]'
},{
"name": "??? ENS - Eth Registrar (Auction) ??? ",
"address": "0x21397c1a1f4acd9132fe36df011610564b87e24b",
"abi": '[{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"expiryTimes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"subnode","type":"bytes32"},{"name":"owner","type":"address"}],"name":"register","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"inputs":[{"name":"ensAddr","type":"address"},{"name":"node","type":"bytes32"}],"type":"constructor"}]'
},{
"name": "??? ENS - Eth Registrar (Auction) ??? ",
"address": "0xc19fd9004b5c9789391679de6d766b981db94610",
"abi": '[{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"releaseDeed","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"getAllowedTime","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"unhashedName","type":"string"}],"name":"invalidateName","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"hash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"value","type":"uint256"},{"name":"salt","type":"bytes32"}],"name":"shaBid","outputs":[{"name":"sealedBid","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"bidder","type":"address"},{"name":"seal","type":"bytes32"}],"name":"cancelBid","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"entries","outputs":[{"name":"","type":"uint8"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_value","type":"uint256"},{"name":"_salt","type":"bytes32"}],"name":"unsealBid","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"transferRegistrars","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"sealedBids","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"newOwner","type":"address"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_timestamp","type":"uint256"}],"name":"isAllowed","outputs":[{"name":"allowed","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"finalizeAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"registryStarted","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"launchLength","outputs":[{"name":"","type":"uint32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"sealedBid","type":"bytes32"}],"name":"newBid","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"labels","type":"bytes32[]"}],"name":"eraseNode","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashes","type":"bytes32[]"}],"name":"startAuctions","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hash","type":"bytes32"},{"name":"deed","type":"address"},{"name":"registrationDate","type":"uint256"}],"name":"acceptRegistrarTransfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"startAuction","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"rootNode","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"hashes","type":"bytes32[]"},{"name":"sealedBid","type":"bytes32"}],"name":"startAuctionsAndBid","outputs":[],"payable":true,"type":"function"},{"inputs":[{"name":"_ens","type":"address"},{"name":"_rootNode","type":"bytes32"},{"name":"_startDate","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"bidder","type":"address"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"status","type":"uint8"}],"name":"BidRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"HashReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hash","type":"bytes32"},{"indexed":true,"name":"name","type":"string"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"registrationDate","type":"uint256"}],"name":"HashInvalidated","type":"event"}]'
},{
"name": "ENS - Registry",
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010",
"abi": '[{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"label","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setSubnodeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"ttl","type":"uint64"}],"name":"setTTL","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"ttl","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"label","type":"bytes32"},{"indexed":false,"name":"owner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"ttl","type":"uint64"}],"name":"NewTTL","type":"event"}]'
},{
"name": "ENS - Public Resolver",
"address": "0x4c641fb9bad9b60ef180c31f56051ce826d21a9a",
"abi": '[{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"addr","outputs":[{"name":"ret","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"kind","type":"bytes32"}],"name":"has","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"addr","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"content","outputs":[{"name":"ret","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes32"}],"name":"setContent","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"ensAddr","type":"address"}],"type":"constructor"},{"payable":false,"type":"fallback"}]'
},{
"name": "Mist's Multisig Contract",
"address": "0x0000000000000000000000000000000000000000",
"abi": '[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"removeOwner","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_numOwners","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"m_lastDay","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"resetSpentToday","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_spentToday","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"addOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_required","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_h","type":"bytes32"}],"name":"confirm","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_newLimit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"_r","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"_operation","type":"bytes32"}],"name":"revoke","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_newRequired","type":"uint256"}],"name":"changeRequirement","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_operation","type":"bytes32"},{"name":"_owner","type":"address"}],"name":"hasConfirmed","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"kill","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"changeOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"m_dailyLimit","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"},{"name":"_daylimit","type":"uint256"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"}],"name":"OwnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequirement","type":"uint256"}],"name":"RequirementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"SingleTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MultiTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"initiator","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"ConfirmationNeeded","type":"event"}]'
}]
},{}],9:[function(require,module,exports){
arguments[4][6][0].apply(exports,arguments)
},{"dup":6}],10:[function(require,module,exports){
arguments[4][1][0].apply(exports,arguments)
},{"dup":1}],11:[function(require,module,exports){
'use strict';
var ajaxReq = function ajaxReq() {};
ajaxReq.http = null;
ajaxReq.postSerializer = null;
ajaxReq.getETHvalue = null;
ajaxReq.getRates = null;
module.exports = ajaxReq;
},{}],12:[function(require,module,exports){
'use strict';
var bity = function bity() {};
bity.SERVERURL = "https://bity.myetherapi.com";
bity.decimals = 6;
bity.ethExplorer = 'https://etherscan.io/tx/[[txHash]]';
bity.btcExplorer = 'https://blockchain.info/tx/[[txHash]]';
bity.validStatus = ["RCVE", "FILL", "CONF", "EXEC"];
bity.invalidStatus = ["CANC"];
bity.mainPairs = ['REP', 'ETH'];
bity.min = 0.01;
bity.max = 3;
bity.prototype.priceLoaded = false;
bity.prototype.refreshRates = function (callback) {
var _this = this;
ajaxReq.getRates(function (data) {
_this.curRate = {};
data.forEach(function (pair) {
if (bity.mainPairs.indexOf(pair.pair.substring(3)) != -1) _this.curRate[pair.pair] = parseFloat(pair.rate_we_sell);else if (bity.mainPairs.indexOf(pair.pair.substring(0, 3)) != -1) _this.curRate[pair.pair] = parseFloat(pair.rate_we_buy);else _this.curRate[pair.pair] = parseFloat(pair.rate);
});
_this.priceLoaded = true;
if (callback) callback();
});
};
bity.prototype.openOrder = function (orderInfo, callback) {
var _this = this;
bity.post('/order', orderInfo, callback);
};
bity.prototype.getStatus = function (orderInfo, callback) {
var _this = this;
bity.post('/status', orderInfo, callback);
};
bity.prototype.requireLogin = function (callback) {
if (this.token) callback();else this.login(callback);
};
bity.prototype.login = function (callback) {
var _this = this;
bity.post('/login', {}, function (data) {
_this.token = data.data.token;
if (callback) callback();
});
};
bity.prototype.logout = function (callback) {
var _this = this;
bity.post('/logout', { token: _this.token }, function (data) {
_this.token = null;
if (callback) callback();
});
};
bity.postConfig = {
headers: {
'Content-Type': 'application/json; charset=UTF-8'
}
};
bity.get = function (path, callback) {
ajaxReq.http.get(this.SERVERURL + path).then(function (data) {
callback(data.data);
}, function (data) {
callback({ error: true, msg: "connection error", data: "" });
});
};
bity.post = function (path, data, callback) {
ajaxReq.http.post(this.SERVERURL + path, JSON.stringify(data), bity.postConfig).then(function (data) {
callback(data.data);
}, function (data) {
callback({ error: true, msg: "connection error", data: "" });
});
};
module.exports = bity;
},{}],13:[function(require,module,exports){
'use strict';
var addWalletCtrl = function addWalletCtrl($scope, $sce) {
$scope.showBtnGen = $scope.showBtnUnlock = $scope.showBtnAdd = $scope.showBtnAddWallet = $scope.showAddWallet = $scope.requireFPass = $scope.requirePPass = $scope.showPassTxt = false;
$scope.nickNames = [];
$scope.filePassword = $scope.fileContent = "";
$scope.wallet = null;
$scope.addAccount = {
address: "",
nickName: "",
encStr: "",
password: ""
};
$scope.ajaxReq = ajaxReq;
$scope.nodeType = $scope.ajaxReq.type;
$scope.HDWallet = {
numWallets: 0,
walletsPerDialog: 5,
wallets: [],
id: 0,
hdk: null,
dPath: '',
defaultDPath: "m/44'/60'/0'/0", // first address: m/44'/60'/0'/0/0
alternativeDPath: "m/44'/60'/0'", // first address: m/44'/60'/0/0
customDPath: "m/44'/60'/1'/0", // first address: m/44'/60'/1'/0/0
ledgerPath: "m/44'/60'/0'", // first address: m/44'/60'/0/0
ledgerClassicPath: "m/44'/60'/160720'/0'", // first address: m/44'/60'/160720'/0/0
trezorTestnetPath: "m/44'/1'/0'/0", // first address: m/44'/1'/0'/0/0
trezorClassicPath: "m/44'/61'/0'/0", // first address: m/44'/61'/0'/0/0
trezorPath: "m/44'/60'/0'/0" // first address: m/44'/60'/0'/0/0
};
$scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
$scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
$scope.$watch('ajaxReq.type', function () {
$scope.nodeType = $scope.ajaxReq.type;
});
$scope.$watch('walletType', function () {
if ($scope.walletType == "ledger") {
switch ($scope.nodeType) {
case nodes.nodeTypes.ETH:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
break;
case nodes.nodeTypes.ETC:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerClassicPath;
break;
case nodes.nodeTypes.MUS:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerMusicPath;
break;
default:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
}
} else if ($scope.walletType == "trezor") {
switch ($scope.nodeType) {
case nodes.nodeTypes.ETH:
$scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
break;
case nodes.nodeTypes.ETC:
$scope.HDWallet.dPath = $scope.HDWallet.trezorClassicPath;
break;
case nodes.nodeTypes.MUS:
$scope.HDWallet.dPath = $scope.HDWallet.trezorMusicPath;
break;
case nodes.nodeTypes.Ropsten:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
default:
$scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
}
} else {
$scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
}
});
$scope.onHDDPathChange = function () {
var password = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $scope.mnemonicPassword;
$scope.HDWallet.numWallets = 0;
if ($scope.walletType == 'pastemnemonic') {
$scope.HDWallet.hdk = hd.HDKey.fromMasterSeed(hd.bip39.mnemonicToSeed($scope.manualmnemonic.trim(), password));
$scope.setHDAddresses($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);
} else if ($scope.walletType == 'ledger') {
$scope.scanLedger();
} else if ($scope.walletType == 'trezor') {
$scope.scanTrezor();
}
};
$scope.onCustomHDDPathChange = function () {
$scope.HDWallet.dPath = $scope.HDWallet.customDPath;
$scope.onHDDPathChange();
};
$scope.onPrivKeyChange = function () {
$scope.addWalletStats = "";
$scope.requirePPass = $scope.manualprivkey.length == 128 || $scope.manualprivkey.length == 132;
$scope.showBtnUnlock = $scope.manualprivkey.length == 64;
};
$scope.onPrivKeyPassChange = function () {
$scope.showBtnUnlock = $scope.privPassword.length > 6;
};
$scope.onMnemonicChange = function () {
$scope.addWalletStats = "";
$scope.showBtnUnlock = $scope.showDPaths = hd.bip39.validateMnemonic($scope.manualmnemonic);
};
$scope.showContent = function ($fileContent) {
$scope.notifier.info(globalFuncs.successMsgs[4] + document.getElementById('fselector').files[0].name);
try {
$scope.requireFPass = Wallet.walletRequirePass($fileContent);
$scope.showBtnUnlock = !$scope.requireFPass;
$scope.fileContent = $fileContent;
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.openFileDialog = function ($fileContent) {
$scope.addWalletStats = "";
document.getElementById('fselector').click();
};
$scope.onFilePassChange = function () {
$scope.showBtnUnlock = $scope.filePassword.length >= 0;
};
$scope.setHDAddresses = function (start, limit) {
$scope.HDWallet.wallets = [];
for (var i = start; i < start + limit; i++) {
$scope.HDWallet.wallets.push(new Wallet($scope.HDWallet.hdk.derive($scope.HDWallet.dPath + "/" + i)._privateKey));
$scope.HDWallet.wallets[$scope.HDWallet.wallets.length - 1].setBalance(false);
}
$scope.HDWallet.id = 0;
$scope.HDWallet.numWallets = start + limit;
};
$scope.AddRemoveHDAddresses = function (isAdd) {
if (isAdd) $scope.setHDAddresses($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);else $scope.setHDAddresses($scope.HDWallet.numWallets - 2 * $scope.HDWallet.walletsPerDialog, $scope.HDWallet.walletsPerDialog);
};
$scope.setHDWallet = function () {
$scope.wallet = $scope.HDWallet.wallets[$scope.HDWallet.id];
$scope.mnemonicModel.close();
$scope.addAccount.address = $scope.wallet.getAddressString();
$scope.notifier.info(globalFuncs.successMsgs[1]);
$scope.showAddWallet = true;
$scope.showPassTxt = $scope.addAccount.password == '';
$scope.setBalance();
};
$scope.decryptWallet = function () {
$scope.wallet = null;
$scope.addWalletStats = "";
try {
if ($scope.walletType == "pasteprivkey" && $scope.requirePPass) {
$scope.wallet = Wallet.fromMyEtherWalletKey($scope.manualprivkey, $scope.privPassword);
$scope.addAccount.password = $scope.privPassword;
} else if ($scope.walletType == "pasteprivkey" && !$scope.requirePPass) {
$scope.wallet = new Wallet($scope.manualprivkey);
$scope.addAccount.password = '';
} else if ($scope.walletType == "fileupload") {
$scope.wallet = Wallet.getWalletFromPrivKeyFile($scope.fileContent, $scope.filePassword);
$scope.addAccount.password = $scope.filePassword;
} else if ($scope.walletType == "pastemnemonic") {
$scope.mnemonicModel.open();
$scope.HDWallet.hdk = hd.HDKey.fromMasterSeed(hd.bip39.mnemonicToSeed($scope.manualmnemonic.trim()));
$scope.HDWallet.numWallets = 0;
$scope.setHDAddresses($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);
}
} catch (e) {
$scope.notifier.danger(globalFuncs.errorMsgs[6] + e);
}
if ($scope.wallet != null) {
$scope.addAccount.address = $scope.wallet.getAddressString();
$scope.notifier.info(globalFuncs.successMsgs[1]);
$scope.showAddWallet = true;
$scope.showPassTxt = $scope.addAccount.password == '';
$scope.setBalance();
}
};
$scope.setNickNames = function () {
cxFuncs.getAllNickNames(function (nicks) {
$scope.nickNames = nicks;
});
};
$scope.setNickNames();
$scope.newWalletChange = function (varStatus, shwbtn) {
if ($scope.addAccount.nickName != "" && $scope.nickNames.indexOf($scope.addAccount.nickName) == -1 && $scope.addAccount.password.length > 8) $scope[shwbtn] = true;else $scope[shwbtn] = false;
if ($scope.nickNames.indexOf($scope.addAccount.nickName) !== -1) $scope.notifier.danger(globalFuncs.errorMsgs[13]);
};
$scope.watchOnlyChange = function () {
if ($scope.addAccount.address != "" && $scope.addAccount.nickName != "" && $scope.nickNames.indexOf($scope.addAccount.nickName) == -1 && ethFuncs.validateEtherAddress($scope.addAccount.address)) $scope.showBtnAdd = true;else $scope.showBtnAdd = false;
if ($scope.addAccount.address != "" && !ethFuncs.validateEtherAddress($scope.addAccount.address)) $scope.notifier.danger(globalFuncs.errorMsgs[5]);else if ($scope.nickNames.indexOf($scope.addAccount.nickName) !== -1) $scope.notifier.danger(globalFuncs.errorMsgs[13]);
};
$scope.addWatchOnly = function () {
if ($scope.nickNames.indexOf($scope.addAccount.nickName) !== -1) {
$scope.notifier.danger(globalFuncs.errorMsgs[13]);
return;
} else if ($scope.nickNames.indexOf(ethUtil.toChecksumAddress($scope.addAccount.address)) !== -1) {
$scope.notifier.danger(globalFuncs.errorMsgs[16]);
return;
}
cxFuncs.addWatchOnlyAddress($scope.addAccount.address, $scope.addAccount.nickName, function () {
if (chrome.runtime.lastError) {
$scope.notifier.danger(chrome.runtime.lastError.message);
} else {
$scope.notifier.info(globalFuncs.successMsgs[3] + $scope.addAccount.address);
$scope.setNickNames();
}
$scope.$apply();
});
};
$scope.isStrongPass = function (pass) {
return pass.length > 3;
};
$scope.$watch('walletType', function () {
$scope.showBtnGen = $scope.showBtnUnlock = $scope.showBtnAdd = $scope.showAddWallet = false;
$scope.addNewNick = $scope.addNewPass = "";
$scope.addWalletStats = "";
$scope.addAccount = {
address: "",
nickName: "",
encStr: "",
password: ""
};
$scope.requireFPass = false;
$scope.fileContent = null;
$scope.manualprivkey = null;
$scope.requirePPass = false;
$scope.manualmnemonic = null;
});
$scope.addWalletToStorage = function () {
if ($scope.nickNames.indexOf($scope.addAccount.nickName) !== -1) {
$scope.notifier.danger(globalFuncs.errorMsgs[13]);
return;
} else if ($scope.nickNames.indexOf(ethUtil.toChecksumAddress($scope.addAccount.address)) !== -1) {
$scope.notifier.danger(globalFuncs.errorMsgs[16]);
return;
}
cxFuncs.addWalletToStorage($scope.addAccount.address, $scope.addAccount.encStr, $scope.addAccount.nickName, function () {
if (chrome.runtime.lastError) {
$scope.notifier.danger(chrome.runtime.lastError.message);
} else {
$scope.notifier.info(globalFuncs.successMsgs[3] + $scope.addAccount.address);
$scope.setNickNames();
}
$scope.$apply();
});
};
$scope.importWalletToStorage = function () {
if (!globalFuncs.isStrongPass($scope.addAccount.password)) {
$scope.notifier.danger(globalFuncs.errorMsgs[1]);
return;
}
var wStr = $scope.wallet.toV3($scope.addAccount.password, {
kdf: globalFuncs.kdf,
n: globalFuncs.scrypt.n
});
$scope.addAccount.encStr = JSON.stringify(wStr);
$scope.addWalletToStorage();
};
$scope.generateWallet = function () {
var wallet = Wallet.generate(false);
var wStr = wallet.toV3($scope.addAccount.password, {
kdf: globalFuncs.kdf,
n: globalFuncs.scrypt.n
});
$scope.addAccount.encStr = JSON.stringify(wStr);
$scope.addAccount.address = wallet.getAddressString();
$scope.addWalletToStorage('addWalletStats');
};
$scope.setBalance = function () {
ajaxReq.getBalance($scope.wallet.getAddressString(), function (data) {
if (data.error) {
$scope.etherBalance = data.msg;
} else {
$scope.etherBalance = etherUnits.toEther(data.data.balance, 'wei');
ajaxReq.getETHvalue(function (data) {
$scope.usdBalance = etherUnits.toFiat($scope.etherBalance, 'ether', data.usd);
$scope.eurBalance = etherUnits.toFiat($scope.etherBalance, 'ether', data.eur);
$scope.btcBalance = etherUnits.toFiat($scope.etherBalance, 'ether', data.btc);
});
}
});
};
};
module.exports = addWalletCtrl;
},{}],14:[function(require,module,exports){
'use strict';
var cxDecryptWalletCtrl = function cxDecryptWalletCtrl($scope, $sce, walletService) {
$scope.allWallets = [];
$scope.selectedWallet = $scope.password = "";
$scope.setAllWallets = function () {
cxFuncs.getWalletsArr(function (wlts) {
$scope.allWallets = wlts;
$scope.updateBalance();
$scope.$apply();
});
};
$scope.updateBalance = function () {
for (var i = 0; i < $scope.allWallets.length; i++) {
$scope.setBalance($scope.allWallets[i].addr, i);
}
};
$scope.setBalance = function (address, id) {
ajaxReq.getBalance(address, function (data) {
if (data.error) {
$scope.allWallets[id].balance = data.msg;
} else {
$scope.allWallets[id].balance = etherUnits.toEther(data.data.balance, 'wei');
}
});
};
$scope.setAllWallets();
$scope.getPrivFromAdd = function () {
if ($scope.selectedWallet == "") throw globalFuncs.errorMsgs[5];
for (var i = 0; i < $scope.allWallets.length; i++) {
if ($scope.allWallets[i].addr == $scope.selectedWallet) return $scope.allWallets[i].priv;
}
throw globalFuncs.errorMsgs[14];
};
$scope.decryptWallet = function () {
$scope.wallet = null;
try {
var priv = $scope.getPrivFromAdd();
if (priv.length == 132) $scope.wallet = Wallet.fromMyEtherWalletKey(priv, $scope.password);else $scope.wallet = Wallet.getWalletFromPrivKeyFile(priv, $scope.password);
walletService.password = $scope.password;
walletService.wallet = $scope.wallet;
} catch (e) {
$scope.notifier.danger(globalFuncs.errorMsgs[6] + ":" + e);
}
if ($scope.wallet != null) $scope.notifier.info(globalFuncs.successMsgs[1]);
};
};
module.exports = cxDecryptWalletCtrl;
},{}],15:[function(require,module,exports){
'use strict';
var mainPopCtrl = function mainPopCtrl($scope, $sce) {
$scope.allWallets = [];
$scope.allWatchOnly = [];
$scope.setAllWallets = function () {
cxFuncs.getWalletsArr(function (wlts) {
$scope.allWallets = wlts;
$scope.updateBalance('allWallets');
});
cxFuncs.getWatchOnlyArr(function (wlts) {
$scope.allWatchOnly = wlts;
$scope.updateBalance('allWatchOnly');
$scope.$apply();
});
};
$scope.updateBalance = function (varWal) {
for (var i = 0; i < $scope[varWal].length; i++) {
$scope.setBalance($scope[varWal][i].addr, i, varWal);
}
};
$scope.setBalance = function (address, id, varWal) {
ajaxReq.getBalance(address, function (data) {
if (data.error) {
$scope[varWal][id].balance = data.msg;
} else {
$scope[varWal][id].balance = etherUnits.toEther(data.data.balance, 'wei');
$scope[varWal][id].balanceR = new BigNumber($scope[varWal][id].balance).toPrecision(5);
}
});
};
$scope.setAllWallets();
};
module.exports = mainPopCtrl;
},{}],16:[function(require,module,exports){
'use strict';
var myWalletsCtrl = function myWalletsCtrl($scope, $sce, walletService) {
$scope.editModal = new Modal(document.getElementById('editWallet'));
$scope.viewModal = new Modal(document.getElementById('viewWalletDetails'));
$scope.removeModal = new Modal(document.getElementById('removeWallet'));
$scope.allWallets = [];
$scope.allWatchOnly = [];
$scope.nickNames = [];
$scope.fiatVal = {
usd: 0,
eur: 0,
btc: 0
};
$scope.viewWallet = {};
$scope.ajaxReq = ajaxReq;
$scope.setNickNames = function () {
cxFuncs.getAllNickNames(function (nicks) {
$scope.nickNames = nicks;
});
};
$scope.setAllWallets = function () {
cxFuncs.getWalletsArr(function (wlts) {
$scope.allWallets = wlts;
$scope.updateBalance('allWallets');
$scope.setTokens('allWallets');
});
cxFuncs.getWatchOnlyArr(function (wlts) {
$scope.allWatchOnly = wlts;
$scope.updateBalance('allWatchOnly');
$scope.setTokens('allWatchOnly');
});
};
$scope.$watch('ajaxReq.key', function () {
if ($scope.allWallets) {
$scope.updateBalance('allWallets');
$scope.setTokens('allWallets');
}
if ($scope.allWatchOnly) {
$scope.updateBalance('allWatchOnly');
$scope.setTokens('allWatchOnly');
}
});
$scope.setTokens = function (varWal) {
for (var j = 0; j < $scope[varWal].length; j++) {
$scope.tokens = Token.popTokens;
$scope[varWal][j].tokens = [];
for (var i = 0; i < $scope.tokens.length; i++) {
$scope[varWal][j].tokens.push(new Token($scope.tokens[i].address, $scope[varWal][j].addr, $scope.tokens[i].symbol, $scope.tokens[i].decimal));
$scope[varWal][j].tokens[$scope[varWal][j].tokens.length - 1].setBalance();
}
var storedTokens = globalFuncs.localStorage.getItem("localTokens", null) != null ? JSON.parse(globalFuncs.localStorage.getItem("localTokens")) : [];
for (var i = 0; i < storedTokens.length; i++) {
$scope[varWal][j].tokens.push(new Token(storedTokens[i].contractAddress, $scope[varWal][j].addr, globalFuncs.stripTags(storedTokens[i].symbol), storedTokens[i].decimal));
$scope[varWal][j].tokens[$scope[varWal][j].tokens.length - 1].setBalance();
}
}
};
$scope.updateBalance = function (varWal) {
for (var i = 0; i < $scope[varWal].length; i++) {
$scope.setBalance($scope[varWal][i].addr, i, varWal);
}
};
$scope.setBalance = function (address, id, varWal) {
ajaxReq.getBalance(address, function (data) {
if (data.error) {
$scope[varWal][id].balance = data.msg;
} else {
$scope[varWal][id].balance = etherUnits.toEther(data.data.balance, 'wei');
$scope[varWal][id].balanceR = new BigNumber($scope[varWal][id].balance).toPrecision(5);
$scope[varWal][id].usd = etherUnits.toFiat($scope[varWal][id].balance, 'ether', $scope.fiatVal.usd);
$scope[varWal][id].eur = etherUnits.toFiat($scope[varWal][id].balance, 'ether', $scope.fiatVal.eur);
$scope[varWal][id].btc = etherUnits.toFiat($scope[varWal][id].balance, 'ether', $scope.fiatVal.btc);
$scope[varWal][id].balance = $scope.wallet.setBalance();
$scope[varWal][id].balanceR = $scope.wallet.setTokens();
}
});
};
$scope.setViewWalletObj = function (val, type) {
var vtype = 'allWallets';
if (type == 'watchOnly') vtype = 'allWatchOnly';
$scope.viewWallet = {
nick: $scope[vtype][val].nick,
addr: $scope[vtype][val].addr,
id: val,
type: type
};
};
$scope.editMWallet = function (val, type) {
$scope.setViewWalletObj(val, type);
$scope.editModal.open();
};
$scope.editSave = function () {
if ($scope.nickNames.indexOf($scope.viewWallet.nick) !== -1) {
$scope.notifier.danger(globalFuncs.errorMsgs[13]);
} else {
cxFuncs.editNickName($scope.viewWallet.addr, $scope.viewWallet.nick, function () {
if (chrome.runtime.lastError) $scope.notifier.danger(chrome.runtime.lastError.message);else {
$scope.setAllWallets();
$scope.setNickNames();
$scope.editModal.close();
}
});
}
};
$scope.viewMWallet = function (val, type) {
$scope.setViewWalletObj(val, type);
$scope.viewModal.open();
};
$scope.decryptWallet = function () {
$scope.wallet = null;
try {
var priv = $scope.allWallets[$scope.viewWallet.id].priv;
if (priv.length == 132) $scope.wallet = Wallet.fromMyEtherWalletKey(priv, $scope.password);else $scope.wallet = Wallet.getWalletFromPrivKeyFile(priv, $scope.password);
$scope.viewModal.close();
$scope.setWalletInfo();
$scope.password = "";
} catch (e) {
$scope.notifier.danger(globalFuncs.errorMsgs[6] + ":" + e);
}
};
$scope.printQRCode = function () {
globalFuncs.printPaperWallets(JSON.stringify([{
address: $scope.wallet.getChecksumAddressString(),
private: $scope.wallet.getPrivateKeyString()
}]));
};
$scope.resetWallet = function () {
$scope.wallet = null;
walletService.wallet = null;
walletService.password = '';
$scope.blob = $scope.blobEnc = $scope.password = "";
};
$scope.setWalletInfo = function () {
walletService.wallet = $scope.wallet;
walletService.password = $scope.password;
};
$scope.deleteWalletMsg = function (val, type) {
$scope.setViewWalletObj(val, type);
$scope.removeModal.open();
};
$scope.deleteWallet = function () {
cxFuncs.deleteAccount($scope.viewWallet.addr, function () {
$scope.setAllWallets();
$scope.setNickNames();
$scope.removeModal.close();
});
};
ajaxReq.getETHvalue(function (data) {
$scope.fiatVal.usd = data.usd;
$scope.fiatVal.eur = data.eur;
$scope.fiatVal.btc = data.btc;
$scope.setAllWallets();
});
$scope.setNickNames();
};
module.exports = myWalletsCtrl;
},{}],17:[function(require,module,exports){
'use strict';
var quickSendCtrl = function quickSendCtrl($scope, $sce) {
$scope.allWallets = [];
$scope.selectedWallet = "";
$scope.showConfirm = false;
$scope.tx = {
gasLimit: globalFuncs.defaultTxGasLimit,
data: "",
to: "",
unit: "ether",
value: "",
nonce: null,
gasPrice: null,
donate: false
};
$scope.setAllWallets = function () {
cxFuncs.getWalletsArr(function (wlts) {
$scope.allWallets = wlts;
$scope.updateBalance('allWallets');
});
};
$scope.updateBalance = function (varWal) {
for (var i = 0; i < $scope[varWal].length; i++) {
$scope.setBalance($scope[varWal][i].addr, i, varWal);
}
};
$scope.setBalance = function (address, id, varWal) {
ajaxReq.getBalance(address, function (data) {
if (data.error) {
$scope[varWal][id].balance = data.msg;
} else {
$scope[varWal][id].balance = etherUnits.toEther(data.data.balance, 'wei');
$scope[varWal][id].balanceR = new BigNumber($scope[varWal][id].balance).toPrecision(5);
}
});
};
$scope.validateAddress = function () {
if (ethFuncs.validateEtherAddress($scope.tx.to)) {
$scope.validateAddressStatus = $sce.trustAsHtml(globalFuncs.getSuccessText(globalFuncs.successMsgs[0]));
} else {
$scope.validateAddressStatus = $sce.trustAsHtml(globalFuncs.getDangerText(globalFuncs.errorMsgs[5]));
}
};
$scope.transferAllBalance = function () {
$scope.wallet = {};
$scope.wallet.getAddressString = function () {
return $scope.allWallets[$scope.selectedWallet].addr;
};
uiFuncs.transferAllBalance($scope.wallet.getAddressString(), $scope.tx.gasLimit, function (resp) {
if (!resp.isError) {
$scope.tx.unit = resp.unit;
$scope.tx.value = resp.value;
} else {
$scope.validateTxStatus = $sce.trustAsHtml(resp.error);
}
});
};
$scope.prepTX = function () {
try {
if (!ethFuncs.validateEtherAddress($scope.tx.to)) throw globalFuncs.errorMsgs[5];else if (!globalFuncs.isNumeric($scope.tx.value) || parseFloat($scope.tx.value) < 0) throw globalFuncs.errorMsgs[0];
$scope.showConfirm = true;
} catch (e) {
$scope.prepTXStatus = $sce.trustAsHtml(globalFuncs.getDangerText(e));
}
};
$scope.unlockAndSend = function () {
try {
$scope.decryptWallet();
var txData = uiFuncs.getTxData($scope);
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
uiFuncs.sendTx(rawTx.signedTx, function (resp) {
if (!resp.isError) {
$scope.sendTxStatus = $sce.trustAsHtml(globalFuncs.getSuccessText(globalFuncs.successMsgs[2] + "<br />" + resp.data + "<br /><a href='http://etherscan.io/tx/" + resp.data + "' target='_blank' rel='noopener'> ETH TX via EtherScan.io </a>"));
$scope.setBalance();
} else {
$scope.sendTxStatus = $sce.trustAsHtml(globalFuncs.getDangerText(resp.error));
}
});
$scope.validateTxStatus = $sce.trustAsHtml(globalFuncs.getDangerText(''));
} else {
$scope.validateTxStatus = $sce.trustAsHtml(globalFuncs.getDangerText(rawTx.error));
}
});
} catch (e) {
$scope.validateTxStatus = $sce.trustAsHtml(globalFuncs.getDangerText(e));
}
};
$scope.decryptWallet = function () {
$scope.wallet = null;
$scope.validateTxStatus = "";
$scope.wallet = Wallet.getWalletFromPrivKeyFile($scope.allWallets[$scope.selectedWallet].priv, $scope.password);
};
$scope.selectedWallet = "";
$scope.password = "";
$scope.$parent.selectedWallet = "";
$scope.tx.to = "";
$scope.tx.value = "";
$scope.setAllWallets();
};
module.exports = quickSendCtrl;
},{}],18:[function(require,module,exports){
'use strict';
var bulkGenCtrl = function bulkGenCtrl($scope) {
$scope.showWallets = false;
$scope.genWallets = function () {
if ($scope.amount == '' || $scope.amount != parseInt($scope.amount, 10)) alert(globalFuncs.errorMsgs[0]);else {
$scope.wallets = [];
var csv = '';var txt = '';
$scope.jsonWallets = [];
for (var i = 0; i < $scope.amount; i++) {
var tWallet = Wallet.generate(false);
csv += tWallet.getChecksumAddressString() + ',' + tWallet.getPrivateKeyString() + '\n';
txt += tWallet.getChecksumAddressString() + '\t' + tWallet.getPrivateKeyString() + '\n';
$scope.jsonWallets.push({
address: tWallet.getChecksumAddressString(),
private: tWallet.getPrivateKeyString()
});
$scope.wallets.push(tWallet);
}
$scope.showWallets = true;
$scope.bJSON = globalFuncs.getBlob("text/json;charset=UTF-8", JSON.stringify($scope.jsonWallets));
$scope.bTXT = globalFuncs.getBlob("text/plain;charset=UTF-8", txt);
$scope.bCSV = globalFuncs.getBlob("text/csv;charset=UTF-8", csv);
}
};
$scope.printQRCode = function () {
globalFuncs.printPaperWallets(JSON.stringify($scope.jsonWallets));
};
};
module.exports = bulkGenCtrl;
},{}],19:[function(require,module,exports){
'use strict';
var contractsCtrl = function contractsCtrl($scope, $sce, walletService) {
$scope.ajaxReq = ajaxReq;
walletService.wallet = null;
$scope.visibility = "interactView";
$scope.sendContractModal = new Modal(document.getElementById('sendContract'));
$scope.showReadWrite = false;
$scope.sendTxModal = new Modal(document.getElementById('deployContract'));
$scope.Validator = Validator;
$scope.tx = {
gasLimit: '',
data: '',
to: '',
unit: "ether",
value: 0,
nonce: null,
gasPrice: null
};
$scope.contract = {
address: globalFuncs.urlGet('address') != null && $scope.Validator.isValidAddress(globalFuncs.urlGet('address')) ? globalFuncs.urlGet('address') : '',
abi: '',
functions: [],
selectedFunc: null
};
$scope.selectedAbi = ajaxReq.abiList[0];
$scope.showRaw = false;
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
$scope.wd = true;
$scope.tx.nonce = 0;
});
$scope.$watch('visibility', function (newValue, oldValue) {
$scope.tx = {
gasLimit: '',
data: '',
to: '',
unit: "ether",
value: 0,
nonce: null,
gasPrice: null
};
});
$scope.$watch('tx', function (newValue, oldValue) {
$scope.showRaw = false;
if (newValue.gasLimit == oldValue.gasLimit && $scope.Validator.isValidHex($scope.tx.data) && $scope.tx.data != '' && $scope.Validator.isPositiveNumber($scope.tx.value)) {
if ($scope.estimateTimer) clearTimeout($scope.estimateTimer);
$scope.estimateTimer = setTimeout(function () {
$scope.estimateGasLimit();
}, 50);
}
}, true);
$scope.$watch('contract.address', function (newValue, oldValue) {
if ($scope.Validator.isValidAddress($scope.contract.address)) {
for (var i in ajaxReq.abiList) {
if (ajaxReq.abiList[i].address.toLowerCase() == $scope.contract.address.toLowerCase()) {
$scope.contract.abi = ajaxReq.abiList[i].abi;
break;
}
}
}
});
$scope.selectExistingAbi = function (index) {
$scope.selectedAbi = ajaxReq.abiList[index];
$scope.contract.address = $scope.selectedAbi.address;
$scope.addressDrtv.ensAddressField = $scope.selectedAbi.address;
$scope.addressDrtv.showDerivedAddress = false;
$scope.dropdownExistingContracts = false;
$scope.contract.selectedFunc = null;
$scope.dropdownContracts = false;
if ($scope.initContractTimer) clearTimeout($scope.initContractTimer);
$scope.initContractTimer = setTimeout(function () {
$scope.initContract();
}, 50);
};
$scope.estimateGasLimit = function () {
var estObj = {
from: $scope.wallet != null ? $scope.wallet.getAddressString() : globalFuncs.donateAddress,
value: ethFuncs.sanitizeHex(ethFuncs.decimalToHex(etherUnits.toWei($scope.tx.value, $scope.tx.unit))),
data: ethFuncs.sanitizeHex($scope.tx.data)
};
if ($scope.tx.to != '') estObj.to = $scope.tx.to;
ethFuncs.estimateGas(estObj, function (data) {
if (!data.error) $scope.tx.gasLimit = data.data;
});
};
$scope.generateTx = function () {
try {
if ($scope.wallet == null) throw globalFuncs.errorMsgs[3];else if (!ethFuncs.validateHexString($scope.tx.data)) throw globalFuncs.errorMsgs[9];else if (!globalFuncs.isNumeric($scope.tx.gasLimit) || parseFloat($scope.tx.gasLimit) <= 0) throw globalFuncs.errorMsgs[8];
$scope.tx.data = ethFuncs.sanitizeHex($scope.tx.data);
ajaxReq.getTransactionData($scope.wallet.getAddressString(), function (data) {
if (data.error) $scope.notifier.danger(data.msg);
data = data.data;
$scope.tx.to = $scope.tx.to == '' ? '0xCONTRACT' : $scope.tx.to;
$scope.tx.contractAddr = $scope.tx.to == '0xCONTRACT' ? ethFuncs.getDeteministicContractAddress($scope.wallet.getAddressString(), data.nonce) : '';
var txData = uiFuncs.getTxData($scope);
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.rawTx = rawTx.rawTx;
$scope.signedTx = rawTx.signedTx;
$scope.showRaw = true;
} else {
$scope.showRaw = false;
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
});
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.sendTx = function () {
$scope.sendTxModal.close();
$scope.sendContractModal.close();
uiFuncs.sendTx($scope.signedTx, function (resp) {
if (!resp.isError) {
var bExStr = $scope.ajaxReq.type != nodes.nodeTypes.Custom ? "<a href='" + $scope.ajaxReq.blockExplorerTX.replace("[[txHash]]", resp.data) + "' target='_blank' rel='noopener'> View your transaction </a>" : '';
var contractAddr = $scope.tx.contractAddr != '' ? " & Contract Address <a href='" + ajaxReq.blockExplorerAddr.replace('[[address]]', $scope.tx.contractAddr) + "' target='_blank' rel='noopener'>" + $scope.tx.contractAddr + "</a>" : '';
$scope.notifier.success(globalFuncs.successMsgs[2] + "<br />" + resp.data + "<br />" + bExStr + contractAddr);
} else {
$scope.notifier.danger(resp.error);
}
});
};
$scope.setVisibility = function (str) {
$scope.visibility = str;
};
$scope.selectFunc = function (index) {
$scope.contract.selectedFunc = { name: $scope.contract.functions[index].name, index: index };
if (!$scope.contract.functions[index].inputs.length) {
$scope.readFromContract();
$scope.showRead = false;
} else $scope.showRead = true;
$scope.dropdownContracts = !$scope.dropdownContracts;
};
$scope.getTxData = function () {
var curFunc = $scope.contract.functions[$scope.contract.selectedFunc.index];
var fullFuncName = ethUtil.solidityUtils.transformToFullName(curFunc);
var funcSig = ethFuncs.getFunctionSignature(fullFuncName);
var typeName = ethUtil.solidityUtils.extractTypeName(fullFuncName);
var types = typeName.split(',');
types = types[0] == "" ? [] : types;
var values = [];
for (var i in curFunc.inputs) {
if (curFunc.inputs[i].value) {
if (curFunc.inputs[i].type.indexOf('[') !== -1 && curFunc.inputs[i].type.indexOf(']') !== -1) values.push(curFunc.inputs[i].value.split(','));else values.push(curFunc.inputs[i].value);
} else values.push('');
}
return '0x' + funcSig + ethUtil.solidityCoder.encodeParams(types, values);
};
$scope.readFromContract = function () {
ajaxReq.getEthCall({ to: $scope.contract.address, data: $scope.getTxData() }, function (data) {
if (!data.error) {
var curFunc = $scope.contract.functions[$scope.contract.selectedFunc.index];
var outTypes = curFunc.outputs.map(function (i) {
return i.type;
});
var decoded = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''));
for (var i in decoded) {
if (decoded[i] instanceof BigNumber) curFunc.outputs[i].value = decoded[i].toFixed(0);else curFunc.outputs[i].value = decoded[i];
}
} else throw data.msg;
});
};
$scope.initContract = function () {
try {
if (!$scope.Validator.isValidAddress($scope.contract.address)) throw globalFuncs.errorMsgs[5];else if (!$scope.Validator.isJSON($scope.contract.abi)) throw globalFuncs.errorMsgs[26];
$scope.contract.functions = [];
var tAbi = JSON.parse($scope.contract.abi);
for (var i in tAbi) {
if (tAbi[i].type == "function") {
tAbi[i].inputs.map(function (i) {
i.value = '';
});
$scope.contract.functions.push(tAbi[i]);
}
}$scope.showReadWrite = true;
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateContractTx = function () {
if (!$scope.wd) {
$scope.notifier.danger(globalFuncs.errorMsgs[3]);
return;
}
$scope.tx.data = $scope.getTxData();
$scope.tx.to = $scope.contract.address;
$scope.sendContractModal.open();
};
};
module.exports = contractsCtrl;
},{}],20:[function(require,module,exports){
(function (Buffer){
'use strict';
var decryptWalletCtrl = function decryptWalletCtrl($scope, $sce, walletService) {
$scope.walletType = "";
$scope.requireFPass = $scope.requirePPass = $scope.showFDecrypt = $scope.showPDecrypt = $scope.showAOnly = $scope.showParityDecrypt = false;
$scope.filePassword = "";
$scope.fileContent = "";
$scope.Validator = Validator;
$scope.isSSL = window.location.protocol == 'https:';
$scope.ajaxReq = ajaxReq;
$scope.nodeType = $scope.ajaxReq.type;
$scope.HDWallet = {
numWallets: 0,
walletsPerDialog: 5,
wallets: [],
id: 0,
hdk: null,
dPath: '',
defaultDPath: "m/44'/60'/0'/0", // first address: m/44'/60'/0'/0/0
alternativeDPath: "m/44'/60'/0'", // first address: m/44'/60'/0/0
customDPath: "m/44'/60'/1'/0", // first address: m/44'/60'/1'/0/0
ledgerPath: "m/44'/60'/0'", // first address: m/44'/60'/0/0
ledgerClassicPath: "m/44'/60'/160720'/0'", // first address: m/44'/60'/160720'/0/0
trezorTestnetPath: "m/44'/1'/0'/0", // first address: m/44'/1'/0'/0/0
trezorClassicPath: "m/44'/61'/0'/0", // first address: m/44'/61'/0'/0/0
trezorPath: "m/44'/60'/0'/0", // first address: m/44'/60'/0'/0/0
hwUbqPath: "m/44'/108'/0'/0", // first address: m/44'/40'/0'/0/0
hwExpansePath: "m/44'/40'/0'/0", // first address: m/44'/40'/0'/0/0
hwEllaismPath: "m/44'/163'/0'/0", // first address: m/44'/163'/0'/0/0
singularDTVPath: "m/0'/0'/0'", // first address: m/0'/0'/0'/0
hwRskPath: "m/44'/137'/0'/0" // first address : m/44'/137'/0'/0/0
};
$scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
$scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
$scope.$watch('ajaxReq.type', function () {
$scope.nodeType = $scope.ajaxReq.type;
$scope.setdPath();
});
$scope.$watch('walletType', function () {
$scope.setdPath();
});
$scope.setdPath = function () {
if ($scope.walletType == "ledger") {
switch ($scope.nodeType) {
case nodes.nodeTypes.ETH:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
break;
case nodes.nodeTypes.ETC:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerClassicPath;
break;
case nodes.nodeTypes.EXP:
$scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
break;
case nodes.nodeTypes.UBQ:
$scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
break;
default:
$scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
}
} else if ($scope.walletType == "trezor") {
switch ($scope.nodeType) {
case nodes.nodeTypes.ETH:
$scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
break;
case nodes.nodeTypes.ETC:
$scope.HDWallet.dPath = $scope.HDWallet.trezorClassicPath;
break;
case nodes.nodeTypes.Ropsten:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.Rinkeby:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.Kovan:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.EXP:
$scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
break;
case nodes.nodeTypes.UBQ:
$scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
break;
case nodes.nodeTypes.RSK:
$scope.HDWallet.dPath = $scope.HDWallet.hwRskPath;
break;
case nodes.nodeTypes.ELLA:
$scope.HDWallet.dPath = $scope.HDWallet.hwEllaismPath;
break;
default:
$scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
}
} else {
switch ($scope.nodeType) {
case nodes.nodeTypes.ETH:
$scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
break;
case nodes.nodeTypes.ETC:
$scope.HDWallet.dPath = $scope.HDWallet.trezorClassicPath;
break;
case nodes.nodeTypes.Ropsten:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.Rinkeby:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.Kovan:
$scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
break;
case nodes.nodeTypes.EXP:
$scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
break;
case nodes.nodeTypes.UBQ:
$scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
break;
default:
$scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
}
}
};
$scope.onHDDPathChange = function () {
var password = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $scope.mnemonicPassword;
$scope.HDWallet.numWallets = 0;
if ($scope.walletType == 'pastemnemonic') {
$scope.HDWallet.hdk = hd.HDKey.fromMasterSeed(hd.bip39.mnemonicToSeed($scope.manualmnemonic.trim(), password));
$scope.setHDAddresses($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);
} else if ($scope.walletType == 'ledger') {
$scope.scanLedger();
} else if ($scope.walletType == 'trezor') {
$scope.scanTrezor();
} else if ($scope.walletType == 'digitalBitbox') {
$scope.scanDigitalBitbox();
}
};
$scope.onCustomHDDPathChange = function () {
$scope.HDWallet.dPath = $scope.HDWallet.customDPath;
$scope.onHDDPathChange();
};
$scope.showContent = function ($fileContent) {
$scope.notifier.info(globalFuncs.successMsgs[4] + document.getElementById('fselector').files[0].name);
try {
$scope.requireFPass = Wallet.walletRequirePass($fileContent);
$scope.showFDecrypt = !$scope.requireFPass;
$scope.fileContent = $fileContent;
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.openFileDialog = function ($fileContent) {
$scope.showAOnly = false;
document.getElementById('fselector').click();
};
$scope.onFilePassChange = function () {
$scope.showAOnly = false;
$scope.showFDecrypt = $scope.filePassword.length >= 0;
};
$scope.onPrivKeyChange = function () {
$scope.showAOnly = false;
var manualprivkey = fixPkey($scope.manualprivkey);
$scope.requirePPass = manualprivkey.length == 128 || manualprivkey.length == 132;
$scope.showPDecrypt = manualprivkey.length == 64;
};
$scope.onPrivKeyPassChange = function () {
$scope.showAOnly = false;
$scope.showPDecrypt = $scope.privPassword.length > 0;
};
$scope.onMnemonicChange = function () {
$scope.showAOnly = false;
$scope.showMDecrypt = hd.bip39.validateMnemonic($scope.manualmnemonic);
};
$scope.onParityPhraseChange = function () {
if ($scope.parityPhrase) $scope.showParityDecrypt = true;else $scope.showParityDecrypt = false;
};
$scope.onAddressChange = function () {
$scope.requireFPass = $scope.requirePPass = $scope.showFDecrypt = $scope.showPDecrypt = $scope.showParityDecrypt = false;
$scope.showAOnly = $scope.Validator.isValidAddress($scope.addressOnly);
};
$scope.setHDAddresses = function (start, limit) {
$scope.HDWallet.wallets = [];
for (var i = start; i < start + limit; i++) {
$scope.HDWallet.wallets.push(new Wallet($scope.HDWallet.hdk.derive($scope.HDWallet.dPath + "/" + i)._privateKey));
$scope.HDWallet.wallets[$scope.HDWallet.wallets.length - 1].setBalance(false);
}
$scope.HDWallet.id = 0;
$scope.HDWallet.numWallets = start + limit;
};
$scope.setHDAddressesHWWallet = function (start, limit, ledger) {
$scope.HDWallet.wallets = [];
for (var i = start; i < start + limit; i++) {
var derivedKey = $scope.HDWallet.hdk.derive("m/" + i);
if ($scope.walletType == "ledger") {
$scope.HDWallet.wallets.push(new Wallet(undefined, derivedKey.publicKey, $scope.HDWallet.dPath + "/" + i, $scope.walletType, $scope.ledger));
} else if ($scope.walletType == "digitalBitbox") {
$scope.HDWallet.wallets.push(new Wallet(undefined, derivedKey.publicKey, $scope.HDWallet.dPath + "/" + i, $scope.walletType, $scope.digitalBitbox));
} else {
$scope.HDWallet.wallets.push(new Wallet(undefined, derivedKey.publicKey, $scope.HDWallet.dPath + "/" + i, $scope.walletType));
}
$scope.HDWallet.wallets[$scope.HDWallet.wallets.length - 1].type = "addressOnly";
$scope.HDWallet.wallets[$scope.HDWallet.wallets.length - 1].setBalance(false);
}
$scope.HDWallet.id = 0;
$scope.HDWallet.numWallets = start + limit;
};
$scope.AddRemoveHDAddresses = function (isAdd) {
if ($scope.walletType == "ledger" || $scope.walletType == "trezor" || $scope.walletType == "digitalBitbox") {
if (isAdd) $scope.setHDAddressesHWWallet($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);else $scope.setHDAddressesHWWallet($scope.HDWallet.numWallets - 2 * $scope.HDWallet.walletsPerDialog, $scope.HDWallet.walletsPerDialog);
} else {
if (isAdd) $scope.setHDAddresses($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog);else $scope.setHDAddresses($scope.HDWallet.numWallets - 2 * $scope.HDWallet.walletsPerDialog, $scope.HDWallet.walletsPerDialog);
}
};
$scope.setHDWallet = function () {
walletService.wallet = $scope.wallet = $scope.HDWallet.wallets[$scope.HDWallet.id];
$scope.mnemonicModel.close();
$scope.notifier.info(globalFuncs.successMsgs[1]);
$scope.wallet.type = "default";
};
$scope.decryptWallet = function () {
$scope.wallet = null;
try {
if ($scope.showPDecrypt && $scope.requirePPass) {
$scope.wallet = Wallet.fromMyEtherWalletKey($scope.manualprivkey, $scope.privPassword);
walletService.password = $scope.privPassword;
} else if ($scope.showPDecrypt && !$scope.requirePPass) {
if (!$scope.Validator.isValidHex($scope.manualprivkey)) {
$scope.notifier.danger(globalFuncs.errorMsgs[37]);
return;
}
$scope.wallet = new Wallet(fixPkey($scope.manualprivkey));
walletService.password = '';
} else if ($scope.showFDecrypt) {
$scope.wallet = Wallet.getWalletFromPrivKeyFile($scope.fileContent, $scope.filePassword);
walletService.password = $scope.filePassword;
} else if ($scope.showMDecrypt) {
$scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
$scope.mnemonicModel.open();
$scope.onHDDPathChange($scope.mnemonicPassword);
} else if ($scope.showParityDecrypt) {
$scope.wallet = Wallet.fromParityPhrase($scope.parityPhrase);
}
walletService.wallet = $scope.wallet;
} catch (e) {
$scope.notifier.danger(globalFuncs.errorMsgs[6] + e);
}
if ($scope.wallet != null) $scope.notifier.info(globalFuncs.successMsgs[1]);
$scope.wallet.type = "default";
};
$scope.decryptAddressOnly = function () {
if ($scope.Validator.isValidAddress($scope.addressOnly)) {
var tempWallet = new Wallet();
$scope.wallet = {
type: "addressOnly",
address: $scope.addressOnly,
getAddressString: function getAddressString() {
return this.address;
},
getChecksumAddressString: function getChecksumAddressString() {
return ethUtil.toChecksumAddress(this.getAddressString());
},
setBalance: tempWallet.setBalance,
setTokens: tempWallet.setTokens
};
$scope.notifier.info(globalFuncs.successMsgs[1]);
walletService.wallet = $scope.wallet;
}
};
$scope.HWWalletCreate = function (publicKey, chainCode, walletType, path) {
$scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
$scope.mnemonicModel.open();
$scope.HDWallet.hdk = new hd.HDKey();
$scope.HDWallet.hdk.publicKey = new Buffer(publicKey, 'hex');
$scope.HDWallet.hdk.chainCode = new Buffer(chainCode, 'hex');
$scope.HDWallet.numWallets = 0;
$scope.HDWallet.dPath = path;
$scope.setHDAddressesHWWallet($scope.HDWallet.numWallets, $scope.HDWallet.walletsPerDialog, walletType);
walletService.wallet = null;
};
$scope.ledgerCallback = function (result, error) {
if (typeof result != "undefined") {
$scope.HWWalletCreate(result['publicKey'], result['chainCode'], "ledger", $scope.getLedgerPath());
} else {
$scope.ledgerError = true;
$scope.ledgerErrorString = error;
$scope.$apply();
}
};
$scope.trezorCallback = function (response) {
if (response.success) {
$scope.HWWalletCreate(response.publicKey, response.chainCode, "trezor", $scope.getTrezorPath());
} else {
$scope.trezorError = true;
$scope.trezorErrorString = response.error;
$scope.$apply();
}
};
$scope.digitalBitboxCallback = function (result, error) {
$scope.HDWallet.digitalBitboxSecret = '';
if (typeof result != "undefined") {
$scope.HWWalletCreate(result['publicKey'], result['chainCode'], "digitalBitbox", $scope.HDWallet.dPath);
} else $scope.notifier.danger(error);
};
$scope.scanLedger = function () {
$scope.ledgerError = false;
$scope.ledger = new Ledger3("w0w");
var app = new ledgerEth($scope.ledger);
var path = $scope.getLedgerPath();
app.getAddress(path, $scope.ledgerCallback, false, true);
};
$scope.scanDigitalBitbox = function () {
$scope.digitalBitbox = new DigitalBitboxUsb();
var app = new DigitalBitboxEth($scope.digitalBitbox, $scope.HDWallet.digitalBitboxSecret);
var path = $scope.HDWallet.dPath;
app.getAddress(path, $scope.digitalBitboxCallback);
};
$scope.scanTrezor = function () {
// trezor is using the path without change level id
var path = $scope.getTrezorPath();
console.warn("SCANTR", path, $scope.HDWallet);
TrezorConnect.getXPubKey(path, $scope.trezorCallback, '1.5.2');
};
$scope.getLedgerPath = function () {
return $scope.HDWallet.dPath;
};
$scope.getTrezorPath = function () {
return $scope.HDWallet.dPath;
};
$scope.scanMetamask = function () {
window.web3.eth.getAccounts(function (err, accounts) {
if (err) $scope.notifier.danger(err + '. Are you sure you are on a secure (SSL / HTTPS) connection?');
var address = accounts[0];
var addressBuffer = Buffer.from(address.slice(2), 'hex');
var wallet = new Web3Wallet(addressBuffer);
wallet.setBalance(false);
// set wallet
$scope.wallet = wallet;
walletService.wallet = wallet;
$scope.notifier.info(globalFuncs.successMsgs[6]);
$scope.wallet.type = "default";
});
};
// helper function that removes 0x prefix from strings
function fixPkey(key) {
if (key.indexOf('0x') === 0) {
return key.slice(2);
}
return key;
}
};
module.exports = decryptWalletCtrl;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],21:[function(require,module,exports){
'use strict';
var domainsaleCtrl = function domainsaleCtrl($scope, $sce, walletService) {
$scope.referrer = "0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8";
$scope.ajaxReq = ajaxReq;
$scope.hideDomainSaleInfoPanel = false;
walletService.wallet = null;
$scope.domainsaleConfirmModalModal = new Modal(document.getElementById('domainsaleConfirmModal'));
$scope.Validator = Validator;
$scope.wd = false;
$scope.haveNotAlreadyCheckedLength = true;
var ENS = new ens();
var DomainSale = new domainsale();
$scope.ensModes = ens.modes;
$scope.domainsaleModes = domainsale.modes;
$scope.domainsaleTransactions = domainsale.transactions;
$scope.minNameLength = 7;
$scope.objDomainSale = {
status: -1,
name: '',
address: '',
balance: -1,
balanceEth: -1,
price: 0,
priceEth: 0,
reserve: 0,
reserveEth: 0,
bid: 0,
bidEth: 0,
seller: '',
nameReadOnly: false,
timeRemaining: null
};
$scope.gasLimitDefaults = {
// TODO set sensible values
transfer: '200000',
offer: '200000',
bid: '200000',
buy: '200000',
cancel: '200000',
finish: '200000',
withdraw: '200000'
};
$scope.tx = {
data: '',
to: '',
unit: "ether",
value: 0,
gasPrice: null
};
$scope.showDomainSale = function () {
return nodes.domainsaleNodeTypes.indexOf(ajaxReq.type) > -1;
};
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
$scope.wd = true;
$scope.objDomainSale.nameReadOnly = true;
$scope.wallet.setBalance();
$scope.wallet.setTokens();
});
$scope.getCurrentTime = function () {
return new Date().toString();
};
var updateScope = function updateScope() {
if (!$scope.$$phase) $scope.$apply();
};
var timeRem = function timeRem(timeUntil) {
var rem = timeUntil - new Date();
if (rem < 0) {
clearInterval($scope.objDomainSale.timer);
$scope.objDomainSale.timeRemaining = "FINISHED";
return;
}
var _second = 1000;
var _minute = _second * 60;
var _hour = _minute * 60;
var _day = _hour * 24;
var hours = Math.floor(rem % _day / _hour);
var minutes = Math.floor(rem % _hour / _minute);
var seconds = Math.floor(rem % _minute / _second);
hours = hours < 10 ? '0' + hours : hours;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
$scope.objDomainSale.timeRemaining = hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds ';
updateScope();
};
$scope.addressOnChange = function () {
// Resets information
$scope.objDomainSale.balance = -1;
};
$scope.nameOnChange = function () {
// Resets information
$scope.objDomainSale.status = -1;
$scope.objDomainSale.bid = 0;
$scope.objDomainSale.bidEth = 0;
$scope.objDomainSale.buy = 0;
$scope.objDomainSale.buyEth = 0;
$scope.objDomainSale.reserve = 0;
$scope.objDomainSale.reserveEth = 0;
$scope.objDomainSale.timeRemaining = null;
$scope.tx = {
data: '',
to: '',
unit: 'ether',
value: 0
};
clearInterval($scope.objDomainSale.timer);
};
$scope.checkBalance = function () {
if ($scope.Validator.isValidAddress($scope.objDomainSale.address)) {
DomainSale.getBalance($scope.objDomainSale.address, function (data) {
var entries = data.data;
for (var key in entries) {
$scope.objDomainSale[key] = entries[key];
}$scope.hideDomainSaleInfoPanel = true;
});
}
};
$scope.checkName = function () {
// checks if it's the same length as a PK and if so, warns them.
// If they confirm they can set haveNotAlreadyCheckedLength to true and carry on
if ($scope.haveNotAlreadyCheckedLength && ($scope.objDomainSale.name.length == 128 || $scope.objDomainSale.name.length == 132 || $scope.objDomainSale.name.length == 64 || $scope.objDomainSale.name.length == 66)) {
$scope.notifier.danger("That looks an awful lot like a private key. Are you sure you would like to check if this name is available on the ENS network? If so, click `Check`. If it is your private key, click refresh & try again.");
$scope.haveNotAlreadyCheckedLength = false;
} else if ($scope.Validator.isValidENSName($scope.objDomainSale.name) && $scope.objDomainSale.name.indexOf('.') == -1) {
$scope.objDomainSale.name = ens.normalise($scope.objDomainSale.name);
$scope.objDomainSale.namehash = ens.getNameHash($scope.objDomainSale.name + '.eth');
$scope.objDomainSale.nameSHA3 = ENS.getSHA3($scope.objDomainSale.name);
$scope.hideDomainSaleInfoPanel = true;
ENS.getAuctionEntries($scope.objDomainSale.name, function (data) {
if (data.error) $scope.notifier.danger(data.msg);else {
var entries = data.data;
for (var key in entries) {
if (key != 'status') $scope.objDomainSale[key] = entries[key];
}if (data.data.status != $scope.ensModes.owned) {
// Not owned so ineligible for domainsale
$scope.objDomainSale.status = $scope.domainsaleModes.ineligible;
updateScope();
} else {
$scope.objDomainSale.valueEth = Number(etherUnits.toEther($scope.objDomainSale.value.toString(), 'wei'));
ENS.getDeedOwner($scope.objDomainSale.deed, function (data) {
$scope.objDomainSale.deedOwner = data.data;
if (data.data.toLowerCase() != DomainSale.getContractAddress().toLowerCase()) {
// Not owned by DomainSale contract
$scope.objDomainSale.status = $scope.domainsaleModes.nottransferred;
updateScope();
} else {
ENS.getDeedPreviousOwner($scope.objDomainSale.deed, function (data) {
$scope.objDomainSale.seller = data.data;
DomainSale.getSale($scope.objDomainSale.name, function (data) {
var entries = data.data;
for (var key in entries) {
$scope.objDomainSale[key] = entries[key];
}if ($scope.objDomainSale.price == 0 && $scope.objDomainSale.reserve == 0) {
// Not yet offered for sale
$scope.objDomainSale.status = $scope.domainsaleModes.notoffered;
} else if ($scope.objDomainSale.auctionStarted.getTime() == 0) {
// Available for sale
$scope.objDomainSale.status = $scope.domainsaleModes.available;
$scope.objDomainSale.minimumBid = $scope.objDomainSale.reserve;
$scope.objDomainSale.minimumBidEth = $scope.objDomainSale.reserveEth;
$scope.objDomainSale.bid = $scope.objDomainSale.minimumBid;
$scope.objDomainSale.bidEth = $scope.objDomainSale.minimumBidEth;
} else if ($scope.objDomainSale.auctionEnds.getTime() >= new Date().getTime()) {
// Being auctioned
$scope.objDomainSale.status = $scope.domainsaleModes.auctioning;
$scope.objDomainSale.timer = setInterval(function () {
return timeRem($scope.objDomainSale.auctionEnds);
}, 1000);
DomainSale.getMinimumBid($scope.objDomainSale.name, function (data) {
var entries = data.data;
for (var key in entries) {
$scope.objDomainSale[key] = entries[key];
}$scope.objDomainSale.bid = $scope.objDomainSale.minimumBid;
$scope.objDomainSale.bidEth = $scope.objDomainSale.minimumBidEth;
updateScope();
});
} else {
// Auction closed
$scope.objDomainSale.status = $scope.domainsaleModes.closed;
}
updateScope();
});
});
}
});
}
}
});
} else $scope.notifier.danger(globalFuncs.errorMsgs[30]);
};
// Sync internal values with inputs
$scope.syncPrice = function () {
if ($scope.objDomainSale.priceEth == null) {
$scope.objDomainSale.price = 0;
} else {
$scope.objDomainSale.price = Number(etherUnits.toWei($scope.objDomainSale.priceEth, 'ether'));
}
};
$scope.syncReserve = function () {
if ($scope.objDomainSale.reserveEth == null) {
$scope.objDomainSale.reserve = 0;
} else {
$scope.objDomainSale.reserve = Number(etherUnits.toWei($scope.objDomainSale.reserveEth, 'ether'));
}
};
$scope.syncBid = function () {
if ($scope.objDomainSale.bidEth == null) {
$scope.objDomainSale.bid = 0;
} else {
$scope.objDomainSale.bid = Number(etherUnits.toWei($scope.objDomainSale.bidEth, 'ether'));
}
};
$scope.sendTxStatus = "";
$scope.sendTx = function () {
$scope.domainsaleConfirmModalModal.close();
$scope.objDomainSale.status = -1;
var signedTx = $scope.generatedTxs.shift();
uiFuncs.sendTx(signedTx, function (resp) {
if (!resp.isError) {
var emailLink = '<a class="strong" href="mailto:support@myetherwallet.com?subject=Issue%20regarding%20my%20DomainSale%20&body=Hi%20Taylor%2C%20%0A%0AI%20have%20a%20question%20concerning%20my%20DomainSale%20transaction.%20%0A%0AI%20was%20attempting%20to%3A%0A-%20Start%20an%20ENS%20auction%0A-%20Bid%20on%20an%20ENS%20name%0A-%20Reveal%20my%20ENS%20bid%0A-%20Finalize%20my%20ENS%20name%0A%0AUnfortunately%20it%3A%0A-%20Never%20showed%20on%20the%20blockchain%0A-%20Failed%20due%20to%20out%20of%20gas%0A-%20Failed%20for%20another%20reason%0A-%20Never%20showed%20up%20in%20the%20account%20I%20was%20sending%20to%0A%0APlease%20see%20the%20below%20details%20for%20additional%20information.%0A%0AThank%20you.%20%0A%0A_%0A%0A%20name%3A%20' + $scope.objDomainSale.name + "%0A%20txSent%3A%20" + $scope.objDomainSale.txSent + "%0A%20to%3A%20" + $scope.tx.to + "%0A%20from%20address%3A%20" + $scope.wallet.getAddressString() + "%0A%20data%3A%20" + $scope.tx.data + "%0A%20value%3A%20" + $scope.tx.value + '" rel="noopener noreferrer">Confused? Email Us.</a>';
var bExStr = $scope.ajaxReq.type != nodes.nodeTypes.Custom ? "<a class='strong' href='" + $scope.ajaxReq.blockExplorerTX.replace("[[txHash]]", resp.data) + "' target='_blank' rel='noopener'> View your transaction </a>" : '';
$scope.sendTxStatus += globalFuncs.successMsgs[2] + "<p>" + resp.data + "</p><p>" + bExStr + "</p><p>" + emailLink + "</p>";
$scope.notifier.success($scope.sendTxStatus);
if ($scope.generatedTxs.length) $scope.sendTx();else $scope.sendTxStatus = '';
} else {
$scope.notifier.danger(resp.error);
}
});
$scope.objDomainSale.txSent = true;
$scope.hideDomainSaleInfoPanel = false;
};
// Transactions
$scope.generateTransferTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.transfer;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
$scope.tx.to = ENS.getAuctionAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.transfer;
$scope.tx.data = ENS.getTransferData($scope.objDomainSale.name, DomainSale.getContractAddress());
$scope.tx.value = 0;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateOfferTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.offer;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
if ($scope.objDomainSale.price == 0 && $scope.objDomainSale.reserve == 0) throw globalFuncs.errorMsgs[38];
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.offer;
$scope.tx.data = DomainSale.getOfferData($scope.objDomainSale.name, $scope.objDomainSale.price, $scope.objDomainSale.reserve, $scope.referrer);
$scope.tx.value = 0;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateBuyTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.buy;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.buy;
$scope.tx.data = DomainSale.getBuyData($scope.objDomainSale.name, $scope.referrer);
$scope.tx.value = $scope.objDomainSale.priceEth;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateBidTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.bid;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
if ($scope.objDomainSale.bidEth < $scope.objDomainSale.minimumBidEth) throw globalFuncs.errorMsgs[39];
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.bid;
$scope.tx.data = DomainSale.getBidData($scope.objDomainSale.name, $scope.referrer);
$scope.tx.value = $scope.objDomainSale.bidEth;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateCancelTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.cancel;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.cancel;
$scope.tx.data = DomainSale.getCancelData($scope.objDomainSale.name);
$scope.tx.value = 0;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateFinishTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.finish;
if (!$scope.Validator.isValidENSName($scope.objDomainSale.name)) throw globalFuncs.errorMsgs[30];
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.finish;
$scope.tx.data = DomainSale.getFinishData($scope.objDomainSale.name);
$scope.tx.value = 0;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.generateWithdrawTx = function () {
try {
$scope.objDomainSale.tx = domainsale.transactions.withdraw;
$scope.tx.to = DomainSale.getContractAddress();
$scope.tx.gasLimit = $scope.gasLimitDefaults.withdraw;
$scope.tx.data = DomainSale.getWithdrawData();
$scope.tx.value = 0;
$scope.doTx();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.doTx = function (nonce, gasPrice) {
$scope.sentTxs = [];
$scope.generatedTxs = [];
var txData = uiFuncs.getTxData($scope);
if (nonce && gasPrice) {
txData.nonce = nonce;
txData.gasPrice = gasPrice;
} else {
txData.nonce = txData.gasPrice = null;
}
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.generatedTxs.push(rawTx.signedTx);
$scope.domainsaleConfirmModalModal.open();
} else {
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
};
};
module.exports = domainsaleCtrl;
},{}],22:[function(require,module,exports){
'use strict';
var ensCtrl = function ensCtrl($scope, $sce, walletService) {
$scope.ajaxReq = ajaxReq;
$scope.hideEnsInfoPanel = false;
walletService.wallet = null;
$scope.ensConfirmModalModal = new Modal(document.getElementById('ensConfirmModal'));
$scope.ensFinalizeModal = new Modal(document.getElementById('ensFinalizeConfirm'));
$scope.Validator = Validator;
$scope.wd = false;
$scope.haveNotAlreadyCheckedLength = true;
var ENS = new ens();
var DomainSale = new domainsale();
$scope.ensModes = ens.modes;
$scope.minNameLength = 7;
$scope.objDomainSale = {};
$scope.objENS = {
bidValue: 0.01,
dValue: 0.01,
name: '',
namehash: '',
nameSHA3: '',
nameReadOnly: false,
resolvedAddress: null,
revealObject: null,
secret: hd.bip39.generateMnemonic().split(" ").splice(0, 3).join(" "),
status: -1,
timer: null,
timeRemaining: null,
timeRemainingReveal: null,
txSent: false
};
$scope.gasLimitDefaults = {
startAuction: '200000',
newBid: '500000',
reveal: '200000',
finalize: '200000'
};
$scope.tx = {
gasLimit: '500000',
data: '',
to: '',
unit: "ether",
value: 0,
gasPrice: null
};
$scope.showENS = function () {
return nodes.ensNodeTypes.indexOf(ajaxReq.type) > -1;
};
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
$scope.wd = true;
$scope.objENS.nameReadOnly = true;
$scope.wallet.setBalance();
$scope.wallet.setTokens();
});
$scope.getCurrentTime = function () {
return new Date().toString();
};
var updateScope = function updateScope() {
if (!$scope.$$phase) $scope.$apply();
};
var timeRem = function timeRem(timeUntil) {
var rem = timeUntil - new Date();
if (rem < 0) {
clearInterval($scope.objENS.timer);
$scope.objENS.timeRemaining = "EXPIRED";
return;
}
var _second = 1000;
var _minute = _second * 60;
var _hour = _minute * 60;
var _day = _hour * 24;
var days = Math.floor(rem / _day);
var hours = Math.floor(rem % _day / _hour);
var minutes = Math.floor(rem % _hour / _minute);
var seconds = Math.floor(rem % _minute / _second);
days = days < 10 ? '0' + days : days;
hours = hours < 10 ? '0' + hours : hours;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
$scope.objENS.timeRemaining = days + ' days ' + hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds ';
$scope.objENS.timeRemainingReveal = days - 2 + ' days ' + hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds ';
updateScope();
};
$scope.nameOnChange = function () {
$scope.objENS.status = -1;
$scope.objENS.timeRemaining = null;
clearInterval($scope.objENS.timer);
};
$scope.checkName = function () {
// checks if it's the same length as a PK and if so, warns them.
// If they confirm they can set haveNotAlreadyCheckedLength to true and carry on
if ($scope.haveNotAlreadyCheckedLength && ($scope.objENS.name.length == 128 || $scope.objENS.name.length == 132 || $scope.objENS.name.length == 64 || $scope.objENS.name.length == 66)) {
$scope.notifier.danger("That looks an awful lot like a private key. Are you sure you would like to check if this name is available on the ENS network? If so, click `Check`. If it is your private key, click refresh & try again.");
$scope.haveNotAlreadyCheckedLength = false;
} else if ($scope.Validator.isValidENSName($scope.objENS.name) && $scope.objENS.name.indexOf('.') == -1) {
$scope.objENS.name = ens.normalise($scope.objENS.name);
$scope.objENS.namehash = ens.getNameHash($scope.objENS.name + '.eth');
$scope.objENS.nameSHA3 = ENS.getSHA3($scope.objENS.name);
$scope.hideEnsInfoPanel = true;
ENS.getAuctionEntries($scope.objENS.name, function (data) {
if (data.error) $scope.notifier.danger(data.msg);else {
var entries = data.data;
for (var key in entries) {
$scope.objENS[key] = entries[key];
}switch ($scope.objENS.status) {
case $scope.ensModes.owned:
ENS.getOwner($scope.objENS.name + '.eth', function (data) {
$scope.objENS.owner = data.data;
});
ENS.getDeedOwner($scope.objENS.deed, function (data) {
$scope.objENS.deedOwner = data.data;
});
ENS.getAddress($scope.objENS.name + '.eth', function (data) {
$scope.objENS.resolvedAddress = data.data;
});
DomainSale.getSale($scope.objENS.name, function (data) {
$scope.objDomainSale.sale = data.data;
});
break;
case $scope.ensModes.notAvailable:
ENS.getAllowedTime($scope.objENS.name, function (data) {
$scope.objENS.allowedTime = data.data;
clearInterval($scope.objENS.timer);
$scope.objENS.timer = setInterval(function () {
return timeRem($scope.objENS.allowedTime);
}, 1000);
});
break;
case $scope.ensModes.auction:
clearInterval($scope.objENS.timer);
$scope.objENS.timer = setInterval(function () {
return timeRem($scope.objENS.registrationDate);
}, 1000);
break;
case $scope.ensModes.reveal:
$scope.objENS.bidValue = 0;
$scope.objENS.secret = '';
$scope.objENS.highestBid = etherUnits.toEther($scope.objENS.highestBid.toString(), 'wei');
clearInterval($scope.objENS.timer);
$scope.objENS.timer = setInterval(function () {
return timeRem($scope.objENS.registrationDate);
}, 1000);
break;
}
updateScope();
}
});
} else $scope.notifier.danger(globalFuncs.errorMsgs[30]);
};
$scope.onLongStringChanged = function () {
try {
$scope.objENS.revealObject = null;
var tObj = JSON.parse($scope.longJsonString.replace(/\\/g, ''));
$scope.objENS.revealObject = tObj;
if (tObj.value) $scope.objENS.bidValue = Number(etherUnits.toEther(tObj.value, "wei"));
if (tObj.secret) $scope.objENS.secret = tObj.secret;
if (tObj.name && ens.normalise(tObj.name) != $scope.objENS.name) {
// check if correct name
$scope.notifier.danger(globalFuncs.errorMsgs[34]);
} else if (tObj.owner && tObj.owner != $scope.wallet.getAddressString()) {
// check owner = bidder
$scope.notifier.danger(globalFuncs.errorMsgs[33]);
} else {//estimate gas to see if it would not work
//$scope.estimateGasLimit();
}
updateScope();
} catch (e) {
$scope.notifier.danger(e.message);
}
};
var getShaBid = function getShaBid(_bidObject, callback) {
ENS.shaBid(_bidObject.nameSHA3, _bidObject.owner, _bidObject.value, _bidObject.secretSHA3, function (data) {
if (data.error) callback(true, data.msg);else callback(false, data.data);
});
};
var getBidObject = function getBidObject() {
var _objENS = $scope.objENS;
var bidObject = {
name: _objENS.name,
nameSHA3: ENS.getSHA3(_objENS.name),
owner: $scope.wallet.getAddressString(),
value: etherUnits.toWei(_objENS.bidValue, 'ether'),
secret: _objENS.secret.trim(),
secretSHA3: ENS.getSHA3(_objENS.secret.trim())
};
return bidObject;
};
$scope.openAndBidAuction = function () {
$scope.tx.gasLimit = $scope.gasLimitDefaults.newBid;
var _objENS = $scope.objENS;
$scope.bidObject = getBidObject();
_objENS.registrationDate = new Date();
_objENS.registrationDate.setDate(_objENS.registrationDate.getDate() + 5);
getShaBid($scope.bidObject, function (isError, data) {
if (isError) $scope.notifier.danger(data);else {
var bidHash = data;
$scope.tx.data = ENS.getStartAndBidAuctionData($scope.objENS.name, bidHash);
$scope.tx.to = ENS.getAuctionAddress();
$scope.tx.value = _objENS.dValue;
var txData = uiFuncs.getTxData($scope);
txData.nonce = txData.gasPrice = null;
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.generatedTxs.push(rawTx.signedTx);
$scope.bidObject = JSON.stringify($scope.bidObject);
$scope.ensConfirmModalModal.open();
} else {
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
}
});
};
$scope.revealBid = function () {
$scope.tx.gasLimit = $scope.gasLimitDefaults.reveal;
var _objENS = $scope.objENS;
ajaxReq.getTransactionData($scope.wallet.getAddressString(), function (data) {
if (data.error) $scope.notifier.danger(data.msg);
data = data.data;
$scope.tx.to = ENS.getAuctionAddress();
$scope.tx.data = ENS.getRevealBidData(_objENS.name, etherUnits.toWei(_objENS.bidValue, 'ether'), _objENS.secret);
$scope.tx.value = 0;
var txData = uiFuncs.getTxData($scope);
txData.gasPrice = data.gasprice;
txData.nonce = data.nonce;
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.generatedTxs.push(rawTx.signedTx);
$scope.ensConfirmModalModal.open();
} else {
$scope.notifier.danger(rawTx.error);
}
});
});
};
$scope.finalizeDomain = function () {
$scope.tx.gasLimit = $scope.gasLimitDefaults.finalize;
if ($scope.wallet.getAddressString() != $scope.objENS.deedOwner) {
$scope.notifier.danger(globalFuncs.errorMsgs[33]);
return;
}
var _objENS = $scope.objENS;
ajaxReq.getTransactionData($scope.wallet.getAddressString(), function (data) {
if (data.error) $scope.notifier.danger(data.msg);
data = data.data;
$scope.tx.to = ENS.getAuctionAddress();
$scope.tx.data = ENS.getFinalizeAuctionData(_objENS.name);
$scope.tx.value = 0;
var txData = uiFuncs.getTxData($scope);
txData.gasPrice = data.gasprice;
txData.nonce = data.nonce;
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.generatedTxs = [];
$scope.generatedTxs.push(rawTx.signedTx);
$scope.ensFinalizeModal.open();
} else {
$scope.notifier.danger(rawTx.error);
}
});
});
};
$scope.getRevealTime = function () {
if ($scope.objENS && $scope.objENS.registrationDate) return new Date($scope.objENS.registrationDate - 48 * 60 * 60 * 1000);
return new Date().toString();
};
$scope.bidAuction = function (nonce, gasPrice) {
$scope.tx.gasLimit = $scope.gasLimitDefaults.newBid;
var _objENS = $scope.objENS;
$scope.bidObject = getBidObject();
getShaBid($scope.bidObject, function (isError, data) {
if (isError) $scope.notifier.danger(data);else {
var bidHash = data;
$scope.tx.data = ENS.getNewBidData(bidHash);
$scope.tx.to = ENS.getAuctionAddress();
$scope.tx.value = _objENS.dValue;
var txData = uiFuncs.getTxData($scope);
if (nonce && gasPrice) {
txData.nonce = nonce;
txData.gasPrice = gasPrice;
} else txData.nonce = txData.gasPrice = null;
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.generatedTxs.push(rawTx.signedTx);
$scope.bidObject = JSON.stringify($scope.bidObject);
$scope.ensConfirmModalModal.open();
} else {
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
}
});
};
$scope.sendTxStatus = "";
$scope.sendTx = function () {
$scope.ensConfirmModalModal.close();
$scope.ensFinalizeModal.close();
var signedTx = $scope.generatedTxs.shift();
uiFuncs.sendTx(signedTx, function (resp) {
if (!resp.isError) {
var emailLink = '<a class="strong" href="mailto:support@myetherwallet.com?Subject=Issue%20regarding%20my%20ENS%20&Body=Hi%20Taylor%2C%20%0A%0AI%20have%20a%20question%20concerning%20my%20ENS%20transaction.%20%0A%0AI%20was%20attempting%20to%3A%0A-%20Start%20an%20ENS%20auction%0A-%20Bid%20on%20an%20ENS%20name%0A-%20Reveal%20my%20ENS%20bid%0A-%20Finalize%20my%20ENS%20name%0A%0AUnfortunately%20it%3A%0A-%20Never%20showed%20on%20the%20blockchain%0A-%20Failed%20due%20to%20out%20of%20gas%0A-%20Failed%20for%20another%20reason%0A-%20Never%20showed%20up%20in%20the%20account%20I%20was%20sending%20to%0A%0APlease%20see%20the%20below%20details%20for%20additional%20information.%0A%0AThank%20you.%20%0A%0A_%0A%0A%20name%3A%20' + $scope.objENS.name + '%0A%20timeRemaining%3A%20' + $scope.getRevealTime().toString() + '%0A%20revealDate%3A%20' + $scope.objENS.registrationDate.toString() + "%0A%20timer%3A%20" + $scope.objENS.timer + "%0A%20txSent%3A%20" + $scope.objENS.txSent + "%0A%20to%3A%20" + $scope.tx.to + "%0A%20from%20address%3A%20" + $scope.wallet.getAddressString() + "%0A%20data%3A%20" + $scope.tx.data + "%0A%20value%3A%20" + $scope.tx.value + '" target="_blank" rel="noopener noreferrer">Confused? Email Us.</a>';
var bExStr = $scope.ajaxReq.type != nodes.nodeTypes.Custom ? "<a class='strong' href='" + $scope.ajaxReq.blockExplorerTX.replace("[[txHash]]", resp.data) + "' target='_blank' rel='noopener'> View your transaction </a>" : '';
$scope.sendTxStatus += globalFuncs.successMsgs[2] + "<p>" + resp.data + "</p><p>" + bExStr + "</p><p>" + emailLink + "</p>";
$scope.notifier.success($scope.sendTxStatus);
if ($scope.generatedTxs.length) $scope.sendTx();else $scope.sendTxStatus = '';
} else {
$scope.notifier.danger(resp.error);
}
});
$scope.objENS.txSent = true;
$scope.objENS.hideEnsInfoPanel = false;
};
$scope.generateTx = function () {
try {
var _objENS = $scope.objENS;
$scope.sentTxs = [];
$scope.generatedTxs = [];
if (!$scope.Validator.isValidENSName(_objENS.name)) throw globalFuncs.errorMsgs[30];else if (!$scope.Validator.isPositiveNumber(_objENS.bidValue) || _objENS.bidValue < 0.01) throw globalFuncs.errorMsgs[0];else if (_objENS.status != $scope.ensModes.reveal && (!$scope.Validator.isPositiveNumber(_objENS.dValue) || _objENS.dValue < _objENS.bidValue || $scope.wallet.balance <= _objENS.dValue)) throw globalFuncs.errorMsgs[0];else if (!$scope.Validator.isPasswordLenValid(_objENS.secret, 0)) throw globalFuncs.errorMsgs[31];else if (_objENS.revealObject && _objENS.revealObject.name && ens.normalise(_objENS.revealObject.name) != _objENS.name) throw globalFuncs.errorMsgs[34];else {
if ($scope.objENS.status == $scope.ensModes.open) $scope.openAndBidAuction();else if ($scope.objENS.status == $scope.ensModes.auction) $scope.bidAuction();else if ($scope.objENS.status == $scope.ensModes.reveal) $scope.revealBid();
}
} catch (e) {
$scope.notifier.danger(e);
}
};
};
module.exports = ensCtrl;
},{}],23:[function(require,module,exports){
'use strict';
var footerCtrl = function footerCtrl($scope, globalService) {
var gasPriceKey = "gasPrice";
$scope.footerModal = new Modal(document.getElementById('disclaimerModal'));
$scope.ethBlockNumber = "loading";
$scope.etcBlockNumber = "loading";
$scope.showBlocks = window.location.protocol == "https:";
$scope.setBlockNumbers = function () {
if (!$scope.showBlocks) return;
ajaxReq.getCurrentBlock(function (data) {
$scope.currentBlockNumber = data.data;
});
};
$scope.setBlockNumbers();
$scope.globalService = globalService;
$scope.curLang = globalFuncs.curLang;
$scope.gasChanged = function () {
globalFuncs.localStorage.setItem(gasPriceKey, $scope.gas.value);
ethFuncs.gasAdjustment = $scope.gas.value;
};
var setGasValues = function setGasValues() {
$scope.gas = {
curVal: 41,
value: globalFuncs.localStorage.getItem(gasPriceKey, null) ? parseInt(globalFuncs.localStorage.getItem(gasPriceKey)) : 41,
max: 99,
min: 1,
step: 1
};
ethFuncs.gasAdjustment = $scope.gas.value;
};
setGasValues();
$scope.gasChanged();
};
module.exports = footerCtrl;
},{}],24:[function(require,module,exports){
'use strict';
var helpersCtrl = function helpersCtrl($scope) {
var ENS = new ens();
var unitNames = ['wei', 'kwei', 'mwei', 'gwei', 'szabo', 'finney', 'ether', 'kether', 'mether', 'gether', 'tether'];
$scope.units = {
ether: 1
};
$scope.decimalNumber = 10;
$scope.inputText = 'hello';
$scope.convertUnit = function (currentUnit) {
unitNames.forEach(function (unit) {
if (currentUnit !== unit) {
$scope.units[unit] = $scope.units[currentUnit] ? etherUnits.unitToUnit($scope.units[currentUnit], currentUnit, unit) : '';
}
});
};
$scope.decimalToHex = function () {
$scope.hexNumber = $scope.decimalNumber ? ethFuncs.decimalToHex($scope.decimalNumber) : '';
$scope.hexToPaddedHex();
};
$scope.hexToDecimal = function () {
$scope.decimalNumber = $scope.hexNumber ? ethFuncs.hexToDecimal($scope.hexNumber) : '';
$scope.hexToPaddedHex();
};
$scope.hexToPaddedHex = function () {
$scope.hexPaddedLeft = $scope.hexNumber ? ethFuncs.padLeft($scope.hexNumber, 64, '0') : '';
};
$scope.toSHA3 = function () {
$scope.outputText = $scope.inputText ? ethUtil.sha3($scope.inputText).toString('hex') : '';
};
/* ENS STUFF */
$scope.toEnsLabelHash = function () {
$scope.ensLabelHash = $scope.ensLabel ? ENS.getSHA3($scope.ensLabel) : '';
$scope.allTheThings();
};
$scope.toEnsSecretHash = function () {
$scope.ensSecretHash = $scope.ensSecret ? ENS.getSHA3($scope.ensSecret.trim()) : '';
$scope.allTheThings();
};
$scope.toBidWei = function () {
$scope.bidWei = $scope.bidEth ? Number(etherUnits.toWei($scope.bidEth, 'ether')) : '';
$scope.toBidHex();
};
$scope.toBidEth = function () {
$scope.bidEth = $scope.bidWei ? Number(etherUnits.toEther($scope.bidWei, 'wei')) : '';
$scope.toBidHex();
};
$scope.toBidHex = function () {
$scope.bidHex = $scope.bidWei ? ethFuncs.padLeft(ethFuncs.decimalToHex($scope.bidWei), 64, '0') : '';
$scope.allTheThings();
};
$scope.allTheThings = function () {
$scope.getStartAuctionData();
$scope.getShaBid();
$scope.getRevealBidData();
$scope.getFinalizeAuctionData();
};
$scope.getStartAuctionData = function () {
$scope.startAuctionData = $scope.ensLabel ? ENS.getStartAuctionData($scope.ensLabel) : '';
};
$scope.getShaBid = function () {
if ($scope.ensLabelHash && $scope.ensAddress && $scope.bidWei && $scope.ensSecretHash) {
ENS.shaBid($scope.ensLabelHash, $scope.ensAddress.toLowerCase(), $scope.bidWei, $scope.ensSecretHash, function (data) {
$scope.shaBid = ENS.getNewBidData(data.data);
});
} else {
$scope.shaBid = '';
}
};
$scope.getRevealBidData = function () {
if ($scope.ensLabel && $scope.bidWei && $scope.ensSecret) {
$scope.revealBidData = ENS.getRevealBidData($scope.ensLabel, $scope.bidWei, $scope.ensSecret);
} else {
$scope.revealBidData = '';
}
};
$scope.getFinalizeAuctionData = function () {
$scope.finalizeAuctionData = $scope.ensLabel ? ENS.getFinalizeAuctionData($scope.ensLabel) : '';
};
$scope.findMyPrivateKey = function () {
var setCharAt = function setCharAt(str, index, chr) {
if (index > str.length - 1) return str;
return str.substr(0, index) + chr + str.substr(index + 1);
};
var basePrivateKey = $scope.mistypedPK;
var targetPublicAddress = $scope.mistypedAddr;
basePrivateKey = basePrivateKey.substring(0, 2) == '0x' ? basePrivateKey.substring(2) : basePrivateKey;
var characters = ['a', 'b', 'c', 'd', 'e', 'f', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
var isFound = false;
for (var keyPosition = 0; keyPosition < basePrivateKey.length; keyPosition++) {
for (var character = 0; character < characters.length; character++) {
var privateKeyGuess = setCharAt(basePrivateKey, keyPosition, characters[character]);
var wallet = Wallet.fromPrivateKey(privateKeyGuess);
var publicAddress = wallet.getAddressString();
if (publicAddress.toLowerCase() == targetPublicAddress.toLowerCase()) {
$scope.actualPK = privateKeyGuess;
isFound = true;
}
}
}
if (!isFound) $scope.actualPK = "Sorry not found :(";
};
$scope.convertUnit('ether');
$scope.decimalToHex();
$scope.toSHA3();
};
module.exports = helpersCtrl;
/*
0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8
mewtopia
0.01
exact depend exhibit
START AUCTION
0xede8acdb07aa9c7e03a795d250a2ac48bd73b9c7f8adab69a549cebd97fc157a093a5a4a
NEW BID
0xce92dced69faf18dd0953d9124d7917234b0efc05c78fd0d9abfc6ffb32d512680fdbb65
UNSEAL
0x47872b4207aa9c7e03a795d250a2ac48bd73b9c7f8adab69a549cebd97fc157a093a5a4a000000000000000000000000000000000000000000000000002386f26fc1000000d70f3b7e512382c3b5e27dd15df51c68c0a18528a604792ff20890eec20a31
FINALIZE
0x983b94fb07aa9c7e03a795d250a2ac48bd73b9c7f8adab69a549cebd97fc157a093a5a4a
*/
},{}],25:[function(require,module,exports){
'use strict';
var offlineTxCtrl = function offlineTxCtrl($scope, $sce, walletService) {
$scope.ajaxReq = ajaxReq;
walletService.wallet = null;
walletService.password = '';
$scope.unitReadable = ajaxReq.type;
$scope.valueReadable = "";
$scope.showAdvance = false;
$scope.dropdownEnabled = true;
$scope.showRaw = false;
$scope.showWalletInfo = false;
$scope.gasPriceDec = 0;
$scope.nonceDec = 0;
$scope.tokens = Token.popTokens;
$scope.Validator = Validator;
$scope.tx = {
gasLimit: globalFuncs.defaultTxGasLimit,
from: "",
data: "",
to: "",
unit: "ether",
value: '',
nonce: null,
gasPrice: null,
donate: false
};
$scope.tokenTx = {
to: '',
value: 0,
id: 'ether',
gasLimit: 150000
};
$scope.localToken = {
contractAdd: "",
symbol: "",
decimals: "",
type: "custom"
};
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
});
$scope.setTokens = function () {
$scope.tokenObjs = [];
for (var i = 0; i < $scope.tokens.length; i++) {
$scope.tokenObjs.push(new Token($scope.tokens[i].address, '', $scope.tokens[i].symbol, $scope.tokens[i].decimal, $scope.tokens[i].type));
}
var storedTokens = globalFuncs.localStorage.getItem("localTokens", null) != null ? JSON.parse(globalFuncs.localStorage.getItem("localTokens")) : [];
for (var i = 0; i < storedTokens.length; i++) {
$scope.tokenObjs.push(new Token(storedTokens[i].contractAddress, '', globalFuncs.stripTags(storedTokens[i].symbol), storedTokens[i].decimal, storedTokens[i].type));
}
};
$scope.setTokens();
$scope.getWalletInfo = function () {
if (ethFuncs.validateEtherAddress($scope.tx.from)) {
ajaxReq.getTransactionData($scope.tx.from, function (data) {
if (data.error) throw data.msg;
data = data.data;
$scope.gasPriceDec = ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice)));
$scope.nonceDec = ethFuncs.hexToDecimal(data.nonce);
$scope.showWalletInfo = true;
});
}
};
$scope.$watch('tx', function () {
$scope.showRaw = false;
}, true);
$scope.$watch('tokenTx.id', function () {
if ($scope.tokenTx.id != 'ether') {
$scope.tx.gasLimit = 150000;
} else {
$scope.tx.gasLimit = globalFuncs.defaultTxGasLimit;
}
});
$scope.$watch('[tx.to]', function () {
// if golem crowdfund address
if ($scope.tx.to == "0xa74476443119A942dE498590Fe1f2454d7D4aC0d") {
$scope.setSendMode('ether');
$scope.dropdownEnabled = false;
$scope.tx.data = '0xefc81a8c';
$scope.tx.gasLimit = 70000;
} else {
$scope.dropdownEnabled = true;
}
}, true);
$scope.setSendMode = function (index) {
var tokensymbol = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
$scope.tokenTx.id = index;
if (index == 'ether') {
$scope.unitReadable = ajaxReq.type;
} else {
$scope.unitReadable = tokensymbol;
}
$scope.dropdownAmount = false;
};
$scope.validateAddress = function (address, status) {
$scope.customGasMsg = '';
if (ethFuncs.validateEtherAddress(address)) {
for (var i in CustomGasMessages) {
if ($scope.tx.to.toLowerCase() == CustomGasMessages[i].to.toLowerCase()) {
$scope.customGasMsg = CustomGasMessages[i].msg != '' ? CustomGasMessages[i].msg : '';
}
}
return true;
} else {
return false;
}
};
$scope.generateTx = function () {
if (!ethFuncs.validateEtherAddress($scope.tx.to)) {
$scope.notifier.danger(globalFuncs.errorMsgs[5]);
return;
}
var txData = uiFuncs.getTxData($scope);
txData.isOffline = true;
txData.nonce = ethFuncs.sanitizeHex(ethFuncs.decimalToHex($scope.nonceDec));
txData.gasPrice = ethFuncs.sanitizeHex(ethFuncs.decimalToHex($scope.gasPriceDec));
if ($scope.tokenTx.id != 'ether') {
txData.data = $scope.tokenObjs[$scope.tokenTx.id].getData($scope.tx.to, $scope.tx.value).data;
txData.to = $scope.tokenObjs[$scope.tokenTx.id].getContractAddress();
txData.value = '0x00';
}
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.rawTx = rawTx.rawTx;
$scope.signedTx = rawTx.signedTx;
$scope.showRaw = true;
} else {
$scope.showRaw = false;
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
};
$scope.confirmSendTx = function () {
try {
if ($scope.signedTx == "" || !ethFuncs.validateHexString($scope.signedTx)) throw globalFuncs.errorMsgs[12];
var eTx = new ethUtil.Tx($scope.signedTx);
if (eTx.data.length && Token.transferHex == ethFuncs.sanitizeHex(eTx.data.toString('hex').substr(0, 8))) {
var token = Token.getTokenByAddress(ethFuncs.sanitizeHex(eTx.to.toString('hex')));
var decoded = ethUtil.solidityCoder.decodeParams(["address", "uint256"], ethFuncs.sanitizeHex(eTx.data.toString('hex').substr(10)));
$scope.tx.sendMode = 'token';
$scope.tokenTx.value = decoded[1].div(new BigNumber(10).pow(token.decimal)).toString();
$scope.tokenTx.to = decoded[0];
$scope.unitReadable = token.symbol;
$scope.tokenTx.from = ethFuncs.sanitizeHex(eTx.getSenderAddress().toString('hex'));
} else {
$scope.tx.sendMode = 'ether';
$scope.tx.value = eTx.value.length ? etherUnits.toEther(ethFuncs.sanitizeHex(eTx.value.toString('hex')), 'wei') : 0;
$scope.unitReadable = ajaxReq.type;
$scope.tx.from = ethFuncs.sanitizeHex(eTx.getSenderAddress().toString('hex'));
$scope.tx.to = ethFuncs.sanitizeHex(eTx.to.toString('hex'));
}
new Modal(document.getElementById('sendTransactionOffline')).open();
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.sendTx = function () {
new Modal(document.getElementById('sendTransactionOffline')).close();
ajaxReq.sendRawTx($scope.signedTx, function (data) {
if (data.error) {
$scope.notifier.danger(data.msg);
} else {
$scope.notifier.success(globalFuncs.successMsgs[2] + "<a href='http://etherscan.io/tx/" + data.data + "' target='_blank' rel='noopener'>" + data.data + "</a>");
}
});
};
};
module.exports = offlineTxCtrl;
},{}],26:[function(require,module,exports){
'use strict';
var onboardingCtrl = function onboardingCtrl($scope, globalService, $translate, $sce) {
$scope.onboardModal = document.getElementById('onboardingModal') ? new Modal(document.getElementById('onboardingModal')) : null;
$scope.onboardMsg = false; // a msg that displays on the modal if the user hasn't completed onboarding
$scope.onboardStatus = 1; // set the status to slide 1 for local storage later
$scope.showOnboardSlide = 1; // show slide 1
// if there is onboardStatus in localStorage....
if (globalFuncs.localStorage.getItem("onboardStatus", null) != null) {
// get the slide number from localStorage
$scope.onboardStatus = parseInt(globalFuncs.localStorage.getItem("onboardStatus"));
// if they've seen a few slides...
if ($scope.onboardStatus > 0 && $scope.onboardStatus < 10) {
$scope.showOnboardSlide = $scope.onboardStatus; // set the slide to the last slide they viewed
$scope.onboardMsg = true; // show a msg explaining they need to finish it
$scope.onboardModal.open(); // show the modal
//console.log( $scope.onboardStatus )
}
// otherwise, show the modal (starts at slide 1 by default, above)
} else {
$scope.onboardModal.open();
}
// whenever a user clicks a button on the modal...
$scope.setOnboardStatus = function (slideNum) {
$scope.showOnboardSlide = slideNum; // show the slide indicated
globalFuncs.localStorage.setItem("onboardStatus", JSON.stringify(slideNum)); // save number to localStorage for later
//console.log( "setOnboardStatus " + slideNum )
};
$scope.setOnboardStatus($scope.onboardStatus);
};
module.exports = onboardingCtrl;
},{}],27:[function(require,module,exports){
'use strict';
var sendTxCtrl = function sendTxCtrl($scope, $sce, walletService, $rootScope) {
$scope.tx = {};
$scope.signedTx;
$scope.ajaxReq = ajaxReq;
$scope.unitReadable = ajaxReq.type;
$scope.sendTxModal = new Modal(document.getElementById('sendTransaction'));
walletService.wallet = null;
walletService.password = '';
$scope.showAdvance = $rootScope.rootScopeShowRawTx = false;
$scope.dropdownEnabled = true;
$scope.Validator = Validator;
$scope.gasLimitChanged = false;
$scope.tx.readOnly = globalFuncs.urlGet('readOnly') == null ? false : true;
var currentTab = $scope.globalService.currentTab;
var tabs = $scope.globalService.tabs;
$scope.tokenTx = {
to: '',
value: 0,
id: -1
};
$scope.customGasMsg = '';
$scope.customGas = CustomGasMessages;
$scope.tx = {
// if there is no gasLimit or gas key in the URI, use the default value. Otherwise use value of gas or gasLimit. gasLimit wins over gas if both present
gasLimit: globalFuncs.urlGet('gaslimit') != null || globalFuncs.urlGet('gas') != null ? globalFuncs.urlGet('gaslimit') != null ? globalFuncs.urlGet('gaslimit') : globalFuncs.urlGet('gas') : globalFuncs.defaultTxGasLimit,
data: globalFuncs.urlGet('data') == null ? "" : globalFuncs.urlGet('data'),
to: globalFuncs.urlGet('to') == null ? "" : globalFuncs.urlGet('to'),
unit: "ether",
value: globalFuncs.urlGet('value') == null ? "" : globalFuncs.urlGet('value'),
nonce: null,
gasPrice: globalFuncs.urlGet('gasprice') == null ? null : globalFuncs.urlGet('gasprice'),
donate: false,
tokensymbol: globalFuncs.urlGet('tokensymbol') == null ? false : globalFuncs.urlGet('tokensymbol')
};
$scope.setSendMode = function (sendMode) {
var tokenId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var tokensymbol = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
$scope.tx.sendMode = sendMode;
$scope.unitReadable = '';
if (globalFuncs.urlGet('tokensymbol') != null) {
$scope.unitReadable = $scope.tx.tokensymbol;
$scope.tx.sendMode = 'token';
} else if (sendMode == 'ether') {
$scope.unitReadable = ajaxReq.type;
} else {
$scope.unitReadable = tokensymbol;
$scope.tokenTx.id = tokenId;
}
$scope.dropdownAmount = false;
};
$scope.setTokenSendMode = function () {
if ($scope.tx.sendMode == 'token' && !$scope.tx.tokensymbol) {
$scope.tx.tokensymbol = $scope.wallet.tokenObjs[0].symbol;
$scope.wallet.tokenObjs[0].type = "custom";
$scope.setSendMode($scope.tx.sendMode, 0, $scope.tx.tokensymbol);
} else if ($scope.tx.tokensymbol) {
for (var i = 0; i < $scope.wallet.tokenObjs.length; i++) {
if ($scope.wallet.tokenObjs[i].symbol.toLowerCase().indexOf($scope.tx.tokensymbol.toLowerCase()) !== -1) {
$scope.wallet.tokenObjs[i].type = "custom";
$scope.setSendMode('token', i, $scope.wallet.tokenObjs[i].symbol);
break;
} else $scope.tokenTx.id = -1;
}
}
if ($scope.tx.sendMode != 'token') $scope.tokenTx.id = -1;
};
var applyScope = function applyScope() {
if (!$scope.$$phase) $scope.$apply();
};
var defaultInit = function defaultInit() {
globalFuncs.urlGet('sendMode') == null ? $scope.setSendMode('ether') : $scope.setSendMode(globalFuncs.urlGet('sendMode'));
$scope.gasLimitChanged = globalFuncs.urlGet('gaslimit') != null ? true : false;
$scope.showAdvance = globalFuncs.urlGet('gaslimit') != null || globalFuncs.urlGet('gas') != null || globalFuncs.urlGet('data') != null;
if (globalFuncs.urlGet('data') || globalFuncs.urlGet('value') || globalFuncs.urlGet('to') || globalFuncs.urlGet('gaslimit') || globalFuncs.urlGet('sendMode') || globalFuncs.urlGet('gas') || globalFuncs.urlGet('tokensymbol')) $scope.hasQueryString = true; // if there is a query string, show an warning at top of page
};
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
$scope.wd = true;
$scope.wallet.setBalance(applyScope);
$scope.wallet.setTokens();
if ($scope.parentTxConfig) {
var setTxObj = function setTxObj() {
$scope.addressDrtv.ensAddressField = $scope.parentTxConfig.to;
$scope.tx.value = $scope.parentTxConfig.value;
$scope.tx.sendMode = $scope.parentTxConfig.sendMode ? $scope.parentTxConfig.sendMode : 'ether';
$scope.tx.tokensymbol = $scope.parentTxConfig.tokensymbol ? $scope.parentTxConfig.tokensymbol : '';
$scope.tx.gasPrice = $scope.parentTxConfig.gasPrice ? $scope.parentTxConfig.gasPrice : null;
$scope.tx.nonce = $scope.parentTxConfig.nonce ? $scope.parentTxConfig.nonce : null;
$scope.tx.data = $scope.parentTxConfig.data ? $scope.parentTxConfig.data : $scope.tx.data;
$scope.tx.readOnly = $scope.addressDrtv.readOnly = $scope.parentTxConfig.readOnly ? $scope.parentTxConfig.readOnly : false;
if ($scope.parentTxConfig.gasLimit) {
$scope.tx.gasLimit = $scope.parentTxConfig.gasLimit;
$scope.gasLimitChanged = true;
}
};
$scope.$watch('parentTxConfig', function () {
setTxObj();
}, true);
}
$scope.setTokenSendMode();
defaultInit();
});
$scope.$watch('ajaxReq.key', function () {
if ($scope.wallet) {
$scope.setSendMode('ether');
$scope.wallet.setBalance(applyScope);
$scope.wallet.setTokens();
}
});
$scope.$watch('tokenTx', function () {
if ($scope.wallet && $scope.wallet.tokenObjs !== undefined && $scope.wallet.tokenObjs[$scope.tokenTx.id] !== undefined && $scope.Validator.isValidAddress($scope.tokenTx.to) && $scope.Validator.isPositiveNumber($scope.tokenTx.value)) {
if ($scope.estimateTimer) clearTimeout($scope.estimateTimer);
$scope.estimateTimer = setTimeout(function () {
$scope.estimateGasLimit();
}, 500);
}
}, true);
$scope.$watch('tx', function (newValue, oldValue) {
$rootScope.rootScopeShowRawTx = false;
if (oldValue.sendMode && oldValue.sendMode != newValue.sendMode && newValue.sendMode == 'ether') {
$scope.tx.data = globalFuncs.urlGet('data') == null ? "" : globalFuncs.urlGet('data');
$scope.tx.gasLimit = globalFuncs.defaultTxGasLimit;
}
if (newValue.gasLimit == oldValue.gasLimit && $scope.wallet && $scope.Validator.isValidAddress($scope.tx.to) && $scope.Validator.isPositiveNumber($scope.tx.value) && $scope.Validator.isValidHex($scope.tx.data) && $scope.tx.sendMode != 'token') {
if ($scope.estimateTimer) clearTimeout($scope.estimateTimer);
$scope.estimateTimer = setTimeout(function () {
$scope.estimateGasLimit();
}, 500);
}
if ($scope.tx.sendMode == 'token') {
$scope.tokenTx.to = $scope.tx.to;
$scope.tokenTx.value = $scope.tx.value;
}
if (newValue.to !== oldValue.to) {
for (var i in $scope.customGas) {
if ($scope.tx.to.toLowerCase() == $scope.customGas[i].to.toLowerCase()) {
$scope.customGasMsg = $scope.customGas[i].msg != '' ? $scope.customGas[i].msg : '';
return;
}
}
$scope.customGasMsg = '';
}
}, true);
$scope.estimateGasLimit = function () {
$scope.customGasMsg = '';
if ($scope.gasLimitChanged) return;
for (var i in $scope.customGas) {
if ($scope.tx.to.toLowerCase() == $scope.customGas[i].to.toLowerCase()) {
$scope.showAdvance = $scope.tx.data != '' || $scope.customGas[i].data != '' ? true : false;
$scope.tx.gasLimit = $scope.customGas[i].gasLimit;
if ($scope.customGas[i].data != '') $scope.tx.data = $scope.customGas[i].data;
$scope.customGasMsg = $scope.customGas[i].msg != '' ? $scope.customGas[i].msg : '';
return;
}
}
if (globalFuncs.lightMode) {
$scope.tx.gasLimit = globalFuncs.defaultTokenGasLimit;
return;
}
var estObj = {
to: $scope.tx.to,
from: $scope.wallet.getAddressString(),
value: ethFuncs.sanitizeHex(ethFuncs.decimalToHex(etherUnits.toWei($scope.tx.value, $scope.tx.unit)))
};
if ($scope.tx.data != "") estObj.data = ethFuncs.sanitizeHex($scope.tx.data);
if ($scope.tx.sendMode == 'token') {
estObj.to = $scope.wallet.tokenObjs[$scope.tokenTx.id].getContractAddress();
estObj.data = $scope.wallet.tokenObjs[$scope.tokenTx.id].getData($scope.tokenTx.to, $scope.tokenTx.value).data;
estObj.value = '0x00';
}
ethFuncs.estimateGas(estObj, function (data) {
if (!data.error) {
if (data.data == '-1') $scope.notifier.danger(globalFuncs.errorMsgs[21]);
$scope.tx.gasLimit = data.data;
} else $scope.notifier.danger(data.msg);
});
};
var isEnough = function isEnough(valA, valB) {
return new BigNumber(valA).lte(new BigNumber(valB));
};
$scope.hasEnoughBalance = function () {
if ($scope.wallet.balance == 'loading') return false;
return isEnough($scope.tx.value, $scope.wallet.balance);
};
$scope.generateTx = function () {
if (!$scope.Validator.isValidAddress($scope.tx.to)) {
$scope.notifier.danger(globalFuncs.errorMsgs[5]);
return;
}
var txData = uiFuncs.getTxData($scope);
txData.gasPrice = $scope.tx.gasPrice ? '0x' + new BigNumber($scope.tx.gasPrice).toString(16) : null;
txData.nonce = $scope.tx.nonce ? '0x' + new BigNumber($scope.tx.nonce).toString(16) : null;
// set to true for offline tab and txstatus tab
// on sendtx tab, it pulls gas price from the gasprice slider & nonce
// if its true the whole txData object is set - don't try to change it
// if false, replace gas price and nonce. gas price from slider. nonce from server.
if (txData.gasPrice && txData.nonce) txData.isOffline = true;
if ($scope.tx.sendMode == 'token') {
// if the amount of tokens you are trying to send > tokens you have, throw error
if (!isEnough($scope.tx.value, $scope.wallet.tokenObjs[$scope.tokenTx.id].balance)) {
$scope.notifier.danger(globalFuncs.errorMsgs[0]);
return;
}
txData.to = $scope.wallet.tokenObjs[$scope.tokenTx.id].getContractAddress();
txData.data = $scope.wallet.tokenObjs[$scope.tokenTx.id].getData($scope.tokenTx.to, $scope.tokenTx.value).data;
txData.value = '0x00';
}
uiFuncs.generateTx(txData, function (rawTx) {
if (!rawTx.isError) {
$scope.rawTx = rawTx.rawTx;
$scope.signedTx = rawTx.signedTx;
$rootScope.rootScopeShowRawTx = true;
} else {
$rootScope.rootScopeShowRawTx = false;
$scope.notifier.danger(rawTx.error);
}
if (!$scope.$$phase) $scope.$apply();
});
};
$scope.sendTx = function () {
$scope.sendTxModal.close();
uiFuncs.sendTx($scope.signedTx, function (resp) {
if (!resp.isError) {
var checkTxLink = "https://www.myetherwallet.com?txHash=" + resp.data + "#check-tx-status";
var txHashLink = $scope.ajaxReq.blockExplorerTX.replace("[[txHash]]", resp.data);
var emailBody = 'I%20was%20trying%20to..............%0A%0A%0A%0ABut%20I%27m%20confused%20because...............%0A%0A%0A%0A%0A%0ATo%20Address%3A%20https%3A%2F%2Fetherscan.io%2Faddress%2F' + $scope.tx.to + '%0AFrom%20Address%3A%20https%3A%2F%2Fetherscan.io%2Faddress%2F' + $scope.wallet.getAddressString() + '%0ATX%20Hash%3A%20https%3A%2F%2Fetherscan.io%2Ftx%2F' + resp.data + '%0AAmount%3A%20' + $scope.tx.value + '%20' + $scope.unitReadable + '%0ANode%3A%20' + $scope.ajaxReq.type + '%0AToken%20To%20Addr%3A%20' + $scope.tokenTx.to + '%0AToken%20Amount%3A%20' + $scope.tokenTx.value + '%20' + $scope.unitReadable + '%0AData%3A%20' + $scope.tx.data + '%0AGas%20Limit%3A%20' + $scope.tx.gasLimit + '%0AGas%20Price%3A%20' + $scope.tx.gasPrice;
var verifyTxBtn = $scope.ajaxReq.type != nodes.nodeTypes.Custom ? '<a class="btn btn-xs btn-info" href="' + txHashLink + '" class="strong" target="_blank" rel="noopener noreferrer">Verify Transaction</a>' : '';
var checkTxBtn = '<a class="btn btn-xs btn-info" href="' + checkTxLink + '" target="_blank" rel="noopener noreferrer"> Check TX Status </a>';
var emailBtn = '<a class="btn btn-xs btn-info " href="mailto:support@myetherwallet.com?Subject=Issue%20regarding%20my%20TX%20&Body=' + emailBody + '" target="_blank" rel="noopener noreferrer">Confused? Email Us.</a>';
var completeMsg = '<p>' + globalFuncs.successMsgs[2] + '<strong>' + resp.data + '</strong></p><p>' + verifyTxBtn + ' ' + checkTxBtn + '</p>';
$scope.notifier.success(completeMsg, 0);
$scope.wallet.setBalance(applyScope);
if ($scope.tx.sendMode == 'token') $scope.wallet.tokenObjs[$scope.tokenTx.id].setBalance();
} else {
$scope.notifier.danger(resp.error);
}
});
};
$scope.transferAllBalance = function () {
if ($scope.tx.sendMode != 'token') {
uiFuncs.transferAllBalance($scope.wallet.getAddressString(), $scope.tx.gasLimit, function (resp) {
if (!resp.isError) {
$scope.tx.unit = resp.unit;
$scope.tx.value = resp.value;
} else {
$rootScope.rootScopeShowRawTx = false;
$scope.notifier.danger(resp.error);
}
});
} else {
$scope.tx.value = $scope.wallet.tokenObjs[$scope.tokenTx.id].getBalance();
}
};
$scope.parseSignedTx = function (signedTx) {
if (signedTx.slice(0, 2) == "0x") signedTx = signedTx.slice(2, signedTx.length);
$scope.parsedSignedTx = {};
var txData = new ethUtil.Tx(signedTx);
$scope.parsedSignedTx.gasPrice = {};
$scope.parsedSignedTx.txFee = {};
$scope.parsedSignedTx.balance = $scope.wallet.getBalance();
$scope.parsedSignedTx.from = ethFuncs.sanitizeHex(ethUtil.toChecksumAddress(txData.from.toString('hex')));
$scope.parsedSignedTx.to = ethFuncs.sanitizeHex(ethUtil.toChecksumAddress(txData.to.toString('hex')));
$scope.parsedSignedTx.value = txData.value == '0x' || txData.value == '' || txData.value == null ? '0' : etherUnits.toEther(new BigNumber(ethFuncs.sanitizeHex(txData.value.toString('hex'))).toString(), 'wei');
$scope.parsedSignedTx.gasLimit = new BigNumber(ethFuncs.sanitizeHex(txData.gasLimit.toString('hex'))).toString();
$scope.parsedSignedTx.gasPrice.wei = new BigNumber(ethFuncs.sanitizeHex(txData.gasPrice.toString('hex'))).toString();
$scope.parsedSignedTx.gasPrice.gwei = new BigNumber(ethFuncs.sanitizeHex(txData.gasPrice.toString('hex'))).div(etherUnits.getValueOfUnit('gwei')).toString();
$scope.parsedSignedTx.gasPrice.eth = etherUnits.toEther(new BigNumber(ethFuncs.sanitizeHex(txData.gasPrice.toString('hex'))).toString(), 'wei');
$scope.parsedSignedTx.txFee.wei = new BigNumber(parseInt($scope.parsedSignedTx.gasLimit)).times(new BigNumber(parseInt($scope.parsedSignedTx.gasPrice.wei)));
$scope.parsedSignedTx.txFee.gwei = new BigNumber($scope.parsedSignedTx.txFee.wei).div(etherUnits.getValueOfUnit('gwei')).toString();
$scope.parsedSignedTx.txFee.eth = etherUnits.toEther(parseInt($scope.parsedSignedTx.txFee.wei), 'wei').toString();
$scope.parsedSignedTx.nonce = txData.nonce == '0x' || txData.nonce == '' || txData.nonce == null ? '0' : new BigNumber(ethFuncs.sanitizeHex(txData.nonce.toString('hex'))).toString();
$scope.parsedSignedTx.data = txData.data == '0x' || txData.data == '' || txData.data == null ? '(none)' : ethFuncs.sanitizeHex(txData.data.toString('hex'));
};
};
module.exports = sendTxCtrl;
},{}],28:[function(require,module,exports){
(function (Buffer){
'use strict';
var signMsgCtrl = function signMsgCtrl($scope, $sce, walletService) {
walletService.wallet = null;
$scope.visibility = "signView";
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
});
$scope.signMsg = {
message: '',
status: '',
signedMsg: ''
};
$scope.verifyMsg = {
signedMsg: '',
status: ''
};
$scope.generateSignedMsg = function () {
try {
var thisMessage = $scope.signMsg.message;
var hwType = $scope.wallet.getHWType();
// Sign via MetaMask
if (typeof hwType != "undefined" && hwType == "web3") {
var msg = ethUtil.bufferToHex(new Buffer(thisMessage, 'utf8'));
var signingAddr = web3.eth.accounts[0];
var params = [msg, signingAddr];
var method = 'personal_sign';
$scope.notifier.info("Sent message for signing via MetaMask / Mist.");
web3.currentProvider.sendAsync({
method: method,
params: params,
signingAddr: signingAddr
}, function (err, result) {
if (err) return $scope.notifier.danger(err);
if (result.error) return $scope.notifier.danger(result.error);
$scope.signMsg.signedMsg = JSON.stringify({
address: signingAddr,
msg: thisMessage,
sig: result.result,
version: '2'
}, null, 2);
$scope.notifier.success('Successfully Signed Message with ' + signingAddr);
});
// Sign via Ledger
} else if (typeof hwType != "undefined" && hwType == "ledger") {
var msg = Buffer.from(thisMessage).toString("hex");
var app = new ledgerEth($scope.wallet.getHWTransport());
var localCallback = function localCallback(signed, error) {
if (typeof error != "undefined") {
error = error.errorCode ? u2f.getErrorByCode(error.errorCode) : error;
if (callback !== undefined) callback({
isError: true,
error: error
});
return;
}
var combined = signed['r'] + signed['s'] + signed['v'];
var combinedHex = combined.toString('hex');
var signingAddr = $scope.wallet.getAddressString();
$scope.signMsg.signedMsg = JSON.stringify({
address: $scope.wallet.getAddressString(),
msg: thisMessage,
sig: '0x' + combinedHex,
version: '2'
}, null, 2);
$scope.notifier.success('Successfully Signed Message with ' + signingAddr);
};
app.signPersonalMessage_async($scope.wallet.getPath(), msg, localCallback);
// Sign via Digital Bitbox
} else if (typeof hwType != "undefined" && hwType == "digitalBitbox") {
var msg = ethUtil.hashPersonalMessage(ethUtil.toBuffer(thisMessage));
var localCallback = function localCallback(signed, error) {
if (typeof error != "undefined") {
error = error.errorCode ? u2f.getErrorByCode(error.errorCode) : error;
$scope.notifier.danger(error);
return;
}
var combined = signed['r'] + signed['s'] + signed['v'];
var combinedHex = combined.toString('hex');
var signingAddr = $scope.wallet.getAddressString();
$scope.signMsg.signedMsg = JSON.stringify({
address: $scope.wallet.getAddressString(),
msg: thisMessage,
sig: '0x' + combinedHex,
version: '2'
}, null, 2);
$scope.notifier.success('Successfully Signed Message with ' + signingAddr);
};
$scope.notifier.info("Touch the LED for 3 seconds to sign the message. Or tap the LED to cancel.");
var app = new DigitalBitboxEth($scope.wallet.getHWTransport(), '');
app.signMessage($scope.wallet.getPath(), msg, localCallback);
// Sign via trezor
} else if (typeof hwType != "undefined" && hwType == "trezor") {
TrezorConnect.ethereumSignMessage($scope.wallet.getPath(), thisMessage, function (response) {
if (response.success) {
$scope.signMsg.signedMsg = JSON.stringify({
address: '0x' + response.address,
msg: thisMessage,
sig: '0x' + response.signature,
version: '2'
}, null, 2);
$scope.notifier.success('Successfully Signed Message with ' + $scope.wallet.getAddressString());
} else {
$scope.notifier.danger(response.error);
}
});
// Sign via PK
} else {
var msg = ethUtil.hashPersonalMessage(ethUtil.toBuffer(thisMessage));
var signed = ethUtil.ecsign(msg, $scope.wallet.getPrivateKey());
//console.log(signed.r)
//console.log(signed.s)
//console.log([signed.v])
var combined = Buffer.concat([Buffer.from(signed.r), Buffer.from(signed.s), Buffer.from([signed.v])]);
var combinedHex = combined.toString('hex');
var signingAddr = $scope.wallet.getAddressString();
$scope.signMsg.signedMsg = JSON.stringify({
address: $scope.wallet.getAddressString(),
msg: thisMessage,
sig: '0x' + combinedHex,
version: '2'
}, null, 2);
$scope.notifier.success('Successfully Signed Message with ' + signingAddr);
}
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.verifySignedMessage = function () {
var hwType = $scope.wallet.getHWType();
// Verify via trezor
if (typeof hwType != "undefined" && hwType == "trezor") {
var json = JSON.parse($scope.verifyMsg.signedMsg);
var address = ethFuncs.getNakedAddress(json.address);
var sig = ethFuncs.getNakedAddress(json.sig);
var message = json.msg;
TrezorConnect.ethereumVerifyMessage(address, sig, message, function (response) {
if (response.success) {
$scope.notifier.success(globalFuncs.successMsgs[6]);
$scope.verifiedMsg = {
address: json.address,
msg: json.msg,
sig: json.sig,
version: json.version
};
} else {
$scope.notifier.danger(response.error);
}
});
return;
}
try {
var json = JSON.parse($scope.verifyMsg.signedMsg);
var sig = new Buffer(ethFuncs.getNakedAddress(json.sig), 'hex');
if (sig.length != 65) throw globalFuncs.errorMsgs[12];
sig[64] = sig[64] == 0 || sig[64] == 1 ? sig[64] + 27 : sig[64];
var hash = json.version == '2' ? ethUtil.hashPersonalMessage(ethUtil.toBuffer(json.msg)) : ethUtil.sha3(json.msg);
var pubKey = ethUtil.ecrecover(hash, sig[64], sig.slice(0, 32), sig.slice(32, 64));
if (ethFuncs.getNakedAddress(json.address) != ethUtil.pubToAddress(pubKey).toString('hex')) throw globalFuncs.errorMsgs[12];else {
$scope.notifier.success(globalFuncs.successMsgs[6]);
$scope.verifiedMsg = {
address: json.address,
msg: json.msg,
sig: json.sig,
version: json.version
};
}
} catch (e) {
$scope.notifier.danger(e);
}
};
$scope.setVisibility = function (str) {
$scope.visibility = str;
};
};
module.exports = signMsgCtrl;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],29:[function(require,module,exports){
'use strict';
var swapCtrl = function swapCtrl($scope, $sce, walletService) {
var lStorageKey = "swapOrder";
$scope.ajaxReq = ajaxReq;
$scope.showedMinMaxError = false;
$scope.Validator = Validator;
$scope.bity = new bity();
$scope.bity.refreshRates(function () {
$scope.setOrderCoin(true, "ETH");
});
setInterval(function () {
$scope.bity.refreshRates();
}, 30000);
$scope.priceTicker = { ETHBTC: 1, ETHREP: 1, BTCREP: 1, BTCETH: 1, REPBTC: 1, REPETH: 1 };
$scope.availableCoins = ["ETH", "BTC", "REP"];
var initValues = function initValues() {
$scope.showStage1 = true;
$scope.showStage2 = $scope.showStage3Eth = $scope.showStage3Btc = false;
$scope.orderResult = null;
$scope.swapOrder = {
fromCoin: "ETH",
toCoin: "BTC",
isFrom: true,
fromVal: '',
toVal: '',
toAddress: '',
swapRate: '',
swapPair: ''
};
};
$scope.verifyMinMaxValues = function () {
if ($scope.swapOrder.toVal == '' || $scope.swapOrder.fromVal == '' || $scope.swapOrder.toVal == '0' || $scope.swapOrder.fromVal == '0' || $scope.showedMinMaxError) return false;
var errors = {
priceNotLoaded: 0,
lessThanMin: 1,
greaterThanMax: 2,
noErrors: 3
};
var verify = function verify() {
if (!$scope.bity.priceLoaded) return errors.priceNotLoaded;else if ($scope.swapOrder.toVal < bity.min || $scope.swapOrder.fromVal < bity.min) return errors.lessThanMin;else if ($scope.swapOrder.toCoin == "BTC" && $scope.swapOrder.toVal > bity.max || $scope.swapOrder.fromCoin == "BTC" && $scope.swapOrder.fromVal > bity.max) return errors.greaterThanMax;else if ($scope.swapOrder.toCoin == "ETH" && $scope.swapOrder.toVal * $scope.bity.curRate['ETHBTC'] > bity.max || $scope.swapOrder.fromCoin == "ETH" && $scope.swapOrder.fromVal * $scope.bity.curRate['ETHBTC'] > bity.max) return errors.greaterThanMax;else if ($scope.swapOrder.toCoin == "REP" && $scope.swapOrder.toVal * $scope.bity.curRate['REPBTC'] > bity.max || $scope.swapOrder.fromCoin == "REP" && $scope.swapOrder.fromVal * $scope.bity.curRate['REPBTC'] > bity.max) return errors.greaterThanMax;
return errors.noErrors;
};
var vResult = verify();
if (vResult == errors.noErrors) return true;else if (vResult == errors.priceNotLoaded) return false;else if (vResult == errors.lessThanMin || vResult == errors.greaterThanMax) {
if (!isStorageOrderExists()) {
uiFuncs.notifier.danger(globalFuncs.errorMsgs[27] + bity.max + " BTC, " + (bity.max / $scope.bity.curRate['ETHBTC']).toFixed(3) + " ETH, or " + (bity.max / $scope.bity.curRate['REPBTC']).toFixed(3) + " REP", 2500);
$scope.showedMinMaxError = true;
}
return false;
}
};
$scope.setOrderCoin = function (isFrom, coin) {
if (isFrom) $scope.swapOrder.fromCoin = coin;else $scope.swapOrder.toCoin = coin;
if ($scope.swapOrder.fromCoin == $scope.swapOrder.toCoin) for (var i in $scope.availableCoins) {
if ($scope.availableCoins[i] != $scope.swapOrder.fromCoin) {
$scope.swapOrder.toCoin = $scope.availableCoins[i];
break;
}
}$scope.swapOrder.swapRate = $scope.bity.curRate[$scope.swapOrder.fromCoin + $scope.swapOrder.toCoin];
$scope.swapOrder.swapPair = $scope.swapOrder.fromCoin + "/" + $scope.swapOrder.toCoin;
$scope.updateEstimate(isFrom);
$scope.dropdownFrom = $scope.dropdownTo = false;
};
$scope.updateEstimate = function (isFrom) {
if (isFrom) $scope.swapOrder.toVal = parseFloat(($scope.bity.curRate[$scope.swapOrder.fromCoin + $scope.swapOrder.toCoin] * $scope.swapOrder.fromVal).toFixed(bity.decimals));else $scope.swapOrder.fromVal = parseFloat(($scope.swapOrder.toVal / $scope.bity.curRate[$scope.swapOrder.fromCoin + $scope.swapOrder.toCoin]).toFixed(bity.decimals));
$scope.swapOrder.isFrom = isFrom;
};
$scope.setFinalPrices = function () {
$scope.showedMinMaxError = false;
try {
if (!$scope.Validator.isPositiveNumber($scope.swapOrder.fromVal) || !$scope.Validator.isPositiveNumber($scope.swapOrder.toVal)) throw globalFuncs.errorMsgs[0];else if (!$scope.verifyMinMaxValues()) throw globalFuncs.errorMsgs[27];
$scope.updateEstimate($scope.swapOrder.isFrom);
$scope.showStage1 = false;
$scope.showStage2 = true;
} catch (e) {
$scope.notifier.danger(e);
}
};
var getProgressBarArr = function getProgressBarArr(index, len) {
var tempArr = [];
for (var i = 0; i < len; i++) {
if (i < index) tempArr.push('progress-true');else if (i == index) tempArr.push('progress-active');else tempArr.push('');
}
return tempArr;
};
var isStorageOrderExists = function isStorageOrderExists() {
var order = globalFuncs.localStorage.getItem(lStorageKey, null);
return order && $scope.Validator.isJSON(order);
};
var setOrderFromStorage = function setOrderFromStorage() {
var order = JSON.parse(globalFuncs.localStorage.getItem(lStorageKey, null));
$scope.orderResult = order;
$scope.swapOrder = order.swapOrder;
processOrder();
};
var saveOrderToStorage = function saveOrderToStorage(order) {
globalFuncs.localStorage.setItem(lStorageKey, JSON.stringify(order));
};
var processOrder = function processOrder() {
var orderResult = $scope.orderResult;
orderResult.progress = {
status: "OPEN",
bar: getProgressBarArr(1, 5),
showTimeRem: true,
timeRemaining: '10:00',
secsRemaining: orderResult.validFor - parseInt((new Date().getTime() - new Date(orderResult.timestamp_created).getTime()) / 1000),
pendingStatusReq: false,
checkDelay: 1000
};
var timeRem = setInterval(function () {
if (!orderResult) clearInterval(timeRem);
if (orderResult.progress.secsRemaining > 0) {
if (orderResult.progress.status == "OPEN") orderResult.progress.secsRemaining--;else orderResult.progress.secsRemaining++;
var minutes = Math.floor(orderResult.progress.secsRemaining / 60);
var seconds = orderResult.progress.secsRemaining - minutes * 60;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
orderResult.progress.timeRemaining = minutes + ':' + seconds;
if (!$scope.$$phase) $scope.$apply();
} else {
orderResult.progress.timeRemaining = "00:00";
clearInterval(timeRem);
}
}, 1000);
var progressCheck = setInterval(function () {
if (!orderResult) clearInterval(progressCheck);
if (!orderResult.progress.pendingStatusReq) {
orderResult.progress.pendingStatusReq = true;
$scope.bity.getStatus({ orderid: orderResult.id }, function (data) {
if (data.error) $scope.notifier.danger(data.msg);else {
data = data.data;
if (bity.validStatus.indexOf(data.status) != -1) orderResult.progress.status = "RCVE";
if (orderResult.progress.status == "OPEN" && bity.validStatus.indexOf(data.input.status) != -1) {
orderResult.progress.secsRemaining = 1;
orderResult.progress.showTimeRem = false;
orderResult.progress.status = "RCVE";
orderResult.progress.bar = getProgressBarArr(3, 5);
} else if (orderResult.progress.status == "RCVE" && bity.validStatus.indexOf(data.output.status) != -1) {
orderResult.progress.status = "FILL";
orderResult.progress.bar = getProgressBarArr(5, 5);
orderResult.progress.showTimeRem = false;
var url = orderResult.output.currency == 'BTC' ? bity.btcExplorer.replace("[[txHash]]", data.output.reference) : bity.ethExplorer.replace("[[txHash]]", data.output.reference);
var bExStr = "<a href='" + url + "' target='_blank' rel='noopener'> View your transaction </a>";
$scope.notifier.success(globalFuncs.successMsgs[2] + data.output.reference + "<br />" + bExStr);
clearInterval(progressCheck);
clearInterval(timeRem);
} else if (bity.invalidStatus.indexOf(data.status) != -1) {
orderResult.progress.status = "CANC";
orderResult.progress.bar = getProgressBarArr(-1, 5);
$scope.notifier.danger("Time has run out. If you have already sent, please wait 1 hour. If your order has not be processed after 1 hour, please press the orange 'Issue with your Swap?' button.");
orderResult.progress.secsRemaining = 0;
clearInterval(progressCheck);
}
if (!$scope.$$phase) $scope.$apply();
}
orderResult.progress.pendingStatusReq = false;
});
}
}, orderResult.progress.checkDelay);
$scope.showStage2 = false;
if ($scope.orderResult.input.currency == 'BTC') $scope.showStage3Btc = true;else {
$scope.parentTxConfig = {
to: ethUtil.toChecksumAddress($scope.orderResult.payment_address),
value: $scope.orderResult.input.amount,
sendMode: $scope.orderResult.input.currency == 'ETH' ? 'ether' : 'token',
tokensymbol: $scope.orderResult.input.currency == 'ETH' ? '' : $scope.orderResult.input.currency,
readOnly: true
};
new Modal(document.getElementById('sendTransaction'));
$scope.showStage3Eth = true;
}
};
$scope.openOrder = function () {
if ($scope.swapOrder.toCoin != 'BTC' && $scope.Validator.isValidAddress($scope.swapOrder.toAddress) || $scope.swapOrder.toCoin == 'BTC' && $scope.Validator.isValidBTCAddress($scope.swapOrder.toAddress)) {
var order = {
amount: $scope.swapOrder.isFrom ? $scope.swapOrder.fromVal : $scope.swapOrder.toVal,
mode: $scope.swapOrder.isFrom ? 0 : 1,
pair: $scope.swapOrder.fromCoin + $scope.swapOrder.toCoin,
destAddress: $scope.swapOrder.toAddress
};
$scope.bity.openOrder(order, function (data) {
if (!data.error) {
$scope.orderResult = data.data;
$scope.orderResult.swapOrder = $scope.swapOrder;
var orderResult = $scope.orderResult;
saveOrderToStorage(orderResult);
processOrder();
} else $scope.notifier.danger(data.msg);
if (!$scope.$$phase) $scope.$apply();
});
} else {
$scope.notifier.danger(globalFuncs.errorMsgs[5]);
}
};
$scope.newSwap = function () {
globalFuncs.localStorage.setItem(lStorageKey, '');
initValues();
};
initValues();
if (isStorageOrderExists()) {
$scope.showStage1 = false;
setOrderFromStorage();
}
};
module.exports = swapCtrl;
},{}],30:[function(require,module,exports){
'use strict';
var tabsCtrl = function tabsCtrl($scope, globalService, $translate, $sce) {
$scope.gService = globalService;
$scope.tabNames = $scope.gService.tabs;
$scope.curLang = 'English';
$scope.customNodeModal = document.getElementById('customNodeModal') ? new Modal(document.getElementById('customNodeModal')) : null;
$scope.Validator = Validator;
$scope.nodeList = nodes.nodeList;
$scope.defaultNodeKey = 'eth_mew';
$scope.customNode = { options: 'eth', name: '', url: '', port: '', httpBasicAuth: null, eip155: false, chainId: '' };
$scope.customNodeCount = 0;
$scope.nodeIsConnected = true;
$scope.gasPriceMsg = false;
$scope.browserProtocol = window.location.protocol;
var hval = window.location.hash;
$scope.notifier = uiFuncs.notifier;
$scope.notifier.sce = $sce;
$scope.notifier.scope = $scope;
$scope.ajaxReq = ajaxReq;
$scope.nodeType = $scope.ajaxReq.type;
$scope.nodeService = $scope.ajaxReq.service;
$scope.$watch('ajaxReq.type', function () {
$scope.nodeType = $scope.ajaxReq.type;
});
$scope.$watch('ajaxReq.service', function () {
$scope.nodeService = $scope.ajaxReq.service;
});
$scope.setArrowVisibility = function () {
setTimeout(function () {
if (document.querySelectorAll('.nav-inner')[0] && document.querySelectorAll('.nav-scroll')[0]) {
$scope.showLeftArrow = false;
$scope.showRightArrow = !(document.querySelectorAll('.nav-inner')[0].clientWidth <= document.querySelectorAll('.nav-scroll')[0].clientWidth);
$scope.$apply();
}
}, 200);
};
$scope.setArrowVisibility();
var gasPriceKey = "gasPrice";
$scope.gasChanged = function () {
globalFuncs.localStorage.setItem(gasPriceKey, $scope.gas.value);
ethFuncs.gasAdjustment = $scope.gas.value;
$scope.gasPriceMsg = ethFuncs.gasAdjustment < 41 ? true : false;
};
var setGasValues = function setGasValues() {
$scope.gas = {
curVal: 41,
value: globalFuncs.localStorage.getItem(gasPriceKey, null) ? parseInt(globalFuncs.localStorage.getItem(gasPriceKey)) : 41,
max: 99,
min: 1,
step: 1
};
var curNode = globalFuncs.localStorage.getItem('curNode', null);
ethFuncs.gasAdjustment = $scope.gas.value;
$scope.gasPriceMsg = ethFuncs.gasAdjustment < 41 ? true : false;
};
setGasValues();
$scope.gasChanged();
function makeNewNode(key) {
var curNode;
if ($scope.nodeList[key]) {
curNode = $scope.nodeList[key];
} else {
curNode = $scope.nodeList[$scope.defaultNodeKey];
}
return curNode;
}
var networkHasChanged = false;
$scope.changeNode = function (key) {
var newNode = makeNewNode(key);
if (!$scope.curNode) {
networkHasChanged = false;
$scope.curNode = newNode;
} else {
if ($scope.curNode.type !== newNode.type) {
networkHasChanged = true;
} else {
networkHasChanged = false;
}
$scope.curNode = newNode;
}
$scope.dropdownNode = false;
Token.popTokens = $scope.curNode.tokenList;
ajaxReq['key'] = key;
for (var attrname in $scope.curNode.lib) {
ajaxReq[attrname] = $scope.curNode.lib[attrname];
}for (var attrname in $scope.curNode) {
if (attrname != 'name' && attrname != 'tokenList' && attrname != 'lib') ajaxReq[attrname] = $scope.curNode[attrname];
}globalFuncs.localStorage.setItem('curNode', JSON.stringify({
key: key
}));
if (nodes.ensNodeTypes.indexOf($scope.curNode.type) == -1) $scope.tabNames.ens.cx = $scope.tabNames.ens.mew = false;
if (nodes.domainsaleNodeTypes.indexOf($scope.curNode.type) == -1) $scope.tabNames.domainsale.cx = $scope.tabNames.domainsale.mew = false;else $scope.tabNames.ens.cx = $scope.tabNames.ens.mew = true;
ajaxReq.getCurrentBlock(function (data) {
if (data.error) {
$scope.nodeIsConnected = false;
$scope.notifier.danger(globalFuncs.errorMsgs[32]);
} else {
$scope.nodeIsConnected = true;
$scope.notifier.info(globalFuncs.successMsgs[5] + '— Now, check the URL: <strong>' + window.location.href + '.</strong> <br /> Network: <strong>' + $scope.nodeType + ' </strong> provided by <strong>' + $scope.nodeService + '.</strong>', 5000);
}
});
networkHasChanged && window.setTimeout(function () {
location.reload();
}, 250);
};
$scope.checkNodeUrl = function (nodeUrl) {
return $scope.Validator.isValidURL(nodeUrl);
};
$scope.setCurNodeFromStorage = function () {
var node = globalFuncs.localStorage.getItem('curNode', null);
if (node === JSON.stringify({ "key": "eth_metamask" })) {
node = JSON.stringify({ "key": "eth_infura" });
}
if (node == null) {
$scope.changeNode($scope.defaultNodeKey);
} else {
node = JSON.parse(node);
var key = globalFuncs.stripTags(node.key);
$scope.changeNode(key);
}
};
$scope.addCustomNodeToList = function (nodeInfo) {
var tempObj = null;
if (nodeInfo.options == 'eth') tempObj = JSON.parse(JSON.stringify(nodes.nodeList.eth_ethscan));else if (nodeInfo.options == 'etc') tempObj = JSON.parse(JSON.stringify(nodes.nodeList.etc_epool));else if (nodeInfo.options == 'rop') tempObj = JSON.parse(JSON.stringify(nodes.nodeList.rop_mew));else if (nodeInfo.options == 'kov') tempObj = JSON.parse(JSON.stringify(nodes.nodeList.kov_ethscan));else if (nodeInfo.options == 'rin') tempObj = JSON.parse(JSON.stringify(nodes.nodeList.rin_ethscan));else if (nodeInfo.options == 'cus') {
tempObj = JSON.parse(JSON.stringify(nodes.customNodeObj));
tempObj.eip155 = nodeInfo.eip155;
tempObj.chainId = parseInt(nodeInfo.chainId);
}
if (tempObj) {
tempObj.name = nodeInfo.name + ':' + nodeInfo.options;
tempObj.service = 'Custom';
tempObj.lib = new nodes.customNode(nodeInfo.url, nodeInfo.port, nodeInfo.httpBasicAuth);
$scope.nodeList['cus_' + nodeInfo.options + '_' + $scope.customNodeCount] = tempObj;
$scope.customNodeCount++;
}
};
$scope.getCustomNodesFromStorage = function () {
for (var key in $scope.nodeList) {
if (key.indexOf("cus_") != -1) delete $scope.nodeList[key];
}
var localNodes = globalFuncs.localStorage.getItem('localNodes', null);
if (localNodes) {
localNodes = JSON.parse(localNodes);
for (var i = 0; i < localNodes.length; i++) {
$scope.addCustomNodeToList(localNodes[i]);
}
}
};
$scope.getCustomNodesFromStorage();
$scope.setCurNodeFromStorage();
$scope.saveCustomNode = function () {
try {
if (!$scope.Validator.isAlphaNumericSpace($scope.customNode.name)) throw globalFuncs.errorMsgs[22];else if (!$scope.checkNodeUrl($scope.customNode.url)) throw globalFuncs.errorMsgs[23];else if (!$scope.Validator.isPositiveNumber($scope.customNode.port) && $scope.customNode.port != '') throw globalFuncs.errorMsgs[24];else if ($scope.customNode.eip155 && !$scope.Validator.isPositiveNumber($scope.customNode.chainId)) throw globalFuncs.errorMsgs[25];else if ($scope.customNode.httpBasicAuth && ($scope.customNode.httpBasicAuth.user == '' || $scope.customNode.httpBasicAuth.password == '')) throw globalFuncs.errorMsgs[29];
} catch (e) {
$scope.notifier.danger(e);
return;
}
var customNode = $scope.customNode;
var localNodes = globalFuncs.localStorage.getItem('localNodes', null);
localNodes = !localNodes ? [] : JSON.parse(localNodes);
localNodes.push(customNode);
$scope.addCustomNodeToList(customNode);
$scope.changeNode('cus_' + customNode.options + '_' + ($scope.customNodeCount - 1));
globalFuncs.localStorage.setItem("localNodes", JSON.stringify(localNodes));
$scope.customNodeModal.close();
$scope.customNode = { options: 'eth', name: '', url: '', port: '', httpBasicAuth: null, eip155: false, chainId: '' };
};
$scope.removeNodeFromLocal = function (localNodeName) {
var localNodes = globalFuncs.localStorage.getItem('localNodes', null);
localNodes = !localNodes ? [] : JSON.parse(localNodes);
for (var i = 0; i < localNodes.length; i++) {
if (localNodes[i].name + ':' + localNodes[i].options == localNodeName) localNodes.splice(i, 1);
}
globalFuncs.localStorage.setItem('localNodes', JSON.stringify(localNodes));
$scope.getCustomNodesFromStorage();
$scope.setCurNodeFromStorage();
};
$scope.setTab = function (hval) {
if (hval != '') {
hval = hval.replace('#', '');
for (var key in $scope.tabNames) {
if ($scope.tabNames[key].url == hval) {
$scope.activeTab = globalService.currentTab = $scope.tabNames[key].id;
break;
}
$scope.activeTab = globalService.currentTab;
}
} else {
$scope.activeTab = globalService.currentTab;
}
};
$scope.setTab(hval);
$scope.tabClick = function (id) {
globalService.tokensLoaded = false;
$scope.activeTab = globalService.currentTab = id;
for (var key in $scope.tabNames) {
if ($scope.tabNames[key].id == id) location.hash = $scope.tabNames[key].url;
}
};
$scope.setLanguageVal = function (id, varName, pos) {
$translate(id).then(function (paragraph) {
globalFuncs[varName][pos] = paragraph;
}, function (translationId) {
globalFuncs[varName][pos] = translationId;
});
};
$scope.setErrorMsgLanguage = function () {
for (var i = 0; i < globalFuncs.errorMsgs.length; i++) {
$scope.setLanguageVal('ERROR_' + i, 'errorMsgs', i);
}for (var i = 0; i < globalFuncs.successMsgs.length; i++) {
$scope.setLanguageVal('SUCCESS_' + (i + 1), 'successMsgs', i);
}
};
$scope.setGethErrMsgLanguage = function () {
globalFuncs.gethErrorMsgs = {};
for (var s in globalFuncs.gethErrors) {
var key = globalFuncs.gethErrors[s];
if (key.indexOf('GETH_') === 0) {
$scope.setLanguageVal(key, 'gethErrorMsgs', key);
}
}
};
$scope.setParityErrMsgLanguage = function () {
globalFuncs.parityErrorMsgs = {};
for (var s in globalFuncs.parityErrors) {
var key = globalFuncs.parityErrors[s];
if (key.indexOf('PARITY_') === 0 || key.indexOf('ERROR_17') === 0) {
$scope.setLanguageVal(key, 'parityErrorMsgs', key);
}
}
};
$scope.changeLanguage = function (key, value) {
$translate.use(key);
$scope.setErrorMsgLanguage();
if (globalFuncs.getEthNodeName() == 'geth') $scope.setGethErrMsgLanguage();else $scope.setParityErrMsgLanguage();
$scope.curLang = value;
$scope.setArrowVisibility();
$scope.dropdown = false;
globalFuncs.localStorage.setItem('language', JSON.stringify({
key: key,
value: value
}));
globalFuncs.curLang = key;
};
$scope.setLanguageFromStorage = function () {
var lang = globalFuncs.localStorage.getItem('language', null);
if (lang == null) lang = "{\"key\":\"en\",\"value\":\"English\"}";
lang = JSON.parse(lang);
var key = globalFuncs.stripTags(lang.key);
var value = globalFuncs.stripTags(lang.value);
$scope.changeLanguage(key, value);
};
$scope.setLanguageFromStorage();
$scope.setHash = function (hash) {
location.hash = hash;
$scope.setTab(hash);
$scope.$apply();
};
$scope.scrollHoverIn = function (isLeft, val) {
clearInterval($scope.sHoverTimer);
$scope.sHoverTimer = setInterval(function () {
if (isLeft) $scope.scrollLeft(val);else $scope.scrollRight(val);
}, 20);
};
$scope.scrollHoverOut = function () {
clearInterval($scope.sHoverTimer);
};
$scope.setOnScrollArrows = function () {
var ele = document.querySelectorAll('.nav-scroll')[0];
$scope.showLeftArrow = ele.scrollLeft > 0;
$scope.showRightArrow = document.querySelectorAll('.nav-inner')[0].clientWidth > ele.clientWidth + ele.scrollLeft;
$scope.$apply();
};
$scope.scrollLeft = function (val) {
var ele = document.querySelectorAll('.nav-scroll')[0];
ele.scrollLeft -= val;
};
$scope.scrollRight = function (val) {
var ele = document.querySelectorAll('.nav-scroll')[0];
ele.scrollLeft += val;
};
angular.element(document.querySelectorAll('.nav-scroll')[0]).bind('scroll', $scope.setOnScrollArrows);
globalFuncs.changeHash = $scope.setHash;
};
module.exports = tabsCtrl;
},{}],31:[function(require,module,exports){
'use strict';
var txStatusCtrl = function txStatusCtrl($scope) {
$scope.Validator = Validator;
$scope.checkTxPage = true;
$scope.checkTxReadOnly = true;
$scope.txStatus = {
found: 0,
notFound: 1,
mined: 2
};
var MIN_GAS = 41;
$scope.txInfo = {
status: null, // notFound foundInPending foundOnChain
hash: globalFuncs.urlGet('txHash') == null ? "" : globalFuncs.urlGet('txHash'),
from: '',
to: '',
value: '',
valueStr: '',
gasLimit: '',
gasPrice: '',
data: '',
nonce: ''
};
var applyScope = function applyScope() {
if (!$scope.$$phase) $scope.$apply();
};
var setUSDvalues = function setUSDvalues() {
ajaxReq.getETHvalue(function (data) {
$scope.txInfo.gasPrice.usd = new BigNumber(data.usd).mul(new BigNumber($scope.txInfo.gasPrice.eth)).toString();
applyScope();
});
};
var txToObject = function txToObject(tx) {
var txStatus = $scope.txStatus;
if (tx) {
console.log('txToObject');
console.log(tx);
$scope.txInfo = {
status: tx.blockNumber ? txStatus.mined : txStatus.found,
hash: tx.hash,
from: ethUtil.toChecksumAddress(tx.from),
to: tx.to ? ethUtil.toChecksumAddress(tx.to) : '',
value: new BigNumber(tx.value).toString(),
valueStr: etherUnits.toEther(tx.value, 'wei') + " ETH",
gasLimit: new BigNumber(tx.gas).toString(),
gasPrice: {
wei: new BigNumber(tx.gasPrice).toString(),
gwei: new BigNumber(tx.gasPrice).div(etherUnits.getValueOfUnit('gwei')).toString(),
eth: etherUnits.toEther(tx.gasPrice, 'wei')
},
data: tx.input == '0x' ? '' : tx.input,
nonce: new BigNumber(tx.nonce).toString()
};
if ($scope.txInfo.status == txStatus.found) {
var _gasPrice = new BigNumber($scope.txInfo.gasPrice.wei).mul(1.1).floor();
if (_gasPrice.lt(etherUnits.getValueOfUnit('gwei') * MIN_GAS)) _gasPrice = new BigNumber(etherUnits.getValueOfUnit('gwei') * MIN_GAS);
$scope.parentTxConfig = {
to: $scope.txInfo.from,
value: '0',
sendMode: 'ether',
tokensymbol: '',
readOnly: false,
gasPrice: _gasPrice.toString(),
gasLimit: '21000',
data: '',
nonce: $scope.txInfo.nonce
};
new Modal(document.getElementById('sendTransaction'));
}
setUSDvalues();
} else {
$scope.txInfo.status = txStatus.notFound;
}
};
$scope.checkTxStatus = function () {
var txInfo = $scope.txInfo;
try {
if (!Validator.isValidTxHash(txInfo.hash)) throw globalFuncs.errorMsgs[36];
ajaxReq.getTransaction(txInfo.hash, function (data) {
if (data.error) $scope.notifier.danger(data.msg);else {
txToObject(data.data);
}
});
} catch (e) {
$scope.notifier.danger(e);
}
};
globalFuncs.urlGet('txHash') == null ? '' : $scope.checkTxStatus();
};
module.exports = txStatusCtrl;
},{}],32:[function(require,module,exports){
'use strict';
var viewCtrl = function viewCtrl($scope, globalService, $sce) {
$scope.globalService = globalService;
$scope.notifier = uiFuncs.notifier;
$scope.notifier.sce = $sce;
$scope.notifier.scope = $scope;
};
module.exports = viewCtrl;
},{}],33:[function(require,module,exports){
'use strict';
var viewWalletCtrl = function viewWalletCtrl($scope, walletService) {
$scope.usdBalance = "loading";
$scope.gbpBalance = "loading";
$scope.eurBalance = "loading";
$scope.btcBalance = "loading";
$scope.etherBalance = "loading";
$scope.tokenVisibility = "hidden";
$scope.pkeyVisible = false;
walletService.wallet = null;
walletService.password = '';
$scope.ajaxReq = ajaxReq;
$scope.$watch(function () {
if (walletService.wallet == null) return null;
return walletService.wallet.getAddressString();
}, function () {
if (walletService.wallet == null) return;
$scope.wallet = walletService.wallet;
$scope.wd = true;
$scope.showEnc = walletService.password != '';
if (walletService.wallet.type == "default") $scope.blob = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toJSON());
if (walletService.password != '') {
$scope.blobEnc = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toV3(walletService.password, {
kdf: globalFuncs.kdf,
n: globalFuncs.scrypt.n
}));
$scope.encFileName = $scope.wallet.getV3Filename();
}
$scope.wallet.setBalance();
$scope.wallet.setTokens();
});
$scope.$watch('ajaxReq.key', function () {
if ($scope.wallet) {
$scope.wallet.setBalance();
$scope.wallet.setTokens();
}
});
$scope.printQRCode = function () {
globalFuncs.printPaperWallets(JSON.stringify([{
address: $scope.wallet.getChecksumAddressString(),
private: $scope.wallet.getPrivateKeyString()
}]));
};
$scope.showHidePkey = function () {
$scope.pkeyVisible = !$scope.pkeyVisible;
};
$scope.resetWallet = function () {
$scope.wallet = null;
walletService.wallet = null;
walletService.password = '';
$scope.blob = $scope.blobEnc = $scope.password = "";
};
};
module.exports = viewWalletCtrl;
},{}],34:[function(require,module,exports){
'use strict';
var walletBalanceCtrl = function walletBalanceCtrl($scope, $sce, $rootScope) {
$scope.ajaxReq = ajaxReq;
$scope.tokensLoaded = false;
$scope.showAllTokens = false;
$scope.localToken = {
contractAdd: "",
symbol: "",
decimals: "",
type: "custom"
};
$scope.slide = 2;
$scope.customTokenField = false;
$scope.saveTokenToLocal = function () {
globalFuncs.saveTokenToLocal($scope.localToken, function (data) {
if (!data.error) {
$scope.addressDrtv.ensAddressField = "";
$scope.localToken = {
contractAdd: "",
symbol: "",
decimals: "",
type: "custom"
};
$scope.wallet.setTokens();
$scope.validateLocalToken = $sce.trustAsHtml('');
$scope.customTokenField = false;
} else {
$scope.notifier.danger(data.msg);
}
});
};
$scope.setAndVerifyBalance = function (token) {
if (token.balance == 'Click to Load') {
token.balance = 'loading';
token.setBalance(function () {
var autoTokens = globalFuncs.localStorage.getItem('autoLoadTokens');
$scope.autoLoadTokens = autoTokens ? JSON.parse(autoTokens) : [];
console.log(token.balance);
console.log(token.contractAddress);
if (parseInt(token.balance) > 0) {
$scope.autoLoadTokens.push(token.contractAddress);
globalFuncs.localStorage.setItem('autoLoadTokens', JSON.stringify($scope.autoLoadTokens));
console.log(token);
}
});
}
};
/*
$scope.$watch('wallet', function() {
if ($scope.wallet) $scope.reverseLookup();
});
$scope.reverseLookup = function() {
var _ens = new ens();
_ens.getName($scope.wallet.getAddressString().substring(2) + '.addr.reverse', function(data) {
if (data.error) uiFuncs.notifier.danger(data.msg);
else if (data.data == '0x') {
$scope.showens = false;
} else {
$scope.ensAddress = data.data;
$scope.showens = true;
}
});
}
*/
$scope.removeTokenFromLocal = function (tokensymbol) {
globalFuncs.removeTokenFromLocal(tokensymbol, $scope.wallet.tokenObjs);
$rootScope.rootScopeShowRawTx = false;
};
$scope.showDisplayOnTrezor = function () {
return $scope.wallet != null && $scope.wallet.hwType === 'trezor';
};
$scope.displayOnTrezor = function () {
TrezorConnect.ethereumGetAddress($scope.wallet.path, function () {});
};
$scope.showDisplayOnLedger = function () {
return $scope.wallet != null && $scope.wallet.hwType === 'ledger';
};
$scope.displayOnLedger = function () {
var app = new ledgerEth($scope.wallet.getHWTransport());
app.getAddress($scope.wallet.path, function () {}, true, false);
};
};
module.exports = walletBalanceCtrl;
},{}],35:[function(require,module,exports){
'use strict';
var walletGenCtrl = function walletGenCtrl($scope) {
$scope.password = "";
$scope.wallet = null;
$scope.showWallet = false;
$scope.blob = $scope.blobEnc = "";
$scope.isDone = true;
$scope.showPass = true;
$scope.fileDownloaded = false;
$scope.showPaperWallet = false;
$scope.showGetAddress = false;
$scope.genNewWallet = function () {
if (!$scope.isStrongPass()) {
$scope.notifier.danger(globalFuncs.errorMsgs[1]);
} else if ($scope.isDone) {
$scope.wallet = $scope.blob = $scope.blobEnc = null;
if (!$scope.$$phase) $scope.$apply();
$scope.isDone = false;
$scope.wallet = Wallet.generate(false);
$scope.showWallet = true;
$scope.blob = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toJSON());
$scope.blobEnc = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toV3($scope.password, {
kdf: globalFuncs.kdf,
n: globalFuncs.scrypt.n
}));
$scope.encFileName = $scope.wallet.getV3Filename();
if (parent != null) parent.postMessage(JSON.stringify({ address: $scope.wallet.getAddressString(), checksumAddress: $scope.wallet.getChecksumAddressString() }), "*");
$scope.isDone = true;
if (!$scope.$$phase) $scope.$apply();
}
};
$scope.printQRCode = function () {
globalFuncs.printPaperWallets(JSON.stringify([{
address: $scope.wallet.getChecksumAddressString(),
private: $scope.wallet.getPrivateKeyString()
}]));
};
$scope.isStrongPass = function () {
return globalFuncs.isStrongPass($scope.password);
};
$scope.downloaded = function () {
$scope.fileDownloaded = true;
};
$scope.continueToPaper = function () {
$scope.showPaperWallet = true;
};
$scope.getAddress = function () {
$scope.showPaperWallet = false;
$scope.wallet = null;
$scope.showGetAddress = true;
};
};
module.exports = walletGenCtrl;
},{}],36:[function(require,module,exports){
'use strict';
// For token sale holders:
// 1. Add the address users are sending to
// 2. Add the gas limit users should use to send successfully (this avoids OOG errors)
// 3. Add any data if applicable
// 4. Add a message if you want.
// Token Calendar: If you aren't on the above, you should get on it.
// http://www.tokensalecalendar.com/
module.exports = [{
// Accord (ARD) Token sale
to: '0x75aa7b0d02532f3833b66c7f0ad35376d373ddf8',
gasLimit: 300000,
data: '',
msg: ' Accord (ARD) ERC20 token sale - http://accordtoken.com'
}, {
// BTQ Token Sale
to: '0x16B0E62aC13a2fAeD36D18bce2356d25Ab3CfAD3',
gasLimit: 200000,
data: '',
msg: 'BTQ ICO ends February 1, 2018. btc btq is your exclusive bitcoin boutique and world\'s premier cryptocurrency lifestyle brand. https://thebtcbtq.com/btq'
}, {
// MNT Token Sale
to: '0xA9877b1e05D035899131DBd1e403825166D09f92',
gasLimit: 200000,
data: '',
msg: 'MNT Token Sale - http://mnt.coinjoker.com'
}, {
// PUC Token Sale
to: '0xEf6B4cE8C9Bc83744fbcdE2657b32eC18790458A',
gasLimit: 930000,
data: '',
msg: 'PUC Token Sale - http://price-s.info'
}, {
// DIVX Token Sale
to: '0x13f11C9905A08ca76e3e853bE63D4f0944326C72',
gasLimit: 300000,
data: '0xb4427263',
msg: 'DIVX Token Sale - www.diviproject.org'
}, {
// NOX Token Sale
to: '0x4b0712de9b75bc68a566215acca876ea5e55c172',
gasLimit: 114293,
data: '',
msg: 'NOX Token Sale'
}, {
// GEE Token Sale
to: '0xF5DFFdEAEA54bB56156B47de1C7b4346c7dBa69C',
gasLimit: 180000,
data: '',
msg: 'GEE Token Sale'
}, {
// STORM tokens
to: '0xc88c7e1AEbd89187d13bD42e1ff814d32f492BF6',
gasLimit: 250000,
data: '',
msg: 'STORM token sale: gamified micro-tasks - Earn anywhere, anytime, from any device. https://www.stormtoken.com, NOV 7, 2017'
}, {
// RVL tokens
to: '0xDd64EF0c8a41d8a17F09ce2279D79b3397184A10',
gasLimit: 200000,
data: '',
msg: 'RVL token sale: PRE-ICO SUPER SALE, SHARING ECONOMY PIATTAFORM, https://www.R-EVOLUTIONCOIN.COM.com, DIC 15, 2017'
}, {
// Aigang (AIX) ICO Sale
to: ' 0xeA0c348A297084BFFbddad7f89216F24a2106E58',
gasLimit: 300000,
data: '',
msg: 'Aigang token sale contract. Autonomous insurance network - fully automated insurance for IoT devices and a platform for insurance innovation built around data: https://aigang.network . Ends 12/15/2017'
}, {
// Confideal (CDL)
to: '0x17681500757628C7AA56d7E6546E119f94Dd9479',
gasLimit: 170000,
data: '',
msg: 'Confideal token sale. Confideal is a platform for making deals. https://confideal.io, ends Jan 31, 2018'
}, {
// Vibehub (VIBEX) ICO Sale
to: '0x5454af9d2ba75a60fa5b0419c251810544cea21d',
gasLimit: 200000,
data: '',
msg: 'WeBetCrypto ICO Sale. Thank you for your support!'
}, {
// Vibehub (VIBEX) ICO Sale
to: '0x882448f83d90b2bf477af2ea79327fdea1335d93',
gasLimit: 200000,
data: '',
msg: 'Vibehub ICO Sale. Thank you for your support!'
}, {
// Trade.io (TIO) ICO Sale
to: '0xdea6d29da64bba5ab86a7424ca894756e7ae8ed3',
gasLimit: 200000,
data: '',
msg: 'Trade.io ICO Sale. Thank you for your support!'
}, {
// Substratum (SUB) Network ICO Sale
to: '0xaf518d65f84e4695a4da0450ec02c1248f56b668',
gasLimit: 200000,
data: '',
msg: 'Substratum Network ICO Sale. Thank you for your support!'
}, {
// YUPIE (YUPIE)
to: '0x0F33bb20a282A7649C7B3AFf644F084a9348e933',
gasLimit: 400000,
data: '',
msg: 'YUPIE (YUPIE) ICO'
}, {
// horizonstate.com Horizon State Token Sale
to: '0xbD2ED3E85faa3433c068c7B3f9C8C7d839CE88d7',
gasLimit: 69153,
data: '',
msg: 'Horizon State Token Sale. Thank you for your support. '
}, {
// DataBrokerDAO
to: '0x8aec8f09a840faea966f4b0e29a497d8f5b5a6b4',
gasLimit: 200000,
data: '',
msg: 'DataBrokerDAO. https://databrokerdao.com'
}, {
// BattleDrome
to: '0xeaAf270436a0ed397ED23BBF64DF7b1DCAfF142F',
gasLimit: 85000,
data: '',
msg: 'BattleDrome ICO/Crowdsale. Thanks for your support!'
}, {
// Simple Token (ST)
to: '0x58b7056DeB51eD292614F0DA1E94E7e9c589828d',
gasLimit: 150000,
data: '',
msg: 'Simple Token — the cryptocurrency that powers digital communities.'
}, {
// SunContract
to: '0x5fb3D432bae33FCd418edE263D98D7440E7fA3ea',
gasLimit: 200000,
data: '',
msg: 'SunContract ICO address - suncontract.org'
}, {
// NVC
to: '0xd88755197e107603C139df6E709ed09EEC6b6bB3',
gasLimit: 200000,
data: '',
msg: 'NVC Fund'
}, {
// Ohni
to: '0x2a8a7afa955d8616e2e60e454e5a9c6b6c0a60fc',
gasLimit: 200000,
data: '',
msg: 'OHNI ICO. Restoration of our communities!'
}, {
// Easy Homes Token (EHT)
to: '0xf9F0FC7167c311Dd2F1e21E9204F87EBA9012fB2',
gasLimit: 200000,
data: '',
msg: 'Easy Homes ICO. Thank you!'
}, {
// Mitrav (MTR) ICO Sale
to: '0x7FC408011165760eE31bE2BF20dAf450356692Af',
gasLimit: 200000,
data: '',
msg: 'Mitrav ICO Sale. Thank you for your support!'
}, {
// WinBitcoin (WBC) ICO Sale
to: '0xA5DD8cDe486436F0Cfd62652952E1fcEC5A61CAe',
gasLimit: 300000,
data: '',
msg: 'WinBitcoin ICO Sale. Thank you for your support!'
}, {
// BMCHAIN ICO
to: '0x19d7a9ad3b49252fd2ef640d0e43dfd651168499',
gasLimit: 100000,
data: '',
msg: 'BMChain ICO - Platform of digital reputation - Official site https://bmchain.io'
}, {
// TBOT Token Sale
to: '0xAFe60511341a37488de25Bef351952562E31fCc1',
gasLimit: 200000,
data: '',
msg: 'Tbot ICO Sale.'
}, {
// Zeus exchange token sale
to: '0xe386B139Ed3715Ca4B18Fd52671bDcea1cdFE4b1',
gasLimit: 200000,
data: '',
msg: 'Zeus Exchange - The First Hybrid Trading Platform for Traditional Stock Investors and Crypto Traders. Official site https://zeus.exchange'
}, {
// Game Token Sale
to: '0xB70835D7822eBB9426B56543E391846C107bd32C',
gasLimit: 200000,
data: '',
msg: 'Game Token Sale'
}, {
// Rebellious Token
to: '0x5f53f7a8075614b699baad0bc2c899f4bad8fbbf',
gasLimit: 200000,
data: '',
msg: 'Rebellious Token'
}, {
// Ethereum High Token Sale
to: '0xd5E3036d5CE7eC222379D16f6ffC38C38c55BF7f',
gasLimit: 200000,
data: '',
msg: 'Ethereum High HIG is a robust and feather-light cryptocurrency designed to hedge the risk of your portfolio'
}, {
to: '0x2a3Aa9ECA41E720Ed46B5A70D6C37EfA47f768Ac',
gasLimit: 200000,
data: '',
msg: 'REAL CHAIN TOKEN!'
}, {
// Artex Token Sale (ARX)
to: '0x7705FaA34B16EB6d77Dfc7812be2367ba6B0248e',
gasLimit: 200000,
data: '',
msg: 'Artex - Art Provenance Blockchain. Official site https://artex.global'
}, {
// Sirin Token Sale (SRN)
to: '0x29AfA3443f752eb29d814d9042Fd88A4a2dc0F1e',
gasLimit: 200000,
data: '',
msg: 'SIRIN LABS official crowdsale address. Official website https://sirinlabs.com'
}, {
// TRV Token Sale
to: '0xA671f2914Ba0e73979FFc47cD350801d1714b18f',
gasLimit: 150000,
data: '',
msg: 'TRV Ongoing Sale.'
}, {
// Bitlle Token Sale (BTL)
to: '0x92685E93956537c25Bb75D5d47fca4266dd628B8',
gasLimit: 200000,
data: '',
msg: 'Bitlle Token. Official website https://bitlle.com'
}, {
// EDU Token Sale (LiveEdu.tv)
to: '0x2097175d0abb8258f2468E3487F8db776E29D076',
gasLimit: 200000,
data: '',
msg: 'LiveEdu EDU token sale. Official website: https://tokensale.liveedu.tv/'
}, {
// HEdpAY (Hdp.ф) Sale (hedpay.com)
to: '0x4F8B6cA78711207E1B281DB63e8d6EAA1ce2F63E',
gasLimit: 230000,
data: '',
msg: 'HEdpAY (Hdp.ф) sale. Official sale website: https://ibiginvestments.com/hedpay'
}];
},{}],37:[function(require,module,exports){
'use strict';
var cxFuncs = function cxFuncs() {};
cxFuncs.storage = chrome.storage.sync;
cxFuncs.getAllNickNames = function (callback) {
var nickNames = [];
this.storage.get(null, function (items) {
for (var key in items) {
if (items.hasOwnProperty(key)) {
var tobj = JSON.parse(items[key]);
if (tobj.type == 'wallet' || tobj.type == 'watchOnly') {
nickNames.push(tobj.nick);
nickNames.push(key);
}
}
}
callback(nickNames);
});
};
cxFuncs.addWalletToStorage = function (address, encStr, nickname, callback) {
nickname = nickname.replace(/(<([^>]+)>)/ig, "");
var value = {
nick: nickname,
priv: encStr,
type: 'wallet'
};
var keyname = ethUtil.toChecksumAddress(address);
var obj = {};
obj[keyname] = JSON.stringify(value);
this.storage.set(obj, callback);
};
cxFuncs.addWatchOnlyAddress = function (address, nickname, callback) {
nickname = nickname.replace(/(<([^>]+)>)/ig, "");
var value = {
nick: nickname,
type: 'watchOnly'
};
var keyname = ethUtil.toChecksumAddress(address);
var obj = {};
obj[keyname] = JSON.stringify(value);
this.storage.set(obj, callback);
};
cxFuncs.getStorageArr = function (filter, callback) {
var wallets = [];
this.storage.get(null, function (items) {
for (var key in items) {
if (items.hasOwnProperty(key)) {
var tobj = JSON.parse(items[key]);
if (tobj.type == filter) {
tobj['addr'] = key;
wallets.push(tobj);
}
}
}
wallets.sort(function (a, b) {
if (a.nick < b.nick) return -1;
if (a.nick > b.nick) return 1;
return 0;
});
callback(wallets);
});
};
cxFuncs.getWalletsArr = function (callback) {
this.getStorageArr('wallet', callback);
};
cxFuncs.getWatchOnlyArr = function (callback) {
this.getStorageArr('watchOnly', callback);
};
cxFuncs.deleteAccount = function (address, callback) {
this.storage.remove(address, function () {
callback(address);
});
};
cxFuncs.editNickName = function (address, newNick, callback) {
newNick = newNick.replace(/(<([^>]+)>)/ig, "");
this.storage.get(address, function (account) {
var accountInfo = account[address];
accountInfo = JSON.parse(accountInfo);
accountInfo['nick'] = newNick;
account[address] = JSON.stringify(accountInfo);
cxFuncs.storage.set(account, function () {
callback(newNick);
});
});
};
module.exports = cxFuncs;
},{}],38:[function(require,module,exports){
'use strict';
var QRCodeDrtv = function QRCodeDrtv() {
return function (scope, element, attrs) {
var watchVar = attrs.watchVar;
scope.$watch(watchVar, function () {
var value = attrs.qrCode;
element.empty();
var delay = 0;
if (element[0].clientWidth == 0) delay = 200;
setTimeout(function () {
new QRCode(element[0], {
text: value,
width: element[0].clientWidth,
height: element[0].clientWidth,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.M
});
}, delay);
});
};
};
module.exports = QRCodeDrtv;
},{}],39:[function(require,module,exports){
'use strict';
var addressFieldDrtv = function addressFieldDrtv($compile) {
return {
restrict: "E",
link: function link(scope, element, attrs) {
var varName = attrs.varName;
var varArr = varName.split('.');
var placeholder = attrs.placeholder == undefined ? 'mewtopia.eth or 0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8' : attrs.placeholder;
var labelTranslated = attrs.labeltranslated == undefined ? 'SEND_addr' : attrs.labeltranslated;
var setValue = function setValue(value) {
var temp = scope;
for (var i in varArr) {
if (i == varArr.length - 1) temp[varArr[i]] = value;else {
temp = temp[varArr[i]];
}
}
};
scope.addressDrtv = {
showDerivedAddress: false,
ensAddressField: globalFuncs.urlGet('to') == null ? "" : globalFuncs.urlGet('to'),
derivedAddress: '',
readOnly: false
};
element.html('<div class=\"col-xs-11\">\n \
<label translate=\"' + labelTranslated + '\"></label>\n \
<input class=\"form-control\" type=\"text\" placeholder=\"' + placeholder + '\" ng-model=\"addressDrtv.ensAddressField\" ng-disabled=\"addressDrtv.readOnly\" ng-class=\"Validator.isValidENSorEtherAddress(' + varName + ') ? \'is-valid\' : \'is-invalid\'\"/>\n \
<p class="ens-response" ng-show="addressDrtv.showDerivedAddress"> ↳ <span class="mono ng-binding"> {{addressDrtv.derivedAddress}} </span> </p>\n \
</div>\n \
<div class=\"col-xs-1 address-identicon-container\">\n \
<div class=\"addressIdenticon\" title=\"Address Indenticon\" blockie-address=\"{{' + varName + '}}\" watch-var=\"' + varName + '\"></div>\n \
</div>');
scope.$watch('addressDrtv.ensAddressField', function () {
var _ens = new ens();
if (Validator.isValidAddress(scope.addressDrtv.ensAddressField)) {
setValue(scope.addressDrtv.ensAddressField);
if (!Validator.isChecksumAddress(scope.addressDrtv.ensAddressField)) {
scope.notifier.info(globalFuncs.errorMsgs[35]);
}
} else if (Validator.isValidENSAddress(scope.addressDrtv.ensAddressField)) {
_ens.getAddress(scope.addressDrtv.ensAddressField, function (data) {
if (data.error) uiFuncs.notifier.danger(data.msg);else if (data.data == '0x0000000000000000000000000000000000000000' || data.data == '0x') {
setValue('0x0000000000000000000000000000000000000000');
scope.addressDrtv.derivedAddress = '0x0000000000000000000000000000000000000000';
scope.addressDrtv.showDerivedAddress = true;
} else {
setValue(data.data);
scope.addressDrtv.derivedAddress = ethUtil.toChecksumAddress(data.data);
scope.addressDrtv.showDerivedAddress = true;
}
});
} else {
setValue('');
scope.addressDrtv.showDerivedAddress = false;
}
});
$compile(element.contents())(scope);
}
};
};
module.exports = addressFieldDrtv;
},{}],40:[function(require,module,exports){
module.exports = "<aside ng-controller=\"walletBalanceCtrl\">\n\n\n\n\n\n <!-- Account Address -->\n <div class=\"block\">\n <h5 translate=\"sidebar_AccountAddr\">Account Address</h5>\n <ul class=\"account-info\">\n <div class=\"addressIdenticon med float\" blockie-address=\"{{wallet.getAddressString()}}\" watch-var=\"wallet\"></div>\n <span class=\"mono wrap\">{{wallet.getChecksumAddressString()}}</span>\n <label class=\"ens-response\" ng-show=\"showEns()\">\n ↳ <span class=\"mono ng-binding\"> {{ensAddress}} </span>\n </label>\n </ul>\n <div ng-show=\"showDisplayOnTrezor()\">\n <h5 translate=\"sidebar_DisplayOnTrezor\">Display address on TREZOR</h5>\n <ul class=\"account-info\">\n <li><a href=\"\" ng-click=\"displayOnTrezor()\" translate=\"sidebar_DisplayOnTrezor\">Display address on TREZOR</a></li>\n </ul>\n </div>\n <div ng-show=\"showDisplayOnLedger()\">\n <h5 translate=\"sidebar_DisplayOnLedger\">Display address on Ledger</h5>\n <ul class=\"account-info\">\n <li><a href=\"\" ng-click=\"displayOnLedger()\" translate=\"sidebar_DisplayOnLedger\">Display address on Ledger</a></li>\n </ul>\n </div>\n <h5 translate=\"sidebar_AccountBal\">Account Balance</h5>\n <ul class=\"account-info point\">\n <li>\n <span class=\"mono wrap\">{{wallet.balance}}</span> {{ajaxReq.type}}\n </li>\n </ul>\n <h5 translate=\"sidebar_TransHistory\"> Transaction History</h5>\n <ul class=\"account-info\">\n <li ng-show=\"ajaxReq.type != 'CUS'\">\n <a href=\"{{ajaxReq.blockExplorerAddr.replace('[[address]]', wallet.getAddressString())}}\" target=\"_blank\" rel=\"noopener noreferrer\">\n {{ajaxReq.type}} ({{ajaxReq.blockExplorerTX.replace('/tx/[[txHash]]', '')}})\n </a>\n </li>\n <li ng-show=\"ajaxReq.type == 'ETH'\">\n <a href=\"https://ethplorer.io/address/{{wallet.getAddressString()}}\" target=\"_blank\" rel=\"noopener noreferrer\">\n Tokens (Ethplorer.io)\n </a>\n </li>\n </ul>\n </div>\n\n\n\n\n\n\n <!-- Slider Thingy -->\n <!-- Hardware Wallets -->\n <a href=\"https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html\"\n ng-show=\"slide==1 || ajaxReq.type!=='ETH'\"\n class=\"block swap--hw\"\n target=\"_blank\" rel=\"noopener noreferrer\">\n <div class=\"col-sm-7\">\n\n <h5 class=\"swap__cta\" ng-show=\"wallet.balance<=1\">Learn more about protecting your funds.</h5>\n\n <p class=\"swap__subhead\" ng-show=\"wallet.balance<50 && wallet.balance>1\">Welcome back</h5>\n <h5 class=\"swap__cta\" ng-show=\"wallet.balance<50 && wallet.balance>1\">Are you as secure as you can be?</h5>\n\n <p class=\"swap__subhead\" ng-show=\"wallet.balance>=50\">Holy cow, look at you go!</p>\n <h5 class=\"swap__cta\" ng-show=\"wallet.balance>=50\">Time to beef up your security?</h5>\n </div>\n <div class=\"col-sm-5\">\n <img src=\"images/logo-ledger.svg\" width=\"80\" height=\"auto\" class=\"swap__logo\">\n <br />\n <img src=\"images/logo-trezor.svg\" width=\"80\" height=\"auto\" class=\"swap__logo\">\n </div>\n </a>\n\n <!-- Coinbase -->\n <a href=\"https://buy.coinbase.com?code=a6e1bd98-6464-5552-84dd-b27f0388ac7d&address={{wallet.getChecksumAddressString()}}&crypto_currency=ETH&currency=USD\"\n ng-show=\"ajaxReq.type=='ETH' && slide==2\"\n class=\"block swap--usd\"\n target=\"_blank\" rel=\"noopener noreferrer\">\n <div class=\"col-sm-7\">\n <p class=\"swap__subhead\" ng-show=\"wallet.balance<=0\">Aw...you don't have any ETH</p>\n <p class=\"swap__subhead\" ng-show=\"wallet.balance>0\">It's now easier to get more ETH</p>\n <h5 class=\"swap__cta\">Buy ETH with USD</h5>\n </div>\n <div class=\"col-sm-5\">\n <img src=\"images/logo-coinbase.svg\" width=\"64\" height=\"auto\" class=\"swap__logo\">\n <p class=\"swap-flag--price\">1 ETH ≈ <br /> {{wallet.usdPrice}} USD</p>\n </div>\n </a>\n\n\n\n\n\n <!-- Bity -->\n <a ng-click=\"globalService.currentTab=globalService.tabs.swap.id\"\n ng-show=\"ajaxReq.type=='ETH' && slide==3\"\n class=\"block swap--btc\"\n target=\"_blank\" rel=\"noopener noreferrer\">\n <div class=\"col-sm-7\">\n <p class=\"swap__subhead\" ng-show=\"wallet.balance<=0\">Aw...you don't have any ETH.</p>\n <p class=\"swap__subhead\" ng-show=\"wallet.balance>0&&wallet.balance<50\">It's now easier to get more ETH</p>\n <p class=\"swap__subhead\" ng-show=\"wallet.balance>50\">It's now easier to move between ETH &amp; BTC</p>\n <h5 class=\"swap__cta\">Swap BTC <-> ETH</h5>\n </div>\n <div class=\"col-sm-5\">\n <img src=\"images/logo-bity-white.svg\" width=\"60\" height=\"auto\" class=\"swap__logo\">\n <p class=\"swap-flag--price\">1 ETH ≈ <br /> {{wallet.btcPrice}} BTC</p>\n </div>\n </a>\n\n <div class=\"swap__nav\" ng-show=\"ajaxReq.type=='ETH'\">\n <a ng-click=\"slide=1\"> &bull; </a>\n <a ng-click=\"slide=2\"> &bull; </a>\n <a ng-click=\"slide=3\"> &bull; </a>\n </div>\n\n\n\n\n <!-- Token Balances -->\n <div class=\"block token-balances\">\n <h5 translate=\"sidebar_TokenBal\">Token Balances</h5>\n\n <!-- Load Token Balances\n <a class=\"btn btn-warning btn-xs\"\n ng-click=\"wallet.setTokens(); globalService.tokensLoaded=true\"\n ng-hide=\"globalService.tokensLoaded\">\n <img src=\"images/icon-load-tokens.svg\" style=\"height: 1em; width: auto; margin-right: 5px;\" />\n Load Tokens\n </a>\n -->\n\n <!-- you can your Balance on Blockchain Explorer -->\n\n\n <h5 class=\"u__protip\">\n <a href=\"https://myetherwallet.github.io/knowledge-base/send/adding-new-token-and-sending-custom-tokens.html\"\n rel=\"noopener noreferrer\"\n target=\"_blank\">\n How to See Your Tokens\n </a>\n </h5>\n\n <p>\n You can also view your Balances on\n <a ng-show=\"ajaxReq.type != 'CUS'\"\n href=\"{{ajaxReq.blockExplorerAddr.replace('[[address]]', wallet.getAddressString())}}\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n {{ajaxReq.blockExplorerTX.replace('/tx/[[txHash]]', '')}}\n </a>\n <span ng-show=\"ajaxReq.type == 'ETH'\"> or\n <a href=\"https://ethplorer.io/address/{{wallet.getAddressString()}}\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n ethplorer.io\n </a>\n </span>\n </p>\n\n <!-- Buttons -->\n <a class=\"btn btn-warning btn-xs\" ng-click=\"showAllTokens=true\" ng-show=\"showAllTokens==false\">\n Show All Tokens\n </a>\n <a class=\"btn btn-warning btn-xs\" ng-click=\"showAllTokens=false\" ng-show=\"showAllTokens==true\">\n Only Show Balances\n </a>\n <a class=\"btn btn-default btn-xs\" ng-click=\"customTokenField=!customTokenField\">\n <span translate=\"SEND_custom\">Add Custom Token</span>\n </a>\n\n <br ng-show=\"customTokenField\" />\n\n <!-- Add Custom Token -->\n <div class=\"custom-token-fields\" ng-show=\"customTokenField\">\n <div class=\"row\">\n <address-field\n placeholder=\"{{ ajaxReq.type=='ETH' ? 'mewsupport.eth' : '0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8' }}\"\n var-name=\"localToken.contractAdd\"\n labelTranslated=\"TOKEN_Addr\">\n </address-field>\n </div>\n\n <label translate=\"TOKEN_Symbol\"> Token Symbol: </label>\n <input class=\"form-control input-sm\"\n type=\"text\"\n ng-model=\"localToken.symbol\"\n ng-class=\"localToken.symbol!='' ? 'is-valid' : 'is-invalid'\" />\n\n <label translate=\"TOKEN_Dec\"> Decimals: </label>\n <input class=\"form-control input-sm\"\n type=\"text\"\n ng-model=\"localToken.decimals\"\n ng-class=\"Validator.isPositiveNumber(localToken.decimals) ? 'is-valid' : 'is-invalid'\" />\n\n <button class=\"btn btn-primary btn-xs\" ng-click=\"saveTokenToLocal()\" translate=\"x_Save\">Save</button>\n </div>\n\n <br />\n <br />\n\n <!-- Balances -->\n <table class=\"account-info\">\n <tr ng-class=\"token.type!=='default' ? 'custom-token' : ''\"\n ng-repeat=\"token in wallet.tokenObjs track by $index\"\n ng-hide=\"(token.balance==0 || token.balance=='Click to Load') && showAllTokens==false\">\n <td class=\"mono wrap point\">\n <img src=\"images/icon-remove.svg\"\n class=\"token-remove\"\n title=\"Remove Token\"\n ng-click=\"removeTokenFromLocal(token.symbol)\"\n ng-show=\"token.type!=='default'\" />\n <span ng-click=\"setAndVerifyBalance(token)\">\n {{ token.getBalance() }}\n </span>\n </td>\n <td>\n {{ token.getSymbol() }}\n </td>\n </tr>\n </table>\n\n </div>\n\n\n\n <!-- Equivalent Balances -->\n <div class=\"block\" ng-show=\"ajaxReq.type=='ETH'\">\n <h5 translate=\"sidebar_Equiv\">Equivalent Values:</h5>\n <div class=\"row\">\n <ul class=\"account-info col-xs-6\">\n <li>BTC: <span class=\"mono wrap\">{{wallet.btcBalance | number}}</span></li>\n <li>USD: <span class=\"mono wrap\">{{wallet.usdBalance | currency:\"$\"}}</span></li>\n <li>CHF: <span class=\"mono wrap\">{{wallet.chfBalance | currency:\" \"}}</span></li>\n </ul>\n <ul class=\"account-info col-xs-6\">\n <li>REP: <span class=\"mono wrap\">{{wallet.repBalance | number}}</span></li>\n <li>EUR: <span class=\"mono wrap\">{{wallet.eurBalance | currency:\"€\"}}</span></li>\n <li>GBP: <span class=\"mono wrap\">{{wallet.gbpBalance | currency:\"£\"}}</span></li>\n </ul>\n </div>\n <p><small> These are only the equivalent values for ETH, not tokens. Sorry! </small></p>\n </div>\n\n</aside>\n";
},{}],41:[function(require,module,exports){
'use strict';
var balanceDrtv = function balanceDrtv() {
return {
restrict: "E",
template: require('./balanceDrtv.html')
};
};
module.exports = balanceDrtv;
},{"./balanceDrtv.html":40}],42:[function(require,module,exports){
'use strict';
var blockiesDrtv = function blockiesDrtv() {
return function (scope, element, attrs) {
var watchVar = attrs.watchVar;
scope.$watch(watchVar, function () {
var address = attrs.blockieAddress;
var content = Validator.isValidAddress(address) ? globalFuncs.getBlockie(address) : '';
element.css({
'background-image': 'url(' + content + ')'
});
});
};
};
module.exports = blockiesDrtv;
},{}],43:[function(require,module,exports){
'use strict';
var cxWalletDecryptDrtv = function cxWalletDecryptDrtv() {
return {
restrict: "E",
template: '<div class="row" ng-controller=\'cxDecryptWalletCtrl\'>\n \
<div class="col-md-4 col-sm-6">\n \
<h4 translate="decrypt_Select"> Select a Wallet: </h4>\n \
<div class="radio" ng-repeat="twallet in allWallets track by $index">\n \
<label><input type="radio" name="selectedWallet" ng-model="$parent.selectedWallet" value="{{twallet.addr}}"> {{twallet.nick}} <small>({{twallet.balance}} Ether)</small> </label>\n \
</div>\n \
</div>\n \
<div class="col-md-4 col-sm-6" ng-show="selectedWallet!=\'\'">\n \
<h4 translate="ADD_Label_3"> Your wallet is encrypted. Please enter the password: </h4>\n \
<input class="form-control" type="password" placeholder="{{ \'x_Password\' | translate }}" ng-model="password" ng-keyup="$event.keyCode == 13 && decryptWallet()" >\n \
</div>\n \
<div class="col-md-4 col-sm-6" id="walletuploadbutton" ng-show="password.length>0">\n \
<h4 translate="ADD_Label_6"> Unlock Your Wallet:</h4>\n \
<div class="form-group"><a ng-click="decryptWallet()" class="btn btn-primary btn-block" translate="ADD_Label_6_short">UNLOCK</a></div>\n \
</div>\n \
</div>'
};
};
module.exports = cxWalletDecryptDrtv;
},{}],44:[function(require,module,exports){
'use strict';
var fileReaderDrtv = function fileReaderDrtv($parse) {
return {
restrict: 'A',
scope: false,
link: function link(scope, element, attrs) {
var fn = $parse(attrs.onReadFile);
element.on('change', function (onChangeEvent) {
var reader = new FileReader();
reader.onload = function (onLoadEvent) {
scope.$apply(function () {
fn(scope, {
$fileContent: onLoadEvent.target.result
});
});
};
reader.readAsText((onChangeEvent.srcElement || onChangeEvent.target).files[0]);
});
}
};
};
module.exports = fileReaderDrtv;
},{}],45:[function(require,module,exports){
module.exports = "<article class=\"block decrypt-drtv clearfix\" ng-controller='decryptWalletCtrl as $crtl'>\n\n <!-- Column 1 - Select Type of Key -->\n <section class=\"col-md-4 col-sm-6\">\n\n <h4 translate=\"decrypt_Access\">\n How would you like to access your wallet?\n </h4>\n\n <!-- View Balance Only -->\n <label aria-flowto=\"aria1\"\n class=\"radio\"\n ng-show=\"globalService.currentTab==globalService.tabs.sendTransaction.id || globalService.currentTab==globalService.tabs.viewWalletInfo.id\">\n <input aria-flowto=\"aria1\"\n aria-label=\"address\"\n type=\"radio\"\n ng-model=\"walletType\"\n value=\"addressOnly\" />\n View w/ Address Only\n </label>\n\n <!-- MetaMask -->\n <label aria-flowto=\"aria2\"\n class=\"radio\">\n <input aria-flowto=\"aria2\"\n type=\"radio\"\n aria-label=\"MetaMask / Mist\"\n ng-model=\"walletType\"\n value=\"metamask\" />\n <span translate=\"x_MetaMask\">\n MetaMask / Mist\n </span>\n </label>\n\n <!-- Ledger -->\n <label aria-flowto=\"aria3\"\n class=\"radio\"\n ng-show=\"ajaxReq.type=='ETH'||ajaxReq.type=='ETC'||ajaxReq.type=='ROPSTEN ETH'||ajaxReq.type=='RINKEBY ETH'||ajaxReq.type=='KOVAN ETH'||ajaxReq.type=='EXP'||ajaxReq.type=='UBQ'||ajaxReq.type=='POA'||ajaxReq.type=='TOMO'\">\n <input aria-flowto=\"aria3\"\n type=\"radio\"\n aria-label=\"Ledger Hardware Wallet\"\n ng-model=\"walletType\"\n value=\"ledger\"/>\n Ledger Wallet\n </label>\n\n <!-- TREZOR -->\n <label class=\"radio\"\n aria-flowto=\"aria4\"\n ng-show=\"ajaxReq.type=='ETH'||ajaxReq.type=='ETC'||ajaxReq.type=='ROPSTEN ETH'||ajaxReq.type=='RINKEBY ETH'||ajaxReq.type=='KOVAN ETH'||ajaxReq.type=='EXP'||ajaxReq.type=='UBQ'||ajaxReq.type=='RSK'||ajaxReq.type=='POA'||ajaxReq.type=='TOMO'||ajaxReq.type=='ELLA'\">\n <input aria-flowto=\"aria4\"\n type=\"radio\"\n aria-label=\"Trezor Hardware Wallet\"\n ng-model=\"walletType\"\n value=\"trezor\" />\n TREZOR\n </label>\n\n <!-- Digital Bitbox -->\n <label aria-flowto=\"aria5\"\n class=\"radio\"\n ng-show=\"ajaxReq.type=='ETH'||ajaxReq.type=='ETC'||ajaxReq.type=='ROPSTEN ETH'||ajaxReq.type=='RINKEBY ETH'||ajaxReq.type=='KOVAN ETH'||ajaxReq.type=='EXP'\">\n <input aria-flowto=\"aria5\"\n type=\"radio\"\n aria-label=\"Digital Bitbox hardware wallet\"\n ng-model=\"walletType\"\n value=\"digitalBitbox\"/>\n Digital Bitbox\n </label>\n\n\n <!-- Keystore / JSON File -->\n <label aria-flowto=\"aria6\"\n class=\"radio\">\n <input aria-flowto=\"aria6\"\n aria-label=\"Keystore JSON file\"\n type=\"radio\"\n ng-model=\"walletType\"\n value=\"fileupload\" />\n Keystore / JSON File\n <a href=\"https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <img src=\"images/icon-help-3.svg\" width=\"16px\" height=\"16px\" style=\"margin: 0 5px 5px\">\n </a>\n </label>\n\n <!-- Mnemonic Phrase -->\n <label aria-flowto=\"aria7\"\n class=\"radio\">\n <input aria-flowto=\"aria7\"\n aria-label=\"mnemonic phrase\"\n type=\"radio\"\n ng-model=\"walletType\"\n value=\"pastemnemonic\" />\n <span translate=\"x_Mnemonic\">\n Mnemonic Phrase\n </span>\n <a href=\"https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <img src=\"images/icon-help-3.svg\" width=\"16px\" height=\"16px\" style=\"margin: 0 5px 5px\">\n </a>\n </label>\n\n <!-- Private -->\n <label aria-flowto=\"aria8\"\n class=\"radio\">\n <input aria-flowto=\"aria8\"\n aria-label=\"private key\"\n type=\"radio\"\n ng-model=\"walletType\"\n value=\"pasteprivkey\" />\n <span translate=\"x_PrivKey2\">\n Private Key\n </span>\n <a href=\"https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <img src=\"images/icon-help-3.svg\" width=\"16px\" height=\"16px\" style=\"margin: 0 5px 5px\">\n </a>\n </label>\n\n <!-- Parity -->\n <label aria-flowto=\"aria9\"\n class=\"radio\"\n style=\"display: none;\"\n id=\"showMeTheMoney\">\n <input aria-flowto=\"aria9\"\n aria-label=\"parity phrase\"\n type=\"radio\"\n ng-model=\"walletType\"\n value=\"parityBWallet\" />\n <span translate=\"x_ParityPhrase\">\n Parity Phrase\n </span>\n </label>\n\n <label class=\"radio\">\n &nbsp;\n <span translate=\"x_ParityPhrase\">\n Parity Phrase\n </span>\n <a href=\"https://myetherwallet.github.io/knowledge-base/private-keys-passwords/parity-phrases-are-no-longer-supported.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <img src=\"images/icon-help-2.svg\" width=\"16px\" height=\"16px\" style=\"margin: 0 5px 5px\">\n </a>\n </label>\n </section>\n <!-- / Column 1 - Select Type of Key -->\n\n\n <!-- Column 2 - Unlock That Key -->\n <section class=\"col-md-8 col-sm-6\">\n\n <!-- View Only -->\n <div id=\"selectedTypeKey\" ng-if=\"walletType=='addressOnly'\">\n <h4 translate=\"x_Address\">\n Your Address\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 79.536 79.536\"><path fill=\"#5dba5a\" d=\"M39.769 0C17.8 0 0 17.8 0 39.768c0 21.965 17.8 39.768 39.769 39.768 21.965 0 39.768-17.803 39.768-39.768C79.536 17.8 61.733 0 39.769 0zm-5.627 58.513L15.397 39.768l7.498-7.498 11.247 11.247 22.497-22.493 7.498 7.498-29.995 29.991z\"/></svg>\n This is a recommended way to view your balance.\n </h5>\n <p>\n You can only view your balance via this option.\n Please use another option in order to send.\n </p>\n <div class=\"form-group\">\n <textarea rows=\"4\"\n id=\"aria8\"\n class=\"form-control\"\n ng-change=\"onAddressChange()\"\n ng-class=\"Validator.isValidAddress($parent.$parent.addressOnly) ? 'is-valid' : 'is-invalid'\"\n ng-model=\"$parent.$parent.addressOnly\"\n placeholder=\"{{ 'x_Address' | translate }}\"\n ></textarea>\n </div>\n <div class=\"form-group\">\n <a class=\"btn btn-primary\"\n ng-click=\"decryptAddressOnly()\"\n ng-show=\"showAOnly\"\n role=\"button\"\n tabindex=\"0\">\n View Balance\n </a>\n </div>\n </div>\n <!-- /View Only -->\n\n\n <!-- MetaMask -->\n <div id=\"selectedTypeMetamask\"\n ng-if=\"walletType=='metamask'\">\n <h4 translate=\"x_MetaMask\">\n MetaMask / Mist\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 79.536 79.536\"><path fill=\"#5dba5a\" d=\"M39.769 0C17.8 0 0 17.8 0 39.768c0 21.965 17.8 39.768 39.769 39.768 21.965 0 39.768-17.803 39.768-39.768C79.536 17.8 61.733 0 39.769 0zm-5.627 58.513L15.397 39.768l7.498-7.498 11.247 11.247 22.497-22.493 7.498 7.498-29.995 29.991z\"/></svg>\n This is a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n MetaMask is a browser extension that allows you to access your wallet quickly, safely &amp; easily. It is more secure because you <u>never enter your private key on a website</u>. It protects you from phishing &amp; malicious websites.\n </div>\n <ul>\n <li class=\"u__protip\">\n <a tabindex=\"0\"\n href=\"https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n How to Move to MetaMask\n </a>\n </li>\n <li class=\"u__download\">\n <a tabindex=\"0\"\n href=\"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Download MetaMask for Chrome\n </a>\n </li>\n <li class=\"u__download\">\n <a tabindex=\"0\"\n href=\"https://metamask.io/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Download MetaMask for Other Browsers\n </a>\n </li>\n </ul>\n <div class=\"form-group\"\n ng-hide=\"isSSL\">\n <span class=\"text-danger\"\n translate=\"ADD_Ledger_0a\" >\n Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect.\n </span>\n </div>\n <div class=\"form-group\">\n <a id=\"aria3\"\n class=\"btn btn-primary\"\n ng-click=\"scanMetamask()\"\n ng-show=\"walletType=='metamask'\"\n tabindex=\"0\" role=\"button\"\n translate=\"ADD_MetaMask\">\n Connect to MetaMask\n </a>\n </div>\n </div>\n <!-- / MetaMask -->\n\n\n <!-- Ledger-->\n <div id=\"selectedTypeLedger\" ng-if=\"walletType=='ledger'\">\n <h4>\n Ledger Hardware Wallet\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 79.536 79.536\"><path fill=\"#5dba5a\" d=\"M39.769 0C17.8 0 0 17.8 0 39.768c0 21.965 17.8 39.768 39.769 39.768 21.965 0 39.768-17.803 39.768-39.768C79.536 17.8 61.733 0 39.769 0zm-5.627 58.513L15.397 39.768l7.498-7.498 11.247 11.247 22.497-22.493 7.498 7.498-29.995 29.991z\"/></svg>\n This is a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n A hardware wallet is a small USB device that allows you to access your wallet quickly, safely &amp; easily. It is more secure because your private key <u>never leaves the hardware wallet</u>. It protects you from phishing, malware, and more.\n </div>\n <ul>\n <li class=\"u__protip\">\n <a href=\"https://ledger.zendesk.com/hc/en-us/articles/115005200009-How-to-use-MyEtherWallet-with-Ledger\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n How to use MyEtherWallet with your Ledger Hardware Wallet\n </a>\n </li>\n <li class=\"u__protip\">\n <a href=\"https://www.ledgerwallet.com/r/fa4b?path=/products/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Don't have a Ledger? Get one today.\n </a>\n </li>\n </ul>\n <div class=\"form-group\">\n <a class=\"btn btn-primary\"\n ng-click=\"scanLedger()\"\n ng-show=\"walletType=='ledger'\"\n role=\"button\"\n tabindex=\"0\"\n translate=\"ADD_Ledger_scan\">\n SCAN\n </a>\n </div>\n <div role=\"alert\" ng-show=\"ledgerError\">\n <p class=\"strong text-danger\">\n {{ledgerErrorString}}\n </p>\n <ul>\n <li ng-hide=\"isSSL\"\n translate=\"ADD_Ledger_0a\" >\n Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect.\n </li>\n <li>\n <span translate=\"ADD_Ledger_2\" ng-if=\"ajaxReq.type=='ETH'||ajaxReq.type=='ETC'||ajaxReq.type=='ROPSTEN ETH'||ajaxReq.type=='RINKEBY ETH'||ajaxReq.type=='KOVAN ETH'\">\n Open the Ethereum application (or a contract application)\n </span>\n <span translate=\"ADD_Ledger_2_Exp\" ng-if=\"ajaxReq.type=='EXP'\">\n Open the Expanse application (or a contract application)\n </span>\n <span translate=\"ADD_Ledger_2_Ubq\" ng-if=\"ajaxReq.type=='UBQ'\">\n Open the Ubiq application (or a contract application)\n </span>\n </li>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/hardware-wallets/ledger-hardware-wallet-unable-to-connect-on-myetherwallet.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Still not working? More Troubleshooting Tips\n </a>\n </li>\n </ul>\n </div>\n </div>\n <!-- / Ledger-->\n\n\n <!-- TREZOR-->\n <div id=\"selectedTypeTrezor\" ng-if=\"walletType=='trezor'\">\n <h4>\n TREZOR Hardware Wallet\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 79.536 79.536\"><path fill=\"#5dba5a\" d=\"M39.769 0C17.8 0 0 17.8 0 39.768c0 21.965 17.8 39.768 39.769 39.768 21.965 0 39.768-17.803 39.768-39.768C79.536 17.8 61.733 0 39.769 0zm-5.627 58.513L15.397 39.768l7.498-7.498 11.247 11.247 22.497-22.493 7.498 7.498-29.995 29.991z\"/></svg>\n This is a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n A hardware wallet is a small USB device that allows you to access your wallet quickly, safely &amp; easily. It is more secure because your private key <u>never leaves the hardware wallet</u>. It protects you from phishing, malware, and more.\n </div>\n <ul>\n <li class=\"u__protip\">\n <a href=\"https://blog.trezor.io/trezor-integration-with-myetherwallet-3e217a652e08#.n5fddxmdg\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n How to use TREZOR with MyEtherWallet\n </a>\n </li>\n <li class=\"u__protip\">\n <a href=\"https://trezor.io/?a=myetherwallet.com\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Don't have a TREZOR? Get one now.\n </a>\n </li>\n </ul>\n <div class=\"form-group\">\n <a id=\"aria7\"\n class=\"btn btn-primary\"\n ng-click=\"scanTrezor()\"\n ng-show=\"walletType=='trezor'\"\n tabindex=\"0\" role=\"button\"\n translate=\"ADD_Trezor_scan\">\n Connect to TREZOR\n </a>\n </div>\n <div role=\"alert\" ng-show=\"trezorError\">\n <p class=\"strong text-danger\">\n {{trezorErrorString}}\n </p>\n <ul>\n <li ng-hide=\"isSSL\"\n translate=\"ADD_Ledger_0a\" >\n Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect.\n </li>\n <li>\n Ensure you are not blocking pop-ups on this site.\n </li>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/hardware-wallets/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Still not working? More Troubleshooting Tips\n </a>\n </li>\n </ul>\n </div>\n </div>\n <!-- / TREZOR-->\n\n\n <!-- Digital Bitbox-->\n <div id=\"selectedTypeDigitalBitbox\" ng-if=\"walletType=='digitalBitbox'\">\n <h4>\n Digital Bitbox Hardware Wallet\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 79.536 79.536\"><path fill=\"#5dba5a\" d=\"M39.769 0C17.8 0 0 17.8 0 39.768c0 21.965 17.8 39.768 39.769 39.768 21.965 0 39.768-17.803 39.768-39.768C79.536 17.8 61.733 0 39.769 0zm-5.627 58.513L15.397 39.768l7.498-7.498 11.247 11.247 22.497-22.493 7.498 7.498-29.995 29.991z\"/></svg>\n This is a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n A hardware wallet is a small USB device that allows you to access your wallet quickly, safely &amp; easily. It is more secure because your private key <u>never leaves the hardware wallet</u>. It protects you from phishing, malware, and more.\n </div>\n <ul>\n <li class=\"u__protip\">\n <a href=\"https://digitalbitbox.com/ethereum\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n How to use Digital Bitbox with MyEtherWallet\n </a>\n </li>\n <li class=\"u__protip\">\n <a href=\"https://digitalbitbox.com/?ref=mew\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Don't have a Digital Bitbox? Get one now.\n </a>\n </li>\n </ul>\n <input class=\"form-control\"\n aria-label=\"Enter the Digital Bitbox password\"\n aria-describedby=\"selectedTypeDigitalBitbox\"\n type=\"password\"\n placeholder=\"Digital Bitbox password\"\n spellcheck=\"false\"\n value=\"\"\n ng-model=\"HDWallet.digitalBitboxSecret\" />\n <div class=\"form-group\">\n <a tabindex=\"0\" role=\"button\" class=\"btn btn-primary\" ng-click=\"scanDigitalBitbox()\" translate=\"ADD_DigitalBitbox_scan\">\n Connect your Digital Bitbox\n </a>\n </div>\n </div>\n <!-- / Digital Bitbox-->\n\n\n <!-- Keystore -->\n <div ng-if=\"walletType=='fileupload'\">\n <h4 translate=\"ADD_Radio_2_alt\">Select your wallet file</h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 512 512\"><path fill=\"#d9534f\" d=\"M256 0C114.844 0 0 114.844 0 256s114.844 256 256 256 256-114.844 256-256S397.156 0 256 0zm102.625 313.375c12.5 12.492 12.5 32.758 0 45.25C352.383 364.875 344.188 368 336 368s-16.383-3.125-22.625-9.375L256 301.25l-57.375 57.375C192.383 364.875 184.188 368 176 368s-16.383-3.125-22.625-9.375c-12.5-12.492-12.5-32.758 0-45.25L210.75 256l-57.375-57.375c-12.5-12.492-12.5-32.758 0-45.25 12.484-12.5 32.766-12.5 45.25 0L256 210.75l57.375-57.375c12.484-12.5 32.766-12.5 45.25 0 12.5 12.492 12.5 32.758 0 45.25L301.25 256l57.375 57.375z\"/></svg>\n This is <u>not</u> a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n Entering your private key on a website dangerous. If our website is compromised or you accidentally visit a different website, your funds will be stolen. Please consider:\n </div>\n <ul>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n MetaMask\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n A Hardware Wallet\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/offline/running-myetherwallet-locally.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Running MEW Offline &amp; Locally\n </a>\n </li>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/security/securing-your-ethereum.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Learning How to Protect Yourself and Your Funds\n </a>\n </li>\n </ul>\n <div class=\"form-group\">\n If you must, please <u>double-check the URL &amp; SSL cert</u>. It should say <code>https://www.myetherwallet.com</code> &amp; <code>MYETHERWALLET LLC [US]</code> in your URL bar.\n </div>\n <br />\n <div class=\"form-group\">\n <input style=\"display:none;\" type=\"file\" on-read-file=\"showContent($fileContent)\" id=\"fselector\" />\n <a class=\"btn-file marg-v-sm\"\n ng-click=\"openFileDialog()\"\n translate=\"ADD_Radio_2_short\"\n id=\"aria1\"\n tabindex=\"0\"\n role=\"button\">SELECT WALLET FILE... </a>\n </div>\n <div class=\"form-group\" ng-if=\"requireFPass\">\n <p translate=\"ADD_Label_3\">\n Your file is encrypted. Please enter the password:\n </p>\n <input class=\"form-control\"\n ng-change=\"onFilePassChange()\"\n ng-class=\"Validator.isPasswordLenValid($parent.$parent.filePassword,0) ? 'is-valid' : 'is-invalid'\"\n ng-model=\"$parent.$parent.filePassword\"\n placeholder=\"{{ 'x_Password' | translate }}\"\n type=\"password\" />\n </div>\n <div class=\"form-group\">\n <a tabindex=\"0\"\n role=\"button\"\n class=\"btn btn-primary\"\n ng-show=\"showFDecrypt||showPDecrypt||showMDecrypt||showParityDecrypt\"\n ng-click=\"decryptWallet()\"\n translate=\"ADD_Label_6_short\">\n UNLOCK\n </a>\n </div>\n </div>\n <!-- / Keystore -->\n\n\n <!-- Mnemonic -->\n <div id=\"selectedTypeMnemonic\" ng-if=\"walletType=='pastemnemonic'\">\n <h4 translate=\"ADD_Radio_5\"> Paste your mnemonic: </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 512 512\"><path fill=\"#d9534f\" d=\"M256 0C114.844 0 0 114.844 0 256s114.844 256 256 256 256-114.844 256-256S397.156 0 256 0zm102.625 313.375c12.5 12.492 12.5 32.758 0 45.25C352.383 364.875 344.188 368 336 368s-16.383-3.125-22.625-9.375L256 301.25l-57.375 57.375C192.383 364.875 184.188 368 176 368s-16.383-3.125-22.625-9.375c-12.5-12.492-12.5-32.758 0-45.25L210.75 256l-57.375-57.375c-12.5-12.492-12.5-32.758 0-45.25 12.484-12.5 32.766-12.5 45.25 0L256 210.75l57.375-57.375c12.484-12.5 32.766-12.5 45.25 0 12.5 12.492 12.5 32.758 0 45.25L301.25 256l57.375 57.375z\"/></svg>\n This is <u>not</u> a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n Entering your private key on a website dangerous. If our website is compromised or you accidentally visit a different website, your funds will be stolen. Please consider:\n </div>\n <ul>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n MetaMask\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n A Hardware Wallet\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/offline/running-myetherwallet-locally.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Running MEW Offline &amp; Locally\n </a>\n </li>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/security/securing-your-ethereum.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Learning How to Protect Yourself and Your Funds\n </a>\n </li>\n </ul>\n <div class=\"form-group\">\n If you must, please <u>double-check the URL &amp; SSL cert</u>. It should say <code>https://www.myetherwallet.com</code> &amp; <code>MYETHERWALLET LLC [US]</code> in your URL bar.\n </div>\n <br />\n <div class=\"form-group\">\n <textarea id=\"aria4\"\n class=\"form-control\"\n ng-change=\"onMnemonicChange()\"\n ng-class=\"Validator.isValidMnemonic($parent.$parent.manualmnemonic) ? 'is-valid' : 'is-invalid'\"\n ng-keyup=\"$event.keyCode == 13 && decryptWallet()\"\n ng-model=\"$parent.$parent.manualmnemonic\"\n placeholder=\"{{ 'x_Mnemonic' | translate}}\"\n rows=\"4\"></textarea>\n </div>\n <div class=\"form-group\">\n <p translate=\"ADD_Label_8\">\n Password (optional):\n </p>\n <div>\n <input class=\"form-control\"\n id=\"aria5\"\n ng-keyup=\"$event.keyCode == 13 && decryptWallet()\"\n ng-model=\"$parent.$parent.mnemonicPassword\"\n placeholder=\"{{ 'x_Password' | translate }}\"\n type=\"password\" />\n </div>\n </div>\n <div class=\"form-group\">\n <a tabindex=\"0\"\n role=\"button\"\n class=\"btn btn-primary\"\n ng-show=\"showFDecrypt||showPDecrypt||showMDecrypt||showParityDecrypt\"\n ng-click=\"decryptWallet()\"\n translate=\"ADD_Label_6_short\">\n UNLOCK\n </a>\n </div>\n </div>\n <!-- / Mnemonic -->\n\n\n <!-- Private Key -->\n <div id=\"selectedTypeKey\" ng-if=\"walletType=='pasteprivkey'\">\n <h4 translate=\"ADD_Radio_3\">\n Paste your private key:\n </h4>\n <h5>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 512 512\"><path fill=\"#d9534f\" d=\"M256 0C114.844 0 0 114.844 0 256s114.844 256 256 256 256-114.844 256-256S397.156 0 256 0zm102.625 313.375c12.5 12.492 12.5 32.758 0 45.25C352.383 364.875 344.188 368 336 368s-16.383-3.125-22.625-9.375L256 301.25l-57.375 57.375C192.383 364.875 184.188 368 176 368s-16.383-3.125-22.625-9.375c-12.5-12.492-12.5-32.758 0-45.25L210.75 256l-57.375-57.375c-12.5-12.492-12.5-32.758 0-45.25 12.484-12.5 32.766-12.5 45.25 0L256 210.75l57.375-57.375c12.484-12.5 32.766-12.5 45.25 0 12.5 12.492 12.5 32.758 0 45.25L301.25 256l57.375 57.375z\"/></svg>\n This is <u>not</u> a recommended way to access your wallet.\n </h5>\n <div class=\"form-group\">\n Entering your private key on a website dangerous. If our website is compromised or you accidentally visit a different website, your funds will be stolen. Please consider:\n </div>\n <ul>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n MetaMask\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n A Hardware Wallet\n </a>\n or\n <a href=\"https://myetherwallet.github.io/knowledge-base/offline/running-myetherwallet-locally.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Running MEW Offline &amp; Locally\n </a>\n </li>\n <li>\n <a href=\"https://myetherwallet.github.io/knowledge-base/security/securing-your-ethereum.html\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Learning How to Protect Yourself and Your Funds\n </a>\n </li>\n </ul>\n <div class=\"form-group\">\n If you must, please <u>double-check the URL &amp; SSL cert</u>. It should say <code>https://www.myetherwallet.com</code> &amp; <code>MYETHERWALLET LLC [US]</code> in your URL bar.\n </div>\n <br />\n <div class=\"form-group\">\n <textarea id=\"aria6\"\n class=\"form-control\"\n ng-change=\"onPrivKeyChange()\"\n ng-class=\"Validator.isValidPrivKey($parent.$parent.manualprivkey.length) ? 'is-valid' : 'is-invalid'\"\n ng-keyup=\"$event.keyCode == 13 && decryptWallet()\"\n ng-model=\"$parent.$parent.manualprivkey\"\n placeholder=\"{{ 'x_PrivKey2' | translate }}\"\n rows=\"4\"\n ></textarea>\n </div>\n <div class=\"form-group\" ng-if=\"requirePPass\">\n <p translate=\"ADD_Label_3\">\n Your file is encrypted. Please enter the password:\n </p>\n <input class=\"form-control\"\n ng-change=\"onPrivKeyPassChange()\"\n ng-class=\"Validator.isPasswordLenValid($parent.$parent.privPassword,0) ? 'is-valid' : 'is-invalid'\"\n ng-keyup=\"$event.keyCode == 13 && decryptWallet()\"\n ng-model=\"$parent.$parent.privPassword\"\n placeholder=\"{{ 'x_Password' | translate }}\"\n type=\"password\" />\n </div>\n <div class=\"form-group\">\n <a tabindex=\"0\"\n role=\"button\"\n class=\"btn btn-primary\"\n ng-show=\"showFDecrypt||showPDecrypt||showMDecrypt||showParityDecrypt\"\n ng-click=\"decryptWallet()\"\n translate=\"ADD_Label_6_short\">\n UNLOCK\n </a>\n </div>\n </div>\n <!-- / Private Key -->\n\n\n <!-- Parity Phrase -->\n <div id=\"selectedTypeMnemonic\" ng-if=\"walletType=='parityBWallet'\">\n <h4 translate=\"ADD_Radio_5\"> Paste your mnemonic: </h4>\n <div class=\"form-group\">\n <textarea rows=\"4\"\n id=\"aria9\"\n class=\"form-control\"\n ng-change=\"onParityPhraseChange()\"\n ng-class=\"$parent.$parent.parityPhrase != '' ? 'is-valid' : 'is-invalid'\"\n ng-keyup=\"$event.keyCode == 13 && decryptWallet()\"\n ng-model=\"$parent.$parent.parityPhrase\"\n placeholder=\"{{ 'x_ParityPhrase' | translate}}\"\n ></textarea>\n </div>\n <div class=\"form-group\">\n <a tabindex=\"0\"\n role=\"button\"\n class=\"btn btn-primary\"\n ng-show=\"showFDecrypt||showPDecrypt||showMDecrypt||showParityDecrypt\"\n ng-click=\"decryptWallet()\"\n translate=\"ADD_Label_6_short\">\n UNLOCK\n </a>\n </div>\n </div>\n <!-- / Parity Phrase -->\n\n </section>\n <!-- / Column 2 - Unlock That Key -->\n\n\n <!-- MODAL -->\n <article class=\"modal fade\" id=\"mnemonicModel\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"Mnemonic Phrase Modal\">\n\n <section class=\"modal-dialog\">\n\n <section class=\"modal-content\">\n\n <div class=\"modal-body\" role=\"document\">\n\n <button aria-label=\"Close\" type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>\n\n <!-- Select HD Path -->\n <h4 id=\"modalTitle\" class=\"modal-title\" translate=\"ADD_Radio_5_Path\" style=\"margin-bottom: .25rem\">\n Select HD derivation path:\n </h4>\n\n <p class=\"alert alert-danger\"\n ng-hide=\"ajaxReq.type=='ETH'||ajaxReq.type=='ETC'||ajaxReq.type=='ROPSTEN ETH'||ajaxReq.type=='RINKEBY ETH'||ajaxReq.type=='KOVAN ETH'||ajaxReq.type=='EXP'||ajaxReq.type=='UBQ'||ajaxReq.type=='ELLA'\">\n We do not know the correct path for this network.\n <a href=\"https://github.com/kvhnuke/etherwallet/issues\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n Please open a github issue\n </a>\n so we can discuss / be enlightened.\n </p>\n\n <section class=\"row\">\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: Jaxx, Metamask, Exodus, imToken - {{HDWallet.defaultDPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.defaultDPath}}\"/>\n <span ng-bind=\"HDWallet.defaultDPath\"></span>\n <p class=\"small\">\n Jaxx, Metamask, Exodus, imToken, TREZOR (ETH) &amp; Digital Bitbox\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: Ledger (ETH) {{HDWallet.ledgerPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.ledgerPath}}\"/>\n <span ng-bind=\"HDWallet.ledgerPath\"></span>\n <p class=\"small\">\n Ledger (ETH)\n </p>\n </label>\n\n <label class=\"radio small\">\n <input aria-describedby=\"Path: Ledger (ETC) {{HDWallet.ledgerClassicPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.ledgerClassicPath}}\"/>\n <span ng-bind=\"HDWallet.ledgerClassicPath\"></span>\n <p class=\"small\">\n Ledger (ETC)\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: TREZOR (ETC) {{HDWallet.trezorClassicPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.trezorClassicPath}}\"/>\n <span ng-bind=\"HDWallet.trezorClassicPath\"></span>\n <p class=\"small\">\n TREZOR (ETC)\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: SingularDTV {{HDWallet.singularDTVPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.singularDTVPath}}\"/>\n <span ng-bind=\"HDWallet.singularDTVPath\"></span>\n <p class=\"small\">\n SingularDTV\n </p>\n </label>\n </div>\n\n </section>\n\n <section class=\"row\">\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: TREZOR - TESTNET - {{HDWallet.trezorTestnetPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.trezorTestnetPath}}\"/>\n <span ng-bind=\"HDWallet.trezorTestnetPath\"></span>\n <p class=\"small\">\n Network: Testnets\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: TREZOR (ETC) {{HDWallet.hwExpansePath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.hwExpansePath}}\"/>\n <span ng-bind=\"HDWallet.hwExpansePath\"></span>\n <p class=\"small\">\n Network: Expanse\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: TREZOR (ETC) {{HDWallet.hwUbqPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.hwUbqPath}}\"/>\n <span ng-bind=\"HDWallet.hwUbqPath\"></span>\n <p class=\"small\">\n Network: Ubiq\n </p>\n </label>\n </div>\n\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <input aria-describedby=\"Path: TREZOR (ELLA) {{HDWallet.hwEllaismPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.hwEllaismPath}}\"/>\n <span ng-bind=\"HDWallet.hwEllaismPath\"></span>\n <p class=\"small\">\n Network: Ellaism\n </p>\n </label>\n </div>\n </section>\n\n <section class=\"row\">\n <div class=\"col-sm-4\">\n <label class=\"radio small\">\n <p class=\"small\"><strong>\n Your Custom Path\n </strong></p>\n <input aria-describedby=\"Path: Enter your own - {{HDWallet.customDPath}}\"\n ng-change=\"onHDDPathChange()\"\n ng-model=\"HDWallet.dPath\"\n type=\"radio\"\n value=\"{{HDWallet.customDPath}}\" />\n <input aria-describedby=\"Path: Enter your own - {{HDWallet.customDPath}}\"\n type=\"text\" class=\"form-control input-sm\"\n ng-model=\"HDWallet.customDPath\"\n ng-change=\"onCustomHDDPathChange()\"\n style=\"float: right;margin: 0 0 .5rem;\" />\n </label>\n </div>\n </section>\n\n\n\n <h4 id=\"modalTitle2\" class=\"modal-title\" translate=\"MNEM_1\" style=\"margin: .5rem 0\">\n Please select the address you would like to interact with.\n </h4>\n\n <table class=\"small table table-striped table-mnemonic\">\n <tr>\n <th translate=\"x_Address\">\n Address\n </th>\n <th translate=\"MYWAL_Bal\">\n Balance\n </th>\n <th translate=\"sidebar_TokenBal\" class=\"text-center\">\n Token<br>Balances\n </th>\n </tr>\n <tr ng-repeat=\"wallet in HDWallet.wallets track by $index\">\n <td>\n <label>\n <input aria-describedby=\"modalTitle2\"\n aria-label=\"Unlock wallet with {{wallet.getBalance()}} {{ajaxReq.type}}. Address: {{wallet.getChecksumAddressString()}}\"\n name=\"addressSelect\"\n ng-model=\"HDWallet.id\"\n type=\"radio\"\n value=\"{{$index}}\" />\n <span class=\"small\">\n {{wallet.getChecksumAddressString()}}\n </span>\n </label>\n </td>\n\n <td>\n <a href=\"{{ajaxReq.blockExplorerAddr.replace('[[address]]', wallet.getAddressString())}}\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n {{wallet.getBalance()}} {{ajaxReq.type}}\n </a>\n </td>\n\n <td class=\"text-center\">\n <a href=\"https://ethplorer.io/address/{{wallet.getAddressString()}}\"\n target=\"_blank\"\n rel=\"noopener noreferrer\" title=\"https://ethplorer.io/address/{{wallet.getAddressString()}}\">\n <img src=\"images/icon-external-link.svg\" title=\"https://ethplorer.io/address/{{wallet.getAddressString()}}\" ng-click=\"removeTokenFromLocal(token.symbol)\" ng-show=\"token.type!=='default'\" />\n </a>\n </td>\n\n </tr>\n\n <tr class=\"m-addresses\">\n\n <td>\n <a ng-click=\"AddRemoveHDAddresses(false)\"\n ng-show=\"HDWallet.numWallets > 5\"\n role=\"link\"\n tabindex=\"0\"\n translate=\"MNEM_prev\">\n Previous Addresses\n </a>\n </td>\n\n <td></td>\n\n <td>\n <a ng-click=\"AddRemoveHDAddresses(true)\"\n role=\"link\"\n tabindex=\"0\"\n translate=\"MNEM_more\">\n More Addresses\n </a>\n </td>\n\n </tr>\n </table>\n\n <div class=\"clearfix button-group\">\n <button aria-label=\"Unlock this Wallet\"\n class=\"btn btn-primary pull-right\"\n style=\"margin: 0 .1rem\"\n ng-click=\"setHDWallet()\"\n role=\"button\"\n tabindex=\"0\"\n translate=\"ADD_Label_6\">\n Access Wallet\n </button>\n\n <button aria-label=\"Cancel - Will close dialog\"\n class=\"btn btn-default pull-right\"\n style=\"margin: 0 .1rem\"\n data-dismiss=\"modal\"\n role=\"button\"\n tabindex=\"0\"\n translate=\"x_Cancel\">\n Cancel\n </button>\n </div>\n\n </div>\n\n </section>\n\n </section>\n\n </article>\n\n</article>\n";
},{}],46:[function(require,module,exports){
'use strict';
var walletDecryptDrtv = function walletDecryptDrtv() {
return {
restrict: "E",
template: require('./walletDecryptDrtv.html')
};
};
module.exports = walletDecryptDrtv;
},{"./walletDecryptDrtv.html":45}],47:[function(require,module,exports){
'use strict';
var ens = require('./ens');
var domainsaleInterface = require('./domainsaleConfigs/domainsaleABI.json');
var domainsale = function domainsale() {
var _this = this;
this.domainsaleABI = {};
for (var i in domainsaleInterface) {
this.domainsaleABI[domainsaleInterface[i].name] = domainsaleInterface[i];
}switch (ajaxReq.type) {
case nodes.nodeTypes.ETH:
_this.setContractAddress('0xc67247454E720328714C4e17bEC7640572657bEE');
break;
case nodes.nodeTypes.Rinkeby:
_this.setContractAddress('0x00');
break;
case nodes.nodeTypes.Ropsten:
_this.setContractAddress('0xe8E98228Ca36591952Efdf6F645C5B229E6Cf688');
break;
default:
_this.setContractAddress('0x00');
}
};
domainsale.prototype.setContractAddress = function (_address) {
this.contractAddress = _address;
};
domainsale.prototype.getContractAddress = function () {
return this.contractAddress;
};
domainsale.prototype.getSale = function (name, callback) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.sale;
ajaxReq.getEthCall({ to: _this.getContractAddress(), data: _this.getDataString(funcABI, [name]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
var res = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''));
data.data = {
price: res[0],
priceEth: Number(etherUnits.toEther(res[0].toString(), 'wei')),
reserve: res[1],
reserveEth: Number(etherUnits.toEther(res[1].toString(), 'wei')),
lastBid: res[2],
lastBidEth: Number(etherUnits.toEther(res[2].toString(), 'wei')),
lastBidder: res[3],
auctionStarted: new Date(res[4].toNumber() * 1000),
auctionEnds: new Date(res[5].toNumber() * 1000)
};
callback(data);
}
});
};
domainsale.prototype.getMinimumBid = function (name, callback) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.minimumBid;
ajaxReq.getEthCall({ to: _this.getContractAddress(), data: _this.getDataString(funcABI, [name]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
var res = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''));
data.data = {
minimumBid: res[0],
minimumBidEth: Number(etherUnits.toEther(res[0].toString(), 'wei'))
};
callback(data);
}
});
};
domainsale.prototype.getBalance = function (address, callback) {
var _this = this;
var funcABI = _this.domainsaleABI.balance;
ajaxReq.getEthCall({ to: _this.getContractAddress(), data: _this.getDataString(funcABI, [address]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
var res = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''));
data.data = {
balance: res[0],
balanceEth: Number(etherUnits.toEther(res[0].toString(), 'wei'))
};
callback(data);
}
});
};
domainsale.prototype.getOfferData = function (name, price, reserve, referrer) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.offer;
return _this.getDataString(funcABI, [name, price, reserve, referrer]);
};
domainsale.prototype.getBuyData = function (name, referrer) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.buy;
return _this.getDataString(funcABI, [name, referrer]);
};
domainsale.prototype.getCancelData = function (name) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.cancel;
return _this.getDataString(funcABI, [name]);
};
domainsale.prototype.getBidData = function (name, referrer) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.bid;
return _this.getDataString(funcABI, [name, referrer]);
};
domainsale.prototype.getFinishData = function (name) {
var _this = this;
name = ens.normalise(name);
var funcABI = _this.domainsaleABI.finish;
return _this.getDataString(funcABI, [name]);
};
domainsale.prototype.getWithdrawData = function () {
var _this = this;
var funcABI = _this.domainsaleABI.withdraw;
return _this.getDataString(funcABI, []);
};
domainsale.prototype.getDataString = function (func, inputs) {
var fullFuncName = ethUtil.solidityUtils.transformToFullName(func);
var funcSig = ethFuncs.getFunctionSignature(fullFuncName);
var typeName = ethUtil.solidityUtils.extractTypeName(fullFuncName);
var types = typeName.split(',');
types = types[0] == "" ? [] : types;
return '0x' + funcSig + ethUtil.solidityCoder.encodeParams(types, inputs);
};
domainsale.modes = {
ineligible: 0,
nottransferred: 1,
notoffered: 2,
available: 3,
auctioning: 4,
closed: 5
};
domainsale.transactions = {
transfer: 1,
offer: 2,
buy: 3,
bid: 4,
cancel: 5,
withdraw: 6
};
module.exports = domainsale;
},{"./domainsaleConfigs/domainsaleABI.json":48,"./ens":49}],48:[function(require,module,exports){
module.exports=[
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "sale",
"outputs": [
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "invalidate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "cancel",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "registrar",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "auctionStarted",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "finish",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "minimumBid",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "bidReferrer",
"type": "address"
}
],
"name": "bid",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "auctionEnds",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "isBuyable",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "isAuction",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "_price",
"type": "uint256"
},
{
"name": "reserve",
"type": "uint256"
},
{
"name": "referrer",
"type": "address"
}
],
"name": "offer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "bidReferrer",
"type": "address"
}
],
"name": "buy",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "balance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_name",
"type": "string"
}
],
"name": "price",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_registry",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "seller",
"type": "address"
},
{
"indexed": false,
"name": "name",
"type": "string"
},
{
"indexed": false,
"name": "price",
"type": "uint256"
},
{
"indexed": false,
"name": "reserve",
"type": "uint256"
}
],
"name": "Offer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "bidder",
"type": "address"
},
{
"indexed": false,
"name": "name",
"type": "string"
},
{
"indexed": false,
"name": "bid",
"type": "uint256"
}
],
"name": "Bid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "seller",
"type": "address"
},
{
"indexed": true,
"name": "buyer",
"type": "address"
},
{
"indexed": false,
"name": "name",
"type": "string"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "name",
"type": "string"
}
],
"name": "Cancel",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "recipient",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "Withdraw",
"type": "event"
}
]
},{}],49:[function(require,module,exports){
(function (Buffer){
'use strict';
var uts46 = require('idna-uts46');
var registryInterface = require('./ensConfigs/registryABI.json');
var resolverInterface = require('./ensConfigs/resolverABI.json');
var auctionInterface = require('./ensConfigs/auctionABI.json');
var deedInterface = require('./ensConfigs/deedABI.json');
var ens = function ens() {
var _this = this;
this.registryABI = {};
for (var i in registryInterface) {
this.registryABI[registryInterface[i].name] = registryInterface[i];
}this.resolverABI = {};
for (var i in resolverInterface) {
this.resolverABI[resolverInterface[i].name] = resolverInterface[i];
}this.auctionABI = {};
for (var i in auctionInterface) {
this.auctionABI[auctionInterface[i].name] = auctionInterface[i];
}this.deedABI = {};
for (var i in deedInterface) {
this.deedABI[deedInterface[i].name] = deedInterface[i];
}switch (ajaxReq.type) {
case nodes.nodeTypes.ETH:
_this.setCurrentRegistry(ens.registry.ETH);
break;
case nodes.nodeTypes.Rinkeby:
_this.setCurrentRegistry(ens.registry.Rinkeby);
break;
case nodes.nodeTypes.Ropsten:
_this.setCurrentRegistry(ens.registry.ROPSTEN);
break;
default:
_this.setCurrentRegistry(ens.registry.NULL);
}
};
ens.registry = {
ETH: require('./ensConfigs/ETHConfig.json'),
Rinkeby: require('./ensConfigs/RinkebyConfig.json'),
ROPSTEN: require('./ensConfigs/ROPConfig.json'),
NULL: {}
};
ens.normalise = function (name) {
try {
return uts46.toUnicode(name, { useStd3ASCII: true, transitional: false });
} catch (e) {
throw e;
}
};
ens.modes = {
open: 0,
auction: 1,
owned: 2,
forbidden: 3,
reveal: 4,
notAvailable: 5
};
ens.prototype.setCurrentRegistry = function (_registry) {
this.curRegistry = _registry;
};
ens.prototype.getRegistryAddress = function () {
return this.curRegistry.registry;
};
function namehash(name) {
name = ens.normalise(name);
var node = Buffer.alloc(32);
if (name && name != '') {
var labels = name.split(".");
for (var i = labels.length - 1; i >= 0; i--) {
node = ethUtil.sha3(Buffer.concat([node, ethUtil.sha3(labels[i])]));
}
}
return '0x' + node.toString('hex');
}
function subnodehash(name) {
name = ens.normalise(name);
return '0x' + ethUtil.sha3(name).toString('hex');
}
ens.getNameHash = function (name) {
return namehash(name);
};
ens.getSubNodeHash = function (name) {
return subnodehash(name);
};
ens.prototype.getOwnerResolverAddress = function (funcABI, to, name, callback) {
var _this = this;
ajaxReq.getEthCall({ to: to, data: _this.getDataString(funcABI, [namehash(name)]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
data.data = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''))[0];
callback(data);
}
});
};
ens.prototype.getDeedOwner = function (to, callback) {
this.getOwnerResolverAddress(this.deedABI.owner, to, '', callback);
};
ens.prototype.getDeedPreviousOwner = function (to, callback) {
this.getOwnerResolverAddress(this.deedABI.previousOwner, to, '', callback);
};
ens.prototype.getOwner = function (name, callback) {
this.getOwnerResolverAddress(this.registryABI.owner, this.getRegistryAddress(), name, callback);
};
ens.prototype.getResolver = function (name, callback) {
this.getOwnerResolverAddress(this.registryABI.resolver, this.getRegistryAddress(), name, callback);
};
ens.prototype.getAddress = function (name, callback) {
var _this = this;
_this.getResolver(name, function (data) {
if (data.error) callback(data);else {
_this.getOwnerResolverAddress(_this.resolverABI.addr, data.data, name, callback);
}
});
};
ens.prototype.getName = function (name, callback) {
var _this = this;
name = ens.normalise(name);
_this.getResolver(name, function (data) {
if (data.error || data.data == '0x') callback(data);else {
ajaxReq.getEthCall({ to: data.data, data: _this.getDataString(_this.resolverABI.name, [namehash(name)]) }, function (data) {
if (data.error || data.data == '0x') callback(data);else {
var outTypes = _this.resolverABI.name.outputs.map(function (i) {
return i.type;
});
data.data = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''))[0];
callback(data);
}
});
}
});
};
ens.prototype.resolveAddressByName = function (name, callback) {
var _this = this;
name = ens.normalise(name);
_this.getOwner(name, function (data) {
if (data.error || data.data == '0x') callback(data);else {
var owner = data.data;
_this.getName(name, function (data) {
if (data.error || data.data == '0x') {
callback({ data: owner, error: false });
} else {
callback({ data: data.data, error: false });
}
});
}
});
};
ens.prototype.getAuctionAddress = function () {
return this.curRegistry.public.ethAuction;
};
ens.prototype.getStartAuctionData = function (name) {
var _this = this;
name = _this.getSHA3(ens.normalise(name));
var funcABI = _this.auctionABI.startAuction;
return _this.getDataString(funcABI, [name]);
};
ens.prototype.getStartAndBidAuctionData = function (name, sealedHash) {
var _this = this;
name = _this.getSHA3(ens.normalise(name));
var funcABI = _this.auctionABI.startAuctionsAndBid;
return _this.getDataString(funcABI, [[name], sealedHash]);
};
ens.prototype.getFinalizeAuctionData = function (name) {
var _this = this;
name = _this.getSHA3(ens.normalise(name));
var funcABI = _this.auctionABI.finalizeAuction;
return _this.getDataString(funcABI, [name]);
};
var isSecretHashed = function isSecretHashed(secret) {
return secret.substring(0, 2) == '0x' && secret.length == 66 && Validator.isValidHex(secret);
};
ens.prototype.getRevealBidData = function (name, value, secret) {
var _this = this;
name = _this.getSHA3(ens.normalise(name));
secret = isSecretHashed(secret) ? secret : _this.getSHA3(secret);
var funcABI = _this.auctionABI.unsealBid;
return _this.getDataString(funcABI, [name, value, secret]);
};
ens.prototype.getSHA3 = function (str) {
return '0x' + ethUtil.sha3(str).toString('hex');
};
ens.prototype.getNewBidData = function (sealedHash) {
var _this = this;
var funcABI = _this.auctionABI.newBid;
return _this.getDataString(funcABI, [sealedHash]);
};
ens.prototype.getAuctionEntries = function (name, callback) {
var _this = this;
name = _this.getSHA3(ens.normalise(name));
var funcABI = _this.auctionABI.entries;
ajaxReq.getEthCall({ to: _this.curRegistry.public.ethAuction, data: _this.getDataString(funcABI, [name]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
var res = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''));
data.data = {
status: res[0].toNumber(),
deed: res[1],
registrationDate: new Date(res[2].toNumber() * 1000),
value: res[3],
highestBid: res[4]
};
callback(data);
}
});
};
ens.prototype.shaBid = function (hash, owner, value, saltHash, callback) {
var _this = this;
var funcABI = _this.auctionABI.shaBid;
ajaxReq.getEthCall({ to: _this.curRegistry.public.ethAuction, data: _this.getDataString(funcABI, [hash, owner, value, saltHash]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
data.data = ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''))[0];
callback(data);
}
});
};
ens.prototype.getAllowedTime = function (name, callback) {
var _this = this;
var funcABI = _this.auctionABI.getAllowedTime;
name = _this.getSHA3(ens.normalise(name));
ajaxReq.getEthCall({ to: _this.curRegistry.public.ethAuction, data: _this.getDataString(funcABI, [name]) }, function (data) {
if (data.error) callback(data);else {
var outTypes = funcABI.outputs.map(function (i) {
return i.type;
});
data.data = new Date(ethUtil.solidityCoder.decodeParams(outTypes, data.data.replace('0x', ''))[0] * 1000);
callback(data);
}
});
};
ens.prototype.getTransferData = function (name, owner) {
var _this = this;
// name = namehash(ens.normalise(name));
name = _this.getSHA3(ens.normalise(name));
var funcABI = _this.auctionABI.transfer;
return _this.getDataString(funcABI, [name, owner]);
};
ens.prototype.getSetOwnerData = function (name, owner) {
var _this = this;
name = namehash(ens.normalise(name));
var funcABI = _this.registryABI.setOwner;
return _this.getDataString(funcABI, [name, owner]);
};
ens.prototype.getDataString = function (func, inputs) {
var fullFuncName = ethUtil.solidityUtils.transformToFullName(func);
var funcSig = ethFuncs.getFunctionSignature(fullFuncName);
var typeName = ethUtil.solidityUtils.extractTypeName(fullFuncName);
var types = typeName.split(',');
types = types[0] == "" ? [] : types;
return '0x' + funcSig + ethUtil.solidityCoder.encodeParams(types, inputs);
};
module.exports = ens;
}).call(this,require("buffer").Buffer)
},{"./ensConfigs/ETHConfig.json":50,"./ensConfigs/ROPConfig.json":51,"./ensConfigs/RinkebyConfig.json":52,"./ensConfigs/auctionABI.json":53,"./ensConfigs/deedABI.json":54,"./ensConfigs/registryABI.json":55,"./ensConfigs/resolverABI.json":56,"buffer":201,"idna-uts46":263}],50:[function(require,module,exports){
module.exports={
"public": {
"resolver": "0x5FfC014343cd971B7eb70732021E26C35B744cc4",
"reverse": "0x9062c0a6dbd6108336bcbe4593a3d1ce05512069",
"ethAuction": "0x6090a6e47849629b7245dfa1ca21d94cd15878ef",
},
"registry": "0x314159265dD8dbb310642f98f50C066173C1259b"
}
},{}],51:[function(require,module,exports){
module.exports={
"public": {
"resolver": "0x4c641fb9bad9b60ef180c31f56051ce826d21a9a",
"reverse": "0xdb6cead81ce14a63c284728eed17738a81327ff0",
"ethAuction": "0xc19fd9004b5c9789391679de6d766b981db94610"
},
"registry": "0x112234455c3a32fd11230c42e7bccd4a84e02010"
}
},{}],52:[function(require,module,exports){
module.exports={
"public": {
"resolver": "0xb14fdee4391732ea9d2267054ead2084684c0ad8",
"reverse": "0x0000000000000000000000000000000000000000",
"ethAuction": "0x0000000000000000000000000000000000000000"
},
"registry": "0xe7410170f87102df0055eb195163a03b7f2bff4a"
}
},{}],53:[function(require,module,exports){
module.exports=[{
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "releaseDeed",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "getAllowedTime",
"outputs": [{
"name": "timestamp",
"type": "uint256"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "unhashedName",
"type": "string"
}],
"name": "invalidateName",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "hash",
"type": "bytes32"
}, {
"name": "owner",
"type": "address"
}, {
"name": "value",
"type": "uint256"
}, {
"name": "salt",
"type": "bytes32"
}],
"name": "shaBid",
"outputs": [{
"name": "sealedBid",
"type": "bytes32"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "bidder",
"type": "address"
}, {
"name": "seal",
"type": "bytes32"
}],
"name": "cancelBid",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "entries",
"outputs": [{
"name": "",
"type": "uint8"
}, {
"name": "",
"type": "address"
}, {
"name": "",
"type": "uint256"
}, {
"name": "",
"type": "uint256"
}, {
"name": "",
"type": "uint256"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "ens",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}, {
"name": "_value",
"type": "uint256"
}, {
"name": "_salt",
"type": "bytes32"
}],
"name": "unsealBid",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "transferRegistrars",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "",
"type": "address"
}, {
"name": "",
"type": "bytes32"
}],
"name": "sealedBids",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "state",
"outputs": [{
"name": "",
"type": "uint8"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}, {
"name": "newOwner",
"type": "address"
}],
"name": "transfer",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}, {
"name": "_timestamp",
"type": "uint256"
}],
"name": "isAllowed",
"outputs": [{
"name": "allowed",
"type": "bool"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "finalizeAuction",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "registryStarted",
"outputs": [{
"name": "",
"type": "uint256"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "launchLength",
"outputs": [{
"name": "",
"type": "uint32"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "sealedBid",
"type": "bytes32"
}],
"name": "newBid",
"outputs": [],
"payable": true,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "labels",
"type": "bytes32[]"
}],
"name": "eraseNode",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hashes",
"type": "bytes32[]"
}],
"name": "startAuctions",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "hash",
"type": "bytes32"
}, {
"name": "deed",
"type": "address"
}, {
"name": "registrationDate",
"type": "uint256"
}],
"name": "acceptRegistrarTransfer",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_hash",
"type": "bytes32"
}],
"name": "startAuction",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "rootNode",
"outputs": [{
"name": "",
"type": "bytes32"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "hashes",
"type": "bytes32[]"
}, {
"name": "sealedBid",
"type": "bytes32"
}],
"name": "startAuctionsAndBid",
"outputs": [],
"payable": true,
"type": "function"
}, {
"inputs": [{
"name": "_ens",
"type": "address"
}, {
"name": "_rootNode",
"type": "bytes32"
}, {
"name": "_startDate",
"type": "uint256"
}],
"payable": false,
"type": "constructor"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": false,
"name": "registrationDate",
"type": "uint256"
}],
"name": "AuctionStarted",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": true,
"name": "bidder",
"type": "address"
}, {
"indexed": false,
"name": "deposit",
"type": "uint256"
}],
"name": "NewBid",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": true,
"name": "owner",
"type": "address"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}, {
"indexed": false,
"name": "status",
"type": "uint8"
}],
"name": "BidRevealed",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": true,
"name": "owner",
"type": "address"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}, {
"indexed": false,
"name": "registrationDate",
"type": "uint256"
}],
"name": "HashRegistered",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}],
"name": "HashReleased",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "hash",
"type": "bytes32"
}, {
"indexed": true,
"name": "name",
"type": "string"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}, {
"indexed": false,
"name": "registrationDate",
"type": "uint256"
}],
"name": "HashInvalidated",
"type": "event"
}]
},{}],54:[function(require,module,exports){
module.exports=[{
"constant": true,
"inputs": [],
"name": "creationDate",
"outputs": [{
"name": "",
"type": "uint256"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [],
"name": "destroyDeed",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "newOwner",
"type": "address"
}],
"name": "setOwner",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "registrar",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant":true,
"inputs":[],
"name":"previousOwner",
"outputs":[{
"name":"",
"type":"address"
}],
"payable":false,
"type":"function"
}, {
"constant": false,
"inputs": [{
"name": "refundRatio",
"type": "uint256"
}],
"name": "closeDeed",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "newRegistrar",
"type": "address"
}],
"name": "setRegistrar",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "newValue",
"type": "uint256"
}],
"name": "setBalance",
"outputs": [],
"payable": true,
"type": "function"
}, {
"inputs": [],
"type": "constructor"
}, {
"payable": true,
"type": "fallback"
}, {
"anonymous": false,
"inputs": [{
"indexed": false,
"name": "newOwner",
"type": "address"
}],
"name": "OwnerChanged",
"type": "event"
}, {
"anonymous": false,
"inputs": [],
"name": "DeedClosed",
"type": "event"
}]
},{}],55:[function(require,module,exports){
module.exports=[{
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}],
"name": "resolver",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}],
"name": "owner",
"outputs": [{
"name": "",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "label",
"type": "bytes32"
}, {
"name": "owner",
"type": "address"
}],
"name": "setSubnodeOwner",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "ttl",
"type": "uint64"
}],
"name": "setTTL",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}],
"name": "ttl",
"outputs": [{
"name": "",
"type": "uint64"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "resolver",
"type": "address"
}],
"name": "setResolver",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "owner",
"type": "address"
}],
"name": "setOwner",
"outputs": [],
"payable": false,
"type": "function"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "node",
"type": "bytes32"
}, {
"indexed": false,
"name": "owner",
"type": "address"
}],
"name": "Transfer",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "node",
"type": "bytes32"
}, {
"indexed": true,
"name": "label",
"type": "bytes32"
}, {
"indexed": false,
"name": "owner",
"type": "address"
}],
"name": "NewOwner",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "node",
"type": "bytes32"
}, {
"indexed": false,
"name": "resolver",
"type": "address"
}],
"name": "NewResolver",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "node",
"type": "bytes32"
}, {
"indexed": false,
"name": "ttl",
"type": "uint64"
}],
"name": "NewTTL",
"type": "event"
}]
},{}],56:[function(require,module,exports){
module.exports=[{
"constant": true,
"inputs": [{
"name": "interfaceID",
"type": "bytes4"
}],
"name": "supportsInterface",
"outputs": [{
"name": "",
"type": "bool"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}],
"name": "addr",
"outputs": [{
"name": "ret",
"type": "address"
}],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "kind",
"type": "bytes32"
}],
"name": "has",
"outputs": [{
"name": "",
"type": "bool"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "addr",
"type": "address"
}],
"name": "setAddr",
"outputs": [],
"payable": false,
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "node",
"type": "bytes32"
}],
"name": "content",
"outputs": [{
"name": "ret",
"type": "bytes32"
}],
"payable": false,
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "node",
"type": "bytes32"
}, {
"name": "hash",
"type": "bytes32"
}],
"name": "setContent",
"outputs": [],
"payable": false,
"type": "function"
}, {
"inputs": [{
"name": "ensAddr",
"type": "address"
}],
"type": "constructor"
}, {
"payable": false,
"type": "fallback"
}]
},{}],57:[function(require,module,exports){
'use strict';
var ethFuncs = function ethFuncs() {};
ethFuncs.gasAdjustment = 40;
ethFuncs.validateEtherAddress = function (address) {
if (address.substring(0, 2) != "0x") return false;else if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) return false;else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) return true;else return this.isChecksumAddress(address);
};
ethFuncs.isChecksumAddress = function (address) {
return address == ethUtil.toChecksumAddress(address);
};
ethFuncs.validateHexString = function (str) {
if (str == "") return true;
str = str.substring(0, 2) == '0x' ? str.substring(2).toUpperCase() : str.toUpperCase();
var re = /^[0-9A-F]+$/g;
return re.test(str);
};
ethFuncs.sanitizeHex = function (hex) {
hex = hex.substring(0, 2) == '0x' ? hex.substring(2) : hex;
if (hex == "") return "";
return '0x' + this.padLeftEven(hex);
};
ethFuncs.trimHexZero = function (hex) {
if (hex == "0x00" || hex == "0x0") return "0x0";
hex = this.sanitizeHex(hex);
hex = hex.substring(2).replace(/^0+/, '');
return '0x' + hex;
};
ethFuncs.padLeftEven = function (hex) {
hex = hex.length % 2 != 0 ? '0' + hex : hex;
return hex;
};
ethFuncs.addTinyMoreToGas = function (hex) {
hex = this.sanitizeHex(hex);
return new BigNumber(ethFuncs.gasAdjustment * etherUnits.getValueOfUnit('gwei')).toString(16);
};
ethFuncs.decimalToHex = function (dec) {
return new BigNumber(dec).toString(16);
};
ethFuncs.hexToDecimal = function (hex) {
return new BigNumber(this.sanitizeHex(hex)).toString();
};
ethFuncs.contractOutToArray = function (hex) {
hex = hex.replace('0x', '').match(/.{64}/g);
for (var i = 0; i < hex.length; i++) {
hex[i] = hex[i].replace(/^0+/, '');
hex[i] = hex[i] == "" ? "0" : hex[i];
}
return hex;
};
ethFuncs.getNakedAddress = function (address) {
return address.toLowerCase().replace('0x', '');
};
ethFuncs.getDeteministicContractAddress = function (address, nonce) {
nonce = new BigNumber(nonce).toString();
address = address.substring(0, 2) == '0x' ? address : '0x' + address;
return '0x' + ethUtil.generateAddress(address, nonce).toString('hex');
};
ethFuncs.padLeft = function (n, width, z) {
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
};
ethFuncs.getDataObj = function (to, func, arrVals) {
var val = "";
for (var i = 0; i < arrVals.length; i++) {
val += this.padLeft(arrVals[i], 64);
}return {
to: to,
data: func + val
};
};
ethFuncs.getFunctionSignature = function (name) {
return ethUtil.sha3(name).toString('hex').slice(0, 8);
};
ethFuncs.estimateGas = function (dataObj, callback) {
var adjustGas = function adjustGas(gasLimit) {
if (gasLimit == "0x5209") return "21000";
if (new BigNumber(gasLimit).gt(4000000)) return "-1";
return new BigNumber(gasLimit).toString();
};
ajaxReq.getEstimatedGas(dataObj, function (data) {
if (data.error) {
callback(data);
return;
} else {
callback({
"error": false,
"msg": "",
"data": adjustGas(data.data)
});
}
});
};
module.exports = ethFuncs;
},{}],58:[function(require,module,exports){
'use strict';
var etherUnits = function etherUnits() {};
etherUnits.unitMap = {
'wei': '1',
'kwei': '1000',
'ada': '1000',
'femtoether': '1000',
'mwei': '1000000',
'babbage': '1000000',
'picoether': '1000000',
'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',
'einstein': '1000000000000000000000',
'mether': '1000000000000000000000000',
'gether': '1000000000000000000000000000',
'tether': '1000000000000000000000000000000'
};
etherUnits.getValueOfUnit = function (unit) {
unit = unit ? unit.toLowerCase() : 'ether';
var unitValue = this.unitMap[unit];
if (unitValue === undefined) {
throw new Error(globalFuncs.errorMsgs[4] + JSON.stringify(this.unitMap, null, 2));
}
return new BigNumber(unitValue, 10);
};
etherUnits.fiatToWei = function (number, pricePerEther) {
var returnValue = new BigNumber(String(number)).div(pricePerEther).times(this.getValueOfUnit('ether')).round(0);
return returnValue.toString(10);
};
etherUnits.toFiat = function (number, unit, multi) {
var returnValue = new BigNumber(this.toEther(number, unit)).times(multi).round(5);
return returnValue.toString(10);
};
etherUnits.toEther = function (number, unit) {
var returnValue = new BigNumber(this.toWei(number, unit)).div(this.getValueOfUnit('ether'));
return returnValue.toString(10);
};
etherUnits.toWei = function (number, unit) {
var returnValue = new BigNumber(String(number)).times(this.getValueOfUnit(unit));
return returnValue.toString(10);
};
etherUnits.unitToUnit = function (number, from, to) {
var returnValue = new BigNumber(String(number)).times(this.getValueOfUnit(from)).div(this.getValueOfUnit(to));
return returnValue.toString(10);
};
module.exports = etherUnits;
},{}],59:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var globalFuncs = function globalFuncs() {};
globalFuncs.lightMode = false;
globalFuncs.getBlockie = function (address) {
return blockies.create({
seed: address.toLowerCase(),
size: 8,
scale: 16
}).toDataURL();
};
globalFuncs.printPaperWallets = function (strJson) {
var win = window.open("about:blank", "_blank");
var data = "<html>\r\n\r\n<head>\r\n <link rel=\"stylesheet\" href=\"css\/etherwallet-master.min.css\" \/>\r\n <script type=\"text\/javascript\" src=\"js\/jquery-1.12.3.min.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"js\/etherwallet-static.min.js\"><\/script>\r\n <script type=\"text\/javascript\">\r\n function getBlockie(address) {\r\n return blockies.create({\r\n seed: address.toLowerCase(),\r\n size: 8,\r\n scale: 16\r\n }).toDataURL();\r\n }\r\n function generateWallets() {\r\n var json = JSON.parse($(\"#printwalletjson\").html());\r\n for (var i = 0; i < json.length; i++) {\r\n var walletTemplate = $(\'<div\/>\').append($(\"#print-container\").clone());\r\n new QRCode($(walletTemplate).find(\"#paperwalletaddqr\")[0], {\r\n text: json[i][\'address\'],\r\n colorDark: \"#000000\",\r\n colorLight: \"#ffffff\",\r\n correctLevel: QRCode.CorrectLevel.H\r\n });\r\n new QRCode($(walletTemplate).find(\"#paperwalletprivqr\")[0], {\r\n text: json[i][\'private\'],\r\n colorDark: \"#000000\",\r\n colorLight: \"#ffffff\",\r\n correctLevel: QRCode.CorrectLevel.H\r\n });\r\n $(walletTemplate).find(\"#paperwalletadd\").html(json[i][\'address\']);\r\n $(walletTemplate).find(\"#paperwalletpriv\").html(json[i][\'private\']);\r\n $(walletTemplate).find(\"#identicon\").css(\'background-image\',\'url(\' + getBlockie(json[i][\'address\']) +\')\');\r\n walletTemplate = $(walletTemplate).find(\"#print-container\").show();\r\n $(\"body\").append(walletTemplate);\r\n }\r\n setTimeout(function() {\r\n window.print();\r\n }, 2000);\r\n }\r\n <\/script>\r\n<\/head>\r\n\r\n<body><span id=\"printwalletjson\" style=\"display: none;\">{{WALLETJSON}}<\/span>\r\n <div class=\"print-container\" style=\"display: none; margin-bottom: 50px;\" id=\"print-container\"><img src=\"images\/logo-ethereum-1.png\" class=\"ether-logo-1\" height=\"100%\" width=\"auto\" \/> <div id=\"identicon\" class=\"addressIdenticon med float\"><\/div>\r\n <img src=\"images\/print-sidebar.png\" height=\"100%\" width=\"auto\" class=\"print-title\" \/>\r\n <div class=\"print-qr-code-1\">\r\n <div id=\"paperwalletaddqr\"><\/div>\r\n <p class=\"print-text\" style=\"padding-top: 25px;\">YOUR ADDRESS<\/p>\r\n <\/div>\r\n <div class=\"print-notes\"><img src=\"images\/notes-bg.png\" width=\"90%;\" height=\"auto\" class=\"pull-left\" \/>\r\n <p class=\"print-text\">AMOUNT \/ NOTES<\/p>\r\n <\/div>\r\n <div class=\"print-qr-code-2\">\r\n <div id=\"paperwalletprivqr\"><\/div>\r\n <p class=\"print-text\" style=\"padding-top: 30px;\">YOUR PRIVATE KEY<\/p>\r\n <\/div>\r\n <div class=\"print-address-container\">\r\n <p><strong>Your Address:<\/strong>\r\n <br \/><span id=\"paperwalletadd\"><\/span><\/p>\r\n <p><strong>Your Private Key:<\/strong>\r\n <br \/><span id=\"paperwalletpriv\"><\/span><\/p>\r\n <\/div>\r\n <\/div>\r\n<\/body>\r\n\r\n<\/html>\r\n";
data = data.replace("{{WALLETJSON}}", strJson);
win.document.write(data);
win.document.write("<script>generateWallets();</script>");
};
globalFuncs.getBlob = function (mime, str) {
var str = (typeof str === "undefined" ? "undefined" : _typeof(str)) === 'object' ? JSON.stringify(str) : str;
if (str == null) return '';
var blob = new Blob([str], {
type: mime
});
return window.URL.createObjectURL(blob);
};
globalFuncs.getSuccessText = function (str) {
return '<p class="text-center text-success"><strong> ' + str + '</strong></p>';
};
globalFuncs.getDangerText = function (str) {
return '<p class="text-center text-danger"><strong> ' + str + '</strong></p>';
};
// These are translated in the translation files
globalFuncs.errorMsgs = ['Please enter a valid amount.', // 0
'Your password must be at least 9 characters. Please ensure it is a strong password. ', // 1
'Sorry! We don\'t recognize this type of wallet file. ', // 2
'This is not a valid wallet file. ', // 3
'This unit doesn\'t exists, please use the one of the following units ', // 4
'Please enter a valid address. ', // 5
'Please enter a valid password. ', // 6
'Please enter valid decimals (Must be integer, 0-18). ', // 7
'Please enter a valid gas limit (Must be integer. Try 21000-4000000). ', // 8
'Please enter a valid data value (Must be hex). ', // 9
'Please enter a valid gas price. ', // 10 - NOT USED
'Please enter a valid nonce (Must be integer).', // 11
'Invalid signed transaction. ', // 12
'A wallet with this nickname already exists. ', // 13
'Wallet not found. ', // 14
'Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. ', // 15 - NOT USED
'A wallet with this address already exists in storage. Please check your wallets page. ', // 16
'(error_17) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)', // 17
'All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.', // 18
'Please enter a valid symbol', // 19
'Not a valid ERC-20 token', // 20
'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.', // 21
'Please enter valid node name', // 22
'Enter valid URL. If you are on https, your URL must be https', // 23
'Please enter a valid port. ', // 24
'Please enter a valid chain ID. ', // 25
'Please enter a valid ABI. ', // 26
'Minimum amount: 0.01. Max amount: ', // 27
'You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. ', // 28
'Please enter a valid user and password. ', // 29
'Please enter a valid name (7+ characters, limited punctuation) ', // 30
'Please enter a valid secret phrase. ', // 31
'Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.', // 32
'The wallet you have unlocked does not match the owner\'s address. ', // 33
'The name you are attempting to reveal does not match the name you have entered. ', // 34
'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Click here to learn what this means.</a>', // 35
'Please enter valid TX hash', // 36
'Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f', // 37
'Offer must have either price or reserve set to more than 0', // 38
'Bid must be more than the specified minimum' // 39
];
// These are translated in the translation files
globalFuncs.successMsgs = ['Valid address', 'Wallet successfully decrypted', 'Transaction submitted. TX Hash: ', 'Your wallet was successfully added: ', 'File Selected: ', 'You are connected to the node ', 'Message Signature Verified'];
// These are translated in the translation files
globalFuncs.gethErrors = {
'(geth-06) Invalid sender\\.': 'GETH_InvalidSender',
"(geth-08) This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low\\. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)\\.": "GETH_Nonce",
'(geth-02) Gas price too low for acceptance\\. Try raising the gas price to 21 GWEI via the dropdown in top-right\\.': 'GETH_Cheap',
'(geth-01) Insufficient balance\\. Your gas limit * gas price + amount to send exceeds your current balance\\. Send more ETH to your account or use the "Send Entire Balance" button\\. If you believe this is in error, try pressing generate again\\. Required (d+) WEI and got: (d+) WEI\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)': 'GETH_Balance',
'(geth-09) Account does not exist or account balance too low\\.': 'GETH_NonExistentAccount',
'(geth-04) Insufficient balance\\. Your gas limit * gas price + amount to send exceeds your current balance\\. Send more ETH to your account or use the "Send Entire Balance" button\\. If you believe this is in error, try pressing generate again\\. Required (d+) WEI and got: (d+) WEI\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)': 'GETH_InsufficientFunds',
'(geth-05) Intrinsic gas too low\\. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.': 'GETH_IntrinsicGas',
'(geth-03) Exceeds block gas limit\\. Transaction cost exceeds current gas limit\\. Limit: (d+) WEI, got: (d+) WEI\\. Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again\\. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)': 'GETH_GasLimit',
'(geth-07) Negative value\\.': 'GETH_NegativeValue'
};
globalFuncs.gethErrorMsgs = {};
globalFuncs.getGethMsg = function (str) {
if (str in this.gethErrors) {
var key = this.gethErrors[str];
if (key in this.gethErrorMsgs) {
return this.gethErrorMsgs[key];
}
}
return str;
};
// These are translated in the translation files
globalFuncs.parityErrors = {
"A (parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)\\. This means it was already broadcast. Please check your address on etherscan.io & wait 10 minutes before attempting to send again to avoid duplicate transactions. <a target='_blank' rel='noopener noreferrer' href='https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html'>Learn more</a>": "PARITY_AlreadyImported",
"(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html)\\. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)\\.": "PARITY_Old",
"(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low\\. Try incrementing the nonce by clicking the Generate button again\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)\\.": "PARITY_TooCheapToReplace",
"(parity-06) There are too many transactions in the queue\\. Your transaction was dropped due to limit\\. Try increasing the gas price\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)\\.": "PARITY_LimitReached",
"(parity-08) TX Fee is too low\\. It does not satisfy your node's minimal fee (minimal: (d+) WEI, got: (d+) WEI)\\. Try increasing the gas price and/or gas limit\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)\\.": "PARITY_InsufficientGasPrice",
"(parity-03) Insufficient balance\\. The account you tried to send transaction from does not have enough funds\\. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) WEI and got: (d+) WEI\\. [Learn More](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)\\.": "ERROR_17",
"(parity-02) Transaction cost exceeds current gas limit\\. Limit: (d+) WEI, got: (d+) WEI\\. Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again\\. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)\\.": "PARITY_GasLimitExceeded",
"(parity-05) Supplied gas limit is beyond limit\\. Try lowering the gas limit to 21000\\. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)\\.": "PARITY_InvalidGasLimit"
};
globalFuncs.parityErrorMsgs = {};
globalFuncs.getParityMsg = function (str) {
for (var reg in this.parityErrors) {
if (this.parityErrors.hasOwnProperty(reg)) {
var args = str.match("^" + reg + "$");
if (args) {
var key = this.parityErrors[reg];
if (key in this.parityErrorMsgs) {
args[0] = this.parityErrorMsgs[key];
return format.apply(this, args);
}
}
}
}
return str;
};
globalFuncs.getEthNodeName = function () {
// return "geth";
return "parity";
};
globalFuncs.getEthNodeMsg = function (str) {
var ethNode = this.getEthNodeName();
if (ethNode == "geth") return this.getGethMsg(str);else return this.getParityMsg(str);
};
globalFuncs.scrypt = {
n: 1024
};
globalFuncs.postDelay = 300;
globalFuncs.kdf = "scrypt";
globalFuncs.defaultTxGasLimit = 21000;
globalFuncs.defaultTokenGasLimit = 200000;
globalFuncs.donateAddress = "0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8";
globalFuncs.isNumeric = function (n) {
return !isNaN(parseFloat(n)) && isFinite(n);
};
globalFuncs.urlGet = function (name) {
name = name.toLowerCase();
if (name = new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)').exec(location.search.toLowerCase())) return this.stripTags(decodeURIComponent(name[1]));
};
globalFuncs.stripTags = function (str) {
var SCRIPT_REGEX = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
while (SCRIPT_REGEX.test(str)) {
str = str.replace(SCRIPT_REGEX, "");
}
return str;
};
globalFuncs.checkAndRedirectHTTPS = function () {
var host = "myetherwallet.com";
var hostw = "https://www.myetherwallet.com";
var path = window.location.pathname;
if (host == window.location.host) window.location = hostw + path;
};
globalFuncs.isStrongPass = function (password) {
return password.length > 8;
};
globalFuncs.hexToAscii = function (hex) {
return hex.match(/.{1,2}/g).map(function (v) {
return String.fromCharCode(parseInt(v, 16));
}).join('');
};
globalFuncs.isAlphaNumeric = function (value) {
return !/[^a-zA-Z0-9]/.test(value);
};
globalFuncs.getRandomBytes = function (num) {
return ethUtil.crypto.randomBytes(num);
};
function getFromLS(key, errorMsg) {
var localStorageItemString = globalFuncs.localStorage.getItem(key);
if (!localStorageItemString && errorMsg) {
throw Error(errorMsg);
} else if (!localStorageItemString) {
return null;
} else {
return JSON.parse(localStorageItemString);
}
}
globalFuncs.getDefaultTokensAndNetworkType = function getDefaultTokensAndNetworkType() {
var defaultNodes = require('./nodes').nodeList;
var tokenMappings = {
'eth': require('./tokens/ethTokens.json'),
'etc': require('./tokens/etcTokens.json'),
'rop': require('./tokens/ropstenTokens.json'),
'kov': require('./tokens/kovanTokens.json'),
'rin': require('./tokens/rinkebyTokens.json')
};
var nodeErrMsg = 'Node does not exist, contact support@myetherwallet.com CODE:localstorageNodeMissing';
// localStorage selected node
var currentNodeKey = getFromLS("curNode", nodeErrMsg).key;
// custom nodes in local storage
var customLocalNodes = getFromLS("localNodes") || [];
var customNodeNetworkType = currentNodeKey.split('_')[1];
var isCustomNode = !!customLocalNodes.find(function (currentLocalCustomNode) {
return currentLocalCustomNode.options === customNodeNetworkType;
});
var defaultNode;
var firstCustomNodeWithMatchingNetwork;
var defaultTokens;
if (isCustomNode) {
// NOTE: Different curNode value structure for default nodes and custom nodes. This will work because we are checking to make sure we are a custom node first.
firstCustomNodeWithMatchingNetwork = customLocalNodes.find(function (currentLocalCustomNode) {
return currentLocalCustomNode.options === customNodeNetworkType;
});
// if the reference the custom local node is invalid, throw
if (!firstCustomNodeWithMatchingNetwork) {
throw Error("Custom Local Node does not exist. Please clear local storage, and re-input your custom node.");
}
} else {
defaultNode = defaultNodes[currentNodeKey];
if (!defaultNode) {
throw Error("Default Node does not exist. Please clear local storage and try again.");
}
}
if (isCustomNode) {
// tokenMappings maps localStorage custom node key to corresponding default tokens of network. If we are unable to retrieve the default tokens of the custom network, we return an empty array.
defaultTokens = tokenMappings[firstCustomNodeWithMatchingNetwork.options] || [];
} else {
defaultTokens = defaultNode.tokenList;
}
return {
defaultTokens: defaultTokens,
networkType: isCustomNode ? firstCustomNodeWithMatchingNetwork.options : defaultNode.name.toLowerCase(),
isCustomNode: isCustomNode
};
};
function isDuplicateTokenAddress(tokenOne, tokenTwo, currentNetwork) {
var hasNetwork = tokenTwo.network;
if (hasNetwork) {
return tokenTwo.network === currentNetwork && tokenTwo.contractAddress === tokenOne.address;
} else {
return tokenTwo.contractAddress === tokenOne.address;
}
}
function isDuplicateTokenSymbol(tokenOne, tokenTwo, currentNetwork) {
var hasNetwork = tokenTwo.network;
if (hasNetwork) {
return tokenTwo.network === currentNetwork && tokenTwo.symbol === tokenOne.symbol;
} else {
return tokenTwo.symbol === tokenOne.symbol;
}
}
globalFuncs.isDuplicateToken = function (tokenOne, tokenTwo, currentNetwork) {
return isDuplicateTokenSymbol(tokenOne, tokenTwo, currentNetwork) || isDuplicateTokenAddress(tokenOne, tokenTwo, currentNetwork);
};
globalFuncs.doesTokenExistInDefaultTokens = function (token, defaultTokensAndNetworkType) {
for (var i = 0; i < defaultTokensAndNetworkType.defaultTokens.length; i++) {
var currentDefaultToken = defaultTokensAndNetworkType.defaultTokens[i];
var isDuplicateToken = globalFuncs.isDuplicateToken(currentDefaultToken, token, defaultTokensAndNetworkType.networkType);
// do not simplify to return isDuplicateToken
if (isDuplicateToken) {
return true;
}
}
return false;
};
globalFuncs.saveTokenToLocal = function (localToken, callback) {
try {
if (!ethFuncs.validateEtherAddress(localToken.contractAdd)) {
throw globalFuncs.errorMsgs[5];
} else if (!globalFuncs.isNumeric(localToken.decimals) || parseFloat(localToken.decimals) < 0) {
throw globalFuncs.errorMsgs[7];
} else if (!globalFuncs.isAlphaNumeric(localToken.symbol) || localToken.symbol == "") {
throw globalFuncs.errorMsgs[19];
}
var storedTokens = globalFuncs.localStorage.getItem("localTokens", null) != null ? JSON.parse(globalFuncs.localStorage.getItem("localTokens")) : [];
// catch if TOKEN SYMBOL is already in storedTokens
for (var i = 0; i < storedTokens.length; i++) {
if (storedTokens[i].symbol.toLowerCase().replace(/ /g, '') === localToken.symbol.toLowerCase().replace(/ /g, '')) {
throw Error('Unable to add a custom token with the same symbol as an existing custom token. Try clicking the "Load Tokens" button, or choosing a different token symbol');
}
}
// catch if CONTRACT ADDRESS is already in storedTokens
for (var i = 0; i < storedTokens.length; i++) {
if (storedTokens[i].contractAddress.toLowerCase().replace(/ /g, '') === localToken.contractAdd.toLowerCase().replace(/ /g, '')) {
throw Error('Unable to add custom token. It has the same address as custom token ' + storedTokens[i].symbol + '. Try clicking the "Load Tokens" button to see it. :)');
}
}
var defaultTokensAndNetworkType = globalFuncs.getDefaultTokensAndNetworkType();
// catch if TOKEN SYMBOL is already in defaultTokens
if (globalFuncs.doesTokenExistInDefaultTokens(localToken, defaultTokensAndNetworkType)) {
throw Error('This token is already added as a default token. Try clicking the "Load Tokens" button to see it. :)');
}
storedTokens.push({
contractAddress: localToken.contractAdd,
symbol: localToken.symbol,
decimal: parseInt(localToken.decimals),
type: "custom",
network: globalFuncs.getDefaultTokensAndNetworkType().networkType
});
globalFuncs.localStorage.setItem("localTokens", JSON.stringify(storedTokens));
callback({
error: false
});
} catch (e) {
callback({
error: true,
msg: e.message
});
}
};
globalFuncs.removeTokenFromLocal = function (symbol, tokenObj) {
var storedTokens = globalFuncs.localStorage.getItem("localTokens", null) != null ? JSON.parse(globalFuncs.localStorage.getItem("localTokens", null)) : [];
// remove from localstorage so it doesn't show up on refresh
for (var i = 0; i < storedTokens.length; i++) {
if (storedTokens[i].symbol === symbol) {
storedTokens.splice(i, 1);
break;
}
}globalFuncs.localStorage.setItem("localTokens", JSON.stringify(storedTokens));
if (!tokenObj) return;
// remove from tokenObj so it removes from display
for (var i = 0; i < tokenObj.length; i++) {
if (tokenObj[i].symbol === symbol) {
tokenObj.splice(i, 1);
break;
}
}
};
globalFuncs.localStorage = {
isAvailable: function isAvailable() {
// return typeof localStorage != "undefined";
// return globalFuncs.storageAvailable('localStorage');
// Polyfilled if not available/accessible
return true;
},
setItem: function setItem(key, value) {
if (this.isAvailable()) {
localStorage.setItem(key, value);
} else {
// console.log("localStorage is available? " + this.isAvailable());
}
},
getItem: function getItem(key) {
var dValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
if (this.isAvailable()) {
return localStorage.getItem(key);
} else {
return dValue;
}
}
};
module.exports = globalFuncs;
},{"./nodes":70,"./tokens/etcTokens.json":97,"./tokens/ethTokens.json":98,"./tokens/kovanTokens.json":100,"./tokens/rinkebyTokens.json":102,"./tokens/ropstenTokens.json":103}],60:[function(require,module,exports){
'use strict';
function storageAvailable(type) {
try {
var storage = window[type],
x = '__storage_test__';
storage.setItem(x, x);
storage.removeItem(x);
return true;
} catch (e) {
return e instanceof DOMException && (
// everything except Firefox
e.code === 22 ||
// Firefox
e.code === 1014 ||
// test name field too, because code might not be present
// everything except Firefox
e.name === 'QuotaExceededError' ||
// Firefox
e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
// acknowledge QuotaExceededError only if there's something already stored
storage.length !== 0;
}
}
if (!storageAvailable('localStorage')) {
Object.defineProperty(window, "localStorage", new function () {
var aKeys = [],
oStorage = {};
Object.defineProperty(oStorage, "getItem", {
value: function value(sKey) {
return sKey ? this[sKey] : null;
},
writable: false,
configurable: false,
enumerable: false
});
Object.defineProperty(oStorage, "key", {
value: function value(nKeyId) {
return aKeys[nKeyId];
},
writable: false,
configurable: false,
enumerable: false
});
Object.defineProperty(oStorage, "setItem", {
value: function value(sKey, sValue) {
if (!sKey) {
return;
}
document.cookie = escape(sKey) + "=" + escape(sValue) + "; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/";
},
writable: false,
configurable: false,
enumerable: false
});
Object.defineProperty(oStorage, "length", {
get: function get() {
return aKeys.length;
},
configurable: false,
enumerable: false
});
Object.defineProperty(oStorage, "removeItem", {
value: function value(sKey) {
if (!sKey) {
return;
}
document.cookie = escape(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
},
writable: false,
configurable: false,
enumerable: false
});
this.get = function () {
var iThisIndx;
for (var sKey in oStorage) {
iThisIndx = aKeys.indexOf(sKey);
if (iThisIndx === -1) {
oStorage.setItem(sKey, oStorage[sKey]);
} else {
aKeys.splice(iThisIndx, 1);
}
delete oStorage[sKey];
}
for (aKeys; aKeys.length > 0; aKeys.splice(0, 1)) {
oStorage.removeItem(aKeys[0]);
}
for (var aCouple, iKey, nIdx = 0, aCouples = document.cookie.split(/\s*;\s*/); nIdx < aCouples.length; nIdx++) {
aCouple = aCouples[nIdx].split(/\s*=\s*/);
if (aCouple.length > 1) {
oStorage[iKey = unescape(aCouple[0])] = unescape(aCouple[1]);
aKeys.push(iKey);
}
}
return oStorage;
};
this.configurable = false;
this.enumerable = true;
}());
}
module.exports = null;
},{}],61:[function(require,module,exports){
'use strict';
require('./localStoragePolyfill');
var IS_CX = false;
if (typeof chrome != 'undefined') IS_CX = chrome.windows === undefined ? false : true;
var angular = require('angular');
var angularTranslate = require('angular-translate');
var angularTranslateErrorLog = require('angular-translate-handler-log');
var angularSanitize = require('angular-sanitize');
var angularAnimate = require('angular-animate');
var bip39 = require('bip39');
var HDKey = require('hdkey');
window.hd = { bip39: bip39, HDKey: HDKey };
var BigNumber = require('bignumber.js');
window.BigNumber = BigNumber;
var marked = require('./staticJS/customMarked');
window.marked = marked;
var ethUtil = require('ethereumjs-util');
ethUtil.crypto = require('crypto');
ethUtil.Tx = require('ethereumjs-tx');
ethUtil.scrypt = require('scryptsy');
ethUtil.uuid = require('uuid');
ethUtil.solidityCoder = require('./solidity/coder');
ethUtil.solidityUtils = require('./solidity/utils');
ethUtil.WAValidator = require('wallet-address-validator');
window.ethUtil = ethUtil;
var format = require('string-format');
window.format = format;
var browser = require('detect-browser');
window.browser = browser;
var Wallet = require('./myetherwallet');
window.Wallet = Wallet;
var Web3Wallet = require('./web3Wallet');
window.Web3Wallet = Web3Wallet;
var Token = require('./tokenlib');
window.Token = Token;
var globalFuncs = require('./globalFuncs');
window.globalFuncs = globalFuncs;
var uiFuncs = require('./uiFuncs');
window.uiFuncs = uiFuncs;
var etherUnits = require('./etherUnits');
window.etherUnits = etherUnits;
var ajaxReq = require('./ajaxReq');
window.ajaxReq = ajaxReq;
var nodes = require('./nodes');
window.nodes = nodes;
var ethFuncs = require('./ethFuncs');
window.ethFuncs = ethFuncs;
var Validator = require('./validator');
window.Validator = Validator;
var bity = require('./bity');
window.bity = bity;
var ens = require('./ens');
window.ens = ens;
var domainsale = require('./domainsale');
window.domainsale = domainsale;
var translate = require('./translations/translate.js');
if (IS_CX) {
var cxFuncs = require('./cxFuncs');
window.cxFuncs = cxFuncs;
} else {
var u2f = require('./staticJS/u2f-api');
var ledger3 = require('./staticJS/ledger3');
var ledgerEth = require('./staticJS/ledger-eth');
var trezorConnect = require('./staticJS/trezorConnect');
var digitalBitboxUsb = require('./staticJS/digitalBitboxUsb');
var digitalBitboxEth = require('./staticJS/digitalBitboxEth');
window.u2f = u2f;
window.Ledger3 = ledger3;
window.ledgerEth = ledgerEth;
window.TrezorConnect = trezorConnect.TrezorConnect;
window.DigitalBitboxUsb = digitalBitboxUsb;
window.DigitalBitboxEth = digitalBitboxEth;
}
var CustomGasMessages = require('./customGas.js');
window.CustomGasMessages = CustomGasMessages;
var tabsCtrl = require('./controllers/tabsCtrl');
var viewCtrl = require('./controllers/viewCtrl');
var walletGenCtrl = require('./controllers/walletGenCtrl');
var onboardingCtrl = require('./controllers/onboardingCtrl');
var bulkGenCtrl = require('./controllers/bulkGenCtrl');
var decryptWalletCtrl = require('./controllers/decryptWalletCtrl');
var viewWalletCtrl = require('./controllers/viewWalletCtrl');
var txStatusCtrl = require('./controllers/txStatusCtrl');
var sendTxCtrl = require('./controllers/sendTxCtrl');
var swapCtrl = require('./controllers/swapCtrl');
var signMsgCtrl = require('./controllers/signMsgCtrl');
var contractsCtrl = require('./controllers/contractsCtrl');
var ensCtrl = require('./controllers/ensCtrl');
var domainsaleCtrl = require('./controllers/domainsaleCtrl');
var footerCtrl = require('./controllers/footerCtrl');
var offlineTxCtrl = require('./controllers/offlineTxCtrl');
var walletBalanceCtrl = require('./controllers/walletBalanceCtrl');
var helpersCtrl = require('./controllers/helpersCtrl');
var globalService = require('./services/globalService');
var walletService = require('./services/walletService');
var blockiesDrtv = require('./directives/blockiesDrtv');
var addressFieldDrtv = require('./directives/addressFieldDrtv');
var QRCodeDrtv = require('./directives/QRCodeDrtv');
var walletDecryptDrtv = require('./directives/walletDecryptDrtv');
var cxWalletDecryptDrtv = require('./directives/cxWalletDecryptDrtv');
var fileReaderDrtv = require('./directives/fileReaderDrtv');
var balanceDrtv = require('./directives/balanceDrtv');
if (IS_CX) {
var addWalletCtrl = require('./controllers/CX/addWalletCtrl');
var cxDecryptWalletCtrl = require('./controllers/CX/cxDecryptWalletCtrl');
var myWalletsCtrl = require('./controllers/CX/myWalletsCtrl');
var mainPopCtrl = require('./controllers/CX/mainPopCtrl');
var quickSendCtrl = require('./controllers/CX/quickSendCtrl');
}
var app = angular.module('mewApp', ['pascalprecht.translate', 'ngSanitize', 'ngAnimate']);
app.config(['$compileProvider', function ($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(|blob|https|mailto):/);
}]);
app.config(['$translateProvider', function ($translateProvider) {
$translateProvider.useMissingTranslationHandlerLog();
new translate($translateProvider);
}]);
app.config(['$animateProvider', function ($animateProvider) {
$animateProvider.classNameFilter(/^no-animate$/);
}]);
app.factory('globalService', ['$http', '$httpParamSerializerJQLike', globalService]);
app.factory('walletService', walletService);
app.directive('blockieAddress', blockiesDrtv);
app.directive('addressField', ['$compile', addressFieldDrtv]);
app.directive('qrCode', QRCodeDrtv);
app.directive('onReadFile', fileReaderDrtv);
app.directive('walletBalanceDrtv', balanceDrtv);
app.directive('walletDecryptDrtv', walletDecryptDrtv);
app.directive('cxWalletDecryptDrtv', cxWalletDecryptDrtv);
app.controller('tabsCtrl', ['$scope', 'globalService', '$translate', '$sce', tabsCtrl]);
app.controller('viewCtrl', ['$scope', 'globalService', '$sce', viewCtrl]);
app.controller('walletGenCtrl', ['$scope', walletGenCtrl]);
app.controller('bulkGenCtrl', ['$scope', bulkGenCtrl]);
app.controller('onboardingCtrl', ['$scope', onboardingCtrl]);
app.controller('decryptWalletCtrl', ['$scope', '$sce', 'walletService', decryptWalletCtrl]);
app.controller('viewWalletCtrl', ['$scope', 'walletService', viewWalletCtrl]);
app.controller('txStatusCtrl', ['$scope', txStatusCtrl]);
app.controller('sendTxCtrl', ['$scope', '$sce', 'walletService', '$rootScope', sendTxCtrl]);
app.controller('swapCtrl', ['$scope', '$sce', 'walletService', swapCtrl]);
app.controller('signMsgCtrl', ['$scope', '$sce', 'walletService', signMsgCtrl]);
app.controller('contractsCtrl', ['$scope', '$sce', 'walletService', contractsCtrl]);
app.controller('ensCtrl', ['$scope', '$sce', 'walletService', ensCtrl]);
app.controller('domainsaleCtrl', ['$scope', '$sce', 'walletService', domainsaleCtrl]);
app.controller('footerCtrl', ['$scope', 'globalService', footerCtrl]);
app.controller('offlineTxCtrl', ['$scope', '$sce', 'walletService', offlineTxCtrl]);
app.controller('walletBalanceCtrl', ['$scope', '$sce', '$rootScope', walletBalanceCtrl]);
app.controller('helpersCtrl', ['$scope', helpersCtrl]);
if (IS_CX) {
app.controller('addWalletCtrl', ['$scope', '$sce', addWalletCtrl]);
app.controller('myWalletsCtrl', ['$scope', '$sce', 'walletService', myWalletsCtrl]);
app.controller('mainPopCtrl', ['$scope', '$sce', mainPopCtrl]);
app.controller('quickSendCtrl', ['$scope', '$sce', quickSendCtrl]);
app.controller('cxDecryptWalletCtrl', ['$scope', '$sce', 'walletService', cxDecryptWalletCtrl]);
}
},{"./ajaxReq":11,"./bity":12,"./controllers/CX/addWalletCtrl":13,"./controllers/CX/cxDecryptWalletCtrl":14,"./controllers/CX/mainPopCtrl":15,"./controllers/CX/myWalletsCtrl":16,"./controllers/CX/quickSendCtrl":17,"./controllers/bulkGenCtrl":18,"./controllers/contractsCtrl":19,"./controllers/decryptWalletCtrl":20,"./controllers/domainsaleCtrl":21,"./controllers/ensCtrl":22,"./controllers/footerCtrl":23,"./controllers/helpersCtrl":24,"./controllers/offlineTxCtrl":25,"./controllers/onboardingCtrl":26,"./controllers/sendTxCtrl":27,"./controllers/signMsgCtrl":28,"./controllers/swapCtrl":29,"./controllers/tabsCtrl":30,"./controllers/txStatusCtrl":31,"./controllers/viewCtrl":32,"./controllers/viewWalletCtrl":33,"./controllers/walletBalanceCtrl":34,"./controllers/walletGenCtrl":35,"./customGas.js":36,"./cxFuncs":37,"./directives/QRCodeDrtv":38,"./directives/addressFieldDrtv":39,"./directives/balanceDrtv":41,"./directives/blockiesDrtv":42,"./directives/cxWalletDecryptDrtv":43,"./directives/fileReaderDrtv":44,"./directives/walletDecryptDrtv":46,"./domainsale":47,"./ens":49,"./ethFuncs":57,"./etherUnits":58,"./globalFuncs":59,"./localStoragePolyfill":60,"./myetherwallet":62,"./nodes":70,"./services/globalService":71,"./services/walletService":72,"./solidity/coder":76,"./solidity/utils":87,"./staticJS/customMarked":88,"./staticJS/digitalBitboxEth":89,"./staticJS/digitalBitboxUsb":90,"./staticJS/ledger-eth":91,"./staticJS/ledger3":92,"./staticJS/trezorConnect":93,"./staticJS/u2f-api":94,"./tokenlib":95,"./translations/translate.js":127,"./uiFuncs":131,"./validator":132,"./web3Wallet":133,"angular":141,"angular-animate":135,"angular-sanitize":137,"angular-translate":139,"angular-translate-handler-log":138,"bignumber.js":158,"bip39":159,"crypto":211,"detect-browser":218,"ethereumjs-tx":242,"ethereumjs-util":243,"hdkey":260,"scryptsy":320,"string-format":336,"uuid":345,"wallet-address-validator":354}],62:[function(require,module,exports){
(function (Buffer){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var Wallet = function Wallet(priv, pub, path, hwType, hwTransport) {
if (typeof priv != "undefined") {
this.privKey = priv.length == 32 ? priv : Buffer(priv, 'hex');
}
this.pubKey = pub;
this.path = path;
this.hwType = hwType;
this.hwTransport = hwTransport;
this.type = "default";
};
Wallet.generate = function (icapDirect) {
if (icapDirect) {
while (true) {
var privKey = ethUtil.crypto.randomBytes(32);
if (ethUtil.privateToAddress(privKey)[0] === 0) {
return new Wallet(privKey);
}
}
} else {
return new Wallet(ethUtil.crypto.randomBytes(32));
}
};
Wallet.prototype.setTokens = function () {
this.tokenObjs = [];
var defaultTokensAndNetworkType = globalFuncs.getDefaultTokensAndNetworkType();
var tokens = Token.popTokens;
for (var i = 0; i < tokens.length; i++) {
this.tokenObjs.push(new Token(tokens[i].address, this.getAddressString(), tokens[i].symbol, tokens[i].decimal, tokens[i].type));
var autoTokens = globalFuncs.localStorage.getItem('autoLoadTokens');
var autoLoadTokens = autoTokens ? autoTokens : [];
var thisAddr = tokens[i].address;
if (autoLoadTokens.indexOf(thisAddr) > -1) {
this.tokenObjs[this.tokenObjs.length - 1].setBalance();
}
}
var storedTokens = globalFuncs.localStorage.getItem('localTokens', null) != null ? JSON.parse(globalFuncs.localStorage.getItem('localTokens')) : [];
var conflictWithDefaultTokens = [];
for (var e = 0; e < storedTokens.length; e++) {
if (globalFuncs.doesTokenExistInDefaultTokens(storedTokens[e], defaultTokensAndNetworkType)) {
conflictWithDefaultTokens.push(storedTokens[e]);
// don't push to tokenObjs if token is default; continue to next element
continue;
}
this.tokenObjs.push(new Token(storedTokens[e].contractAddress, this.getAddressString(), globalFuncs.stripTags(storedTokens[e].symbol), storedTokens[e].decimal, storedTokens[e].type));
this.tokenObjs[this.tokenObjs.length - 1].setBalance();
}
removeAllTokenConflicts(conflictWithDefaultTokens, storedTokens);
};
function saveToLocalStorage(key, value) {
globalFuncs.localStorage.setItem(key, JSON.stringify(value));
}
function removeConflictingTokensFromLocalStorage(conflictLocalTokens, localTokens) {
for (var i = 0; i < conflictLocalTokens.length; i++) {
for (var e = 0; e < localTokens.length; e++) {
if (conflictLocalTokens[i] === localTokens[e]) {
localTokens.splice(e, 1);
}
}
}
return localTokens;
}
// https://stackoverflow.com/questions/32238602/javascript-remove-duplicates-of-objects-sharing-same-property-value
function removeDuplicates(originalArray, objKey) {
var trimmedArray = [];
var values = [];
var value;
for (var i = 0; i < originalArray.length; i++) {
value = originalArray[i][objKey];
if (values.indexOf(value) === -1) {
trimmedArray.push(originalArray[i]);
values.push(value);
}
}
return trimmedArray;
}
function removeAllTokenConflicts(conflictWithDefaultTokens, localTokens) {
var deConflictedTokens = removeConflictingTokensFromLocalStorage(conflictWithDefaultTokens, localTokens);
var deDuplicatedTokens = removeDuplicates(deConflictedTokens, 'symbol');
saveToLocalStorage("localTokens", deDuplicatedTokens);
}
Wallet.prototype.setBalance = function (callback) {
var parentObj = this;
this.balance = this.usdBalance = this.eurBalance = this.btcBalance = this.chfBalance = this.repBalance = this.gbpBalance = 'loading';
ajaxReq.getBalance(parentObj.getAddressString(), function (data) {
if (data.error) parentObj.balance = data.msg;else {
parentObj.balance = etherUnits.toEther(data.data.balance, 'wei');
ajaxReq.getETHvalue(function (data) {
parentObj.usdPrice = etherUnits.toFiat('1', 'ether', data.usd);
parentObj.gbpPrice = etherUnits.toFiat('1', 'ether', data.gbp);
parentObj.eurPrice = etherUnits.toFiat('1', 'ether', data.eur);
parentObj.btcPrice = etherUnits.toFiat('1', 'ether', data.btc);
parentObj.chfPrice = etherUnits.toFiat('1', 'ether', data.chf);
parentObj.repPrice = etherUnits.toFiat('1', 'ether', data.rep);
parentObj.usdBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.usd);
parentObj.gbpBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.gbp);
parentObj.eurBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.eur);
parentObj.btcBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.btc);
parentObj.chfBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.chf);
parentObj.repBalance = etherUnits.toFiat(parentObj.balance, 'ether', data.rep);
if (callback) callback();
});
}
});
};
Wallet.prototype.getBalance = function () {
return this.balance;
};
Wallet.prototype.getPath = function () {
return this.path;
};
Wallet.prototype.getHWType = function () {
return this.hwType;
};
Wallet.prototype.getHWTransport = function () {
return this.hwTransport;
};
Wallet.prototype.getPrivateKey = function () {
return this.privKey;
};
Wallet.prototype.getPrivateKeyString = function () {
if (typeof this.privKey != "undefined") {
return this.getPrivateKey().toString('hex');
} else {
return "";
}
};
Wallet.prototype.getPublicKey = function () {
if (typeof this.pubKey == "undefined") {
return ethUtil.privateToPublic(this.privKey);
} else {
return this.pubKey;
}
};
Wallet.prototype.getPublicKeyString = function () {
if (typeof this.pubKey == "undefined") {
return '0x' + this.getPublicKey().toString('hex');
} else {
return "0x" + this.pubKey.toString('hex');
}
};
Wallet.prototype.getAddress = function () {
if (typeof this.pubKey == "undefined") {
return ethUtil.privateToAddress(this.privKey);
} else {
return ethUtil.publicToAddress(this.pubKey, true);
}
};
Wallet.prototype.getAddressString = function () {
return '0x' + this.getAddress().toString('hex');
};
Wallet.prototype.getChecksumAddressString = function () {
return ethUtil.toChecksumAddress(this.getAddressString());
};
Wallet.fromPrivateKey = function (priv) {
return new Wallet(priv);
};
Wallet.fromParityPhrase = function (phrase) {
var hash = ethUtil.sha3(new Buffer(phrase));
for (var i = 0; i < 16384; i++) {
hash = ethUtil.sha3(hash);
}while (ethUtil.privateToAddress(hash)[0] != 0) {
hash = ethUtil.sha3(hash);
}return new Wallet(hash);
};
Wallet.prototype.toV3 = function (password, opts) {
opts = opts || {};
var salt = opts.salt || ethUtil.crypto.randomBytes(32);
var iv = opts.iv || ethUtil.crypto.randomBytes(16);
var derivedKey;
var kdf = opts.kdf || 'scrypt';
var kdfparams = {
dklen: opts.dklen || 32,
salt: salt.toString('hex')
};
if (kdf === 'pbkdf2') {
kdfparams.c = opts.c || 262144;
kdfparams.prf = 'hmac-sha256';
derivedKey = ethUtil.crypto.pbkdf2Sync(new Buffer(password), salt, kdfparams.c, kdfparams.dklen, 'sha256');
} else if (kdf === 'scrypt') {
// FIXME: support progress reporting callback
kdfparams.n = opts.n || 262144;
kdfparams.r = opts.r || 8;
kdfparams.p = opts.p || 1;
derivedKey = ethUtil.scrypt(new Buffer(password), salt, kdfparams.n, kdfparams.r, kdfparams.p, kdfparams.dklen);
} else {
throw new Error('Unsupported kdf');
}
var cipher = ethUtil.crypto.createCipheriv(opts.cipher || 'aes-128-ctr', derivedKey.slice(0, 16), iv);
if (!cipher) {
throw new Error('Unsupported cipher');
}
var ciphertext = Buffer.concat([cipher.update(this.privKey), cipher.final()]);
var mac = ethUtil.sha3(Buffer.concat([derivedKey.slice(16, 32), new Buffer(ciphertext, 'hex')]));
return {
version: 3,
id: ethUtil.uuid.v4({
random: opts.uuid || ethUtil.crypto.randomBytes(16)
}),
address: this.getAddress().toString('hex'),
Crypto: {
ciphertext: ciphertext.toString('hex'),
cipherparams: {
iv: iv.toString('hex')
},
cipher: opts.cipher || 'aes-128-ctr',
kdf: kdf,
kdfparams: kdfparams,
mac: mac.toString('hex')
}
};
};
Wallet.prototype.toJSON = function () {
return {
address: this.getAddressString(),
checksumAddress: this.getChecksumAddressString(),
privKey: this.getPrivateKeyString(),
pubKey: this.getPublicKeyString(),
publisher: "MyEtherWallet",
encrypted: false,
version: 2
};
};
Wallet.fromMyEtherWallet = function (input, password) {
var json = (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' ? input : JSON.parse(input);
var privKey;
if (!json.locked) {
if (json.private.length !== 64) {
throw new Error('Invalid private key length');
}
privKey = new Buffer(json.private, 'hex');
} else {
if (typeof password !== 'string') {
throw new Error('Password required');
}
if (password.length < 7) {
throw new Error('Password must be at least 7 characters');
}
var cipher = json.encrypted ? json.private.slice(0, 128) : json.private;
cipher = Wallet.decodeCryptojsSalt(cipher);
var evp = Wallet.evp_kdf(new Buffer(password), cipher.salt, {
keysize: 32,
ivsize: 16
});
var decipher = ethUtil.crypto.createDecipheriv('aes-256-cbc', evp.key, evp.iv);
privKey = Wallet.decipherBuffer(decipher, new Buffer(cipher.ciphertext));
privKey = new Buffer(privKey.toString(), 'hex');
}
var wallet = new Wallet(privKey);
if (wallet.getAddressString() !== json.address) {
throw new Error('Invalid private key or address');
}
return wallet;
};
Wallet.fromMyEtherWalletV2 = function (input) {
var json = (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' ? input : JSON.parse(input);
if (json.privKey.length !== 64) {
throw new Error('Invalid private key length');
};
var privKey = new Buffer(json.privKey, 'hex');
return new Wallet(privKey);
};
Wallet.fromEthSale = function (input, password) {
var json = (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' ? input : JSON.parse(input);
var encseed = new Buffer(json.encseed, 'hex');
var derivedKey = ethUtil.crypto.pbkdf2Sync(Buffer(password), Buffer(password), 2000, 32, 'sha256').slice(0, 16);
var decipher = ethUtil.crypto.createDecipheriv('aes-128-cbc', derivedKey, encseed.slice(0, 16));
var seed = Wallet.decipherBuffer(decipher, encseed.slice(16));
var wallet = new Wallet(ethUtil.sha3(seed));
if (wallet.getAddress().toString('hex') !== json.ethaddr) {
throw new Error('Decoded key mismatch - possibly wrong passphrase');
}
return wallet;
};
Wallet.fromMyEtherWalletKey = function (input, password) {
var cipher = input.slice(0, 128);
cipher = Wallet.decodeCryptojsSalt(cipher);
var evp = Wallet.evp_kdf(new Buffer(password), cipher.salt, {
keysize: 32,
ivsize: 16
});
var decipher = ethUtil.crypto.createDecipheriv('aes-256-cbc', evp.key, evp.iv);
var privKey = Wallet.decipherBuffer(decipher, new Buffer(cipher.ciphertext));
privKey = new Buffer(privKey.toString(), 'hex');
return new Wallet(privKey);
};
Wallet.fromV3 = function (input, password, nonStrict) {
var json = (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' ? input : JSON.parse(nonStrict ? input.toLowerCase() : input);
if (json.version !== 3) {
throw new Error('Not a V3 wallet');
}
var derivedKey;
var kdfparams;
if (json.crypto.kdf === 'scrypt') {
kdfparams = json.crypto.kdfparams;
derivedKey = ethUtil.scrypt(new Buffer(password), new Buffer(kdfparams.salt, 'hex'), kdfparams.n, kdfparams.r, kdfparams.p, kdfparams.dklen);
} else if (json.crypto.kdf === 'pbkdf2') {
kdfparams = json.crypto.kdfparams;
if (kdfparams.prf !== 'hmac-sha256') {
throw new Error('Unsupported parameters to PBKDF2');
}
derivedKey = ethUtil.crypto.pbkdf2Sync(new Buffer(password), new Buffer(kdfparams.salt, 'hex'), kdfparams.c, kdfparams.dklen, 'sha256');
} else {
throw new Error('Unsupported key derivation scheme');
}
var ciphertext = new Buffer(json.crypto.ciphertext, 'hex');
var mac = ethUtil.sha3(Buffer.concat([derivedKey.slice(16, 32), ciphertext]));
if (mac.toString('hex') !== json.crypto.mac) {
throw new Error('Key derivation failed - possibly wrong passphrase');
}
var decipher = ethUtil.crypto.createDecipheriv(json.crypto.cipher, derivedKey.slice(0, 16), new Buffer(json.crypto.cipherparams.iv, 'hex'));
var seed = Wallet.decipherBuffer(decipher, ciphertext, 'hex');
while (seed.length < 32) {
var nullBuff = new Buffer([0x00]);
seed = Buffer.concat([nullBuff, seed]);
}
return new Wallet(seed);
};
Wallet.prototype.toV3String = function (password, opts) {
return JSON.stringify(this.toV3(password, opts));
};
Wallet.prototype.getV3Filename = function (timestamp) {
var ts = timestamp ? new Date(timestamp) : new Date();
return ['UTC--', ts.toJSON().replace(/:/g, '-'), '--', this.getAddress().toString('hex')].join('');
};
Wallet.decipherBuffer = function (decipher, data) {
return Buffer.concat([decipher.update(data), decipher.final()]);
};
Wallet.decodeCryptojsSalt = function (input) {
var ciphertext = new Buffer(input, 'base64');
if (ciphertext.slice(0, 8).toString() === 'Salted__') {
return {
salt: ciphertext.slice(8, 16),
ciphertext: ciphertext.slice(16)
};
} else {
return {
ciphertext: ciphertext
};
}
};
Wallet.evp_kdf = function (data, salt, opts) {
// A single EVP iteration, returns `D_i`, where block equlas to `D_(i-1)`
function iter(block) {
var hash = ethUtil.crypto.createHash(opts.digest || 'md5');
hash.update(block);
hash.update(data);
hash.update(salt);
block = hash.digest();
for (var i = 1; i < (opts.count || 1); i++) {
hash = ethUtil.crypto.createHash(opts.digest || 'md5');
hash.update(block);
block = hash.digest();
}
return block;
}
var keysize = opts.keysize || 16;
var ivsize = opts.ivsize || 16;
var ret = [];
var i = 0;
while (Buffer.concat(ret).length < keysize + ivsize) {
ret[i] = iter(i === 0 ? new Buffer(0) : ret[i - 1]);
i++;
}
var tmp = Buffer.concat(ret);
return {
key: tmp.slice(0, keysize),
iv: tmp.slice(keysize, keysize + ivsize)
};
};
Wallet.walletRequirePass = function (ethjson) {
var jsonArr;
try {
jsonArr = JSON.parse(ethjson);
} catch (err) {
throw globalFuncs.errorMsgs[3];
}
if (jsonArr.encseed != null) return true;else if (jsonArr.Crypto != null || jsonArr.crypto != null) return true;else if (jsonArr.hash != null && jsonArr.locked) return true;else if (jsonArr.hash != null && !jsonArr.locked) return false;else if (jsonArr.publisher == "MyEtherWallet" && !jsonArr.encrypted) return false;else throw globalFuncs.errorMsgs[2];
};
Wallet.getWalletFromPrivKeyFile = function (strjson, password) {
var jsonArr = JSON.parse(strjson);
if (jsonArr.encseed != null) return Wallet.fromEthSale(strjson, password);else if (jsonArr.Crypto != null || jsonArr.crypto != null) return Wallet.fromV3(strjson, password, true);else if (jsonArr.hash != null) return Wallet.fromMyEtherWallet(strjson, password);else if (jsonArr.publisher == "MyEtherWallet") return Wallet.fromMyEtherWalletV2(strjson);else throw globalFuncs.errorMsgs[2];
};
module.exports = Wallet;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],63:[function(require,module,exports){
'use strict';
var customNode = function customNode(srvrUrl, port, httpBasicAuthentication) {
this.SERVERURL = port ? srvrUrl + ':' + port : srvrUrl;
if (httpBasicAuthentication) {
var authorization = 'Basic ' + btoa(httpBasicAuthentication.user + ":" + httpBasicAuthentication.password);
this.config.headers['Authorization'] = authorization;
}
};
customNode.prototype.config = {
headers: {
'Content-Type': 'application/json; charset=UTF-8'
}
};
customNode.prototype.getCurrentBlock = function (callback) {
this.post({
method: 'eth_blockNumber'
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: new BigNumber(data.result).toString() });
});
};
customNode.prototype.getChainId = function (callback) {
this.post({
method: 'net_version'
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: parseInt(data.result) });
});
};
customNode.prototype.getBalance = function (addr, callback) {
this.post({
method: 'eth_getBalance',
params: [addr, 'pending']
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: { address: addr, balance: new BigNumber(data.result).toString() } });
});
};
customNode.prototype.getTransaction = function (txHash, callback) {
this.post({
method: 'eth_getTransactionByHash',
params: [txHash]
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
customNode.prototype.getTransactionData = function (addr, callback) {
var response = { error: false, msg: '', data: { address: addr, balance: '', gasprice: '', nonce: '' } };
var parentObj = this;
var reqObj = [{ "id": parentObj.getRandomID(), "jsonrpc": "2.0", "method": "eth_getBalance", "params": [addr, 'pending'] }, { "id": parentObj.getRandomID(), "jsonrpc": "2.0", "method": "eth_gasPrice", "params": [] }, { "id": parentObj.getRandomID(), "jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": [addr, 'pending'] }];
this.rawPost(reqObj, function (data) {
for (var i in data) {
if (data[i].error) {
callback({ error: true, msg: data[i].error.message, data: '' });
return;
}
}
response.data.balance = new BigNumber(data[0].result).toString();
response.data.gasprice = data[1].result;
response.data.nonce = data[2].result;
callback(response);
});
};
customNode.prototype.sendRawTx = function (rawTx, callback) {
this.post({
method: 'eth_sendRawTransaction',
params: [rawTx]
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
customNode.prototype.getEstimatedGas = function (txobj, callback) {
txobj.value = ethFuncs.trimHexZero(txobj.value);
this.post({
method: 'eth_estimateGas',
params: [{ from: txobj.from, to: txobj.to, value: txobj.value, data: txobj.data }]
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
var ethCallArr = {
calls: [],
callbacks: [],
timer: null
};
customNode.prototype.getEthCall = function (txobj, callback) {
var parentObj = this;
if (!ethCallArr.calls.length) {
ethCallArr.timer = setTimeout(function () {
parentObj.rawPost(ethCallArr.calls, function (data) {
ethCallArr.calls = [];
var _callbacks = ethCallArr.callbacks.slice();
ethCallArr.callbacks = [];
for (var i in data) {
if (data[i].error) _callbacks[i]({ error: true, msg: data[i].error.message, data: '' });else _callbacks[i]({ error: false, msg: '', data: data[i].result });
}
});
}, 500);
}
ethCallArr.calls.push({ "id": parentObj.getRandomID(), "jsonrpc": "2.0", "method": "eth_call", "params": [{ to: txobj.to, data: txobj.data }, 'pending'] });
ethCallArr.callbacks.push(callback);
};
customNode.prototype.getTraceCall = function (txobj, callback) {
this.post({
method: 'trace_call',
params: [txobj, ["stateDiff", "trace", "vmTrace"]]
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
customNode.prototype.rawPost = function (data, callback) {
ajaxReq.http.post(this.SERVERURL, JSON.stringify(data), this.config).then(function (data) {
callback(data.data);
}, function (data) {
callback({ error: true, msg: "connection error", data: "" });
});
};
customNode.prototype.getRandomID = function () {
return globalFuncs.getRandomBytes(16).toString('hex');
};
customNode.prototype.post = function (data, callback) {
data.id = this.getRandomID();
data.jsonrpc = "2.0";
this.rawPost(data, callback);
};
module.exports = customNode;
},{}],64:[function(require,module,exports){
'use strict';
var http;
var ethPrice = function ethPrice() {};
var getValue = function getValue(arr, pair) {
for (var i in arr) {
if (arr[i].pair == pair) return arr[i].rate;
}
};
var BITYRATEAPI = "https://bity.com/api/v1/rate2/";
var CCRATEAPI = "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD,EUR,GBP,BTC,CHF,REP";
ethPrice.getETHvalue = function (callback) {
ajaxReq.http.get(CCRATEAPI).then(function (data) {
data = data['data'];
var priceObj = {
usd: parseFloat(data['USD']).toFixed(6),
eur: parseFloat(data['EUR']).toFixed(6),
btc: parseFloat(data['BTC']).toFixed(6),
chf: parseFloat(data['CHF']).toFixed(6),
rep: parseFloat(data['REP']).toFixed(6),
gbp: parseFloat(data['GBP']).toFixed(6)
};
callback(priceObj);
});
};
ethPrice.getRates = function (callback) {
ajaxReq.http.get(BITYRATEAPI).then(function (data) {
callback(data['data']['objects']);
});
};
module.exports = ethPrice;
},{}],65:[function(require,module,exports){
'use strict';
var etherscan = function etherscan() {};
etherscan.SERVERURL = "https://api.etherscan.io/api";
etherscan.pendingPosts = [];
etherscan.config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
};
etherscan.getCurrentBlock = function (callback) {
this.post({
module: 'proxy',
action: 'eth_blockNumber'
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: new BigNumber(data.result).toString() });
});
};
etherscan.getBalance = function (addr, callback) {
this.post({
module: 'account',
action: 'balance',
address: addr,
tag: 'latest'
}, function (data) {
if (data.message != 'OK') callback({ error: true, msg: data.message, data: '' });else callback({ error: false, msg: '', data: { address: addr, balance: data.result } });
});
};
etherscan.getTransaction = function (txHash, callback) {
this.post({
module: 'proxy',
action: 'eth_getTransactionByHash',
txhash: txHash
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
etherscan.getTransactionData = function (addr, callback) {
var response = { error: false, msg: '', data: { address: addr, balance: '', gasprice: '', nonce: '' } };
var parentObj = this;
parentObj.getBalance(addr, function (data) {
if (data.error) {
callback({ error: true, msg: data.msg, data: '' });
return;
}
response.data.balance = data.data.balance;
parentObj.post({
module: 'proxy',
action: 'eth_gasPrice'
}, function (data) {
if (data.error) {
callback({ error: true, msg: data.error.message, data: '' });
return;
}
response.data.gasprice = data.result;
parentObj.post({
module: 'proxy',
address: addr,
action: 'eth_getTransactionCount',
tag: 'latest'
}, function (data) {
if (data.error) {
callback({ error: true, msg: data.error.message, data: '' });
return;
}
response.data.nonce = data.result;
callback(response);
});
});
});
};
etherscan.sendRawTx = function (rawTx, callback) {
this.post({
module: 'proxy',
action: 'eth_sendRawTransaction',
hex: rawTx
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
etherscan.getEstimatedGas = function (txobj, callback) {
this.post({
module: 'proxy',
action: 'eth_estimateGas',
to: txobj.to,
value: txobj.value,
data: txobj.data,
from: txobj.from
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
etherscan.getEthCall = function (txobj, callback) {
this.post({
module: 'proxy',
action: 'eth_call',
to: txobj.to,
data: txobj.data
}, function (data) {
if (data.error) callback({ error: true, msg: data.error.message, data: '' });else callback({ error: false, msg: '', data: data.result });
});
};
etherscan.queuePost = function () {
var data = this.pendingPosts[0].data;
var callback = this.pendingPosts[0].callback;
var parentObj = this;
data.apikey = 'DSH5B24BQYKD1AD8KUCDY3SAQSS6ZAU175';
ajaxReq.http.post(this.SERVERURL, ajaxReq.postSerializer(data), this.config).then(function (data) {
callback(data.data);
parentObj.pendingPosts.splice(0, 1);
if (parentObj.pendingPosts.length > 0) parentObj.queuePost();
}, function (data) {
callback({ error: true, msg: "connection error", data: "" });
});
};
etherscan.post = function (data, _callback) {
this.pendingPosts.push({
data: data,
callback: function callback(_data) {
_callback(_data);
}
});
if (this.pendingPosts.length == 1) this.queuePost();
};
module.exports = etherscan;
},{}],66:[function(require,module,exports){
'use strict';
var _ethscan = require('./etherscan');
var kovan = {};
for (var attr in _ethscan) {
kovan[attr] = _ethscan[attr];
}
kovan.SERVERURL = 'https://kovan.etherscan.io/api';
module.exports = kovan;
},{"./etherscan":65}],67:[function(require,module,exports){
'use strict';
var _ethscan = require('./etherscan');
var rinkeby = {};
for (var attr in _ethscan) {
rinkeby[attr] = _ethscan[attr];
}
rinkeby.SERVERURL = 'https://rinkeby.etherscan.io/api';
module.exports = rinkeby;
},{"./etherscan":65}],68:[function(require,module,exports){
'use strict';
var customNode = require('./customNode');
var infura = function infura(srvrUrl, port, httpBasicAuthentication) {
var _temp = new customNode(srvrUrl, port, httpBasicAuthentication);
for (var attr in _temp) {
this[attr] = _temp[attr];
}
this.getRandomID = function () {
return new BigNumber('0x' + globalFuncs.getRandomBytes(5).toString('hex')).toNumber();
};
};
module.exports = infura;
},{"./customNode":63}],69:[function(require,module,exports){
'use strict';
var customNode = require('./customNode');
var metamask = function metamask() {
var _temp = new customNode('');
for (var attr in _temp) {
this[attr] = _temp[attr];
}
this.rawPost = function (req, callback) {
var ids = [];
forEachPayload(req, function (payload) {
ids.push(payload.id);
});
// console.log(`${ids}:`, req)
// metamask requires params array
forEachPayload(req, function (payload) {
payload.params = payload.params || [];
});
window.web3.currentProvider.sendAsync(req, function (err, res) {
// console.log(`${ids} =>`, err || res)
// move error onto json rpc response
if (err) {
res = {
id: req.id,
error: err
};
}
callback(res);
});
};
};
module.exports = metamask;
function forEachPayload(maybeArray, fn) {
var array = Array.isArray(maybeArray) ? maybeArray : [maybeArray];
array.forEach(fn);
}
},{"./customNode":63}],70:[function(require,module,exports){
'use strict';
var nodes = function nodes() {};
nodes.customNode = require('./nodeHelpers/customNode');
nodes.infuraNode = require('./nodeHelpers/infura');
nodes.metamaskNode = require('./nodeHelpers/metamask');
nodes.nodeTypes = {
ETH: "ETH",
ETC: "ETC",
MUS: "MUSIC",
Ropsten: "ROPSTEN ETH",
Kovan: "KOVAN ETH",
Rinkeby: "RINKEBY ETH",
RSK: "RSK",
EXP: "EXP",
UBQ: "UBQ",
POA: "POA",
TOMO: "TOMO",
ELLA: "ELLA",
Custom: "CUSTOM ETH"
};
nodes.ensNodeTypes = [nodes.nodeTypes.ETH, nodes.nodeTypes.Ropsten];
nodes.domainsaleNodeTypes = [nodes.nodeTypes.ETH, nodes.nodeTypes.Ropsten];
nodes.customNodeObj = {
'name': 'CUS',
'blockExplorerTX': '',
'blockExplorerAddr': '',
'type': nodes.nodeTypes.Custom,
'eip155': false,
'chainId': '',
'tokenList': [],
'abiList': [],
'service': 'Custom',
'lib': null
};
nodes.nodeList = {
'eth_mew': {
'name': 'ETH',
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.ETH,
'eip155': true,
'chainId': 1,
'tokenList': require('./tokens/ethTokens.json'),
'abiList': require('./abiDefinitions/ethAbi.json'),
'service': 'MyEtherWallet',
'lib': new nodes.customNode('https://api.myetherapi.com/eth', '')
},
'eth_ethscan': {
'name': 'ETH',
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.ETH,
'eip155': true,
'chainId': 1,
'tokenList': require('./tokens/ethTokens.json'),
'abiList': require('./abiDefinitions/ethAbi.json'),
'service': 'Etherscan.io',
'lib': require('./nodeHelpers/etherscan')
},
'eth_infura': {
'name': 'ETH',
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.ETH,
'eip155': true,
'chainId': 1,
'tokenList': require('./tokens/ethTokens.json'),
'abiList': require('./abiDefinitions/ethAbi.json'),
'service': 'infura.io',
'lib': new nodes.infuraNode('https://mainnet.infura.io/mew')
},
'eth_giveth': {
'name': 'ETH',
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.ETH,
'eip155': true,
'chainId': 1,
'tokenList': require('./tokens/ethTokens.json'),
'abiList': require('./abiDefinitions/ethAbi.json'),
'service': 'Giveth.io',
'lib': new nodes.customNode('https://mew.giveth.io', '')
},
'etc_epool': {
'name': 'ETC',
'blockExplorerTX': 'https://gastracker.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://gastracker.io/addr/[[address]]',
'type': nodes.nodeTypes.ETC,
'eip155': true,
'chainId': 61,
'tokenList': require('./tokens/etcTokens.json'),
'abiList': require('./abiDefinitions/etcAbi.json'),
'service': 'Epool.io',
'lib': new nodes.customNode('https://mewapi.epool.io', '')
},
'rop_mew': {
'name': 'Ropsten',
'type': nodes.nodeTypes.Ropsten,
'blockExplorerTX': 'https://ropsten.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://ropsten.etherscan.io/address/[[address]]',
'eip155': true,
'chainId': 3,
'tokenList': require('./tokens/ropstenTokens.json'),
'abiList': require('./abiDefinitions/ropstenAbi.json'),
'service': 'MyEtherWallet',
'lib': new nodes.customNode('https://api.myetherapi.com/rop', '')
},
'rop_infura': {
'name': 'Ropsten',
'blockExplorerTX': 'https://ropsten.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://ropsten.etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.Ropsten,
'eip155': true,
'chainId': 3,
'tokenList': require('./tokens/ropstenTokens.json'),
'abiList': require('./abiDefinitions/ropstenAbi.json'),
'service': 'infura.io',
'lib': new nodes.infuraNode('https://ropsten.infura.io/mew')
},
'kov_ethscan': {
'name': 'Kovan',
'type': nodes.nodeTypes.Kovan,
'blockExplorerTX': 'https://kovan.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://kovan.etherscan.io/address/[[address]]',
'eip155': true,
'chainId': 42,
'tokenList': require('./tokens/kovanTokens.json'),
'abiList': require('./abiDefinitions/kovanAbi.json'),
'service': 'Etherscan.io',
'lib': require('./nodeHelpers/etherscanKov')
},
'kov_infura': {
'name': 'Kovan',
'type': nodes.nodeTypes.Kovan,
'blockExplorerTX': 'https://kovan.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://kovan.etherscan.io/address/[[address]]',
'eip155': true,
'chainId': 42,
'tokenList': require('./tokens/kovanTokens.json'),
'abiList': require('./abiDefinitions/kovanAbi.json'),
'service': 'infura.io',
'lib': new nodes.infuraNode('https://kovan.infura.io/mew')
},
'rin_ethscan': {
'name': 'Rinkeby',
'type': nodes.nodeTypes.Rinkeby,
'blockExplorerTX': 'https://rinkeby.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://rinkeby.etherscan.io/address/[[address]]',
'eip155': true,
'chainId': 4,
'tokenList': require('./tokens/rinkebyTokens.json'),
'abiList': require('./abiDefinitions/rinkebyAbi.json'),
'service': 'Etherscan.io',
'lib': require('./nodeHelpers/etherscanRin')
},
'rin_infura': {
'name': 'Rinkeby',
'blockExplorerTX': 'https://rinkeby.etherscan.io/tx/[[txHash]]',
'blockExplorerAddr': 'https://rinkeby.etherscan.io/address/[[address]]',
'type': nodes.nodeTypes.Rinkeby,
'eip155': true,
'chainId': 4,
'tokenList': require('./tokens/rinkebyTokens.json'),
'abiList': require('./abiDefinitions/rinkebyAbi.json'),
'service': 'infura.io',
'lib': new nodes.infuraNode('https://rinkeby.infura.io/mew')
},
'exp': {
'name': 'EXP',
'blockExplorerTX': 'http://www.gander.tech/tx/[[txHash]]',
'blockExplorerAddr': 'http://www.gander.tech/address/[[address]]',
'type': nodes.nodeTypes.EXP,
'eip155': true,
'chainId': 2,
'tokenList': require('./tokens/expTokens.json'),
'abiList': require('./abiDefinitions/expAbi.json'),
'estimateGas': true,
'service': 'Expanse.tech',
'lib': new nodes.customNode('https://node.expanse.tech/', '')
},
'ubq': {
'name': 'UBQ',
'blockExplorerTX': 'https://ubiqscan.io/en/tx/[[txHash]]',
'blockExplorerAddr': 'https://ubiqscan.io/en/address/[[address]]',
'type': nodes.nodeTypes.UBQ,
'eip155': true,
'chainId': 8,
'tokenList': require('./tokens/ubqTokens.json'),
'abiList': require('./abiDefinitions/ubqAbi.json'),
'estimateGas': true,
'service': 'ubiqscan.io',
'lib': new nodes.customNode('https://pyrus2.ubiqscan.io', '')
},
'poa': {
'name': 'POA',
'blockExplorerTX': 'https://core-explorer.poa.network/tx/[[txHash]]',
'blockExplorerAddr': 'https://core-explorer.poa.network/account/[[address]]',
'type': nodes.nodeTypes.POA,
'eip155': true,
'chainId': 99,
'tokenList': require('./tokens/poaTokens.json'),
'abiList': require('./abiDefinitions/poaAbi.json'),
'estimateGas': true,
'service': 'core.poa.network',
'lib': new nodes.customNode('https://core.poa.network', '')
},
'tomo': {
'name': 'TOMO',
'blockExplorerTX': 'https://explorer.tomocoin.io/#/tx/[[txHash]]',
'blockExplorerAddr': 'https://explorer.tomocoin.io/#/address/[[address]]',
'type': nodes.nodeTypes.TOMO,
'eip155': true,
'chainId': 40686,
'tokenList': require('./tokens/tomoTokens.json'),
'abiList': require('./abiDefinitions/tomoAbi.json'),
'estimateGas': true,
'service': 'core.tomocoin.io',
'lib': new nodes.customNode('https://core.tomocoin.io', '')
},
'ella': {
'name': 'ELLA',
'blockExplorerTX': 'https://explorer.ellaism.org/tx/[[txHash]]',
'blockExplorerAddr': 'https://explorer.ellaism.org/addr/[[address]]',
'type': nodes.nodeTypes.ELLA,
'eip155': true,
'chainId': 64,
'tokenList': require('./tokens/ellaTokens.json'),
'abiList': require('./abiDefinitions/ellaAbi.json'),
'estimateGas': true,
'service': 'ellaism.org',
'lib': new nodes.customNode('https://jsonrpc.ellaism.org', '')
}
};
nodes.ethPrice = require('./nodeHelpers/ethPrice');
module.exports = nodes;
},{"./abiDefinitions/ellaAbi.json":1,"./abiDefinitions/etcAbi.json":2,"./abiDefinitions/ethAbi.json":3,"./abiDefinitions/expAbi.json":4,"./abiDefinitions/kovanAbi.json":5,"./abiDefinitions/poaAbi.json":6,"./abiDefinitions/rinkebyAbi.json":7,"./abiDefinitions/ropstenAbi.json":8,"./abiDefinitions/tomoAbi.json":9,"./abiDefinitions/ubqAbi.json":10,"./nodeHelpers/customNode":63,"./nodeHelpers/ethPrice":64,"./nodeHelpers/etherscan":65,"./nodeHelpers/etherscanKov":66,"./nodeHelpers/etherscanRin":67,"./nodeHelpers/infura":68,"./nodeHelpers/metamask":69,"./tokens/ellaTokens.json":96,"./tokens/etcTokens.json":97,"./tokens/ethTokens.json":98,"./tokens/expTokens.json":99,"./tokens/kovanTokens.json":100,"./tokens/poaTokens.json":101,"./tokens/rinkebyTokens.json":102,"./tokens/ropstenTokens.json":103,"./tokens/tomoTokens.json":104,"./tokens/ubqTokens.json":105}],71:[function(require,module,exports){
'use strict';
var globalService = function globalService($http, $httpParamSerializerJQLike) {
globalFuncs.checkAndRedirectHTTPS();
ajaxReq.http = $http;
ajaxReq.postSerializer = $httpParamSerializerJQLike;
ajaxReq.getETHvalue = nodes.ethPrice.getETHvalue;
ajaxReq.getRates = nodes.ethPrice.getRates;
var tabs = {
generateWallet: {
id: 0,
name: "NAV_GenerateWallet_alt",
url: "generate-wallet",
mew: true,
cx: false
},
myWallet: {
id: 1,
name: "NAV_MyWallets",
url: "my-wallet",
mew: false,
cx: true
},
addWallet: {
id: 2,
name: "NAV_AddWallet",
url: "add-wallet",
mew: false,
cx: true
},
sendTransaction: {
id: 3,
name: "NAV_SendEther",
url: "send-transaction",
mew: true,
cx: true
},
swap: {
id: 4,
name: "NAV_Swap",
url: "swap",
mew: true,
cx: true
},
offlineTransaction: {
id: 5,
name: "NAV_Offline",
url: "offline-transaction",
mew: true,
cx: false
},
contracts: {
id: 6,
name: "NAV_Contracts",
url: "contracts",
mew: true,
cx: true
},
ens: {
id: 7,
name: "NAV_ENS",
url: "ens",
mew: true,
cx: true
},
domainsale: {
id: 8,
name: "NAV_DomainSale",
url: "domainsale",
mew: true,
cx: true
},
txStatus: {
id: 9,
name: "NAV_CheckTxStatus",
url: "check-tx-status",
mew: true,
cx: true
},
viewWalletInfo: {
id: 10,
name: "NAV_ViewWallet",
url: "view-wallet-info",
mew: true,
cx: false
},
signMsg: {
id: 11,
name: "NAV_SignMsg",
url: "sign-message",
mew: false,
cx: false
},
bulkGenerate: {
id: 12,
name: "NAV_BulkGenerate",
url: "bulk-generate",
mew: false,
cx: false
}
};
var currentTab = 0;
if (typeof chrome != 'undefined') currentTab = chrome.windows === undefined ? 0 : 3;
return {
tabs: tabs,
currentTab: currentTab
};
var tokensLoaded = false;
};
module.exports = globalService;
},{}],72:[function(require,module,exports){
'use strict';
var walletService = function walletService() {
return {
wallet: null,
password: ''
};
};
module.exports = walletService;
},{}],73:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeAddress is a prootype that represents address type
* It matches:
* address
* address[]
* address[4]
* address[][]
* address[3][]
* address[][6][], ...
*/
var SolidityTypeAddress = function SolidityTypeAddress() {
this._inputFormatter = f.formatInputInt;
this._outputFormatter = f.formatOutputAddress;
};
SolidityTypeAddress.prototype = new SolidityType({});
SolidityTypeAddress.prototype.constructor = SolidityTypeAddress;
SolidityTypeAddress.prototype.isType = function (name) {
return !!name.match(/address(\[([0-9]*)\])?/);
};
module.exports = SolidityTypeAddress;
},{"./formatters":79,"./type":84}],74:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeBool is a prootype that represents bool type
* It matches:
* bool
* bool[]
* bool[4]
* bool[][]
* bool[3][]
* bool[][6][], ...
*/
var SolidityTypeBool = function SolidityTypeBool() {
this._inputFormatter = f.formatInputBool;
this._outputFormatter = f.formatOutputBool;
};
SolidityTypeBool.prototype = new SolidityType({});
SolidityTypeBool.prototype.constructor = SolidityTypeBool;
SolidityTypeBool.prototype.isType = function (name) {
return !!name.match(/^bool(\[([0-9]*)\])*$/);
};
module.exports = SolidityTypeBool;
},{"./formatters":79,"./type":84}],75:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeBytes is a prototype that represents the bytes type.
* It matches:
* bytes
* bytes[]
* bytes[4]
* bytes[][]
* bytes[3][]
* bytes[][6][], ...
* bytes32
* bytes8[4]
* bytes[3][]
*/
var SolidityTypeBytes = function SolidityTypeBytes() {
this._inputFormatter = f.formatInputBytes;
this._outputFormatter = f.formatOutputBytes;
};
SolidityTypeBytes.prototype = new SolidityType({});
SolidityTypeBytes.prototype.constructor = SolidityTypeBytes;
SolidityTypeBytes.prototype.isType = function (name) {
return !!name.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/);
};
module.exports = SolidityTypeBytes;
},{"./formatters":79,"./type":84}],76:[function(require,module,exports){
'use strict';
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file coder.js
* @author Marek Kotewicz <marek@ethdev.com>
* @date 2015
*/
var f = require('./formatters');
var SolidityTypeAddress = require('./address');
var SolidityTypeBool = require('./bool');
var SolidityTypeInt = require('./int');
var SolidityTypeUInt = require('./uint');
var SolidityTypeDynamicBytes = require('./dynamicbytes');
var SolidityTypeString = require('./string');
var SolidityTypeReal = require('./real');
var SolidityTypeUReal = require('./ureal');
var SolidityTypeBytes = require('./bytes');
var utils = require('./utils');
var isDynamic = function isDynamic(solidityType, type) {
return solidityType.isDynamicType(type) || solidityType.isDynamicArray(type);
};
/**
* SolidityCoder prototype should be used to encode/decode solidity params of any type
*/
var SolidityCoder = function SolidityCoder(types) {
this._types = types;
};
/**
* This method should be used to transform type to SolidityType
*
* @method _requireType
* @param {String} type
* @returns {SolidityType}
* @throws {Error} throws if no matching type is found
*/
SolidityCoder.prototype._requireType = function (type) {
var solidityType = this._types.filter(function (t) {
return t.isType(type);
})[0];
if (!solidityType) {
throw Error('invalid solidity type!: ' + type);
}
return solidityType;
};
/**
* Should be used to encode plain param
*
* @method encodeParam
* @param {String} type
* @param {Object} plain param
* @return {String} encoded plain param
*/
SolidityCoder.prototype.encodeParam = function (type, param) {
return this.encodeParams([type], [param]);
};
/**
* Should be used to encode list of params
*
* @method encodeParams
* @param {Array} types
* @param {Array} params
* @return {String} encoded list of params
*/
SolidityCoder.prototype.encodeParams = function (types, params) {
var solidityTypes = this.getSolidityTypes(types);
var encodeds = solidityTypes.map(function (solidityType, index) {
return solidityType.encode(params[index], types[index]);
});
var dynamicOffset = solidityTypes.reduce(function (acc, solidityType, index) {
var staticPartLength = solidityType.staticPartLength(types[index]);
var roundedStaticPartLength = Math.floor((staticPartLength + 31) / 32) * 32;
return acc + (isDynamic(solidityTypes[index], types[index]) ? 32 : roundedStaticPartLength);
}, 0);
var result = this.encodeMultiWithOffset(types, solidityTypes, encodeds, dynamicOffset);
return result;
};
SolidityCoder.prototype.encodeMultiWithOffset = function (types, solidityTypes, encodeds, dynamicOffset) {
var result = "";
var self = this;
types.forEach(function (type, i) {
if (isDynamic(solidityTypes[i], types[i])) {
result += f.formatInputInt(dynamicOffset).encode();
var e = self.encodeWithOffset(types[i], solidityTypes[i], encodeds[i], dynamicOffset);
dynamicOffset += e.length / 2;
} else {
// don't add length to dynamicOffset. it's already counted
result += self.encodeWithOffset(types[i], solidityTypes[i], encodeds[i], dynamicOffset);
}
// TODO: figure out nested arrays
});
types.forEach(function (type, i) {
if (isDynamic(solidityTypes[i], types[i])) {
var e = self.encodeWithOffset(types[i], solidityTypes[i], encodeds[i], dynamicOffset);
dynamicOffset += e.length / 2;
result += e;
}
});
return result;
};
// TODO: refactor whole encoding!
SolidityCoder.prototype.encodeWithOffset = function (type, solidityType, encoded, offset) {
var self = this;
if (solidityType.isDynamicArray(type)) {
return function () {
// offset was already set
var nestedName = solidityType.nestedName(type);
var nestedStaticPartLength = solidityType.staticPartLength(nestedName);
var result = encoded[0];
(function () {
var previousLength = 2; // in int
if (solidityType.isDynamicArray(nestedName)) {
for (var i = 1; i < encoded.length; i++) {
previousLength += +encoded[i - 1][0] || 0;
result += f.formatInputInt(offset + i * nestedStaticPartLength + previousLength * 32).encode();
}
}
})();
// first element is length, skip it
(function () {
for (var i = 0; i < encoded.length - 1; i++) {
var additionalOffset = result / 2;
result += self.encodeWithOffset(nestedName, solidityType, encoded[i + 1], offset + additionalOffset);
}
})();
return result;
}();
} else if (solidityType.isStaticArray(type)) {
return function () {
var nestedName = solidityType.nestedName(type);
var nestedStaticPartLength = solidityType.staticPartLength(nestedName);
var result = "";
if (solidityType.isDynamicArray(nestedName)) {
(function () {
var previousLength = 0; // in int
for (var i = 0; i < encoded.length; i++) {
// calculate length of previous item
previousLength += +(encoded[i - 1] || [])[0] || 0;
result += f.formatInputInt(offset + i * nestedStaticPartLength + previousLength * 32).encode();
}
})();
}
(function () {
for (var i = 0; i < encoded.length; i++) {
var additionalOffset = result / 2;
result += self.encodeWithOffset(nestedName, solidityType, encoded[i], offset + additionalOffset);
}
})();
return result;
}();
}
return encoded;
};
/**
* Should be used to decode bytes to plain param
*
* @method decodeParam
* @param {String} type
* @param {String} bytes
* @return {Object} plain param
*/
SolidityCoder.prototype.decodeParam = function (type, bytes) {
return this.decodeParams([type], bytes)[0];
};
/**
* Should be used to decode list of params
*
* @method decodeParam
* @param {Array} types
* @param {String} bytes
* @return {Array} array of plain params
*/
SolidityCoder.prototype.decodeParams = function (types, bytes) {
var solidityTypes = this.getSolidityTypes(types);
var offsets = this.getOffsets(types, solidityTypes);
return solidityTypes.map(function (solidityType, index) {
return solidityType.decode(bytes, offsets[index], types[index], index);
});
};
SolidityCoder.prototype.getOffsets = function (types, solidityTypes) {
var lengths = solidityTypes.map(function (solidityType, index) {
return solidityType.staticPartLength(types[index]);
});
for (var i = 1; i < lengths.length; i++) {
// sum with length of previous element
lengths[i] += lengths[i - 1];
}
return lengths.map(function (length, index) {
// remove the current length, so the length is sum of previous elements
var staticPartLength = solidityTypes[index].staticPartLength(types[index]);
return length - staticPartLength;
});
};
SolidityCoder.prototype.getSolidityTypes = function (types) {
var self = this;
return types.map(function (type) {
return self._requireType(type);
});
};
var coder = new SolidityCoder([new SolidityTypeAddress(), new SolidityTypeBool(), new SolidityTypeInt(), new SolidityTypeUInt(), new SolidityTypeDynamicBytes(), new SolidityTypeBytes(), new SolidityTypeString(), new SolidityTypeReal(), new SolidityTypeUReal()]);
module.exports = coder;
},{"./address":73,"./bool":74,"./bytes":75,"./dynamicbytes":78,"./formatters":79,"./int":80,"./real":82,"./string":83,"./uint":85,"./ureal":86,"./utils":87}],77:[function(require,module,exports){
'use strict';
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file config.js
* @authors:
* Marek Kotewicz <marek@ethdev.com>
* @date 2015
*/
/**
* Utils
*
* @module utils
*/
/**
* Utility functions
*
* @class [utils] config
* @constructor
*/
/// required to define ETH_BIGNUMBER_ROUNDING_MODE
var BigNumber = require('bignumber.js');
var ETH_UNITS = ['wei', 'kwei', 'Mwei', 'Gwei', 'szabo', 'finney', 'femtoether', 'picoether', 'nanoether', 'microether', 'milliether', 'nano', 'micro', 'milli', 'ether', 'grand', 'Mether', 'Gether', 'Tether', 'Pether', 'Eether', 'Zether', 'Yether', 'Nether', 'Dether', 'Vether', 'Uether'];
module.exports = {
ETH_PADDING: 32,
ETH_SIGNATURE_LENGTH: 4,
ETH_UNITS: ETH_UNITS,
ETH_BIGNUMBER_ROUNDING_MODE: { ROUNDING_MODE: BigNumber.ROUND_DOWN },
ETH_POLLING_TIMEOUT: 1000 / 2,
defaultBlock: 'latest',
defaultAccount: undefined
};
},{"bignumber.js":158}],78:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
var SolidityTypeDynamicBytes = function SolidityTypeDynamicBytes() {
this._inputFormatter = f.formatInputDynamicBytes;
this._outputFormatter = f.formatOutputDynamicBytes;
};
SolidityTypeDynamicBytes.prototype = new SolidityType({});
SolidityTypeDynamicBytes.prototype.constructor = SolidityTypeDynamicBytes;
SolidityTypeDynamicBytes.prototype.isType = function (name) {
return !!name.match(/^bytes(\[([0-9]*)\])*$/);
};
SolidityTypeDynamicBytes.prototype.isDynamicType = function () {
return true;
};
module.exports = SolidityTypeDynamicBytes;
},{"./formatters":79,"./type":84}],79:[function(require,module,exports){
'use strict';
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file formatters.js
* @author Marek Kotewicz <marek@ethdev.com>
* @date 2015
*/
var BigNumber = require('bignumber.js');
var utils = require('./utils');
var c = require('./config');
var SolidityParam = require('./param');
/**
* Formats input value to byte representation of int
* If value is negative, return it's two's complement
* If the value is floating point, round it down
*
* @method formatInputInt
* @param {String|Number|BigNumber} value that needs to be formatted
* @returns {SolidityParam}
*/
var formatInputInt = function formatInputInt(value) {
BigNumber.config(c.ETH_BIGNUMBER_ROUNDING_MODE);
var result = utils.padLeft(utils.toTwosComplement(value).toString(16), 64);
return new SolidityParam(result);
};
/**
* Formats input bytes
*
* @method formatInputBytes
* @param {String}
* @returns {SolidityParam}
*/
var formatInputBytes = function formatInputBytes(value) {
var result = utils.toHex(value).substr(2);
var l = Math.floor((result.length + 63) / 64);
result = utils.padRight(result, l * 64);
return new SolidityParam(result);
};
/**
* Formats input bytes
*
* @method formatDynamicInputBytes
* @param {String}
* @returns {SolidityParam}
*/
var formatInputDynamicBytes = function formatInputDynamicBytes(value) {
var result = utils.toHex(value).substr(2);
var length = result.length / 2;
var l = Math.floor((result.length + 63) / 64);
result = utils.padRight(result, l * 64);
return new SolidityParam(formatInputInt(length).value + result);
};
/**
* Formats input value to byte representation of string
*
* @method formatInputString
* @param {String}
* @returns {SolidityParam}
*/
var formatInputString = function formatInputString(value) {
var result = utils.fromUtf8(value).substr(2);
var length = result.length / 2;
var l = Math.floor((result.length + 63) / 64);
result = utils.padRight(result, l * 64);
return new SolidityParam(formatInputInt(length).value + result);
};
/**
* Formats input value to byte representation of bool
*
* @method formatInputBool
* @param {Boolean}
* @returns {SolidityParam}
*/
var formatInputBool = function formatInputBool(value) {
var result = '000000000000000000000000000000000000000000000000000000000000000' + (value ? '1' : '0');
return new SolidityParam(result);
};
/**
* Formats input value to byte representation of real
* Values are multiplied by 2^m and encoded as integers
*
* @method formatInputReal
* @param {String|Number|BigNumber}
* @returns {SolidityParam}
*/
var formatInputReal = function formatInputReal(value) {
return formatInputInt(new BigNumber(value).times(new BigNumber(2).pow(128)));
};
/**
* Check if input value is negative
*
* @method signedIsNegative
* @param {String} value is hex format
* @returns {Boolean} true if it is negative, otherwise false
*/
var signedIsNegative = function signedIsNegative(value) {
return new BigNumber(value.substr(0, 1), 16).toString(2).substr(0, 1) === '1';
};
/**
* Formats right-aligned output bytes to int
*
* @method formatOutputInt
* @param {SolidityParam} param
* @returns {BigNumber} right-aligned output bytes formatted to big number
*/
var formatOutputInt = function formatOutputInt(param) {
var value = param.staticPart() || "0";
// check if it's negative number
// it it is, return two's complement
if (signedIsNegative(value)) {
return new BigNumber(value, 16).minus(new BigNumber('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16)).minus(1);
}
return new BigNumber(value, 16);
};
/**
* Formats right-aligned output bytes to uint
*
* @method formatOutputUInt
* @param {SolidityParam}
* @returns {BigNumeber} right-aligned output bytes formatted to uint
*/
var formatOutputUInt = function formatOutputUInt(param) {
var value = param.staticPart() || "0";
return new BigNumber(value, 16);
};
/**
* Formats right-aligned output bytes to real
*
* @method formatOutputReal
* @param {SolidityParam}
* @returns {BigNumber} input bytes formatted to real
*/
var formatOutputReal = function formatOutputReal(param) {
return formatOutputInt(param).dividedBy(new BigNumber(2).pow(128));
};
/**
* Formats right-aligned output bytes to ureal
*
* @method formatOutputUReal
* @param {SolidityParam}
* @returns {BigNumber} input bytes formatted to ureal
*/
var formatOutputUReal = function formatOutputUReal(param) {
return formatOutputUInt(param).dividedBy(new BigNumber(2).pow(128));
};
/**
* Should be used to format output bool
*
* @method formatOutputBool
* @param {SolidityParam}
* @returns {Boolean} right-aligned input bytes formatted to bool
*/
var formatOutputBool = function formatOutputBool(param) {
return param.staticPart() === '0000000000000000000000000000000000000000000000000000000000000001' ? true : false;
};
/**
* Should be used to format output bytes
*
* @method formatOutputBytes
* @param {SolidityParam} left-aligned hex representation of string
* @param {String} name type name
* @returns {String} hex string
*/
var formatOutputBytes = function formatOutputBytes(param, name) {
var matches = name.match(/^bytes([0-9]*)/);
var size = parseInt(matches[1]);
return '0x' + param.staticPart().slice(0, 2 * size);
};
/**
* Should be used to format output bytes
*
* @method formatOutputDynamicBytes
* @param {SolidityParam} left-aligned hex representation of string
* @returns {String} hex string
*/
var formatOutputDynamicBytes = function formatOutputDynamicBytes(param) {
var length = new BigNumber(param.dynamicPart().slice(0, 64), 16).toNumber() * 2;
return '0x' + param.dynamicPart().substr(64, length);
};
/**
* Should be used to format output string
*
* @method formatOutputString
* @param {SolidityParam} left-aligned hex representation of string
* @returns {String} ascii string
*/
var formatOutputString = function formatOutputString(param) {
var length = new BigNumber(param.dynamicPart().slice(0, 64), 16).toNumber() * 2;
return utils.toUtf8(param.dynamicPart().substr(64, length));
};
/**
* Should be used to format output address
*
* @method formatOutputAddress
* @param {SolidityParam} right-aligned input bytes
* @returns {String} address
*/
var formatOutputAddress = function formatOutputAddress(param) {
var value = param.staticPart();
return "0x" + value.slice(value.length - 40, value.length);
};
module.exports = {
formatInputInt: formatInputInt,
formatInputBytes: formatInputBytes,
formatInputDynamicBytes: formatInputDynamicBytes,
formatInputString: formatInputString,
formatInputBool: formatInputBool,
formatInputReal: formatInputReal,
formatOutputInt: formatOutputInt,
formatOutputUInt: formatOutputUInt,
formatOutputReal: formatOutputReal,
formatOutputUReal: formatOutputUReal,
formatOutputBool: formatOutputBool,
formatOutputBytes: formatOutputBytes,
formatOutputDynamicBytes: formatOutputDynamicBytes,
formatOutputString: formatOutputString,
formatOutputAddress: formatOutputAddress
};
},{"./config":77,"./param":81,"./utils":87,"bignumber.js":158}],80:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeInt is a prootype that represents int type
* It matches:
* int
* int[]
* int[4]
* int[][]
* int[3][]
* int[][6][], ...
* int32
* int64[]
* int8[4]
* int256[][]
* int[3][]
* int64[][6][], ...
*/
var SolidityTypeInt = function SolidityTypeInt() {
this._inputFormatter = f.formatInputInt;
this._outputFormatter = f.formatOutputInt;
};
SolidityTypeInt.prototype = new SolidityType({});
SolidityTypeInt.prototype.constructor = SolidityTypeInt;
SolidityTypeInt.prototype.isType = function (name) {
return !!name.match(/^int([0-9]*)?(\[([0-9]*)\])*$/);
};
module.exports = SolidityTypeInt;
},{"./formatters":79,"./type":84}],81:[function(require,module,exports){
'use strict';
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file param.js
* @author Marek Kotewicz <marek@ethdev.com>
* @date 2015
*/
var utils = require('./utils');
/**
* SolidityParam object prototype.
* Should be used when encoding, decoding solidity bytes
*/
var SolidityParam = function SolidityParam(value, offset) {
this.value = value || '';
this.offset = offset; // offset in bytes
};
/**
* This method should be used to get length of params's dynamic part
*
* @method dynamicPartLength
* @returns {Number} length of dynamic part (in bytes)
*/
SolidityParam.prototype.dynamicPartLength = function () {
return this.dynamicPart().length / 2;
};
/**
* This method should be used to create copy of solidity param with different offset
*
* @method withOffset
* @param {Number} offset length in bytes
* @returns {SolidityParam} new solidity param with applied offset
*/
SolidityParam.prototype.withOffset = function (offset) {
return new SolidityParam(this.value, offset);
};
/**
* This method should be used to combine solidity params together
* eg. when appending an array
*
* @method combine
* @param {SolidityParam} param with which we should combine
* @param {SolidityParam} result of combination
*/
SolidityParam.prototype.combine = function (param) {
return new SolidityParam(this.value + param.value);
};
/**
* This method should be called to check if param has dynamic size.
* If it has, it returns true, otherwise false
*
* @method isDynamic
* @returns {Boolean}
*/
SolidityParam.prototype.isDynamic = function () {
return this.offset !== undefined;
};
/**
* This method should be called to transform offset to bytes
*
* @method offsetAsBytes
* @returns {String} bytes representation of offset
*/
SolidityParam.prototype.offsetAsBytes = function () {
return !this.isDynamic() ? '' : utils.padLeft(utils.toTwosComplement(this.offset).toString(16), 64);
};
/**
* This method should be called to get static part of param
*
* @method staticPart
* @returns {String} offset if it is a dynamic param, otherwise value
*/
SolidityParam.prototype.staticPart = function () {
if (!this.isDynamic()) {
return this.value;
}
return this.offsetAsBytes();
};
/**
* This method should be called to get dynamic part of param
*
* @method dynamicPart
* @returns {String} returns a value if it is a dynamic param, otherwise empty string
*/
SolidityParam.prototype.dynamicPart = function () {
return this.isDynamic() ? this.value : '';
};
/**
* This method should be called to encode param
*
* @method encode
* @returns {String}
*/
SolidityParam.prototype.encode = function () {
return this.staticPart() + this.dynamicPart();
};
/**
* This method should be called to encode array of params
*
* @method encodeList
* @param {Array[SolidityParam]} params
* @returns {String}
*/
SolidityParam.encodeList = function (params) {
// updating offsets
var totalOffset = params.length * 32;
var offsetParams = params.map(function (param) {
if (!param.isDynamic()) {
return param;
}
var offset = totalOffset;
totalOffset += param.dynamicPartLength();
return param.withOffset(offset);
});
// encode everything!
return offsetParams.reduce(function (result, param) {
return result + param.dynamicPart();
}, offsetParams.reduce(function (result, param) {
return result + param.staticPart();
}, ''));
};
module.exports = SolidityParam;
},{"./utils":87}],82:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeReal is a prootype that represents real type
* It matches:
* real
* real[]
* real[4]
* real[][]
* real[3][]
* real[][6][], ...
* real32
* real64[]
* real8[4]
* real256[][]
* real[3][]
* real64[][6][], ...
*/
var SolidityTypeReal = function SolidityTypeReal() {
this._inputFormatter = f.formatInputReal;
this._outputFormatter = f.formatOutputReal;
};
SolidityTypeReal.prototype = new SolidityType({});
SolidityTypeReal.prototype.constructor = SolidityTypeReal;
SolidityTypeReal.prototype.isType = function (name) {
return !!name.match(/real([0-9]*)?(\[([0-9]*)\])?/);
};
module.exports = SolidityTypeReal;
},{"./formatters":79,"./type":84}],83:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
var SolidityTypeString = function SolidityTypeString() {
this._inputFormatter = f.formatInputString;
this._outputFormatter = f.formatOutputString;
};
SolidityTypeString.prototype = new SolidityType({});
SolidityTypeString.prototype.constructor = SolidityTypeString;
SolidityTypeString.prototype.isType = function (name) {
return !!name.match(/^string(\[([0-9]*)\])*$/);
};
SolidityTypeString.prototype.isDynamicType = function () {
return true;
};
module.exports = SolidityTypeString;
},{"./formatters":79,"./type":84}],84:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityParam = require('./param');
/**
* SolidityType prototype is used to encode/decode solidity params of certain type
*/
var SolidityType = function SolidityType(config) {
this._inputFormatter = config.inputFormatter;
this._outputFormatter = config.outputFormatter;
};
/**
* Should be used to determine if this SolidityType do match given name
*
* @method isType
* @param {String} name
* @return {Bool} true if type match this SolidityType, otherwise false
*/
SolidityType.prototype.isType = function (name) {
throw "this method should be overrwritten for type " + name;
};
/**
* Should be used to determine what is the length of static part in given type
*
* @method staticPartLength
* @param {String} name
* @return {Number} length of static part in bytes
*/
SolidityType.prototype.staticPartLength = function (name) {
// If name isn't an array then treat it like a single element array.
return (this.nestedTypes(name) || ['[1]']).map(function (type) {
// the length of the nested array
return parseInt(type.slice(1, -1), 10) || 1;
}).reduce(function (previous, current) {
return previous * current;
// all basic types are 32 bytes long
}, 32);
};
/**
* Should be used to determine if type is dynamic array
* eg:
* "type[]" => true
* "type[4]" => false
*
* @method isDynamicArray
* @param {String} name
* @return {Bool} true if the type is dynamic array
*/
SolidityType.prototype.isDynamicArray = function (name) {
var nestedTypes = this.nestedTypes(name);
return !!nestedTypes && !nestedTypes[nestedTypes.length - 1].match(/[0-9]{1,}/g);
};
/**
* Should be used to determine if type is static array
* eg:
* "type[]" => false
* "type[4]" => true
*
* @method isStaticArray
* @param {String} name
* @return {Bool} true if the type is static array
*/
SolidityType.prototype.isStaticArray = function (name) {
var nestedTypes = this.nestedTypes(name);
return !!nestedTypes && !!nestedTypes[nestedTypes.length - 1].match(/[0-9]{1,}/g);
};
/**
* Should return length of static array
* eg.
* "int[32]" => 32
* "int256[14]" => 14
* "int[2][3]" => 3
* "int" => 1
* "int[1]" => 1
* "int[]" => 1
*
* @method staticArrayLength
* @param {String} name
* @return {Number} static array length
*/
SolidityType.prototype.staticArrayLength = function (name) {
var nestedTypes = this.nestedTypes(name);
if (nestedTypes) {
return parseInt(nestedTypes[nestedTypes.length - 1].match(/[0-9]{1,}/g) || 1);
}
return 1;
};
/**
* Should return nested type
* eg.
* "int[32]" => "int"
* "int256[14]" => "int256"
* "int[2][3]" => "int[2]"
* "int" => "int"
* "int[]" => "int"
*
* @method nestedName
* @param {String} name
* @return {String} nested name
*/
SolidityType.prototype.nestedName = function (name) {
// remove last [] in name
var nestedTypes = this.nestedTypes(name);
if (!nestedTypes) {
return name;
}
return name.substr(0, name.length - nestedTypes[nestedTypes.length - 1].length);
};
/**
* Should return true if type has dynamic size by default
* such types are "string", "bytes"
*
* @method isDynamicType
* @param {String} name
* @return {Bool} true if is dynamic, otherwise false
*/
SolidityType.prototype.isDynamicType = function () {
return false;
};
/**
* Should return array of nested types
* eg.
* "int[2][3][]" => ["[2]", "[3]", "[]"]
* "int[] => ["[]"]
* "int" => null
*
* @method nestedTypes
* @param {String} name
* @return {Array} array of nested types
*/
SolidityType.prototype.nestedTypes = function (name) {
// return list of strings eg. "[]", "[3]", "[]", "[2]"
return name.match(/(\[[0-9]*\])/g);
};
/**
* Should be used to encode the value
*
* @method encode
* @param {Object} value
* @param {String} name
* @return {String} encoded value
*/
SolidityType.prototype.encode = function (value, name) {
var self = this;
if (this.isDynamicArray(name)) {
return function () {
var length = value.length; // in int
var nestedName = self.nestedName(name);
var result = [];
result.push(f.formatInputInt(length).encode());
value.forEach(function (v) {
result.push(self.encode(v, nestedName));
});
return result;
}();
} else if (this.isStaticArray(name)) {
return function () {
var length = self.staticArrayLength(name); // in int
var nestedName = self.nestedName(name);
var result = [];
for (var i = 0; i < length; i++) {
result.push(self.encode(value[i], nestedName));
}
return result;
}();
}
return this._inputFormatter(value, name).encode();
};
/**
* Should be used to decode value from bytes
*
* @method decode
* @param {String} bytes
* @param {Number} offset in bytes
* @param {String} name type name
* @returns {Object} decoded value
*/
SolidityType.prototype.decode = function (bytes, offset, name) {
var self = this;
if (this.isDynamicArray(name)) {
return function () {
var arrayOffset = parseInt('0x' + bytes.substr(offset * 2, 64)); // in bytes
var length = parseInt('0x' + bytes.substr(arrayOffset * 2, 64)); // in int
var arrayStart = arrayOffset + 32; // array starts after length; // in bytes
var nestedName = self.nestedName(name);
var nestedStaticPartLength = self.staticPartLength(nestedName); // in bytes
var roundedNestedStaticPartLength = Math.floor((nestedStaticPartLength + 31) / 32) * 32;
var result = [];
for (var i = 0; i < length * roundedNestedStaticPartLength; i += roundedNestedStaticPartLength) {
result.push(self.decode(bytes, arrayStart + i, nestedName));
}
return result;
}();
} else if (this.isStaticArray(name)) {
return function () {
var length = self.staticArrayLength(name); // in int
var arrayStart = offset; // in bytes
var nestedName = self.nestedName(name);
var nestedStaticPartLength = self.staticPartLength(nestedName); // in bytes
var roundedNestedStaticPartLength = Math.floor((nestedStaticPartLength + 31) / 32) * 32;
var result = [];
for (var i = 0; i < length * roundedNestedStaticPartLength; i += roundedNestedStaticPartLength) {
result.push(self.decode(bytes, arrayStart + i, nestedName));
}
return result;
}();
} else if (this.isDynamicType(name)) {
return function () {
var dynamicOffset = parseInt('0x' + bytes.substr(offset * 2, 64)); // in bytes
var length = parseInt('0x' + bytes.substr(dynamicOffset * 2, 64)); // in bytes
var roundedLength = Math.floor((length + 31) / 32); // in int
var param = new SolidityParam(bytes.substr(dynamicOffset * 2, (1 + roundedLength) * 64), 0);
return self._outputFormatter(param, name);
}();
}
var length = this.staticPartLength(name);
var param = new SolidityParam(bytes.substr(offset * 2, length * 2));
return this._outputFormatter(param, name);
};
module.exports = SolidityType;
},{"./formatters":79,"./param":81}],85:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeUInt is a prootype that represents uint type
* It matches:
* uint
* uint[]
* uint[4]
* uint[][]
* uint[3][]
* uint[][6][], ...
* uint32
* uint64[]
* uint8[4]
* uint256[][]
* uint[3][]
* uint64[][6][], ...
*/
var SolidityTypeUInt = function SolidityTypeUInt() {
this._inputFormatter = f.formatInputInt;
this._outputFormatter = f.formatOutputUInt;
};
SolidityTypeUInt.prototype = new SolidityType({});
SolidityTypeUInt.prototype.constructor = SolidityTypeUInt;
SolidityTypeUInt.prototype.isType = function (name) {
return !!name.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/);
};
module.exports = SolidityTypeUInt;
},{"./formatters":79,"./type":84}],86:[function(require,module,exports){
'use strict';
var f = require('./formatters');
var SolidityType = require('./type');
/**
* SolidityTypeUReal is a prootype that represents ureal type
* It matches:
* ureal
* ureal[]
* ureal[4]
* ureal[][]
* ureal[3][]
* ureal[][6][], ...
* ureal32
* ureal64[]
* ureal8[4]
* ureal256[][]
* ureal[3][]
* ureal64[][6][], ...
*/
var SolidityTypeUReal = function SolidityTypeUReal() {
this._inputFormatter = f.formatInputReal;
this._outputFormatter = f.formatOutputUReal;
};
SolidityTypeUReal.prototype = new SolidityType({});
SolidityTypeUReal.prototype.constructor = SolidityTypeUReal;
SolidityTypeUReal.prototype.isType = function (name) {
return !!name.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/);
};
module.exports = SolidityTypeUReal;
},{"./formatters":79,"./type":84}],87:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file utils.js
* @author Marek Kotewicz <marek@ethdev.com>
* @date 2015
*/
/**
* Utils
*
* @module utils
*/
/**
* Utility functions
*
* @class [utils] utils
* @constructor
*/
var BigNumber = require('bignumber.js');
var sha3 = require('ethereumjs-util').sha3;
var utf8 = require('utf8');
var unitMap = {
'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'
};
/**
* Should be called to pad string to expected length
*
* @method padLeft
* @param {String} string to be padded
* @param {Number} characters that result string should have
* @param {String} sign, by default 0
* @returns {String} right aligned string
*/
var padLeft = function padLeft(string, chars, sign) {
return new Array(chars - string.length + 1).join(sign ? sign : "0") + string;
};
/**
* Should be called to pad string to expected length
*
* @method padRight
* @param {String} string to be padded
* @param {Number} characters that result string should have
* @param {String} sign, by default 0
* @returns {String} right aligned string
*/
var padRight = function padRight(string, chars, sign) {
return string + new Array(chars - string.length + 1).join(sign ? sign : "0");
};
/**
* Should be called to get utf8 from it's hex representation
*
* @method toUtf8
* @param {String} string in hex
* @returns {String} ascii string representation of hex value
*/
var toUtf8 = function toUtf8(hex) {
// Find termination
var str = "";
var i = 0,
l = hex.length;
if (hex.substring(0, 2) === '0x') {
i = 2;
}
for (; i < l; i += 2) {
var code = parseInt(hex.substr(i, 2), 16);
if (code === 0) break;
str += String.fromCharCode(code);
}
return utf8.decode(str);
};
/**
* Should be called to get ascii from it's hex representation
*
* @method toAscii
* @param {String} string in hex
* @returns {String} ascii string representation of hex value
*/
var toAscii = function toAscii(hex) {
// Find termination
var str = "";
var i = 0,
l = hex.length;
if (hex.substring(0, 2) === '0x') {
i = 2;
}
for (; i < l; i += 2) {
var code = parseInt(hex.substr(i, 2), 16);
str += String.fromCharCode(code);
}
return str;
};
/**
* Should be called to get hex representation (prefixed by 0x) of utf8 string
*
* @method fromUtf8
* @param {String} string
* @param {Number} optional padding
* @returns {String} hex representation of input string
*/
var fromUtf8 = function fromUtf8(str) {
str = utf8.encode(str);
var hex = "";
for (var i = 0; i < str.length; i++) {
var code = str.charCodeAt(i);
if (code === 0) break;
var n = code.toString(16);
hex += n.length < 2 ? '0' + n : n;
}
return "0x" + hex;
};
/**
* Should be called to get hex representation (prefixed by 0x) of ascii string
*
* @method fromAscii
* @param {String} string
* @param {Number} optional padding
* @returns {String} hex representation of input string
*/
var fromAscii = function fromAscii(str) {
var hex = "";
for (var i = 0; i < str.length; i++) {
var code = str.charCodeAt(i);
var n = code.toString(16);
hex += n.length < 2 ? '0' + n : n;
}
return "0x" + hex;
};
/**
* Should be used to create full function/event name from json abi
*
* @method transformToFullName
* @param {Object} json-abi
* @return {String} full fnction/event name
*/
var transformToFullName = function transformToFullName(json) {
if (json.name.indexOf('(') !== -1) {
return json.name;
}
var typeName = json.inputs.map(function (i) {
return i.type;
}).join();
return json.name + '(' + typeName + ')';
};
/**
* Should be called to get display name of contract function
*
* @method extractDisplayName
* @param {String} name of function/event
* @returns {String} display name for function/event eg. multiply(uint256) -> multiply
*/
var extractDisplayName = function extractDisplayName(name) {
var length = name.indexOf('(');
return length !== -1 ? name.substr(0, length) : name;
};
/// @returns overloaded part of function/event name
var extractTypeName = function extractTypeName(name) {
/// TODO: make it invulnerable
var length = name.indexOf('(');
return length !== -1 ? name.substr(length + 1, name.length - 1 - (length + 1)).replace(' ', '') : "";
};
/**
* Converts value to it's decimal representation in string
*
* @method toDecimal
* @param {String|Number|BigNumber}
* @return {String}
*/
var toDecimal = function toDecimal(value) {
return toBigNumber(value).toNumber();
};
/**
* Converts value to it's hex representation
*
* @method fromDecimal
* @param {String|Number|BigNumber}
* @return {String}
*/
var fromDecimal = function fromDecimal(value) {
var number = toBigNumber(value);
var result = number.toString(16);
return number.lessThan(0) ? '-0x' + result.substr(1) : '0x' + result;
};
/**
* Auto converts any given value into it's hex representation.
*
* And even stringifys objects before.
*
* @method toHex
* @param {String|Number|BigNumber|Object}
* @return {String}
*/
var toHex = function toHex(val) {
/*jshint maxcomplexity: 8 */
if (isBoolean(val)) return fromDecimal(+val);
if (isBigNumber(val)) return fromDecimal(val);
if (isObject(val)) return fromUtf8(JSON.stringify(val));
// if its a negative number, pass it through fromDecimal
if (isString(val)) {
if (val.indexOf('-0x') === 0) return fromDecimal(val);else if (val.indexOf('0x') === 0) return val;else if (!isFinite(val)) return fromAscii(val);
}
return fromDecimal(val);
};
/**
* Returns value of unit in Wei
*
* @method getValueOfUnit
* @param {String} unit the unit to convert to, default ether
* @returns {BigNumber} value of the unit (in Wei)
* @throws error if the unit is not correct:w
*/
var getValueOfUnit = function getValueOfUnit(unit) {
unit = unit ? unit.toLowerCase() : 'ether';
var unitValue = unitMap[unit];
if (unitValue === undefined) {
throw new Error('This unit doesn\'t exists, please use the one of the following units' + JSON.stringify(unitMap, null, 2));
}
return new BigNumber(unitValue, 10);
};
/**
* Takes a number of wei and converts it to any other ether unit.
*
* Possible units are:
* SI Short SI Full Effigy Other
* - kwei femtoether babbage
* - mwei picoether lovelace
* - gwei nanoether shannon nano
* - -- microether szabo micro
* - -- milliether finney milli
* - ether -- --
* - kether -- grand
* - mether
* - gether
* - tether
*
* @method fromWei
* @param {Number|String} number can be a number, number string or a HEX of a decimal
* @param {String} unit the unit to convert to, default ether
* @return {String|Object} When given a BigNumber object it returns one as well, otherwise a number
*/
var fromWei = function fromWei(number, unit) {
var returnValue = toBigNumber(number).dividedBy(getValueOfUnit(unit));
return isBigNumber(number) ? returnValue : returnValue.toString(10);
};
/**
* Takes a number of a unit and converts it to wei.
*
* Possible units are:
* SI Short SI Full Effigy Other
* - kwei femtoether babbage
* - mwei picoether lovelace
* - gwei nanoether shannon nano
* - -- microether szabo micro
* - -- microether szabo micro
* - -- milliether finney milli
* - ether -- --
* - kether -- grand
* - mether
* - gether
* - tether
*
* @method toWei
* @param {Number|String|BigNumber} number can be a number, number string or a HEX of a decimal
* @param {String} unit the unit to convert from, default ether
* @return {String|Object} When given a BigNumber object it returns one as well, otherwise a number
*/
var toWei = function toWei(number, unit) {
var returnValue = toBigNumber(number).times(getValueOfUnit(unit));
return isBigNumber(number) ? returnValue : returnValue.toString(10);
};
/**
* Takes an input and transforms it into an bignumber
*
* @method toBigNumber
* @param {Number|String|BigNumber} a number, string, HEX string or BigNumber
* @return {BigNumber} BigNumber
*/
var toBigNumber = function toBigNumber(number) {
/*jshint maxcomplexity:5 */
number = number || 0;
if (isBigNumber(number)) return number;
if (isString(number) && (number.indexOf('0x') === 0 || number.indexOf('-0x') === 0)) {
return new BigNumber(number.replace('0x', ''), 16);
}
return new BigNumber(number.toString(10), 10);
};
/**
* Takes and input transforms it into bignumber and if it is negative value, into two's complement
*
* @method toTwosComplement
* @param {Number|String|BigNumber}
* @return {BigNumber}
*/
var toTwosComplement = function toTwosComplement(number) {
var bigNumber = toBigNumber(number).round();
if (bigNumber.lessThan(0)) {
return new BigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16).plus(bigNumber).plus(1);
}
return bigNumber;
};
/**
* Checks if the given string is strictly an address
*
* @method isStrictAddress
* @param {String} address the given HEX adress
* @return {Boolean}
*/
var isStrictAddress = function isStrictAddress(address) {
return (/^0x[0-9a-f]{40}$/i.test(address)
);
};
/**
* Checks if the given string is an address
*
* @method isAddress
* @param {String} address the given HEX adress
* @return {Boolean}
*/
var isAddress = function isAddress(address) {
if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) {
// check if it has the basic requirements of an address
return false;
} else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) {
// If it's all small caps or all all caps, return true
return true;
} else {
// Otherwise check each case
return isChecksumAddress(address);
}
};
/**
* Checks if the given string is a checksummed address
*
* @method isChecksumAddress
* @param {String} address the given HEX adress
* @return {Boolean}
*/
var isChecksumAddress = function isChecksumAddress(address) {
// Check each case
address = address.replace('0x', '');
var addressHash = sha3(address.toLowerCase()).toString('hex');
for (var i = 0; i < 40; i++) {
// the nth letter should be uppercase if the nth digit of casemap is 1
if (parseInt(addressHash[i], 16) > 7 && address[i].toUpperCase() !== address[i] || parseInt(addressHash[i], 16) <= 7 && address[i].toLowerCase() !== address[i]) {
return false;
}
}
return true;
};
/**
* Makes a checksum address
*
* @method toChecksumAddress
* @param {String} address the given HEX adress
* @return {String}
*/
var toChecksumAddress = function toChecksumAddress(address) {
if (typeof address === 'undefined') return '';
address = address.toLowerCase().replace('0x', '');
var addressHash = sha3(address).toString('hex');
var checksumAddress = '0x';
for (var i = 0; i < address.length; i++) {
// If ith character is 9 to f then make it uppercase
if (parseInt(addressHash[i], 16) > 7) {
checksumAddress += address[i].toUpperCase();
} else {
checksumAddress += address[i];
}
}
return checksumAddress;
};
/**
* Transforms given string to valid 20 bytes-length addres with 0x prefix
*
* @method toAddress
* @param {String} address
* @return {String} formatted address
*/
var toAddress = function toAddress(address) {
if (isStrictAddress(address)) {
return address;
}
if (/^[0-9a-f]{40}$/.test(address)) {
return '0x' + address;
}
return '0x' + padLeft(toHex(address).substr(2), 40);
};
/**
* Returns true if object is BigNumber, otherwise false
*
* @method isBigNumber
* @param {Object}
* @return {Boolean}
*/
var isBigNumber = function isBigNumber(object) {
return object instanceof BigNumber || object && object.constructor && object.constructor.name === 'BigNumber';
};
/**
* Returns true if object is string, otherwise false
*
* @method isString
* @param {Object}
* @return {Boolean}
*/
var isString = function isString(object) {
return typeof object === 'string' || object && object.constructor && object.constructor.name === 'String';
};
/**
* Returns true if object is function, otherwise false
*
* @method isFunction
* @param {Object}
* @return {Boolean}
*/
var isFunction = function isFunction(object) {
return typeof object === 'function';
};
/**
* Returns true if object is Objet, otherwise false
*
* @method isObject
* @param {Object}
* @return {Boolean}
*/
var isObject = function isObject(object) {
return (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object';
};
/**
* Returns true if object is boolean, otherwise false
*
* @method isBoolean
* @param {Object}
* @return {Boolean}
*/
var isBoolean = function isBoolean(object) {
return typeof object === 'boolean';
};
/**
* Returns true if object is array, otherwise false
*
* @method isArray
* @param {Object}
* @return {Boolean}
*/
var isArray = function isArray(object) {
return object instanceof Array;
};
/**
* Returns true if given string is valid json object
*
* @method isJson
* @param {String}
* @return {Boolean}
*/
var isJson = function isJson(str) {
try {
return !!JSON.parse(str);
} catch (e) {
return false;
}
};
module.exports = {
padLeft: padLeft,
padRight: padRight,
toHex: toHex,
toDecimal: toDecimal,
fromDecimal: fromDecimal,
toUtf8: toUtf8,
toAscii: toAscii,
fromUtf8: fromUtf8,
fromAscii: fromAscii,
transformToFullName: transformToFullName,
extractDisplayName: extractDisplayName,
extractTypeName: extractTypeName,
toWei: toWei,
fromWei: fromWei,
toBigNumber: toBigNumber,
toTwosComplement: toTwosComplement,
toAddress: toAddress,
isBigNumber: isBigNumber,
isStrictAddress: isStrictAddress,
isAddress: isAddress,
isChecksumAddress: isChecksumAddress,
toChecksumAddress: toChecksumAddress,
isFunction: isFunction,
isString: isString,
isObject: isObject,
isBoolean: isBoolean,
isArray: isArray,
isJson: isJson
};
},{"bignumber.js":158,"ethereumjs-util":243,"utf8":340}],88:[function(require,module,exports){
'use strict';
var marked = require('marked');
var myRenderer = new marked.Renderer();
myRenderer.paragraph = function (text) {
return text + '\n';
};
myRenderer.link = function (href, title, text) {
if (this.options.sanitize) {
try {
var prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, '').toLowerCase();
} catch (e) {
return '';
}
if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {
return '';
}
}
var out = '<a target="_blank" rel="noopener noreferrer" href="' + href + '"';
if (title) {
out += ' title="' + title + '"';
}
out += '>' + text + '</a>';
return out;
};
marked.setOptions({
renderer: myRenderer
});
module.exports = marked;
},{"marked":277}],89:[function(require,module,exports){
(function (Buffer){
/**
* (c) 2017 Douglas Bakkum, Shift Devices AG
* MIT license
**/
// Hijacks the U2F auth command to pass HWW API commands
// TODO - Integrate the smart verification mobile app (send result['echo'] from sign response).
// Requires pairing, for example copy-pasting the pairing code from the desktop app (needs implementation).
'use strict';
var Crypto = require('crypto');
var HDKey = require('hdkey');
var DigitalBitboxEth = function DigitalBitboxEth(comm, sec) {
this.comm = comm;
DigitalBitboxEth.sec = sec || DigitalBitboxEth.sec;
this.key = Crypto.createHash('sha256').update(new Buffer(DigitalBitboxEth.sec, 'utf8')).digest();
this.key = Crypto.createHash('sha256').update(this.key).digest();
clearTimeout(DigitalBitboxEth.to);
DigitalBitboxEth.to = setTimeout(function () {
DigitalBitboxEth.sec = '';
}, 60000);
};
DigitalBitboxEth.sec = '';
DigitalBitboxEth.to = null;
DigitalBitboxEth.aes_cbc_b64_decrypt = function (ciphertext, key) {
var res;
try {
var ub64 = new Buffer(ciphertext, "base64").toString("binary");
var iv = new Buffer(ub64.slice(0, 16), "binary");
var enc = new Buffer(ub64.slice(16), "binary");
var decipher = Crypto.createDecipheriv("aes-256-cbc", key, iv);
var dec = decipher.update(enc) + decipher.final();
res = dec.toString("utf8");
} catch (err) {
res = ciphertext;
}
return res;
};
DigitalBitboxEth.aes_cbc_b64_encrypt = function (plaintext, key) {
try {
var iv = Crypto.pseudoRandomBytes(16);
var cipher = Crypto.createCipheriv("aes-256-cbc", key, iv);
var ciphertext = Buffer.concat([iv, cipher.update(plaintext), cipher.final()]);
return ciphertext.toString("base64");
} catch (err) {
return '';
}
};
DigitalBitboxEth.parseError = function (errObject) {
var errMsg = {
err101: 'The Digital Bitbox is not initialized. First use the <a href="https://digitalbitbox.com/start" target="_blank" rel="noopener noreferrer">Digital Bitbox desktop app</a> to set up a wallet.', // No password set
err250: 'The Digital Bitbox is not initialized. First use the <a href="https://digitalbitbox.com/start" target="_blank" rel="noopener noreferrer">Digital Bitbox desktop app</a> to set up a wallet.', // Wallet not seeded
err251: 'The Digital Bitbox is not initialized. First use the <a href="https://digitalbitbox.com/start" target="_blank" rel="noopener noreferrer">Digital Bitbox desktop app</a> to set up a wallet.', // Wallet not seeded
err109: 'The Digital Bitbox received unexpected data. Was the correct password used? ' + errObject.message
};
var code = 'err' + errObject.code.toString();
var msg = errMsg[code] || errObject.message;
return msg;
};
DigitalBitboxEth.prototype.getAddress = function (path, callback) {
var self = this;
var cmd = '{"xpub":"' + path + '"}';
cmd = DigitalBitboxEth.aes_cbc_b64_encrypt(cmd, this.key);
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
try {
response = JSON.parse(response.toString('utf8'));
if ('error' in response) {
callback(undefined, DigitalBitboxEth.parseError(response.error));
return;
}
if ('ciphertext' in response) {
response = JSON.parse(DigitalBitboxEth.aes_cbc_b64_decrypt(response.ciphertext, self.key));
if ('error' in response) {
callback(undefined, DigitalBitboxEth.parseError(response.error));
return;
}
var hdkey = HDKey.fromExtendedKey(response.xpub);
var result = {
publicKey: hdkey.publicKey.toString('hex'),
chainCode: hdkey.chainCode.toString('hex')
};
callback(result);
return;
}
} catch (err) {
callback(undefined, 'Unexpected error: ' + err.message);
}
}
};
self.comm.exchange(cmd, localCallback);
};
DigitalBitboxEth.signGeneric = function (self, path, chainId, hashToSign, callback) {
var cmd = '{"sign":{"data":[{"hash":"' + hashToSign + '","keypath":"' + path + '"}]}}';
cmd = DigitalBitboxEth.aes_cbc_b64_encrypt(cmd, self.key);
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
try {
response = JSON.parse(response.toString('utf8'));
if ('error' in response) {
callback(undefined, DigitalBitboxEth.parseError(response.error));
return;
}
if ('ciphertext' in response) {
response = JSON.parse(DigitalBitboxEth.aes_cbc_b64_decrypt(response.ciphertext, self.key));
if ('error' in response) {
callback(undefined, DigitalBitboxEth.parseError(response.error));
return;
}
if ('echo' in response) {
// Echo from first sign command. (Smart verification not implemented.)
// Send second sign command.
var cmd = '{"sign":""}';
cmd = DigitalBitboxEth.aes_cbc_b64_encrypt(cmd, self.key);
self.comm.exchange(cmd, localCallback);
return;
}
if ('sign' in response) {
var vOffset = chainId ? chainId * 2 + 8 : 0;
var v = new Buffer([parseInt(response.sign[0].recid, 16) + 27 + vOffset]);
var result = {
v: v.toString('hex'),
r: response.sign[0].sig.slice(0, 64),
s: response.sign[0].sig.slice(64, 128)
};
callback(result);
return;
}
}
} catch (err) {
callback(undefined, 'Unexpected error:' + err.message);
}
}
};
self.comm.exchange(cmd, localCallback);
};
DigitalBitboxEth.prototype.signTransaction = function (path, eTx, callback) {
var self = this;
var hashToSign = eTx.hash(false).toString('hex');
DigitalBitboxEth.signGeneric(self, path, eTx._chainId, hashToSign, callback);
};
DigitalBitboxEth.prototype.signMessage = function (path, messageHex, callback) {
var self = this;
var hashToSign = messageHex.toString('hex');
DigitalBitboxEth.signGeneric(self, path, 0, hashToSign, callback);
};
module.exports = DigitalBitboxEth;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"crypto":211,"hdkey":260}],90:[function(require,module,exports){
(function (Buffer){
/**
* (c) 2017 Douglas Bakkum, Shift Devices AG
* MIT license
**/
'use strict';
var DigitalBitboxUsb = function DigitalBitboxUsb(timeoutSeconds) {
this.timeoutSeconds = timeoutSeconds;
};
// Convert from normal to web-safe, strip trailing "="s
DigitalBitboxUsb.webSafe64 = function (base64) {
return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
};
// Convert from web-safe to normal, add trailing "="s
DigitalBitboxUsb.normal64 = function (base64) {
return base64.replace(/\-/g, '+').replace(/_/g, '/') + '=='.substring(0, 3 * base64.length % 4);
};
DigitalBitboxUsb.prototype.u2fCallback = function (response, callback) {
if ('signatureData' in response) {
var data = new Buffer(DigitalBitboxUsb.normal64(response.signatureData), 'base64');
if (data.length > 7) callback(data.slice(5));else return; // Empty frame received, wait for data
} else {
callback(undefined, response);
}
};
DigitalBitboxUsb.prototype.exchange = function (msg, callback) {
msg = Buffer.from(msg, 'ascii');
var kh_max_len = 128 - 2; // Subtract 2 bytes for `index` and `total` header
var challenge = new Buffer("dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb", 'hex');
var total = Math.ceil(msg.length / kh_max_len);
var self = this;
var localCallback = function localCallback(result) {
self.u2fCallback(result, callback);
};
for (var index = 0; index < total; index++) {
var kh = Buffer.concat([Buffer.from([total]), Buffer.from([index]), msg.slice(index * kh_max_len, (index + 1) * kh_max_len)]);
var key = {
version: 'U2F_V2',
keyHandle: DigitalBitboxUsb.webSafe64(kh.toString('base64'))
};
u2f.sign(location.origin, DigitalBitboxUsb.webSafe64(challenge.toString('base64')), [key], localCallback, this.timeoutSeconds);
}
};
module.exports = DigitalBitboxUsb;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],91:[function(require,module,exports){
(function (Buffer){
/********************************************************************************
* Ledger Communication toolkit
* (c) 2016 Ledger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
********************************************************************************/
'use strict';
var LedgerEth = function LedgerEth(comm) {
this.comm = comm;
};
LedgerEth.splitPath = function (path) {
var result = [];
var components = path.split('/');
components.forEach(function (element, index) {
var number = parseInt(element, 10);
if (isNaN(number)) {
return;
}
if (element.length > 1 && element[element.length - 1] == "'") {
number += 0x80000000;
}
result.push(number);
});
return result;
};
// callback is function(response, error)
LedgerEth.prototype.getAddress = function (path, callback, boolDisplay, boolChaincode) {
var splitPath = LedgerEth.splitPath(path);
var buffer = new Buffer(5 + 1 + splitPath.length * 4);
buffer[0] = 0xe0;
buffer[1] = 0x02;
buffer[2] = boolDisplay ? 0x01 : 0x00;
buffer[3] = boolChaincode ? 0x01 : 0x00;
buffer[4] = 1 + splitPath.length * 4;
buffer[5] = splitPath.length;
splitPath.forEach(function (element, index) {
buffer.writeUInt32BE(element, 6 + 4 * index);
});
var self = this;
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
var result = {};
response = new Buffer(response, 'hex');
var sw = response.readUInt16BE(response.length - 2);
if (sw != 0x9000) {
callback(undefined, "Invalid status " + sw.toString(16) + ". Check to make sure the right application is selected ?");
return;
}
var publicKeyLength = response[0];
var addressLength = response[1 + publicKeyLength];
result['publicKey'] = response.slice(1, 1 + publicKeyLength).toString('hex');
result['address'] = "0x" + response.slice(1 + publicKeyLength + 1, 1 + publicKeyLength + 1 + addressLength).toString('ascii');
if (boolChaincode) {
result['chainCode'] = response.slice(1 + publicKeyLength + 1 + addressLength, 1 + publicKeyLength + 1 + addressLength + 32).toString('hex');
}
callback(result);
}
};
this.comm.exchange(buffer.toString('hex'), localCallback);
};
// callback is function(response, error)
LedgerEth.prototype.signTransaction = function (path, rawTxHex, callback) {
var splitPath = LedgerEth.splitPath(path);
var offset = 0;
var rawTx = new Buffer(rawTxHex, 'hex');
var apdus = [];
while (offset != rawTx.length) {
var maxChunkSize = offset == 0 ? 150 - 1 - splitPath.length * 4 : 150;
var chunkSize = offset + maxChunkSize > rawTx.length ? rawTx.length - offset : maxChunkSize;
var buffer = new Buffer(offset == 0 ? 5 + 1 + splitPath.length * 4 + chunkSize : 5 + chunkSize);
buffer[0] = 0xe0;
buffer[1] = 0x04;
buffer[2] = offset == 0 ? 0x00 : 0x80;
buffer[3] = 0x00;
buffer[4] = offset == 0 ? 1 + splitPath.length * 4 + chunkSize : chunkSize;
if (offset == 0) {
buffer[5] = splitPath.length;
splitPath.forEach(function (element, index) {
buffer.writeUInt32BE(element, 6 + 4 * index);
});
rawTx.copy(buffer, 6 + 4 * splitPath.length, offset, offset + chunkSize);
} else {
rawTx.copy(buffer, 5, offset, offset + chunkSize);
}
apdus.push(buffer.toString('hex'));
offset += chunkSize;
}
var self = this;
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
response = new Buffer(response, 'hex');
var sw = response.readUInt16BE(response.length - 2);
if (sw != 0x9000) {
callback(undefined, "Invalid status " + sw.toString(16) + ". Check to make sure contract data is on ?");
return;
}
if (apdus.length == 0) {
var result = {};
result['v'] = response.slice(0, 1).toString('hex');
result['r'] = response.slice(1, 1 + 32).toString('hex');
result['s'] = response.slice(1 + 32, 1 + 32 + 32).toString('hex');
callback(result);
} else {
self.comm.exchange(apdus.shift(), localCallback);
}
}
};
self.comm.exchange(apdus.shift(), localCallback);
};
// callback is function(response, error)
LedgerEth.prototype.getAppConfiguration = function (callback) {
var buffer = new Buffer(5);
buffer[0] = 0xe0;
buffer[1] = 0x06;
buffer[2] = 0x00;
buffer[3] = 0x00;
buffer[4] = 0x00;
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
response = new Buffer(response, 'hex');
var result = {};
var sw = response.readUInt16BE(response.length - 2);
if (sw != 0x9000) {
callback(undefined, "Invalid status " + sw.toString(16) + ". Check to make sure the right application is selected ?");
return;
}
result['arbitraryDataEnabled'] = response[0] & 0x01;
result['version'] = "" + response[1] + '.' + response[2] + '.' + response[3];
callback(result);
}
};
this.comm.exchange(buffer.toString('hex'), localCallback);
};
LedgerEth.prototype.signPersonalMessage_async = function (path, messageHex, callback) {
var splitPath = LedgerEth.splitPath(path);
var offset = 0;
var message = new Buffer(messageHex, 'hex');
var apdus = [];
var response = [];
var self = this;
while (offset != message.length) {
var maxChunkSize = offset == 0 ? 150 - 1 - splitPath.length * 4 - 4 : 150;
var chunkSize = offset + maxChunkSize > message.length ? message.length - offset : maxChunkSize;
var buffer = new Buffer(offset == 0 ? 5 + 1 + splitPath.length * 4 + 4 + chunkSize : 5 + chunkSize);
buffer[0] = 0xe0;
buffer[1] = 0x08;
buffer[2] = offset == 0 ? 0x00 : 0x80;
buffer[3] = 0x00;
buffer[4] = offset == 0 ? 1 + splitPath.length * 4 + 4 + chunkSize : chunkSize;
if (offset == 0) {
buffer[5] = splitPath.length;
splitPath.forEach(function (element, index) {
buffer.writeUInt32BE(element, 6 + 4 * index);
});
buffer.writeUInt32BE(message.length, 6 + 4 * splitPath.length);
message.copy(buffer, 6 + 4 * splitPath.length + 4, offset, offset + chunkSize);
} else {
message.copy(buffer, 5, offset, offset + chunkSize);
}
apdus.push(buffer.toString('hex'));
offset += chunkSize;
}
var self = this;
var localCallback = function localCallback(response, error) {
if (typeof error != "undefined") {
callback(undefined, error);
} else {
response = new Buffer(response, 'hex');
var sw = response.readUInt16BE(response.length - 2);
if (sw != 0x9000) {
callback(undefined, "Invalid status " + sw.toString(16) + ". Check to make sure the right application is selected ?");
return;
}
if (apdus.length == 0) {
var result = {};
result['v'] = response.slice(0, 1).toString('hex');
result['r'] = response.slice(1, 1 + 32).toString('hex');
result['s'] = response.slice(1 + 32, 1 + 32 + 32).toString('hex');
callback(result);
} else {
self.comm.exchange(apdus.shift(), localCallback);
}
}
};
self.comm.exchange(apdus.shift(), localCallback);
};
module.exports = LedgerEth;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],92:[function(require,module,exports){
(function (Buffer){
/********************************************************************************
* Ledger Communication toolkit
* (c) 2016 Ledger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
********************************************************************************/
'use strict';
var Ledger3 = function Ledger3(scrambleKey, timeoutSeconds) {
this.scrambleKey = new Buffer(scrambleKey, 'ascii');
this.timeoutSeconds = timeoutSeconds;
};
Ledger3.wrapApdu = function (apdu, key) {
var result = new Buffer(apdu.length);
for (var i = 0; i < apdu.length; i++) {
result[i] = apdu[i] ^ key[i % key.length];
}
return result;
};
// Convert from normal to web-safe, strip trailing "="s
Ledger3.webSafe64 = function (base64) {
return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
};
// Convert from web-safe to normal, add trailing "="s
Ledger3.normal64 = function (base64) {
return base64.replace(/\-/g, '+').replace(/_/g, '/') + '=='.substring(0, 3 * base64.length % 4);
};
Ledger3.prototype.u2fCallback = function (response, callback) {
if (typeof response['signatureData'] != "undefined") {
var data = new Buffer(Ledger3.normal64(response['signatureData']), 'base64');
callback(data.toString('hex', 5));
} else {
callback(undefined, response);
}
};
// callback is function(response, error)
Ledger3.prototype.exchange = function (apduHex, callback) {
var apdu = new Buffer(apduHex, 'hex');
var keyHandle = Ledger3.wrapApdu(apdu, this.scrambleKey);
var challenge = new Buffer("0000000000000000000000000000000000000000000000000000000000000000", 'hex');
var key = {};
key['version'] = 'U2F_V2';
key['keyHandle'] = Ledger3.webSafe64(keyHandle.toString('base64'));
var self = this;
var localCallback = function localCallback(result) {
self.u2fCallback(result, callback);
};
u2f.sign(location.origin, Ledger3.webSafe64(challenge.toString('base64')), [key], localCallback, this.timeoutSeconds);
};
module.exports = Ledger3;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],93:[function(require,module,exports){
'use strict';
/**
* (C) 2017 SatoshiLabs
*
* GPLv3
*/
var VERSION = 4;
if (!Array.isArray) {
Array.isArray = function (arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
var HD_HARDENED = 0x80000000;
// react sometimes adds some other parameters that should not be there
function _fwStrFix(obj, fw) {
if (typeof fw === 'string') {
obj.requiredFirmware = fw;
}
return obj;
}
'use strict';
var chrome = window.chrome;
var IS_CHROME_APP = chrome && chrome.app && chrome.app.window;
var ERR_TIMED_OUT = 'Loading timed out';
var ERR_WINDOW_CLOSED = 'Window closed';
var ERR_WINDOW_BLOCKED = 'Window blocked';
var ERR_ALREADY_WAITING = 'Already waiting for a response';
var ERR_CHROME_NOT_CONNECTED = 'Internal Chrome popup is not responding.';
var DISABLE_LOGIN_BUTTONS = window.TREZOR_DISABLE_LOGIN_BUTTONS || false;
var CHROME_URL = window.TREZOR_CHROME_URL || './chrome/wrapper.html';
var POPUP_ORIGIN = window.TREZOR_POPUP_ORIGIN || 'https://connect.trezor.io';
var POPUP_PATH = window.TREZOR_POPUP_PATH || POPUP_ORIGIN + '/' + VERSION;
if (window.location.hostname === 'localhost' && !window.TREZOR_POPUP_ORIGIN) {
// development settings
//POPUP_ORIGIN = window.location.origin;
//POPUP_PATH = POPUP_ORIGIN;
}
var POPUP_URL = window.TREZOR_POPUP_URL || POPUP_PATH + '/popup/popup.html';
var POPUP_INIT_TIMEOUT = 15000;
/**
* Public API.
*/
function TrezorConnect() {
var manager = new PopupManager();
/**
* Popup errors.
*/
this.ERR_TIMED_OUT = ERR_TIMED_OUT;
this.ERR_WINDOW_CLOSED = ERR_WINDOW_CLOSED;
this.ERR_WINDOW_BLOCKED = ERR_WINDOW_BLOCKED;
this.ERR_ALREADY_WAITING = ERR_ALREADY_WAITING;
this.ERR_CHROME_NOT_CONNECTED = ERR_CHROME_NOT_CONNECTED;
/**
* Open the popup for further communication. All API functions open the
* popup automatically, but if you need to generate some parameters
* asynchronously, use `open` first to avoid popup blockers.
* @param {function(?Error)} callback
*/
this.open = function (callback) {
var onchannel = function onchannel(result) {
if (result instanceof Error) {
callback(result);
} else {
callback();
}
};
manager.waitForChannel(onchannel);
};
/**
* Close the opened popup, if any.
*/
this.close = function () {
manager.close();
};
/**
* Enable or disable closing the opened popup after a successful call.
* @param {boolean} value
*/
this.closeAfterSuccess = function (value) {
manager.closeAfterSuccess = value;
};
/**
* Enable or disable closing the opened popup after a failed call.
* @param {boolean} value
*/
this.closeAfterFailure = function (value) {
manager.closeAfterFailure = value;
};
/**
* Set bitcore server
* @param {string|Array<string>} value
*/
this.setBitcoreURLS = function (value) {
if (typeof value === 'string') {
manager.bitcoreURLS = [value];
} else if (value instanceof Array) {
manager.bitcoreURLS = value;
}
};
/**
* Set currency. Human readable coin name
* @param {string|Array<string>} value
*/
this.setCurrency = function (value) {
if (typeof value === 'string') {
manager.currency = value;
}
};
/**
* Set currency units (mBTC, BTC)
* @param {string|Array<string>} value
*/
this.setCurrencyUnits = function (value) {
if (typeof value === 'string') {
manager.currencyUnits = value;
}
};
/**
* Set coin info json url
* @param {string|Array<string>} value
*/
this.setCoinInfoURL = function (value) {
if (typeof value === 'string') {
manager.coinInfoURL = value;
}
};
/**
* Set max. limit for account discovery
* @param {number} value
*/
this.setAccountDiscoveryLimit = function (value) {
if (!isNaN(value)) manager.accountDiscoveryLimit = value;
};
/**
* Set max. gap for account discovery
* @param {number} value
*/
this.setAccountDiscoveryGapLength = function (value) {
if (!isNaN(value)) manager.accountDiscoveryGapLength = value;
};
/**
* Set discovery BIP44 coin type
* @param {number} value
*/
this.setAccountDiscoveryBip44CoinType = function (value) {
if (!isNaN(value)) manager.accountDiscoveryBip44CoinType = value;
};
/**
* @typedef XPubKeyResult
* @param {boolean} success
* @param {?string} error
* @param {?string} xpubkey serialized extended public key
* @param {?string} path BIP32 serializd path of the key
*/
/**
* Load BIP32 extended public key by path.
*
* Path can be specified either in the string form ("m/44'/1/0") or as
* raw integer array. In case you omit the path, user is asked to select
* a BIP32 account to export, and the result contains m/44'/0'/x' node
* of the account.
*
* @param {?(string|array<number>)} path
* @param {function(XPubKeyResult)} callback
* @param {?(string|array<number>)} requiredFirmware
*/
this.getXPubKey = function (path, callback, requiredFirmware) {
if (typeof path === 'string') {
path = parseHDPath(path);
}
manager.sendWithChannel(_fwStrFix({
type: 'xpubkey',
path: path
}, requiredFirmware), callback);
};
this.getFreshAddress = function (callback, requiredFirmware) {
var wrapperCallback = function wrapperCallback(result) {
if (result.success) {
callback({ success: true, address: result.freshAddress });
} else {
callback(result);
}
};
manager.sendWithChannel(_fwStrFix({
type: 'accountinfo'
}, requiredFirmware), wrapperCallback);
};
this.getAccountInfo = function (input, callback, requiredFirmware) {
try {
manager.sendWithChannel(_fwStrFix({
type: 'accountinfo',
description: input
}, requiredFirmware), callback);
} catch (e) {
callback({ success: false, error: e });
}
};
this.getAllAccountsInfo = function (callback, requiredFirmware) {
try {
manager.sendWithChannel(_fwStrFix({
type: 'allaccountsinfo',
description: 'all'
}, requiredFirmware), callback);
} catch (e) {
callback({ success: false, error: e });
}
};
this.getBalance = function (callback, requiredFirmware) {
manager.sendWithChannel(_fwStrFix({
type: 'accountinfo'
}, requiredFirmware), callback);
};
/**
* @typedef SignTxResult
* @param {boolean} success
* @param {?string} error
* @param {?string} serialized_tx serialized tx, in hex, including signatures
* @param {?array<string>} signatures array of input signatures, in hex
*/
/**
* Sign a transaction in the device and return both serialized
* transaction and the signatures.
*
* @param {array<TxInputType>} inputs
* @param {array<TxOutputType>} outputs
* @param {function(SignTxResult)} callback
* @param {?(string|array<number>)} requiredFirmware
*
* @see https://github.com/trezor/trezor-common/blob/master/protob/types.proto
*/
this.signTx = function (inputs, outputs, callback, requiredFirmware, coin) {
manager.sendWithChannel(_fwStrFix({
type: 'signtx',
inputs: inputs,
outputs: outputs,
coin: coin
}, requiredFirmware), callback);
};
// new implementation with ethereum at beginnig
this.ethereumSignTx = function () {
this.signEthereumTx.apply(this, arguments);
};
// old fallback
this.signEthereumTx = function (address_n, nonce, gas_price, gas_limit, to, value, data, chain_id, callback, requiredFirmware) {
if (requiredFirmware == null) {
requiredFirmware = '1.4.0'; // first firmware that supports ethereum
}
if (typeof address_n === 'string') {
address_n = parseHDPath(address_n);
}
manager.sendWithChannel(_fwStrFix({
type: 'signethtx',
address_n: address_n,
nonce: nonce,
gas_price: gas_price,
gas_limit: gas_limit,
to: to,
value: value,
data: data,
chain_id: chain_id
}, requiredFirmware), callback);
};
/**
* @typedef TxRecipient
* @param {number} amount the amount to send, in satoshis
* @param {string} address the address of the recipient
*/
/**
* Compose a transaction by doing BIP-0044 discovery, letting the user
* select an account, and picking UTXO by internal preferences.
* Transaction is then signed and returned in the same format as
* `signTx`. Only supports BIP-0044 accounts (single-signature).
*
* @param {array<TxRecipient>} recipients
* @param {function(SignTxResult)} callback
* @param {?(string|array<number>)} requiredFirmware
*/
this.composeAndSignTx = function (recipients, callback, requiredFirmware) {
manager.sendWithChannel(_fwStrFix({
type: 'composetx',
recipients: recipients
}, requiredFirmware), callback);
};
/**
* @typedef RequestLoginResult
* @param {boolean} success
* @param {?string} error
* @param {?string} public_key public key used for signing, in hex
* @param {?string} signature signature, in hex
*/
/**
* Sign a login challenge for active origin.
*
* @param {?string} hosticon
* @param {string} challenge_hidden
* @param {string} challenge_visual
* @param {string|function(RequestLoginResult)} callback
* @param {?(string|array<number>)} requiredFirmware
*
* @see https://github.com/trezor/trezor-common/blob/master/protob/messages.proto
*/
this.requestLogin = function (hosticon, challenge_hidden, challenge_visual, callback, requiredFirmware) {
if (typeof callback === 'string') {
// special case for a login through <trezor:login> button.
// `callback` is name of global var
callback = window[callback];
}
if (!callback) {
throw new TypeError('TrezorConnect: login callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'login',
icon: hosticon,
challenge_hidden: challenge_hidden,
challenge_visual: challenge_visual
}, requiredFirmware), callback);
};
/**
* @typedef SignMessageResult
* @param {boolean} success
* @param {?string} error
* @param {?string} address address (in base58check)
* @param {?string} signature signature, in base64
*/
/**
* Sign a message
*
* @param {string|array} path
* @param {string} message to sign (ascii)
* @param {string|function(SignMessageResult)} callback
* @param {?string} opt_coin - (optional) name of coin (default Bitcoin)
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.signMessage = function (path, message, callback, opt_coin, requiredFirmware) {
if (typeof path === 'string') {
path = parseHDPath(path);
}
if (!opt_coin) {
opt_coin = 'Bitcoin';
}
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'signmsg',
path: path,
message: message,
coin: opt_coin
}, requiredFirmware), callback);
};
/**
* Sign an Ethereum message
*
* @param {string|array} path
* @param {string} message to sign (ascii)
* @param {string|function(SignMessageResult)} callback
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.ethereumSignMessage = function (path, message, callback, requiredFirmware) {
if (typeof path === 'string') {
path = parseHDPath(path);
}
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'signethmsg',
path: path,
message: message
}, requiredFirmware), callback);
};
/**
* Verify message
*
* @param {string} address
* @param {string} signature (base64)
* @param {string} message (string)
* @param {string|function()} callback
* @param {?string} opt_coin - (optional) name of coin (default Bitcoin)
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.verifyMessage = function (address, signature, message, callback, opt_coin, requiredFirmware) {
if (!opt_coin) {
opt_coin = 'Bitcoin';
}
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'verifymsg',
address: address,
signature: signature,
message: message,
coin: { coin_name: opt_coin }
}, requiredFirmware), callback);
};
/**
* Verify ethereum message
*
* @param {string} address
* @param {string} signature (base64)
* @param {string} message (string)
* @param {string|function()} callback
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.ethereumVerifyMessage = function (address, signature, message, callback, requiredFirmware) {
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'verifyethmsg',
address: address,
signature: signature,
message: message
}, requiredFirmware), callback);
};
/**
* Symmetric key-value encryption
*
* @param {string|array} path
* @param {string} key to show on device display
* @param {string} value hexadecimal value, length a multiple of 16 bytes
* @param {boolean} encrypt / decrypt direction
* @param {boolean} ask_on_encrypt (should user confirm on encrypt?)
* @param {boolean} ask_on_decrypt (should user confirm on decrypt?)
* @param {string|function()} callback
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.cipherKeyValue = function (path, key, value, encrypt, ask_on_encrypt, ask_on_decrypt, callback, requiredFirmware) {
if (typeof path === 'string') {
path = parseHDPath(path);
}
if (typeof value !== 'string') {
throw new TypeError('TrezorConnect: Value must be a string');
}
if (!/^[0-9A-Fa-f]*$/.test(value)) {
throw new TypeError('TrezorConnect: Value must be hexadecimal');
}
if (value.length % 32 !== 0) {
// 1 byte == 2 hex strings
throw new TypeError('TrezorConnect: Value length must be multiple of 16 bytes');
}
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel(_fwStrFix({
type: 'cipherkeyvalue',
path: path,
key: key,
value: value,
encrypt: !!encrypt,
ask_on_encrypt: !!ask_on_encrypt,
ask_on_decrypt: !!ask_on_decrypt
}, requiredFirmware), callback);
};
this.nemGetAddress = function (address_n, network, callback, requiredFirmware) {
if (requiredFirmware == null) {
requiredFirmware = '1.6.0'; // first firmware that supports NEM
}
if (typeof address_n === 'string') {
address_n = parseHDPath(address_n);
}
manager.sendWithChannel(_fwStrFix({
type: 'nemGetAddress',
address_n: address_n,
network: network
}, requiredFirmware), callback);
};
this.nemSignTx = function (address_n, transaction, callback, requiredFirmware) {
if (requiredFirmware == null) {
requiredFirmware = '1.6.0'; // first firmware that supports NEM
}
if (typeof address_n === 'string') {
address_n = parseHDPath(address_n);
}
manager.sendWithChannel(_fwStrFix({
type: 'nemSignTx',
address_n: address_n,
transaction: transaction
}, requiredFirmware), callback);
};
this.pushTransaction = function (rawTx, callback) {
if (!/^[0-9A-Fa-f]*$/.test(rawTx)) {
throw new TypeError('TrezorConnect: Transaction must be hexadecimal');
}
if (!callback) {
throw new TypeError('TrezorConnect: callback not found');
}
manager.sendWithChannel({
type: 'pushtx',
rawTx: rawTx
}, callback);
};
/**
* Display address on device
*
* @param {array} address
* @param {string} coin
* @param {boolean} segwit
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.getAddress = function (address, coin, segwit, callback, requiredFirmware) {
if (typeof address === 'string') {
address = parseHDPath(address);
}
manager.sendWithChannel(_fwStrFix({
type: 'getaddress',
address_n: address,
coin: coin,
segwit: segwit
}, requiredFirmware), callback);
};
/**
* Display ethereum address on device
*
* @param {array} address
* @param {?(string|array<number>)} requiredFirmware
*
*/
this.ethereumGetAddress = function (address, callback, requiredFirmware) {
if (typeof address === 'string') {
address = parseHDPath(address);
}
manager.sendWithChannel(_fwStrFix({
type: 'ethgetaddress',
address_n: address
}, requiredFirmware), callback);
};
var LOGIN_CSS = '<style>@import url("@connect_path@/login_buttons.css")</style>';
var LOGIN_ONCLICK = 'TrezorConnect.requestLogin(' + "'@hosticon@','@challenge_hidden@','@challenge_visual@','@callback@'" + ')';
var LOGIN_HTML = '<div id="trezorconnect-wrapper">' + ' <a id="trezorconnect-button" onclick="' + LOGIN_ONCLICK + '">' + ' <span id="trezorconnect-icon"></span>' + ' <span id="trezorconnect-text">@text@</span>' + ' </a>' + ' <span id="trezorconnect-info">' + ' <a id="trezorconnect-infolink" href="https://www.buytrezor.com/"' + ' target="_blank">What is TREZOR?</a>' + ' </span>' + '</div>';
/**
* Find <trezor:login> elements and replace them with login buttons.
* It's not required to use these special elements, feel free to call
* `TrezorConnect.requestLogin` directly.
*/
this.renderLoginButtons = function () {
var elements = document.getElementsByTagName('trezor:login');
for (var i = 0; i < elements.length; i++) {
var e = elements[i];
var text = e.getAttribute('text') || 'Sign in with TREZOR';
var callback = e.getAttribute('callback') || '';
var hosticon = e.getAttribute('icon') || '';
var challenge_hidden = e.getAttribute('challenge_hidden') || '';
var challenge_visual = e.getAttribute('challenge_visual') || '';
// it's not valid to put markup into attributes, so let users
// supply a raw text and make TREZOR bold
text = text.replace('TREZOR', '<strong>TREZOR</strong>');
e.outerHTML = (LOGIN_CSS + LOGIN_HTML).replace('@text@', text).replace('@callback@', callback).replace('@hosticon@', hosticon).replace('@challenge_hidden@', challenge_hidden).replace('@challenge_visual@', challenge_visual).replace('@connect_path@', POPUP_PATH);
}
};
}
/*
* `getXPubKey()`
*/
function parseHDPath(string) {
return string.toLowerCase().split('/').filter(function (p) {
return p !== 'm';
}).map(function (p) {
var hardened = false;
if (p[p.length - 1] === "'") {
hardened = true;
p = p.substr(0, p.length - 1);
}
if (isNaN(p)) {
throw new Error('Not a valid path.');
}
var n = parseInt(p);
if (hardened) {
// hardened index
n = (n | 0x80000000) >>> 0;
}
return n;
});
}
/*
* Popup management
*/
function ChromePopup(url, name, width, height) {
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var opts = {
id: name,
innerBounds: {
width: width,
height: height,
left: left,
top: top
}
};
var closed = function () {
if (this.onclose) {
this.onclose(false); // never report as blocked
}
}.bind(this);
var opened = function (w) {
this.window = w;
this.window.onClosed.addListener(closed);
}.bind(this);
chrome.app.window.create(url, opts, opened);
this.name = name;
this.window = null;
this.onclose = null;
}
function ChromeChannel(popup, waiting) {
var port = null;
var respond = function respond(data) {
if (waiting) {
var w = waiting;
waiting = null;
w(data);
}
};
var setup = function setup(p) {
if (p.name === popup.name) {
port = p;
port.onMessage.addListener(respond);
chrome.runtime.onConnect.removeListener(setup);
}
};
chrome.runtime.onConnect.addListener(setup);
this.respond = respond;
this.close = function () {
chrome.runtime.onConnect.removeListener(setup);
port.onMessage.removeListener(respond);
port.disconnect();
port = null;
};
this.send = function (value, callback) {
if (waiting === null) {
waiting = callback;
if (port) {
port.postMessage(value);
} else {
throw new Error(ERR_CHROME_NOT_CONNECTED);
}
} else {
throw new Error(ERR_ALREADY_WAITING);
}
};
}
function Popup(url, origin, name, width, height) {
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var opts = 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',menubar=no' + ',toolbar=no' + ',location=no' + ',personalbar=no' + ',status=no';
var w = window.open(url, name, opts);
var interval;
var blocked = w.closed;
var iterate = function () {
if (w.closed) {
clearInterval(interval);
if (this.onclose) {
this.onclose(blocked);
}
}
}.bind(this);
interval = setInterval(iterate, 100);
this.window = w;
this.origin = origin;
this.onclose = null;
}
function Channel(popup, waiting) {
var respond = function respond(data) {
if (waiting) {
var w = waiting;
waiting = null;
w(data);
}
};
var receive = function receive(event) {
var org1 = event.origin.match(/^.+\:\/\/[^\/]+/)[0];
var org2 = popup.origin.match(/^.+\:\/\/[^\/]+/)[0];
//if (event.source === popup.window && event.origin === popup.origin) {
if (event.source === popup.window && org1 === org2) {
respond(event.data);
}
};
window.addEventListener('message', receive);
this.respond = respond;
this.close = function () {
window.removeEventListener('message', receive);
};
this.send = function (value, callback) {
if (waiting === null) {
waiting = callback;
popup.window.postMessage(value, popup.origin);
} else {
throw new Error(ERR_ALREADY_WAITING);
}
};
}
function ConnectedChannel(p) {
var ready = function () {
clearTimeout(this.timeout);
this.popup.onclose = null;
this.ready = true;
this.onready();
}.bind(this);
var closed = function (blocked) {
clearTimeout(this.timeout);
this.channel.close();
if (blocked) {
this.onerror(new Error(ERR_WINDOW_BLOCKED));
} else {
this.onerror(new Error(ERR_WINDOW_CLOSED));
}
}.bind(this);
var timedout = function () {
this.popup.onclose = null;
if (this.popup.window) {
this.popup.window.close();
}
this.channel.close();
this.onerror(new Error(ERR_TIMED_OUT));
}.bind(this);
if (IS_CHROME_APP) {
this.popup = new ChromePopup(p.chromeUrl, p.name, p.width, p.height);
this.channel = new ChromeChannel(this.popup, ready);
} else {
this.popup = new Popup(p.url, p.origin, p.name, p.width, p.height);
this.channel = new Channel(this.popup, ready);
}
this.timeout = setTimeout(timedout, POPUP_INIT_TIMEOUT);
this.popup.onclose = closed;
this.ready = false;
this.onready = null;
this.onerror = null;
}
function PopupManager() {
var cc = null;
var closed = function closed() {
cc.channel.respond(new Error(ERR_WINDOW_CLOSED));
cc.channel.close();
cc = null;
};
var open = function (callback) {
cc = new ConnectedChannel({
name: 'trezor-connect',
width: 600,
height: 500,
origin: POPUP_ORIGIN,
path: POPUP_PATH,
url: POPUP_URL,
chromeUrl: CHROME_URL
});
cc.onready = function () {
cc.popup.onclose = closed;
callback(cc.channel);
};
cc.onerror = function (error) {
cc = null;
callback(error);
};
}.bind(this);
this.closeAfterSuccess = true;
this.closeAfterFailure = true;
this.close = function () {
if (cc && cc.popup.window) {
cc.popup.window.close();
}
};
this.waitForChannel = function (callback) {
if (cc) {
if (cc.ready) {
callback(cc.channel);
} else {
callback(new Error(ERR_ALREADY_WAITING));
}
} else {
try {
open(callback);
} catch (e) {
callback(new Error(ERR_WINDOW_BLOCKED));
}
}
};
this.sendWithChannel = function (message, callback) {
message.bitcoreURLS = this.bitcoreURLS || null;
message.accountDiscoveryLimit = this.accountDiscoveryLimit || null;
message.accountDiscoveryGapLength = this.accountDiscoveryGapLength || null;
message.accountDiscoveryBip44CoinType = this.accountDiscoveryBip44CoinType || null;
var respond = function (response) {
var succ = response.success && this.closeAfterSuccess;
var fail = !response.success && this.closeAfterFailure;
if (succ || fail) {
this.close();
}
callback(response);
}.bind(this);
var onresponse = function onresponse(response) {
if (response instanceof Error) {
var error = response;
respond({ success: false, error: error.message });
} else {
respond(response);
}
};
var onchannel = function onchannel(channel) {
if (channel instanceof Error) {
var error = channel;
respond({ success: false, error: error.message });
} else {
channel.send(message, onresponse);
}
};
this.waitForChannel(onchannel);
};
}
var connect = new TrezorConnect();
module.exports = { TrezorConnect: connect };
},{}],94:[function(require,module,exports){
//Copyright 2014-2015 Google Inc. All rights reserved.
//Use of this source code is governed by a BSD-style
//license that can be found in the LICENSE file or at
//https://developers.google.com/open-source/licenses/bsd
/**
* @fileoverview The U2F api.
*/
'use strict';
/**
* Namespace for the U2F api.
* @type {Object}
*/
var u2f = u2f || {};
/**
* FIDO U2F Javascript API Version
* @number
*/
var js_api_version;
/**
* The U2F extension id
* @const {string}
*/
// The Chrome packaged app extension ID.
// Uncomment this if you want to deploy a server instance that uses
// the package Chrome app and does not require installing the U2F Chrome extension.
u2f.EXTENSION_ID = 'kmendfapggjehodndflmmgagdbamhnfd';
// The U2F Chrome extension ID.
// Uncomment this if you want to deploy a server instance that uses
// the U2F Chrome extension to authenticate.
// u2f.EXTENSION_ID = 'pfboblefjcgdjicmnffhdgionmgcdmne';
/**
* Message types for messsages to/from the extension
* @const
* @enum {string}
*/
u2f.MessageTypes = {
'U2F_REGISTER_REQUEST': 'u2f_register_request',
'U2F_REGISTER_RESPONSE': 'u2f_register_response',
'U2F_SIGN_REQUEST': 'u2f_sign_request',
'U2F_SIGN_RESPONSE': 'u2f_sign_response',
'U2F_GET_API_VERSION_REQUEST': 'u2f_get_api_version_request',
'U2F_GET_API_VERSION_RESPONSE': 'u2f_get_api_version_response'
};
/**
* Response status codes
* @const
* @enum {number}
*/
u2f.ErrorCodes = {
'OK': 0,
'OTHER_ERROR': 1,
'BAD_REQUEST': 2,
'CONFIGURATION_UNSUPPORTED': 3,
'DEVICE_INELIGIBLE': 4,
'TIMEOUT': 5
};
u2f.getErrorByCode = function (code) {
for (var prop in u2f.ErrorCodes) {
if (u2f.ErrorCodes.hasOwnProperty(prop)) {
if (u2f.ErrorCodes[prop] === code) return prop;
}
}
};
/**
* A message for registration requests
* @typedef {{
* type: u2f.MessageTypes,
* appId: ?string,
* timeoutSeconds: ?number,
* requestId: ?number
* }}
*/
u2f.U2fRequest;
/**
* A message for registration responses
* @typedef {{
* type: u2f.MessageTypes,
* responseData: (u2f.Error | u2f.RegisterResponse | u2f.SignResponse),
* requestId: ?number
* }}
*/
u2f.U2fResponse;
/**
* An error object for responses
* @typedef {{
* errorCode: u2f.ErrorCodes,
* errorMessage: ?string
* }}
*/
u2f.Error;
/**
* Data object for a single sign request.
* @typedef {enum {BLUETOOTH_RADIO, BLUETOOTH_LOW_ENERGY, USB, NFC}}
*/
u2f.Transport;
/**
* Data object for a single sign request.
* @typedef {Array<u2f.Transport>}
*/
u2f.Transports;
/**
* Data object for a single sign request.
* @typedef {{
* version: string,
* challenge: string,
* keyHandle: string,
* appId: string
* }}
*/
u2f.SignRequest;
/**
* Data object for a sign response.
* @typedef {{
* keyHandle: string,
* signatureData: string,
* clientData: string
* }}
*/
u2f.SignResponse;
/**
* Data object for a registration request.
* @typedef {{
* version: string,
* challenge: string
* }}
*/
u2f.RegisterRequest;
/**
* Data object for a registration response.
* @typedef {{
* version: string,
* keyHandle: string,
* transports: Transports,
* appId: string
* }}
*/
u2f.RegisterResponse;
/**
* Data object for a registered key.
* @typedef {{
* version: string,
* keyHandle: string,
* transports: ?Transports,
* appId: ?string
* }}
*/
u2f.RegisteredKey;
/**
* Data object for a get API register response.
* @typedef {{
* js_api_version: number
* }}
*/
u2f.GetJsApiVersionResponse;
//Low level MessagePort API support
/**
* Sets up a MessagePort to the U2F extension using the
* available mechanisms.
* @param {function((MessagePort|u2f.WrappedChromeRuntimePort_))} callback
*/
u2f.getMessagePort = function (callback) {
if (typeof chrome != 'undefined' && chrome.runtime) {
// The actual message here does not matter, but we need to get a reply
// for the callback to run. Thus, send an empty signature request
// in order to get a failure response.
var msg = {
type: u2f.MessageTypes.U2F_SIGN_REQUEST,
signRequests: []
};
chrome.runtime.sendMessage(u2f.EXTENSION_ID, msg, function () {
if (!chrome.runtime.lastError) {
// We are on a whitelisted origin and can talk directly
// with the extension.
u2f.getChromeRuntimePort_(callback);
} else {
// chrome.runtime was available, but we couldn't message
// the extension directly, use iframe
u2f.getIframePort_(callback);
}
});
} else if (u2f.isAndroidChrome_()) {
u2f.getAuthenticatorPort_(callback);
} else if (u2f.isIosChrome_()) {
u2f.getIosPort_(callback);
} else {
// chrome.runtime was not available at all, which is normal
// when this origin doesn't have access to any extensions.
u2f.getIframePort_(callback);
}
};
/**
* Detect chrome running on android based on the browser's useragent.
* @private
*/
u2f.isAndroidChrome_ = function () {
var userAgent = navigator.userAgent;
return userAgent.indexOf('Chrome') != -1 && userAgent.indexOf('Android') != -1;
};
/**
* Detect chrome running on iOS based on the browser's platform.
* @private
*/
u2f.isIosChrome_ = function () {
return $.inArray(navigator.platform, ["iPhone", "iPad", "iPod"]) > -1;
};
/**
* Connects directly to the extension via chrome.runtime.connect.
* @param {function(u2f.WrappedChromeRuntimePort_)} callback
* @private
*/
u2f.getChromeRuntimePort_ = function (callback) {
var port = chrome.runtime.connect(u2f.EXTENSION_ID, { 'includeTlsChannelId': true });
setTimeout(function () {
callback(new u2f.WrappedChromeRuntimePort_(port));
}, 0);
};
/**
* Return a 'port' abstraction to the Authenticator app.
* @param {function(u2f.WrappedAuthenticatorPort_)} callback
* @private
*/
u2f.getAuthenticatorPort_ = function (callback) {
setTimeout(function () {
callback(new u2f.WrappedAuthenticatorPort_());
}, 0);
};
/**
* Return a 'port' abstraction to the iOS client app.
* @param {function(u2f.WrappedIosPort_)} callback
* @private
*/
u2f.getIosPort_ = function (callback) {
setTimeout(function () {
callback(new u2f.WrappedIosPort_());
}, 0);
};
/**
* A wrapper for chrome.runtime.Port that is compatible with MessagePort.
* @param {Port} port
* @constructor
* @private
*/
u2f.WrappedChromeRuntimePort_ = function (port) {
this.port_ = port;
};
/**
* Format and return a sign request compliant with the JS API version supported by the extension.
* @param {Array<u2f.SignRequest>} signRequests
* @param {number} timeoutSeconds
* @param {number} reqId
* @return {Object}
*/
u2f.formatSignRequest_ = function (appId, challenge, registeredKeys, timeoutSeconds, reqId) {
if (js_api_version === undefined || js_api_version < 1.1) {
// Adapt request to the 1.0 JS API
var signRequests = [];
for (var i = 0; i < registeredKeys.length; i++) {
signRequests[i] = {
version: registeredKeys[i].version,
challenge: challenge,
keyHandle: registeredKeys[i].keyHandle,
appId: appId
};
}
return {
type: u2f.MessageTypes.U2F_SIGN_REQUEST,
signRequests: signRequests,
timeoutSeconds: timeoutSeconds,
requestId: reqId
};
}
// JS 1.1 API
return {
type: u2f.MessageTypes.U2F_SIGN_REQUEST,
appId: appId,
challenge: challenge,
registeredKeys: registeredKeys,
timeoutSeconds: timeoutSeconds,
requestId: reqId
};
};
/**
* Format and return a register request compliant with the JS API version supported by the extension..
* @param {Array<u2f.SignRequest>} signRequests
* @param {Array<u2f.RegisterRequest>} signRequests
* @param {number} timeoutSeconds
* @param {number} reqId
* @return {Object}
*/
u2f.formatRegisterRequest_ = function (appId, registeredKeys, registerRequests, timeoutSeconds, reqId) {
if (js_api_version === undefined || js_api_version < 1.1) {
// Adapt request to the 1.0 JS API
for (var i = 0; i < registerRequests.length; i++) {
registerRequests[i].appId = appId;
}
var signRequests = [];
for (var i = 0; i < registeredKeys.length; i++) {
signRequests[i] = {
version: registeredKeys[i].version,
challenge: registerRequests[0],
keyHandle: registeredKeys[i].keyHandle,
appId: appId
};
}
return {
type: u2f.MessageTypes.U2F_REGISTER_REQUEST,
signRequests: signRequests,
registerRequests: registerRequests,
timeoutSeconds: timeoutSeconds,
requestId: reqId
};
}
// JS 1.1 API
return {
type: u2f.MessageTypes.U2F_REGISTER_REQUEST,
appId: appId,
registerRequests: registerRequests,
registeredKeys: registeredKeys,
timeoutSeconds: timeoutSeconds,
requestId: reqId
};
};
/**
* Posts a message on the underlying channel.
* @param {Object} message
*/
u2f.WrappedChromeRuntimePort_.prototype.postMessage = function (message) {
this.port_.postMessage(message);
};
/**
* Emulates the HTML 5 addEventListener interface. Works only for the
* onmessage event, which is hooked up to the chrome.runtime.Port.onMessage.
* @param {string} eventName
* @param {function({data: Object})} handler
*/
u2f.WrappedChromeRuntimePort_.prototype.addEventListener = function (eventName, handler) {
var name = eventName.toLowerCase();
if (name == 'message' || name == 'onmessage') {
this.port_.onMessage.addListener(function (message) {
// Emulate a minimal MessageEvent object
handler({ 'data': message });
});
} else {
console.error('WrappedChromeRuntimePort only supports onMessage');
}
};
/**
* Wrap the Authenticator app with a MessagePort interface.
* @constructor
* @private
*/
u2f.WrappedAuthenticatorPort_ = function () {
this.requestId_ = -1;
this.requestObject_ = null;
};
/**
* Launch the Authenticator intent.
* @param {Object} message
*/
u2f.WrappedAuthenticatorPort_.prototype.postMessage = function (message) {
var intentUrl = u2f.WrappedAuthenticatorPort_.INTENT_URL_BASE_ + ';S.request=' + encodeURIComponent(JSON.stringify(message)) + ';end';
document.location = intentUrl;
};
/**
* Tells what type of port this is.
* @return {String} port type
*/
u2f.WrappedAuthenticatorPort_.prototype.getPortType = function () {
return "WrappedAuthenticatorPort_";
};
/**
* Emulates the HTML 5 addEventListener interface.
* @param {string} eventName
* @param {function({data: Object})} handler
*/
u2f.WrappedAuthenticatorPort_.prototype.addEventListener = function (eventName, handler) {
var name = eventName.toLowerCase();
if (name == 'message') {
var self = this;
/* Register a callback to that executes when
* chrome injects the response. */
window.addEventListener('message', self.onRequestUpdate_.bind(self, handler), false);
} else {
console.error('WrappedAuthenticatorPort only supports message');
}
};
/**
* Callback invoked when a response is received from the Authenticator.
* @param function({data: Object}) callback
* @param {Object} message message Object
*/
u2f.WrappedAuthenticatorPort_.prototype.onRequestUpdate_ = function (callback, message) {
var messageObject = JSON.parse(message.data);
var intentUrl = messageObject['intentURL'];
var errorCode = messageObject['errorCode'];
var responseObject = null;
if (messageObject.hasOwnProperty('data')) {
responseObject = /** @type {Object} */JSON.parse(messageObject['data']);
}
callback({ 'data': responseObject });
};
/**
* Base URL for intents to Authenticator.
* @const
* @private
*/
u2f.WrappedAuthenticatorPort_.INTENT_URL_BASE_ = 'intent:#Intent;action=com.google.android.apps.authenticator.AUTHENTICATE';
/**
* Wrap the iOS client app with a MessagePort interface.
* @constructor
* @private
*/
u2f.WrappedIosPort_ = function () {};
/**
* Launch the iOS client app request
* @param {Object} message
*/
u2f.WrappedIosPort_.prototype.postMessage = function (message) {
var str = JSON.stringify(message);
var url = "u2f://auth?" + encodeURI(str);
location.replace(url);
};
/**
* Tells what type of port this is.
* @return {String} port type
*/
u2f.WrappedIosPort_.prototype.getPortType = function () {
return "WrappedIosPort_";
};
/**
* Emulates the HTML 5 addEventListener interface.
* @param {string} eventName
* @param {function({data: Object})} handler
*/
u2f.WrappedIosPort_.prototype.addEventListener = function (eventName, handler) {
var name = eventName.toLowerCase();
if (name !== 'message') {
console.error('WrappedIosPort only supports message');
}
};
/**
* Sets up an embedded trampoline iframe, sourced from the extension.
* @param {function(MessagePort)} callback
* @private
*/
u2f.getIframePort_ = function (callback) {
// Create the iframe
var iframeOrigin = 'chrome-extension://' + u2f.EXTENSION_ID;
var iframe = document.createElement('iframe');
iframe.src = iframeOrigin + '/u2f-comms.html';
iframe.setAttribute('style', 'display:none');
document.body.appendChild(iframe);
var channel = new MessageChannel();
var ready = function ready(message) {
if (message.data == 'ready') {
channel.port1.removeEventListener('message', ready);
callback(channel.port1);
} else {
console.error('First event on iframe port was not "ready"');
}
};
channel.port1.addEventListener('message', ready);
channel.port1.start();
iframe.addEventListener('load', function () {
// Deliver the port to the iframe and initialize
iframe.contentWindow.postMessage('init', iframeOrigin, [channel.port2]);
});
};
//High-level JS API
/**
* Default extension response timeout in seconds.
* @const
*/
u2f.EXTENSION_TIMEOUT_SEC = 30;
/**
* A singleton instance for a MessagePort to the extension.
* @type {MessagePort|u2f.WrappedChromeRuntimePort_}
* @private
*/
u2f.port_ = null;
/**
* Callbacks waiting for a port
* @type {Array<function((MessagePort|u2f.WrappedChromeRuntimePort_))>}
* @private
*/
u2f.waitingForPort_ = [];
/**
* A counter for requestIds.
* @type {number}
* @private
*/
u2f.reqCounter_ = 0;
/**
* A map from requestIds to client callbacks
* @type {Object.<number,(function((u2f.Error|u2f.RegisterResponse))
* |function((u2f.Error|u2f.SignResponse)))>}
* @private
*/
u2f.callbackMap_ = {};
/**
* Creates or retrieves the MessagePort singleton to use.
* @param {function((MessagePort|u2f.WrappedChromeRuntimePort_))} callback
* @private
*/
u2f.getPortSingleton_ = function (callback) {
if (u2f.port_) {
callback(u2f.port_);
} else {
if (u2f.waitingForPort_.length == 0) {
u2f.getMessagePort(function (port) {
u2f.port_ = port;
u2f.port_.addEventListener('message',
/** @type {function(Event)} */u2f.responseHandler_);
// Careful, here be async callbacks. Maybe.
while (u2f.waitingForPort_.length) {
u2f.waitingForPort_.shift()(u2f.port_);
}
});
}
u2f.waitingForPort_.push(callback);
}
};
/**
* Handles response messages from the extension.
* @param {MessageEvent.<u2f.Response>} message
* @private
*/
u2f.responseHandler_ = function (message) {
var response = message.data;
var reqId = response['requestId'];
if (!reqId || !u2f.callbackMap_[reqId]) {
console.error('Unknown or missing requestId in response.');
return;
}
var cb = u2f.callbackMap_[reqId];
delete u2f.callbackMap_[reqId];
cb(response['responseData']);
};
/**
* Dispatches an array of sign requests to available U2F tokens.
* If the JS API version supported by the extension is unknown, it first sends a
* message to the extension to find out the supported API version and then it sends
* the sign request.
* @param {string=} appId
* @param {string=} challenge
* @param {Array<u2f.RegisteredKey>} registeredKeys
* @param {function((u2f.Error|u2f.SignResponse))} callback
* @param {number=} opt_timeoutSeconds
*/
u2f.sign = function (appId, challenge, registeredKeys, callback, opt_timeoutSeconds) {
if (js_api_version === undefined) {
// Send a message to get the extension to JS API version, then send the actual sign request.
u2f.getApiVersion(function (response) {
js_api_version = response['js_api_version'] === undefined ? 0 : response['js_api_version'];
console.log("Extension JS API Version: ", js_api_version);
u2f.sendSignRequest(appId, challenge, registeredKeys, callback, opt_timeoutSeconds);
});
} else {
// We know the JS API version. Send the actual sign request in the supported API version.
u2f.sendSignRequest(appId, challenge, registeredKeys, callback, opt_timeoutSeconds);
}
};
/**
* Dispatches an array of sign requests to available U2F tokens.
* @param {string=} appId
* @param {string=} challenge
* @param {Array<u2f.RegisteredKey>} registeredKeys
* @param {function((u2f.Error|u2f.SignResponse))} callback
* @param {number=} opt_timeoutSeconds
*/
u2f.sendSignRequest = function (appId, challenge, registeredKeys, callback, opt_timeoutSeconds) {
u2f.getPortSingleton_(function (port) {
var reqId = ++u2f.reqCounter_;
u2f.callbackMap_[reqId] = callback;
var timeoutSeconds = typeof opt_timeoutSeconds !== 'undefined' ? opt_timeoutSeconds : u2f.EXTENSION_TIMEOUT_SEC;
var req = u2f.formatSignRequest_(appId, challenge, registeredKeys, timeoutSeconds, reqId);
port.postMessage(req);
});
};
/**
* Dispatches register requests to available U2F tokens. An array of sign
* requests identifies already registered tokens.
* If the JS API version supported by the extension is unknown, it first sends a
* message to the extension to find out the supported API version and then it sends
* the register request.
* @param {string=} appId
* @param {Array<u2f.RegisterRequest>} registerRequests
* @param {Array<u2f.RegisteredKey>} registeredKeys
* @param {function((u2f.Error|u2f.RegisterResponse))} callback
* @param {number=} opt_timeoutSeconds
*/
u2f.register = function (appId, registerRequests, registeredKeys, callback, opt_timeoutSeconds) {
if (js_api_version === undefined) {
// Send a message to get the extension to JS API version, then send the actual register request.
u2f.getApiVersion(function (response) {
js_api_version = response['js_api_version'] === undefined ? 0 : response['js_api_version'];
console.log("Extension JS API Version: ", js_api_version);
u2f.sendRegisterRequest(appId, registerRequests, registeredKeys, callback, opt_timeoutSeconds);
});
} else {
// We know the JS API version. Send the actual register request in the supported API version.
u2f.sendRegisterRequest(appId, registerRequests, registeredKeys, callback, opt_timeoutSeconds);
}
};
/**
* Dispatches register requests to available U2F tokens. An array of sign
* requests identifies already registered tokens.
* @param {string=} appId
* @param {Array<u2f.RegisterRequest>} registerRequests
* @param {Array<u2f.RegisteredKey>} registeredKeys
* @param {function((u2f.Error|u2f.RegisterResponse))} callback
* @param {number=} opt_timeoutSeconds
*/
u2f.sendRegisterRequest = function (appId, registerRequests, registeredKeys, callback, opt_timeoutSeconds) {
u2f.getPortSingleton_(function (port) {
var reqId = ++u2f.reqCounter_;
u2f.callbackMap_[reqId] = callback;
var timeoutSeconds = typeof opt_timeoutSeconds !== 'undefined' ? opt_timeoutSeconds : u2f.EXTENSION_TIMEOUT_SEC;
var req = u2f.formatRegisterRequest_(appId, registeredKeys, registerRequests, timeoutSeconds, reqId);
port.postMessage(req);
});
};
/**
* Dispatches a message to the extension to find out the supported
* JS API version.
* If the user is on a mobile phone and is thus using Google Authenticator instead
* of the Chrome extension, don't send the request and simply return 0.
* @param {function((u2f.Error|u2f.GetJsApiVersionResponse))} callback
* @param {number=} opt_timeoutSeconds
*/
u2f.getApiVersion = function (callback, opt_timeoutSeconds) {
u2f.getPortSingleton_(function (port) {
// If we are using Android Google Authenticator or iOS client app,
// do not fire an intent to ask which JS API version to use.
if (port.getPortType) {
var apiVersion;
switch (port.getPortType()) {
case 'WrappedIosPort_':
case 'WrappedAuthenticatorPort_':
apiVersion = 1.1;
break;
default:
apiVersion = 0;
break;
}
callback({ 'js_api_version': apiVersion });
return;
}
var reqId = ++u2f.reqCounter_;
u2f.callbackMap_[reqId] = callback;
var req = {
type: u2f.MessageTypes.U2F_GET_API_VERSION_REQUEST,
timeoutSeconds: typeof opt_timeoutSeconds !== 'undefined' ? opt_timeoutSeconds : u2f.EXTENSION_TIMEOUT_SEC,
requestId: reqId
};
port.postMessage(req);
});
};
module.exports = u2f;
},{}],95:[function(require,module,exports){
'use strict';
var Token = function Token(contractAddress, userAddress, symbol, decimal, type) {
this.contractAddress = contractAddress;
this.userAddress = userAddress;
this.symbol = symbol;
this.decimal = decimal;
this.type = type;
this.balance = "Click to Load";
};
Token.balanceHex = "0x70a08231";
Token.transferHex = "0xa9059cbb";
Token.popTokens = [];
Token.prototype.getContractAddress = function () {
return this.contractAddress;
};
Token.prototype.getUserAddress = function () {
return this.userAddress;
};
Token.prototype.setUserAddress = function (address) {
this.userAddress = address;
};
Token.prototype.getSymbol = function () {
return this.symbol;
};
Token.prototype.getDecimal = function () {
return this.decimal;
};
Token.prototype.getBalance = function () {
return this.balance;
};
Token.prototype.getBalanceBN = function () {
return this.balanceBN;
};
Token.prototype.setBalance = function (callback) {
var balanceCall = ethFuncs.getDataObj(this.contractAddress, Token.balanceHex, [ethFuncs.getNakedAddress(this.userAddress)]);
var parentObj = this;
ajaxReq.getEthCall(balanceCall, function (data) {
try {
if (!data.error) {
parentObj.balance = new BigNumber(data.data).div(new BigNumber(10).pow(parentObj.getDecimal())).toString();
parentObj.balanceBN = new BigNumber(data.data).toString();
if (callback) callback();
}
} catch (e) {
parentObj.balance = globalFuncs.errorMsgs[20];
parentObj.balanceBN = '0';
}
});
};
Token.getTokenByAddress = function (toAdd) {
toAdd = ethFuncs.sanitizeHex(toAdd);
for (var i = 0; i < Token.popTokens.length; i++) {
if (toAdd.toLowerCase() == Token.popTokens[i].address.toLowerCase()) return Token.popTokens[i];
}
return {
"address": toAdd,
"symbol": "Unknown",
"decimal": 0,
"type": "default"
};
};
Token.prototype.getData = function (toAdd, value) {
try {
if (!ethFuncs.validateEtherAddress(toAdd)) throw globalFuncs.errorMsgs[5];else if (!globalFuncs.isNumeric(value) || parseFloat(value) < 0) throw globalFuncs.errorMsgs[7];
var value = ethFuncs.padLeft(new BigNumber(value).times(new BigNumber(10).pow(this.getDecimal())).toString(16), 64);
var toAdd = ethFuncs.padLeft(ethFuncs.getNakedAddress(toAdd), 64);
var data = Token.transferHex + toAdd + value;
return {
isError: false,
data: data
};
} catch (e) {
return {
isError: true,
error: e
};
}
};
module.exports = Token;
},{}],96:[function(require,module,exports){
arguments[4][6][0].apply(exports,arguments)
},{"dup":6}],97:[function(require,module,exports){
module.exports=[
{
"address":"0x6F6DEb5db0C4994A8283A01D6CFeEB27Fc3bBe9C",
"symbol":"Smart",
"decimal":0,
"type":"default"
},{
"address":"0x085fb4f24031eaedbc2b611aa528f22343eb52db",
"symbol":"BEC",
"decimal":8,
"type":"default"
}
]
},{}],98:[function(require,module,exports){
module.exports=[{
"address":"0xfdbc1adc26f0f8f8606a5d63b7d3a3cd21c22b23",
"symbol":"1WO",
"decimal":8,
"type":"default"
},{
"address":"0xAf30D2a7E90d7DC361c8C4585e9BB7D2F6f15bc7",
"symbol":"1ST",
"decimal":18,
"type":"default"
},{
"address":"0xaEc98A708810414878c3BCDF46Aad31dEd4a4557",
"symbol":"300",
"decimal":18,
"type":"default"
},{
"address":"0x13f1b7fdfbe1fc66676d56483e21b1ecb40b58e2",
"symbol":"ACC",
"decimal":18,
"type":"default"
},{
"address":"0x422866a8F0b032c5cf1DfBDEf31A20F4509562b0",
"symbol":"ADST",
"decimal":0,
"type":"default"
},{
"address":"0xD0D6D6C5Fe4a677D343cC433536BB717bAe167dD",
"symbol":"ADT",
"decimal":9,
"type":"default"
},{
"address":"0x4470BB87d77b963A013DB939BE332f927f2b992e",
"symbol":"ADX",
"decimal":4,
"type":"default"
},{
"address":"0x27dce1ec4d3f72c3e457cc50354f1f975ddef488",
"symbol":"AIR",
"decimal":8,
"type":"default"
},{
"address":"0x1063ce524265d5a3A624f4914acd573dD89ce988",
"symbol":"AIX",
"decimal":18,
"type":"default"
},{
"address":"0xEA610B1153477720748DC13ED378003941d84fAB",
"symbol":"ALIS",
"decimal":18,
"type":"default"
},{
"address":"0x181a63746d3adcf356cbc73ace22832ffbb1ee5a",
"symbol":"ALCO",
"decimal":8,
"type":"default"
},{
"address":"0x638ac149ea8ef9a1286c41b977017aa7359e6cfa",
"symbol":"ALTS",
"decimal":18,
"type":"default"
},{
"address":"0x4dc3643dbc642b72c158e7f3d2ff232df61cb6ce",
"symbol":"AMB",
"decimal":18,
"type":"default"
},{
"address":"0x949bed886c739f1a3273629b3320db0c5024c719",
"symbol":"AMIS",
"decimal":9,
"type":"default"
},{
"address":"0x960b236A07cf122663c4303350609A66A7B288C0",
"symbol":"ANT",
"decimal":18,
"type":"default"
},{
"address":"0x1a7a8bd9106f2b8d977e08582dc7d24c723ab0db",
"symbol":"APPC",
"decimal":18,
"type":"default"
},{
"address":"0x23ae3c5b39b12f0693e05435eeaa1e51d8c61530",
"symbol":"APT",
"decimal":18,
"type":"default"
},{
"address":"0xAc709FcB44a43c35F0DA4e3163b117A17F3770f5",
"symbol":"ARC",
"decimal":18,
"type":"default"
},{
"address":"0x1245ef80f4d9e02ed9425375e8f649b9221b31d8",
"symbol":"ARCT",
"decimal":8,
"type":"default"
},{
"address":"0xBA5F11b16B155792Cf3B2E6880E8706859A8AEB6",
"symbol":"ARN",
"decimal":8,
"type":"default"
},{
"address":"0xfec0cF7fE078a500abf15F1284958F22049c2C7e",
"symbol":"ART",
"decimal":18,
"type":"default"
},{
"address":"0x7705FaA34B16EB6d77Dfc7812be2367ba6B0248e",
"symbol":"ARX",
"decimal":8,
"type":"default"
},{
"address":"0x27054b13b1B798B345b591a4d22e6562d47eA75a",
"symbol":"AST",
"decimal":4,
"type":"default"
},{
"address":"0x17052d51E954592C1046320c2371AbaB6C73Ef10",
"symbol":"ATH",
"decimal":18,
"type":"default"
},{
"address":"0x78B7FADA55A64dD895D8c8c35779DD8b67fA8a05",
"symbol":"ATL",
"decimal":18,
"type":"default"
},{
"address":"0x887834d3b8d450b6bab109c252df3da286d73ce4",
"symbol":"ATT",
"decimal":18,
"type":"default"
},{
"address":"0xeD247980396B10169BB1d36f6e278eD16700a60f",
"symbol":"AVA",
"decimal":4,
"type":"default"
},{
"address":"0x0d88ed6e74bbfd96b831231638b66c05571e824f",
"symbol":"AVT",
"decimal":18,
"type":"default"
},{
"address":"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
"symbol":"BAT",
"decimal":18,
"type":"default"
},{
"address":"0x1e797Ce986C3CFF4472F7D38d5C4aba55DfEFE40",
"symbol":"BCDN",
"decimal":15,
"type":"default"
},{
"address":"0xacfa209fb73bf3dd5bbfb1101b9bc999c49062a5",
"symbol":"BCDT",
"decimal":18,
"type":"default"
},{
"address":"0xbc1234552EBea32B5121190356bBa6D3Bb225bb5",
"symbol":"BCL",
"decimal":18,
"type":"default"
},{
"address":"0x1c4481750daa5Ff521A2a7490d9981eD46465Dbd",
"symbol":"BCPT",
"decimal":18,
"type":"default"
},{
"address":"0x3A0181e8f2DD081ace83EaC027EEC2E0c2255Ed5",
"symbol":"BCV",
"decimal":2,
"type":"default"
},{
"address":"0x74C1E4b8caE59269ec1D85D3D4F324396048F4ac",
"symbol":"BeerCoin",
"decimal":0,
"type":"default"
},{
"address":"0x8aA33A7899FCC8eA5fBe6A608A109c3893A1B8b2",
"symbol":"BET",
"decimal":18,
"type":"default"
},{
"address":"0xb2bfeb70b903f1baac7f2ba2c62934c7e5b974c4",
"symbol":"BKB",
"decimal":8,
"type":"default"
},{
"address":"0x107c4504cd79C5d2696Ea0030a8dD4e92601B82e",
"symbol":"BLT",
"decimal":18,
"type":"default"
},{
"address":"0xce59d29b09aae565feeef8e52f47c3cd5368c663",
"symbol":"BLX Bullion Crypto",
"decimal":18,
"type":"default"
},{
"address":"0xE5a7c12972f3bbFe70ed29521C8949b8Af6a0970",
"symbol":"BLX Iconomi",
"decimal":18,
"type":"default"
},{
"address":"0xdf6ef343350780bf8c3410bf062e0c015b1dd671",
"symbol":"BMC",
"decimal":8,
"type":"default"
},{
"address":"0xf028adee51533b1b47beaa890feb54a457f51e89",
"symbol":"BMT",
"decimal":18,
"type":"default"
},{
"address":"0x986EE2B944c42D017F52Af21c4c69B84DBeA35d8",
"symbol":"BMX",
"decimal":18,
"type":"default"
},{
"address":"0xb8c77482e45f1f44de1745f52c74426c631bdd52",
"symbol":"BNB",
"decimal":18,
"type":"default"
},{
"address":"0xdD6Bf56CA2ada24c683FAC50E37783e55B57AF9F",
"symbol":"BNC",
"decimal":12,
"type":"default"
},{
"address":"0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C",
"symbol":"BNT",
"decimal":18,
"type":"default"
},{
"address":"0xd2d6158683aee4cc838067727209a0aaf4359de3",
"symbol":"BNTY",
"decimal":18,
"type":"default"
},{
"address":"0xCc34366E3842cA1BD36c1f324d15257960fCC801",
"symbol":"BON",
"decimal":18,
"type":"default"
},{
"address":"0x7f1e2c7d6a69bf34824d72c53b4550e895c0d8c2",
"symbol":"BOP",
"decimal":8,
"type":"default"
},{
"address":"0xC2C63F23ec5E97efbD7565dF9Ec764FDc7d4e91d",
"symbol":"BOU",
"decimal":18,
"type":"default"
},{
"address":"0x5Af2Be193a6ABCa9c8817001F45744777Db30756",
"symbol":"BQX",
"decimal":8,
"type":"default"
},{
"address":"0x9E77D5a1251b6F7D456722A6eaC6D2d5980bd891",
"symbol":"BRAT",
"decimal":8,
"type":"default"
},{
"address":"0xf26ef5e0545384b7dcc0f297f2674189586830df",
"symbol":"BSDC",
"decimal":18,
"type":"default"
},{
"address":"0x0886949c1b8C412860c4264Ceb8083d1365e86CF",
"symbol":"BTCE",
"decimal":8,
"type":"default"
},{
"address":"0x73dd069c299a5d691e9836243bcaec9c8c1d8734",
"symbol":"BTE",
"decimal":8,
"type":"default"
},{
"address":"0xfad572db566e5234ac9fc3d570c4edc0050eaa92",
"symbol":"BTH",
"decimal":18,
"type":"default"
},{
"address":"0x2accaB9cb7a48c3E82286F0b2f8798D201F4eC3f",
"symbol":"BTL (Battle)",
"decimal":18,
"type":"default"
},{
"address":"0x92685E93956537c25Bb75D5d47fca4266dd628B8",
"symbol":"BTL (Bitlle)",
"decimal":4,
"type":"default"
},{
"address":"0xcb97e65f07da24d46bcdd078ebebd7c6e6e3d750",
"symbol":"BTM",
"decimal":8,
"type":"default"
},{
"address":"0x26E75307Fc0C021472fEb8F727839531F112f317",
"symbol":"C20",
"decimal":18,
"type":"default"
},{
"address":"0x7d4b8Cce0591C9044a22ee543533b72E976E36C3",
"symbol":"CAG",
"decimal":18,
"type":"default"
},{
"address":"0x1d462414fe14cf489c7A21CaC78509f4bF8CD7c0",
"symbol":"CAN",
"decimal":6,
"type":"default"
},{
"address":"0x423e4322cdda29156b49a17dfbd2acc4b280600d",
"symbol":"CAR",
"decimal":9,
"type":"default"
},{
"address":"0x1234567461d3f8db7496581774bd869c83d51c93",
"symbol":"CAT (BitClave)",
"decimal":18,
"type":"default"
},{
"address":"0x68e14bb5A45B9681327E16E528084B9d962C1a39",
"symbol":"CATs (BitClave)_Old",
"decimal":18,
"type":"default"
},{
"address":"0x56ba2Ee7890461f463F7be02aAC3099f6d5811A8",
"symbol":"CAT (Blockcat)",
"decimal":18,
"type":"default"
},{
"address":"0xc166038705FFBAb3794185b3a9D925632A1DF37D",
"symbol":"CC3",
"decimal":18,
"type":"default"
},{
"address":"0x28577A6d31559bd265Ce3ADB62d0458550F7b8a7",
"symbol":"CCC",
"decimal":18,
"type":"default"
},{
"address":"0x8a95ca448A52C0ADf0054bB3402dC5e09CD6B232",
"symbol":"CDL",
"decimal":18,
"type":"default"
},{
"address":"0x177d39AC676ED1C67A2b268AD7F1E58826E5B0af",
"symbol":"CDT",
"decimal":18,
"type":"default"
},{
"address":"0x6fFF3806Bbac52A20e0d79BC538d527f6a22c96b",
"symbol":"CDX",
"decimal":18,
"type":"default"
},{
"address":"0x12FEF5e57bF45873Cd9B62E9DBd7BFb99e32D73e",
"symbol":"CFI",
"decimal":18,
"type":"default"
},{
"address":"0x06012c8cf97bead5deae237070f9587f8e7a266d",
"symbol":"CK",
"decimal":0,
"type":"default"
},{
"address":"0x7fce2856899a6806eeef70807985fc7554c66340",
"symbol":"CLP",
"decimal":9,
"type":"default"
},{
"address":"0x7e667525521cF61352e2E01b50FaaaE7Df39749a",
"symbol":"CMC",
"decimal":18,
"type":"default"
},{
"address":"0xf85fEea2FdD81d51177F6b8F35F0e6734Ce45F5F",
"symbol":"CMT",
"decimal":18,
"type":"default"
},{
"address":"0xB4b1D2C217EC0776584CE08D3DD98F90EDedA44b",
"symbol":"CO2",
"decimal":18,
"type":"default"
},{
"address":"0xb2f7eb1f2c37645be61d73953035360e768d81e6",
"symbol":"COB",
"decimal":18,
"type":"default"
},{
"address":"0x65292eeadf1426cd2df1c4793a3d7519f253913b",
"symbol":"COSS",
"decimal":18,
"type":"default"
},{
"address":"0xAef38fBFBF932D1AeF3B808Bc8fBd8Cd8E1f8BC5",
"symbol":"CRB",
"decimal":8,
"type":"default"
},{
"address":"0x672a1AD4f667FB18A333Af13667aa0Af1F5b5bDD",
"symbol":"CRED",
"decimal":18,
"type":"default"
},{
"address":"0x4e0603e2a27a30480e5e3a4fe548e29ef12f64be",
"symbol":"CREDO",
"decimal":18,
"type":"default"
},{
"address":"0x80a7e048f37a50500351c204cb407766fa3bae7f",
"symbol":"CRPT",
"decimal":18,
"type":"default"
},{
"address":"0xE4c94d45f7Aef7018a5D66f44aF780ec6023378e",
"symbol":"CryptoCarbon",
"decimal":6,
"type":"default"
},{
"address":"0xbf4cfd7d1edeeea5f6600827411b41a21eb08abd",
"symbol":"CTL",
"decimal":2,
"type":"default"
},{
"address":"0xE3Fa177AcecfB86721Cf6f9f4206bd3Bd672D7d5",
"symbol":"CTT",
"decimal":18,
"type":"default"
},{
"address":"0x662aBcAd0b7f345AB7FfB1b1fbb9Df7894f18e66",
"symbol":"CTX",
"decimal":18,
"type":"default"
},{
"address":"0x41e5560054824ea6b0732e656e3ad64e20e94e45",
"symbol":"CVC",
"decimal":8,
"type":"default"
},{
"address":"0xdab0C31BF34C897Fb0Fe90D12EC9401caf5c36Ec",
"symbol":"DAB",
"decimal":0,
"type":"default"
},{
"address":"0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359",
"symbol":"DAI",
"decimal":18,
"type":"default"
},{
"address":"0x07d9e49ea402194bf48a8276dafb16e4ed633317",
"symbol":"DALC",
"decimal":8,
"type":"default"
},{
"address":"0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413",
"symbol":"DAO",
"decimal":16,
"type":"default"
},{
"address":"0x81c9151de0c8bafcd325a57e3db5a5df1cebf79c",
"symbol":"DAT",
"decimal":18,
"type":"default"
},{
"address":"0x1b5f21ee98eed48d292e8e2d3ed82b40a9728a22",
"symbol":"DATABroker",
"decimal":18,
"type":"default"
},{
"address":"0x0cf0ee63788a0849fe5297f3407f701e122cc023",
"symbol":"DATACoin",
"decimal":18,
"type":"default"
},{
"address":"0x399A0e6FbEb3d74c85357439f4c8AeD9678a5cbF",
"symbol":"DCL",
"decimal":3,
"type":"default"
},{
"address":"0x08d32b0da63e2C3bcF8019c9c5d849d7a9d791e6",
"symbol":"DCN",
"decimal":0,
"type":"default"
},{
"address":"0xcC4eF9EEAF656aC1a2Ab886743E98e97E090ed38",
"symbol":"DDF",
"decimal":18,
"type":"default"
},{
"address":"0x3597bfd533a99c9aa083587b074434e61eb0a258",
"symbol":"DENT",
"decimal":8,
"type":"default"
},{
"address":"0xdd94De9cFE063577051A5eb7465D08317d8808B6",
"symbol":"Devcon2 Token",
"decimal":0,
"type":"default"
},{
"address":"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A",
"symbol":"DGD",
"decimal":9,
"type":"default"
},{
"address":"0x55b9a11c2e8351b4Ffc7b11561148bfaC9977855",
"symbol":"DGX",
"decimal":9,
"type":"default"
},{
"address":"0x2e071D2966Aa7D8dECB1005885bA1977D6038A65",
"symbol":"DICE",
"decimal":16,
"type":"default"
},{
"address":"0x13f11C9905A08ca76e3e853bE63D4f0944326C72",
"symbol":"DIVX",
"decimal":18,
"type":"default"
},{
"address":"0x07e3c70653548b04f0a75970c1f81b4cbbfb606f",
"symbol":"DLT",
"decimal":18,
"type":"default"
},{
"address":"0x2ccbFF3A042c68716Ed2a2Cb0c544A9f1d1935E1",
"symbol":"DMT",
"decimal":8,
"type":"default"
},{
"address":"0x0abdace70d3790235af448c88547603b945604ea",
"symbol":"DNT",
"decimal":18,
"type":"default"
},{
"address":"0xE43E2041dc3786e166961eD9484a5539033d10fB",
"symbol":"DNX",
"decimal":18,
"type":"default"
},{
"address":"0xEEF6E90034eEa89E31Eb4B8eaCd323F28A92eaE4",
"symbol":"DOW",
"decimal":18,
"type":"default"
},{
"address":"0x01b3Ec4aAe1B8729529BEB4965F27d008788B0EB",
"symbol":"DPP",
"decimal":18,
"type":"default"
},{
"address":"0x419c4db4b9e25d6db2ad9691ccb832c8d9fda05e",
"symbol":"DRGN",
"decimal":18,
"type":"default"
},{
"address":"0x3c75226555FC496168d48B88DF83B95F16771F37",
"symbol":"DROP",
"decimal":0,
"type":"default"
},{
"address":"0x621d78f2ef2fd937bfca696cabaf9a779f59b3ed",
"symbol":"DRP",
"decimal":2,
"type":"default"
},{
"address":"0xd234bf2410a0009df9c3c63b610c09738f18ccd7",
"symbol":"DTR",
"decimal":8,
"type":"default"
},{
"address":"0xafc39788c51f0c1ff7b55317f3e70299e521fff6",
"symbol":"eBCH",
"decimal":8,
"type":"default"
},{
"address":"0xeb7c20027172e5d143fb030d50f91cece2d1485d",
"symbol":"eBTC",
"decimal":8,
"type":"default"
},{
"address":"0xa578acc0cb7875781b7880903f4594d13cfa8b98",
"symbol":"ECN",
"decimal":2,
"type":"default"
},{
"address":"0x08711D3B02C8758F2FB3ab4e80228418a7F8e39c",
"symbol":"EDG",
"decimal":0,
"type":"default"
},{
"address":"0xced4e93198734ddaff8492d525bd258d49eb388e",
"symbol":"EDO",
"decimal":18,
"type":"default"
},{
"address":"0x5b26C5D0772E5bbaC8b3182AE9a13f9BB2D03765",
"symbol":"EDU",
"decimal":8,
"type":"default"
},{
"address":"0x994f0dffdbae0bbf09b652d6f11a493fd33f42b9",
"symbol":"EAGLE",
"decimal":18,
"type":"default"
},{
"address":"0xb53a96bcbdd9cf78dff20bab6c2be7baec8f00f8",
"symbol":"eGAS",
"decimal":8,
"type":"default"
},{
"address":"0xf9F0FC7167c311Dd2F1e21E9204F87EBA9012fB2",
"symbol":"EHT",
"decimal":8,
"type":"default"
},{
"address":"0xc8C6A31A4A806d3710A7B38b7B296D2fABCCDBA8",
"symbol":"ELIX",
"decimal":18,
"type":"default"
},{
"address":"0x44197a4c44d6a059297caf6be4f7e172bd56caaf",
"symbol":"ELTCOIN",
"decimal":8,
"type":"default"
},{
"address":"0xB802b24E0637c2B87D2E8b7784C055BBE921011a",
"symbol":"EMV",
"decimal":2,
"type":"default"
},{
"address":"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",
"symbol":"ENJ",
"decimal":18,
"type":"default"
},{
"address":"0xd780Ae2Bf04cD96E577D3D014762f831d97129d0",
"symbol":"ENV",
"decimal":18,
"type":"default"
},{
"address":"0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0",
"symbol":"EOS",
"decimal":18,
"type":"default"
},{
"address":"0x1b9743f556d65e757c4c650b4555baf354cb8bd3",
"symbol":"ETBS",
"decimal":12,
"type":"default"
},{
"address":"0x3a26746Ddb79B1B8e4450e3F4FFE3285A307387E",
"symbol":"ETHB",
"decimal":8,
"type":"default"
},{
"address":"0xf3db5fa2c66b7af3eb0c0b782510816cbe4813b8",
"symbol":"EVX",
"decimal":4,
"type":"default"
},{
"address":"0xc98e0639c6d2ec037a615341c369666b110e80e5",
"symbol":"EXMR",
"decimal":8,
"type":"default"
},{
"address":"0x190e569bE071F40c704e15825F285481CB74B6cC",
"symbol":"FAM",
"decimal":12,
"type":"default"
},{
"address":"0xf04a8ac553FceDB5BA99A64799155826C136b0Be",
"symbol":"FLIXX",
"decimal":18,
"type":"default"
},{
"address":"0x0ABeFb7611Cb3A01EA3FaD85f33C3C934F8e2cF4",
"symbol":"FRD",
"decimal":18,
"type":"default"
},{
"address":"0xe6f74dcfa0e20883008d8c16b6d9a329189d0c30",
"symbol":"FTC",
"decimal":2,
"type":"default"
},{
"address":"0xab16e0d25c06cb376259cc18c1de4aca57605589",
"symbol":"FUCK",
"decimal":4,
"type":"default"
},{
"address":"0xEA38eAa3C86c8F9B751533Ba2E562deb9acDED40",
"symbol":"FUEL",
"decimal":18,
"type":"default"
},{
"address":"0x419D0d8BdD9aF5e606Ae2232ed285Aff190E711b",
"symbol":"FUN",
"decimal":8,
"type":"default"
},{
"address":"0x88FCFBc22C6d3dBaa25aF478C578978339BDe77a",
"symbol":"FYN",
"decimal":18,
"type":"default"
},{
"address":"0x708876f486e448ee89eb332bfbc8e593553058b9",
"symbol":"GAVEL",
"decimal":18,
"type":"default"
},{
"address":"0x4F4f0Db4de903B88f2B1a2847971E231D54F8fd3",
"symbol":"GEE",
"decimal":8,
"type":"default"
},{
"address":"0x24083bb30072643c3bb90b44b7285860a755e687",
"symbol":"GELD",
"decimal":18,
"type":"default"
},{
"address":"0xaE4f56F072c34C0a65B3ae3E4DB797D831439D93",
"symbol":"GIM",
"decimal":18,
"type":"default"
},{
"address":"0xb3Bd49E28f8F832b8d1E246106991e546c323502",
"symbol":"GMT",
"decimal":18,
"type":"default"
},{
"address":"0x6810e776880C02933D47DB1b9fc05908e5386b96",
"symbol":"GNO",
"decimal":18,
"type":"default"
},{
"address":"0xa74476443119A942dE498590Fe1f2454d7D4aC0d",
"symbol":"GNT",
"decimal":18,
"type":"default"
},{
"address":"0xeAb43193CF0623073Ca89DB9B712796356FA7414",
"symbol":"GOLDX",
"decimal":18,
"type":"default"
},{
"address":"0x8C65e992297d5f092A756dEf24F4781a280198Ff",
"symbol":"GZE",
"decimal":18,
"type":"default"
},{
"address":"0x12b19d3e2ccc14da04fae33e63652ce469b3f2fd",
"symbol":"GRID",
"decimal":12,
"type":"default"
},{
"address":"0xB70835D7822eBB9426B56543E391846C107bd32C",
"symbol":"GTC",
"decimal":18,
"type":"default"
},{
"address":"0x025abad9e518516fdaafbdcdb9701b37fb7ef0fa",
"symbol":"GTKT",
"decimal":0,
"type":"default"
},{
"address":"0xf7B098298f7C69Fc14610bf71d5e02c60792894C",
"symbol":"GUP",
"decimal":3,
"type":"default"
},{
"address":"0x103c3A209da59d3E7C4A89307e66521e081CFDF0",
"symbol":"GVT",
"decimal":18,
"type":"default"
},{
"address":"0x58ca3065c0f24c7c96aee8d6056b5b5decf9c2f8",
"symbol":"GXC",
"decimal":10,
"type":"default"
},{
"address":"0x22F0AF8D78851b72EE799e05F54A77001586B18A",
"symbol":"GXVC",
"decimal":10,
"type":"default"
},{
"address":"0x84543f868ec1b1fac510d49d13c069f64cd2d5f9",
"symbol":"Hdp.ф",
"decimal":18,
"type":"default"
},{
"address":"0xffe8196bc259e8dedc544d935786aa4709ec3e64",
"symbol":"HDG",
"decimal":18,
"type":"default"
},{
"address":"0xe9ff07809ccff05dae74990e25831d0bc5cbe575",
"symbol":"Hdp",
"decimal":18,
"type":"default"
},{
"address":"0xba2184520A1cC49a6159c57e61E1844E085615B6",
"symbol":"HGT",
"decimal":8,
"type":"default"
},{
"address":"0xa9240fBCAC1F0b9A6aDfB04a53c8E3B0cC1D1444",
"symbol":"HIG",
"decimal":18,
"type":"default"
},{
"address":"0x14F37B574242D366558dB61f3335289a5035c506",
"symbol":"HKG",
"decimal":3,
"type":"default"
},{
"address":"0xcbCC0F036ED4788F63FC0fEE32873d6A7487b908",
"symbol":"HMQ",
"decimal":8,
"type":"default"
},{
"address":"0xb45d7Bc4cEBcAB98aD09BABDF8C818B2292B672c",
"symbol":"HODL",
"decimal":18,
"type":"default"
},{
"address":"0x554C20B7c486beeE439277b4540A434566dC4C02",
"symbol":"HST",
"decimal":18,
"type":"default"
},{
"address":"0xC0Eb85285d83217CD7c891702bcbC0FC401E2D9D",
"symbol":"HVN",
"decimal":8,
"type":"default"
},{
"address":"0x5a84969bb663fb64F6d015DcF9F622Aedc796750",
"symbol":"ICE",
"decimal":18,
"type":"default"
},{
"address":"0x888666CA69E0f178DED6D75b5726Cee99A87D698",
"symbol":"ICN",
"decimal":18,
"type":"default"
},{
"address":"0xa33e729bf4fdeb868b534e1f20523463d9c46bee",
"symbol":"ICO",
"decimal":10,
"type":"default"
},{
"address":"0x014B50466590340D41307Cc54DCee990c8D58aa8",
"symbol":"ICOS",
"decimal":6,
"type":"default"
},{
"address":"0xb5a5f22694352c15b00323844ad545abb2b11028",
"symbol":"ICX",
"decimal":18,
"type":"default"
},{
"address":"0x814cafd4782d2e728170fda68257983f03321c58",
"symbol":"IDEA",
"decimal":0,
"type":"default"
},{
"address":"0x7654915a1b82d6d2d0afc37c52af556ea8983c7e",
"symbol":"IFT",
"decimal":18,
"type":"default"
},{
"address":"0x16662f73df3e79e54c6c5938b4313f92c524c120",
"symbol":"IIC",
"decimal":18,
"type":"default"
},{
"address":"0x88AE96845e157558ef59e9Ff90E766E22E480390",
"symbol":"IKB",
"decimal":0,
"type":"default"
},{
"address":"0xe3831c5A982B279A198456D577cfb90424cb6340",
"symbol":"IMC",
"decimal":6,
"type":"default"
},{
"address":"0x22E5F62D0FA19974749faa194e3d3eF6d89c08d7",
"symbol":"IMT",
"decimal":0,
"type":"default"
},{
"address":"0xf8e386EDa857484f5a12e4B5DAa9984E06E73705",
"symbol":"IND",
"decimal":18,
"type":"default"
},{
"address":"0x5b2e4a700dfbc560061e957edec8f6eeeb74a320",
"symbol":"INS",
"decimal":10,
"type":"default"
},{
"address":"0x52903256dd18D85c2Dc4a6C999907c9793eA61E3",
"symbol":"INSP",
"decimal":0,
"type":"default"
},{
"address":"0xa8006c4ca56f24d6836727d106349320db7fef82",
"symbol":"INXT",
"decimal":8,
"type":"default"
},{
"address":"0x0aeF06DcCCC531e581f0440059E6FfCC206039EE",
"symbol":"ITT",
"decimal":8,
"type":"default"
},{
"address":"0xfca47962d45adfdfd1ab2d972315db4ce7ccf094",
"symbol":"IXT",
"decimal":8,
"type":"default"
},{
"address":"0x0Aaf561eFF5BD9c8F911616933F84166A17cfE0C",
"symbol":"JBX",
"decimal":0,
"type":"default"
},{
"address":"0x8727c112c712c4a03371ac87a74dd6ab104af768",
"symbol":"JET",
"decimal":18,
"type":"default"
},{
"address":"0x773450335eD4ec3DB45aF74f34F2c85348645D39",
"symbol":"JetCoins",
"decimal":18,
"type":"default"
},{
"address":"0xa5Fd1A791C4dfcaacC963D4F73c6Ae5824149eA7",
"symbol":"JNT",
"decimal":18,
"type":"default"
},{
"address":"0x72D32ac1c5E66BfC5b08806271f8eEF915545164",
"symbol":"KEE",
"decimal":0,
"type":"default"
},{
"address":"0x27695E09149AdC738A978e9A678F99E4c39e9eb9",
"symbol":"KICK",
"decimal":8,
"type":"default"
},{
"address":"0x818Fc6C2Ec5986bc6E2CBf00939d90556aB12ce5",
"symbol":"KIN",
"decimal":18,
"type":"default"
},{
"address":"0xdd974D5C2e2928deA5F71b9825b8b646686BD200",
"symbol":"KNC",
"decimal":18,
"type":"default"
},{
"address":"0x9541FD8B9b5FA97381783783CeBF2F5fA793C262",
"symbol":"KZN",
"decimal":8,
"type":"default"
},{
"address":"0x2eb86e8fc520e0f6bb5d9af08f924fe70558ab89",
"symbol":"LGR",
"decimal":8,
"type":"default"
},{
"address":"0xff18dbc487b4c2e3222d115952babfda8ba52f5f",
"symbol":"LIFE",
"decimal":18,
"type":"default"
},{
"address":"0x514910771af9ca656af840dff83e8264ecf986ca",
"symbol":"LINK - Chainlink",
"decimal":18,
"type":"default"
},{
"address":"0xe2e6d4be086c6938b53b22144855eef674281639",
"symbol":"LINK - Link Platform",
"decimal":18,
"type":"default"
},{
"address":"0x24A77c1F17C547105E14813e517be06b0040aa76",
"symbol":"LIVE",
"decimal":18,
"type":"default"
},{
"address":"0x63e634330A20150DbB61B15648bC73855d6CCF07",
"symbol":"LNC",
"decimal":18,
"type":"default"
},{
"address":"0x6beb418fc6e1958204ac8baddcf109b8e9694966",
"symbol":"LNC-Linker Coin",
"decimal":18,
"type":"default"
},{
"address":"0x5e3346444010135322268a4630d2ed5f8d09446c",
"symbol":"LOC",
"decimal":18,
"type":"default"
},{
"address":"0x21ae23b882a340a22282162086bc98d3e2b73018",
"symbol":"LOK",
"decimal":18,
"type":"default"
},{
"address":"0xEF68e7C694F40c8202821eDF525dE3782458639f",
"symbol":"LRC",
"decimal":18,
"type":"default"
},{
"address":"0xFB12e3CcA983B9f59D90912Fd17F8D745A8B2953",
"symbol":"LUCK",
"decimal":0,
"type":"default"
},{
"address":"0xa89b5934863447f6e4fc53b315a93e873bda69a3",
"symbol":"LUM",
"decimal":18,
"type":"default"
},{
"address":"0xfa05A73FfE78ef8f1a739473e462c54bae6567D9",
"symbol":"LUN",
"decimal":18,
"type":"default"
},{
"address":"0x3f4b726668da46f5e0e75aa5d478acec9f38210f",
"symbol":"M-ETH",
"decimal":18,
"type":"default"
},{
"address":"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942",
"symbol":"MANA",
"decimal":18,
"type":"default"
},{
"address":"0x386467f1f3ddbe832448650418311a479eecfc57",
"symbol":"MBRS",
"decimal":0,
"type":"default"
},{
"address":"0x93E682107d1E9defB0b5ee701C71707a4B2E46Bc",
"symbol":"MCAP",
"decimal":8,
"type":"default"
},{
"address":"0x138A8752093F4f9a79AaeDF48d4B9248fab93c9C",
"symbol":"MCI",
"decimal":18,
"type":"default"
},{
"address":"0xB63B606Ac810a52cCa15e44bB630fd42D8d1d83d",
"symbol":"MCO",
"decimal":8,
"type":"default"
},{
"address":"0x51DB5Ad35C671a87207d88fC11d593AC0C8415bd",
"symbol":"MDA",
"decimal":18,
"type":"default"
},{
"address":"0x40395044ac3c0c57051906da938b54bd6557f212",
"symbol":"MGO",
"decimal":8,
"type":"default"
},{
"address":"0xe23cd160761f63FC3a1cF78Aa034b6cdF97d3E0C",
"symbol":"MIT",
"decimal":18,
"type":"default"
},{
"address":"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2",
"symbol":"MKR",
"decimal":18,
"type":"default"
},{
"address":"0xc66ea802717bfb9833400264dd12c2bceaa34a6d",
"symbol":"MKR_OLD",
"decimal":18,
"type":"default"
},{
"address":"0xBEB9eF514a379B997e0798FDcC901Ee474B6D9A1",
"symbol":"MLN",
"decimal":18,
"type":"default"
},{
"address":"0x1a95B271B0535D15fa49932Daba31BA612b52946",
"symbol":"MNE",
"decimal":8,
"type":"default"
},{
"address":"0xA9877b1e05D035899131DBd1e403825166D09f92",
"symbol":"MNT",
"decimal":18,
"type":"default"
},{
"address":"0x83cee9e086a77e492ee0bb93c2b0437ad6fdeccc",
"symbol":"MNTP",
"decimal":18,
"type":"default"
},{
"address":"0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e",
"symbol":"MOD",
"decimal":0,
"type":"default"
},{
"address":"0xAB6CF87a50F17d7F5E1FEaf81B6fE9FfBe8EBF84",
"symbol":"MRV",
"decimal":18,
"type":"default"
},{
"address":"0x68AA3F232dA9bdC2343465545794ef3eEa5209BD",
"symbol":"MSP",
"decimal":18,
"type":"default"
},{
"address":"0xaF4DcE16Da2877f8c9e00544c93B62Ac40631F16",
"symbol":"MTH",
"decimal":5,
"type":"default"
},{
"address":"0xF433089366899D83a9f26A773D59ec7eCF30355e",
"symbol":"MTL",
"decimal":8,
"type":"default"
},{
"address":"0x7FC408011165760eE31bE2BF20dAf450356692Af",
"symbol":"MTR",
"decimal":8,
"type":"default"
},{
"address":"0x0AF44e2784637218dD1D32A322D44e603A8f0c6A",
"symbol":"MTX",
"decimal":18,
"type":"default"
},{
"address":"0xf7e983781609012307f2514f63D526D83D24F466",
"symbol":"MYD",
"decimal":16,
"type":"default"
},{
"address":"0xa645264C5603E96c3b0B078cdab68733794B0A71",
"symbol":"MYST",
"decimal":8,
"type":"default"
},{
"address":"0xa54ddc7b3cce7fc8b1e3fa0256d0db80d2c10970",
"symbol":"NDC",
"decimal":18,
"type":"default"
},{
"address":"0xcfb98637bcae43C13323EAa1731cED2B716962fD",
"symbol":"NET",
"decimal":18,
"type":"default"
},{
"address":"0xa823e6722006afe99e91c30ff5295052fe6b8e32",
"symbol":"NEU",
"decimal":18,
"type":"default"
},{
"address":"0xe26517A9967299453d3F1B48Aa005E6127e67210",
"symbol":"NIMFA",
"decimal":18,
"type":"default"
},{
"address":"0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671",
"symbol":"NMR",
"decimal":18,
"type":"default"
},{
"address":"0xec46f8207d766012454c408de210bcbc2243e71c",
"symbol":"NOX",
"decimal":18,
"type":"default"
},{
"address":"0x45e42D659D9f9466cD5DF622506033145a9b89Bc",
"symbol":"NxC",
"decimal":3,
"type":"default"
},{
"address":"0x7627de4b93263a6a7570b8dafa64bae812e5c394",
"symbol":"NXX",
"decimal":8,
"type":"default"
},{
"address":"0x5c6183d10A00CD747a6Dbb5F658aD514383e9419",
"symbol":"NXX OLD",
"decimal":8,
"type":"default"
},{
"address":"0x701C244b988a513c945973dEFA05de933b23Fe1D",
"symbol":"OAX",
"decimal":18,
"type":"default"
},{
"address":"0x7F2176cEB16dcb648dc924eff617c3dC2BEfd30d",
"symbol":"OHNI",
"decimal":0,
"type":"default"
},{
"address":"0xd26114cd6EE289AccF82350c8d8487fedB8A0C07",
"symbol":"OMG",
"decimal":18,
"type":"default"
},{
"address":"0xb23be73573bc7e03db6e5dfc62405368716d28a8",
"symbol":"ONEK",
"decimal":18,
"type":"default"
},{
"address":"0x4355fC160f74328f9b383dF2EC589bB3dFd82Ba0",
"symbol":"OPT",
"decimal":18,
"type":"default"
},{
"address":"0x2C4e8f2D746113d0696cE89B35F0d8bF88E0AEcA",
"symbol":"OST",
"decimal":18,
"type":"default"
},{
"address":"0x65a15014964f2102ff58647e16a16a6b9e14bcf6",
"symbol":"Ox Fina",
"decimal":3,
"type":"default"
},{
"address":"0x694404595e3075a942397f466aacd462ff1a7bd0",
"symbol":"PATENTS",
"decimal":18,
"type":"default"
},{
"address":"0xB97048628DB6B661D4C2aA833e95Dbe1A905B280",
"symbol":"PAY",
"decimal":18,
"type":"default"
},{
"address":"0x55648de19836338549130b1af587f16bea46f66b",
"symbol":"PBL",
"decimal":18,
"type":"default"
},{
"address":"0x53148Bb4551707edF51a1e8d7A93698d18931225",
"symbol":"PCL",
"decimal":8,
"type":"default"
},{
"address":"0xec18f898b4076a3e18f1089d33376cc380bde61d",
"symbol":"PETRO",
"decimal":18,
"type":"default"
},{
"address":"0x55c2A0C171D920843560594dE3d6EEcC09eFc098",
"symbol":"PEXT",
"decimal":4,
"type":"default"
},{
"address":"0xE64509F0bf07ce2d29A7eF19A8A9bc065477C1B4",
"symbol":"PIPL",
"decimal":8,
"type":"default"
},{
"address":"0x8eFFd494eB698cc399AF6231fCcd39E08fd20B15",
"symbol":"PIX",
"decimal":0,
"type":"default"
},{
"address":"0x7e7DC49715816d1f5712A1d7dFf083e4F9E588B6",
"symbol":"PIXEL",
"decimal":14,
"type":"default"
},{
"address":"0x59416A25628A76b4730eC51486114c32E0B582A1",
"symbol":"PLASMA",
"decimal":6,
"type":"default"
},{
"address":"0xE477292f1B3268687A29376116B0ED27A9c76170",
"symbol":"PLAY",
"decimal":18,
"type":"default"
},{
"address":"0x0AfFa06e7Fbe5bC9a764C979aA66E8256A631f02",
"symbol":"PLBT",
"decimal":6,
"type":"default"
},{
"address":"0xe3818504c1B32bF1557b16C238B2E01Fd3149C17",
"symbol":"PLR",
"decimal":18,
"type":"default"
},{
"address":"0xD8912C10681D8B21Fd3742244f44658dBA12264E",
"symbol":"PLU",
"decimal":18,
"type":"default"
},{
"address":"0x0e0989b1f9b8a38983c2ba8053269ca62ec9b195",
"symbol":"POE",
"decimal":8,
"type":"default"
},{
"address":"0x43f6a1be992dee408721748490772b15143ce0a7",
"symbol":"POIN",
"decimal":0,
"type":"default"
},{
"address":"0x779B7b713C86e3E6774f5040D9cCC2D43ad375F8",
"symbol":"POOL",
"decimal":8,
"type":"default"
},{
"address":"0xee609fe292128cad03b786dbb9bc2634ccdbe7fc",
"symbol":"POS",
"decimal":18,
"type":"default"
},{
"address":"0x595832f8fc6bf59c85c527fec3740a1b7a361269",
"symbol":"POWR",
"decimal":6,
"type":"default"
},{
"address":"0xc42209accc14029c1012fb5680d95fbd6036e2a0",
"symbol":"PPP",
"decimal":18,
"type":"default"
},{
"address":"0xd4fa1460F537bb9085d22C7bcCB5DD450Ef28e3a",
"symbol":"PPT",
"decimal":8,
"type":"default"
},{
"address":"0x88a3e4f35d64aad41a6d4030ac9afe4356cb84fa",
"symbol":"PRE",
"decimal":18,
"type":"default"
},{
"address":"0x7728dfef5abd468669eb7f9b48a7f70a501ed29d",
"symbol":"PRG",
"decimal":6,
"type":"default"
},{
"address":"0x1844b21593262668b7248d0f57a220caaba46ab9",
"symbol":"PRL",
"decimal":18,
"type":"default"
},{
"address":"0x226bb599a12C826476e3A771454697EA52E9E220",
"symbol":"PRO",
"decimal":8,
"type":"default"
},{
"address":"0x163733bcc28dbf26B41a8CfA83e369b5B3af741b",
"symbol":"PRS",
"decimal":18,
"type":"default"
},{
"address":"0x0c04d4f331da8df75f9e2e271e3f3f1494c66c36",
"symbol":"PRSP",
"decimal":9,
"type":"default"
},{
"address":"0x66497a283e0a007ba3974e837784c6ae323447de",
"symbol":"PT",
"decimal":18,
"type":"default"
},{
"address":"0x8Ae4BF2C33a8e667de34B54938B0ccD03Eb8CC06",
"symbol":"PTOY",
"decimal":8,
"type":"default"
},{
"address":"0xc14830e53aa344e8c14603a91229a0b925b0b262",
"symbol":"PXT",
"decimal":8,
"type":"default"
},{
"address":"0x671AbBe5CE652491985342e85428EB1b07bC6c64",
"symbol":"QAU",
"decimal":8,
"type":"default"
},{
"address":"0x697beac28B09E122C4332D163985e8a73121b97F",
"symbol":"QRL",
"decimal":8,
"type":"default"
},{
"address":"0x99ea4dB9EE77ACD40B119BD1dC4E33e1C070b80d",
"symbol":"QSP",
"decimal":18,
"type":"default"
},{
"address":"0x2C3C1F05187dBa7A5f2Dd47Dca57281C4d4F183F",
"symbol":"QTQ",
"decimal":18,
"type":"default"
},{
"address":"0x9a642d6b3368ddc662CA244bAdf32cDA716005BC",
"symbol":"QTUM",
"decimal":18,
"type":"default"
},{
"address":"0x255aa6df07540cb5d3d297f0d0d4d84cb52bc8e6",
"symbol":"RDN",
"decimal":18,
"type":"default"
},{
"address":"0x5f53f7a8075614b699baad0bc2c899f4bad8fbbf",
"symbol":"REBL",
"decimal":18,
"type":"default"
},{
"address":"0xE94327D07Fc17907b4DB788E5aDf2ed424adDff6",
"symbol":"REP",
"decimal":18,
"type":"default"
},{
"address":"0x8f8221aFbB33998d8584A2B05749bA73c37a938a",
"symbol":"REQ",
"decimal":18,
"type":"default"
},{
"address":"0xf05a9382A4C3F29E2784502754293D88b835109C",
"symbol":"REX",
"decimal":18,
"type":"default"
},{
"address":"0xdd007278b667f6bef52fd0a4c23604aa1f96039a",
"symbol":"RIPT",
"decimal":8,
"type":"default"
},{
"address":"0x607F4C5BB672230e8672085532f7e901544a7375",
"symbol":"RLC",
"decimal":9,
"type":"default"
},{
"address":"0xcCeD5B8288086BE8c38E23567e684C3740be4D48",
"symbol":"RLT",
"decimal":10,
"type":"default"
},{
"address":"0x4a42d2c580f83dce404acad18dab26db11a1750e",
"symbol":"RLX",
"decimal":18,
"type":"default"
},{
"address":"0x0996bfb5d057faa237640e2506be7b4f9c46de0b",
"symbol":"RNDR",
"decimal":18,
"type":"default"
},{
"address":"0xc9de4b7f0c3d991e967158e4d4bfa4b51ec0b114",
"symbol":"ROK",
"decimal":18,
"type":"default"
},{
"address":"0x4993CB95c7443bdC06155c5f5688Be9D8f6999a5",
"symbol":"ROUND",
"decimal":18,
"type":"default"
},{
"address":"0xb4efd85c19999d84251304bda99e90b92300bd93",
"symbol":"RPL",
"decimal":18,
"type":"default"
},{
"address":"0x3d1ba9be9f66b8ee101911bc36d3fb562eac2244",
"symbol":"RVT",
"decimal":18,
"type":"default"
},{
"address":"0x1ec8fe51a9b6a3a6c427d17d9ecc3060fbc4a45c",
"symbol":"S-A-PAT",
"decimal":18,
"type":"default"
},{
"address":"0x3eb91d237e491e0dee8582c402d85cb440fb6b54",
"symbol":"S-ETH",
"decimal":18,
"type":"default"
},{
"address":"0x4156D3342D5c385a87D264F90653733592000581",
"symbol":"SALT",
"decimal":8,
"type":"default"
},{
"address":"0x7C5A0CE9267ED19B22F8cae653F198e3E8daf098",
"symbol":"SAN",
"decimal":18,
"type":"default"
},{
"address":"0xd7631787b4dcc87b1254cfd1e5ce48e96823dee8",
"symbol":"SCL",
"decimal":8,
"type":"default"
},{
"address":"0x6745fAB6801e376cD24F03572B9C9B0D4EdDDCcf",
"symbol":"SENSE",
"decimal":8,
"type":"default"
},{
"address":"0x4ca74185532dc1789527194e5b9c866dd33f4e82",
"symbol":"SenSatorI",
"decimal":18,
"type":"default"
},{
"address":"0xe06eda7435ba749b047380ced49121dde93334ae",
"symbol":"SET",
"decimal":0,
"type":"default"
},{
"address":"0x98f5e9b7f0e33956c0443e81bf7deb8b5b1ed545",
"symbol":"SEXY",
"decimal":18,
"type":"default"
},{
"address":"0xa1ccc166faf0E998b3E33225A1A0301B1C86119D",
"symbol":"SGEL",
"decimal":18,
"type":"default"
},{
"address":"0xd248B0D48E44aaF9c49aea0312be7E13a6dc1468",
"symbol":"SGT",
"decimal":1,
"type":"default"
},{
"address":"0xEF2E9966eb61BB494E5375d5Df8d67B7dB8A780D",
"symbol":"SHIT",
"decimal":0,
"type":"default"
},{
"address":"0x8a187d5285d316bcbc9adafc08b51d70a0d8e000",
"symbol":"SIFT",
"decimal":0,
"type":"default"
},{
"address":"0x2bDC0D42996017fCe214b21607a515DA41A9E0C5",
"symbol":"SKIN",
"decimal":6,
"type":"default"
},{
"address":"0x4994e81897a920c0FEA235eb8CEdEEd3c6fFF697",
"symbol":"SKO1",
"decimal":18,
"type":"default"
},{
"address":"0x4c382F8E09615AC86E08CE58266CC227e7d4D913",
"symbol":"SKR",
"decimal":6,
"type":"default"
},{
"address":"0x7A5fF295Dc8239d5C2374E4D894202aAF029Cab6",
"symbol":"SLT",
"decimal":3,
"type":"default"
},{
"address":"0x6F6DEb5db0C4994A8283A01D6CFeEB27Fc3bBe9C",
"symbol":"Smart",
"decimal":0,
"type":"default"
},{
"address":"0xF4134146AF2d511Dd5EA8cDB1C4AC88C57D60404",
"symbol":"SNC",
"decimal":18,
"type":"default"
},{
"address":"0x44F588aEeB8C44471439D1270B3603c66a9262F1",
"symbol":"SNIP",
"decimal":18,
"type":"default"
},{
"address":"0xf333b2Ace992ac2bBD8798bF57Bc65a06184afBa",
"symbol":"SND",
"decimal":0,
"type":"default"
},{
"address":"0xaeC2E87E0A235266D9C5ADc9DEb4b2E29b54D009",
"symbol":"SNGLS",
"decimal":0,
"type":"default"
},{
"address":"0x983F6d60db79ea8cA4eB9968C6aFf8cfA04B3c63",
"symbol":"SNM",
"decimal":18,
"type":"default"
},{
"address":"0x744d70FDBE2Ba4CF95131626614a1763DF805B9E",
"symbol":"SNT",
"decimal":18,
"type":"default"
},{
"address":"0x1f54638b7737193ffd86c19ec51907a7c41755d8",
"symbol":"SOL",
"decimal":6,
"type":"default"
},{
"address":"0x58bf7df57d9DA7113c4cCb49d8463D4908C735cb",
"symbol":"SPARC",
"decimal":18,
"type":"default"
},{
"address":"0x24aef3bf1a47561500f9430d74ed4097c47f51f2",
"symbol":"SPARTA",
"decimal":4,
"type":"default"
},{
"address":"0x85089389C14Bd9c77FC2b8F0c3d1dC3363Bf06Ef",
"symbol":"SPF",
"decimal":18,
"type":"default"
},{
"address":"0x68d57c9a1C35f63E2c83eE8e49A64e9d70528D25",
"symbol":"SRN",
"decimal":18,
"type":"default"
},{
"address":"0xF70a642bD387F94380fFb90451C2c81d4Eb82CBc",
"symbol":"STAR",
"decimal":18,
"type":"default"
},{
"address":"0x7dd7f56d697cc0f2b52bd55c057f378f1fe6ab4b",
"symbol":"$TEAK",
"decimal":18,
"type":"default"
},{
"address":"0x599346779e90fc3F5F997b5ea715349820F91571",
"symbol":"STN",
"decimal":4,
"type":"default"
},{
"address":"0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC",
"symbol":"STORJ",
"decimal":8,
"type":"default"
},{
"address":"0xD0a4b8946Cb52f0661273bfbC6fD0E0C75Fc6433",
"symbol":"STORM",
"decimal":18,
"type":"default"
},{
"address":"0x46492473755e8dF960F8034877F61732D718CE96",
"symbol":"STRC",
"decimal":8,
"type":"default"
},{
"address":"0x006BeA43Baa3f7A6f765F14f10A1a1b08334EF45",
"symbol":"STX",
"decimal":18,
"type":"default"
},{
"address":"0x12480E24eb5bec1a9D4369CaB6a80caD3c0A377A",
"symbol":"SUB",
"decimal":2,
"type":"default"
},{
"address":"0x9e88613418cf03dca54d6a2cf6ad934a78c7a17a",
"symbol":"SWM",
"decimal":18,
"type":"default"
},{
"address":"0xB9e7F8568e08d5659f5D29C4997173d84CdF2607",
"symbol":"SWT",
"decimal":18,
"type":"default"
},{
"address":"0x12b306fa98f4cbb8d4457fdff3a0a0a56f07ccdf",
"symbol":"SXDT",
"decimal":18,
"type":"default"
},{
"address":"0x2c82c73d5b34aa015989462b2948cd616a37641f",
"symbol":"SXUT",
"decimal":18,
"type":"default"
},{
"address":"0x10b123fddde003243199aad03522065dc05827a0",
"symbol":"SYN",
"decimal":18,
"type":"default"
},{
"address":"0xE7775A6e9Bcf904eb39DA2b68c5efb4F9360e08C",
"symbol":"TaaS",
"decimal":6,
"type":"default"
},{
"address":"0xFACCD5Fc83c3E4C3c1AC1EF35D15adf06bCF209C",
"symbol":"TBC2",
"decimal":8,
"type":"default"
},{
"address":"0xAFe60511341a37488de25Bef351952562E31fCc1",
"symbol":"TBT",
"decimal":8,
"type":"default"
},{
"address":"0xa7f976C360ebBeD4465c2855684D1AAE5271eFa9",
"symbol":"TFL",
"decimal":8,
"type":"default"
},{
"address":"0x6531f133e6DeeBe7F2dcE5A0441aA7ef330B4e53",
"symbol":"TIME",
"decimal":8,
"type":"default"
},{
"address":"0x80bc5512561c7f85a3a9508c7df7901b370fa1df",
"symbol":"TIO",
"decimal":18,
"type":"default"
},{
"address":"0xEa1f346faF023F974Eb5adaf088BbCdf02d761F4",
"symbol":"TIX",
"decimal":18,
"type":"default"
},{
"address":"0xaAAf91D9b90dF800Df4F55c205fd6989c977E73a",
"symbol":"TKN",
"decimal":8,
"type":"default"
},{
"address":"0x08f5a9235b08173b7569f83645d2c7fb55e8ccd8",
"symbol":"TNT",
"decimal":8,
"type":"default"
},{
"address":"0xcb94be6f13a1182e4a4b6140cb7bf2025d28e41b",
"symbol":"TRST",
"decimal":6,
"type":"default"
},{
"address":"0xf230b790e05390fc8295f4d3f60332c93bed42e2",
"symbol":"TRX",
"decimal":6,
"type":"default"
},{
"address":"0x24692791bc444c5cd0b81e3cbcaba4b04acd1f3b",
"symbol":"UKG",
"decimal":18,
"type":"default"
},{
"address":"0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7",
"symbol":"Unicorn",
"decimal":0,
"type":"default"
},{
"address":"0xd01db73e047855efb414e6202098c4be4cd2423b",
"symbol":"UQC",
"decimal":18,
"type":"default"
},{
"address":"0x70a72833d6bf7f508c8224ce59ea1ef3d0ea3a38",
"symbol":"UTK",
"decimal":18,
"type":"default"
},{
"address":"0x340d2bde5eb28c1eed91b2f790723e3b160613b7",
"symbol":"VEE",
"decimal":18,
"type":"default"
},{
"address":"0xEbeD4fF9fe34413db8fC8294556BBD1528a4DAca",
"symbol":"VENUS",
"decimal":3,
"type":"default"
},{
"address":"0x8f3470A7388c05eE4e7AF3d01D8C722b0FF52374",
"symbol":"VERI",
"decimal":18,
"type":"default"
},{
"address":"0xD850942eF8811f2A866692A623011bDE52a462C1",
"symbol":"VET (VEN)",
"decimal":18,
"type":"default"
},{
"address":"0xe8ff5c9c75deb346acac493c463c8950be03dfba",
"symbol":"VIBE",
"decimal":18,
"type":"default"
},{
"address":"0x2C974B2d0BA1716E644c1FC59982a89DDD2fF724",
"symbol":"VIB",
"decimal":18,
"type":"default"
},{
"address":"0x882448f83d90b2bf477af2ea79327fdea1335d93",
"symbol":"VIBEX",
"decimal":18,
"type":"default"
},{
"address":"0x519475b31653e46d20cd09f9fdcf3b12bdacb4f5",
"symbol":"VIU",
"decimal":18,
"type":"default"
},
{
"address":"0x83eea00d838f92dec4d1475697b9f4d3537b56e3",
"symbol":"VOISE",
"decimal":8,
"type":"default"
},
{
"address":"0xeDBaF3c5100302dCddA53269322f3730b1F0416d",
"symbol":"VRS",
"decimal":5,
"type":"default"
},{
"address":"0x5c543e7AE0A1104f78406C340E9C64FD9fCE5170",
"symbol":"VSL",
"decimal":18,
"type":"default"
},{
"address":"0x286BDA1413a2Df81731D4930ce2F862a35A609fE",
"symbol":"WaBi",
"decimal":18,
"type":"default"
},{
"address":"0x39Bb259F66E1C59d5ABEF88375979b4D20D98022",
"symbol":"WAX",
"decimal":8,
"type":"default"
},{
"address":"0x74951B677de32D596EE851A233336926e6A2cd09",
"symbol":"WBA",
"decimal":7,
"type":"default"
},{
"address":"0x6a0a97e47d15aad1d132a1ac79a480e3f2079063",
"symbol":"WCT",
"decimal":18,
"type":"default"
},{
"address":"0x5e4ABE6419650CA839Ce5BB7Db422b881a6064bB",
"symbol":"WiC",
"decimal":18,
"type":"default"
},{
"address":"0x667088b212ce3d06a1b553a7221E1fD19000d9aF",
"symbol":"WINGS",
"decimal":18,
"type":"default"
},{
"address":"0xF6B55acBBC49f4524Aa48D19281A9A77c54DE10f",
"symbol":"WLK",
"decimal":18,
"type":"default"
},{
"address":"0x728781E75735dc0962Df3a51d7Ef47E798A7107E",
"symbol":"WOLK",
"decimal":18,
"type":"default"
},{
"address":"0x62087245087125d3db5b9a3d713d78e7bbc31e54",
"symbol":"WPC",
"decimal":18,
"type":"default"
},{
"address":"0x910Dfc18D6EA3D6a7124A6F8B5458F281060fa4c",
"symbol":"X8X",
"decimal":18,
"type":"default"
},{
"address":"0x4DF812F6064def1e5e029f1ca858777CC98D2D81",
"symbol":"XAUR",
"decimal":8,
"type":"default"
},{
"address":"0x533ef0984b2FAA227AcC620C67cce12aA39CD8CD",
"symbol":"XGM",
"decimal":8,
"type":"default"
},{
"address":"0x30f4A3e0aB7a76733D8b60b89DD93c3D0b4c9E2f",
"symbol":"XGT",
"decimal":18,
"type":"default"
},{
"address":"0xB110eC7B1dcb8FAB8dEDbf28f53Bc63eA5BEdd84",
"symbol":"XID",
"decimal":8,
"type":"default"
},{
"address":"0xab95e915c123fded5bdfb6325e35ef5515f1ea69",
"symbol":"XNN",
"decimal":18,
"type":"default"
},{
"address":"0x572e6f318056ba0c5d47a422653113843d250691",
"symbol":"XNT",
"decimal":0,
"type":"default"
},{
"address":"0xB24754bE79281553dc1adC160ddF5Cd9b74361a4",
"symbol":"XRL",
"decimal":9,
"type":"default"
},{
"address":"0x0F513fFb4926ff82D7F60A05069047AcA295C413",
"symbol":"XSC",
"decimal":18,
"type":"default"
},{
"address":"0x0F33bb20a282A7649C7B3AFf644F084a9348e933",
"symbol":"YUPIE",
"decimal":18,
"type":"default"
},{
"address":"0x6781a0f84c7e9e846dcb84a9a5bd49333067b104",
"symbol":"ZAP",
"decimal":18,
"type":"default"
},{
"address":"0x05f4a42e251f2d52b8ed15E9FEdAacFcEF1FAD27",
"symbol":"ZIL",
"decimal":12,
"type":"default"
},{
"address":"0xE41d2489571d322189246DaFA5ebDe1F4699F498",
"symbol":"ZRX",
"decimal":18,
"type":"default"
},{
"address":"0xe386b139ed3715ca4b18fd52671bdcea1cdfe4b1",
"symbol":"ZST",
"decimal":8,
"type":"default"
}]
},{}],99:[function(require,module,exports){
arguments[4][6][0].apply(exports,arguments)
},{"dup":6}],100:[function(require,module,exports){
module.exports=[{
"address":"0xbd287b4398b248032183994229f5f6a9fdac98b1",
"symbol":"💥 PLASMA",
"decimal":6,
"type":"default"
},{
"address":"0x3C67f7D4decF7795225f51b54134F81137385f83",
"symbol":"GUP",
"decimal":3,
"type":"default"
},{
"address":"0x8667559254241ddeD4d11392f868d72092765367",
"symbol":"Aeternity",
"decimal":18,
"type":"default"
}]
},{}],101:[function(require,module,exports){
arguments[4][6][0].apply(exports,arguments)
},{"dup":6}],102:[function(require,module,exports){
module.exports=[{
"address":"0xA52832A0B3EBfAeF629B1a44A922F46c90445108",
"symbol":"☼ PLASMA",
"decimal":6,
"type":"default"
}]
},{}],103:[function(require,module,exports){
module.exports=[{
"address":"0x95D7321EdCe519419ba1DbC60A89bAfbF55EAC0D",
"symbol":"💥 PLASMA",
"decimal":6,
"type":"default"
}]
},{}],104:[function(require,module,exports){
arguments[4][6][0].apply(exports,arguments)
},{"dup":6}],105:[function(require,module,exports){
module.exports=[
{
"address":"0xd245207cfbf6eb6f34970db2a807ab1d178fde6c",
"symbol":"APX",
"decimal":8,
"type":"default"
},
{
"address":"0xff3bf057adf3b0e015b6465331a6236e55688274",
"symbol":"BEER",
"decimal":0,
"type":"default"
},
{
"address":"0x08533d6a06ce365298b12ef92eb407cba8aa8273",
"symbol":"CEFS",
"decimal":8,
"type":"default"
},
{
"address":"0x94ad7e41c1d44022c4f47cb1ba019fd1a022c536",
"symbol":"DOT",
"decimal":8,
"type":"default"
},
{
"address":"0x4b4899a10f3e507db207b0ee2426029efa168a67",
"symbol":"QWARK",
"decimal":8,
"type":"default"
},
{
"address":"0x5e1715bb79805bd672729760b3f7f34d6f485098",
"symbol":"RICKS",
"decimal":8,
"type":"default"
}
]
},{}],106:[function(require,module,exports){
// Català
'use strict';
var _ca$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ca = function ca() {};
ca.code = 'ca';
ca.data = (_ca$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_ca$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_ca$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_ca$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_ca$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_ca$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_ca$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_ca$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_ca$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_ca$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_ca$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_ca$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_ca$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_ca$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_ca$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_ca$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_ca$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_ca$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_ca$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_ca$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_ca$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_ca$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_ca$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_ca$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_ca$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_ca$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_ca$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_ca$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_ca$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_ca$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_ca$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_ca$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_ca$data, 'x_CancelReplaceTx', 'Cancel·la o Reemplaça la transacció'), _defineProperty(_ca$data, 'x_CancelTx', 'Cancel·la la transacció'), _defineProperty(_ca$data, 'x_PasswordDesc', 'Aquesta contrasenya * xifra * la teva clau privada. Això no funciona com a llavor per generar les vostres claus. **Necessitaràs aquesta contrasenya + la teva clau privada per desbloquejar la teva cartera.**'), _defineProperty(_ca$data, 'x_ReadMore', 'Llegir-ne més'), _defineProperty(_ca$data, 'x_ReplaceTx', 'Reemplaça la transacció'), _defineProperty(_ca$data, 'x_TransHash', 'Hash de la transacció'), _defineProperty(_ca$data, 'x_TXFee', 'TX Fee'), _defineProperty(_ca$data, 'x_TxHash', 'TX Hash'), _defineProperty(_ca$data, 'NAV_CheckTxStatus', 'Comprova l\'estat d\'una TX'), _defineProperty(_ca$data, 'NAV_TxStatus', 'Estat de la TX'), _defineProperty(_ca$data, 'tx_Details', 'Detalls de transacció'), _defineProperty(_ca$data, 'tx_Summary', 'Durant períodes de molt volum (quan hi ha ICOs per exemple) les transaccions poder restar pendents durant hores, o dies. Aquesta eina té com a objectiu permetre\'t trobar i "cancel·lar" / reemplaçar aquestes TXs. ** Això no sol ser una cosa que puguis fer. No s\'hi hauria de confirmar i només funcionarà quan les TX Pools siguin plenes. [Si us plau, llegiu sobre aquesta eina aquí.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_ca$data, 'tx_notFound', 'Transacció no trobada'), _defineProperty(_ca$data, 'tx_notFound_1', 'Aquesta TX no es pot trobar al TX Pool del node amb el qual estàs connectat.'), _defineProperty(_ca$data, 'tx_notFound_2', 'Si acabes d\'enviar la transacció, espera 15 segons i prem el botó "Comprova l\'estat d\'una TX" de nou. '), _defineProperty(_ca$data, 'tx_notFound_3', 'Encara podria estar al TX Pool d\'un node diferent, esperant ser minat.'), _defineProperty(_ca$data, 'tx_notFound_4', 'Utilitza el menú desplegable a la part superior dreta i selecciona un node ETH diferent (p. Ex. `ETH (Etherscan.io)` o `ETH (Infura.io)` o `ETH (MyEtherWallet)`) i torna-ho a comprovar.'), _defineProperty(_ca$data, 'tx_foundInPending', 'Transacció pendent trobada'), _defineProperty(_ca$data, 'tx_foundInPending_1', 'La teva transacció s\'ha trobat a la TX Pool del node amb el qual estàs connectat. '), _defineProperty(_ca$data, 'tx_foundInPending_2', 'Actualment està pendent (esperant ser minada). '), _defineProperty(_ca$data, 'tx_foundInPending_3', 'Hi ha una oportunitat de "cancel·lar" or reemplaçar aquesta transacció. Desbloqueja la teva cartera a continuació.'), _defineProperty(_ca$data, 'tx_FoundOnChain', 'Transacció trobada'), _defineProperty(_ca$data, 'tx_FoundOnChain_1', 'La teva transacció s\'ha minat correctament i és a la blockchain.'), _defineProperty(_ca$data, 'tx_FoundOnChain_2', '**Si veus un `( ! )` vermell, un missatge d\'error `BAD INSTRUCTION` o `OUT OF GAS` **, vol dir que la transacció no s\'ha *enviat* correctament. No es pot cancel·lar o reemplaçar aquesta transacció. En lloc d\'això, envia una transacció nova. Si reps un error "Out of Gas", hauries de duplicar el límit de gas especificat originalment.'), _defineProperty(_ca$data, 'tx_FoundOnChain_3', '**Si no veus cap error, la teva transacció s\'ha enviat amb èxit.** El teu ETH o Tokens són on els has enviat. Si no pots veure aquest ETH o Tokens a la teva cartera / compte de bescanvi, i han passat més de 24 hores des de l\'enviament, si us plau [contacta amb aquest servei](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Envia *l\'enllaç* de la teva transacció si demana amablement que investiguin.'), _defineProperty(_ca$data, 'GEN_Help_1', 'Utilitza la teva'), _defineProperty(_ca$data, 'GEN_Help_2', 'per accedir al teu compte.'), _defineProperty(_ca$data, 'GEN_Help_3', 'El teu dispositiu * és * la teva cartera.'), _defineProperty(_ca$data, 'GEN_Help_4', 'Guies & PMF'), _defineProperty(_ca$data, 'GEN_Help_5', 'Com Crear una cartera'), _defineProperty(_ca$data, 'GEN_Help_6', 'Començant'), _defineProperty(_ca$data, 'GEN_Help_7', 'Mantén-l\'ho segur · Fes-ne una còpia de seguretat · No el comparteixis amb ningú · No el perdis · No es pot recuperar si el perds.'), _defineProperty(_ca$data, 'GEN_Help_8', 'No es descarrega un fitxer? '), _defineProperty(_ca$data, 'GEN_Help_9', 'Intentar fer servir Google Chrome '), _defineProperty(_ca$data, 'GEN_Help_10', 'Fes clic amb el botó dret i deseu el fitxer com a. Nom del fitxer: '), _defineProperty(_ca$data, 'GEN_Help_11', 'No obris aquest fitxer al teu ordinador '), _defineProperty(_ca$data, 'GEN_Help_12', 'Utilitza\'l per desbloquejar la teva cartera amb MyEtherWallet (o Mist, Geth, Parity i altres clients de carteres.) '), _defineProperty(_ca$data, 'GEN_Help_13', 'Com fer una copia de seguretat del teu fitxer Keystore '), _defineProperty(_ca$data, 'GEN_Help_14', 'Que són aquests formats diferents? '), _defineProperty(_ca$data, 'GEN_Help_15', 'Evitant perdues i robatoris dels teus fons.'), _defineProperty(_ca$data, 'GEN_Help_16', 'Que són aquests formats diferents?'), _defineProperty(_ca$data, 'GEN_Help_17', 'Perquè hauria?'), _defineProperty(_ca$data, 'GEN_Help_18', 'Per tenir-ne una segona copia de seguretat.'), _defineProperty(_ca$data, 'GEN_Help_19', 'En cas que oblidis la teva contrasenya.'), _defineProperty(_ca$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_ca$data, 'GET_ConfButton', 'Ho entenc. Continua.'), _defineProperty(_ca$data, 'GEN_Label_5', 'Desa la teva `Clau Privada`. '), _defineProperty(_ca$data, 'GEN_Unlock', 'Desbloqueja la teva cartera per veure\'n l\'adreça'), _defineProperty(_ca$data, 'GAS_PRICE_Desc', 'El preu del gas és la quantitat que pagues per unitat de gas. `TX fee = preu del gas * límit de gas` i es paga als miners per incloure la teva TX a un block. Preu de gas més elevat = transacció més ràpida, però més cara. Per defecte és `41 GWEI`.'), _defineProperty(_ca$data, 'GAS_LIMIT_Desc', 'El límit de gas és la quantitat de gas a enviar amb la teva TX. `TX fee` = preu del gas * límit de gas; i es paga als miners per incloure la teva TX a un block. Incrementat aquest nombre no farà que la teva TX sigui minada més ràpidament. Enviant ETH = `21000`. Enviant Tokens = ~`200000`.'), _defineProperty(_ca$data, 'NONCE_Desc', 'El nonce és el nombre de transaccions enviades des d\'una adreça determinada. Assegura que les transaccions s\'envien en ordre i no més d\'una vegada.'), _defineProperty(_ca$data, 'TXFEE_Desc', 'La comissió per la TX es paga als miners per incloure la teva TX en un block. És el `límit de gas` * `preu del gas`. [Pots convertir GWEI -> ETH aquí](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_ca$data, 'NAV_AddWallet', 'Afegir Cartera '), _defineProperty(_ca$data, 'NAV_BulkGenerate', 'Generar en massa '), _defineProperty(_ca$data, 'NAV_Contact', 'Contacte '), _defineProperty(_ca$data, 'NAV_Contracts', 'Contracte '), _defineProperty(_ca$data, 'NAV_DeployContract', 'Desplegar contracte '), _defineProperty(_ca$data, 'NAV_ENS', 'ENS'), _defineProperty(_ca$data, 'NAV_GenerateWallet_alt', 'Nova cartera '), _defineProperty(_ca$data, 'NAV_GenerateWallet', 'Crear una nova cartera '), _defineProperty(_ca$data, 'NAV_Help', 'Ajuda '), _defineProperty(_ca$data, 'NAV_InteractContract', 'Interactua amb un contracte '), _defineProperty(_ca$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_ca$data, 'NAV_MyWallets', 'Les meves carteres '), _defineProperty(_ca$data, 'NAV_Offline', 'Enviar sense connexió '), _defineProperty(_ca$data, 'NAV_SendEther', 'Envia Ether & Tokens '), _defineProperty(_ca$data, 'NAV_SendTokens', 'Envia Tokens '), _defineProperty(_ca$data, 'NAV_SignMsg', 'Firmar missatge '), _defineProperty(_ca$data, 'NAV_Swap', 'Intercanviar '), _defineProperty(_ca$data, 'NAV_ViewWallet', 'Veure informació d\'una cartera '), _defineProperty(_ca$data, 'NAV_YourWallets', 'Les teves carteres '), _defineProperty(_ca$data, 'x_Access', 'Accedir '), _defineProperty(_ca$data, 'x_AddessDesc', 'La teva adreça també pot ser anomenada `# de compte` o `Clau Pública`. És el que comparteixes amb la gent perquè puguin enviar-te Ether o Tokens. Cerqueu la icona d\'adreça de colors. Assegura\'t que coincideixi amb la vostra cartera de paper i quan introduïu la vostra adreça en algun lloc.'), _defineProperty(_ca$data, 'x_Address', 'La teva adreça '), _defineProperty(_ca$data, 'x_Cancel', 'Cancel·lar '), _defineProperty(_ca$data, 'x_CSV', 'Fitxer CSV (no xifrat) '), _defineProperty(_ca$data, 'x_Download', 'Descarregar '), _defineProperty(_ca$data, 'x_Json', 'Fitxer JSON(no xifrat) '), _defineProperty(_ca$data, 'x_JsonDesc', 'Aquesta és la teva clau privada no xifrada, en format JSON. Això significa que no necessites la contrasenya, però qualsevol que trobi el JSON pot accedir a la teva cartera i Ether sense la contrasenya. '), _defineProperty(_ca$data, 'x_Keystore', 'Fitxer Keystore (UTC / JSON · Recomanat · Xifrat) '), _defineProperty(_ca$data, 'x_Keystore2', 'Fitxer Keystore (UTC / JSON) '), _defineProperty(_ca$data, 'x_KeystoreDesc', 'Aquest fitxer Keystore coincideix amb el format que utilitza Mist perquè pugui importar-lo fàcilment en el futur. És el fitxer recomanat per descarregar i fer una còpia de seguretat. '), _defineProperty(_ca$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_ca$data, 'x_Mnemonic', 'Frase Mnemònica'), _defineProperty(_ca$data, 'x_ParityPhrase', 'Frase de Parity '), _defineProperty(_ca$data, 'x_Password', 'Contrasenya '), _defineProperty(_ca$data, 'x_Print', 'Imprimir cartera de paper '), _defineProperty(_ca$data, 'x_PrintDesc', 'ProTip: Fes clic a imprimir i desa\'l com a PDF, encara que no tinguis una impressora! '), _defineProperty(_ca$data, 'x_PrintShort', 'Imprimir '), _defineProperty(_ca$data, 'x_PrivKey', 'Clau privada (no xifrada) '), _defineProperty(_ca$data, 'x_PrivKey2', 'Clau privada '), _defineProperty(_ca$data, 'x_PrivKeyDesc', 'Aquesta és la versió de text que no està xifrada de la teva clau privada, la qual cosa significa que no cal una contrasenya. Si algú trobés la teva clau privada sense xifrar, podrien accedir a la cartera sense cap contrasenya. Per aquest motiu, generalment es recomanen les versions xifrades. '), _defineProperty(_ca$data, 'x_Save', 'Desar '), _defineProperty(_ca$data, 'x_TXT', 'Fitxer TXT (no xifrat) '), _defineProperty(_ca$data, 'x_Wallet', 'Cartera '), _defineProperty(_ca$data, 'CX_Tagline', 'Cartera d\'Ether de codi obert programada amb JavaScript executada en el client com a extensió de Chrome '), _defineProperty(_ca$data, 'CX_Warning_1', 'Assegura\'t que tens **còpies de seguretat externes** de les carteres que emmagatzemes aquí. Podrien passar moltes coses que farien que perdessis les dades d\'aquesta extensió de Chrome, inclosa la desinstal·lació i reinstal·lació de l\'extensió. Aquesta extensió és una forma d\'accedir fàcilment a les carteres, ** no ** una manera de fer-los una còpia de seguretat. '), _defineProperty(_ca$data, 'MEW_Tagline', 'Cartera d\'Ether de codi obert programada amb JavaScript '), _defineProperty(_ca$data, 'MEW_Warning_1', 'Comprova sempre l\'URL abans d\'accedir a la vostra cartera o crear una cartera nova. Ves amb compte amb els llocs de phishing! '), _defineProperty(_ca$data, 'FOOTER_1', 'Eina gratuïta, de codi obert que s\'executa en el client per generar carteres d\'Ethereum i més. Interactua fàcilment amb la blockchain d\'Ethereum de manera fàcil i segura. Comprova l\'URL (.com) abans de desbloquejar la teva cartera.'), _defineProperty(_ca$data, 'FOOTER_1b', 'Creat per '), _defineProperty(_ca$data, 'FOOTER_2', 'Donacions molt agraïdes '), _defineProperty(_ca$data, 'FOOTER_3', 'Generació de carteres al client per '), _defineProperty(_ca$data, 'FOOTER_4', 'Descàrrec de responsabilitat '), _defineProperty(_ca$data, 'sidebar_AccountInfo', 'Informació del compte '), _defineProperty(_ca$data, 'sidebar_AccountAddr', 'Adreça del compte '), _defineProperty(_ca$data, 'sidebar_AccountBal', 'Saldo del compte '), _defineProperty(_ca$data, 'sidebar_TokenBal', 'Saldo dels tokens '), _defineProperty(_ca$data, 'sidebar_Equiv', 'Valors equivalents '), _defineProperty(_ca$data, 'sidebar_TransHistory', 'Historial de transaccions '), _defineProperty(_ca$data, 'sidebar_donation', 'MyEtherWallet és un servei lliure i de codi obert, dedicat a la teva privacitat i seguretat. Com més donacions rebem, més temps invertim creant noves funcions, escoltant els vostres comentaris i oferint-vos el que voleu. Només som dues persones que intentem canviar el món. Ens ajudes? '), _defineProperty(_ca$data, 'sidebar_donate', 'Dóna '), _defineProperty(_ca$data, 'sidebar_thanks', 'Moltes gràcies!!! '), _defineProperty(_ca$data, 'sidebar_DisplayOnTrezor', 'Mostrar l\'adreça al TREZOR'), _defineProperty(_ca$data, 'sidebar_DisplayOnLedger', 'Mostrar l\'adreça al Ledger'), _defineProperty(_ca$data, 'decrypt_Access', 'Com t\'agradaria accedir a la teva cartera? '), _defineProperty(_ca$data, 'decrypt_Title', 'Selecciona el format de la teva clau privada '), _defineProperty(_ca$data, 'decrypt_Select', 'Selecciona una cartera '), _defineProperty(_ca$data, 'MNEM_1', 'Si us plau selecciona l\'adreça amb la que vols interactuar. '), _defineProperty(_ca$data, 'MNEM_2', 'La teva frase mnemotècnica HD pot accedir a més d\'una cartera / adreça. Selecciona l\'adreça amb la que vols interactuar en aquest moment. '), _defineProperty(_ca$data, 'MNEM_more', 'Més adreces '), _defineProperty(_ca$data, 'MNEM_prev', 'Adreces anteriors '), _defineProperty(_ca$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_ca$data, 'ADD_Ledger_1', 'Connecta amb el teu Ledger Wallet '), _defineProperty(_ca$data, 'ADD_Ledger_2', 'Obre l\'aplicació d\'Ethereum (o una aplicació de contracte) '), _defineProperty(_ca$data, 'ADD_Ledger_2_Exp', 'Obre l\'aplicació d\'Expanse (o una aplicació de contracte) '), _defineProperty(_ca$data, 'ADD_Ledger_2_Ubq', 'Obre l\'aplicació d\'Ubiq (o una aplicació de contracte) '), _defineProperty(_ca$data, 'ADD_Ledger_3', 'Verifica que "Browser Support" està habilitat a "Settings" '), _defineProperty(_ca$data, 'ADD_Ledger_4', 'Si no trobes "Browser Support" a "Settings", verifica que tens instal·lat el [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_ca$data, 'ADD_Ledger_0a', 'Has d\'accedir a MyEtherWallet utilitzant una connexió segura (SSL / HTTPS). '), _defineProperty(_ca$data, 'ADD_Ledger_0b', 'Torna a obrir MyEtherWallet utilitzant [Chrome](https://www.google.com/chrome/browser/desktop/) o [Opera](https://www.opera.com/) '), _defineProperty(_ca$data, 'ADD_Ledger_scan', 'Connecta a Ledger Wallet '), _defineProperty(_ca$data, 'ADD_MetaMask', 'Connecta to MetaMask '), _defineProperty(_ca$data, 'x_Trezor', 'TREZOR '), _defineProperty(_ca$data, 'ADD_Trezor_scan', 'Connecta a TREZOR '), _defineProperty(_ca$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_ca$data, 'ADD_DigitalBitbox_0a', 'Torna a obrir MyEtherWallet utilitzant una connexió segura (SSL) '), _defineProperty(_ca$data, 'ADD_DigitalBitbox_0b', 'Torna a obrir MyEtherWallet utilitzant [Chrome](https://www.google.com/chrome/browser/desktop/) o [Opera](https://www.opera.com/) '), _defineProperty(_ca$data, 'ADD_DigitalBitbox_scan', 'Connecta el teu Digital Bitbox '), _defineProperty(_ca$data, 'ADD_Label_1', 'Que vols fer?? '), _defineProperty(_ca$data, 'ADD_Radio_1', 'Generar una nova cartera '), _defineProperty(_ca$data, 'ADD_Radio_2', 'Selecciona un fitxer de cartera (Keystore / JSON) '), _defineProperty(_ca$data, 'ADD_Radio_2_alt', 'Selecciona un fitxer de cartera '), _defineProperty(_ca$data, 'ADD_Radio_2_short', 'SELECCIONA UN FITXER DE CARTERA... '), _defineProperty(_ca$data, 'ADD_Radio_3', 'Enganxa/Escriu la teva clau privada '), _defineProperty(_ca$data, 'ADD_Radio_4', 'Afegir un compte per supervisar '), _defineProperty(_ca$data, 'ADD_Radio_5', 'Enganxa/Escriu la teva frase mnemotècnica '), _defineProperty(_ca$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_ca$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_ca$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_ca$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_ca$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_ca$data, 'ADD_Radio_5_PathCustom', 'Personalitzat'), _defineProperty(_ca$data, 'ADD_Label_2', 'Crea un àlies '), _defineProperty(_ca$data, 'ADD_Label_3', 'La teva cartera està xifrada. Si us plau, introdueix-ne la contrasenya. '), _defineProperty(_ca$data, 'ADD_Label_4', 'Afegeix un compte per supervisar '), _defineProperty(_ca$data, 'ADD_Warning_1', 'Pots afegir qualsevol compte per "supervisar" a la pestanya de carteres sense pujar una clau privada. Això ** no ** vol dir que tinguis accés a aquesta cartera ni que puguis transferir-ne l\'Ether d\'aquesta. '), _defineProperty(_ca$data, 'ADD_Label_5', 'Introdueix l\'adreça '), _defineProperty(_ca$data, 'ADD_Label_6', 'Desbloqueja la teva cartera '), _defineProperty(_ca$data, 'ADD_Label_6_short', 'Desbloqueja '), _defineProperty(_ca$data, 'ADD_Label_7', 'Afegeix un compte '), _defineProperty(_ca$data, 'ADD_Label_8', 'Contrasenya (opcional): '), _defineProperty(_ca$data, 'MYWAL_Nick', 'Àlies de la cartera '), _defineProperty(_ca$data, 'MYWAL_Address', 'Adreça de la cartera '), _defineProperty(_ca$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_ca$data, 'MYWAL_Edit', 'Edita '), _defineProperty(_ca$data, 'MYWAL_View', 'Veure '), _defineProperty(_ca$data, 'MYWAL_Remove', 'Elimina '), _defineProperty(_ca$data, 'MYWAL_RemoveWal', 'Elimina una cartera '), _defineProperty(_ca$data, 'MYWAL_WatchOnly', 'Els teus comptes supervisats '), _defineProperty(_ca$data, 'MYWAL_Viewing', 'Veient cartera '), _defineProperty(_ca$data, 'MYWAL_Hide', 'Amagar informació de la cartera '), _defineProperty(_ca$data, 'MYWAL_Edit_2', 'Editar la cartera '), _defineProperty(_ca$data, 'MYWAL_Name', 'Nom de la cartera '), _defineProperty(_ca$data, 'MYWAL_Content_1', 'Atenció! Estàs a punt d\'eliminar la teva cartera '), _defineProperty(_ca$data, 'MYWAL_Content_2', 'Assegura\'t que has **desat la teva clau privada i/o el teu fitxer "Keystore" i la contrasenya** abans d\'eliminar-la. '), _defineProperty(_ca$data, 'MYWAL_Content_3', 'Si vols utilitzar aquesta cartera amb MyEtherWallet CX en el futur, hauràs de tornar a afegir-la manualment utilitzant la clau privada/JSON i contrasenya. '), _defineProperty(_ca$data, 'GEN_desc', 'Si vols crear múltiples carteres, pots fer-ho aquí '), _defineProperty(_ca$data, 'GEN_Label_1', 'Introdueix una contrasenya'), _defineProperty(_ca$data, 'GEN_Placeholder_1', 'NO oblidis desar això! '), _defineProperty(_ca$data, 'GEN_SuccessMsg', 'Enhorabona! S\'ha creat la teva cartera. '), _defineProperty(_ca$data, 'GEN_Label_2', 'Desa el teu fitxer `Keystore`. '), _defineProperty(_ca$data, 'GEN_Label_3', 'Desa la teva adreça. '), _defineProperty(_ca$data, 'GEN_Label_4', 'Imprimeix la teva cartera de paper o un codi QR. '), _defineProperty(_ca$data, 'BULK_Label_1', 'Quantitat de carteres a generar '), _defineProperty(_ca$data, 'BULK_Label_2', 'Quantitat de carteres '), _defineProperty(_ca$data, 'BULK_SuccessMsg', 'Enhorabona! S\'han creat les teves carteres. '), _defineProperty(_ca$data, 'SEND_addr', 'A l\'adreça '), _defineProperty(_ca$data, 'SEND_amount', 'Quantitat a enviar '), _defineProperty(_ca$data, 'SEND_amount_short', 'Quantitat '), _defineProperty(_ca$data, 'SEND_custom', 'Afegir un Token personalitzat '), _defineProperty(_ca$data, 'SEND_gas', 'Gas '), _defineProperty(_ca$data, 'SEND_TransferTotal', 'Enviar tot el saldo '), _defineProperty(_ca$data, 'SEND_generate', 'Generar la transacció '), _defineProperty(_ca$data, 'SEND_raw', 'Transacció en brut '), _defineProperty(_ca$data, 'SEND_signed', 'Transacció signada '), _defineProperty(_ca$data, 'SEND_trans', 'Enviar transacció '), _defineProperty(_ca$data, 'SENDModal_Title', 'Alerta! '), _defineProperty(_ca$data, 'SENDModal_Content_1', 'Estàs a punt d\'enviar '), _defineProperty(_ca$data, 'SENDModal_Content_2', 'a l\'adreça '), _defineProperty(_ca$data, 'SENDModal_Content_3', 'Estàs segur que vols fer-ho? '), _defineProperty(_ca$data, 'SENDModal_Content_4', 'NOTA: Si trobes un error, és molt probable que necessitis afegir ether al teu compte per cobrir el cost del gas d\'enviar tokens. El gas es paga amb ether. '), _defineProperty(_ca$data, 'SENDModal_No', 'No, treu-me d\'aquí! '), _defineProperty(_ca$data, 'SENDModal_Yes', 'Sí, n\'estic segur! Realitza la transacció. '), _defineProperty(_ca$data, 'TOKEN_Addr', 'Adreça del Token '), _defineProperty(_ca$data, 'TOKEN_Symbol', 'Símbol del Token '), _defineProperty(_ca$data, 'TOKEN_Dec', 'Decimals '), _defineProperty(_ca$data, 'TOKEN_show', 'Mostra tots els tokens '), _defineProperty(_ca$data, 'TOKEN_hide', 'Amaga els tokens '), _defineProperty(_ca$data, 'TRANS_desc', 'Si vols enviar tokens, si us plau utilitza la pàgina d\'"Enviar token". '), _defineProperty(_ca$data, 'TRANS_advanced', '+Avançat: Afegir dades '), _defineProperty(_ca$data, 'TRANS_data', 'Dades '), _defineProperty(_ca$data, 'TRANS_gas', 'Limit de gas '), _defineProperty(_ca$data, 'TRANS_sendInfo', 'Una transacció estàndard utilitzant 21000 gas costarà 0.000441 ETH. Utilitzem un preu una mica per sobre del mínim de 0.000000021 ETH per assegurar que es mina ràpidament. No ens quedem cap comissió per la transacció. '), _defineProperty(_ca$data, 'OFFLINE_Title', 'Crea i envia una transacció sense connexió '), _defineProperty(_ca$data, 'OFFLINE_Desc', 'Es poden crear transaccions sense connexió amb tres passos. Has de realitzar els passos 1 i 3 en un ordinador amb connexió, i el pas 2 en un ordinador sense connexió. Això assegura que les teves claus privades no toquen un dispositiu connectat a internet. '), _defineProperty(_ca$data, 'OFFLLINE_Step1_Title', 'Pas 1: Genera la informació (Ordinador amb connexió) '), _defineProperty(_ca$data, 'OFFLINE_Step1_Button', 'Genera la informació '), _defineProperty(_ca$data, 'OFFLINE_Step1_Label_1', 'Des de l\'adreça '), _defineProperty(_ca$data, 'OFFLINE_Step1_Label_2', 'Nota: Aquesta és l\'adreça ORIGEN, no l\'adreça de destí. El Nonce es genera des de la compte origen. Si utilitzer un ordinador sense connexió, seria l\'adreça del compte del "cold-storage". '), _defineProperty(_ca$data, 'OFFLINE_Step2_Title', 'Pas 2: Genera la transacció (Ordinador sense connexió) '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_1', 'A l\'adreça '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_2', 'Valor / Quantitat a enviar '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_3', 'Preu del gas '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_3b', 'Això s\'ha mostrat al pas 1 al teu ordinador amb connexió. '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_4', 'Límit de gas '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_4b', '21000 és el límit de gas per defecte. Quan envies contractes o dades addicionals, pot ser que el que necessitis sigui diferent. El gas no utilitzat se\'t retornarà. '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_5b', 'Això s\'ha mostrat al pas 1 al teu ordinador amb connexió. '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_6', 'Dades '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_6b', 'Això és opcional. Les dades normalment són utilitzades quan envies transaccions a contractes. '), _defineProperty(_ca$data, 'OFFLINE_Step2_Label_7', 'Introdueix / Selecciona la teva clau privada / JSON. '), _defineProperty(_ca$data, 'OFFLINE_Step3_Title', 'Pas 3: Envia / Publica la transacció (Ordinador amb connexió) '), _defineProperty(_ca$data, 'OFFLINE_Step3_Label_1', 'Enganxa la transacció signada del pas 2 aquí i prem el botó "ENVIAR TRANSACCIÓ". '), _defineProperty(_ca$data, 'CONTRACT_Title', 'Adreça del contracte '), _defineProperty(_ca$data, 'CONTRACT_Title_2', 'Selecciona un contracte existent '), _defineProperty(_ca$data, 'CONTRACT_Json', 'Interfície ABI / JSON '), _defineProperty(_ca$data, 'CONTRACT_Interact_Title', 'Llegeix / Escriu el contracte '), _defineProperty(_ca$data, 'CONTRACT_Interact_CTA', 'Selecciona una funció '), _defineProperty(_ca$data, 'CONTRACT_ByteCode', 'Codi de Bytes '), _defineProperty(_ca$data, 'CONTRACT_Read', 'LLEGIR '), _defineProperty(_ca$data, 'CONTRACT_Write', 'ESCRIURE '), _defineProperty(_ca$data, 'DEP_generate', 'Genera Bytecode '), _defineProperty(_ca$data, 'DEP_generated', 'Bytecode generat'), _defineProperty(_ca$data, 'DEP_signtx', 'Signa la transacció '), _defineProperty(_ca$data, 'DEP_interface', 'Interfície generada '), _defineProperty(_ca$data, 'NODE_Title', 'Configura el teu node personalitzar'), _defineProperty(_ca$data, 'NODE_Subtitle', 'Per connectar al teu node local...'), _defineProperty(_ca$data, 'NODE_Warning', 'El teu node ha de ser HTTPS per tal de poder-t\'hi connectar utilitzant MyEtherWallet.com. Pots [descarregar-te el repo de MyEtherWallet i executar-lo localment](https://github.com/kvhnuke/etherwallet/releases/latest) per connectar-te a qualsevol node. O, obtén un certificat SSSL gratuït amb [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_ca$data, 'NODE_Name', 'Nom del node'), _defineProperty(_ca$data, 'NODE_Port', 'Port del node'), _defineProperty(_ca$data, 'NODE_CTA', 'Desa & utilitza el node personalitzat'), _defineProperty(_ca$data, 'SWAP_rates', "Tarifes actuals "), _defineProperty(_ca$data, 'SWAP_init_1', "Vull intercanviar els meus "), _defineProperty(_ca$data, 'SWAP_init_2', " per "), _defineProperty(_ca$data, 'SWAP_init_CTA', "Fes-ho! "), _defineProperty(_ca$data, 'SWAP_information', "Le teva informació "), _defineProperty(_ca$data, 'SWAP_send_amt', "Quantitat a enviar "), _defineProperty(_ca$data, 'SWAP_rec_amt', "Quantitat a rebre "), _defineProperty(_ca$data, 'SWAP_your_rate', "La teva tarifa "), _defineProperty(_ca$data, 'SWAP_rec_add', "La teva adreça de recepció "), _defineProperty(_ca$data, 'SWAP_start_CTA', "Inicia l\'intercanvi "), _defineProperty(_ca$data, 'SWAP_ref_num', "El teu número de referència "), _defineProperty(_ca$data, 'SWAP_time', "Temps restant per enviar "), _defineProperty(_ca$data, 'SWAP_elapsed', "Temps transcorregut des de l'enviament "), _defineProperty(_ca$data, 'SWAP_progress_1', "Comanda iniciada "), _defineProperty(_ca$data, 'SWAP_progress_2', "Esperant pels teus "), _defineProperty(_ca$data, 'SWAP_progress_3', "Rebut! "), _defineProperty(_ca$data, 'SWAP_progress_4', "Enviant el teu {{orderResult.output.currency}} "), _defineProperty(_ca$data, 'SWAP_progress_5', "Comanda completa "), _defineProperty(_ca$data, 'SWAP_order_CTA', "Si us plau envia "), _defineProperty(_ca$data, 'SWAP_unlock', "Desbloqueja la teva cartera per enviar ETH o Tokens directament des d\'aquesta pàgina "), _defineProperty(_ca$data, 'MSG_message', 'Missatge '), _defineProperty(_ca$data, 'MSG_date', 'Data '), _defineProperty(_ca$data, 'MSG_signature', 'Signatura '), _defineProperty(_ca$data, 'MSG_verify', 'Verifica el missatge '), _defineProperty(_ca$data, 'MSG_info1', 'Inclou la data actual per tal que la signatura no pugui ser reutilitzada en una data diferent. '), _defineProperty(_ca$data, 'MSG_info2', 'Inclou el teu àlies i on el fas servir per tal que ningú més pugui utilitzar-lo. '), _defineProperty(_ca$data, 'MSG_info3', 'Inclou una raó específica per tal que el missatge no pugui ser reutilitzat per un altre propòsit. '), _defineProperty(_ca$data, 'VIEWWALLET_Subtitle', 'Això et permet descarregar diferents versions de les claus privades i tornar a imprimir la teva cartera de paper. És possible que vulguis fer això per [importar el teu compte a Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Si vols comprovar el teu saldo, recomanem utilitzar un explorador de la blockchain com [etherscan.io](https://etherscan.io/). '), _defineProperty(_ca$data, 'VIEWWALLET_Subtitle_Short', 'Això et permet descarregar diferents versions de les claus privades i tornar a imprimir la teva cartera de paper. '), _defineProperty(_ca$data, 'VIEWWALLET_SuccessMsg', 'Enhorabona! Aquests són els detalls de la teva cartera. '), _defineProperty(_ca$data, 'VIEWWALLET_ShowPrivKey', '(mostra)'), _defineProperty(_ca$data, 'VIEWWALLET_HidePrivKey', '(amaga)'), _defineProperty(_ca$data, 'CX_error_1', 'No tens cap cartera desada. Fes clic ["Afegeix cartera"](/cx-wallet.html#add-wallet) per afegir-ne una! '), _defineProperty(_ca$data, 'CX_quicksend', 'Envia '), _defineProperty(_ca$data, 'ERROR_0', '(error_01) Si us plau, introdueix una quantitat vàlida. (Please enter a valid amount.)'), _defineProperty(_ca$data, 'ERROR_1', '(error_02) La teva contrasenya ha de tenir 9 caràcters com a mínim. Si us plau, assegura\´t que és una contrasenya forta. (Your password must be at least 9 characters. Please ensure it is a strong password.)'), _defineProperty(_ca$data, 'ERROR_2', '(error_03) Perdó! No reconeixem aquest tipus de fitxer de cartera. (Sorry! We don\'t recognize this type of wallet file.)'), _defineProperty(_ca$data, 'ERROR_3', '(error_04) Aquest fitxer de cartera no és vàlid. (This is not a valid wallet file.)'), _defineProperty(_ca$data, 'ERROR_4', '(error_05) Aquesta unitat no existeix, si us plau utilitza\'n una de les següents (This unit doesn\'t exists, please use the one of the following units)'), _defineProperty(_ca$data, 'ERROR_5', '(error_06) Si us plau introdueix una adreça vàlida. (Please enter a valid address.)'), _defineProperty(_ca$data, 'ERROR_6', '(error_07) Si us plau introdueix una contrasenya vàlida. (Please enter a valid password.)'), _defineProperty(_ca$data, 'ERROR_7', '(error_08) Si us plau introdueix decimals vàlids Ha de ser enter. Prova 0-18. (Please enter valid decimals. Must be an integer. Try 0-18.)'), _defineProperty(_ca$data, 'ERROR_8', '(error_09) Si us plau introdueix un gas límit vàlid (Ha de ser enter. Prova 21000-4000000.) (Please enter a valid gas limit (Must be an integer. Try 21000-4000000.))'), _defineProperty(_ca$data, 'ERROR_9', '(error_10) Si us plau introdueix un valor per les dades vàlid Ha de ser hex. (Please enter a valid data value (Must be hex.))'), _defineProperty(_ca$data, 'ERROR_10', '(error_11) Si us plau introdueix un preu de gas vàlid. (Enter. Prova 20 GWEI / 20000000000 WEI.) (Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_ca$data, 'ERROR_11', '(error_12) Si us plau introdueix un nonce vàlid (Ha de ser enter.) (Please enter a valid nonce (Must be an integer.))'), _defineProperty(_ca$data, 'ERROR_12', '(error_13) Transacció signada no vàlida. (Invalid signed transaction.)'), _defineProperty(_ca$data, 'ERROR_13', '(error_14) Ja existeix una cartera amb aquest àlies. (A wallet with this nickname already exists.)'), _defineProperty(_ca$data, 'ERROR_14', '(error_15) Cartera no trobada. (Wallet not found.)'), _defineProperty(_ca$data, 'ERROR_15', '(error_16) No sembla que existeixi una proposta amb aquest ID o hi ha hagut un error llegint-la. (Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.)'), _defineProperty(_ca$data, 'ERROR_16', '(error_17) Ja hi ha emmagatzemada una cartera amb aquesta adreça. Si us plau comprova la pàgina de carteres. (A wallet with this address already exists in storage. Please check your wallets page.)'), _defineProperty(_ca$data, 'ERROR_17', '(error_18) El compte d\'origen no té prou saldo. Si estàs enviant tokens, has de tenir 0.01 ETH al teu compte per cobrir el cost del gas. (Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html))'), _defineProperty(_ca$data, 'ERROR_18', '(error_19) Tot el gas seria utilitzat en aquesta transacció. Això vol dir que ja has votat aquesta proposta o que el període de debat ja ha acabat. (All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.)'), _defineProperty(_ca$data, 'ERROR_19', '(error_20) Si us play introdueix un símbol vàlid (Please enter a valid symbol)'), _defineProperty(_ca$data, 'ERROR_20', '(error_21) No és un token ERC-20 vàlid (Not a valid ERC-20 token)'), _defineProperty(_ca$data, 'ERROR_21', '(error_22) No s\'ha pogut calcular el gas necessari. No hi ha prou saldo en el compte, o el contracte destí ha llençat un error. Pots ajustar el gas manualment i continuar. És possible que el missatge d\'error al enviar contingui més informació. (Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.)'), _defineProperty(_ca$data, 'ERROR_22', '(error_23) Si us plau introdueix un nom de node vàlid (Please enter a valid node name)'), _defineProperty(_ca$data, 'ERROR_23', '(error_24) Si us plau introdueix una URL vàlida URL. Si estàs sota https, la teva URL ha de ser https (Please enter a valid URL. If you are on https, your URL must be https)'), _defineProperty(_ca$data, 'ERROR_24', '(error_25) Si us plau introdueix un port vàlid. (Please enter a valid port.)'), _defineProperty(_ca$data, 'ERROR_25', '(error_26) Si us plau introdueix un ID de cadena vàlid. (Please enter a valid chain ID.)'), _defineProperty(_ca$data, 'ERROR_26', '(error_27) PSi us plau introdueix un ABI vàlid. (Please enter a valid ABI.)'), _defineProperty(_ca$data, 'ERROR_27', '(error_28) Quantitat mínima: 0.01. Quantitat max.: (Minimum amount: 0.01. Max amount:)'), _defineProperty(_ca$data, 'ERROR_28', '(error_29) Necessites aquest `Fitxer Keystore + Contrasenya` o la `Clau Privada` (següent pàgina) per tal d\'accedir a aquesta cartera en el futur. (You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. )'), _defineProperty(_ca$data, 'ERROR_29', '(error_30) Si us plau introdueix un usuari i contrasenya vàlids. (Please enter a valid user and password.)'), _defineProperty(_ca$data, 'ERROR_30', '(error_31) Si us plau introdueix un nom vàlid (+7 caràcters, puntuació límitada) (Please enter a valid name (7+ characters, limited punctuation))'), _defineProperty(_ca$data, 'ERROR_31', '(error_32) Introdueix una frase secreta vàlida. (Please enter a valid secret phrase.)'), _defineProperty(_ca$data, 'ERROR_32', '(error_33) No s\'ha pogut connectar al node. Refresca la teva pàgina, prova-ho amb un altre node (cantonada superior-dreta), comprova el teu firewall. En mode personalitzar, comprova les teves preferències. (Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.)'), _defineProperty(_ca$data, 'ERROR_33', '(error_34) La cartera que has desbloquejat no correspon amb l\'adreça del propietari. (The wallet you have unlocked does not match the owner\'s address.)'), _defineProperty(_ca$data, 'ERROR_34', '(error_35) El nom que estàs intentant mostrar no coincideix amb el nom que has introduït. (The name you are attempting to reveal does not match the name you have entered.)'), _defineProperty(_ca$data, 'ERROR_35', '(error_36) L\'adreça introduïda no s\'ha comprovat mitjantçant checksum. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Més informació</a> (Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>)'), _defineProperty(_ca$data, 'ERROR_36', '(error_37) Introdueix un hash de TX vàlid (Please enter a valid TX hash)'), _defineProperty(_ca$data, 'ERROR_37', '(error_38) Introdueix una cadena hex (0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f) vàlida (Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f)'), _defineProperty(_ca$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0)'), _defineProperty(_ca$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum)'), _defineProperty(_ca$data, 'GETH_Balance', '(geth-01) Saldo insuficient. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_ca$data, 'GETH_Cheap', '(geth-02) El preu del gas és massa petit per ser acceptat. Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_ca$data, 'GETH_GasLimit', '(geth-03) Excedeix del block gas límit. Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_ca$data, 'GETH_InsufficientFunds', '(geth-04) Saldo insuficient per gas * preu + valor. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_ca$data, 'GETH_IntrinsicGas', '(geth-05) Gas intrínsec massa baix. Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_ca$data, 'GETH_InvalidSender', '(geth-06) Emissor no vàlid. Invalid sender.'), _defineProperty(_ca$data, 'GETH_NegativeValue', '(geth-07) Valor negatiu. Negative value.'), _defineProperty(_ca$data, 'GETH_Nonce', "(geth-08) Nonce massa baix. This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_ca$data, 'GETH_NonExistentAccount', '(geth-09) El compte no existeix o el saldo és massa baix. Account does not exist or account balance too low'), _defineProperty(_ca$data, 'PARITY_AlreadyImported', "(parity-01) Ja s'havia importat la transacció amb el mateix hash. (A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html))"), _defineProperty(_ca$data, 'PARITY_GasLimitExceeded', "(parity-02) El cost de la transacció sobrepassa el límit actual de gas. Limit: {}, tens: {}. Intenta disminuir el gas proporcionat. (Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html))"), _defineProperty(_ca$data, 'PARITY_InsufficientBalance', "(parity-03) Saldo insuficient. El compte d\'origen que estàs utilitzant no té prou saldo. Obligatori {} wei i tens: {} wei. (Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html))"), _defineProperty(_ca$data, 'PARITY_InsufficientGasPrice', "(parity-04) La comissió de la transacció és massa baixa. No satisfà la comissió mínima dle node (minimal: {}, got: {}). Intenta augmentar la comissió. (There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ca$data, 'PARITY_InvalidGasLimit', "(parity-05) El gas proporcionat és més enllà del límit. (Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html))"), _defineProperty(_ca$data, 'PARITY_LimitReached', "(parity-06) Hi ha massa transaccions a la cua. La teva transacció ha sigut eliminada degut al límit. Prova incrementant la comissió. (There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html))"), _defineProperty(_ca$data, 'PARITY_Old', "(parity-07) El nonce de la transacció és massa baix. Proveu d'augmentar-lo. (There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html).)"), _defineProperty(_ca$data, 'PARITY_TooCheapToReplace', "(parity-08) La comissió de la transacció és massa baixa. Hi ha una altra transacció amb el mateix nonce a la cua. Intenta augmentar la comissió o el nonce. (TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html))"), _defineProperty(_ca$data, 'SUCCESS_1', 'Adreça vàlida '), _defineProperty(_ca$data, 'SUCCESS_2', 'Cartera desxifrada amb èxit '), _defineProperty(_ca$data, 'SUCCESS_3', 'La teva TX s\'ha emès a la xarxa. Està esperant ha ser minada i confirmada. Durant ICOs, pot trigar més de 3 hores a ser confirmada. Utilitza els següents botons de Verificar & Comprovar per veur-ho. TX Hash: '), _defineProperty(_ca$data, 'SUCCESS_4', 'La teva cartera s\'ha afegit correctament '), _defineProperty(_ca$data, 'SUCCESS_5', 'Fitxer seleccionat '), _defineProperty(_ca$data, 'SUCCESS_6', 'Estàs connectat correctament '), _defineProperty(_ca$data, 'SUCCESS_7', 'Signatura del missatge verificada'), _defineProperty(_ca$data, 'WARN_Send_Link', 'Has arribat mitjançant un enllaç que conté una adreça, valor, gas, dades o tipus de transacció (mode enviar) omplerts. Pots canviar qualsevol informació abans d\'enviar. Desbloqueja la teva cartera per començar. '), _defineProperty(_ca$data, 'translate_version', '0.1 '), _defineProperty(_ca$data, 'Translator_Desc', 'Gràcies als nostres traductors '), _defineProperty(_ca$data, 'TranslatorName_1', 'Aleix Canal Oliver '), _defineProperty(_ca$data, 'TranslatorAddr_1', ' '), _defineProperty(_ca$data, 'TranslatorName_2', ' '), _defineProperty(_ca$data, 'TranslatorAddr_2', ' '), _defineProperty(_ca$data, 'TranslatorName_3', ' '), _defineProperty(_ca$data, 'TranslatorAddr_3', ' '), _defineProperty(_ca$data, 'TranslatorName_4', ' '), _defineProperty(_ca$data, 'TranslatorAddr_4', ' '), _defineProperty(_ca$data, 'TranslatorName_5', ' '), _defineProperty(_ca$data, 'TranslatorAddr_5', ' '), _defineProperty(_ca$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_ca$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_ca$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_ca$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_ca$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_ca$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_ca$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_ca$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_ca$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_ca$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_ca$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_ca$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_ca$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_ca$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_ca$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_ca$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_ca$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_ca$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_ca$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_ca$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_ca$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_ca$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys '), _defineProperty(_ca$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_ca$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_ca$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_ca$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_ca$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_ca$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_ca$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_ca$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_ca$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_ca$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_ca$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_ca$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_ca$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_ca$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_ca$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_ca$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_ca$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ca$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ca$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_ca$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_ca$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_ca$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_ca$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_ca$data, 'HELP_4_Desc_2', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_ca$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ca$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ca$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_ca$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ca$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ca$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_ca$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ca$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ca$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ca$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ca$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_ca$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Send Ether & Tokens" page. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_2', 'QuickSend '), _defineProperty(_ca$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_ca$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_ca$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_ca$data, 'HELP_4CX_Desc_12', 'Using "Send Ether & Tokens" Page '), _defineProperty(_ca$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_ca$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_ca$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_ca$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_ca$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_ca$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_ca$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_ca$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_ca$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_ca$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_ca$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_ca$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_ca$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_ca$data, 'HELP_7_Title', '7) How do I send tokens & add custom tokens? '), _defineProperty(_ca$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_ca$data, 'HELP_7_Desc_1', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_ca$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_ca$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ca$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_ca$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_ca$data, 'HELP_7_Desc_6', 'If you do not see the token listed '), _defineProperty(_ca$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_ca$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_ca$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_ca$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_ca$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_ca$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ca$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ca$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ca$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ca$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_ca$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_ca$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_ca$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_ca$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_ca$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_ca$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_ca$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_ca$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_ca$data, 'HELP_9_Title', '9) Is the "Send Ether & Tokens" page offline? '), _defineProperty(_ca$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_ca$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_ca$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_ca$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_ca$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_ca$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ca$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ca$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas límit. Any excess gas will be returned to you. '), _defineProperty(_ca$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas límit. All data is in HEX format. '), _defineProperty(_ca$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ca$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_ca$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_ca$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_ca$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_ca$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_ca$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_ca$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_ca$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_ca$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_ca$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_ca$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_ca$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_ca$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_ca$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_ca$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_ca$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_ca$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_ca$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_ca$data, 'HELP_12_Desc_15', 'If you are on a Mac '), _defineProperty(_ca$data, 'HELP_12_Desc_15b', 'If you are on a PC '), _defineProperty(_ca$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_ca$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_ca$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_ca$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_ca$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ca$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ca$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ca$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_ca$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_ca$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_ca$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ca$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ca$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ca$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_ca$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_ca$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_ca$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_ca$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_ca$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_ca$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_ca$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_ca$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_ca$data, 'HELP_17_Desc_1', ' This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_ca$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_ca$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_ca$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_ca$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_ca$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_ca$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_ca$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_ca$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_ca$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_ca$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_ca$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_ca$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_ca$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_ca$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_ca$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_ca$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_ca$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_ca$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_ca$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_ca$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_ca$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_ca$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_ca$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_ca$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_ca$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_ca$data, 'HELP_Contact_Title', 'Ways to Get in Touch '), _ca$data);
module.exports = ca;
},{}],107:[function(require,module,exports){
// German
'use strict';
var _de$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var de = function de() {};
de.code = 'de';
de.data = (_de$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_de$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_de$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_de$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_de$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_de$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_de$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_de$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_de$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_de$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_de$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_de$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_de$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_de$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_de$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_de$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_de$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_de$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_de$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_de$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_de$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_de$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_de$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_de$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_de$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_de$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_de$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_de$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_de$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_de$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_de$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_de$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_de$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_de$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_de$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_de$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_de$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_de$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_de$data, 'x_CancelReplaceTx', 'Transaktion ersetzen oder zurückziehen'), _defineProperty(_de$data, 'x_CancelTx', 'Transaktion zurückziehen'), _defineProperty(_de$data, 'x_PasswordDesc', 'Dieses Passwort * verschlüsselt * Ihren privaten Schlüssel. Es wird nicht verwendet, um den Schlüssel zu erzeugen. **Sie benötigen dieses Passwort und ihren privaten Schlüssel, um das Wallet zu entsperren.**'), _defineProperty(_de$data, 'x_ReadMore', 'Weiter lesen'), _defineProperty(_de$data, 'x_ReplaceTx', 'Transaktion ersetzen'), _defineProperty(_de$data, 'x_TransHash', 'Transaktions Hash'), _defineProperty(_de$data, 'x_TXFee', 'TX Gebühr'), _defineProperty(_de$data, 'x_TxHash', 'TX Hash'), _defineProperty(_de$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_de$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_de$data, 'tx_Details', 'Transaktionsdetails'), _defineProperty(_de$data, 'tx_Summary', 'Zu manchen Zeiten (z.B. während der Laufzeit mancher ICOs) können einzelne Transaktionen für Stunden, villeicht sogar Tage ausstehen. Dieses Tool gibt Ihnen die Fähigkeit ihre Transaktion zu finden und zu widerrufen / ersetzen. ** Dies können Sie normalerweise nicht machen. Man sollte sich darauf nicht verlassen und es funktioniert nur, wenn die TX Pools voll sind. [Lesen Sie mehr über das Tool hier](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_de$data, 'tx_notFound', 'Transaktion nicht gefunden'), _defineProperty(_de$data, 'tx_notFound_1', 'Die Transaktion kann nicht in dem Transaktions-Pool des Nodes, mit dem Sie verbunden sind, gefunden werden.'), _defineProperty(_de$data, 'tx_notFound_2', 'Wenn Sie die Transaktion erst gesendet haben, warten Sie bitte 15 Sekunden und drücken dann den "Check TX Status" Button erneut. '), _defineProperty(_de$data, 'tx_notFound_3', 'Sie könnte noch in dem Transaktions-Pool eines anderen Node sein und wartet gemined zu werden.'), _defineProperty(_de$data, 'tx_notFound_4', 'Bitte benutzen Sie das DropDown Menü oben-rechts & wählen Sie eine andere Node aus (z.B. `ETH (Etherscan.io)` oder `ETH (Infura.io)` oder `ETH (MyEtherWallet)`) und prüfen es erneut.'), _defineProperty(_de$data, 'tx_foundInPending', 'Wartende Transaktion gefunden'), _defineProperty(_de$data, 'tx_foundInPending_1', 'Ihre Transaktion wurde in dem Transaktions-Pool des Nodes, mit dem Sie verbunden sind, gefunden. '), _defineProperty(_de$data, 'tx_foundInPending_2', 'Sie steht derzeit aus (wartet gemined zu werden). '), _defineProperty(_de$data, 'tx_foundInPending_3', 'Es ist möglich Sie zu widerrufen oder diese Transaktion zu ersetzen. Entsperren Sie ihre Wallet darunter.'), _defineProperty(_de$data, 'tx_FoundOnChain', 'Transaktion gefunden'), _defineProperty(_de$data, 'tx_FoundOnChain_1', 'Ihre Transaktion wurde gemined und ist nun in der Blockchain.'), _defineProperty(_de$data, 'tx_FoundOnChain_2', '**Wenn Sie ein rotes`( ! )`, ein `BAD INSTRUCTION` oder `OUT OF GAS` Fehlernachricht bekommen**, heißt dass, dass die Transaktion nicht erfolgreich *gesendet* worden ist. Sie können die Transaktion nicht zurücknehmen oder ersetzen. Stattdessen, sende eine neue Transaktion. Wenn Sie einen "Out of Gas" Fehler bekommen, sollten Sie das GasLimit verdoppeln, dass Sie ursprünglich benutzt haben.'), _defineProperty(_de$data, 'tx_FoundOnChain_3', '**Wenn sie keine Fehlernachrichten bekommen, wurde ihre Transaktion erfolgreich versendet.** Ihre ETH oder Tokens sind dort, wohin sie versendet wurden. Wenn Sie die ETH or Tokens nicht im anderen Wallet / Exchange account sehen können, und es schon mehr als 24 Stunden her ist, seitdem Sie gesendet haben, bitte [Kontaktieren Sie den Service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Senden Sie den *link* zu ihrer Transaktion und fragen Sie höflich, die Situation anzuschauen.'), _defineProperty(_de$data, 'GEN_Help_1', 'Nutzen Sie Ihre'), _defineProperty(_de$data, 'GEN_Help_2', 'um auf Ihren Account zuzugreifen.'), _defineProperty(_de$data, 'GEN_Help_3', 'Ihr Gerät * ist * Ihr Wallet.'), _defineProperty(_de$data, 'GEN_Help_4', 'Anleitungen & FAQ'), _defineProperty(_de$data, 'GEN_Help_5', 'Wie erstellt man eine Wallet'), _defineProperty(_de$data, 'GEN_Help_6', 'Einstieg'), _defineProperty(_de$data, 'GEN_Help_7', 'Sicher aufbewahren · Machen Sie eine Sicherung · Zeigen Sie es keinem · Verlieren Sie es nicht · Es gibt * keinen * Weg diese Informationen wiederherzustellen, wenn Sie es verlieren.'), _defineProperty(_de$data, 'GEN_Help_8', 'Datei wird nicht heruntergeladen? '), _defineProperty(_de$data, 'GEN_Help_9', 'Versuche Google Chrome oder Chromium zu benutzen '), _defineProperty(_de$data, 'GEN_Help_10', 'Rechtsklick & Datei speichern als. Dateiname: '), _defineProperty(_de$data, 'GEN_Help_11', 'Diese Datei auf deinem Computer **nicht** öffnen '), _defineProperty(_de$data, 'GEN_Help_12', 'Nutze es um dein Wallet bei MyEtherWallet (oder Mist, Geth, Parity und andere Wallet Clients.) zu öffnen '), _defineProperty(_de$data, 'GEN_Help_13', 'Wie kann ich meine Keystore File sichern? '), _defineProperty(_de$data, 'GEN_Help_14', 'Was sind diese verschiedene Formate? '), _defineProperty(_de$data, 'GEN_Help_15', 'Verhüten Sie den Verlust &amp; Diebstahl Ihres Geldes.'), _defineProperty(_de$data, 'GEN_Help_16', 'Was sind diese verschiedene Formate?'), _defineProperty(_de$data, 'GEN_Help_17', 'Warum sollte Ich?'), _defineProperty(_de$data, 'GEN_Help_18', 'Um ein zweites Backup zu haben.'), _defineProperty(_de$data, 'GEN_Help_19', 'Im Fall, dass Sie Ihr Passwort vergessen.'), _defineProperty(_de$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_de$data, 'GET_ConfButton', 'Ich verstehe. Weiter.'), _defineProperty(_de$data, 'GEN_Label_5', 'Sichern Sie Ihren `Privaten Schlüssel`. '), _defineProperty(_de$data, 'GEN_Unlock', 'Entsperren Sie Ihr Wallet um Ihre Adresse zu sehen.'), _defineProperty(_de$data, 'GAS_PRICE_Desc', 'Der `Gas Preis` ist der Betrag, den Sie für eine Einheit `Gas` bezahlen. `Transaktionsgebühr = Gas Preis * Gas Limit`. Dieser Betrag wird den Minern gezahlt, die Ihre Transaktion in einem Block einschließen. Je höher der Gas-Preis, desto schneller wird die Transaktion verarbeitet, aber desto teurer wird die Transaktionsgebühr. Der Standardwert ist `41 GWEI`.'), _defineProperty(_de$data, 'GAS_LIMIT_Desc', 'Das Gas-Limit ist der Betrag an Gas, der mit Ihrer Transaktion mitgeschickt wird. `Transaktionsgebühr = Gas Preis * Gas Limit`. Dieser Betrag wird den Minern gezahlt, die Ihre Transaktion in einem Block einschließen. Wenn Sie diese Zahl erhöhen, wird ihre Transaktion nicht schneller verarbeitet. Eine zu kleine Zahl kann jedoch bedeuten, dass die Transaktion nicht erfolgreich verarbeitet werden kann. Ein Anhaltspunkt: Eine einfache Überweisung benötigt ca. 21000 Gas, ein Token-Transfer etwa 200.000 Gas.'), _defineProperty(_de$data, 'NONCE_Desc', 'Der `Nonce` ist die Zahl der Transaktionen, die von einer bestimmten Adresse aus gesendet wurden. Er stellt sicher, dass Transaktionen der Reihe nach und nicht doppelt ausgeführt werden können.'), _defineProperty(_de$data, 'TXFEE_Desc', 'Die Transaktionsgebühr wird den Miner(n) bezahlt, die Ihre Transaktion in einen Block einschließen. Es wird durch `Gas-Limit` * `Gas-Preis` berechnet. [Du kannst GWEI -> ETH hier umwandeln](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_de$data, 'NAV_AddWallet', 'Wallet hinzufügen '), _defineProperty(_de$data, 'NAV_BulkGenerate', 'Mehrere Wallets erstellen '), _defineProperty(_de$data, 'NAV_Contact', 'Kontakt '), _defineProperty(_de$data, 'NAV_Contracts', 'Verträge '), _defineProperty(_de$data, 'NAV_DeployContract', 'Vertrag aufstellen '), _defineProperty(_de$data, 'NAV_ENS', 'ENS'), _defineProperty(_de$data, 'NAV_GenerateWallet_alt', 'Neues Wallet '), _defineProperty(_de$data, 'NAV_GenerateWallet', 'Wallet erstellen '), _defineProperty(_de$data, 'NAV_Help', 'Hilfe '), _defineProperty(_de$data, 'NAV_InteractContract', 'Interagieren mit Vertrag '), _defineProperty(_de$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_de$data, 'NAV_MyWallets', 'Meine Wallets '), _defineProperty(_de$data, 'NAV_Offline', 'Sende offline '), _defineProperty(_de$data, 'NAV_SendEther', 'Sende Ether und Tokens '), _defineProperty(_de$data, 'NAV_SendTokens', 'Sende Tokens '), _defineProperty(_de$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_de$data, 'NAV_Swap', 'Wechseln '), _defineProperty(_de$data, 'NAV_ViewWallet', 'Wallet Infos anzeigen '), _defineProperty(_de$data, 'NAV_YourWallets', 'Deine Wallets '), _defineProperty(_de$data, 'x_Access', 'Zugriff '), _defineProperty(_de$data, 'x_AddessDesc', 'Dies ist Ihre "Kontonummer" oder Ihr "Öffentlicher Schlüssel". Sie benötigen diese Adresse, wenn Ihnen jemand Ether oder Tokens senden möchte. Das Icon ist eine einfache Möglichkeit, die Adresse zu überprüfen '), _defineProperty(_de$data, 'x_Address', 'Ihre Adresse '), _defineProperty(_de$data, 'x_Cancel', 'Abbrechen '), _defineProperty(_de$data, 'x_CSV', 'CSV-Datei (unverschlüsselt) '), _defineProperty(_de$data, 'x_Download', 'Herunterladen '), _defineProperty(_de$data, 'x_Json', 'JSON-Datei (unverschlüsselt) '), _defineProperty(_de$data, 'x_JsonDesc', 'Dies ist die unverschlüsselte Version deines privaten Schlüssels im JSON-Format. Du benötigst daher kein Passwort, aber jeder, der über diese JSON-Datei verfügt, hat ohne Passwort Zugang zu deinem Wallet und dem darin enthaltenen Ether. '), _defineProperty(_de$data, 'x_Keystore', 'Keystore File (UTC / JSON · Empfohlen · Verschlüsselt) '), _defineProperty(_de$data, 'x_Keystore2', 'Keystore File (UTC / JSON) '), _defineProperty(_de$data, 'x_KeystoreDesc', 'Diese Keystore-Datei passt zu dem Format, das von Mist verwendet wird, sodass Sie diese Datei dort zukünftig einfach importieren kannst. Es ist empfehlenswert, diese Datei herunterzuladen und zu sichern. '), _defineProperty(_de$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_de$data, 'x_Mnemonic', 'Mnemonic Phrase '), _defineProperty(_de$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_de$data, 'x_Password', 'Passwort '), _defineProperty(_de$data, 'x_Print', 'Papier-Version des Wallets drucken '), _defineProperty(_de$data, 'x_PrintDesc', 'ProTip: Klicke auf "Drucken" und sichere die Datei als PDF, auch wenn du keinen Drucker hast! '), _defineProperty(_de$data, 'x_PrintShort', 'Drucken '), _defineProperty(_de$data, 'x_PrivKey', 'Privater Schlüssel (unverschlüsselt) '), _defineProperty(_de$data, 'x_PrivKey2', 'Privater Schlüssel '), _defineProperty(_de$data, 'x_PrivKeyDesc', 'Dies ist die unverschlüsselte Textversion deines privaten Schlüssels, d. h. Sie benötigen kein Passwort. Wenn jemand über diesen unverschlüsselten privaten Schlüssel verfügt, hat er/sie ohne Passwort Zugang zu Ihrem Wallet. Es wird daher empfohlen, den privaten Schlüssel zu verschlüsseln. '), _defineProperty(_de$data, 'x_Save', 'Sichern '), _defineProperty(_de$data, 'x_TXT', 'TXT-Datei (unverschlüsselt) '), _defineProperty(_de$data, 'x_Wallet', 'Wallet '), _defineProperty(_de$data, 'MEW_Warning_1', 'Bitte prüfe stets die URL, bevor du auf dein Wallet zugreifst oder ein neues Wallet erzeugst. Vorsicht vor Phishing-Seiten! '), _defineProperty(_de$data, 'CX_Warning_1', 'Stelle sicher, dass du über eine **externe Sicherung** von allen Wallets verfügst, die du hier speicherst. Es gibt viele Möglichkeiten, die dazu führen können, dass deine in dieser Chrome-Extension gespeicherten Daten verloren gehen, z.B. Deinstallation oder Neu-Installation. Diese Extension erleichert den Zugang zu deinen Wallets, ist jedoch keine empfohlene Möglichkeit, diese zu sichern. '), _defineProperty(_de$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet '), _defineProperty(_de$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension '), _defineProperty(_de$data, 'FOOTER_1', 'Ein quelloffenes, browserseitiges Werkzeug zur Erzeugung von Ethereum-Wallets und Versenden von Transaktionen. '), _defineProperty(_de$data, 'FOOTER_1b', 'Erstellt von '), _defineProperty(_de$data, 'FOOTER_2', 'Spenden sind herzlich willkommen '), _defineProperty(_de$data, 'FOOTER_3', 'Browserseitige Wallet-Erzeugung durch '), _defineProperty(_de$data, 'FOOTER_4', 'Disclaimer '), _defineProperty(_de$data, 'sidebar_AccountInfo', 'Kontoinformation '), _defineProperty(_de$data, 'sidebar_AccountAddr', 'Kontoadresse '), _defineProperty(_de$data, 'sidebar_AccountBal', 'Kontostand '), _defineProperty(_de$data, 'sidebar_TokenBal', 'Token Kontostand '), _defineProperty(_de$data, 'sidebar_Equiv', 'Währungs-Gegenwerte '), _defineProperty(_de$data, 'sidebar_TransHistory', 'Transaktions-Historie '), _defineProperty(_de$data, 'sidebar_donation', 'MyEtherWallet ist ein freier, quelloffener Service, der deiner Privatsphäre und Sicherheit gewidmet ist. Je mehr Spenden wir erhalten, desto mehr Zeit können wir investieren, um neue Funktionen zu programmieren, dein Feedback zu verarbeiten und dir zu geben, was du dir wünschst. Wir sind nur zwei Leute, die die Welt ändern möchten. Hilfst du uns dabei? '), _defineProperty(_de$data, 'sidebar_donate', 'Spenden '), _defineProperty(_de$data, 'sidebar_thanks', 'Dankeschön!!! '), _defineProperty(_de$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_de$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_de$data, 'decrypt_Access', 'Wie möchtst du auf dein Wallet zugreifen? '), _defineProperty(_de$data, 'decrypt_Title', 'Wähle das Format deines privaten Schlüssels '), _defineProperty(_de$data, 'decrypt_Select', 'Wallet auswählen '), _defineProperty(_de$data, 'ADD_Label_1', 'Was möchtest du tun? '), _defineProperty(_de$data, 'ADD_Radio_1', 'Neues Wallet erstellen '), _defineProperty(_de$data, 'ADD_Radio_2', 'Wallet-Datei auswählen (Keystore / JSON) '), _defineProperty(_de$data, 'ADD_Radio_2_alt', 'Wallet-Datei auswählen '), _defineProperty(_de$data, 'ADD_Radio_2_short', 'WALLET-DATEI AUSWÄHLEN... '), _defineProperty(_de$data, 'ADD_Radio_3', 'Kopiere/Tippe deinen privaten Schlüssel ein '), _defineProperty(_de$data, 'ADD_Radio_4', 'Kontoadresse zur Beobachtung hinzufügen '), _defineProperty(_de$data, 'ADD_Radio_5', 'Füge deinen Mnemonic ein '), _defineProperty(_de$data, 'ADD_Radio_5_Path', 'Wählen Sie den `HD derivation path` '), _defineProperty(_de$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_de$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_de$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_de$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_de$data, 'ADD_Radio_5_PathCustom', 'Benutzerdefiniert '), _defineProperty(_de$data, 'ADD_Label_2', 'Wähle ein Kürzel '), _defineProperty(_de$data, 'ADD_Label_3', 'Deine Datei ist verschlüsselt. Bitte gib das Passwort ein '), _defineProperty(_de$data, 'ADD_Label_4', 'Kontoadresse zur Beobachtung hinzufügen '), _defineProperty(_de$data, 'ADD_Warning_1', 'Du kannst unter dem "Wallet-Tab" eine Kontoadresse "beobachten", ohne den privaten Schlüssel hochzuladen. Du hast damit **keinen** Zugang zu diesem Wallet und kannst auch keinen Ether daraus versenden. '), _defineProperty(_de$data, 'ADD_Label_5', 'Kontoadresse eingeben '), _defineProperty(_de$data, 'ADD_Label_6', 'Wallet entsperren '), _defineProperty(_de$data, 'ADD_Label_6_short', 'Entsperren '), _defineProperty(_de$data, 'ADD_Label_7', 'Kontoadresse hinzufügen '), _defineProperty(_de$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_de$data, 'GEN_desc', 'Wenn Sie mehrere Wallets auf einmal erstellen möchten, können Sie dies hier tun '), _defineProperty(_de$data, 'GEN_Label_1', 'Geben Sie ein starkes Passwort ein (mindestens 9 Zeichen) '), _defineProperty(_de$data, 'GEN_Placeholder_1', 'BITTE VERGESSEN SIE NICHT dieses Passwort an einem sicheren Ort zu notieren! '), _defineProperty(_de$data, 'GEN_SuccessMsg', 'Erfolgreich! Ìhr Wallet wurde erzeugt. '), _defineProperty(_de$data, 'GEN_Label_2', 'Sichern Sie Ihre Keystore-Datei oder deinen privaten Schlüssel. Sichere auch dein Passwort! '), _defineProperty(_de$data, 'GEN_Label_3', 'Sichern Sie Ihre Kontoadresse. '), _defineProperty(_de$data, 'GEN_Label_4', 'Optional: Drucken Sie ein Papier-Wallet oder speichern Sie einen QR-Code. '), _defineProperty(_de$data, 'BULK_Label_1', 'Anzahl zu generierender Wallets '), _defineProperty(_de$data, 'BULK_Label_2', 'Wallets erstellen '), _defineProperty(_de$data, 'BULK_SuccessMsg', 'Erfolgreich! Ihre Wallets wurden erstellt. '), _defineProperty(_de$data, 'SEND_addr', 'An Adresse '), _defineProperty(_de$data, 'SEND_amount', 'Zu sendender Betrag '), _defineProperty(_de$data, 'SEND_amount_short', 'Betrag '), _defineProperty(_de$data, 'SEND_custom', 'Benutzerdefiniert '), _defineProperty(_de$data, 'SEND_gas', 'Gas '), _defineProperty(_de$data, 'SEND_TransferTotal', 'Gesamten verfügbaren Saldo übertragen '), _defineProperty(_de$data, 'SEND_generate', 'Erzeuge Transaktion '), _defineProperty(_de$data, 'SEND_raw', 'Transaktion (Binärformat) '), _defineProperty(_de$data, 'SEND_signed', 'Signierte Transaktion '), _defineProperty(_de$data, 'SEND_trans', 'Sende Transaktion '), _defineProperty(_de$data, 'SEND_custom', 'Benutzerdefinierten Token hinzufügen '), _defineProperty(_de$data, 'SENDModal_Title', 'Achtung! '), _defineProperty(_de$data, 'SENDModal_Content_1', 'Sie sind dabei, '), _defineProperty(_de$data, 'SENDModal_Content_2', 'an die Adresse '), _defineProperty(_de$data, 'SENDModal_Content_3', 'zu senden. Sind Sie sicher, dass Sie das wollen? '), _defineProperty(_de$data, 'SENDModal_Content_4', 'HINWEIS: Wenn Sie eine Fehlermeldung erhalten, müssen Sie vermutlich Ihren Ether-Saldo erhöhen, um die Gas-Kosten des Token-Versands zu bezahlen. Gas wird in Ether bezahlt. '), _defineProperty(_de$data, 'SENDModal_No', 'Nein, ich möchte diesen Vorgang abbrechen! '), _defineProperty(_de$data, 'SENDModal_Yes', 'Ja, ich bin mir sicher! Führe die Transaktion durch. '), _defineProperty(_de$data, 'TOKEN_Addr', 'Token Contract Adresse '), _defineProperty(_de$data, 'TOKEN_Symbol', 'Token-Symbol '), _defineProperty(_de$data, 'TOKEN_Dec', 'Dezimalstellen '), _defineProperty(_de$data, 'TOKEN_hide', 'Verstecke Token '), _defineProperty(_de$data, 'TOKEN_show', 'Zeige alle Tokens '), _defineProperty(_de$data, 'TRANS_desc', 'Wenn Sie Token senden wollen, nutzen Sie bitte die "Sende Tokens" Funktion '), _defineProperty(_de$data, 'TRANS_warning', 'Wenn Sie die "Nur ETH" oder "Nur ETC" Funktionen benutzen, erfolgt die Transaktion über einen Vertrag. Einige Dienste haben ein Problem damit diese Transaktionen zu empfangen. Mehr lesen. '), _defineProperty(_de$data, 'TRANS_advanced', '+Fortgeschritten: Daten hinzufügen '), _defineProperty(_de$data, 'TRANS_data', 'Daten '), _defineProperty(_de$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_de$data, 'TRANS_sendInfo', 'Eine Standard Transaktion mit 21000 Gas kostet 0.000441 ETH. Wir zahlen einen minimal höheren Gaspreis von 0.000000021 ETH um zu garantieren, dass die Transaktion schnell bearbeitet wird. Wir erheben keine Transaktionsgebühren. '), _defineProperty(_de$data, 'TRANSModal_Title', '"Nur ETH" und "Nur ETC" Transaktionen '), _defineProperty(_de$data, 'TRANSModal_Content_0', 'Ein Hinweis zu den verschiedenen Transaktionen und Angeboten '), _defineProperty(_de$data, 'TRANSModal_Content_1', '**ETH (Standard Transaktion): ** Dies erzeugt eine Standard Transaktion direkt von einer Adresse zu einer anderen. Diese nutzt standardmässig 21000 Gas. Es ist gut möglich, dass alle Transaktionen dieser Art auf der ETC Blockchain wiederholt werden (Replay Attacke). '), _defineProperty(_de$data, 'TRANSModal_Content_2', '**Nur ETH: ** Dies sendet die Transaktion so über [Timon Rapp\'s "replay protection contract" (wie von VB empfohlen)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), dass sie nur auf der **ETH** Blockchain ausgeführt wird. '), _defineProperty(_de$data, 'TRANSModal_Content_3', '**Nur ETC: ** Dies sendet die Transaktion so über [Timon Rapp\'s "replay protection contract" (wie von VB empfohlen)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), dass sie nur auf der **ETC** Blockchain ausgeführt wird. '), _defineProperty(_de$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Sende nur Standard Transaktionen. Wenn du die Transaktion über eine der "Nur" Funktionen versendest, musst du den Support kontaktieren um deinen Betrag oder eine Rückerstattung zu erhalten. [Du kannst auch Shapeshifts "split" Werkzeug ausprobieren.](https://split.shapeshift.io/) '), _defineProperty(_de$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Keine Probleme bekannt. Nutzen, was Ihnen lieber ist '), _defineProperty(_de$data, 'TRANSModal_Yes', 'Cool, jetzt hab ich\'s verstanden. '), _defineProperty(_de$data, 'TRANSModal_No', 'Bitte was? Ich bin noch verwirrter. Ich brauche Hilfe '), _defineProperty(_de$data, 'OFFLINE_Title', 'Erzeuge & sende Offline Transaktionen '), _defineProperty(_de$data, 'OFFLINE_Desc', 'Offline Transaktionen können in drei Schritten erzeugt werden. Schritt 1 und 3 erledigen Sie an einem Online Computer und Schritt 3 an einem Offline/abgeschirmten Computer. Dies stellt sicher, dass Ihre privaten Schlüssel nie ein mit dem Internet verbundenes Gerät berühren. '), _defineProperty(_de$data, 'OFFLLINE_Step1_Title', 'Schritt 1: Informationen sammeln (Online Computer) '), _defineProperty(_de$data, 'OFFLINE_Step1_Button', 'Informationen sammeln '), _defineProperty(_de$data, 'OFFLINE_Step1_Label_1', 'Von Adresse '), _defineProperty(_de$data, 'OFFLINE_Step1_Label_2', 'Hinweis: Dies ist die VON Adresse, nicht die AN Adresse. Die Nonce wird basierend auf dem Ursprungsaccount berechnet. Wenn du einen abgeschirmten Computer nutzt, wäre dies die Adresse deines "cold-storage". '), _defineProperty(_de$data, 'OFFLINE_Step2_Title', 'Schritt 2: Transaktion generieren (Offline Computer) '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_1', 'An Adresse '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_2', 'Zu sendender Betrag '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_3', 'Gaspreis '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_3b', 'Dies wurde Ihnen in Schritt 1 an Ihrem Online Computer angezeigt. '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_4', 'Gas Limit '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_4b', '21000 ist das Standard Gas Limit. Wenn Sie Verträge oder Daten senden, müssen Sie diesen Wert eventuell anpassen. Alles ungenutzte Gas wird Ihnen zurück gesendet. '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_5b', 'Dies wurde Ihnen in Schritt 1 an Ihrem Online Computer angezeigt. '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_6', 'Daten '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_6b', 'Dies ist optional. Daten werden meist in Transaktionen an Verträge verwendet. '), _defineProperty(_de$data, 'OFFLINE_Step2_Label_7', 'Geben Sie Ihren privaten Schlüssel ein. '), _defineProperty(_de$data, 'OFFLINE_Step3_Title', 'Schritt 3: Transaktion senden/veröffentlichen (Online Computer) '), _defineProperty(_de$data, 'OFFLINE_Step3_Label_1', 'Kopieren Sie die signierte Transaktion aus Schritt 2 hier hinein und drücken Sie "TRANSAKTION SENDEN". '), _defineProperty(_de$data, 'DEP_generate', 'Bytecode generieren '), _defineProperty(_de$data, 'DEP_generated', 'Generierter Bytecode '), _defineProperty(_de$data, 'DEP_signtx', 'Transaktion signieren '), _defineProperty(_de$data, 'DEP_interface', 'Generiertes Interface '), _defineProperty(_de$data, 'MYWAL_Nick', 'Wallet Spitzname '), _defineProperty(_de$data, 'MYWAL_Address', 'Wallet Addresse '), _defineProperty(_de$data, 'MYWAL_Bal', 'Guthaben '), _defineProperty(_de$data, 'MYWAL_Edit', 'Bearbeiten '), _defineProperty(_de$data, 'MYWAL_View', 'Ansehen '), _defineProperty(_de$data, 'MYWAL_Remove', 'Löschen '), _defineProperty(_de$data, 'MYWAL_RemoveWal', 'Wallet löschen '), _defineProperty(_de$data, 'MYWAL_WatchOnly', 'Ihre Watch-Only Konten '), _defineProperty(_de$data, 'MYWAL_Viewing', 'Wallet anzeigen '), _defineProperty(_de$data, 'MYWAL_Hide', 'Wallet Info verstecken '), _defineProperty(_de$data, 'MYWAL_Edit_2', 'Wallet bearbeiten '), _defineProperty(_de$data, 'MYWAL_Name', 'Wallet Name '), _defineProperty(_de$data, 'MYWAL_Content_1', 'Achtung! Sie sind gerade dabei, Ihr Wallet zu löschen '), _defineProperty(_de$data, 'MYWAL_Content_2', 'Stellen Sie sicher, dass Sie **die private Key/JSON Datei und das Passwort** Ihres Wallets gespeichert hast, bevor Sie es löschen. '), _defineProperty(_de$data, 'MYWAL_Content_3', 'Wenn Sie dieses Wallet in Zukunft mit MyEtherWallet CX verwenden wollen, müssen Sie es mittels des privaten Schlüssels/JSON Datei und Ihrem Passwort manuell wieder hinzufügen. '), _defineProperty(_de$data, 'VIEWWALLET_Subtitle', 'Dies erlaubt Ihnen, den Download verschiedener Versionen Ihres privaten Schlüssels sowie das erneute Drucken Ihres Papier-Wallets. Es wird empfohlen, dies zu tun um [Ihren Account in Geth/Mist zu importieren.](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Zum Überprüfen Ihres Kontostands empfehlen wir, einen Blockchain Explorer wie [etherscan.io](https://etherscan.io/) zu verwenden. '), _defineProperty(_de$data, 'VIEWWALLET_Subtitle_Short', 'Dies erlaubt Ihnen den Download verschiedener Versionen Ihres privaten Schlüssel sowie das erneute Drucken Ihres Papier-Wallets. '), _defineProperty(_de$data, 'VIEWWALLET_SuccessMsg', 'Erfolgreich! Hier sind die Daten Ihres Wallets. '), _defineProperty(_de$data, 'VIEWWALLET_ShowPrivKey', '(anzeigen)'), _defineProperty(_de$data, 'VIEWWALLET_HidePrivKey', '(verbergen)'), _defineProperty(_de$data, 'CX_error_1', 'Sie haben keine Wallets gespeichert. Klicken Sie ["Wallet hinzufügen"](/cx-wallet.html#add-wallet) um eines hinzuzufügen! '), _defineProperty(_de$data, 'CX_quicksend', 'Senden '), _defineProperty(_de$data, 'NODE_Title', 'Benutzerdefinierten Knoten einstellen'), _defineProperty(_de$data, 'NODE_Subtitle', 'Verbinde mit einem lokalem Knoten...'), _defineProperty(_de$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_de$data, 'NODE_Name', 'Knotenname'), _defineProperty(_de$data, 'NODE_Port', 'Knotenport'), _defineProperty(_de$data, 'NODE_CTA', 'Speicher & Benutze Knoten'), _defineProperty(_de$data, 'CONTRACT_Title', 'Vertragsadresse '), _defineProperty(_de$data, 'CONTRACT_Title_2', 'Existierenden Vertrag auswählen '), _defineProperty(_de$data, 'CONTRACT_Json', 'ABI / JSON Schnittstelle '), _defineProperty(_de$data, 'CONTRACT_Interact_Title', 'Vertrag lesen / schreiben '), _defineProperty(_de$data, 'CONTRACT_Interact_CTA', 'Wählen Sie eine Funktion '), _defineProperty(_de$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_de$data, 'CONTRACT_Read', 'LESEN '), _defineProperty(_de$data, 'CONTRACT_Write', 'SCHREIBEN '), _defineProperty(_de$data, 'SWAP_rates', "Aktueller Kurs "), _defineProperty(_de$data, 'SWAP_init_1', "Wechsel meine "), _defineProperty(_de$data, 'SWAP_init_2', " gegen "), _defineProperty(_de$data, 'SWAP_init_CTA', "Fortfahren! "), _defineProperty(_de$data, 'SWAP_information', "Ihre Informationen "), _defineProperty(_de$data, 'SWAP_send_amt', "Zusendender Betrag "), _defineProperty(_de$data, 'SWAP_rec_amt', "Empfangender Betrag "), _defineProperty(_de$data, 'SWAP_your_rate', "Ihr Kurs "), _defineProperty(_de$data, 'SWAP_rec_add', "Ihre Empfangsadresse "), _defineProperty(_de$data, 'SWAP_start_CTA', "Starte Wechsel "), _defineProperty(_de$data, 'SWAP_ref_num', "Ihre Referenznummer "), _defineProperty(_de$data, 'SWAP_time', "Zum Senden verbleibende Zeit "), _defineProperty(_de$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_de$data, 'SWAP_progress_1', "Auftrag initialisiert "), _defineProperty(_de$data, 'SWAP_progress_2', "Warte auf Ihre "), _defineProperty(_de$data, 'SWAP_progress_3', "Erhalten! "), _defineProperty(_de$data, 'SWAP_progress_4', "Sende Ihre {{orderResult.output.currency}} "), _defineProperty(_de$data, 'SWAP_progress_5', "Auftrag erfüllt "), _defineProperty(_de$data, 'SWAP_order_CTA', "Bitte sende "), _defineProperty(_de$data, 'SWAP_unlock', "Schalten Sie Ihr Wallet frei um ETH oder Tokens direkt von dieser Seite aus zu senden "), _defineProperty(_de$data, 'MSG_message', 'Nachricht '), _defineProperty(_de$data, 'MSG_date', 'Datum '), _defineProperty(_de$data, 'MSG_signature', 'Signatur '), _defineProperty(_de$data, 'MSG_verify', 'Nachricht verifizieren '), _defineProperty(_de$data, 'MSG_info1', 'Fügen Sie das aktuelle Datum ein, so dass die Signatur an einem anderem Datum nicht wiederbenutzt wird '), _defineProperty(_de$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_de$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_de$data, 'MNEM_1', 'Wählen Sie den Vertrag, mit dem Sie interagieren wollen. '), _defineProperty(_de$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_de$data, 'MNEM_more', 'Mehrere Adressen '), _defineProperty(_de$data, 'MNEM_prev', 'Letzte Adressen '), _defineProperty(_de$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_de$data, 'ADD_Ledger_1', 'Verbinde deinen Ledger Wallet '), _defineProperty(_de$data, 'ADD_Ledger_2', 'Öffne das Ethereum Programm (oder ein Vertragsprogramm) '), _defineProperty(_de$data, 'ADD_Ledger_2_Exp', 'Öffne das Expanse Programm (oder ein Vertragsprogramm) '), _defineProperty(_de$data, 'ADD_Ledger_2_Ubq', 'Öffne das Ubiq Programm (oder ein Vertragsprogramm) '), _defineProperty(_de$data, 'ADD_Ledger_3', 'Gehe sicher, dass Browser Support aktiviert ist. '), _defineProperty(_de$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_de$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_de$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_de$data, 'ADD_Ledger_scan', 'Connect to Ledger Wallet '), _defineProperty(_de$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_de$data, 'x_Trezor', 'TREZOR '), _defineProperty(_de$data, 'ADD_Trezor_scan', 'Zu TREZOR Verbinden '), _defineProperty(_de$data, 'ADD_Trezor_select', 'Dies ist ein TREZOR seed '), _defineProperty(_de$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_de$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_de$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_de$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_de$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_de$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_de$data, 'ERROR_0', 'Bitte gebe einen gültigen Betrag ein '), _defineProperty(_de$data, 'ERROR_1', 'Dein Passwort muss mindestens 9 Zeichen lang sein. Bitte wähle ein sicheres Passwort. '), _defineProperty(_de$data, 'ERROR_2', 'Oh oh! Wir haben den Typ der Wallet-Datei nicht erkannt. '), _defineProperty(_de$data, 'ERROR_3', 'Dies ist keine gültige Wallet-Datei. '), _defineProperty(_de$data, 'ERROR_4', 'Diese Einheit existiert nicht, bitte wähle eine dieser Einheiten aus '), _defineProperty(_de$data, 'ERROR_5', 'Bitte gebe eine gültige Addresse ein. '), _defineProperty(_de$data, 'ERROR_6', 'Bitte gebe eine gültige Passwort ein. '), _defineProperty(_de$data, 'ERROR_7', 'Bitte gebe eine gültige Betrag ein. (Must be integer. Try 0-18.) '), _defineProperty(_de$data, 'ERROR_8', 'Bitte gebe eine gültige Gasverbrauch ein. (Must be integer. Try 21000-4000000.) '), _defineProperty(_de$data, 'ERROR_9', 'Bitte gebe eine gültige Datenwert ein. (Must be hex.) '), _defineProperty(_de$data, 'ERROR_10', 'Bitte gebe eine gültige Gasbetrag ein. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_de$data, 'ERROR_11', 'Bitte gebe eine gültige Nonce ein. (Must be integer.) '), _defineProperty(_de$data, 'ERROR_12', 'Ungültige unterzeichnete Transaktion. '), _defineProperty(_de$data, 'ERROR_13', 'Ein Wallet mit diesem Spitznamen existiert bereits. '), _defineProperty(_de$data, 'ERROR_14', 'Wallet nicht gefunden. '), _defineProperty(_de$data, 'ERROR_15', 'Es sieht nicht so aus als würde ein Proposal mit dieser ID existieren oder es gab einen Fehler beim Lesen des Proposal. '), _defineProperty(_de$data, 'ERROR_16', 'Es ist bereits ein Wallet mit dieser Adresse gespeichert. Bitte überprüfe die Seite deines Wallets. '), _defineProperty(_de$data, 'ERROR_17', 'Unzureichendes Guthaben für Gasverbrauch * Gaspreis + Wert. Du brauchst **0.01 ETH** in deinem Account um die Gaskosten zu decken. Bitte füge ETH hinzu und versuche es noch einmal. '), _defineProperty(_de$data, 'ERROR_18', 'Diese Transaktion würde dein gesamtes verbleibendes Gas verbrauchen. Das bedeutet, du hast bereits über dieses Proposal abgestimmt oder die Debattierphase ist zu Ende. '), _defineProperty(_de$data, 'ERROR_19', 'Ungültiges Symbol '), _defineProperty(_de$data, 'ERROR_20', 'Kein gültiger ERC-20 Token '), _defineProperty(_de$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative. '), _defineProperty(_de$data, 'ERROR_22', 'Bitte gebe einen gültigen Knotennamen ein '), _defineProperty(_de$data, 'ERROR_23', 'Bitte gebe eine gültige URL ein. Falls du dich mit HTTPS verbindest, muss auch der Knoten mit HTTPS ausgestattet werden. '), _defineProperty(_de$data, 'ERROR_24', 'Bitte gebe eine gültige Portnummer ein '), _defineProperty(_de$data, 'ERROR_25', 'Bitte gebe eine gültige Chain-ID ein '), _defineProperty(_de$data, 'ERROR_26', 'Bitte gebe eine gültige ABI ein '), _defineProperty(_de$data, 'ERROR_27', 'Mindestbetrag: 0.01. Maximaler Betrag: '), _defineProperty(_de$data, 'ERROR_28', '**Du benötigst deine Keystore-Datei & das Passwort** (oder den privaten Schlüssel) um künftig auf dein Wallet zugreifen zu können. Bitte sichere diese Datei daher auf einem externen Medium! Es gibt KEINE Möglichkeit, ein Wallet wiederherzustellen, wenn du diese Datei und das Passwort nicht sicherst. Lies die [Hilfe-Seite](https://www.myetherwallet.com/#help) für weitere Informationen. '), _defineProperty(_de$data, 'ERROR_29', 'Bitte gebe einen gültigen Benutzer und Password ein '), _defineProperty(_de$data, 'ERROR_30', 'Bitte gebe einen gültigen ENS Namen ein '), _defineProperty(_de$data, 'ERROR_31', 'Bitte gebe einen gültigen Geheime Phasre ein '), _defineProperty(_de$data, 'ERROR_32', 'Verbindung zum Knoten nicht möglich. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_de$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_de$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_de$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_de$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_de$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_de$data, 'SUCCESS_1', 'Gültige Addresse '), _defineProperty(_de$data, 'SUCCESS_2', 'Wallet erfolgreich entschlüsselt '), _defineProperty(_de$data, 'SUCCESS_3', 'Deine Transaktion wurde **in das Netzwerk geschickt**. Sie muss noch gemined & validiert werden. (1) Drück auf den Link. Zähle bis 20. Lade die Seite neu. Schau dass dort keine roten ( ! ) Fehler kommen. Wenn keine Transaktionsdetails kommen, warte. Deine Transaktion wartet gemined zu werden. TX ID: '), _defineProperty(_de$data, 'SUCCESS_4', 'Dein Wallet wurde erfolgreich hinzugefügt '), _defineProperty(_de$data, 'SUCCESS_5', 'Ausgewählte Datei '), _defineProperty(_de$data, 'SUCCESS_6', 'Erfolgreich verbunden '), _defineProperty(_de$data, 'SUCCESS_7', 'Nachrichten Signatur verifiziert'), _defineProperty(_de$data, 'GETH_InvalidSender', 'Invalid sender Ungültiger Sender '), _defineProperty(_de$data, 'GETH_Nonce', 'Nonce too low '), _defineProperty(_de$data, 'GETH_Cheap', 'Gaspreis zu niedrig! '), _defineProperty(_de$data, 'GETH_Balance', 'Nicht genügend Guthaben '), _defineProperty(_de$data, 'GETH_NonExistentAccount', 'Account existiert nicht oder besitzt nicht genügend Guthaben '), _defineProperty(_de$data, 'GETH_InsufficientFunds', 'Unzureichendes Guthaben für Gasverbrauch * Gaspreis + Wert '), _defineProperty(_de$data, 'GETH_IntrinsicGas', 'Intrinsic gas too low '), _defineProperty(_de$data, 'GETH_GasLimit', 'Exceeds block gas limit '), _defineProperty(_de$data, 'GETH_NegativeValue', 'Negativer Wert '), _defineProperty(_de$data, 'PARITY_AlreadyImported', "Transaction with the same hash was already imported."), _defineProperty(_de$data, 'PARITY_Old', "Transaction nonce is too low. Try incrementing the nonce."), _defineProperty(_de$data, 'PARITY_TooCheapToReplace', "Transaction fee is too low. There is another transaction with same nonce in the queue. Try increasing the fee or incrementing the nonce."), _defineProperty(_de$data, 'PARITY_LimitReached', "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee."), _defineProperty(_de$data, 'PARITY_InsufficientGasPrice', "Transaction fee is too low. It does not satisfy your node's minimal fee (minimal: {}, got: {}). Try increasing the fee."), _defineProperty(_de$data, 'PARITY_InsufficientBalance', "Insufficient funds. Account you try to send transaction from does not have enough funds. Required {} and got: {}."), _defineProperty(_de$data, 'PARITY_GasLimitExceeded', "Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas."), _defineProperty(_de$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_de$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_de$data, 'translate_version', '0.5 '), _defineProperty(_de$data, 'Translator_Desc', 'Vielen Dank an unsere ÜbersetzerInnen '), _defineProperty(_de$data, 'TranslatorName_1', 'christoph2806 · K · '), _defineProperty(_de$data, 'TranslatorAddr_1', ''), _defineProperty(_de$data, 'TranslatorName_2', '[mawalu](https://www.myetherwallet.com/?gaslimit=21000&to=0xA6e9A24981aFB71f96C7330618139a7B34BCdEc3&value=1.0#send-transaction) · '), _defineProperty(_de$data, 'TranslatorAddr_2', '0xA6e9A24981aFB71f96C7330618139a7B34BCdEc3 '), _defineProperty(_de$data, 'TranslatorName_3', '[huhn_solo](https://www.myetherwallet.com/?gaslimit=21000&to=0x1DAd1765381460db9A44846cDfA6f74c65A06B77&value=1.0#send-transaction) · '), _defineProperty(_de$data, 'TranslatorAddr_3', '0x1DAd1765381460db9A44846cDfA6f74c65A06B77 '), _defineProperty(_de$data, 'TranslatorName_4', '[FelixA](https://www.myetherwallet.com/?gaslimit=21000&to=0xb6999051b0Bfad32E192e107181E0ac72bE7EE3D&value=1.0#send-transaction) · '), _defineProperty(_de$data, 'TranslatorAddr_4', '0xb6999051b0Bfad32E192e107181E0ac72bE7EE3D '), _defineProperty(_de$data, 'TranslatorName_5', 'danielsun174 · ffidan61 · [u/Preisschild](https://www.myetherwallet.com/?gaslimit=21000&to=0x700Eb9142a0CC709fce80709cfbF5Ac25438c584&value=0.1#send-transaction) '), _defineProperty(_de$data, 'TranslatorAddr_5', ''), _defineProperty(_de$data, 'HELP_Warning', 'Falls du vor dem **31.12.2015** ein Wallet generiert, oder das Repository heruntergeladen hast, bitte überprüfe deine Wallets &amp; lade eine neue Version des Repositories herunter. Klick für details. '), _defineProperty(_de$data, 'HELP_Desc', 'Hast du das Gefühl etwas fehlt? Hast du eine andere Frage? [Schreib uns](mailto:support@myetherwallet.com) und wir werden nicht nur deine Frage beantworten, wir werden auch die Seite updaten, damit diese in der Zukunft noch einfacher zu bedienen sein wird! '), _defineProperty(_de$data, 'HELP_Remind_Title', 'Ein paar Erinnerungshilfen '), _defineProperty(_de$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, sowie einige der verwendeten Javascript Bibliotheken, die wir verwenden, befinden sich noch in Entwicklung.** Zwar haben wir alles umfassend getestet und es wurden erfolgeich tausende Wallets von Menschen aus aller Welt kreiert, jedoch bestimmt immer eine gewisse Gefahr, dass etwas unerwartetes passiert und dein Ether verloren geht. Bitte investiere nicht mehr als du verlieren kannst, und sei immer vorsichtig. Sollte etwas schlimmes passieren, **können wir uns leider nicht verantwortlich für einen Verlust zeichnen**. '), _defineProperty(_de$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX sind keine "web wallets". Du erstellst keinen Account oder sendest uns Ether den wir halten. Alle Daten bleiben auf deinem Computer, bzw. Browser. Unser Auftrag ist es, dir das Erstellen, Speichern und Zugreifen auf deine Accounts zu vereinfachen, sowie dir eine simple Möglichkeit zur Interaktion mit der Blockchain zu bieten. '), _defineProperty(_de$data, 'HELP_Remind_Desc_3', 'Falls du deinen privaten Schlüssel und Passwort nicht speicherst, gibt es keine Möglichkeit den Zugriff auf das Konto und die darauf befindlichen Mittel wieder herzustellen. Bitte erstelle Back-ups und speichere deine Zugriffsdaten an verschiedenen Orten &ndash; nicht nur deinem Computer! '), _defineProperty(_de$data, 'HELP_0_Title', '0) Ich bin neu. Was soll ich machen? '), _defineProperty(_de$data, 'HELP_0_Desc_1', 'MyEtherWallet bietet dir die Möglichkeit neue Wallets zu generieren, damit du deinen Ether selbst speichern kannst, und keine Exchange nutzen musst. Dieser Prozess findet ausschließlich auf deinem Computer statt. Daher bist auch **du dafür Verantwortlich, Back-ups zu erstellen** wenn du ein Wallet verwenden möchtest. '), _defineProperty(_de$data, 'HELP_0_Desc_2', 'Erstelle ein neues Wallet. '), _defineProperty(_de$data, 'HELP_0_Desc_3', 'Erstelle ein Back-up deines Wallets. '), _defineProperty(_de$data, 'HELP_0_Desc_4', 'Verifiziere, dass du Zugriff auf dein neues Wallet hast und alle nötigen Informationen korrekt gespeichert sind. '), _defineProperty(_de$data, 'HELP_0_Desc_5', 'Überweise Ether auf das neue Wallet. '), _defineProperty(_de$data, 'HELP_1_Title', '1) Wie erstelle ich ein neues Wallet? '), _defineProperty(_de$data, 'HELP_1_Desc_1', 'Geh zur "Wallet hinzufügen" Seite. '), _defineProperty(_de$data, 'HELP_1_Desc_2', 'Geh zur "Wallet hinzufügen" Seite & wähle "Neues Wallet erstellen" aus. '), _defineProperty(_de$data, 'HELP_1_Desc_3', 'Wähle ein starkes Passwort aus. Falls du glaubst, dass du es vergessen könntest, speichere es an einem sicheren Ort ab. Du benötigst das Passwort um Transaktionen zu tätigen. '), _defineProperty(_de$data, 'HELP_1_Desc_4', 'Klicke auf "Wallet erstellen". '), _defineProperty(_de$data, 'HELP_1_Desc_5', 'Dein Wallet wurde nun erstellt. '), _defineProperty(_de$data, 'HELP_2a_Title', 'Wie speichere ich/erstelle Back-ups meines Wallets? '), _defineProperty(_de$data, 'HELP_2a_Desc_1', 'Du solltest dein Wallet immer an verschiedenen physischen Orten abspeichern - beispielsweise auf einem USB-Stick und/oder einem Stück Papier. '), _defineProperty(_de$data, 'HELP_2a_Desc_2', 'Speichere die Adresse. Du kannst sie für dich behalten oder mit anderen teilen. Auf diese Adresse können andere Ether an dich senden. '), _defineProperty(_de$data, 'HELP_2a_Desc_3', 'Speiche verschiedene Versionen deines privaten Schlüssels. Teile ihn nicht mit jemand anderem. Dein privater Schlüssel ist notwendig, wenn du auf deinen Ether zugreifen willst, um eine Überweisung zu tätigen! Es gibt 3 Arten des privaten Schlüssels '), _defineProperty(_de$data, 'HELP_2a_Desc_4', 'Speichere deine Adresse, die verschiedenen Versionen des privaten Schlüssels, sowie eine PDF deines Papier-Wallets in einem Ordner. Speichere diesen auf deinem Computer und einem USB-Stick. '), _defineProperty(_de$data, 'HELP_2a_Desc_5', 'Drucke das Wallet falls du einen Drucker hast. Andernfalls, schreibe deinen privaten Schlüssel und die Adresse auf ein Blatt Papier. Lagere dieses an einem sicheren Ort, abseits von deinem Computer und dem USB-Stick. '), _defineProperty(_de$data, 'HELP_2a_Desc_6', 'Bitte denk daran, dass du den Verlust des Schlüssels aufgrund des Verlusts oder Versagen deiner Festplatte, des USB-Sticks oder dem Papier, selbst verhindern musst. Erwäge daher auch Situationen wie ein Feuer oder eine Überflutung. '), _defineProperty(_de$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_de$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_de$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_de$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_de$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_de$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_de$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_de$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_de$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_de$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_de$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_de$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_de$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_de$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_de$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_de$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_de$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find you account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_de$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_de$data, 'HELP_4_Title', '4) Wie kann ich Ether von einer Wallet zur anderen senden? '), _defineProperty(_de$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_de$data, 'HELP_4_Desc_2', 'Navigate to the "Sende Ether und Tokens" page. '), _defineProperty(_de$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_de$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_de$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_de$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_de$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_de$data, 'HELP_4_Desc_9', 'Drücke auf "Generate Transaction". '), _defineProperty(_de$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_de$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_de$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_de$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_de$data, 'HELP_4CX_Title', '4) Wie kann ich Ether über MyEtherWallet CX senden? '), _defineProperty(_de$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Sende Ether und Tokens" page. '), _defineProperty(_de$data, 'HELP_4CX_Desc_2', 'QuickSend '), _defineProperty(_de$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_de$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_de$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_de$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_de$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_de$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_de$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_de$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_de$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_de$data, 'HELP_4CX_Desc_12', 'Using "Sende Ether und Tokens" Page '), _defineProperty(_de$data, 'HELP_5_Title', '5) Wie kann ich MyEtherWallet.com offline/lokal starten? '), _defineProperty(_de$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_de$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_de$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_de$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_de$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_de$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_de$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_de$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_de$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_de$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_de$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_de$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_de$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_de$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_de$data, 'HELP_7_Desc_1', 'Navigate to the "Sende Ether und Tokens" page. '), _defineProperty(_de$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_de$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_de$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_de$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_de$data, 'HELP_7_Desc_6', 'If you do not see the token listed '), _defineProperty(_de$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_de$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_de$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_de$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_de$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_de$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_de$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_de$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_de$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_de$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_de$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_de$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_de$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_de$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_de$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_de$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_de$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_de$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_de$data, 'HELP_9_Title', '9) Is the "Sende Ether und Tokens" page offline? '), _defineProperty(_de$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_de$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_de$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_de$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_de$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_de$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_de$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_de$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_de$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_de$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_de$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_de$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_de$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_de$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_de$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_de$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_de$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_de$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_de$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_de$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_de$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_de$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_de$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_de$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_de$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_de$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_de$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_de$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_de$data, 'HELP_12_Desc_15', 'If you are on a Mac '), _defineProperty(_de$data, 'HELP_12_Desc_15b', 'Wenn du an einem PC bist '), _defineProperty(_de$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_de$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_de$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_de$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_de$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_de$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_de$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_de$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_de$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_de$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_de$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_de$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_de$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_de$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_de$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_de$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_de$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_de$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_de$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_de$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_de$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_de$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_de$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_de$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_de$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_de$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_de$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_de$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_de$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_de$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_de$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_de$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_de$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_de$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_de$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_de$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_de$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_de$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_de$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_de$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_de$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_de$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_de$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_de$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_de$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_de$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_de$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_de$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_de$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_de$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_de$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_de$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_de$data, 'HELP_FAQ_Title', 'Mehr hilfreiche Antworten zu oft gefragten Fragen '), _defineProperty(_de$data, 'HELP_Contact_Title', 'Kontakt zu uns'), _de$data);
module.exports = de;
},{}],108:[function(require,module,exports){
// Greek
'use strict';
var _el$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var el = function el() {};
el.code = 'el';
el.data = (_el$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_el$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_el$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_el$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_el$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_el$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_el$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_el$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_el$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_el$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_el$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_el$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_el$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_el$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_el$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_el$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_el$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_el$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_el$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_el$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_el$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_el$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_el$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_el$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_el$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_el$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_el$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_el$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_el$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_el$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_el$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_el$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_el$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_el$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_el$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_el$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_el$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_el$data, 'HELP_2a_Title', 'Πώς αποθηκεύω/παίρνω αντίγραφο ασφαλείας του πορτοφολιού μου; '), _defineProperty(_el$data, 'x_CancelReplaceTx', 'Ακύρωση ή αντικατάσταση συναλλαγής'), _defineProperty(_el$data, 'x_CancelTx', 'Ακύρωση συναλλαγής'), _defineProperty(_el$data, 'x_PasswordDesc', 'Αυτό το συνθηματικό * κρυπτογραφεί * το ιδιωτικό σας κλειδί. Αυτό δεν λειτουργεί σαν σπόρος ο οποίος θα γεννήσει τα κλειδιά σας. **Θα χρειαστείτε αυτό το συνθηματικό + το ιδιωτικό σας κλειδί για να ξεκλειδώσετε το πορτοφόλι σας.**'), _defineProperty(_el$data, 'x_ReadMore', 'Διαβάστε περισσότερα'), _defineProperty(_el$data, 'x_ReplaceTx', 'Αντικατάσταση συναλλαγής'), _defineProperty(_el$data, 'x_TransHash', 'Hash συναλλαγής'), _defineProperty(_el$data, 'x_TXFee', 'Τέλος συναλλαγής'), _defineProperty(_el$data, 'x_TxHash', 'Hash συναλλαγής'), _defineProperty(_el$data, 'NAV_CheckTxStatus', 'Έλεγχος κατάστασης συναλλαγής'), _defineProperty(_el$data, 'NAV_TxStatus', 'Κατάσταση συναλλαγής'), _defineProperty(_el$data, 'tx_Details', 'Λεπτομέρειες συναλλαγής'), _defineProperty(_el$data, 'tx_Summary', 'Σε στιγμές υψηλού όγκου συναλλαγών (όπως κατά τη διάρκεια ενός ICO) οι συναλλαγές μπορεί να εκκρεμούν για ώρες, αν όχι ημέρες. Αυτό το εργαλείο αποσκοπεί στο να σας δώσει τη δυνατότητα να βρείτε και να «ακυρώσετε» / αντικαταστήσετε αυτές τις συναλλαγές. ** Αυτό δεν είναι κάτι που μπορείτε συνήθως να κάνετε. Δεν πρέπει να βασίζεστε σε αυτό και θα δουλέψει μόνο όταν οι δεξαμενές συναλλαγών είναι πλήρεις. [Παρακαλούμε, διαβάστε για αυτό το εργαλείο εδώ.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_el$data, 'tx_notFound', 'Δεν βρέθηκε συναλλαγή'), _defineProperty(_el$data, 'tx_notFound_1', 'Αυτή η συναλλαγή δεν ήταν δυνατόν να βρεθεί στη δεξαμενή συναλλαγών του κόμβου στον οποίον έχετε συνδεθεί.'), _defineProperty(_el$data, 'tx_notFound_2', 'Αν μόλις στείλατε τη συναλλαγή, παρακαλούμε περιμένετε 15 δευτερόλεπτα και πατήστε ξανά το κουμπί «Έλεγχος κατάστασης συναλλαγής». '), _defineProperty(_el$data, 'tx_notFound_3', 'Μπορεί να βρίσκεται ακόμα στη δεξαμενή εξόρυξης κάποιου διαφορετικού κόμβου, περιμένοντας να εξορυχθεί.'), _defineProperty(_el$data, 'tx_notFound_4', 'Παρακαλούμε χρησιμοποιήστε το αναπτυσσόμενο μενού πάνω δεξιά και επιλέξτε κάποιον διαφορετικό κόμβο ETH (π.χ. `ETH (Etherscan.io)` ή `ETH (Infura.io)` ή `ETH (MyEtherWallet)`) και ελέγξτε ξανά.'), _defineProperty(_el$data, 'tx_foundInPending', 'Βρέθηκε συναλλαγή σε εκκρεμότητα'), _defineProperty(_el$data, 'tx_foundInPending_1', 'Η συναλλαγή σας εντοπίστηκε στη δεξαμενή συναλλαγών του κόμβου στον οποίο έχετε συνδεθεί. '), _defineProperty(_el$data, 'tx_foundInPending_2', 'Αυτή τη στιγμή είναι σε εκκρεμότητα (περιμένοντας να εξορυχθεί). '), _defineProperty(_el$data, 'tx_foundInPending_3', 'Υπάρχει μια πιθανότητα να μπορείτε να «ακυρώσετε» ή να αντικαταστήσετε αυτήν τη συναλλαγή. Ξεκλειδώστε το πορτοφόλι σας παρακάτω.'), _defineProperty(_el$data, 'tx_FoundOnChain', 'Βρέθηκε συναλλαγή'), _defineProperty(_el$data, 'tx_FoundOnChain_1', 'Η συναλλαγή σας εξορύχθηκε επιτυχώς και βρίσκεται πάνω στο blockchain.'), _defineProperty(_el$data, 'tx_FoundOnChain_2', '**Αν δείτε κόκκινο μήνυμα λάθους `( ! )`, `BAD INSTRUCTION` ή `OUT OF GAS`**, σημαίνει ότι η συναλλαγή *δεν εστάλη* επιτυχώς. Δεν μπορείτε να ακυρώσετε ή να αντικαταστήσετε αυτήν τη συναλλαγή. Αντί αυτού, στείλτε μια νέα συναλλαγή. Αν λάβατε σφάλμα «Out of Gas», πρέπει να διπλασιάσετε το όριο αερίου που καθορίσατε αρχικά.'), _defineProperty(_el$data, 'tx_FoundOnChain_3', '**Αν δεν βλέπετε σφάλματα, η συναλλαγή σας εστάλη επιτυχώς.** Τα ETH σας ή οι μάρκες σας βρίσκονται εκεί που τα στείλατε. Αν δεν μπορείτε να δείτε αυτά τα ETH ή τις μάρκες να έχουν πιστωθεί στο άλλο σας πορτοφόλι ή στο λογαριασμό του ανταλλακτηρίου σας, και έχουν περάσει 24+ ώρες από τότε που τα στείλατε, παρακαλούμε [επικοινωνήστε με αυτήν την υπηρεσία](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Στείλτε τους το *σύνδεσμο* προς τη συναλλαγή σας και ζητήστε τους ευγενικά να ρίξουν μια ματιά στο θέμα σας.'), _defineProperty(_el$data, 'GEN_Help_1', 'Χρησιμοποιήστε το'), _defineProperty(_el$data, 'GEN_Help_2', 'σας για να αποκτήσετε πρόσβαση στο λογαριασμό σας.'), _defineProperty(_el$data, 'GEN_Help_3', 'Η συσκευή σας * είναι * το πορτοφόλι σας.'), _defineProperty(_el$data, 'GEN_Help_4', 'Οδηγοί & συχνές ερωτήσεις'), _defineProperty(_el$data, 'GEN_Help_5', 'Πώς να δημιουργήσετε ένα πορτοφόλι'), _defineProperty(_el$data, 'GEN_Help_6', 'Ξεκινώντας'), _defineProperty(_el$data, 'GEN_Help_7', 'Κρατήστε το ασφαλές · Πάρτε ένα αντίγραφο ασφαλείας · Μην το μοιράζεστε με κανέναν · Μην το χάσετε · Δεν μπορεί να ανακτηθεί αν το χάσετε.'), _defineProperty(_el$data, 'GEN_Help_8', 'Δεν κατεβαίνει κάποιο αρχείο; '), _defineProperty(_el$data, 'GEN_Help_9', 'Δοκιμάστε να χρησιμοποιήσετε Google Chrome '), _defineProperty(_el$data, 'GEN_Help_10', 'Δεξί κλικ & αποθήκευση αρχείου ως. Όνομα αρχείου: '), _defineProperty(_el$data, 'GEN_Help_11', 'Μην ανοίξετε αυτό το αρχείο στον υπολογιστή σας '), _defineProperty(_el$data, 'GEN_Help_12', 'Χρησιμοποιήστε το για να ξεκλειδώσετε το πορτοφόλι σας μέσω του MyEtherWallet (ή μέσω του Mist, του Geth, του Parity και άλλων προγραμμάτων-πελατών πορτοφολιού.) '), _defineProperty(_el$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_el$data, 'GEN_Help_14', 'Τι είναι αυτά τα διαφορετικά φορμά; '), _defineProperty(_el$data, 'GEN_Help_15', 'Πρόληψη απώλειας &amp; κλοπής των κεφαλαίων σας.'), _defineProperty(_el$data, 'GEN_Help_16', 'Τι είναι αυτά τα διαφορετικά φορμά;'), _defineProperty(_el$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_el$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_el$data, 'GEN_Help_19', 'Σε περίπτωση που ξεχάσετε ποτέ το συνθηματικό σας.'), _defineProperty(_el$data, 'GEN_Help_20', 'Ψυχρή αποθήκευση'), _defineProperty(_el$data, 'GET_ConfButton', 'Καταλαβαίνω. Συνέχισε.'), _defineProperty(_el$data, 'GEN_Label_5', 'Αποθήκευση του `ιδιωτικού κλειδιού` σας. '), _defineProperty(_el$data, 'GEN_Unlock', 'Ξεκλειδώστε το πορτοφόλι σας για να δείτε τη διεύθυνσή σας'), _defineProperty(_el$data, 'GAS_PRICE_Desc', 'Η τιμή αερίου είναι το ποσό που πληρώνετε ανά μονάδα αερίου. `τέλος συναλλαγής = τιμή αερίου * όριο αερίου` & πληρώνεται στους μεταλλωρύχους για να συμπεριλάβουν τη συναλλαγή σας σε ένα μπλοκ. Υψηλότερη τιμή αερίου = ταχύτερη συναλλαγή, αλλά πιο ακριβή. Η προεπιλογή είναι `41 GWEI`.'), _defineProperty(_el$data, 'GAS_LIMIT_Desc', 'Το όριο αερίου είναι το ποσό αερίου που θα σταλεί με τη συναλλαγή σας. `τέλος συναλλαγής` = τιμή αερίου * όριο αερίου & πληρώνεται στους μεταλλωρύχους για να συμπεριλάβουν τη συναλλαγή σας σε ένα μπλοκ. Το να αυξήσετε αυτόν τον αριθμό δεν θα κάνει τη συναλλαγή σας να εξορυχθεί ταχύτερα. Αποστολή ETH = `21000`. Αποστολή μαρκών = ~`200000`.'), _defineProperty(_el$data, 'NONCE_Desc', 'Το nonce είναι ο αριθμός των συναλλαγών που αποστέλλονται από δεδομένη διεύθυνση. Εξασφαλίζει ότι οι συναλλαγές αποστέλλονται με τη σειρά και όχι περισσότερες από μία φορές.'), _defineProperty(_el$data, 'TXFEE_Desc', 'Το τέλος συναλλαγής πληρώνεται στους μεταλλωρύχους για να συμπεριλάβουν τη συναλλαγή σας σε ένα μπλοκ. Είναι το `όριο αερίου` * `τιμή αερίου`. [Μπορείτε να μετατρέψετε GWEI -> ETH εδώ](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_el$data, 'NAV_AddWallet', 'Προσθήκη πορτοφολιού '), _defineProperty(_el$data, 'NAV_BulkGenerate', 'Δημιουργία πολλών πορτοφολιών '), _defineProperty(_el$data, 'NAV_Contact', 'Επικοινωνία '), _defineProperty(_el$data, 'NAV_Contracts', 'Συμβόλαια '), _defineProperty(_el$data, 'NAV_DeployContract', 'Κατασκευή συμβολαίου '), _defineProperty(_el$data, 'NAV_ENS', 'ENS'), _defineProperty(_el$data, 'NAV_GenerateWallet_alt', 'Νέο πορτοφόλι '), _defineProperty(_el$data, 'NAV_GenerateWallet', 'Δημιουργία πορτοφολιού '), _defineProperty(_el$data, 'NAV_Help', 'Βοήθεια '), _defineProperty(_el$data, 'NAV_InteractContract', 'Αλληλεπίδραση με συμβόλαιο '), _defineProperty(_el$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_el$data, 'NAV_MyWallets', 'Τα πορτοφόλια μου '), _defineProperty(_el$data, 'NAV_Offline', 'Αποστολή εκτός σύνδεσης '), _defineProperty(_el$data, 'NAV_SendEther', 'Αποστολή αιθέρα και μαρκών '), _defineProperty(_el$data, 'NAV_SendTokens', 'Αποστολή μαρκών '), _defineProperty(_el$data, 'NAV_SignMsg', 'Υπογραφή μηνύματος '), _defineProperty(_el$data, 'NAV_Swap', 'Ανταλλαγή '), _defineProperty(_el$data, 'NAV_ViewWallet', 'Προβολή πληροφοριών πορτοφολιού '), _defineProperty(_el$data, 'NAV_YourWallets', 'Τα πορτοφόλια σας '), _defineProperty(_el$data, 'x_Access', 'Πρόσβαση '), _defineProperty(_el$data, 'x_AddessDesc', 'Η διεύθυνσή σας είναι επίσης γνωστή ως `αριθμός λογαριασμού` σας ή `δημόσιο κλειδί` σας. Είναι αυτό που κοινοποιείτε σε άλλους ανθρώπους ώστε να μπορούν να σας στείλουν αιθέρα ή μάρκες. Βρείτε το χρωματιστό εικονίδιο διεύθυνσης. Σιγουρευτείτε ότι ταιριάζει με το χάρτινο πορτοφόλι σας και όταν εισάγετε τη διεύθυνσή σας κάπου.'), _defineProperty(_el$data, 'x_Address', 'Η διεύθυνσή σας '), _defineProperty(_el$data, 'x_Cancel', 'Ακύρωση '), _defineProperty(_el$data, 'x_CSV', 'Αρχείο CSV (μη κρυπτογραφημένο) '), _defineProperty(_el$data, 'x_Download', 'Λήψη '), _defineProperty(_el$data, 'x_Json', 'Αρχείο JSON (μη κρυπτογραφημένο) '), _defineProperty(_el$data, 'x_JsonDesc', 'Αυτή είναι η μη κρυπτογραφημένη, JSON μορφή του ιδιωτικού κλειδιού σας. Αυτό σημαίνει ότι δεν απαιτείται συνθηματικό όμως οποιοσδήποτε βρει το JSON σας έχει πρόσβαση στο πορτοφόλι και στον αιθέρα σας χωρίς συνθηματικό. '), _defineProperty(_el$data, 'x_Keystore', 'Αρχείο Keystore (UTC / JSON · Συνιστάται · Κρυπτογραφημένο) '), _defineProperty(_el$data, 'x_Keystore2', 'Αρχείο Keystore (UTC / JSON) '), _defineProperty(_el$data, 'x_KeystoreDesc', 'Αυτό το αρχείο Keystore έχει την ίδια μορφή που χρησιμοποιείται από το Mist ώστε να μπορείτε εύκολα να το εισάγετε στο μέλλον. Είναι το συνιστώμενο αρχείο για λήψη και δημιουργία αντιγράφου ασφαλείας. '), _defineProperty(_el$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_el$data, 'x_Mnemonic', 'Μνημονικό '), _defineProperty(_el$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_el$data, 'x_Password', 'Συνθηματικό '), _defineProperty(_el$data, 'x_Print', 'Εκτύπωση χάρτινου πορτοφολιού '), _defineProperty(_el$data, 'x_PrintDesc', 'Συμβουλή: Κάντε κλικ στο «Εκτύπωση και αποθήκευση ως PDF» ακόμη κι αν δεν έχετε εκτυπωτή! '), _defineProperty(_el$data, 'x_PrintShort', 'Εκτύπωση '), _defineProperty(_el$data, 'x_PrivKey', 'Ιδιωτικό κλειδί (μη κρυπτογραφημένο) '), _defineProperty(_el$data, 'x_PrivKey2', 'Ιδιωτικό κλειδί '), _defineProperty(_el$data, 'x_PrivKeyDesc', 'Αυτό το κείμενο είναι η μη κρυπτογραφημένη εκδοχή του ιδιωτικού κλειδιού σας που σημαίνει ότι δεν απαιτείται συνθηματικό. Στην περίπτωση που κάποιος βρει το μη κρυπτογραφημένο ιδιωτικό κλειδί σας, έχει πρόσβαση στο πορτοφόλι σας χωρίς συνθηματικό. Για αυτόν τον λόγο, συνήθως συνιστώνται οι κρυπτογραφημένες εκδοχές. '), _defineProperty(_el$data, 'x_Save', 'Αποθήκευση '), _defineProperty(_el$data, 'x_TXT', 'Αρχείο TXT (μη κρυπτογραφημένο) '), _defineProperty(_el$data, 'x_Wallet', 'Πορτοφόλι '), _defineProperty(_el$data, 'MEW_Warning_1', 'Πάντα να ελέγχετε την διεύθυνση URL προτού μπείτε στο πορτοφόλι σας ή δημιουργήσετε καινούριο πορτοφόλι. Προσοχή στις σελίδες ηλεκτρονικού ψαρέματος! '), _defineProperty(_el$data, 'CX_Warning_1', 'Σιγουρευτείτε ότι έχετε **εξωτερικά αντίγραφα ασφαλείας** όλων των πορτοφολιών που αποθηκεύετε εδώ. Μπορούν να συμβούν διάφορα που θα προκαλούσαν απώλεια των δεδομένων σας σε αυτήν την επέκταση Chrome, συμπεριλαμβανομένης απεγκατάστασης και επανεγκατάστασης της επέκτασης. Αυτή η επέκταση είναι ένας τρόπος εύκολης πρόσβασης στα πορτοφόλια σας και **όχι** ένας τρόπος να δημηιουργήσετε αντίγραφα ασφαλείας τους. '), _defineProperty(_el$data, 'MEW_Tagline', 'Ασφαλές πορτοφόλι αιθέρα ανοιχτού κώδικα JavaScript από την πλευρά του πελάτη '), _defineProperty(_el$data, 'CX_Tagline', 'Επέκταση Chrome για ασφαλές πορτοφόλι αιθέρα ανοιχτού κώδικα JavaScript από την πλευρά του πελάτη '), _defineProperty(_el$data, 'FOOTER_1', 'Ένα εργαλείο ανοιχτού κώδικα, javascript, από πλευράς πελάτη για τη δημιουργία πορτοφολιών Ethereum & αποστολή συναλλαγών. '), _defineProperty(_el$data, 'FOOTER_1b', 'Δημιουργήθηκε από '), _defineProperty(_el$data, 'FOOTER_2', 'Εκτιμούμε πολύ τις δωρεές σας: '), _defineProperty(_el$data, 'FOOTER_3', 'Δημιουργία πορτοφολιών από πλευράς πελάτη από '), _defineProperty(_el$data, 'FOOTER_4', 'Αποποίηση '), _defineProperty(_el$data, 'sidebar_AccountInfo', 'Πληροφορίες λογαριασμού '), _defineProperty(_el$data, 'sidebar_AccountAddr', 'Διεύθυνση λογαριασμού '), _defineProperty(_el$data, 'sidebar_AccountBal', 'Υπόλοιπο λογαριασμού '), _defineProperty(_el$data, 'sidebar_TokenBal', 'Υπόλοιπο μαρκών '), _defineProperty(_el$data, 'sidebar_Equiv', 'Ισότιμες αξίες '), _defineProperty(_el$data, 'sidebar_TransHistory', 'Ιστορικό συναλλαγών '), _defineProperty(_el$data, 'sidebar_donation', 'Το MyEtherWallet είναι μία δωρεάν υπηρεσία ανοιχτού κώδικα αφοσιωμένη στην ιδιωτικότητα και την ασφάλεια σας. Όσο περισσότερες δωρεές λαμβάνουμε, τόσο περισσότερο χρόνο αφιερώνουμε στη δημιουργία νέων χαρακτηριστικών καθώς και την αξιολόγηση και εφαρμογή όσων μας προτείνετε. Είμαστε απλά δύο άνθρωποι που προσπαθούν να αλλάξουν τον κόσμο. Θα μας βοηθήσετε; '), _defineProperty(_el$data, 'sidebar_donate', 'Δωρεά '), _defineProperty(_el$data, 'sidebar_thanks', 'ΣΑΣ ΕΥΧΑΡΙΣΤΟΥΜΕ!!! '), _defineProperty(_el$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_el$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_el$data, 'decrypt_Access', 'Πώς θα θέλατε να έχετε πρόσβαση στο πορτοφόλι σας; '), _defineProperty(_el$data, 'decrypt_Title', 'Επιλέξτε τη μορφή του ιδιωτικού κλειδιού σας: '), _defineProperty(_el$data, 'decrypt_Select', 'Επιλέξτε πορτοφόλι: '), _defineProperty(_el$data, 'ADD_Label_1', 'Τι θα θέλατε να κάνετε; '), _defineProperty(_el$data, 'ADD_Radio_1', 'Δημιουργία νέου πορτοφολιού '), _defineProperty(_el$data, 'ADD_Radio_2', 'Επιλέξτε το αρχείο πορτοφολιού σας (Keystore / JSON) '), _defineProperty(_el$data, 'ADD_Radio_2_alt', 'Επιλέξτε το αρχείο πορτοφολιού σας '), _defineProperty(_el$data, 'ADD_Radio_2_short', 'ΕΠΙΛΕΞΤΕ ΑΡΧΕΙΟ ΠΟΡΤΟΦΟΛΙΟΥ... '), _defineProperty(_el$data, 'ADD_Radio_3', 'Επικολλήστε/πληκτρολογήστε το ιδιωτικό κλειδί σας '), _defineProperty(_el$data, 'ADD_Radio_4', 'Προσθήκη λογαριασμού προς παρακολούθηση '), _defineProperty(_el$data, 'ADD_Radio_5', 'Επικολλήστε/πληκτρολογήστε το μνημονικό σας '), _defineProperty(_el$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_el$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_el$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_el$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_el$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_el$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_el$data, 'ADD_Label_2', 'Δημιουργία ψευδωνύμου: '), _defineProperty(_el$data, 'ADD_Label_3', 'Το πορτοφόλι σας είναι κρυπτογραφημένο. Παρακαλούμε εισαγάγετε το συνθηματικό '), _defineProperty(_el$data, 'ADD_Label_4', 'Προσθήκη λογαριασμού προς παρακολούθηση '), _defineProperty(_el$data, 'ADD_Warning_1', 'Μπορείτε να προσθέσετε ένα λογαριασμό προς «παρακολούθηση» στην καρτέλα πορτοφολιών χωρίς να ανεβάσετε ιδιωτικό κλειδί. Αυτό ** δεν ** σημαίνει ότι έχετε πρόσβαση στο πορτοφόλι, ούτε ότι μπορείτε να μεταφέρετε αιθέρα από αυτό. '), _defineProperty(_el$data, 'ADD_Label_5', 'Εισαγάγετε τη διεύθυνση '), _defineProperty(_el$data, 'ADD_Label_6', 'Ξεκλειδώστε το πορτοφόλι σας '), _defineProperty(_el$data, 'ADD_Label_6_short', 'Ξεκλείδωμα '), _defineProperty(_el$data, 'ADD_Label_7', 'Προσθήκη λογαριασμού '), _defineProperty(_el$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_el$data, 'GEN_desc', 'Αν επιθυμείτε να δημιουργήσετε πολλά πορτοφόλια, μπορείτε να το κάνετε εδώ: '), _defineProperty(_el$data, 'GEN_Label_1', 'Εισαγάγετε ισχυρό συνθηματικό (τουλάχιστον 9 χαρακτήρες) '), _defineProperty(_el$data, 'GEN_Placeholder_1', 'ΜΗΝ ξεχάσετε να το αποθηκεύσετε! '), _defineProperty(_el$data, 'GEN_SuccessMsg', 'Επιτυχία! Το πορτοφόλι σας δημιουργήθηκε. '), _defineProperty(_el$data, 'GEN_Label_2', 'Αποθηκεύστε το αρχέιο keystore/JSON ή το ιδιωτικό κλειδί. Μην ξεχάσετε το παραπάνω συνθηματικό. '), _defineProperty(_el$data, 'GEN_Label_3', 'Αποθηκεύστε τη διεύθυνση σας. '), _defineProperty(_el$data, 'GEN_Label_4', 'Εκτυπώστε το χάρτινο πορτοφόλι σας ή αποθηκεύστε την εκδοχή με κώδικα QR. (προαιρετικό) '), _defineProperty(_el$data, 'BULK_Label_1', 'Αριθμός πορτοφολιών για δημιουργία '), _defineProperty(_el$data, 'BULK_Label_2', 'Δημιουργία πορτοφολιών '), _defineProperty(_el$data, 'BULK_SuccessMsg', 'Επιτυχία! Τα πορτοφόλια σας δημιουργήθηκαν. '), _defineProperty(_el$data, 'SEND_addr', 'Προς διεύθυνση '), _defineProperty(_el$data, 'SEND_amount', 'Ποσό για αποστολή '), _defineProperty(_el$data, 'SEND_amount_short', 'Ποσό '), _defineProperty(_el$data, 'SEND_custom', 'Custom '), _defineProperty(_el$data, 'SEND_gas', 'Αέριο '), _defineProperty(_el$data, 'SEND_generate', 'Δημιουργία υπογεγραμμένης συναλλαγής '), _defineProperty(_el$data, 'SEND_raw', 'Ακατέργαστη συναλλαγή '), _defineProperty(_el$data, 'SEND_signed', 'Υπογεγραμμένη συναλλαγή '), _defineProperty(_el$data, 'SEND_trans', 'Αποστολή συναλλαγής '), _defineProperty(_el$data, 'SEND_TransferTotal', 'Μεταφορά συνολικού διαθέσιμου υπολοίπου '), _defineProperty(_el$data, 'SEND_custom', 'Προσθήκη προσαρμοσμένης μάρκας '), _defineProperty(_el$data, 'SENDModal_Title', 'Προσοχή! '), _defineProperty(_el$data, 'SENDModal_Content_1', 'Πρόκειται να στείλετε '), _defineProperty(_el$data, 'SENDModal_Content_2', 'στη διεύθυνση '), _defineProperty(_el$data, 'SENDModal_Content_3', 'Είστε σίγουροι ότι θέλετε να το κάνετε; '), _defineProperty(_el$data, 'SENDModal_Content_4', 'ΣΗΜΕΙΩΣΗ: Αν αντιμετωπίσετε σφάλμα, το πιο πιθανό είναι να χρειάζεται να προσθέσετε αιθέρα στο λογαριασμό σας για να καλύψετε το κόστος αερίου για την αποστολή μαρκών. Το αέριο πληρώνεται σε αιθέρα. '), _defineProperty(_el$data, 'SENDModal_No', 'Όχι, θέλω να φύγω από εδώ! '), _defineProperty(_el$data, 'SENDModal_Yes', 'Ναι, είμαι σίγουρος/η! Εκτελέστε την συναλλαγή. '), _defineProperty(_el$data, 'SEND_TransferTotal', 'Μεταφορά όλου του υπάρχοντος υπολοίπου '), _defineProperty(_el$data, 'TOKEN_Addr', 'Token Contract Διεύθυνση '), _defineProperty(_el$data, 'TOKEN_Symbol', 'Σύμβολο μάρκας '), _defineProperty(_el$data, 'TOKEN_Dec', 'Δεκαδικά '), _defineProperty(_el$data, 'TOKEN_hide', 'Απόκρυψη μαρκών '), _defineProperty(_el$data, 'TOKEN_show', 'Εμφάνιση όλων των μαρκών '), _defineProperty(_el$data, 'TRANS_desc', 'Άν επιθυμείτε να στείλετε μάρκες, παρακαλούμε χρησιμοποιήστε τη σελίδα «Αποστολή μαρκών». '), _defineProperty(_el$data, 'TRANS_warning', 'Άν χρησιμοποιείτε τις λειτουργίες «Μόνο ETH» ή «Μόνο ETC», η αποστολή γίνεται μέσω συμβολαίων. Ορισμένες υπηρεσίες παρουσιάζουν προβλήματα με την αποδοχή τέτοιων συναλλαγών. Διαβάστε περισσότερα. '), _defineProperty(_el$data, 'TRANS_advanced', '+Για προχωρημένους: Προσθήκη δεδομένων '), _defineProperty(_el$data, 'TRANS_data', 'Δεδομένα '), _defineProperty(_el$data, 'TRANS_gas', 'Όριο αερίου '), _defineProperty(_el$data, 'TRANS_sendInfo', 'Μία τυπική συναλλαγή που χρησιμοποιεί 21000 μονάδες αερίου θα κοστίσει 0,000441 ETH. Χρησιμοποιούμε για τιμή αερίου 0.000000021 ETH που είναι λίγο πάνω απο την ελάχιστη ώστε να διασφαλίσουμε ότι θα επικυρωθεί γρήγορα. Δεν παίρνουμε προμήθεια για τη συναλλαγή. '), _defineProperty(_el$data, 'TRANSModal_Title', 'Συναλλαγές «Μόνο ETH» και «Μόνο ETC» '), _defineProperty(_el$data, 'TRANSModal_Content_0', 'Μια σημείωση για τις διάφορετικές συναλλαγές και διαφορετικές υπηρεσίες συναλλαγών: '), _defineProperty(_el$data, 'TRANSModal_Content_1', '**ETH (τυπική συναλλαγή): ** Αυτό παράγει μια προεπιλεγμένη συναλλαγή απευθείας από μια διεύθυνση σε μία άλλη. Έχει προεπιλεγμένο αέριο 21000. Είναι πιθανόν ότι κάθε ETH που αποστέλλεται μέσω αυτής της μεθόδου θα επαναληφθεί στην αλυσίδα ETC. '), _defineProperty(_el$data, 'TRANSModal_Content_2', '**Μόνο ETH: ** Αυτό αποστέλλει μέσω του [συμβολαίου προστασίας από επανάληψη του Timon Rapp (όπως συνιστάται από τον Vitalik Buterin)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) ώστε η αποστολή να γίνεται μόνο στην αλυσίδα **ETH**. '), _defineProperty(_el$data, 'TRANSModal_Content_3', '**Μόνο ETC: ** Αυτό αποστέλλει μέσω του [συμβολαίου προστασίας από επανάληψη του Timon Rapp (όπως συνιστάται από τον Vitalik Buterin)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) ώστε η αποστολή να γίνεται μόνο στην αλυσίδα **ETC**. '), _defineProperty(_el$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Αποστέλλετε μόνο με τυπική συναλλαγή. Αν στείλετε με τα συμβόλαια «Μόνο», θα χρειαστεί να έρθετε σε επαφή με το προσωπικό υποστήριξής τους ώστε να σας βοηθήσουν με χειροκίνητη μεταφορά υπολοίπων ή επιστροφή χρημάτων.[Μπορείτε επίσης να δοκιμάσετε το εργαλείο «διαχωρισμού» του Shapeshift](https://split.shapeshift.io/) '), _defineProperty(_el$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Δεν υπάρχουν γνωστά προβλήματα. Αποστέλλετε με οποιαδήποτε μέθοδο. '), _defineProperty(_el$data, 'TRANSModal_Yes', 'Τέλεια, το κατάλαβα. '), _defineProperty(_el$data, 'TRANSModal_No', 'Ωχ, μπερδεύτηκα ακόμη περισσότερο. Βοηθήστε με. '), _defineProperty(_el$data, 'OFFLINE_Title', 'Δημιουργία και αποστολή συναλλαγής εκτός σύνδεσης '), _defineProperty(_el$data, 'OFFLINE_Desc', 'Η δημιουργία συναλλαγών εκτός σύνδεσης μπορεί να γίνει σε τρία βήματα. Θα προβείτε στα βήματα 1 και 3 σε έναν συνδεδεμένο υπολογιστή και το βήμα 2 σε έναν εκτός σύνδεσης/αποκομμένο υπολογιστή. Αυτό εξασφαλίζει ότι τα ιδιωτικά κλειδιά σας δεν έρχονται σε επαφή με συσκευή συνδεδεμένη στο Διαδίκτυο. '), _defineProperty(_el$data, 'OFFLLINE_Step1_Title', 'Βήμα 1: Δημιουργία πληροφοριών (συνδεδεμένος υπολογιστής) '), _defineProperty(_el$data, 'OFFLINE_Step1_Button', 'Δημιουργία πληροφοριών '), _defineProperty(_el$data, 'OFFLINE_Step1_Label_1', 'Από διεύθυνση: '), _defineProperty(_el$data, 'OFFLINE_Step1_Label_2', 'Σημείωση: Αυτή είναι η διεύθυνση ΑΠΟΣΤΟΛΕΑ, ΟΧΙ η διεύθυνση. Το nonce δημιουργείται από το λογαριασμό προέλευσης. Αν χρησιμοποιείτε αποκομμένο υπολογιστή, πρόκειται για την διεύθυνση του λογαριασμού σε ψυχρή αποθήκευση. '), _defineProperty(_el$data, 'OFFLINE_Step2_Title', 'Βήμα 2: Δημιουργία συναλλαγής (υπολογιστής εκτός σύνδεσης) '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_1', 'Προς διεύθυνση '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_2', 'Αξία / ποσό για αποστολή '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_3', 'Τιμή αερίου '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_3b', 'Εμφανίστηκε στο Βήμα 1 στο συνδεδεμένο υπολογιστή σας. '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_4', 'Όριο αερίου '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_4b', '21000 είναι το προεπιλεγμένο όριο αερίου. Όταν αποστέλλετε συμβόλαια ή πρόσθετα δεδομένα, αυτό ίσως πρέπει να είναι διαφορετικό. Τυχόν αχρησιμοποιήτο αέριο θα σας επιστραφεί. '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_5b', 'Εμφανίστηκε στο Βήμα 1 στον συνδεδεμένο υπολογιστή σας. '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_6', 'Δεδομένα '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_6b', 'Αυτό είναι προαιρετικό. Δεδομένα χρησιμοποιούνται συνήθως όταν αποστέλλονται συναλλαγές σε συμβόλαια. '), _defineProperty(_el$data, 'OFFLINE_Step2_Label_7', 'Εισαγωγή / επιλογή του ιδιωτικού κλειδιού / JSON. '), _defineProperty(_el$data, 'OFFLINE_Step3_Title', 'Βήμα 3: Δημοσίευση συναλλαγής (συνδεδεμένος υπολογιστής) '), _defineProperty(_el$data, 'OFFLINE_Step3_Label_1', 'Επικολλήστε την υπογεγραμμένη συναλλαγή εδώ και πατήστε το κουμπί «ΑΠΟΣΤΟΛΗ ΣΥΝΑΛΛΑΓΗΣ». '), _defineProperty(_el$data, 'MYWAL_Nick', 'Ψευδώνυμο πορτοφολιού '), _defineProperty(_el$data, 'MYWAL_Address', 'Διεύθυνση πορτοφολιού '), _defineProperty(_el$data, 'MYWAL_Bal', 'Υπόλοιπο '), _defineProperty(_el$data, 'MYWAL_Edit', 'Επεξεργασία '), _defineProperty(_el$data, 'MYWAL_View', 'Προβολή '), _defineProperty(_el$data, 'MYWAL_Remove', 'Αφαίρεση '), _defineProperty(_el$data, 'MYWAL_RemoveWal', 'Αφαίρεση πορτοφολιού: '), _defineProperty(_el$data, 'MYWAL_WatchOnly', 'Οι λογαρισμοί μόνο-προς-παρακολούθηση '), _defineProperty(_el$data, 'MYWAL_Viewing', 'Προβάλλεται το πορτοφόλι '), _defineProperty(_el$data, 'MYWAL_Hide', 'Απόκρυψη πληροφοριών πορτοφολιού '), _defineProperty(_el$data, 'MYWAL_Edit_2', 'Επεξεργασία πορτοφολιού '), _defineProperty(_el$data, 'MYWAL_Name', 'Όνομα πορτοφολιού '), _defineProperty(_el$data, 'MYWAL_Content_1', 'Προσοχή! Πρόκειται να αφαιρέσετε το πορτοφόλι σας. '), _defineProperty(_el$data, 'MYWAL_Content_2', 'Σιγουρευτείτε ότι έχετε **αποθηκεύσει το αρχείο keystore/JSON και το συνθηματικό** του πορτοφολιού αυτού πριν το αφαιρέσετε. '), _defineProperty(_el$data, 'MYWAL_Content_3', 'Αν θέλετε να χρησιμοποιήσετε το πορτοφόλι αυτό με το MyEtherWalletCX στο μέλλον, θα χρειαστεί να το ξαναπροσθέσετε χειροκίνητα χρησιμοποιώντας το ιδιωτικό κλειδί/JSON και το συνθηματικό. '), _defineProperty(_el$data, 'VIEWWALLET_Subtitle', 'Αυτό σας επιτρέπει να κατεβάσετε διαφορετικές εκδοχές των ιδιωτικών κλειδιών σας και να επανεκτυπώσετε το χάρτινο πορτοφόλι σας. Ίσως επιθυμείτε να το κάνετε προκειμένου να [εισαγάγετε το λογαριασμό σας στο Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Αν επιθυμείτε να ελέγξετε το υπόλοιπό σας, συνιστούμε να χρησιμοποιήσετε ένα εργαλείο εξερεύνησης blockchain όπως το [etherscan.io](https://etherscan.io/). '), _defineProperty(_el$data, 'VIEWWALLET_Subtitle_Short', 'Αυτό σας επιτρέπει να κατεβάσετε διαφορετικές εκδοχές των ιδιωτικών κλειδιών σας και να επανεκτυπώσετε το χάρτινο πορτοφόλι σας. '), _defineProperty(_el$data, 'VIEWWALLET_SuccessMsg', 'Επιτυχία! Εδώ είναι οι πληροφορίες για το πορτοφόλι σας. '), _defineProperty(_el$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_el$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_el$data, 'CX_error_1', 'Δεν έχετε αποθηκευμένα πορτοφόλια. Κάντε κλικ στο [«Προσθήκη πορτοφολιού»](/cx-wallet.html#add-wallet) για να προσθεσετε ένα! '), _defineProperty(_el$data, 'CX_quicksend', 'Ταχυ-αποστολή '), _defineProperty(_el$data, 'NODE_Title', 'Εγκαταστήστε τον προσαρμοσμένο κόμβο σας'), _defineProperty(_el$data, 'NODE_Subtitle', 'Για να συνδεθείτε σε έναν τοπικό κόμβο...'), _defineProperty(_el$data, 'NODE_Warning', 'Ο κόμβος σας πρέπει να είναι HTTPS για να συνδεθείτε σε αυτόν μέσω του MyEtherWallet.com. Μπορείτε να [κατεβάσετε το αποθετήριο MyEtherWallet και να το εκτελέσετε τοπικά](https://github.com/kvhnuke/etherwallet/releases/latest) για να συνδεθείτε σε οποιονδήποτε κόμβο. Ή, αποκτήστε ένα δωρεάν πιστοποιητικό SSL μέσω του [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_el$data, 'NODE_Name', 'Όνομα κόμβου'), _defineProperty(_el$data, 'NODE_Port', 'Θύρα κόμβου'), _defineProperty(_el$data, 'NODE_CTA', 'Αποθήκευση & χρήση προσαρμοσμένου κόμβου'), _defineProperty(_el$data, 'CONTRACT_Title', 'Διεύθυνση συμβολαίου '), _defineProperty(_el$data, 'CONTRACT_Title_2', 'Επιλογή υπάρχοντος συμβολαίου '), _defineProperty(_el$data, 'CONTRACT_Json', 'Διεπαφή ABI / JSON '), _defineProperty(_el$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_el$data, 'CONTRACT_Interact_CTA', 'Επιλογή λειτουργίας '), _defineProperty(_el$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_el$data, 'CONTRACT_Read', 'READ '), _defineProperty(_el$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_el$data, 'DEP_generate', 'Generate Bytecode '), _defineProperty(_el$data, 'DEP_generated', 'Generated Bytecode '), _defineProperty(_el$data, 'DEP_signtx', 'Υπογραφή συναλλαγής '), _defineProperty(_el$data, 'DEP_interface', 'Generated Interface '), _defineProperty(_el$data, 'SWAP_rates', "Τρέχουσες ισοτιμίες "), _defineProperty(_el$data, 'SWAP_init_1', "Θέλω να ανταλλάξω "), _defineProperty(_el$data, 'SWAP_init_2', " με "), _defineProperty(_el$data, 'SWAP_init_CTA', "Συνέχεια "), _defineProperty(_el$data, 'SWAP_information', "Τα στοιχεία σας "), _defineProperty(_el$data, 'SWAP_send_amt', "Ποσό που να αποσταλεί "), _defineProperty(_el$data, 'SWAP_rec_amt', "Ποσό που να ληφθεί "), _defineProperty(_el$data, 'SWAP_your_rate', "Η ισοτιμία σας "), _defineProperty(_el$data, 'SWAP_rec_add', "Η διεύθυνση λήψης σας "), _defineProperty(_el$data, 'SWAP_start_CTA', "Έναρξη ανταλλαγής "), _defineProperty(_el$data, 'SWAP_ref_num', "Ο αριθμός αναφοράς σας "), _defineProperty(_el$data, 'SWAP_time', "Υπολειπόμενος χρόνος για την αποστολή "), _defineProperty(_el$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_el$data, 'SWAP_progress_1', "Η εντολή ξεκίνησε "), _defineProperty(_el$data, 'SWAP_progress_2', "Εν αναμονή για "), _defineProperty(_el$data, 'SWAP_progress_3', "Ελήφθησαν! "), _defineProperty(_el$data, 'SWAP_progress_4', "Γίνεται αποστολή {{orderResult.output.currency}} "), _defineProperty(_el$data, 'SWAP_progress_5', "Η εντολή ολοκληρώθηκε "), _defineProperty(_el$data, 'SWAP_order_CTA', "Παρακαλούμε στείλτε "), _defineProperty(_el$data, 'SWAP_unlock', "Ξεκλειδώστε το πορτοφόλι σας για να στείλετε ETH ή μάρκες απευθείας από αυτήν τη σελίδα. "), _defineProperty(_el$data, 'MSG_message', 'Μήνυμα '), _defineProperty(_el$data, 'MSG_date', 'Δεδομένα '), _defineProperty(_el$data, 'MSG_signature', 'Υπογραφή '), _defineProperty(_el$data, 'MSG_verify', 'Επαλήθευση μηνύματος '), _defineProperty(_el$data, 'MSG_info1', 'Συμπεριλάβετε την τρέχουσα ημερομηνία ώστε η υπογραφή να μην μπορεί να επαχρησιμοποιηθεί σε διαφορετική ημερομηνία. '), _defineProperty(_el$data, 'MSG_info2', 'Συμπεριλάβετε το ψευδώνυμό σας και το πού χρησιμοποιείτε αυτό το ψευδώνυμο ώστε να μην μπορεί να το χρησιμοποιήσει κάποιος άλλος. '), _defineProperty(_el$data, 'MSG_info3', 'Συμπεριλάβετε έναν συγκεκριμένο λόγο για το μήνυμα, ώστε να μην μπορεί να επαναχρησιμοποιηθεί για διαφορετικό σκοπό. '), _defineProperty(_el$data, 'MNEM_1', 'Παρακαλούμε, επιλέξτε την διεύθυνση με την οποία θα θέλατε να αλληλεπιδράσετε. '), _defineProperty(_el$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_el$data, 'MNEM_more', 'Περισσότερες διευθύνσεις '), _defineProperty(_el$data, 'MNEM_prev', 'Προηγούμενες διευθύνσεις '), _defineProperty(_el$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_el$data, 'ADD_Ledger_1', 'Συνδέστε το Ledger Wallet σας '), _defineProperty(_el$data, 'ADD_Ledger_2', 'Ανοίξτε την εφαρμογή Ethereum (ή μια εφαρμογή συμβολαίου) '), _defineProperty(_el$data, 'ADD_Ledger_2_Exp', 'Ανοίξτε την εφαρμογή Expanse (ή μια εφαρμογή συμβολαίου) '), _defineProperty(_el$data, 'ADD_Ledger_2_Ubq', 'Ανοίξτε την εφαρμογή Ubiq (ή μια εφαρμογή συμβολαίου) '), _defineProperty(_el$data, 'ADD_Ledger_3', 'Βεβαιωθείτε ότι η υποστήριξη περιηγητή είναι ενεργοποιημένη στις ρυθμίσεις '), _defineProperty(_el$data, 'ADD_Ledger_4', 'Εάν δεν υπάρχει υποστήριξη περιηγητή στις ρυθμίσεις, βεβαιωθείτε ότι έχετε [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_el$data, 'ADD_Ledger_0a', 'Ξανα-ανοίξτε το MyEtherWallet σε ασφαλή (SSL) σύνδεση '), _defineProperty(_el$data, 'ADD_Ledger_0b', 'Ξανα-ανοίξτε το MyEtherWallet χρησιμοποιώντας το [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_el$data, 'ADD_Ledger_scan', 'Συνδεθείτε στο Ledger Wallet '), _defineProperty(_el$data, 'ADD_MetaMask', 'Συνδεθείτε στο MetaMask '), _defineProperty(_el$data, 'x_Trezor', 'TREZOR '), _defineProperty(_el$data, 'ADD_Trezor_scan', 'Συνδεθείτε στο TREZOR '), _defineProperty(_el$data, 'ADD_Trezor_select', 'Αυτός είναι σπόρος του TREZOR '), _defineProperty(_el$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_el$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_el$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_el$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_el$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_el$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_el$data, 'ERROR_0', 'Παρακαλούμε εισαγάγετε έγκυρο ποσό. '), _defineProperty(_el$data, 'ERROR_1', 'Το συνθηματικό σας πρέπει να αποτελείται απο τουλάχιστον 9 χαρακτήρες. Παρακαλούμε σιγουρευτείτε ότι είναι ισχυρό συνθηματικό. '), _defineProperty(_el$data, 'ERROR_2', 'Λυπούμαστε! Δεν αναγνωρίζουμε αυτού του είδους αρχεία πορτοφολιού '), _defineProperty(_el$data, 'ERROR_3', 'Αυτό δεν είναι έγκυρο αρχείο πορτοφολιού. '), _defineProperty(_el$data, 'ERROR_4', 'Αυτή η μονάδα δεν υπάρχει, παρακαλούμε χρησιμοποιήστε μία απο τις ακόλουθες μονάδες: '), _defineProperty(_el$data, 'ERROR_5', 'Λάθος διεύθυνση. '), _defineProperty(_el$data, 'ERROR_6', 'Λάθος συνθηματικό. '), _defineProperty(_el$data, 'ERROR_7', 'Λάθος ποσό. (Πρέπει να είναι ακέραιος. Δοκιμάστε 0-18). '), _defineProperty(_el$data, 'ERROR_8', 'Λάθος όριο αερίου. (Πρέπει να είναι ακέραιος. Δοκιμάστε 21000-4000000). '), _defineProperty(_el$data, 'ERROR_9', 'Λάθος τιμή δεδομένων. (Πρέπει να είναι δεκαεξαδικός). '), _defineProperty(_el$data, 'ERROR_10', 'Λάθος ποσό αερίου. (Πρέπει να είναι ακέραιος. Δοκιμάστε 20 GWEI / 20000000000 WEI.) '), _defineProperty(_el$data, 'ERROR_11', 'Λάθος nonce. (Πρέπει να είναι ακέραιος). '), _defineProperty(_el$data, 'ERROR_12', 'Λάθος υπογεγραμμένη συναλλαγή. '), _defineProperty(_el$data, 'ERROR_13', 'Υπάρχει ήδη πορτοφόλι με αυτό το ψευδώνυμο. '), _defineProperty(_el$data, 'ERROR_14', 'Δεν βρέθηκε πορτοφόλι. '), _defineProperty(_el$data, 'ERROR_15', 'Φαίνεται να μην υπάρχει ακόμη πρόταση με αυτό το αναγνωριστικό ή υπήρξε σφάλμα κατά την ανάγνωση της πρότασης αυτής. '), _defineProperty(_el$data, 'ERROR_16', 'Υπάρχει ήδη αποθηκευμένο πορτοφόλι με αυτήν τη διεύθυνση. Παρακαλούμε ελέγξτε τη σελίδα πορτοφολιών σας. '), _defineProperty(_el$data, 'ERROR_17', 'Ο λογαριασμός από τον οποίο στέλνετε δεν έχει αρκετά κεφάλαια. Εάν στέλνετε μάρκες, πρέπει να έχετε 0.01 ETH στο λογαριασμό σας για να καλύψετε το κόστος του αερίου. '), _defineProperty(_el$data, 'ERROR_18', 'Όλο το αέριο θα είχε δαπανηθεί στη συναλλαγή αυτή. Αυτό σημαίνει ότι έχετε ήδη ψηφίσει στην πρόταση αυτήν ή ότι η περίοδος συζήτησης έχει λήξει. '), _defineProperty(_el$data, 'ERROR_19', 'Λάθος σύμβολο '), _defineProperty(_el$data, 'ERROR_20', 'Μη έγκυρη μάρκα ERC-20'), _defineProperty(_el$data, 'ERROR_21', 'Δεν ήταν δυνατή η εκτίμηση του αερίου. Δεν υπάρχουν αρκετά κεφάλαια στο λογαριασμό ή η διεύθυνση λήψης του συμβολαίου θα έβγαλε κάποιο λάθος. Μη διστάσετε να καθορίσετε το αέριο με το χέρι και να συνεχίσετε. Το μήνυμα σφάλματος κατά την αποστολή μπορεί να είναι πιο ενημερωτικό.'), _defineProperty(_el$data, 'ERROR_22', 'Παρακαλούμε εισαγάγετε έγκυρο όνομα κόμβου'), _defineProperty(_el$data, 'ERROR_23', 'Παρακαλούμε εισαγάγετε έγκυρη διεύθυνση URL. Αν είστε σε https, η διεύθυνση URL σας πρέπει να είναι https'), _defineProperty(_el$data, 'ERROR_24', 'Παρακαλούμε εισαγάγετε έγκυρη θύρα. '), _defineProperty(_el$data, 'ERROR_25', 'Παρακαλούμε εισαγάγετε έγκυρο αναγνωριστικό αλυσίδας. '), _defineProperty(_el$data, 'ERROR_26', 'Παρακαλούμε εισαγάγετε έγκυρο ABI. '), _defineProperty(_el$data, 'ERROR_27', 'Ελάχιστο ποσό: 0.01. Μέγιστο ποσό: '), _defineProperty(_el$data, 'ERROR_28', 'Προκειμένου να έχετε πρόσβαση σε αυτό το πορτοφόλι στο μέλλον **είναι απαραίτητο το αρχείο Keystore/JSON & το συνθηματικό ή το ιδιωτικό κλειδί σας**. Παρακαλούμε κρατήστε ένα εξωτερικό αντίγραφο ασφαλείας! Δεν υπάρχει τρόπος ανάκτησης ενός πορτοφολιού άν δεν το αποθηκεύσετε. Διαβάστε τη σελίδα [βοήθειας](https://www.myetherwallet.com/#help) για οδηγίες. '), _defineProperty(_el$data, 'ERROR_29', 'Παρακαλούμε εισαγάγετε έγκυρο χρήστη και συνθηματικό '), _defineProperty(_el$data, 'ERROR_30', 'Παρακαλούμε εισαγάγετε έγκυρο όνομα (7+ χαρακτήρες, περιορισμένα σημεία στίξης) '), _defineProperty(_el$data, 'ERROR_31', 'Παρακαλούμε εισαγάγετε έγκυρη μυστική φράση. '), _defineProperty(_el$data, 'ERROR_32', 'Δεν ήταν δυνατή η σύνδεση στον κόμβο. Ανανεώστε τη σελίδα σας, δοκιμάστε κάποιον διαφορετικό κόμβο (πάνω δεξιά γωνία), ελέγξτε τις ρυθμίσεις του τείχους προστασίας. Εάν πρόκειται για προσαρμοσμένο κόμβο, ελέγξτε τις διαμορφώσεις σας.'), _defineProperty(_el$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_el$data, 'ERROR_34', 'Το όνομα που προσπαθείτε να αποκαλύψετε δεν ταιριάζει με το όνομα που έχετε εισαγάγει. '), _defineProperty(_el$data, 'ERROR_35', 'Η διεύθυνση εισόδου δεν περιέχει άθροισμα ελέγχου. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Περισσότερες πληροφορίες</a>'), _defineProperty(_el$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_el$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_el$data, 'SUCCESS_1', 'Έγκυρη διεύθυνση '), _defineProperty(_el$data, 'SUCCESS_2', 'Το πορτοφόλι αποκρυπτογραφήθηκε επιτυχώς '), _defineProperty(_el$data, 'SUCCESS_3', 'Η συναλλαγή σας έχει μεταδοθεί στο δίκτυο. Αναμένει να εξορυχθεί και να επιβεβαιωθεί. Κατά τη διάρκεια ενός ICO, μπορεί να χρειαστούν 3+ ώρες για επιβεβαίωση. Χρησιμοποιήστε τα κουμπιά επαλήθευσης και ελέγχου παρακάτω για να δείτε. Hash συναλλαγής: '), _defineProperty(_el$data, 'SUCCESS_4', 'Το πορτοφόλι σας προστέθηκε επιτυχώς '), _defineProperty(_el$data, 'SUCCESS_5', 'Επιλέχθηκε αρχείο '), _defineProperty(_el$data, 'SUCCESS_6', 'Συνδεθήκατε επιτυχώς '), _defineProperty(_el$data, 'SUCCESS_7', 'Η υπογραφή του μηνύματος επαληθεύτηκε'), _defineProperty(_el$data, 'GETH_InvalidSender', 'Μη έγκυρος αποστολέας '), _defineProperty(_el$data, 'GETH_Nonce', 'Το nonce είναι πολύ χαμηλό '), _defineProperty(_el$data, 'GETH_Cheap', 'Η τιμή αερίου είναι πολύ χαμηλή για να γίνει αποδεκτή '), _defineProperty(_el$data, 'GETH_Balance', 'Μη επαρκές υπόλοιπο '), _defineProperty(_el$data, 'GETH_NonExistentAccount', 'Ο λογαριασμός δεν υπάρχει ή το υπόλοιπο του λογαριασμού είναι πολύ χαμηλό '), _defineProperty(_el$data, 'GETH_InsufficientFunds', 'Μη επαρκή κεφάλαια για αέριο * τιμή + αξία '), _defineProperty(_el$data, 'GETH_IntrinsicGas', 'Το εγγενές αέριο είναι πολύ χαμηλό '), _defineProperty(_el$data, 'GETH_GasLimit', 'Υπερβαίνει το όριο αερίου του μπλοκ '), _defineProperty(_el$data, 'GETH_NegativeValue', 'Αρνητική αξία '), _defineProperty(_el$data, 'PARITY_AlreadyImported', "Έχει ήδη εισαχθεί συναλλαγή με το ίδιο hash."), _defineProperty(_el$data, 'PARITY_Old', "Το nonce της συναλλαγής είναι πολύ χαμηλό. Δοκιμάστε να μεταβάλετε το nonce."), _defineProperty(_el$data, 'PARITY_TooCheapToReplace', "Το τέλος συναλλαγής είναι πολύ χαμηλό. Υπάρχει μια άλλη συναλλαγή με το ίδιο nonce στη σειρά προτεραιότητας. Δοκιμάστε να αυξήσετε το τέλος ή να μεταβάλετε το nonce."), _defineProperty(_el$data, 'PARITY_LimitReached', "Υπάρχουν πολλές συναλλαγές στη σειρά προτεραιότητας. Η συναλλαγή σας απορρίφθηκε λόγω ορίου. Προσπαθήστε να αυξήσετε το τέλος."), _defineProperty(_el$data, 'PARITY_InsufficientGasPrice', "Το τέλος συναλλαγής είναι πολύ χαμηλό. Δεν ικανοποιεί το ελάχιστο τέλος του κόμβου σας (ελάχιστο: {}, δόθηκε: {}). Προσπαθήστε να αυξήσετε το τέλος."), _defineProperty(_el$data, 'PARITY_InsufficientBalance', "Ανεπαρκή κεφάλαια. Ο λογαριασμός από τον οποίον προσπαθείτε να στείλετε συναλλαγή δεν έχει αρκετά κεφάλαια. Απαιτούνται {} και δόθηκαν: {}."), _defineProperty(_el$data, 'PARITY_GasLimitExceeded', "Το κόστος συναλλαγής υπερβαίνει το τρέχον όριο αερίου. Όριο: {}, δόθηκε: {}. Προσπαθήστε να μειώσετε το παρεχόμενο αέριο."), _defineProperty(_el$data, 'PARITY_InvalidGasLimit', "Το παρεχόμενο αέριο είναι πέρα από το όριο."), _defineProperty(_el$data, 'WARN_Send_Link', 'Έχετε φθάσει εδώ μέσω ενός συνδέσμου που έχει τη διεύθυνση, την αξία, το αέριο, τα πεδία δεδομένων ή τον τύπο συναλλαγής (τρόπο αποστολής) ήδη συμπληρωμένα για σας. Μπορείτε να αλλάξετε οποιοδήποτε στοιχείο πριν από την αποστολή. Ξεκλειδώστε το πορτοφόλι σας για να ξεκινήσετε. '), _defineProperty(_el$data, 'translate_version', '0.3 '), _defineProperty(_el$data, 'Translator_Desc', 'Ευχαριστούμε τους μεταφραστές μας '), _defineProperty(_el$data, 'TranslatorName_1', '[VitalikFanBoy#117](https://www.myetherwallet.com/?gaslimit=21000&to=0x245f27796a44d7e3d30654ed62850ff09ee85656&value=1.0#send-transaction) · '), _defineProperty(_el$data, 'TranslatorAddr_1', '0x245f27796a44d7e3d30654ed62850ff09ee85656 '), _defineProperty(_el$data, 'TranslatorName_2', 'LefterisJP · '), _defineProperty(_el$data, 'TranslatorAddr_2', ''), _defineProperty(_el$data, 'TranslatorName_3', '[Nikos Vavoulas](https://www.myetherwallet.com/?gaslimit=21000&to=0x062711C89Bd46E9765CfF0b743Cb83a9dBA2d2d2&value=1.0#send-transaction) · '), _defineProperty(_el$data, 'TranslatorAddr_3', '0x062711C89Bd46E9765CfF0b743Cb83a9dBA2d2d2 '), _defineProperty(_el$data, 'TranslatorName_4', 'Ιωάννης Πρωτονοτάριος'), _defineProperty(_el$data, 'TranslatorAddr_4', ''), _defineProperty(_el$data, 'TranslatorName_5', ''), _defineProperty(_el$data, 'TranslatorAddr_5', ''), _defineProperty(_el$data, 'HELP_Warning', 'Εάν δημιουργήσατε πορτοφόλι -ή- κατεβάσατε το αποθετήριο πριν από τις **31 Δεκεμβρίου 2015**, παρακαλούμε ελέγξτε τα πορτοφόλια σας και κατεβάσετε μια νέα έκδοση του αποθετηρίου. Κάντε κλικ για λεπτομέρειες. '), _defineProperty(_el$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_el$data, 'HELP_Remind_Title', 'Κάποιες υπενθυμίσεις '), _defineProperty(_el$data, 'HELP_Remind_Desc_1', '**Τα Ethereum, MyEtherWallet.com & MyEtherWallet CX και μερικές από τις βασικές βιβλιοθήκες Javascript που χρησιμοποιούμε βρίσκονται υπό ενεργό ανάπτυξη.** Ενώ έχουμε κάνει διεξοδικές δοκιμές και έχουν δημιουργηθεί με επιτυχία δεκάδες χιλιάδες πορτοφόλια από άτομα σε όλον τον πλανήτη, υπάρχει πάντα η μικρή πιθανότητα να συμβεί κάτι απροσδόκητο που θα μπορούσε να προκαλέσει την απώλεια των ETH σας. Παρακαλούμε να μην επενδύετε περισσότερο από ό,τι είστε διατεθειμένοι να χάσετε και παρακαλούμε επίσης να προσέχετε. Αν κάτι συμβεί, θα λυπηθούμε, αλλά **δεν θα είμαστε υπεύθυνοι για τον χαμένο Αιθέρα**. '), _defineProperty(_el$data, 'HELP_Remind_Desc_2', 'Τα MyEtherWallet.com & MyEtherWallet CX δεν είναι «διαδικτυακά πορτοφόλια». Δεν δημιουργείτε κάποιον λογαριασμό ούτε μας δίνετε τον αιθέρα σας να σας τον φυλάξουμε. Όλα τα δεδομένα δεν φεύγουν από τον υπολογιστή/περιηγητή σας. Σας διευκολύνουμε να δημιουργείτε, να αποθηκεύετε και να έχετε πρόσβαση στις πληροφορίες σας και να αλληλεπιδράτε με το blockchain. '), _defineProperty(_el$data, 'HELP_Remind_Desc_3', 'Αν δεν αποθηκεύσετε το ιδιωτικό σας κλειδί και το συνθηματικό σας, δεν υπάρχει τρόπος να ανακτήσετε πρόσβαση στο πορτοφόλι σας ή στα κεφάλαια που κατέχει. Πάρτε αντίγραφα ασφαλείας σε πολλαπλές φυσικές τοποθεσίες &ndash; όχι μόνο στον υπολογιστή σας! '), _defineProperty(_el$data, 'HELP_0_Title', '0) Είμαι νέος χρήστης. Τι κάνω; '), _defineProperty(_el$data, 'HELP_0_Desc_1', 'Το MyEtherWallet σας δίνει την δυνατότητα να δημιουργήσετε νέα πορτοφόλια ώστε να μπορείτε να αποθηκεύσετε τον αιθέρα σας μόνοι σας, και όχι σε κάποιο ανταλλακτήριο. Αυτή η διαδικασία συμβαίνει εξ\'ολοκλήρου στον υπολογιστή σας, και όχι στους εξυπηρετητές μας. Για αυτό, όταν δημιουργείτε ένα νέο πορτοφόλι, **εσείς είστε υπεύθυνοι να κρατήσετε αντίγραφα ασφαλείας**. '), _defineProperty(_el$data, 'HELP_0_Desc_2', 'Δημιουργήστε ένα νέο πορτοφόλι. '), _defineProperty(_el$data, 'HELP_0_Desc_3', 'Κρατήστε αντίγραφο ασφαλείας ποτοφολιού. '), _defineProperty(_el$data, 'HELP_0_Desc_4', 'Επιβεβαιώστε ότι έχετε πρόσβαση στο νέο αυτό πορτοφόλι και ότι αποθηκεύσατε σωστά όλες τις απαραίτητες πληροφορίες. '), _defineProperty(_el$data, 'HELP_0_Desc_5', 'Μεταφέρετε αιθέρα στο νέο αυτό πορτοφόλι. '), _defineProperty(_el$data, 'HELP_1_Title', '1) Πώς φτιάχνω ένα νέο πορτοφόλι; '), _defineProperty(_el$data, 'HELP_1_Desc_1', 'Πηγαίνετε στη σελίδα «Δημιουργία πορτοφολιού». '), _defineProperty(_el$data, 'HELP_1_Desc_2', 'Πηγαίνετε στη σελίδα «Προσθήκη πορτοφολιού» & επιλέξτε «Δημιουργία νέου πορτοφολιού» '), _defineProperty(_el$data, 'HELP_1_Desc_3', 'Πληκτρολογήστε ένα ισχυρό συνθηματικό. Αν νομίζετε ότι μπορεί να το ξεχάσετε, αποθηκεύστε το κάπου που να είναι ασφαλές. Θα χρειαστείτε αυτό το συνθηματικό για τις εξερχόμενες συναλλαγές σας. '), _defineProperty(_el$data, 'HELP_1_Desc_4', 'Κάντε κλικ στο «ΔΗΜΙΟΥΡΓΙΑ». '), _defineProperty(_el$data, 'HELP_1_Desc_5', 'Το πορτοφόλι σας δημιουργήθηκε με επιτυχία. '), _defineProperty(_el$data, 'HELP_2a_Desc_1', 'Θα πρέπει πάντα να δημιουργείτε εξωτερικά αντίγραφα ασφαλείας του πορτοφολιού σας και σε πολλαπλές φυσικές τοποθεσίες - όπως σε μια μονάδα USB ή/και σε ένα κομμάτι χαρτί. '), _defineProperty(_el$data, 'HELP_2a_Desc_2', 'Αποθηκεύστε τη διεύθυνση. Μπορείτε να την κρατήσετε για τον εαυτό σας ή να τη μοιραστείτε με άλλους. Με αυτόν τον τρόπο, οι άλλοι μπορούν να μεταφέρουν αιθέρα σε εσάς. '), _defineProperty(_el$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_el$data, 'HELP_2a_Desc_4', 'Τοποθετήστε τη διεύθυνση, αντίγραφα του ιδιωτικού κλειδιού και το αρχείο PDF του χάρτινου πορτοφολιού σας σε ένα φάκελο. Αποθηκεύστε τον στον υπολογιστή σας και μια μονάδα USB. '), _defineProperty(_el$data, 'HELP_2a_Desc_5', 'Εκτυπώστε το πορτοφόλι εάν έχετε εκτυπωτή. Διαφορετικά, σημειώστε το ιδιωτικό σας κλειδί και τη διεύθυνση σε ένα κομμάτι χαρτί. Αποθηκεύστε το σε ασφαλή τοποθεσία, σε ξεχωριστό μέρος από τον υπολογιστή και τη μονάδα USB. '), _defineProperty(_el$data, 'HELP_2a_Desc_6', 'Λάβετε υπόψιν σας ότι στόχος είναι να αποτρέψετε την απώλεια των κλειδιών και του συνθηματικού από απώλεια ή βλάβη του σκληρού σας δίσκου, ή της μονάδας USB, ή του χαρτιού. Πρέπει επίσης να έχετε κατά νου τη φυσική απώλεια / καταστροφή μιας ολόκληρης περιοχής (σκεφτείτε πυρκαγιά ή πλημμύρα). '), _defineProperty(_el$data, 'HELP_2b_Title', '2β) Πώς μπορώ να έχω ασφάλεια / συναλλαγές εκτός σύνδεσης / ψυχρή αποθήκευση με το MyEtherWallet? '), _defineProperty(_el$data, 'HELP_2b_Desc_1', 'Πηγαίνετε στο [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_el$data, 'HELP_2b_Desc_2', 'Κάντε κλικ στο `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_el$data, 'HELP_2b_Desc_3', 'Μετακινήστε το zip σε έναν υπολογιστή απομονωμένο από το δίκτυο. '), _defineProperty(_el$data, 'HELP_2b_Desc_4', 'Αποσυμπιέστε το και κάντε διπλό κλικ στο `index.html`. '), _defineProperty(_el$data, 'HELP_2b_Desc_5', 'Δημιουργήστε ένα πορτοφόλι με ισχυρό συνθηματικό. '), _defineProperty(_el$data, 'HELP_2b_Desc_6', 'Αποθηκεύστε τη διεύθυνση. Αποθηκεύστε πολλαπλά αντίγραφα του ιδιωτικού κλειδιού. Αποθηκεύστε το συνθηματικό εάν υπάρχει περίπτωση να μην το θυμάστε για πάντα. '), _defineProperty(_el$data, 'HELP_2b_Desc_7', 'Φυλάξτε αυτά τα χαρτιά / USB σε πολλαπλές και ξεχωριστές μεταξύ τους τοποθεσίες. '), _defineProperty(_el$data, 'HELP_2b_Desc_8', 'Πηγαίνετε στη σελίδα «Προβολή πληροφοριών πορτοφολιού» και πληκτρολογήστε το ιδιωτικό κλειδί / συνθηματικό σας για να βεβαιωθείτε ότι είναι σωστά και ότι έχετε πρόσβαση στο πορτοφόλι σας. Ελέγξτε ότι η διεύθυνση που σημειώσατε στο χαρτί είναι η ίδια. '), _defineProperty(_el$data, 'HELP_3_Title', '3) Πώς μπορώ να επαληθεύσω ότι έχω πρόσβαση στο νέο πορτοφόλι μου; '), _defineProperty(_el$data, 'HELP_3_Desc_1', '**Πριν στείλετε οποιοδήποτε ποσό Αιθέρα στο νέο σας πορτοφόλι**, πρέπει να βεβαιωθείτε ότι έχετε πρόσβαση σε αυτό. '), _defineProperty(_el$data, 'HELP_3_Desc_2', 'Μεταβείτε στη σελίδα «Προβολή πληροφοριών ποστοφολιού». '), _defineProperty(_el$data, 'HELP_3_Desc_3', 'Μεταβείτε στη σελίδα «Προβολή πληροφοριών ποστοφολιού» του MyEtherWallet.com. '), _defineProperty(_el$data, 'HELP_3_Desc_4', 'Επιλέξτε το αρχείο πορτοφολιού σας -ή- το ιδιωτικό σας κλειδί και ξεκλειδώστε το πορτοφόλι σας. '), _defineProperty(_el$data, 'HELP_3_Desc_5', 'Εάν το πορτοφόλι είναι κρυπτογραφημένο, θα εμφανιστεί αυτόματα ένα πλαίσιο κειμένου. Εισαγάγετε το συνθηματικό σας. '), _defineProperty(_el$data, 'HELP_3_Desc_6', 'Κάντε κλικ στο κουμπί «Ξεκλείδωμα πορτοφολιού». '), _defineProperty(_el$data, 'HELP_3_Desc_7', 'Τα στοιχεία του πορτοφολιού σας θα πρέπει να εμφανιστούν. Βρείτε τη διεύθυνση του λογαριασμού σας, δίπλα σε ένα πολύχρωμο κυκλικό εικονίδιο. Αυτό το εικονίδιο αντιπροσωπεύει οπτικά τη διεύθυνσή σας. Βεβαιωθείτε ότι η διεύθυνση είναι η διεύθυνση που έχετε αποθηκεύσει στο έγγραφο κειμένου και βρίσκεται στο χάρτινο πορτοφόλι σας. '), _defineProperty(_el$data, 'HELP_3_Desc_8', 'Αν σκοπεύετε να φυλάξετε μεγάλη ποσότητα αιθέρα, σας συνιστούμε να στείλετε πρώτα μια μικρή ποσότητα αιθέρα από το νέο πορτοφόλι πριν καταθέσετε κάποιο μεγάλο ποσό. Στείλτε 0.001 μονάδες αιθέρα στο νέο σας πορτοφόλι, αποκτήστε πρόσβαση στο πορτοφόλι, στείλτε τις 0.001 μονάδες αιθέρα σε άλλη διεύθυνση και βεβαιωθείτε ότι όλα λειτουργούν ομαλά. '), _defineProperty(_el$data, 'HELP_4_Title', '4) Πώς στέλνω Αιθέρα από ένα πορτοφόλι σε ένα άλλο; '), _defineProperty(_el$data, 'HELP_4_Desc_1', 'Αν σκοπεύετε να μετακινήσετε ένα μεγάλο ποσό αιθέρα, θα πρέπει πρώτα να δοκιμάσετε να στείλετε ένα μικρό ποσό στο πορτοφόλι σας για να διασφαλίσετε ότι όλα δουλεύουν όπως πρέπει. '), _defineProperty(_el$data, 'HELP_4_Desc_2', 'Μεταβείτε στη σελίδα «Αποστολή αιθέρα και μαρκών». '), _defineProperty(_el$data, 'HELP_4_Desc_3', 'Επιλέξτε το αρχείο πορτοφολιού σας -ή- το ιδιωτικό σας κλειδί και ξεκλειδώστε το πορτοφόλι σας. '), _defineProperty(_el$data, 'HELP_4_Desc_4', 'Εάν το πορτοφόλι είναι κρυπτογραφημένο, θα εμφανιστεί αυτόματα ένα πλαίσιο κειμένου. Εισαγάγετε το συνθηματικό. '), _defineProperty(_el$data, 'HELP_4_Desc_5', 'Κάντε κλικ στο κουμπί «Ξεκλείδωμα πορτοφολιού». '), _defineProperty(_el$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_el$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_el$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_el$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_el$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_el$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_el$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_el$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_el$data, 'HELP_4CX_Desc_1', 'Πρώτα, πρέπει να προσθέσετε ένα πορτοφόλι. Άπαξ και το κάνετε αυτό έχετε δύο επιλογές: τη λειτουργία «QuickSend» από το εικονίδιο της επέκτασης στο Chrome ή από τη σελίδα «Αποστολή αιθέρα και μαρκών». '), _defineProperty(_el$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_el$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_el$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_el$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_el$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_el$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_el$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_el$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_el$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_el$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_el$data, 'HELP_4CX_Desc_12', 'Using «Αποστολή αιθέρα και μαρκών» Page '), _defineProperty(_el$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_el$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_el$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_el$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_el$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_el$data, 'HELP_5CX_Title', '5) Πώς μπορώ να εγκαταστήσω αυτήν την επέκταση από το αποθετήριο αντί του Chrome Store; '), _defineProperty(_el$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_el$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_el$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_el$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_el$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_el$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_el$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_el$data, 'HELP_7_Title', '7) Πώς μπορώ να στείλω μάρκες και να προσθέσω προσαρμοσμένες μάρκες; '), _defineProperty(_el$data, 'HELP_7_Desc_0', 'Το [Ethplorer.io](https://ethplorer.io/) είναι ένας πολύ καλός τρόπος για να εξερευνήσετε τις διάφορες μάρκες και να βρείτε τα δεκαδικά ψηφία μιας μάρκας. '), _defineProperty(_el$data, 'HELP_7_Desc_1', 'Μεταβείτε στη σελίδα «Αποστολή αιθέρα και μαρκών». '), _defineProperty(_el$data, 'HELP_7_Desc_2', 'Ξεκλειδώστε το πορτοφόλι σας. '), _defineProperty(_el$data, 'HELP_7_Desc_3', 'Εισαγάγετε τη διεύθυνση στην οποία θέλετε να αποστείλετε στο πεδίο «Προς διεύθυνση:». '), _defineProperty(_el$data, 'HELP_7_Desc_4', 'Εισαγάγετε το ποσό που θέλετε να στείλετε. '), _defineProperty(_el$data, 'HELP_7_Desc_5', 'Εισαγάγετε το ποσό που θέλετε να στείλετε. '), _defineProperty(_el$data, 'HELP_7_Desc_6', 'Εάν δεν βλέπετε τη μάρκα στη λίστα: '), _defineProperty(_el$data, 'HELP_7_Desc_7', 'Κάντε κλικ στο «Προσαρμογή». '), _defineProperty(_el$data, 'HELP_7_Desc_8', 'Εισαγάγετε τη διεύθυνση, το όνομα και τα δεκαδικά ψηφία της μάρκας. Αυτά παρέχονται από τους δημιουργούς της μάρκας και είναι επίσης απαραίτητα όταν χρησιμοποιείτε την επιλογή «Add a Watch Token» στο Mist. '), _defineProperty(_el$data, 'HELP_7_Desc_9', 'Κάντε κλικ στο «Αποθήκευση». '), _defineProperty(_el$data, 'HELP_7_Desc_10', 'Μπορείτε τώρα να αποστείλετε αυτή τη μάρκα καθώς και να δείτε το υπόλοιπό της στην πλευρική στήλη. '), _defineProperty(_el$data, 'HELP_7_Desc_11', 'Κάντε κλικ στο «Δημιουργία συναλλαγής». '), _defineProperty(_el$data, 'HELP_7_Desc_12', 'Θα εμφανιστούν κάνα δυο ακόμα πεδία. Πρόκειται για τον περιηγητή σας που δημιουργεί τη συναλλαγή. '), _defineProperty(_el$data, 'HELP_7_Desc_13', 'Κάντε κλικ στο μπλε κουμπί «Αποστολή συναλλαγής» παρακάτω. '), _defineProperty(_el$data, 'HELP_7_Desc_14', 'Θα εμφανιστεί ένα αναδυόμενο παράθυρο. Βεβαιωθείτε ότι το ποσό και η διεύθυνση στην οποία αποστέλλετε είναι σωστά. Στη συνέχεια, κάντε κλικ στο κουμπί «Ναι, είμαι σίγουρος! Να εκτελεστεί η συναλλαγή.». '), _defineProperty(_el$data, 'HELP_7_Desc_15', 'Η συναλλαγή θα υποβληθεί. Θα εμφανιστεί το Hash της συναλλαγής. Μπορείτε να κάνετε κλικ σε αυτό το Hash της συναλλαγής για να το δείτε στο blockchain. '), _defineProperty(_el$data, 'HELP_8_Title', '8) Τι θα συμβεί εάν ο ιστότοπός σας πέσει; '), _defineProperty(_el$data, 'HELP_8_Desc_1', 'Το MyEtherWallet δεν είναι πορτοφόλι ιστού. Δεν γίνεται σύνδεση χρήστη και τίποτα δεν αποθηκεύεται στους διακομιστές μας. Είναι απλά μια διεπαφή που σας επιτρέπει να αλληλεπιδράσετε με το blockchain. '), _defineProperty(_el$data, 'HELP_8_Desc_2', 'Αν το MyEtherWallet.com πέσει, μπορείτε να χρησιμοποιήσετε κάποιον άλλον τρόπο (όπως το geth ή το Ethereum Wallet / Mist) για να κάνετε ό,τι κάνουμε. Αλλά δεν θα χρειαστεί να «βγάλετε» τον Αιθέρα σας από το MyEtherWallet επειδή δεν βρίσκεται μέσα στο MyEtherWallet. Βρίσκεται στο όποιο πορτοφόλι δημιουργήσατε μέσω του ιστοτόπου μας. '), _defineProperty(_el$data, 'HELP_8_Desc_3', 'Μπορείτε να εισαγάγετε πολύ εύκολα το μη κρυπτογραφημένο σας ιδιωτικό κλειδί και τα αρχεία σε φορμά Geth / Mist (κρυπτογραφημένα) απευθείας στο geth / Ethereum Wallet / Mist. Δείτε την ερώτηση Νο 12 παρακάτω. '), _defineProperty(_el$data, 'HELP_8_Desc_4', 'Επιπρόσθετα, η πιθανότητα να πέσει το MyEtherWallet είναι ελάχιστη έως ανύπαρκτη. Δεν μας κοστίζει σχεδόν τίποτα να το διατηρούμε, δεδομένου ότι δεν αποθηκεύουμε καμία πληροφορία. Εάν πάψει να λειτουργεί το όνομα χώρου, το MyEtherWallet εξακολουθεί να είναι και πάντα θα είναι διαθέσιμο δημοσίως στη διεύθυνση [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Μπορείτε να κατεβάσετε το ZIP και να το εκτελέσετε τοπικά. '), _defineProperty(_el$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_el$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_el$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_el$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_el$data, 'HELP_9_Title', '9) Is the «Αποστολή αιθέρα και μαρκών» page offline? '), _defineProperty(_el$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_el$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_el$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_el$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_el$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_el$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_el$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_el$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_el$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_el$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_el$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_el$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_el$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_el$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_el$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_el$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_el$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_el$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_el$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_el$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_el$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_el$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_el$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_el$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_el$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_el$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_el$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_el$data, 'HELP_12_Desc_14', 'Copy Your Private Key (μη κρυπτογραφημένο). '), _defineProperty(_el$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_el$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_el$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_el$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_el$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_el$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_el$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_el$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_el$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_el$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_el$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_el$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_el$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_el$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_el$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_el$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_el$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_el$data, 'HELP_14_Title', '14) Ορισμένοι ιστότοποι τυχαιοποιούν την παραγωγή του ιδιωτικού κλειδιού μέσω κινήσεων του ποντικιού. Το MyEtherWallet.com δεν το κάνει αυτό. Είναι ασφαλής η παραγωγή τυχαίων αριθμών για το MyEtherWallet; '), _defineProperty(_el$data, 'HELP_14_Desc_1', 'Ενώ αυτό το πράγμα με τις κινήσεις του ποντικιού είναι έξυπνο και καταλαβαίνουμε γιατί αρέσει στους περισσότερους ανθρώπους, η πραγματικότητα όμως είναι ότι το window.crypto εξασφαλίζει περισσότερη εντροπία από τις κινήσεις του ποντικιού σας. Δεν είναι ότι οι κινήσεις του ποντικιού δεν είναι ασφαλείς, είναι ότι εμείς (και οι τόνοι πειραμάτων κρυπτογράφησης) πιστεύουμε στο window.crypto. Επιπλέον, το MyEtherWallet.com μπορεί να χρησιμοποιηθεί σε συσκευές αφής. Εδώ είναι μια [συζήτηση μεταξύ ενός θυμωμένου redditor και του Vitalik Buterin σχετικά με τις κινήσεις του ποντικιού έναντι του window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) και εδώ είναι οι [προδιαγραφές w3 του window.crypto](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_el$data, 'HELP_15_Title', '15) Γιατί δεν έχει εμφανιστεί ο λογαριασμός που μόλις δημιούργησα στον εξερευνητή blockchain; (δηλαδή: etherchain, etherscan) '), _defineProperty(_el$data, 'HELP_15_Desc_1', 'Ένας λογαριασμός εμφανίζεται σε έναν εξερευνητή blockchain μόνο όταν ο λογαριασμός έχει δραστηριότητα&mdash;για παράδειγμα, αφού μεταφέρετε κάποιο ποσό Αιθέρα σε αυτόν. '), _defineProperty(_el$data, 'HELP_16_Title', '16) Πώς ελέγχω το υπόλοιπο του λογαριασμού μου; '), _defineProperty(_el$data, 'HELP_16_Desc_1', 'Μπορείτε να χρησιμοποιήσετε έναν εξερευνητή blockchain όπως το [etherscan.io](https://etherscan.io/). Επικολλήστε τη διεύθυνσή σας στη γραμμή αναζήτησης και θα ανασύρει τη διεύθυνση και το ιστορικό συναλλαγών σας. Για παράδειγμα, δείτε πώς φαίνεται ο [λογαριασμός μας για δωρέες](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) στο etherscan.io '), _defineProperty(_el$data, 'HELP_17_Title', '17) Γιατί δεν εμφανίζεται το υπόλοιπό μου όταν ξεκλειδώνω το πορτοφόλι μου; '), _defineProperty(_el$data, 'HELP_17_Desc_1', 'Αυτό πιθανότατα οφείλεται στο γεγονός ότι βρίσκεστε πίσω από κάποιο τείχος προστασίας. Το API που χρησιμοποιούμε για να πάρουμε το υπόλοιπο και να μετατρέψουμε το εν λόγω υπόλοιπο συχνά εμποδίζεται από τείχη προστασίας για διάφορους λόγους. Θα εξακολουθείτε να είστε σε θέση να αποστείλετε συναλλαγές, απλά πρέπει να χρησιμοποιήσετε μια διαφορετική μέθοδο για να δείτε το εν λόγω υπόλοιπο, όπως το etherscan.io '), _defineProperty(_el$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_el$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_el$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_el$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_el$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_el$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_el$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_el$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_el$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_el$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_el$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_el$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_el$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_el$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_el$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_el$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_el$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_el$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_el$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_el$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_el$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_el$data, 'HELP_Sec_Title', 'Ασφάλεια '), _defineProperty(_el$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_el$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_el$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_el$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_el$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_el$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_el$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_el$data, 'HELP_FAQ_Title', 'Περισσότερες χρήσιμες απαντήσεις σε συχνές ερωτήσεις '), _defineProperty(_el$data, 'HELP_Contact_Title', 'Τρόποι για να έρθετε σε επαφή'), _el$data);
module.exports = el;
},{}],109:[function(require,module,exports){
// English
'use strict';
var _en$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var en = function en() {};
en.code = 'en';
en.data = (_en$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_1: 'Incorrect Wallet',
DOMAIN_offer_2: 'The wallet you unlocked does not own this name.',
DOMAIN_offer_3: 'In order to offer this name, please unlock the wallet with address:',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_Bid_Title: 'Place a Bid',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_2: '1) Preparation',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Reveal_Title: 'Reveal your Bid',
ENS_Start_Title: 'Start an Auction',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_en$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_en$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_en$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_en$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_en$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_en$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_en$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_en$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_en$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_en$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_en$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_en$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_en$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_en$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_en$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_en$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_en$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_en$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_en$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_en$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_en$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_en$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_en$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_en$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_en$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_en$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_en$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_en$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_en$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_en$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_en$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_en$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_en$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_en$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_en$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_en$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_en$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_en$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection'), _defineProperty(_en$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/)'), _defineProperty(_en$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox'), _defineProperty(_en$data, 'ADD_Label_1', 'What would you like to do?'), _defineProperty(_en$data, 'ADD_Label_2', 'Create a Nickname'), _defineProperty(_en$data, 'ADD_Label_3', 'Your wallet is encrypted. Good! Please enter the password.'), _defineProperty(_en$data, 'ADD_Label_4', 'Add an Account to Watch'), _defineProperty(_en$data, 'ADD_Label_5', 'Enter the Address'), _defineProperty(_en$data, 'ADD_Label_6', 'Unlock your Wallet'), _defineProperty(_en$data, 'ADD_Label_6_short', 'Unlock'), _defineProperty(_en$data, 'ADD_Label_7', 'Add Account'), _defineProperty(_en$data, 'ADD_Label_8', 'Password (optional):'), _defineProperty(_en$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect.'), _defineProperty(_en$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/)'), _defineProperty(_en$data, 'ADD_Ledger_1', 'Connect your Ledger Wallet'), _defineProperty(_en$data, 'ADD_Ledger_2', 'Open the Ethereum application (or a contract application)'), _defineProperty(_en$data, 'ADD_Ledger_2_Exp', 'Open the Expanse application (or a contract application)'), _defineProperty(_en$data, 'ADD_Ledger_2_Ubq', 'Open the Ubiq application (or a contract application)'), _defineProperty(_en$data, 'ADD_Ledger_3', 'Verify that Browser Support is enabled in Settings'), _defineProperty(_en$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager)'), _defineProperty(_en$data, 'ADD_Ledger_scan', 'Connect to Ledger Wallet'), _defineProperty(_en$data, 'ADD_MetaMask', 'Connect to MetaMask'), _defineProperty(_en$data, 'ADD_Radio_1', 'Generate New Wallet'), _defineProperty(_en$data, 'ADD_Radio_2', 'Select Your Wallet File (Keystore / JSON)'), _defineProperty(_en$data, 'ADD_Radio_2_alt', 'Select Your Wallet File'), _defineProperty(_en$data, 'ADD_Radio_2_short', 'SELECT WALLET FILE...'), _defineProperty(_en$data, 'ADD_Radio_3', 'Paste Your Private Key'), _defineProperty(_en$data, 'ADD_Radio_4', 'Add an Account to Watch'), _defineProperty(_en$data, 'ADD_Radio_5', 'Paste Your Mnemonic'), _defineProperty(_en$data, 'ADD_Radio_5_Path', 'Select HD derivation path'), _defineProperty(_en$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_en$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_en$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_en$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_en$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_en$data, 'ADD_Trezor_scan', 'Connect to TREZOR'), _defineProperty(_en$data, 'ADD_Warning_1', 'You can add any account to "watch" on the wallets tab without uploading a private key. This does ** not ** mean you have access to this wallet, nor can you transfer Ether from it.'), _defineProperty(_en$data, 'BULK_Label_1', 'Number of Wallets To Generate'), _defineProperty(_en$data, 'BULK_Label_2', 'Generate Wallets'), _defineProperty(_en$data, 'BULK_SuccessMsg', 'Success! Your wallets have been generated.'), _defineProperty(_en$data, 'CONTRACT_ByteCode', 'Byte Code'), _defineProperty(_en$data, 'CONTRACT_Interact_CTA', 'Select a function'), _defineProperty(_en$data, 'CONTRACT_Interact_Title', 'Read / Write Contract'), _defineProperty(_en$data, 'CONTRACT_Json', 'ABI / JSON Interface'), _defineProperty(_en$data, 'CONTRACT_Read', 'READ'), _defineProperty(_en$data, 'CONTRACT_Title', 'Contract Address'), _defineProperty(_en$data, 'CONTRACT_Title_2', 'Select Existing Contract'), _defineProperty(_en$data, 'CONTRACT_Write', 'WRITE'), _defineProperty(_en$data, 'CX_error_1', 'You don\'t have any wallets saved. Click ["Add Wallet"](/cx-wallet.html#add-wallet) to add one!'), _defineProperty(_en$data, 'CX_quicksend', 'QuickSend'), _defineProperty(_en$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension'), _defineProperty(_en$data, 'CX_Warning_1', 'Make sure you have **external backups** of any wallets you store here. Many things could happen that would cause you to lose the data in this Chrome Extension, including uninstalling and reinstalling the extension. This extension is a way to easily access your wallets, **not** a way to back them up.'), _defineProperty(_en$data, 'decrypt_Access', 'How would you like to access your wallet?'), _defineProperty(_en$data, 'decrypt_Select', 'Select a Wallet'), _defineProperty(_en$data, 'decrypt_Title', 'Select the format of your private key'), _defineProperty(_en$data, 'DEP_generate', 'Generate Bytecode'), _defineProperty(_en$data, 'DEP_generated', 'Generated Bytecode'), _defineProperty(_en$data, 'DEP_interface', 'Generated Interface'), _defineProperty(_en$data, 'DEP_signtx', 'Sign Transaction'), _defineProperty(_en$data, 'ERROR_0', '(error_01) Please enter a valid amount.'), _defineProperty(_en$data, 'ERROR_1', '(error_02) Your password must be at least 9 characters. Please ensure it is a strong password.'), _defineProperty(_en$data, 'ERROR_2', '(error_03) Sorry! We don\'t recognize this type of wallet file.'), _defineProperty(_en$data, 'ERROR_3', '(error_04) This is not a valid wallet file.'), _defineProperty(_en$data, 'ERROR_4', '(error_05) This unit doesn\'t exists, please use the one of the following units'), _defineProperty(_en$data, 'ERROR_5', '(error_06) Please enter a valid address.'), _defineProperty(_en$data, 'ERROR_6', '(error_07) Please enter a valid password.'), _defineProperty(_en$data, 'ERROR_7', '(error_08) Please enter valid decimals (Must be an integer. Try 0-18.)'), _defineProperty(_en$data, 'ERROR_8', '(error_09) Please enter a valid gas limit (Must be an integer. Try 21000-4000000.)'), _defineProperty(_en$data, 'ERROR_9', '(error_10) Please enter a valid data value (Must be hex.)'), _defineProperty(_en$data, 'ERROR_10', '(error_11) Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_en$data, 'ERROR_11', '(error_12) Please enter a valid nonce (Must be an integer.)'), _defineProperty(_en$data, 'ERROR_12', '(error_13) Invalid signed transaction.'), _defineProperty(_en$data, 'ERROR_13', '(error_14) A wallet with this nickname already exists.'), _defineProperty(_en$data, 'ERROR_14', '(error_15) Wallet not found.'), _defineProperty(_en$data, 'ERROR_15', '(error_16) Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.'), _defineProperty(_en$data, 'ERROR_16', '(error_17) A wallet with this address already exists in storage. Please check your wallets page.'), _defineProperty(_en$data, 'ERROR_17', '(error_18) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_en$data, 'ERROR_18', '(error_19) All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_en$data, 'ERROR_19', '(error_20) Please enter a valid symbol'), _defineProperty(_en$data, 'ERROR_20', '(error_21) Not a valid ERC-20 token'), _defineProperty(_en$data, 'ERROR_21', '(error_22) Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_en$data, 'ERROR_22', '(error_23) Please enter a valid node name'), _defineProperty(_en$data, 'ERROR_23', '(error_24) Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_en$data, 'ERROR_24', '(error_25) Please enter a valid port.'), _defineProperty(_en$data, 'ERROR_25', '(error_26) Please enter a valid chain ID.'), _defineProperty(_en$data, 'ERROR_26', '(error_27) Please enter a valid ABI.'), _defineProperty(_en$data, 'ERROR_27', '(error_28) Minimum amount: 0.01. Max amount:'), _defineProperty(_en$data, 'ERROR_28', '(error_29) You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. '), _defineProperty(_en$data, 'ERROR_29', '(error_30) Please enter a valid user and password.'), _defineProperty(_en$data, 'ERROR_30', '(error_31) Please enter a valid name (7+ characters, limited punctuation)'), _defineProperty(_en$data, 'ERROR_31', '(error_32) Please enter a valid secret phrase.'), _defineProperty(_en$data, 'ERROR_32', '(error_33) Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_en$data, 'ERROR_33', '(error_34) The wallet you have unlocked does not match the owner\'s address.'), _defineProperty(_en$data, 'ERROR_34', '(error_35) The name you are attempting to reveal does not match the name you have entered.'), _defineProperty(_en$data, 'ERROR_35', '(error_36) Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>'), _defineProperty(_en$data, 'ERROR_36', '(error_37) Please enter a valid TX hash'), _defineProperty(_en$data, 'ERROR_37', '(error_38) Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f'), _defineProperty(_en$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_en$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_en$data, 'GETH_Balance', '(geth-01) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_en$data, 'GETH_Cheap', '(geth-02) Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_en$data, 'GETH_GasLimit', '(geth-03) Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_en$data, 'GETH_InsufficientFunds', '(geth-04) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_en$data, 'GETH_IntrinsicGas', '(geth-05) Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_en$data, 'GETH_InvalidSender', '(geth-06) Invalid sender.'), _defineProperty(_en$data, 'GETH_NegativeValue', '(geth-07) Negative value.'), _defineProperty(_en$data, 'GETH_Nonce', "(geth-08) This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_en$data, 'GETH_NonExistentAccount', '(geth-09) Account does not exist or account balance too low'), _defineProperty(_en$data, 'PARITY_AlreadyImported', "(parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_en$data, 'PARITY_GasLimitExceeded', "(parity-02) Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_en$data, 'PARITY_InsufficientBalance', "(parity-03) Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_en$data, 'PARITY_InsufficientGasPrice', "(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_en$data, 'PARITY_InvalidGasLimit', "(parity-05) Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_en$data, 'PARITY_LimitReached', "(parity-06) There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_en$data, 'PARITY_Old', "(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_en$data, 'PARITY_TooCheapToReplace', "(parity-08) TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_en$data, 'FOOTER_1', 'Free, open-source, client-side interface for generating Ethereum wallets &amp; more. Interact with the Ethereum blockchain easily &amp; securely. Double-check the URL ( myetherwallet.com ) before unlocking your wallet.'), _defineProperty(_en$data, 'FOOTER_1b', 'Created by'), _defineProperty(_en$data, 'FOOTER_2', 'Donations greatly appreciated'), _defineProperty(_en$data, 'FOOTER_3', 'Client-side wallet generation by'), _defineProperty(_en$data, 'FOOTER_4', 'Disclaimer'), _defineProperty(_en$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_en$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_en$data, 'GEN_desc', 'If you want to generate multiple wallets, you can do so here'), _defineProperty(_en$data, 'GEN_Help_1', 'Use your'), _defineProperty(_en$data, 'GEN_Help_10', 'Right click & save file as. Filename:'), _defineProperty(_en$data, 'GEN_Help_11', 'Don\'t open this file on your computer'), _defineProperty(_en$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.)'), _defineProperty(_en$data, 'GEN_Help_13', 'How to Back Up Your Keystore File'), _defineProperty(_en$data, 'GEN_Help_14', 'What are these Different Formats?'), _defineProperty(_en$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_en$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_en$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_en$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_en$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_en$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_en$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_en$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_en$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_en$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_en$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_en$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_en$data, 'GEN_Help_8', 'Not Downloading a File?'), _defineProperty(_en$data, 'GEN_Help_9', 'Try using Google Chrome'), _defineProperty(_en$data, 'GEN_Label_1', 'Enter a password'), _defineProperty(_en$data, 'GEN_Label_2', 'Save your `Keystore` File.'), _defineProperty(_en$data, 'GEN_Label_3', 'Save Your Address.'), _defineProperty(_en$data, 'GEN_Label_4', 'Print paper wallet or a QR code.'), _defineProperty(_en$data, 'GEN_Label_5', 'Save Your `Private Key`.'), _defineProperty(_en$data, 'GEN_Placeholder_1', 'Do NOT forget to save this!'), _defineProperty(_en$data, 'GEN_SuccessMsg', 'Success! Your wallet has been generated.'), _defineProperty(_en$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_en$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_en$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet'), _defineProperty(_en$data, 'MEW_Warning_1', 'Always check the URL before accessing your wallet or creating a new wallet. Beware of phishing sites!'), _defineProperty(_en$data, 'MNEM_1', 'Please select the address you would like to interact with.'), _defineProperty(_en$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time.'), _defineProperty(_en$data, 'MNEM_more', 'More Addresses'), _defineProperty(_en$data, 'MNEM_prev', 'Previous Addresses'), _defineProperty(_en$data, 'MSG_date', 'Date'), _defineProperty(_en$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date.'), _defineProperty(_en$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it.'), _defineProperty(_en$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose.'), _defineProperty(_en$data, 'MSG_message', 'Message'), _defineProperty(_en$data, 'MSG_signature', 'Signature'), _defineProperty(_en$data, 'MSG_verify', 'Verify Message'), _defineProperty(_en$data, 'MYWAL_Address', 'Wallet Address'), _defineProperty(_en$data, 'MYWAL_Bal', 'Balance'), _defineProperty(_en$data, 'MYWAL_Content_1', 'Warning! You are about to remove your wallet'), _defineProperty(_en$data, 'MYWAL_Content_2', 'Be sure you have **saved the private key and/or Keystore File and the password** before you remove it.'), _defineProperty(_en$data, 'MYWAL_Content_3', 'If you want to use this wallet with your MyEtherWallet CX in the future, you will need to manually re-add it using the private key/JSON and password.'), _defineProperty(_en$data, 'MYWAL_Edit', 'Edit'), _defineProperty(_en$data, 'MYWAL_Edit_2', 'Edit Wallet'), _defineProperty(_en$data, 'MYWAL_Hide', 'Hide Wallet Info'), _defineProperty(_en$data, 'MYWAL_Name', 'Wallet Name'), _defineProperty(_en$data, 'MYWAL_Nick', 'Wallet Nickname'), _defineProperty(_en$data, 'MYWAL_Remove', 'Remove'), _defineProperty(_en$data, 'MYWAL_RemoveWal', 'Remove Wallet'), _defineProperty(_en$data, 'MYWAL_View', 'View'), _defineProperty(_en$data, 'MYWAL_Viewing', 'Viewing Wallet'), _defineProperty(_en$data, 'MYWAL_WatchOnly', 'Your Watch-Only Accounts'), _defineProperty(_en$data, 'NAV_AddWallet', 'Add Wallet'), _defineProperty(_en$data, 'NAV_BulkGenerate', 'Bulk Generate'), _defineProperty(_en$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_en$data, 'NAV_Contact', 'Contact'), _defineProperty(_en$data, 'NAV_Contracts', 'Contracts'), _defineProperty(_en$data, 'NAV_DeployContract', 'Deploy Contract'), _defineProperty(_en$data, 'NAV_DomainSale', 'DomainSale'), _defineProperty(_en$data, 'NAV_ENS', 'ENS'), _defineProperty(_en$data, 'NAV_GenerateWallet', 'Create New Wallet'), _defineProperty(_en$data, 'NAV_GenerateWallet_alt', 'New Wallet'), _defineProperty(_en$data, 'NAV_Help', 'Help'), _defineProperty(_en$data, 'NAV_InteractContract', 'Interact with Contract'), _defineProperty(_en$data, 'NAV_Multisig', 'Multisig'), _defineProperty(_en$data, 'NAV_MyWallets', 'My Wallets'), _defineProperty(_en$data, 'NAV_Offline', 'Send Offline'), _defineProperty(_en$data, 'NAV_SendEther', 'Send Ether & Tokens'), _defineProperty(_en$data, 'NAV_SendTokens', 'Send Tokens'), _defineProperty(_en$data, 'NAV_SignMsg', 'Sign Message'), _defineProperty(_en$data, 'NAV_Swap', 'Swap'), _defineProperty(_en$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_en$data, 'NAV_ViewWallet', 'View Wallet Info'), _defineProperty(_en$data, 'NAV_YourWallets', 'Your Wallets'), _defineProperty(_en$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_en$data, 'NODE_Name', 'Node Name'), _defineProperty(_en$data, 'NODE_Port', 'Node Port'), _defineProperty(_en$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_en$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_en$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_en$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_en$data, 'OFFLINE_Desc', 'Generating offline transactions can be done in three steps. You will complete steps 1 and 3 on an online computer, and step 2 on an offline/airgapped computer. This ensures your private keys do not touch an internet-connected device.'), _defineProperty(_en$data, 'OFFLINE_Step1_Button', 'Generate Information'), _defineProperty(_en$data, 'OFFLINE_Step1_Label_1', 'From Address'), _defineProperty(_en$data, 'OFFLINE_Step1_Label_2', 'Note: This is the FROM address, not the TO address. Nonce is generated from the originating account. If using an airgapped computer, it would be the address of the cold-storage account.'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_1', 'To Address'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_2', 'Value / Amount to Send'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_3', 'Gas Price'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_3b', 'This was displayed in Step 1 on your online computer.'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_4', 'Gas Limit'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_4b', '21000 is the default gas limit. When you send contracts or add\'l data, this may need to be different. Any unused gas will be returned to you.'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_5', 'Nonce'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_5b', 'This was displayed in Step 1 on your online computer.'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_6', 'Data'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_6b', 'This is optional. Data is often used when you send transactions to contracts.'), _defineProperty(_en$data, 'OFFLINE_Step2_Label_7', 'Enter / Select your Private Key / JSON.'), _defineProperty(_en$data, 'OFFLINE_Step2_Title', 'Step 2: Generate Transaction (Offline Computer)'), _defineProperty(_en$data, 'OFFLINE_Step3_Label_1', 'Paste the signed transaction from Step 2 here and press the "SEND TRANSACTION" button.'), _defineProperty(_en$data, 'OFFLINE_Step3_Title', 'Step 3: Send / Publish Transaction (Online Computer)'), _defineProperty(_en$data, 'OFFLINE_Title', 'Generate & Send Offline Transaction'), _defineProperty(_en$data, 'OFFLLINE_Step1_Title', 'Step 1: Generate Information (Online Computer)'), _defineProperty(_en$data, 'SEND_addr', 'To Address'), _defineProperty(_en$data, 'SEND_amount', 'Amount to Send'), _defineProperty(_en$data, 'SEND_amount_short', 'Amount'), _defineProperty(_en$data, 'SEND_custom', 'Add Custom Token'), _defineProperty(_en$data, 'SEND_gas', 'Gas'), _defineProperty(_en$data, 'SEND_generate', 'Generate Transaction'), _defineProperty(_en$data, 'SEND_raw', 'Raw Transaction'), _defineProperty(_en$data, 'SEND_signed', 'Signed Transaction'), _defineProperty(_en$data, 'SEND_trans', 'Send Transaction'), _defineProperty(_en$data, 'SEND_TransferTotal', 'Send Entire Balance'), _defineProperty(_en$data, 'SENDModal_Content_1', 'You are about to send'), _defineProperty(_en$data, 'SENDModal_Content_2', 'to address'), _defineProperty(_en$data, 'SENDModal_Content_3', 'Are you sure you want to do this?'), _defineProperty(_en$data, 'SENDModal_Content_4', 'NOTE: If you encounter an error, you most likely need to add ether to your account to cover the gas cost of sending tokens. Gas is paid in ether.'), _defineProperty(_en$data, 'SENDModal_No', 'No, get me out of here!'), _defineProperty(_en$data, 'SENDModal_Title', 'Warning!'), _defineProperty(_en$data, 'SENDModal_Yes', 'Yes, I am sure! Make transaction.'), _defineProperty(_en$data, 'sidebar_AccountAddr', 'Account Address'), _defineProperty(_en$data, 'sidebar_AccountBal', 'Account Balance'), _defineProperty(_en$data, 'sidebar_AccountInfo', 'Account Information'), _defineProperty(_en$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_en$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_en$data, 'sidebar_donate', 'Donate'), _defineProperty(_en$data, 'sidebar_donation', 'MyEtherWallet is a free, open-source service dedicated to your privacy and security. The more donations we receive, the more time we spend creating new features, listening to your feedback, and giving you what you want. We are just two people trying to change the world. Help us?'), _defineProperty(_en$data, 'sidebar_Equiv', 'Equivalent Values'), _defineProperty(_en$data, 'sidebar_thanks', 'THANK YOU!!!'), _defineProperty(_en$data, 'sidebar_TokenBal', 'Token Balances'), _defineProperty(_en$data, 'sidebar_TransHistory', 'Transaction History'), _defineProperty(_en$data, 'SUCCESS_1', 'Valid address'), _defineProperty(_en$data, 'SUCCESS_2', 'Wallet successfully decrypted'), _defineProperty(_en$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_en$data, 'SUCCESS_4', 'Your wallet was successfully added'), _defineProperty(_en$data, 'SUCCESS_5', 'File Selected'), _defineProperty(_en$data, 'SUCCESS_6', 'You are successfully connected'), _defineProperty(_en$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_en$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_en$data, 'SWAP_information', "Your Information "), _defineProperty(_en$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_en$data, 'SWAP_init_2', " for "), _defineProperty(_en$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_en$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_en$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_en$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_en$data, 'SWAP_progress_3', "Received! "), _defineProperty(_en$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_en$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_en$data, 'SWAP_rates', "Current Rates "), _defineProperty(_en$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_en$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_en$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_en$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_en$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_en$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_en$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_en$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_en$data, 'TOKEN_Addr', 'Token Contract Address'), _defineProperty(_en$data, 'TOKEN_Dec', 'Decimals'), _defineProperty(_en$data, 'TOKEN_hide', 'Hide Tokens'), _defineProperty(_en$data, 'TOKEN_show', 'Show All Tokens'), _defineProperty(_en$data, 'TOKEN_Symbol', 'Token Symbol'), _defineProperty(_en$data, 'TRANS_advanced', '+Advanced: Add Data'), _defineProperty(_en$data, 'TRANS_data', 'Data'), _defineProperty(_en$data, 'TRANS_desc', 'If you want to send Tokens, please use the "Send Token" page instead.'), _defineProperty(_en$data, 'TRANS_gas', 'Gas Limit'), _defineProperty(_en$data, 'TRANS_sendInfo', 'A standard transaction using 21000 gas will cost 0.000441 ETH. We do not take a transaction fee.'), _defineProperty(_en$data, 'translate_version', '0.5'), _defineProperty(_en$data, 'Translator_Desc', ''), _defineProperty(_en$data, 'TranslatorAddr_1', ''), _defineProperty(_en$data, 'TranslatorAddr_2', ''), _defineProperty(_en$data, 'TranslatorAddr_3', ''), _defineProperty(_en$data, 'TranslatorAddr_4', ''), _defineProperty(_en$data, 'TranslatorAddr_5', ''), _defineProperty(_en$data, 'TranslatorName_1', ''), _defineProperty(_en$data, 'TranslatorName_2', ''), _defineProperty(_en$data, 'TranslatorName_3', ''), _defineProperty(_en$data, 'TranslatorName_4', ''), _defineProperty(_en$data, 'TranslatorName_5', ''), _defineProperty(_en$data, 'tx_Details', 'Transaction Details'), _defineProperty(_en$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_en$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to.'), _defineProperty(_en$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined).'), _defineProperty(_en$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_en$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_en$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_en$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_en$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_en$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_en$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_en$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again.'), _defineProperty(_en$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_en$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_en$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_en$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_en$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_en$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_en$data, 'VIEWWALLET_Subtitle', 'This allows you to download different versions of private keys and re-print your paper wallet. You may want to do this in order to [import your account into Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). If you want to check your balance, we recommend using a blockchain explorer like [etherscan.io](https://etherscan.io/).'), _defineProperty(_en$data, 'VIEWWALLET_Subtitle_Short', 'This allows you to download different versions of private keys and re-print your paper wallet.'), _defineProperty(_en$data, 'VIEWWALLET_SuccessMsg', 'Success! Here are your wallet details.'), _defineProperty(_en$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started.'), _defineProperty(_en$data, 'x_Access', 'Access'), _defineProperty(_en$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere.'), _defineProperty(_en$data, 'x_Address', 'Your Address'), _defineProperty(_en$data, 'x_Cancel', 'Cancel'), _defineProperty(_en$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_en$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_en$data, 'x_CSV', 'CSV file (unencrypted)'), _defineProperty(_en$data, 'x_DigitalBitbox', 'Digital Bitbox'), _defineProperty(_en$data, 'x_Download', 'Download'), _defineProperty(_en$data, 'x_Json', 'JSON File (unencrypted)'), _defineProperty(_en$data, 'x_JsonDesc', 'This is the unencrypted, JSON format of your private key. This means you do not need the password but anyone who finds your JSON can access your wallet & Ether without the password.'), _defineProperty(_en$data, 'x_Keystore', 'Keystore File (UTC / JSON · Recommended · Encrypted)'), _defineProperty(_en$data, 'x_Keystore2', 'Keystore File (UTC / JSON)'), _defineProperty(_en$data, 'x_KeystoreDesc', 'This Keystore file matches the format used by Mist so you can easily import it in the future. It is the recommended file to download and back up.'), _defineProperty(_en$data, 'x_Ledger', 'Ledger Wallet'), _defineProperty(_en$data, 'x_MetaMask', 'MetaMask / Mist'), _defineProperty(_en$data, 'x_Mnemonic', 'Mnemonic Phrase'), _defineProperty(_en$data, 'x_ParityPhrase', 'Parity Phrase'), _defineProperty(_en$data, 'x_Password', 'Password'), _defineProperty(_en$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_en$data, 'x_Print', 'Print Paper Wallet'), _defineProperty(_en$data, 'x_PrintDesc', 'ProTip: If you cannot print this right now, click "Print" and save it as a PDF until you are able to get it printed. Remove it from your computer afterwards!'), _defineProperty(_en$data, 'x_PrintShort', 'Print'), _defineProperty(_en$data, 'x_PrivKey', 'Private Key (unencrypted)'), _defineProperty(_en$data, 'x_PrivKey2', 'Private Key'), _defineProperty(_en$data, 'x_PrivKeyDesc', 'This is the unencrypted text version of your private key, meaning no password is necessary. If someone were to find your unencrypted private key, they could access your wallet without a password. For this reason, encrypted versions are typically recommended.'), _defineProperty(_en$data, 'x_ReadMore', 'Read More'), _defineProperty(_en$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_en$data, 'x_Save', 'Save'), _defineProperty(_en$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_en$data, 'x_Trezor', 'TREZOR'), _defineProperty(_en$data, 'x_TXFee', 'TX Fee'), _defineProperty(_en$data, 'x_TxHash', 'TX Hash'), _defineProperty(_en$data, 'x_TXT', 'TXT file (unencrypted)'), _defineProperty(_en$data, 'x_Wallet', 'Wallet'), _defineProperty(_en$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**.'), _defineProperty(_en$data, 'HELP_0_Desc_2', 'Create a new wallet.'), _defineProperty(_en$data, 'HELP_0_Desc_3', 'Back the wallet up.'), _defineProperty(_en$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information.'), _defineProperty(_en$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet.'), _defineProperty(_en$data, 'HELP_0_Title', '0) I\'m new. What do I do?'), _defineProperty(_en$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer.'), _defineProperty(_en$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer.'), _defineProperty(_en$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction.'), _defineProperty(_en$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price.'), _defineProperty(_en$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send.'), _defineProperty(_en$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1.'), _defineProperty(_en$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1.'), _defineProperty(_en$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you.'), _defineProperty(_en$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format.'), _defineProperty(_en$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet.'), _defineProperty(_en$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button.'), _defineProperty(_en$data, 'HELP_10_Title', '10) How do I make an offline transaction?'), _defineProperty(_en$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+....'), _defineProperty(_en$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts."'), _defineProperty(_en$data, 'HELP_12_Desc_11', 'Using your unencrypted private key...'), _defineProperty(_en$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page.'), _defineProperty(_en$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet.'), _defineProperty(_en$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted).'), _defineProperty(_en$data, 'HELP_12_Desc_15', 'If you are on a Mac'), _defineProperty(_en$data, 'HELP_12_Desc_15b', 'If you are on a PC'), _defineProperty(_en$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key.'), _defineProperty(_en$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text".'), _defineProperty(_en$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog.'), _defineProperty(_en$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt`'), _defineProperty(_en$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page.'), _defineProperty(_en$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it.'), _defineProperty(_en$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt`'), _defineProperty(_en$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts".'), _defineProperty(_en$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key'), _defineProperty(_en$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:`'), _defineProperty(_en$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt`'), _defineProperty(_en$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it.'), _defineProperty(_en$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt`'), _defineProperty(_en$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts".'), _defineProperty(_en$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file.'), _defineProperty(_en$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page.'), _defineProperty(_en$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet.'), _defineProperty(_en$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file.'), _defineProperty(_en$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application.'), _defineProperty(_en$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts"'), _defineProperty(_en$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder.'), _defineProperty(_en$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist?'), _defineProperty(_en$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction.'), _defineProperty(_en$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean?'), _defineProperty(_en$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto).'), _defineProperty(_en$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe?'), _defineProperty(_en$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it.'), _defineProperty(_en$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan)'), _defineProperty(_en$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io'), _defineProperty(_en$data, 'HELP_16_Title', '16) How do I check the balance of my account?'), _defineProperty(_en$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io'), _defineProperty(_en$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet?'), _defineProperty(_en$data, 'HELP_18_Title', '18) Where is my geth wallet file?'), _defineProperty(_en$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored.'), _defineProperty(_en$data, 'HELP_19_Title', '19) Where is my Mist wallet file?'), _defineProperty(_en$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page.'), _defineProperty(_en$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet"'), _defineProperty(_en$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions.'), _defineProperty(_en$data, 'HELP_1_Desc_4', 'Click "GENERATE".'), _defineProperty(_en$data, 'HELP_1_Desc_5', 'Your wallet has now been generated.'), _defineProperty(_en$data, 'HELP_1_Title', '1) How do I create a new wallet?'), _defineProperty(_en$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale.'), _defineProperty(_en$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file?'), _defineProperty(_en$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no.'), _defineProperty(_en$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts.'), _defineProperty(_en$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems.'), _defineProperty(_en$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password.'), _defineProperty(_en$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match.'), _defineProperty(_en$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion.'), _defineProperty(_en$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space.'), _defineProperty(_en$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day.'), _defineProperty(_en$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address?'), _defineProperty(_en$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper.'), _defineProperty(_en$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you.'), _defineProperty(_en$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys'), _defineProperty(_en$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive.'), _defineProperty(_en$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive.'), _defineProperty(_en$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood).'), _defineProperty(_en$data, 'HELP_2a_Title', 'How do I save/backup my wallet?'), _defineProperty(_en$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest).'), _defineProperty(_en$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`.'), _defineProperty(_en$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer.'), _defineProperty(_en$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`.'), _defineProperty(_en$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password.'), _defineProperty(_en$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever.'), _defineProperty(_en$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations.'), _defineProperty(_en$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same.'), _defineProperty(_en$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet?'), _defineProperty(_en$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it.'), _defineProperty(_en$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page.'), _defineProperty(_en$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page.'), _defineProperty(_en$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet.'), _defineProperty(_en$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password.'), _defineProperty(_en$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button.'), _defineProperty(_en$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet.'), _defineProperty(_en$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly.'), _defineProperty(_en$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet?'), _defineProperty(_en$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned.'), _defineProperty(_en$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction.'), _defineProperty(_en$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that.'), _defineProperty(_en$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button.'), _defineProperty(_en$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain.'), _defineProperty(_en$data, 'HELP_4_Desc_2', 'Navigate to the "Send Ether & Tokens" page.'), _defineProperty(_en$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet.'), _defineProperty(_en$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password.'), _defineProperty(_en$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button.'), _defineProperty(_en$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field.'), _defineProperty(_en$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance.'), _defineProperty(_en$data, 'HELP_4_Desc_9', 'Click "Generate Transaction".'), _defineProperty(_en$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another?'), _defineProperty(_en$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Send Ether & Tokens" page.'), _defineProperty(_en$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet.'), _defineProperty(_en$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction."'), _defineProperty(_en$data, 'HELP_4CX_Desc_12', 'Using "Send Ether & Tokens" Page'), _defineProperty(_en$data, 'HELP_4CX_Desc_2', 'QuickSend'), _defineProperty(_en$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon.'), _defineProperty(_en$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button.'), _defineProperty(_en$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from.'), _defineProperty(_en$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field.'), _defineProperty(_en$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance.'), _defineProperty(_en$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction".'), _defineProperty(_en$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct.'), _defineProperty(_en$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX?'), _defineProperty(_en$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page.'), _defineProperty(_en$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer.'), _defineProperty(_en$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact.'), _defineProperty(_en$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo.'), _defineProperty(_en$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally?'), _defineProperty(_en$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it.'), _defineProperty(_en$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right).'), _defineProperty(_en$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left.'), _defineProperty(_en$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page.'), _defineProperty(_en$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button.'), _defineProperty(_en$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select".'), _defineProperty(_en$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar.'), _defineProperty(_en$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store?'), _defineProperty(_en$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token.'), _defineProperty(_en$data, 'HELP_7_Desc_1', 'Navigate to the "Send Ether & Tokens" page.'), _defineProperty(_en$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar.'), _defineProperty(_en$data, 'HELP_7_Desc_11', 'Click "Generate Transaction".'), _defineProperty(_en$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction.'), _defineProperty(_en$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that.'), _defineProperty(_en$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button.'), _defineProperty(_en$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain.'), _defineProperty(_en$data, 'HELP_7_Desc_2', 'Unlock your wallet.'), _defineProperty(_en$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field.'), _defineProperty(_en$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send.'), _defineProperty(_en$data, 'HELP_7_Desc_5', 'Select which token you would like to send.'), _defineProperty(_en$data, 'HELP_7_Desc_6', 'If you do not see the token listed'), _defineProperty(_en$data, 'HELP_7_Desc_7', 'Click "Custom".'), _defineProperty(_en$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist.'), _defineProperty(_en$data, 'HELP_7_Desc_9', 'Click "Save".'), _defineProperty(_en$data, 'HELP_7_Title', '7) How do I send tokens & add custom tokens?'), _defineProperty(_en$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain.'), _defineProperty(_en$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site.'), _defineProperty(_en$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below.'), _defineProperty(_en$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally.'), _defineProperty(_en$data, 'HELP_8_Title', '8) What happens if your site goes down?'), _defineProperty(_en$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer.'), _defineProperty(_en$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets.'), _defineProperty(_en$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above.'), _defineProperty(_en$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears?'), _defineProperty(_en$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times.'), _defineProperty(_en$data, 'HELP_9_Title', '9) Is the "Send Ether & Tokens" page offline?'), _defineProperty(_en$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _defineProperty(_en$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future!'), _defineProperty(_en$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions'), _defineProperty(_en$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**.'), _defineProperty(_en$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain.'), _defineProperty(_en$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer!'), _defineProperty(_en$data, 'HELP_Remind_Title', 'Some reminders'), _defineProperty(_en$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears.'), _defineProperty(_en$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success.'), _defineProperty(_en$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere.'), _defineProperty(_en$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com).'), _defineProperty(_en$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above.'), _defineProperty(_en$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred.'), _defineProperty(_en$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks!'), _defineProperty(_en$data, 'HELP_Sec_Title', 'Security'), _defineProperty(_en$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information?'), _defineProperty(_en$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome.'), _defineProperty(_en$data, 'HELP_SecCX_Desc_3', 'What information is saved?'), _defineProperty(_en$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted.'), _defineProperty(_en$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted?'), _defineProperty(_en$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension.'), _defineProperty(_en$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX'), _defineProperty(_en$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details.'), _en$data);
module.exports = en;
},{}],110:[function(require,module,exports){
// Spanish
'use strict';
var _es$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var es = function es() {};
es.code = 'es';
es.data = (_es$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network',
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_es$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_es$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_es$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_es$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_es$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_es$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_es$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_es$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_es$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_es$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_es$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_es$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_es$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_es$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_es$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_es$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_es$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_es$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_es$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_es$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_es$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_es$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_es$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_es$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_es$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_es$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_es$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_es$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_es$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_es$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_es$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_es$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_es$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_es$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_es$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_es$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_es$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_es$data, 'x_CancelReplaceTx', 'Cancelar o reemplazar transacción'), _defineProperty(_es$data, 'x_CancelTx', 'Cancelar transacción'), _defineProperty(_es$data, 'x_PasswordDesc', 'Esta contraseña * encripta * tu clave privada. Esto no es una semilla para generar tus claves. **Necesitarás esta contraseña + tu clave privada para desbloquear tu cartera.**'), _defineProperty(_es$data, 'x_ReadMore', 'Leer más'), _defineProperty(_es$data, 'x_ReplaceTx', 'Reemplazar transacción'), _defineProperty(_es$data, 'x_TransHash', 'Hash de la transacción'), _defineProperty(_es$data, 'x_TXFee', 'TX Fee'), _defineProperty(_es$data, 'x_TxHash', 'TX Hash'), _defineProperty(_es$data, 'NAV_CheckTxStatus', 'Comprobar estado de transacción'), _defineProperty(_es$data, 'NAV_TxStatus', 'Estado de transacción'), _defineProperty(_es$data, 'tx_Details', 'Detalles de la transacción'), _defineProperty(_es$data, 'tx_Summary', 'En momentos de alto volumen (como por ejemplo durante las ICOs) las transacciones pueden quedarse pendientes durante horas o incluso días. Esta herramienta te proporciona la posibilidad de encontrar y "cancelar" / reemplazar estas transacciones. ** Esto es algo que normalmente no puedes hacer. No se debe confiar en esta herramienta. Solamente funcionará cuando los pools de transacciones estén llenos. [Por favor, lee más sobre esta herramienta aquí.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_es$data, 'tx_notFound', 'Transacción no encontrada'), _defineProperty(_es$data, 'tx_notFound_1', 'Esta transacción no se puede encontrar en el pool de transacciones del nodo al que estás conectado.'), _defineProperty(_es$data, 'tx_notFound_2', 'Si acabas de enviar la transacción, por favor espera 15 segundos y pulsa de nuevo el botón "Comprobar estado de transacción". '), _defineProperty(_es$data, 'tx_notFound_3', 'Podría encontrarse todavía en el pool de transacciones de otro nodo diferente, esperando ser minado.'), _defineProperty(_es$data, 'tx_notFound_4', 'Por favor usa el desplegable en la parte superior derecha y selecciona un nodo ETH diferente (ej. `ETH (Etherscan.io)` o `ETH (Infura.io)` o `ETH (MyEtherWallet)`) y comprueba de nuevo.'), _defineProperty(_es$data, 'tx_foundInPending', 'Transacción pendiente encontrada'), _defineProperty(_es$data, 'tx_foundInPending_1', 'Tu transacción se ha encontrado en el pool de transacciones del nodo al que te encuentras conectado. '), _defineProperty(_es$data, 'tx_foundInPending_2', 'Actualmente está pendiente (esperando ser minada). '), _defineProperty(_es$data, 'tx_foundInPending_3', 'Existe la posibilidad de que puedas "cancelar" o reemplazar esta transacción. Desbloquea tu cartera debajo.'), _defineProperty(_es$data, 'tx_FoundOnChain', 'Transacción encontrada'), _defineProperty(_es$data, 'tx_FoundOnChain_1', 'Tu transacción ha sido minada con éxito y se encuentra en la cadena de bloques.'), _defineProperty(_es$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_es$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_es$data, 'GEN_Help_1', 'Usa tu'), _defineProperty(_es$data, 'GEN_Help_2', 'para acceder a tu cuenta.'), _defineProperty(_es$data, 'GEN_Help_3', 'Tu dispositivo * is * tu cartera.'), _defineProperty(_es$data, 'GEN_Help_4', 'Guías y FAQ'), _defineProperty(_es$data, 'GEN_Help_5', 'Cómo crear una cartera'), _defineProperty(_es$data, 'GEN_Help_6', 'Empezando'), _defineProperty(_es$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_es$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_es$data, 'GEN_Help_9', 'Intenta utilizando Google Chrome '), _defineProperty(_es$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_es$data, 'GEN_Help_11', 'No abras este archivo en tu computadora '), _defineProperty(_es$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_es$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_es$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_es$data, 'GEN_Help_15', 'Evitando la pérdida o robo de tus fondos.'), _defineProperty(_es$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_es$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_es$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_es$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_es$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_es$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_es$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_es$data, 'GEN_Unlock', 'Desbloquea tu cartera para ver tu dirección'), _defineProperty(_es$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_es$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_es$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_es$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_es$data, 'NAV_AddWallet', 'Añadir cartera '), _defineProperty(_es$data, 'NAV_BulkGenerate', 'Generar en masa '), _defineProperty(_es$data, 'NAV_Contact', 'Contacto '), _defineProperty(_es$data, 'NAV_Contracts', 'Contratos '), _defineProperty(_es$data, 'NAV_DeployContract', 'Desplegar contrato '), _defineProperty(_es$data, 'NAV_ENS', 'ENS'), _defineProperty(_es$data, 'NAV_GenerateWallet_alt', 'Nueva cartera '), _defineProperty(_es$data, 'NAV_GenerateWallet', 'Generar cartera '), _defineProperty(_es$data, 'NAV_Help', 'Ayuda '), _defineProperty(_es$data, 'NAV_InteractContract', 'Interactuar con un contrato '), _defineProperty(_es$data, 'NAV_Multisig', 'Multifirma '), _defineProperty(_es$data, 'NAV_MyWallets', 'Mis carteras '), _defineProperty(_es$data, 'NAV_Offline', 'Enviar sin conexión '), _defineProperty(_es$data, 'NAV_SendEther', 'Enviar ether y tokens '), _defineProperty(_es$data, 'NAV_SendTokens', 'Enviar tokens '), _defineProperty(_es$data, 'NAV_SignMsg', 'Firmar mensaje '), _defineProperty(_es$data, 'NAV_Swap', 'Intercambiar '), _defineProperty(_es$data, 'NAV_ViewWallet', 'Ver información de las carteras '), _defineProperty(_es$data, 'NAV_YourWallets', 'Tus carteras '), _defineProperty(_es$data, 'x_Access', 'Access '), _defineProperty(_es$data, 'x_AddessDesc', 'Tu dirección también se conoce como tu `número de cuenta` o tu `clave pública`. Es lo que compartes con otras personas para que te puedan enviar Ether o tokens. Busca el icono de colores de tu dirección. Asegúrate de que coincide con tu cartera de papel y siempre que introduzcas tu dirección en cualquier sitio. Puedes pensar en esto como tu "número de cuenta" o tu "clave pública". Es lo que le das a la gente para que te puedan enviar ether. Ese icono es una forma fácil de reconocer tu dirección. '), _defineProperty(_es$data, 'x_Address', 'Tu dirección '), _defineProperty(_es$data, 'x_Cancel', 'Cancelar '), _defineProperty(_es$data, 'x_CSV', 'Archivo CSV (sin encriptar) '), _defineProperty(_es$data, 'x_Download', 'Descargar '), _defineProperty(_es$data, 'x_Json', 'Archivo JSON (sin encriptar) '), _defineProperty(_es$data, 'x_JsonDesc', 'Esta es tu clave privada sin encriptar en formato JSON. Esto significa que no necesitas una contraseña, pero cualquiera que encuentre tu archivo JSON puede acceder a tu cartera y ether sin necesitar ninguna contraseña. '), _defineProperty(_es$data, 'x_Keystore', 'Archivo Keystore (UTC / JSON · Recomendado · Encriptado) '), _defineProperty(_es$data, 'x_Keystore2', 'Archivo Keystore (UTC / JSON) '), _defineProperty(_es$data, 'x_KeystoreDesc', 'Este archivo Keystore/JSON concuerda con el formato usado por Mist para una fácil importación en el futuro. Es el archivo recomendado para descargar y guardar como copia de seguridad. '), _defineProperty(_es$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_es$data, 'x_Mnemonic', 'Frase mnemotécnica '), _defineProperty(_es$data, 'x_ParityPhrase', 'Frase de Parity '), _defineProperty(_es$data, 'x_Password', 'Contraseña '), _defineProperty(_es$data, 'x_Print', 'Imprimir Cartera de Papel '), _defineProperty(_es$data, 'x_PrintDesc', 'Consejo: Hax clic en imprimir y guardar esto como un PDF, ¡incluso si no tienes impresora! '), _defineProperty(_es$data, 'x_PrintShort', 'Imprimir '), _defineProperty(_es$data, 'x_PrivKey', 'Clave Privada (sin encriptar) '), _defineProperty(_es$data, 'x_PrivKey2', 'Clave Privada '), _defineProperty(_es$data, 'x_PrivKeyDesc', 'Esta es la versión en texto sin encriptar de tu clave privada, lo cual quiere decir que no hace falta contraseña. Si alguien encontrase tu clave privada sin encriptar, podrían acceder a tu cartera sin necesitar contraseña. Por esta razón, normalmente se recomiendan las versiones encriptadas. '), _defineProperty(_es$data, 'x_Save', 'Guardar '), _defineProperty(_es$data, 'x_TXT', 'Archivo TXT (sin encriptar) '), _defineProperty(_es$data, 'x_Wallet', 'Cartera '), _defineProperty(_es$data, 'MEW_Warning_1', 'Comprueba siempre la URL antes de acceder a tu cartera o crear una cartera nueva. ¡Ten cuidado con los sitios falsos (phishing)! '), _defineProperty(_es$data, 'CX_Warning_1', 'Asegúrate de tener **copias de seguridad externas** de cualquier cartera que almacenes aquí. Pueden ocurrir muchas cosas que te hagan perder los datos de esta extensión de Chrome; esto incluye desinstalar y volver a instalar la extensión. Esta extensión es un modo de acceder fácilmente a tus carteras, **no** una manera de respaldarlas. '), _defineProperty(_es$data, 'MEW_Tagline', 'Cartera Ether JavaScript de código abierto ejecutado en el cliente '), _defineProperty(_es$data, 'CX_Tagline', 'Cartera Ether JavaScript de código abierto ejecutado en el cliente extensión Chrome '), _defineProperty(_es$data, 'FOOTER_1', 'Una herramienta de código abierto JavaScript que se ejecuta en el lado del cliente, para generar carteras y enviar transacciones Ethereum. '), _defineProperty(_es$data, 'FOOTER_1b', 'Creado por '), _defineProperty(_es$data, 'FOOTER_2', 'Se agradecen las donaciones: '), _defineProperty(_es$data, 'FOOTER_3', 'Generación de carteras en el cliente por '), _defineProperty(_es$data, 'FOOTER_4', 'Renuncia de responsabilidad '), _defineProperty(_es$data, 'sidebar_AccountInfo', 'Información de la cuenta '), _defineProperty(_es$data, 'sidebar_AccountAddr', 'Dirección de la cuenta '), _defineProperty(_es$data, 'sidebar_AccountBal', 'Saldo de la cuenta '), _defineProperty(_es$data, 'sidebar_TokenBal', 'Saldos de tokens '), _defineProperty(_es$data, 'sidebar_Equiv', 'Valores equivalentes '), _defineProperty(_es$data, 'sidebar_TransHistory', 'Historial de transacciones '), _defineProperty(_es$data, 'sidebar_donation', 'MyEtherWallet es un servicio gratuito y de código abierto dedicado a tu privacidad y seguridad. Cuantas más donaciones recibimos, más tiempo dedicamos creando nuevas características, escuchando vuestros comentarios y proporcionando lo que queréis. Sólo somos dos personas intentando cambiar el mundo. ¿Nos ayudas? '), _defineProperty(_es$data, 'sidebar_donate', 'Donar '), _defineProperty(_es$data, 'sidebar_thanks', '¡¡¡GRACIAS!!! '), _defineProperty(_es$data, 'sidebar_DisplayOnTrezor', 'Mostrar dirección en TREZOR'), _defineProperty(_es$data, 'sidebar_DisplayOnLedger', 'Mostrar dirección en Ledger'), _defineProperty(_es$data, 'decrypt_Access', '¿Cómo te gustaría acceder a tu cartera? '), _defineProperty(_es$data, 'decrypt_Title', 'Elige el formato de tu clave privada: '), _defineProperty(_es$data, 'decrypt_Select', 'Elige una cartera: '), _defineProperty(_es$data, 'ADD_Label_1', '¿Qué quieres hacer? '), _defineProperty(_es$data, 'ADD_Radio_1', 'Generar nueva cartera '), _defineProperty(_es$data, 'ADD_Radio_2', 'Elige tu archivo de cartera (Keystore / JSON) '), _defineProperty(_es$data, 'ADD_Radio_2_alt', 'Elige tu archivo de cartera '), _defineProperty(_es$data, 'ADD_Radio_2_short', 'ELIGE ARCHIVO DE CARTERA... '), _defineProperty(_es$data, 'ADD_Radio_3', 'Pega o escribe tu clave privada '), _defineProperty(_es$data, 'ADD_Radio_4', 'Añade una cuenta para supervisar '), _defineProperty(_es$data, 'ADD_Radio_5', 'Pega o escribe tu mnemotécnico '), _defineProperty(_es$data, 'ADD_Radio_5_Path', 'Elige la ruta de derivación HD '), _defineProperty(_es$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_es$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_es$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_es$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_es$data, 'ADD_Radio_5_PathCustom', 'Personalizado'), _defineProperty(_es$data, 'ADD_Label_2', 'Crear un alias: '), _defineProperty(_es$data, 'ADD_Label_3', 'Tu cartera está encriptada. Introduce tu contraseña '), _defineProperty(_es$data, 'ADD_Label_4', 'Añade una cuenta para supervisar '), _defineProperty(_es$data, 'ADD_Warning_1', 'Puedes añadir una cuenta para supervisar en la pestaña de carteras sin cargar una clave privada. Esto ** no ** significa que tengas acceso a la cartera, ni puedes transferir ether desde ésta. '), _defineProperty(_es$data, 'ADD_Label_5', 'Introduce la dirección '), _defineProperty(_es$data, 'ADD_Label_6', 'Desbloquea tu cartera '), _defineProperty(_es$data, 'ADD_Label_6_short', 'Desbloquear '), _defineProperty(_es$data, 'ADD_Label_7', 'Añadir cuenta '), _defineProperty(_es$data, 'ADD_Label_8', 'Contraseña (opcional): '), _defineProperty(_es$data, 'GEN_desc', 'Si quieres generar varias carteras, puedes hacerlo aquí '), _defineProperty(_es$data, 'GEN_Label_1', 'Introduce una contraseña fuerte (mínimo 9 caracteres) '), _defineProperty(_es$data, 'GEN_Placeholder_1', '¡NO olvides guardar esto! '), _defineProperty(_es$data, 'GEN_SuccessMsg', '¡Enhorabuena! Se ha generado tu cartera. '), _defineProperty(_es$data, 'GEN_Label_2', 'Guarda tu Keystore. No olvides tu contraseña. '), _defineProperty(_es$data, 'GEN_Label_3', 'Guarda tu dirección. '), _defineProperty(_es$data, 'GEN_Label_4', 'Opcional: Imprime tu cartera en papel o guarda una versión en código QR. '), _defineProperty(_es$data, 'BULK_Label_1', 'Cantidad de carteras a generar '), _defineProperty(_es$data, 'BULK_Label_2', 'Generar carteras '), _defineProperty(_es$data, 'BULK_SuccessMsg', '¡Enhorabuena! Se han generado tus carteras. '), _defineProperty(_es$data, 'SEND_addr', 'Dirección de destino '), _defineProperty(_es$data, 'SEND_amount', 'Cantidad a enviar '), _defineProperty(_es$data, 'SEND_amount_short', 'Cantidad '), _defineProperty(_es$data, 'SEND_custom', 'Personalizado '), _defineProperty(_es$data, 'SEND_gas', 'Gas '), _defineProperty(_es$data, 'SEND_TransferTotal', 'Enviar todo el saldo '), _defineProperty(_es$data, 'SEND_generate', 'Generar transacción '), _defineProperty(_es$data, 'SEND_raw', 'Transacción en bruto '), _defineProperty(_es$data, 'SEND_signed', 'Transacción firmada '), _defineProperty(_es$data, 'SEND_trans', 'Enviar transacción '), _defineProperty(_es$data, 'SEND_custom', 'Añadir token personalizado '), _defineProperty(_es$data, 'SENDModal_Title', '¡Atención! '), _defineProperty(_es$data, 'SENDModal_Content_1', 'Vas a enviar '), _defineProperty(_es$data, 'SENDModal_Content_2', 'a la dirección '), _defineProperty(_es$data, 'SENDModal_Content_3', '¿Estás seguro de que quieres hacer esto? '), _defineProperty(_es$data, 'SENDModal_Content_4', 'NOTA: Si recibes un error, es muy probable que necesites añadir ether a tu cuenta para cubrir el coste en gas de enviar tokens. Gas se paga en ether. '), _defineProperty(_es$data, 'SENDModal_No', 'No, sácame de aquí. '), _defineProperty(_es$data, 'SENDModal_Yes', 'Sí, estoy seguro. Hacer la transacción. '), _defineProperty(_es$data, 'TOKEN_Addr', 'Token Contact Dirección '), _defineProperty(_es$data, 'TOKEN_Symbol', 'Símbolo del token '), _defineProperty(_es$data, 'TOKEN_Dec', 'Decimales '), _defineProperty(_es$data, 'TOKEN_hide', 'Ocultar tokens '), _defineProperty(_es$data, 'TOKEN_show', 'Mostrar todos los tokens '), _defineProperty(_es$data, 'TRANS_desc', 'Si quieres enviar tokens, utiliza la página "Enviar tokens" en lugar de esta. '), _defineProperty(_es$data, 'TRANS_warning', 'Si utilizas las funciones "Sólo ETH" o "Sólo ETC" estás enviando a través de un contrato. Algunos servicios tienen problemas aceptando estas transacciones. Leer más. '), _defineProperty(_es$data, 'TRANS_advanced', '+Avanzado: Añadir datos '), _defineProperty(_es$data, 'TRANS_data', 'Datos '), _defineProperty(_es$data, 'TRANS_gas', 'Límite de gas '), _defineProperty(_es$data, 'TRANS_sendInfo', 'Una transacción estándar que utiliza 21000 gas cuesta 0.000441 ETH. Utilizamos un precio de gas de 0.000000021 ETH, ligeramente por encima del mínimo, para asegurarnos de que se mina con rapidez. Nosotros no recibimos ninguna comisión por la transacción. '), _defineProperty(_es$data, 'TRANSModal_Title', 'Transacciones "Sólo ETH" y "Sólo ETC" '), _defineProperty(_es$data, 'TRANSModal_Content_0', 'Una nota sobre las distintas transacciones y servicios: '), _defineProperty(_es$data, 'TRANSModal_Content_1', '**ETH (transacción estándar): ** Esto genera una transacción predeterminada directamente de una dirección a otra. Utiliza gas predeterminado de 21000. Es probable que cualquier transacción de ETH enviada mediante este método se reproduzca (replay) en la cadena ETC. '), _defineProperty(_es$data, 'TRANSModal_Content_2', '**Sólo ETH: ** Esto envía a través del [contrato de protección contra replay de Timon Rapp (según recomienda VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) de modo que envías solamente en la cadena **ETH**. '), _defineProperty(_es$data, 'TRANSModal_Content_3', '**Sólo ETC: ** Esto envía a través del [contrato de protección contra replay de Timon Rapp (según recomienda VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) de modo que envías solamente en la cadena **ETC**. '), _defineProperty(_es$data, 'TRANSModal_Content_4', '**Coinbase y ShapeShift: ** Envía solamente utilizando transacción estándar. Si envías utilizando los contratos "Sólo ETH" o "Sólo ETC", será necesario que contactes con su equipo de soporte para que añadan manualmente el saldo o te lo devuelvan. [También puedes probar la herramienta de "split" de Shapeshift.](https://split.shapeshift.io/) '), _defineProperty(_es$data, 'TRANSModal_Content_5', '**Kraken y Poloniex:** No se conocen problemas. Usa cualquiera. '), _defineProperty(_es$data, 'TRANSModal_Yes', 'Bien, ahora lo entiendo. '), _defineProperty(_es$data, 'TRANSModal_No', 'Estoy más confundido. Ayuda, por favor. '), _defineProperty(_es$data, 'OFFLINE_Title', 'Generar y enviar transacción sin conexión '), _defineProperty(_es$data, 'OFFLINE_Desc', 'Se puede generar transacciones sin conexión en tres pasos. Debes hacer los pasos 1 y 3 en un equipo online y el paso 2 en un equipo sin conexión y aislado. Esto asegura que tus claves privadas no estén en contacto con un equipo con conexión a Internet. '), _defineProperty(_es$data, 'OFFLLINE_Step1_Title', 'Paso 1: generar información (equipo conexión) '), _defineProperty(_es$data, 'OFFLINE_Step1_Button', 'Generar información '), _defineProperty(_es$data, 'OFFLINE_Step1_Label_1', 'Dirección de origen '), _defineProperty(_es$data, 'OFFLINE_Step1_Label_2', 'Nota: Esta es la dirección de origen, no la dirección de destino. El nonce se genera desde la cuenta que origina la transacción. Si se está utilizando un equipo aislado, será la dirección de la cuenta de almacenaje en frío. '), _defineProperty(_es$data, 'OFFLINE_Step2_Title', 'Paso 2: generar transacción (equipo sin conexión) '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_1', 'Dirección de destino '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_2', 'Valor / Cantidad a enviar '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_3', 'Precio del gas '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_3b', 'Esto se ha mostrado en el Paso 1 en tu equipo con conexión. '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_4', 'Límite de gas '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_4b', '21000 es el límite de gas predeterminado. Cuando envías contratos o datos adicionales, puede que esto necesite ser diferente. El gas no utilizado se te devolverá. '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_5b', 'Esto se indicó en el Paso 1 en tu equipo con conexión. '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_6', 'Datos '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_6b', 'Opcional. Los datos se utilizan habitualmente al enviar transacciones a contratos. '), _defineProperty(_es$data, 'OFFLINE_Step2_Label_7', 'Introduce / elige tu Clave Privada / JSON. '), _defineProperty(_es$data, 'OFFLINE_Step3_Title', 'Paso 3: Enviar / Publicar transacción (con conexión) '), _defineProperty(_es$data, 'OFFLINE_Step3_Label_1', 'Pega aquí la transacción firmada del paso 2 y pulsa el botón "ENVIAR TRANSACCIÓN". '), _defineProperty(_es$data, 'DEP_generate', 'Generar Bytecode '), _defineProperty(_es$data, 'DEP_generated', 'Bytecode generado '), _defineProperty(_es$data, 'DEP_signtx', 'Firmar transacción '), _defineProperty(_es$data, 'DEP_interface', 'Interfaz generada '), _defineProperty(_es$data, 'MYWAL_Nick', 'Alias de cartera '), _defineProperty(_es$data, 'MYWAL_Address', 'Dirección de cartera '), _defineProperty(_es$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_es$data, 'MYWAL_Edit', 'Editar '), _defineProperty(_es$data, 'MYWAL_View', 'Ver '), _defineProperty(_es$data, 'MYWAL_Remove', 'Eliminar '), _defineProperty(_es$data, 'MYWAL_RemoveWal', 'Eliminar cartera: '), _defineProperty(_es$data, 'MYWAL_WatchOnly', 'Tus cuentas de sólo visualización '), _defineProperty(_es$data, 'MYWAL_Viewing', 'Viendo cartera '), _defineProperty(_es$data, 'MYWAL_Hide', 'Ocultar información de cartera '), _defineProperty(_es$data, 'MYWAL_Edit_2', 'Editar cartera '), _defineProperty(_es$data, 'MYWAL_Name', 'Nombre de la cartera '), _defineProperty(_es$data, 'MYWAL_Content_1', '¡Atención! Estás a punto de eliminar tu cartera '), _defineProperty(_es$data, 'MYWAL_Content_2', 'Asegúrate de haber **guardado tu clave privada y/o archivo almacén de clave y la contraseña** antes de eliminarlo. '), _defineProperty(_es$data, 'MYWAL_Content_3', 'Si en el futuro quieres utilizar esta cartera con MyEtherWallet CX, tendrás que volver a añadirla manualmente utilizando Clave Privada/JSON y contraseña. '), _defineProperty(_es$data, 'VIEWWALLET_Subtitle', 'Esto te permite descargar múltiples versiones de claves privadas e imprimir de nuevo tu cartera en papel. Puede que te interese hacer esto para [importar tu cuenta en Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Si quieres comprobar tu saldo, recomendamos utilizar un explorador de blockchain como [etherscan.io](https://etherscan.io/). '), _defineProperty(_es$data, 'VIEWWALLET_Subtitle_Short', 'Esto te permite descargar múltiples versiones de claves privadas e imprimir de nuevo tu cartera en papel. '), _defineProperty(_es$data, 'VIEWWALLET_SuccessMsg', '¡Enhorabuena! Estos son los detalles de tu cartera. '), _defineProperty(_es$data, 'VIEWWALLET_ShowPrivKey', '(mostrar)'), _defineProperty(_es$data, 'VIEWWALLET_HidePrivKey', '(ocultar)'), _defineProperty(_es$data, 'CX_error_1', 'No tienes ninguna cartera guardada. ¡Haz clic en ["Añadir cartera"](/cx-wallet.html#add-wallet) para añadir una! '), _defineProperty(_es$data, 'CX_quicksend', 'Enviar '), _defineProperty(_es$data, 'NODE_Title', 'Configurar nodo personalizado'), _defineProperty(_es$data, 'NODE_Subtitle', 'Para conectar a un nodo local...'), _defineProperty(_es$data, 'NODE_Warning', 'Tu nodo debe ser HTTPS para poder conectar a él desde MyEtherWallet.com. Para conectarte a cualquier nodo, puedes [descargar el repositorio de MyEtherWallet y ejecutarlo localmente](https://github.com/kvhnuke/etherwallet/releases/latest). También puedes conseguir un certificado SSL gratuito a través de [Let\'s Encrypt](https://letsencrypt.org/)'), _defineProperty(_es$data, 'NODE_Name', 'Nombre del nodo'), _defineProperty(_es$data, 'NODE_Port', 'Puerto del nodo'), _defineProperty(_es$data, 'NODE_CTA', 'Guardar y usar nodo personalizado'), _defineProperty(_es$data, 'CONTRACT_Title', 'Dirección del contrato '), _defineProperty(_es$data, 'CONTRACT_Title_2', 'Seleccionar contrato existente '), _defineProperty(_es$data, 'CONTRACT_Json', 'Interfaz ABI / JSON '), _defineProperty(_es$data, 'CONTRACT_Interact_Title', 'Leer/escribir contrato '), _defineProperty(_es$data, 'CONTRACT_Interact_CTA', 'Seleccionar una función '), _defineProperty(_es$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_es$data, 'CONTRACT_Read', 'LEER '), _defineProperty(_es$data, 'CONTRACT_Write', 'ESCRIBIR '), _defineProperty(_es$data, 'SWAP_rates', "Tipos de cambio actuales "), _defineProperty(_es$data, 'SWAP_init_1', "Quiero cambiar mis "), _defineProperty(_es$data, 'SWAP_init_2', " por "), _defineProperty(_es$data, 'SWAP_init_CTA', "Continuar"), _defineProperty(_es$data, 'SWAP_information', "Tu información "), _defineProperty(_es$data, 'SWAP_send_amt', "Cantidad a enviar "), _defineProperty(_es$data, 'SWAP_rec_amt', "Cantidad a recibir "), _defineProperty(_es$data, 'SWAP_your_rate', "Tu tipo de cambio "), _defineProperty(_es$data, 'SWAP_rec_add', "Tu dirección de destino "), _defineProperty(_es$data, 'SWAP_start_CTA', "Iniciar intercambio "), _defineProperty(_es$data, 'SWAP_ref_num', "Tu número de referencia "), _defineProperty(_es$data, 'SWAP_time', "Tiempo restante para enviar "), _defineProperty(_es$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_es$data, 'SWAP_progress_1', "Pedido iniciado "), _defineProperty(_es$data, 'SWAP_progress_2', "Esperando recibir tus "), _defineProperty(_es$data, 'SWAP_progress_3', "¡Recibido! "), _defineProperty(_es$data, 'SWAP_progress_4', "Enviando tu {{orderResult.output.currency}} "), _defineProperty(_es$data, 'SWAP_progress_5', "Pedido completado "), _defineProperty(_es$data, 'SWAP_order_CTA', "Por favor, envía "), _defineProperty(_es$data, 'SWAP_unlock', "Desbloquea tu cartera para enviar ETH o tokens directamente desde esta página. "), _defineProperty(_es$data, 'MSG_message', 'Mensaje '), _defineProperty(_es$data, 'MSG_date', 'Fecha '), _defineProperty(_es$data, 'MSG_signature', 'Firma '), _defineProperty(_es$data, 'MSG_verify', 'Verificar mensaje '), _defineProperty(_es$data, 'MSG_info1', 'Incluye la fecha actual para que la firma no se pueda volver a utilizar en otra fecha. '), _defineProperty(_es$data, 'MSG_info2', 'Incluye tu apodo y dónde utilizas ese apodo para que otra persona no lo pueda utilizar. '), _defineProperty(_es$data, 'MSG_info3', 'Incluye una razón específica para el mensaje para que no se pueda volver a utilizar con otra finalidad. '), _defineProperty(_es$data, 'MNEM_1', 'Selecciona la dirección con la que deseas interactuar. '), _defineProperty(_es$data, 'MNEM_2', 'Tu mnemotécnico HD único proporciona acceso a una serie de carteras o direcciones. Por favor, elige la dirección con la que quieres interactuar ahora. '), _defineProperty(_es$data, 'MNEM_more', 'Más direcciones '), _defineProperty(_es$data, 'MNEM_prev', 'Direcciones anteriores '), _defineProperty(_es$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_es$data, 'ADD_Ledger_1', 'Conecta tu Ledger Wallet '), _defineProperty(_es$data, 'ADD_Ledger_2', 'Inicia la aplicacin Ethereum (o una aplicación de contrato) '), _defineProperty(_es$data, 'ADD_Ledger_2_Exp', 'Inicia la aplicacin Expanse (o una aplicación de contrato) '), _defineProperty(_es$data, 'ADD_Ledger_2_Ubq', 'Inicia la aplicacin Ubiq (o una aplicación de contrato) '), _defineProperty(_es$data, 'ADD_Ledger_3', 'Comprueba que "Browser Support" está activado en "Settings" '), _defineProperty(_es$data, 'ADD_Ledger_4', 'Si no encuentras la opción "Browser Support" en "Settings", asegúrate de tener instalado el [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_es$data, 'ADD_Ledger_0a', 'Volver a abrir MyEtherWallet en una conexión segura (SSL) '), _defineProperty(_es$data, 'ADD_Ledger_0b', 'Volver a abrir MyEtherWallet usando [Chrome](https://www.google.com/chrome/browser/desktop/) u [Opera](https://www.opera.com/) '), _defineProperty(_es$data, 'ADD_Ledger_scan', 'Conectar a Ledger Wallet '), _defineProperty(_es$data, 'ADD_MetaMask', 'Connectar a MetaMask '), _defineProperty(_es$data, 'x_Trezor', 'TREZOR '), _defineProperty(_es$data, 'ADD_Trezor_scan', 'Conectar a TREZOR '), _defineProperty(_es$data, 'ADD_Trezor_select', 'Esto es una semilla TREZOR '), _defineProperty(_es$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_es$data, 'ADD_DigitalBitbox_0a', 'Volver a abrir MyEtherWallet en una conexión segura (SSL) '), _defineProperty(_es$data, 'ADD_DigitalBitbox_0b', 'Volver a abrir MyEtherWallet usando [Chrome](https://www.google.com/chrome/browser/desktop/) u [Opera](https://www.opera.com/) '), _defineProperty(_es$data, 'ADD_DigitalBitbox_scan', 'Conectar a Digital Bitbox '), _defineProperty(_es$data, 'ERROR_0', '(error_01) Introduce una cantidad válida. Please enter a valid amount.'), _defineProperty(_es$data, 'ERROR_1', '(error_02) Tu contraseña debe tener al menos 9 caracteres. Por favor utiliza una contraseña fuerte. Your password must be at least 9 characters. Please ensure it is a strong password.'), _defineProperty(_es$data, 'ERROR_2', '(error_03) Lo sentimos. No reconocemos este tipo de archivo de cartera. Sorry! We don\'t recognize this type of wallet file.'), _defineProperty(_es$data, 'ERROR_3', '(error_04) Este no es un archivo de cartera válido. This is not a valid wallet file.'), _defineProperty(_es$data, 'ERROR_4', '(error_05) Esta unidad no existe. Por favor utiliza una de las siguientes unidades This unit doesn\'t exists, please use the one of the following units'), _defineProperty(_es$data, 'ERROR_5', '(error_06) Introduce una Dirección válida. Please enter a valid address.'), _defineProperty(_es$data, 'ERROR_6', '(error_07) Introduce una Contraseña válida. Please enter a valid password.'), _defineProperty(_es$data, 'ERROR_7', '(error_08) Introduce una Cantidad válida. (Must be integer. Try 0-18.) Please enter valid decimals (Must be an integer. Try 0-18.)'), _defineProperty(_es$data, 'ERROR_8', '(error_09) Introduce un Límite de gas válido. (Must be integer. Try 21000-4000000.) Please enter a valid gas limit (Must be an integer. Try 21000-4000000.)'), _defineProperty(_es$data, 'ERROR_9', '(error_10) Introduce un Valor de datos válido. (Must be hex.) Please enter a valid data value (Must be hex.)'), _defineProperty(_es$data, 'ERROR_10', '(error_11) Introduce una Cantidad de gas válida. (Must be integer. Try 20 GWEI / 20000000000 WEI.) Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_es$data, 'ERROR_11', '(error_12) Introduce un Nonce válido. (Must be integer.) Please enter a valid nonce (Must be an integer.)'), _defineProperty(_es$data, 'ERROR_12', '(error_13) Introduce una Transacción firmada válida. Invalid signed transaction.'), _defineProperty(_es$data, 'ERROR_13', '(error_14) Ya existe una cartera con este alias. A wallet with this nickname already exists.'), _defineProperty(_es$data, 'ERROR_14', '(error_15) Cartera no encontrada. Wallet not found.'), _defineProperty(_es$data, 'ERROR_15', '(error_16) No parece que exista todavía una propuesta con este ID o hay un error al leer esta propuesta. Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.'), _defineProperty(_es$data, 'ERROR_16', '(error_17) Ya hay almacenada una cartera con esta dirección. Por favor comprueba la página de carteras. A wallet with this address already exists in storage. Please check your wallets page.'), _defineProperty(_es$data, 'ERROR_17', '(error_18) Fondos no suficientes para gas * precio + valor. Es necesario tener al menos 0.01 ether en tu cuenta para cubrir el coste del gas. Añade algo de ether e inténtalo de nuevo. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_es$data, 'ERROR_18', '(error_19) Sería necesario utilizar todo el gas en esta transacción. Esto significa que ya has votado en esta propuesta o que el periodo de debate ha concluido. All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_es$data, 'ERROR_19', '(error_20) Introduce un Símbolo válido Please enter a valid symbol'), _defineProperty(_es$data, 'ERROR_20', '(error_21) No es un token ERC-20 válido Not a valid ERC-20 token'), _defineProperty(_es$data, 'ERROR_21', '(error_22) No se ha podido estimar el gas. No hay suficientes fondos en la cuenta, o el contrato de destino ha devuelto un error. Puedes ajustar el gas manualmente y continuar. Puede que el mensaje de error al enviar contenga más información. Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_es$data, 'ERROR_22', '(error_23) Introduce un nombre de nodo válido Please enter a valid node name'), _defineProperty(_es$data, 'ERROR_23', '(error_24) Introduce una URL válida. Si estás en HTTPS, tu URL debe ser HTTPS Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_es$data, 'ERROR_24', '(error_25) Introduce un puerto válido Please enter a valid port.'), _defineProperty(_es$data, 'ERROR_25', '(error_26) Introduce un chain ID válido Please enter a valid chain ID.'), _defineProperty(_es$data, 'ERROR_26', '(error_27) Introduce un ABI válido Please enter a valid ABI.'), _defineProperty(_es$data, 'ERROR_27', '(error_28) Cantidad mínima 0.01 Minimum amount: 0.01. Max amount:'), _defineProperty(_es$data, 'ERROR_28', '(error_29) **Necesitas tu archivo Keystore/JSON y la contraseña** (o clave privada) para acceder a esta cartera en el futuro. Por favor ¡guárdala y respáldala externamente! No hay modo de recuperar una cartera si no la guardas. Lee la [página de ayuda](https://www.myetherwallet.com/#help) para instrucciones. You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. '), _defineProperty(_es$data, 'ERROR_29', '(error_30) Introduce un user & password válido. Please enter a valid user and password.'), _defineProperty(_es$data, 'ERROR_30', '(error_31) Introduce un name válido (7+ characters, limited punctuation) Please enter a valid name (7+ characters, limited punctuation)'), _defineProperty(_es$data, 'ERROR_31', '(error_32) Introduce un secret phrase válido. Please enter a valid secret phrase.'), _defineProperty(_es$data, 'ERROR_32', '(error_33) Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_es$data, 'ERROR_33', '(error_34) The wallet you have unlocked does not match the owner\'s address. The wallet you have unlocked does not match the owner\'s address.'), _defineProperty(_es$data, 'ERROR_34', '(error_35) The name you are attempting to reveal does not match the name you have entered. The name you are attempting to reveal does not match the name you have entered.'), _defineProperty(_es$data, 'ERROR_35', '(error_36) Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>'), _defineProperty(_es$data, 'ERROR_36', '(error_37) Enter valid TX hashPlease enter a valid TX hash'), _defineProperty(_es$data, 'ERROR_37', '(error_38) Enter valid hex string (0-9, a-f)Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f'), _defineProperty(_es$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_es$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_es$data, 'GETH_Balance', '(geth-01) Saldo insuficiente. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_es$data, 'GETH_Cheap', '(geth-02) Precio de gas demasiado bajo para aceptación. Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_es$data, 'GETH_GasLimit', '(geth-03) Sobrepasa el límite de gas del bloque. Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_es$data, 'GETH_InsufficientFunds', '(geth-04) Fondos no suficientes para gas * precio + valor. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_es$data, 'GETH_IntrinsicGas', '(geth-05) Gas intrínseco demasiado bajo. Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_es$data, 'GETH_InvalidSender', '(geth-06) Remitente no válido. Invalid sender.'), _defineProperty(_es$data, 'GETH_NegativeValue', '(geth-07) Valor negativo. Negative value.'), _defineProperty(_es$data, 'GETH_Nonce', "(geth-08) Nonce demasiado bajo. This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_es$data, 'GETH_NonExistentAccount', '(geth-09) La cuenta no existe o tiene un saldo insuficiente. Account does not exist or account balance too low'), _defineProperty(_es$data, 'PARITY_AlreadyImported', "(parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_es$data, 'PARITY_GasLimitExceeded', "(parity-02) Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_es$data, 'PARITY_InsufficientBalance', "(parity-03) Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_es$data, 'PARITY_InsufficientGasPrice', "(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_es$data, 'PARITY_InvalidGasLimit', "(parity-05) Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_es$data, 'PARITY_LimitReached', "(parity-06) There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_es$data, 'PARITY_Old', "(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_es$data, 'PARITY_TooCheapToReplace', "(parity-08) TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_es$data, 'SUCCESS_1', 'Dirección válida '), _defineProperty(_es$data, 'SUCCESS_2', 'Cartera descifrada con éxito '), _defineProperty(_es$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_es$data, 'SUCCESS_4', 'Se ha añadido tu cartera '), _defineProperty(_es$data, 'SUCCESS_5', 'Archivo seleccionado '), _defineProperty(_es$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_es$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_es$data, 'WARN_Send_Link', 'Has llegado aquí a través de un enlace que ya tiene rellenados la dirección, cantidad, gas, campos de datos o el tipo de transacción (modo de envío). Puedes cambiar cualquier parámetro antes de enviar. Desbloquea tu cartera para comenzar. '), _defineProperty(_es$data, 'translate_version', '0.3 '), _defineProperty(_es$data, 'Translator_Desc', 'Gracias a nuestros traductores '), _defineProperty(_es$data, 'TranslatorName_1', 'Ignacio Fernández del Álamo · '), _defineProperty(_es$data, 'TranslatorAddr_1', ''), _defineProperty(_es$data, 'TranslatorName_2', 'Carlos Lizarraga Rodrigo '), _defineProperty(_es$data, 'TranslatorAddr_2', ''), _defineProperty(_es$data, 'TranslatorName_3', ''), _defineProperty(_es$data, 'TranslatorAddr_3', ''), _defineProperty(_es$data, 'TranslatorName_4', ''), _defineProperty(_es$data, 'TranslatorAddr_4', ''), _defineProperty(_es$data, 'TranslatorName_5', ''), _defineProperty(_es$data, 'TranslatorAddr_5', ''), _defineProperty(_es$data, 'HELP_Warning', 'Si creaste una cartera -o- descargaste el repositorio antes del **31 de diciembre de 2015**, por favor comprueba tus carteras y descarga una nueva versión del repositorio. Haz clic para más información. '), _defineProperty(_es$data, 'HELP_Desc', '¿Echas algo en falta? ¿Tienes alguna otra pregunta? [Contacta con nosotros](mailto:support@myetherwallet.com) y no solamente contestaremos tu pregunta, sino que mejoraremos esta página para que sea más útil en el futuro. '), _defineProperty(_es$data, 'HELP_Remind_Title', 'Algunos recordatorios '), _defineProperty(_es$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com y MyEtherWallet CX, así como algunas de las librerías JavaScript que utilizamos están en desarrollo activo.** Aunque hemos testeado ampliamente y decenas de miles de carteras han sido creadas exitosamente por personas en todo el planeta, siempre existe la remota posibilidad de que ocurra algo inesperado que haga que se pierdan tus ETH. Por favor no inviertas más de lo que estés dispuesto a perder y, por favor, sé cuidadoso. Si algo ocurriera, lo lamentamos, pero **no somos responsables del Ether perdido**. '), _defineProperty(_es$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com y MyEtherWallet CX no son "carteras web". No estás creando una cuenta ni nos estás entregando tus Ether para que los guardemos. Toda tu información nunca abandona tu equipo o tu navegador. Te facilitamos que puedas crear, guardar y acceder a tu información e interactuar con la blockchain. '), _defineProperty(_es$data, 'HELP_Remind_Desc_3', 'Si no guardas tu clave privada y contraseña, no hay modo alguno de recuperar el acceso a tu cartera o a los fondos que ésta contiene. ¡Haz copias de seguridad en múltiples ubicaciones físicas, no solamente en tu equipo! '), _defineProperty(_es$data, 'HELP_0_Title', '0) Soy nuevo. ¿Qué hago? '), _defineProperty(_es$data, 'HELP_0_Desc_1', 'MyEtherWallet te permite generar nuevas carteras para poder almacenar tu Ether por tu cuenta en lugar de en una casa de cambio. Este proceso tiene lugar por completo en tu equipo, no en nuestros servidores. Por lo tanto, cuando generes una nueva cartera, **eres responsable de hacer una copia de seguridad**. '), _defineProperty(_es$data, 'HELP_0_Desc_2', 'Crear una nueva cartera. '), _defineProperty(_es$data, 'HELP_0_Desc_3', 'Hacer una copia de seguridad de la cartera. '), _defineProperty(_es$data, 'HELP_0_Desc_4', 'Comprobar que tienes acceso a esta nueva cartera y has guardado correctamente toda la información necesaria. '), _defineProperty(_es$data, 'HELP_0_Desc_5', 'Transferir Ether a la nueva cartera. '), _defineProperty(_es$data, 'HELP_1_Title', '1) ¿Cómo creo una nueva cartera? '), _defineProperty(_es$data, 'HELP_1_Desc_1', 'Ir a la página "Generar cartera". '), _defineProperty(_es$data, 'HELP_1_Desc_2', 'Ir a la página "Añadir cartera" y seleccionar "Generar nueva cartera" '), _defineProperty(_es$data, 'HELP_1_Desc_3', 'Introducir una contraseña fuerte. Si crees que puedes olvidarla, guárdala en un lugar seguro. Necesitarás esta contraseña para enviar transacciones. '), _defineProperty(_es$data, 'HELP_1_Desc_4', 'Haz clic en "GENERAR". '), _defineProperty(_es$data, 'HELP_1_Desc_5', 'Ahora se ha generado tu cartera. '), _defineProperty(_es$data, 'HELP_2a_Title', '¿Cómo guardo/respaldo mi cartera? '), _defineProperty(_es$data, 'HELP_2a_Desc_1', 'Deberías siempre respaldar tu cartera externamente y en varias ubicaciones físicas (como una unidad USB o en una hoja de papel). '), _defineProperty(_es$data, 'HELP_2a_Desc_2', 'Guardar la dirección. Puedes mantenerla en privado o compartirla con otras personas. De ese modo, otras personas te podrán enviar ether. '), _defineProperty(_es$data, 'HELP_2a_Desc_3', 'Guarda las versiones de tu clave privada. No la compartas con nadie. ¡Tu clave privada es necesaria cuando quieras tener acceso a tu ether para enviarlo! Hay tres tipos de claves privadas: '), _defineProperty(_es$data, 'HELP_2a_Desc_4', 'Pon tu dirección, las versiones de la clave privada y la versión PDF de tu cartera en papel en una carpeta. Guárdala en tu equipo y en una unidad USB. '), _defineProperty(_es$data, 'HELP_2a_Desc_5', 'Imprime la cartera si dispones de impresora. En caso contrario, escribe tu clave privada y tu dirección en una hoja de papel. Almacénalas en un lugar seguro y separado de tu equipo y de la unidad USB. '), _defineProperty(_es$data, 'HELP_2a_Desc_6', 'Recuerda, debes evitar la pérdida de las claves y la contraseña frente a una pérdida o fallo en tu unidad de disco duro, unidad USB u hoja de papel. Debes tener en cuenta también la posibilidad de pérdida o daño en una zona amplia (piensa en un incendio o una inundación). '), _defineProperty(_es$data, 'HELP_2b_Title', '2b) ¿Cómo almaceno con seguridad/sin conexión/en frío con MyEtherWallet? '), _defineProperty(_es$data, 'HELP_2b_Desc_1', 'Ve a nuestro github: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_es$data, 'HELP_2b_Desc_2', 'Haz clic en `etherwallet-vX.X.X.X.zip` en la parte inferior. '), _defineProperty(_es$data, 'HELP_2b_Desc_3', 'Mueve el ZIP a un equipo aislado de internet (airgapped). '), _defineProperty(_es$data, 'HELP_2b_Desc_4', 'Descomprímelo y haz doble clic en `index.html`. '), _defineProperty(_es$data, 'HELP_2b_Desc_5', 'Genera una cartera con una contraseña fuerte. '), _defineProperty(_es$data, 'HELP_2b_Desc_6', 'Guarda la dirección. Guarda versiones de la clave privaa. Guarda la contraseña si crees que es posible que no la recuerdes siempre en el futuro.. '), _defineProperty(_es$data, 'HELP_2b_Desc_7', 'Almacena los papeles / USBs en múltiples ubicaciones separadas físicamente. '), _defineProperty(_es$data, 'HELP_2b_Desc_8', 'Ve a la página "Ver Información de las Carteras" y teclea to clave privada / contraseña para asegurarte de que son correctos y puedes acceder a tu cartera. Comprueba que la dirección que has escrito coincide. '), _defineProperty(_es$data, 'HELP_3_Title', '3) ¿Cómo verifico que tengo acceso a mi nueva cartera? '), _defineProperty(_es$data, 'HELP_3_Desc_1', '**Antes de enviar ether a tu nueva cartera,** deberías asegurarte de que tienes acceso a ésta. '), _defineProperty(_es$data, 'HELP_3_Desc_2', 'Ve a la página "Ver Información de las Carteras". '), _defineProperty(_es$data, 'HELP_3_Desc_3', 'Ve a la página "Ver Información de las Carteras" de MyEtherWallet.com. '), _defineProperty(_es$data, 'HELP_3_Desc_4', 'Selecciona tu archivo de cartera -o- tu clave privada y desloquea tu cartera. '), _defineProperty(_es$data, 'HELP_3_Desc_5', 'Si la cartera está cifrada aparecerá automáticamente una caja de texto. Introduce la contraseña. '), _defineProperty(_es$data, 'HELP_3_Desc_6', 'Haz clic en el botón "Desbloquear cartera". '), _defineProperty(_es$data, 'HELP_3_Desc_7', 'Debería mostrarse la información de tu cartera. Puedes encontrar la dirección de tu cuenta al lado de un icono circular de colores. Este icono es una representación visual de tu dirección. Asegúrate de que esta dirección coincide con la dirección que has guardado en tu archivo de texto y con la que está en tu cartera de papel. '), _defineProperty(_es$data, 'HELP_3_Desc_8', 'Si planeas guardar una cantidad elevada de ether, te recomendamos que primero envíes una cantidad pequeña de ether desde tu nueva cartera antes de ingresar una cantidad elevada. Envía 0.001 ether a tu nueva cartera, accede a tu cartera, envía los 0.001 ether desde tu cartera a otra dirección y asegúrate de que todo funciona bien. '), _defineProperty(_es$data, 'HELP_4_Title', '4) ¿Cómo envío ether de una cartera a otra? '), _defineProperty(_es$data, 'HELP_4_Desc_1', 'Si planeas mover una gran cantidad de ether, deberías probar primero a enviar una pequeña cantidad a tu cartera para asegurarte de que todo funciona según lo esperado. '), _defineProperty(_es$data, 'HELP_4_Desc_2', 'Ve a la página "Enviar Ether y Tokens". '), _defineProperty(_es$data, 'HELP_4_Desc_3', 'Selecciona tu archivo de cartera -o- tu clave privada y desbloquea tu cartera. '), _defineProperty(_es$data, 'HELP_4_Desc_4', 'Si la cartera está cifrada aparecerá automáticamente una caja de texto. Introduce la contraseña. '), _defineProperty(_es$data, 'HELP_4_Desc_5', 'Haz clic en el botón "Desbloquear cartera". '), _defineProperty(_es$data, 'HELP_4_Desc_6', 'Introduce la dirección a la que deseas enviar ether en el campo "Dirección de destino:". '), _defineProperty(_es$data, 'HELP_4_Desc_7', 'Introduce la cantidad que deseas enviar. También puedes hacer clic en "Enviar todo el saldo" si quieres enviar todo el saldo de la cartera. '), _defineProperty(_es$data, 'HELP_4_Desc_9', 'Haz clic en "Generar transacción". '), _defineProperty(_es$data, 'HELP_4_Desc_10', 'Aparecerán dos campos más. Esto es tu navegador generando la transacción. '), _defineProperty(_es$data, 'HELP_4_Desc_11', 'Haz clic en el botón azul "Enviar transacción" que está inmediatamente debajo. '), _defineProperty(_es$data, 'HELP_4_Desc_12', 'Aparecerá un cuadro emergente. Verifica que la cantidad y la dirección a la que estás enviando son correctos. Entonces, haz clic en el botón "Sí, estoy seguro. Hacer la transacción.". '), _defineProperty(_es$data, 'HELP_4_Desc_13', 'Se enviará la transacción y se mostrará el ID de transacción. Puedes hacer clic en el ID de transacción para verla en la cadena de bloques. '), _defineProperty(_es$data, 'HELP_4CX_Title', '4) ¿Cómo envío ether utilizando MyEtherWallet CX? '), _defineProperty(_es$data, 'HELP_4CX_Desc_1', 'Antes de nada, necesitas añadir una cartera. Una vez hecho, tienes dos opciones: la función "Enviar" del icono de la extensión de Chrome o la página "Enviar Ether y Tokens". '), _defineProperty(_es$data, 'HELP_4CX_Desc_2', 'Envío: '), _defineProperty(_es$data, 'HELP_4CX_Desc_3', 'Haz clic en el icono de la extensión de Chrome. '), _defineProperty(_es$data, 'HELP_4CX_Desc_4', 'Haz clic en el botón Click the "Enviar" button. '), _defineProperty(_es$data, 'HELP_4CX_Desc_5', 'Elige la cartera desde la que quieres enviar. '), _defineProperty(_es$data, 'HELP_4CX_Desc_6', 'Introduce la dirección a la que deseas enviar en el campo "Dirección de destino:". '), _defineProperty(_es$data, 'HELP_4CX_Desc_7', 'Introduce la cantidad que deseas enviar. También puedes hacer clic en "Enviar todo el saldo" si quieres enviar todo el saldo de la cartera. '), _defineProperty(_es$data, 'HELP_4CX_Desc_8', 'Haz clic en "Enviar transacción". '), _defineProperty(_es$data, 'HELP_4CX_Desc_9', 'Comprueba que la dirección y la cantidad que estás enviando son correctos. '), _defineProperty(_es$data, 'HELP_4CX_Desc_10', 'Introduce la contraseña para la cartera. '), _defineProperty(_es$data, 'HELP_4CX_Desc_11', 'Haz clic en "Enviar transacción". '), _defineProperty(_es$data, 'HELP_4CX_Desc_12', 'Utilizando la página "Enviar Ether y Tokens" '), _defineProperty(_es$data, 'HELP_5_Title', '5) ¿Cómo ejecuto MyEtherWallet.com sin conexión/localmente? '), _defineProperty(_es$data, 'HELP_5_Desc_1', 'Puedes ejecutar MyEtherWallet.com en tu equipo en lugar de desde los servidores de GitHub. Puedes generar una cartera totalmente sin conexión y enviar transacciones desde la página "Transacción sin conexión". '), _defineProperty(_es$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_es$data, 'HELP_5_Desc_8', 'Por si no tienes costumbre, es necesario guardar la carpeta completa para ejecutar la página web, no solamente `index.html`. No modifiques ni muevas nada dentro de la carpeta. Si estás guardando una copia del repositorio MyEtherWallet para el futuro, recomendamos guardar únicamente el fichero ZIP para poder estar seguro de que el contenido permanezca intacto. '), _defineProperty(_es$data, 'HELP_5_Desc_9', 'Debido a que estamos constantemente actualizando MyEtherWallet.com, recomendamos que actualices periódicamente tu versión guardada del repositorio. '), _defineProperty(_es$data, 'HELP_5CX_Title', '5) ¿Cómo puedo instalar esta extensión desde el repositorio en lugar de desde la Chrome Store? '), _defineProperty(_es$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_es$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_es$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_es$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_es$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_es$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_es$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_es$data, 'HELP_7_Title', '7) ¿Cómo envío tokens y añado tokens personalizados? '), _defineProperty(_es$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_es$data, 'HELP_7_Desc_1', 'Navigate to the "Enviar ether y tokens" page. '), _defineProperty(_es$data, 'HELP_7_Desc_2', 'Desbloquea tu cartera. '), _defineProperty(_es$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_es$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_es$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_es$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_es$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_es$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_es$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_es$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_es$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_es$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_es$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_es$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_es$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_es$data, 'HELP_8_Title', '8) ¿Qué ocurre si vuestro sitio web deja de funcionar? '), _defineProperty(_es$data, 'HELP_8_Desc_1', 'MyEtherWallet no es una cartera web. No tienes un login y nunca se graba nada en nuestros servidores. You don\'t have a login and nothing ever gets saved to our servers. Simplemente es una interfaz que te permite interactuar con la cadena de bloques. '), _defineProperty(_es$data, 'HELP_8_Desc_2', 'Si MyEtherWallet.com desapareciera, tendrías que encontrar otra manera de poder hacer lo que haces con nosotros (como por ejemplo obtener geth o Ethereum Wallet / Mist). Pero no necesitarías retirar tus ether de MyEtherWallet porque no están en MyEtherWallet. Están en la cartera que hayas generado a través de nuestro sitio. '), _defineProperty(_es$data, 'HELP_8_Desc_3', 'Puedes importar tu clave privada sin cifrar y tus archivos en formato Geth/Mist (cifrados) directamente en geth / Ethereum Wallet / Mist con mucha facilidad actualmente. Ver más abajo la pregunta #12. '), _defineProperty(_es$data, 'HELP_8_Desc_4', 'Además, la probabilidad de que cerremos MyEtherWallet es casi nula. No nos cuesta prácticamente nada mantenerlo ya que no almacenamos ninguna información. Si borramos el dominio, continúa estando disponible y siempre lo estará en [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Puedes descargar desde ahí el archivo ZIP y ejecutarlo localmente. '), _defineProperty(_es$data, 'HELP_8CX_Title', '8) ¿Qué ocurre si MyEtherWallet CX desaparece? '), _defineProperty(_es$data, 'HELP_8CX_Desc_1', 'En primer lugar, los datos se guardan en tu equipo, no en nuestros servidores. Sabemos que puede parecer confuso, pero si miras nuestra extensión de Chrome, NO estás mirando a algo almacenado en nuestros servidores en alguna parte - todo se guarda en tu equipo. '), _defineProperty(_es$data, 'HELP_8CX_Desc_2', 'Dicho esto, es **muy importante** que respaldes toda tu información para todas las nuevas carteras generadas con MyEtherWallet CX. De este modo, si algo le ocurre a MyEtherWallet CX o a tu equipo, seguirás teniendo toda la información necesaria para poder acceder a tus ether. Ver la pregunta #2a sobre cómo respaldar tus carteras. '), _defineProperty(_es$data, 'HELP_8CX_Desc_3', 'Si por algún motivo MyEtherWallet CX desaparece de Chrome Store, puedes encontrar el código fuente en Github y cargarlo manualmente. Ver #5 más arriba. '), _defineProperty(_es$data, 'HELP_9_Title', '9) Is the "Enviar ether y tokens" page offline? '), _defineProperty(_es$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_es$data, 'HELP_10_Title', '10) ¿Cómo hago una transacción sin conexión? '), _defineProperty(_es$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_es$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_es$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_es$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_es$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_es$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_es$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_es$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_es$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_es$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_es$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click "Enviar Ether y Tokens". This will broadcast your transaction. '), _defineProperty(_es$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_es$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_es$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_es$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_es$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_es$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_es$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_es$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_es$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_es$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_es$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_es$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_es$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_es$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_es$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_es$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_es$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_es$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_es$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_es$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_es$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_es$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_es$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_es$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_es$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_es$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_es$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_es$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_es$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_es$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_es$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_es$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_es$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_es$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_es$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_es$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_es$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_es$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your account and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_es$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_es$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_es$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_es$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_es$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_es$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_es$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_es$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own account? '), _defineProperty(_es$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_es$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_es$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_es$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_es$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_es$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_es$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_es$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_es$data, 'HELP_SecCX_Title', 'Seguridad - MyEtherWallet CX '), _defineProperty(_es$data, 'HELP_SecCX_Desc_1', '¿Dónde está guardando mi información esta extensión? '), _defineProperty(_es$data, 'HELP_SecCX_Desc_2', 'La información que guardas en esta extensión de Chrome se guarda por medio de [chrome.storage](http://chrome.storage/). - este es el mismo lugar en el que se guardan tus contraseñas cuando guardas tus contraseñas en Chrome. '), _defineProperty(_es$data, 'HELP_SecCX_Desc_3', '¿Qué información se guarda? '), _defineProperty(_es$data, 'HELP_SecCX_Desc_4', 'La dirección, alias y clave privada se guardan en chrome.storage. La clave privada se cifra utilizando la contraseña que introdujiste al añadir la cartra. El alias y la dirección de la cartera no están cifrados. '), _defineProperty(_es$data, 'HELP_SecCX_Desc_5', '¿Por qué no se cifran el alias y la dirección de la cartera? '), _defineProperty(_es$data, 'HELP_SecCX_Desc_6', 'Si cifráramos estos ítems, sería necesario que introduzcas una contraseña cada vez que quisieras comprobar el saldo de tu cuenta o vizualizar los alias. Si esto te preocupa, te recomendamos que utilices MyEtherWallet.com en lugar de esta extensión de Chrome. '), _defineProperty(_es$data, 'HELP_Sec_Title', 'Seguridad '), _defineProperty(_es$data, 'HELP_Sec_Desc_1', 'Si una de tus primeras preguntas es "¿Por qué debería confiar en estas personas?, se trata de algo bueno. Esperamos que lo que sigue te sirva de ayuda para disminuir tus preocupaciones. '), _defineProperty(_es$data, 'HELP_Sec_Desc_2', 'Hemos estado funcionando desde agosto de 2015. Si buscas ["myetherwallet" en reddit](https://www.reddit.com/search?q=myetherwallet), puedes encontrar numerosas personas que nos utilizan con gran éxito. '), _defineProperty(_es$data, 'HELP_Sec_Desc_3', 'No vamos a quitarte tu dinero ni a robar tus claves privadas. No hay código malicioso en este sitio. De hecho, las páginas "Generar Cartera" se ejecutan por completo en el cliente. Esto significa que todo el código se ejecuta en ** tu ordenador** y nunca se graba o se transmite a ningún lugar. '), _defineProperty(_es$data, 'HELP_Sec_Desc_4', 'Comprueba la URL -- Este sitio se sirve a través de GitHub y puedes ver el código fuente aquí: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) a [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_es$data, 'HELP_Sec_Desc_5', 'Para generar carteras, puedes descargar el [código fuente](https://github.com/kvhnuke/etherwallet/releases/latest). Ver #5 más arriba. '), _defineProperty(_es$data, 'HELP_Sec_Desc_6', 'Haz una prueba y observa qué actividad de red ocurre. La manera más fácil de hacer esto es hacer clic con el botón derecho en la página y hacer clic en "inspeccionar elemento". Ve a la pestaña "Red". Genera una cartera de prueba. Verás que no hay actividad de red. Puede que veas algo que aparece como data:image/gif y data:image/png. Se trata de los códigos QR generándose en tu ordenador y por tu ordenador. No se ha transferido ni un solo byte. '), _defineProperty(_es$data, 'HELP_Sec_Desc_8', 'Si no te encuentras cómodo utilizando esta herramienta, no la utilices bajo ningún concepto. Hemos creado esta herramienta como una manera útil para que la gente pueda generar carteras y hacer transacciones sin tener que utilizar la línea de comandos o ejecutar un nodo completo. De nuevo, por favor contáctanos si tienes inquietudes y responderemos lo más pronto posible. ¡Gracias! '), _defineProperty(_es$data, 'HELP_FAQ_Title', 'Más respuestas útiles a preguntas frecuentes '), _defineProperty(_es$data, 'HELP_Contact_Title', 'Maneras de contactar con nosotros'), _es$data);
module.exports = es;
},{}],111:[function(require,module,exports){
// Farsi / Persian Last sync with en.js : commit f025c496254b8ce69660b682f90ec3dc5a12caa8
'use strict';
var _fa$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var fa = function fa() {};
fa.code = 'fa';
fa.data = (_fa$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_fa$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_fa$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_fa$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_fa$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_fa$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_fa$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_fa$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_fa$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_fa$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_fa$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_fa$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_fa$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_fa$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_fa$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_fa$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_fa$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_fa$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_fa$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_fa$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_fa$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_fa$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_fa$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_fa$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_fa$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_fa$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_fa$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_fa$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_fa$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_fa$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_fa$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_fa$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_fa$data, 'NAV_AddWallet', 'اضافه کردن کیف پول '), _defineProperty(_fa$data, 'NAV_BulkGenerate', 'ساخت جمعی '), _defineProperty(_fa$data, 'NAV_Contact', 'مخاطب '), _defineProperty(_fa$data, 'NAV_Contracts', 'قراردادها '), _defineProperty(_fa$data, 'NAV_DeployContract', 'ایجاد قرارداد '), _defineProperty(_fa$data, 'NAV_ENS', 'ENS '), _defineProperty(_fa$data, 'NAV_GenerateWallet', 'ساخت کیف پول '), _defineProperty(_fa$data, 'NAV_Help', 'کمک '), _defineProperty(_fa$data, 'NAV_InteractContract', 'ارتباط با قرارداد '), _defineProperty(_fa$data, 'NAV_Multisig', 'چند امضایی '), _defineProperty(_fa$data, 'NAV_MyWallets', 'کیف پول های من '), _defineProperty(_fa$data, 'NAV_Offline', 'ارسال بصورت آفلاین '), _defineProperty(_fa$data, 'NAV_SendEther', 'ارسال اتر و توکن '), _defineProperty(_fa$data, 'NAV_SendTokens', 'ارسال توکن '), _defineProperty(_fa$data, 'NAV_Swap', ' یا مبادله '), _defineProperty(_fa$data, 'NAV_ViewWallet', 'مشاهده اطلاعات کیف پول '), _defineProperty(_fa$data, 'NAV_YourWallets', 'کیف پول های شما '), _defineProperty(_fa$data, 'x_AddessDesc', 'ممکن است این را با عنوان "" شماره حساب"" یا ""کلید عمومی"" بشناسید. این چیزی ست که برای افراد دیگر می فرستید تا بتوانند برای شما اتر بفرستند. این آیکون راه آسان تری ست که بتوانید آدرس خود را بشناسید. '), _defineProperty(_fa$data, 'x_Address', 'آدرس شما '), _defineProperty(_fa$data, 'x_Cancel', 'لغو '), _defineProperty(_fa$data, 'x_CSV', 'فایل CSV (رمزنگاری نشده) '), _defineProperty(_fa$data, 'x_Download', 'دانلود '), _defineProperty(_fa$data, 'x_Json', 'فایل JASON (رمزنگاری نشده) '), _defineProperty(_fa$data, 'x_JsonDesc', 'این مدل رمزنگاری نشده JASON از کلید خصوصی شماست. این بدان معناست که به رمزعبور احتیاج ندارید اما هر کس که به فایل JASON شما دسترسی داشته باشد می تواند به کیف پول و اترهای شما بدون رمزعبور دسترسی داشته باشد. '), _defineProperty(_fa$data, 'x_Keystore', 'فایل Keystore (UTC / JSON · Recommended · Encrypted) '), _defineProperty(_fa$data, 'x_Keystore2', 'فایل Keystore (UTC / JSON) '), _defineProperty(_fa$data, 'x_KeystoreDesc', 'این فایل Keystore با فرمت استفاده شده توسط Mist همخوانی دارد، در نتیجه می توانید به راحتی در آینده آن را منتقل کنید. این فایل پیشنهادی برای دانلود و ذخیره بعنوان نسخه پشتیبان است. '), _defineProperty(_fa$data, 'x_Mnemonic', 'x_Mnemonic'), _defineProperty(_fa$data, 'x_ParityPhrase', 'x_ParityPhrase'), _defineProperty(_fa$data, 'x_Password', 'رمز عبور '), _defineProperty(_fa$data, 'x_Print', 'پرینت از کیف پول کاغذی '), _defineProperty(_fa$data, 'x_PrintDesc', 'گزینه پرینت را بزنید و آن را با فرمت PDF ذخیره کنید. حتی اگر پرینتر ندارید! '), _defineProperty(_fa$data, 'x_PrintShort', 'پرینت '), _defineProperty(_fa$data, 'x_PrivKey', 'کلید خصوصی (رمزنگاری نشده) '), _defineProperty(_fa$data, 'x_PrivKey2', 'کلید خصوصی '), _defineProperty(_fa$data, 'x_PrivKeyDesc', 'این مدل رمزنگاری نشده کلید خصوصی شماست و بدان معناست که رمزعبوری لازم نیست. اگر فردی بتواند به کلید خصوصی رمزنگاری نشده شما دست پیدا کند، بدون نیاز به رمزعبور می تواند به کیف پول شما دسترسی داشته باشد. به همین خاطر نسخه های رمزنگاری شده بیشتر توصیه می شود. '), _defineProperty(_fa$data, 'x_Save', 'ذخیره '), _defineProperty(_fa$data, 'x_TXT', 'فایل TXT (رمزنگاری نشده) '), _defineProperty(_fa$data, 'x_Wallet', 'کیف پول '), _defineProperty(_fa$data, 'CX_Tagline', 'افزونه Chrome Extension از کیف پول اتر که بصورت متن باز و در سمت کاربر است'), _defineProperty(_fa$data, 'CX_Warning_1', 'مطمئن شوید که از کیف پول هایی که در اینجا نگهداری می کنید نسخه پشتیبان بیرونی دارید. اتفاقات مختلفی می تواند باعث شود تا اطلاعاتی که در این Chrome Extension دارید از دست برود، مثلا uninstall کردن و دوباره install کردن افزونه. این افزونه راهی ست برای دسترسی راحت تر به کیف پولتان، نه راهی برای داشتن نسخه پشتیبان از آن. '), _defineProperty(_fa$data, 'MEW_Tagline', 'MEW_Tagline'), _defineProperty(_fa$data, 'MEW_Warning_1', 'همیشه قبل از استفاده از کیف پول خود و یا ساختن کیف پول جدید آدرس URL را چک کنید. حواستان به سایت های فیشینگ باشد. '), _defineProperty(_fa$data, 'FOOTER_1', 'ابزاری متن باز و سمت مشتری برای برقراری تعامل امن و آسان با شبکه اتریوم. '), _defineProperty(_fa$data, 'FOOTER_1b', 'ساخته شده توسط '), _defineProperty(_fa$data, 'FOOTER_2', 'از کمک های مالی بسیار قدردانی می شود. '), _defineProperty(_fa$data, 'FOOTER_3', 'تولید کیف پول سمت کاربر توسط '), _defineProperty(_fa$data, 'FOOTER_4', 'رفع مسئولیت '), _defineProperty(_fa$data, 'sidebar_AccountInfo', 'اطلاعات حساب کاربری '), _defineProperty(_fa$data, 'sidebar_AccountAddr', 'آدرس حساب کاربری '), _defineProperty(_fa$data, 'sidebar_AccountBal', 'موجودی حساب '), _defineProperty(_fa$data, 'sidebar_TokenBal', 'موجودی توکن ها '), _defineProperty(_fa$data, 'sidebar_Equiv', 'ارزش های معادل '), _defineProperty(_fa$data, 'sidebar_TransHistory', 'سابقه تراکنش ها '), _defineProperty(_fa$data, 'sidebar_donation', 'وبسایت MyEtherWallet یک سرویس متن باز و رایگان است که وقف امنیت و حریم خصوصی شما شده است. هرچه مقدار کمک های مالی بیشتر باشد، می توانیم زمان بیشتری برای ایجاد ویژگی های جدید، خواندن نظرات شما و ارائه محصولاتی که می خواهید داشته باشیم. ما تنها دو نفر هستیم که سعی در تغییر جهان داریم. کمک می کنید؟ '), _defineProperty(_fa$data, 'sidebar_donate', 'یا کمک مالی '), _defineProperty(_fa$data, 'sidebar_thanks', 'با تشکر از شما '), _defineProperty(_fa$data, 'decrypt_Access', 'چطور می خواهید به کیف گولتان دسترسی داشته باشید؟ '), _defineProperty(_fa$data, 'decrypt_Title', 'فرمت (مدل) کیف پول خصوصی خود را انتخاب کنید. '), _defineProperty(_fa$data, 'decrypt_Select', 'یک کیف پول انتخاب کنید. '), _defineProperty(_fa$data, 'MNEM_1', 'لطفا آدرسی که می خواهید با آن ارتباط برقرار کنید را وارد کنید. '), _defineProperty(_fa$data, 'MNEM_2', 'با یک عبارت HD mnemonic می توانید به چند کیف پول یا آدرس دسترسی داشته باشید. در حال حاضر آدرسی که می خواهید از آن استفاده کنید را وارد کنید. '), _defineProperty(_fa$data, 'MNEM_more', 'آدرس های بعدی '), _defineProperty(_fa$data, 'MNEM_prev', 'آدرس های قبلی '), _defineProperty(_fa$data, 'x_Ledger', 'لجر نانو اس (Ledger Nano S) '), _defineProperty(_fa$data, 'ADD_Ledger_1', 'لجر نانو اس خود را متصل کنید '), _defineProperty(_fa$data, 'ADD_Ledger_2', 'برنامه Ethereum را باز کنید (یا یک برنامه قرارداد را) '), _defineProperty(_fa$data, 'ADD_Ledger_2_Exp', 'برنامه Expanse را باز کنید (یا یک برنامه قرارداد را) '), _defineProperty(_fa$data, 'ADD_Ledger_2_Ubq', 'برنامه Ubiq را باز کنید (یا یک برنامه قرارداد را) '), _defineProperty(_fa$data, 'ADD_Ledger_3', 'تایید کنید که پشتیبانی مرورگر (Browser Support) از قسمت Settings فعالی است. '), _defineProperty(_fa$data, 'ADD_Ledger_4', 'اگر هیچ حمایتی از طرف مرورگرها در تنظیمات پیدا نشد، مطمئن شوید که نسخه [Firmware شماره 1.2](https://www.ledgerwallet.com/apps/manager) را دارید. '), _defineProperty(_fa$data, 'ADD_Ledger_0a', 'با یک کانکشن امن (SSL) دوباره MyEtherWallet را باز کنید. '), _defineProperty(_fa$data, 'ADD_Ledger_0b', 'با استفاده از [Chrome](https://www.google.com/chrome/browser/desktop/) یا [Opera](https://www.opera.com/) دوباره MyEtherWallet را باز کنید. '), _defineProperty(_fa$data, 'ADD_Ledger_scan', 'به Ledger Nano S وصل شوید. '), _defineProperty(_fa$data, 'x_Trezor', 'TREZOR '), _defineProperty(_fa$data, 'ADD_Trezor_scan', 'به TREZOR وصل شوید. '), _defineProperty(_fa$data, 'ADD_Label_1', 'می خواهید چه کاری انجام دهید؟ '), _defineProperty(_fa$data, 'ADD_Radio_1', 'ساخت کیف پول جدید '), _defineProperty(_fa$data, 'ADD_Radio_2', 'فایل کیف پول خود را انتخاب کنید (Keystore / JASON) '), _defineProperty(_fa$data, 'ADD_Radio_2_alt', 'فایل کیف پول خود را انتخاب کنید '), _defineProperty(_fa$data, 'ADD_Radio_2_short', 'نوع فایل را انتخاب کنید: '), _defineProperty(_fa$data, 'ADD_Radio_3', 'کلید خصوصی خود را وارد کنید '), _defineProperty(_fa$data, 'ADD_Radio_4', 'یک حساب کاربری جهت نظارت وارد کنید. '), _defineProperty(_fa$data, 'ADD_Radio_5', 'رمز mnemonic خود را وارد کنید '), _defineProperty(_fa$data, 'ADD_Radio_5_Path', 'ADD_Radio_5_Path'), _defineProperty(_fa$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken) '), _defineProperty(_fa$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR) '), _defineProperty(_fa$data, 'ADD_Radio_5_PathAlternative', '(Ledger) '), _defineProperty(_fa$data, 'ADD_Radio_5_PathTrezor', '(TREZOR) '), _defineProperty(_fa$data, 'ADD_Radio_5_PathCustom', '(Custom) '), _defineProperty(_fa$data, 'ADD_Label_2', 'یک نام اختصاری انتنخاب کنید '), _defineProperty(_fa$data, 'ADD_Label_3', 'کیف پول شما رمزنگاری شده است. لطفا رمزعبور خود را وارد کنید. '), _defineProperty(_fa$data, 'ADD_Label_4', 'یک حساب کاربری جهت نظارت وارد کنید. '), _defineProperty(_fa$data, 'ADD_Warning_1', 'شما می توانید هر حسابی را در قسمت کیف پول ها اضافه کنید تا بدون نیاز به آپلود کردن کلید خصوصی بتوانید آن را ""مشاهده"" کنید. این بدان معنا **نیست** که به کیف پول دسترسی دارید یا می توانید از آن اتر ارسال کنید. '), _defineProperty(_fa$data, 'ADD_Label_5', 'آدرس را وارد کنید. '), _defineProperty(_fa$data, 'ADD_Label_6', 'قفل کیف پول خود را باز کنید. '), _defineProperty(_fa$data, 'ADD_Label_6_short', 'باز کردن قفل '), _defineProperty(_fa$data, 'ADD_Label_7', 'اضافه کردن حساب '), _defineProperty(_fa$data, 'ADD_Label_8', 'رمز عبور (اختیاری) '), _defineProperty(_fa$data, 'MYWAL_Nick', 'نام اختصاری کیف پول '), _defineProperty(_fa$data, 'MYWAL_Address', 'آدرس کسف پول '), _defineProperty(_fa$data, 'MYWAL_Bal', 'موجودی '), _defineProperty(_fa$data, 'MYWAL_Edit', 'ویرایش '), _defineProperty(_fa$data, 'MYWAL_View', 'مشاهده '), _defineProperty(_fa$data, 'MYWAL_Remove', 'پاک کردن '), _defineProperty(_fa$data, 'MYWAL_RemoveWal', 'پاک کردن کیف پول '), _defineProperty(_fa$data, 'MYWAL_WatchOnly', 'حساب های کاربری که تنها قابل نظارت هستند'), _defineProperty(_fa$data, 'MYWAL_Viewing', 'مشاهده کیف پول '), _defineProperty(_fa$data, 'MYWAL_Hide', 'مخفی کردن اطلاعات کیف پول '), _defineProperty(_fa$data, 'MYWAL_Edit_2', 'ویرایش کیف پول '), _defineProperty(_fa$data, 'MYWAL_Name', 'نام کیف پول '), _defineProperty(_fa$data, 'MYWAL_Content_1', 'اخطار! شما در حال پاک کردن کیف پول خود هستید. '), _defineProperty(_fa$data, 'MYWAL_Content_2', 'پیش از پاک کردن آن مطمئن شوید که کلید خصوصی و (یا) فایل Keystore و رمزعبور را ذخیره کرده اید. '), _defineProperty(_fa$data, 'MYWAL_Content_3', ',اگر در آینده بخواهید از این کیف پول با استفاده از MyEtherWallet CX خود استفاده کنید، باید بصورت دستی دوباره آن را اضافه کنید. این کار با استفاده از key/JASON و رمزعبور انجام می شود.'), _defineProperty(_fa$data, 'GEN_desc', 'اگر می خواهید چند کیف پول بسازید می توانید از اینجا اقدام کنید. '), _defineProperty(_fa$data, 'GEN_Label_1', 'یک رمز عبور قوی انتخاب کنید (حداقل 9 کاراکتر) '), _defineProperty(_fa$data, 'GEN_Placeholder_1', 'فراموش نکنید که این را ذخیره کنید. '), _defineProperty(_fa$data, 'GEN_SuccessMsg', 'ساخت کیف پول شما با موفقیت انجام شد. '), _defineProperty(_fa$data, 'GEN_Label_2', 'فایل کیف پول خود را ذخیره کنید. رمزعبور خود را فراموش نکنید. '), _defineProperty(_fa$data, 'GEN_Label_3', 'آدرس خود را ذخیره کنید '), _defineProperty(_fa$data, 'GEN_Label_4', 'اختیاری: از کیف پول کاغذی خود یک پرینت تهیه کنید و یا کد QR آن را نگهداری کنید. '), _defineProperty(_fa$data, 'BULK_Label_1', 'تعداد کیف پول هایی که می خواهید بسازید '), _defineProperty(_fa$data, 'BULK_Label_2', 'ساخت کیف پول ها '), _defineProperty(_fa$data, 'BULK_SuccessMsg', 'ساخت کیف پول های شما با موفقیت انجام شد. '), _defineProperty(_fa$data, 'SEND_addr', 'به آدرس '), _defineProperty(_fa$data, 'SEND_amount', 'مقدار ارسالی '), _defineProperty(_fa$data, 'SEND_amount_short', 'مقدار '), _defineProperty(_fa$data, 'SEND_custom', 'SEND_custom'), _defineProperty(_fa$data, 'SEND_gas', 'سوخت '), _defineProperty(_fa$data, 'SEND_TransferTotal', 'ارسال کل موجودی '), _defineProperty(_fa$data, 'SEND_generate', 'ایجاد تراکنش '), _defineProperty(_fa$data, 'SEND_raw', 'تراکنش خام '), _defineProperty(_fa$data, 'SEND_signed', 'تراکنش امضا شده '), _defineProperty(_fa$data, 'SEND_trans', 'ارسال تراکنش '), _defineProperty(_fa$data, 'SENDModal_Title', 'اخطار '), _defineProperty(_fa$data, 'SENDModal_Content_1', 'بزودی ارسال را انجام خواهید داد. '), _defineProperty(_fa$data, 'SENDModal_Content_2', 'به آدرس '), _defineProperty(_fa$data, 'SENDModal_Content_3', 'آیا از انجام این کار اطمینان دارید؟ '), _defineProperty(_fa$data, 'SENDModal_Content_4', 'توجه: اگر با یک خطا (error) مواجه شدید، احتمالا باید به حساب خود اتر اضافه کنید تا بتواند هزینه سوخت ارسال توکن ها را پوشش دهد. (سوخت با اتر پرداخت می شود) '), _defineProperty(_fa$data, 'SENDModal_No', 'نه. من را از اینجا خارج کن '), _defineProperty(_fa$data, 'SENDModal_Yes', 'بله مطمئن هستم. تراکنش را انجام بده '), _defineProperty(_fa$data, 'TOKEN_Addr', 'Token Contract Address'), _defineProperty(_fa$data, 'TOKEN_Symbol', 'علامت توکن '), _defineProperty(_fa$data, 'TOKEN_Dec', 'Decimals'), _defineProperty(_fa$data, 'TOKEN_show', 'نمایش تمام توکن ها '), _defineProperty(_fa$data, 'TOKEN_hide', 'پنهان سازی توکن ها '), _defineProperty(_fa$data, 'TRANS_desc', 'اگر می خواهید توکن ارسال کنید لطفا به صفحه ""ارسال توکن"" مراجعه کنید. '), _defineProperty(_fa$data, 'TRANS_warning', 'اگر از توابع ""فقط ETH"" یا ""فقط ETC"" استفاده می کنید، شما در حال ارسال از طریق یک قرارداد هستید. برخی از سرویس ها با قبول چنین تراکنش هایی مشکل دارند. بیشتر '), _defineProperty(_fa$data, 'TRANS_advanced', 'پیشرفته: افزودن اطلاعات '), _defineProperty(_fa$data, 'TRANS_data', 'اطلاعات '), _defineProperty(_fa$data, 'TRANS_gas', 'سقف سوخت '), _defineProperty(_fa$data, 'TRANS_sendInfo', 'هزینه یک تراکنش استاندارد با سوخت 21000 معادل با 0.000441 خواهد بود. ما از هزینه گاز 0.000000021 اتر که کمی بالاتر از هزینه متوسط است استفاده می کنیم تا مطمئن شویم که سریع استخراج می شود. ما کارمزد تراکنش نمی گیریم. '), _defineProperty(_fa$data, 'OFFLINE_Title', 'ایجاد و ارسال تراکنش آفلاین '), _defineProperty(_fa$data, 'OFFLINE_Desc', 'تولید یک تراکنش آفلاین در سه مرحله انجام می گیرد. مراحل 1 و 3 را باید در یک کامپیوتر آنلاین و مرحله 2 را در یک کامپیوتر آفلاین (یا قرنطینه) تکمیل کرد. این کار تضمین می کند که کلیدهای خصوصی شما با هیچ دستگاه متصل به اینترنتی ارتباط برقرار نکند. '), _defineProperty(_fa$data, 'OFFLLINE_Step1_Title', 'مرحله 1: تولید اطلاعات (کامپیوتر آنلاین) '), _defineProperty(_fa$data, 'OFFLINE_Step1_Button', 'تولید اطلاعات '), _defineProperty(_fa$data, 'OFFLINE_Step1_Label_1', 'از آدرس '), _defineProperty(_fa$data, 'OFFLINE_Step1_Label_2', 'توجه: این آدرس فرستنده است و نه آدرس گیرنده. این آدرس فعلا از حساب کاربری (اکانت) اصلی تولید شده است. اگر از یک کامپیوتر قرنطینه استفاده می شود، این آدرس باید آدرس حساب کاربری محل ذخیره سازی غیر متصل باشد '), _defineProperty(_fa$data, 'OFFLINE_Step2_Title', 'مرحله 2: تولید تراکنش (کامپیوتر آفلاین) '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_1', 'به آدرس '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_2', 'مقدار ارسالی '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_3', 'قیمت سوخت '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_3b', 'این قسمت در مرحله 1 بر روی کامپیوتر آنلاین شما نمایش داده شد '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_4', 'حد سوخت '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_4b', 'مقدار 2100 میزان پیش فرض حد سوخت است. زمانی که اطلاعات add\'l یا قراردادی را ارسال می کنید ممکن است نیاز به تغییر آن وجود داشته باشد. هر مقداری از سوخت که مورد استفاده قرار نگیرد به شما بازگردانده می شود. '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_5', 'OFFLINE_Step2_Label_5'), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_5b', 'این قسمت در مرحله 1 بر روی کامپیوتر آنلاین شما نمایش داده شد '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_6', 'اطلاعات '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_6b', 'این قسمت اختیاری است. معمولا زمانی که تراکنشی به قراردی فرستاده می شود اطلاعات مورد استفاده قرار می گیرد. '), _defineProperty(_fa$data, 'OFFLINE_Step2_Label_7', 'کلید خصوصی/ JASON خود را وارد/انتخاب کنید '), _defineProperty(_fa$data, 'OFFLINE_Step3_Title', 'مرحله 3: ارسال/ انتشار تراکنش (کامپیوتر آنلاین) '), _defineProperty(_fa$data, 'OFFLINE_Step3_Label_1', 'تراکنش امضا شده از مرحله 2 را در این قسمت قرار داده و دکمه ""SEND TRANSACTION"" را بزنید. '), _defineProperty(_fa$data, 'x_Access', 'دسترسی '), _defineProperty(_fa$data, 'CONTRACT_Title', 'آدرس قرارداد '), _defineProperty(_fa$data, 'CONTRACT_Title_2', 'انتخاب قرارداد موجود '), _defineProperty(_fa$data, 'CONTRACT_Json', 'ظاهر کاربری ABI/ JASON '), _defineProperty(_fa$data, 'CONTRACT_Interact_Title', 'خواندن/ نوشتن قرارداد '), _defineProperty(_fa$data, 'CONTRACT_Interact_CTA', 'یک تابع را انتخاب کنید '), _defineProperty(_fa$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_fa$data, 'CONTRACT_Read', 'بخوان '), _defineProperty(_fa$data, 'CONTRACT_Write', 'بنویس '), _defineProperty(_fa$data, 'DEP_generate', 'ساخت Bytecode '), _defineProperty(_fa$data, 'DEP_generated', 'Bytecode ساخته شده '), _defineProperty(_fa$data, 'DEP_signtx', 'امضای تراکنش '), _defineProperty(_fa$data, 'DEP_interface', 'ظاهر کاربری ساخته شده '), _defineProperty(_fa$data, 'NODE_Title', 'نود یا گره خود را بسازید. '), _defineProperty(_fa$data, 'NODE_Subtitle', 'جهت وصل شدن به یک نود محلی... '), _defineProperty(_fa$data, 'NODE_Warning', 'نود شما باید HTTPS باشد تا بتوانید از طریق MyEtherWallet.com به آن متصل شوید. می توانید [مخزن MyEtherWallet را دانلود و اجرا کنید](https://github.com/kvhnuke/etherwallet/releases/latest) تا بتوانید به هر نودی متصل شوید؛ یا می توانید از طریق [LetsEncrypt](https://letsencrypt.org/) مدرک SSL رایگان دریافت کنید. '), _defineProperty(_fa$data, 'NODE_Name', 'نام نود '), _defineProperty(_fa$data, 'NODE_Port', 'پورت نود '), _defineProperty(_fa$data, 'NODE_CTA', 'ذخیره و استفاده نود کاستوم '), _defineProperty(_fa$data, 'SWAP_rates', 'امتیازهای فعلی '), _defineProperty(_fa$data, 'SWAP_init_1', 'I want to swap my ,'), _defineProperty(_fa$data, 'SWAP_init_2', ' for , // ""I want to swap my X ETH for X BTC'), _defineProperty(_fa$data, 'SWAP_init_CTA', 'ادامه '), _defineProperty(_fa$data, 'SWAP_information', 'اطلاعات شما '), _defineProperty(_fa$data, 'SWAP_send_amt', 'مقدار ارسالی '), _defineProperty(_fa$data, 'SWAP_rec_amt', 'مقدار دریافتی '), _defineProperty(_fa$data, 'SWAP_your_rate', 'امتیاز شما '), _defineProperty(_fa$data, 'SWAP_rec_add', 'آدرس دریافت کردن شما '), _defineProperty(_fa$data, 'SWAP_start_CTA', 'شروع جابجایی '), _defineProperty(_fa$data, 'SWAP_ref_num', 'شماره مرجع شما '), _defineProperty(_fa$data, 'SWAP_time', 'زمان باقیمانده برای ارسال '), _defineProperty(_fa$data, 'SWAP_elapsed', 'Time elapsed since sent '), _defineProperty(_fa$data, 'SWAP_progress_1', 'سفارش ثبت شد '), _defineProperty(_fa$data, 'SWAP_progress_2', 'Waiting for your , // Waiting for your BTC...'), _defineProperty(_fa$data, 'SWAP_progress_3', 'Received! , // ETH Received!'), _defineProperty(_fa$data, 'SWAP_progress_4', 'Sending your {{orderResult.output.currency}} ,'), _defineProperty(_fa$data, 'SWAP_progress_5', 'Order Complete ,'), _defineProperty(_fa$data, 'SWAP_order_CTA', 'Please send , // Please send 1 ETH...'), _defineProperty(_fa$data, 'SWAP_unlock', 'Unlock your wallet to send ETH or Tokens directly from this page. '), _defineProperty(_fa$data, 'NAV_SignMsg', 'امضای پیام '), _defineProperty(_fa$data, 'MSG_message', 'پیام '), _defineProperty(_fa$data, 'MSG_date', 'تاریخ '), _defineProperty(_fa$data, 'MSG_signature', 'امضا '), _defineProperty(_fa$data, 'MSG_verify', 'تایید پیام '), _defineProperty(_fa$data, 'MSG_info1', 'تاریخ فعلی را وارد کنید تا امکان استفاده دوباره از امضا در تاریخ دیگری وجود داشته باشد. '), _defineProperty(_fa$data, 'MSG_info2', 'اسم اختصاری خود و جایی که از آن استفاده می کنید را وارد کنید تا فرد دیگری نتواند از آن استفاده کند. '), _defineProperty(_fa$data, 'MSG_info3', 'یک دلیل مخصوص برای این پیام انتخاب کنید تا نتوان از آن برای مقصود دیگری استفاده کرد. '), _defineProperty(_fa$data, 'VIEWWALLET_Subtitle', 'این موضوع به شما اجازه می دهد که نسخه های مختلفی از کلید خصوصی را دانلود کنید و از کیف پول کاغذی خود دوباره پرینت بگیرید. شاید بخواهید این کار را جهت انتقال حساب خود به [Geth یا Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/) انجام دهید. اگر می خواهید موجودی خود را ببینید پیشنهاد می کنیم که از یک مرورگر بلاکچین مثل [etherscan.io](https://etherscan.io/) استفاده کنید. '), _defineProperty(_fa$data, 'VIEWWALLET_Subtitle_Short', 'این موضوع به شما اجازه می دهد که نسخه های مختلفی از کلید خصوصی را دانلود کنید و از کیف پول کاغذی خود دوباره پرینت بگیرید. '), _defineProperty(_fa$data, 'VIEWWALLET_SuccessMsg', 'با موفقیت انجام شد. می توانید جزئیات کیف پول خود را ببینید. '), _defineProperty(_fa$data, 'CX_error_1', 'شما هیچ کیف پول ذخیره شده ای ندارید. گزینه [""اضافه کردن کیف پول""](/cx-wallet.html#add-wallet) را انتخاب کنید تا بتوانید یکی بسازید. '), _defineProperty(_fa$data, 'CX_quicksend', 'CX_quicksend'), _defineProperty(_fa$data, 'ERROR_0', '(error_01) لطفا مقدار معتبر وارد کنید.. Please enter a valid amount.'), _defineProperty(_fa$data, 'ERROR_1', '(error_02) رمزعبور انتخابی حداقل باید 9 حرف باشد. لطفا از یک رمزعبور قوی استفاده کنید.. Your password must be at least 9 characters. Please ensure it is a strong password.'), _defineProperty(_fa$data, 'ERROR_2', '(error_03) این نوع از فایل کیف پول قابل شناسایی نیست.. Sorry! We don\'t recognize this type of wallet file.'), _defineProperty(_fa$data, 'ERROR_3', '(error_04) این فایل کیف پول معتبر نیست.. This is not a valid wallet file.'), _defineProperty(_fa$data, 'ERROR_4', '(error_05) این واحد وجود ندارد، لطفا یکی از واحدهای زیر را انتخاب کنید.. This unit doesn\'t exists, please use the one of the following units'), _defineProperty(_fa$data, 'ERROR_5', '(error_06) آدرس نامعتبر است. Please enter a valid address.'), _defineProperty(_fa$data, 'ERROR_6', '(error_07) رمز عبور نامعتبر است. Please enter a valid password.'), _defineProperty(_fa$data, 'ERROR_7', '(error_08) مقدار نامعتبر است. Please enter valid decimals (Must be an integer. Try 0-18.)'), _defineProperty(_fa$data, 'ERROR_8', '(error_09) میزان حد سوخت نامعتبر است. Please enter a valid gas limit (Must be an integer. Try 21000-4000000.)'), _defineProperty(_fa$data, 'ERROR_9', '(error_10) داده نامعتبر است. Please enter a valid data value (Must be hex.)'), _defineProperty(_fa$data, 'ERROR_10', '(error_11) میزان سوخت نامعتبر است. Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_fa$data, 'ERROR_11', '(error_12) تراکنش امضا شده نامعتبر است Please enter a valid nonce (Must be an integer.)'), _defineProperty(_fa$data, 'ERROR_12', '(error_13) قبلا کیف پولی با این نام ساخته شده است Invalid signed transaction.'), _defineProperty(_fa$data, 'ERROR_13', '(error_14) کیف پول پیدا نشد A wallet with this nickname already exists.'), _defineProperty(_fa$data, 'ERROR_14', '(error_15) Wallet not found.'), _defineProperty(_fa$data, 'ERROR_15', '(error_16) کیف پولی با این آدرس در حافظه وجود دارد، لطفا صفحه کیف پول خود را چک کنید. Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.'), _defineProperty(_fa$data, 'ERROR_16', '(error_17) برای پوشش هزینه سوخت باید حداقل 0.001 اتر در حساب خود داشته باشید. لطفا مقداری اتر اضافه کرده و دوباره امتحان کنید. A wallet with this address already exists in storage. Please check your wallets page.'), _defineProperty(_fa$data, 'ERROR_17', '(error_18) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fa$data, 'ERROR_18', '(error_19) کاراکتر غیرمعتبر است All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_fa$data, 'ERROR_19', '(error_20) این توکن نامعتبر است Please enter a valid symbol'), _defineProperty(_fa$data, 'ERROR_20', '(error_21) Not a valid ERC-20 token'), _defineProperty(_fa$data, 'ERROR_21', '(error_22) لطفا یک نام نود (گره) معتبر وارد کنید Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_fa$data, 'ERROR_22', '(error_23) لطفا url صحیح وارد کنید. در صورتی که از https استفاده می کنید url شما باید https باشد Please enter a valid node name'), _defineProperty(_fa$data, 'ERROR_23', '(error_24) لطفا یک پورت معتبر وارد کنید Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_fa$data, 'ERROR_24', '(error_25) لطفا آیدی زنجیره معتبر وارد کنید Please enter a valid port.'), _defineProperty(_fa$data, 'ERROR_25', '(error_26) لطفا ABI معتبر وارد کنید Please enter a valid chain ID.'), _defineProperty(_fa$data, 'ERROR_26', '(error_27) کمترین مقدار: 0.01 ، بیشترین مقدار: Please enter a valid ABI.'), _defineProperty(_fa$data, 'ERROR_27', '(error_28) برای دسترسی به این کیف پول در آینده به فایل Keystore و رمزعبور خود (یا کلید خصوصی) نیاز خواهید داشت. لطفا آن را ذخیره کنید و یک نسخه پشتیبان خارجی بسازید. اگر آن را ذخیره نکنید، هیچ راهی برای بازگرداندن کیف پول وجود ندارد. برای راهنمایی [صفحه کمک](https://www.myetherwallet.com/#help) را مطالعه بفرمایید. Minimum amount: 0.01. Max amount:'), _defineProperty(_fa$data, 'ERROR_28', '(error_29) لطفا شناسه و رمزعبور معتبر وارد کنید You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. '), _defineProperty(_fa$data, 'ERROR_29', '(error_30) لطفا نام ENS معتبر وارد کنید Please enter a valid user and password.'), _defineProperty(_fa$data, 'ERROR_30', '(error_31) عبارت خصوصی نامعتبر است Please enter a valid name (7+ characters, limited punctuation)'), _defineProperty(_fa$data, 'ERROR_31', '(error_32) Please enter a valid secret phrase.'), _defineProperty(_fa$data, 'ERROR_32', '(error_33) Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_fa$data, 'ERROR_33', '(error_34) The wallet you have unlocked does not match the owner\'s address.'), _defineProperty(_fa$data, 'ERROR_34', '(error_35) The name you are attempting to reveal does not match the name you have entered.'), _defineProperty(_fa$data, 'ERROR_35', '(error_36) Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>'), _defineProperty(_fa$data, 'ERROR_36', '(error_37) Please enter a valid TX hash'), _defineProperty(_fa$data, 'ERROR_37', '(error_38) Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f'), _defineProperty(_fa$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_fa$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_fa$data, 'GETH_Balance', '(geth-01) موجودی کافی نیست. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fa$data, 'GETH_Cheap', '(geth-02) قیمت سوخت برای پذیرفته شدن کم است. Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_fa$data, 'GETH_GasLimit', '(geth-03) سوخت بیش از حد است. Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_fa$data, 'GETH_InsufficientFunds', '(geth-04) موجودی برای سوخت * قیمت + مقدار کافی نیست. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fa$data, 'GETH_IntrinsicGas', '(geth-05) سوخت اصلی کم است. Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_fa$data, 'GETH_InvalidSender', '(geth-06) ارسال کننده نامعتبر است. Invalid sender.'), _defineProperty(_fa$data, 'GETH_NegativeValue', '(geth-07) مقدار منفی. Negative value.'), _defineProperty(_fa$data, 'GETH_Nonce', "(geth-08) This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_fa$data, 'GETH_NonExistentAccount', '(geth-09) حساب وجود ندارد و یا موجودی حساب کم است. Account does not exist or account balance too low'), _defineProperty(_fa$data, 'PARITY_AlreadyImported', "(parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fa$data, 'PARITY_GasLimitExceeded', "(parity-02) Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_fa$data, 'PARITY_InsufficientBalance', "(parity-03) Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fa$data, 'PARITY_InsufficientGasPrice', "(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fa$data, 'PARITY_InvalidGasLimit', "(parity-05) Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_fa$data, 'PARITY_LimitReached', "(parity-06) There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fa$data, 'PARITY_Old', "(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_fa$data, 'PARITY_TooCheapToReplace', "(parity-08) TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fa$data, 'SUCCESS_1', 'آدرس معتبر است '), _defineProperty(_fa$data, 'SUCCESS_2', 'کیف پول با موفقیت رمزگشایی شد '), _defineProperty(_fa$data, 'SUCCESS_3', 'تراکنش ثبت شد. TX ID '), _defineProperty(_fa$data, 'SUCCESS_4', 'کیف پول شما با موفقیت اضافه شد '), _defineProperty(_fa$data, 'SUCCESS_5', 'فایل انتخاب شد '), _defineProperty(_fa$data, 'WARN_Send_Link', 'شما از طریق یک لینک که آدرس، مقدار، سوخت، زمینه های داده و یا نوع تراکنش (مدل ارسال) که برای شما پر شده است را دارد به اینجا آمده اید. می توانید هر اطلاعاتی را پیش از انجام ارسال تغییر دهید. برای شروع، قفل کیف پول خود را باز کنید. '), _defineProperty(_fa$data, 'translate_version', '0.4_Alpha'), _defineProperty(_fa$data, 'Translator_Desc', 'Persian Translation done by Coiniran.com team'), _defineProperty(_fa$data, 'TranslatorName_1', 'Shayan Es'), _defineProperty(_fa$data, 'TranslatorAddr_1', '0xc2285f89B5b228E9a51f2B80dd0712F0ac071C9e'), _defineProperty(_fa$data, 'TranslatorName_2', 'TranslatorName_2'), _defineProperty(_fa$data, 'TranslatorAddr_2', 'TranslatorAddr_2'), _defineProperty(_fa$data, 'TranslatorName_3', 'TranslatorName_3'), _defineProperty(_fa$data, 'TranslatorAddr_3', 'TranslatorAddr_3'), _defineProperty(_fa$data, 'TranslatorName_4', 'TranslatorName_4'), _defineProperty(_fa$data, 'TranslatorAddr_4', 'TranslatorAddr_4'), _defineProperty(_fa$data, 'TranslatorName_5', 'TranslatorName_5'), _defineProperty(_fa$data, 'TranslatorAddr_5', 'TranslatorAddr_5'), _defineProperty(_fa$data, 'HELP_Warning', 'اگر قبل از 31دسامبر سال 2015 کیف پولی ساخته اید یا مخزن را دانلود کردید، لطفا لطفا کیف پول های خود را چک کنید و نسخه جدید مخزن را دانلود کنید. برای جزئیات کلیک کنید. '), _defineProperty(_fa$data, 'HELP_Desc', 'آیا سوال دیگری دارید؟ [با ما در ارتباط باشید](mailto:support@myetherwallet.com). ما به سوال شما در همین صفحه پاسخ خواهیم داد تا دیگران نیز از آن استفاده کنند. '), _defineProperty(_fa$data, 'HELP_Remind_Title', 'یادآوری '), _defineProperty(_fa$data, 'HELP_Remind_Desc_1', 'بخش هایی مثل Ethereum، MyEtherWallet.com و My EtherWallet CX و برخی دیگر از کتابخانه های زیرساختی که بر پایه Javascript است دائما در حال توسعه هستند. با اینکه ما آن ها را بطور کامل تست کردیم و ده ها هزار کیف پول با موفقیت در سراسر دنیا ساخته شده، همیشه احتمال اینکه اتفاقی غیرمنتظره رخ دهد و باعث از دست رفتن اتر شما شود وجود دارد. لطفا مراقب باشید و بیش از آنچه که در صورت از دست دادن آن برایتان مشکلی پیش نیاید سرمایه گذاری نکنید. اگر اتفاقی افتاد، بسیار متاسفیم، اما **ما مسئول از دست رفتن اتر نیستیم**. '), _defineProperty(_fa$data, 'HELP_Remind_Desc_2', 'گزینه هایی مثل MyEtherWallet.com و MyWtherWallet CX ""کیف پول وبی"" نیستند. شما یک حساب کاربری نمی سازید و اترهای خود را جهت نگهداری از آن ها به ما نمی دهید. هیچ داده ای از کامپیوتر یا مرورگر شما خارج نمی شود. ما کار را برای شما جهت ایجاد، ذخیره، دسترسی به اطلاعات و تعامل با بلاکچیین آسان می کنیم. '), _defineProperty(_fa$data, 'HELP_Remind_Desc_3', 'اگر رمز عبور و کلید خصوصی خود را ذخیره نکنید، هیچ راهی برای دسترسی دوباره به کیف پول خود و سرمایه موجود در آن نخواهید داشت. از آن ها در مکان های فیزیکی مختلف (نه فقط در کامپیوتر خود) چندین نسخه پشتیبان تهیه کنید. '), _defineProperty(_fa$data, 'HELP_0_Title', 'سوال 0: من تازه کار هستم. چگونه شروع کنم؟ '), _defineProperty(_fa$data, 'HELP_0_Desc_1', 'وبسایت MyEtherWallet به شما امکان ساخت کیف پول های جدید جهت ذخیره اتر (Ether)خود در آن را برای شما فراهم می کند تا دیگر نیازی به ذخیره سرمایه خود در یک صرافی نداشته باشید. این فرآیند بطور کامل بر روی کامپیوتر شما، و نه بر روی سرورها، انجام می شود. به همین خاطر زمانی که یک کیف پول جدید می سازید، **خودتان مسئول ایجاد یک نسخه پشتیبان از آن هستید**. '), _defineProperty(_fa$data, 'HELP_0_Desc_2', 'ایجاد یک کیف پول جدید '), _defineProperty(_fa$data, 'HELP_0_Desc_3', 'از کیف پول نسخه پشتیبان تهیه کنید '), _defineProperty(_fa$data, 'HELP_0_Desc_4', 'تایید کنید که به این کیف پول جدید دسترسی دارید و تمام اطلاعات لازم را ذخیره کرده اید. '), _defineProperty(_fa$data, 'HELP_0_Desc_5', 'به این کیف پول جدید، اتر منتقل کنید. '), _defineProperty(_fa$data, 'HELP_1_Title', 'سوال 1: چگونه یک کیف پول جدید بسازم؟ '), _defineProperty(_fa$data, 'HELP_1_Desc_1', 'به صفحه ""ساخت کیف پول"" مراجعه کنید. '), _defineProperty(_fa$data, 'HELP_1_Desc_2', 'به صفحه ""اضافه کردن کیف پول"" رفته و سپس ""ساخت کیف پول جدید"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_1_Desc_3', 'یک رمزعبور قوی انتخاب کنید. در صورتی که فکر می کنید رمز عبور خود را فراموش خواهید، آن را در جایی مطمئن ذخیره کنید. برای ارسال تراکنش به این رمز عبور نیاز خواهید داشت. '), _defineProperty(_fa$data, 'HELP_1_Desc_4', 'گزینه ""ساخت"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_1_Desc_5', 'کیف پول شما ساخته شد. '), _defineProperty(_fa$data, 'HELP_2a_Title', 'سوال 2 الف: چگونه از کیف پول خود یک نسخه پشتیبان (یا بک-آپ) تهیه کنم؟ '), _defineProperty(_fa$data, 'HELP_2a_Desc_1', 'همیشه باید نسخه پشتیبانی از کیف پول خود در چندین محل فیزیکی داشته باشید (مثلا روی usb یا یک تکه کاغذ) '), _defineProperty(_fa$data, 'HELP_2a_Desc_2', 'آدرس را ذخیره کنید. می توانید ان را برای خود نگه دارید و یا با سایرین به اشتراک بگذارید که در اینصورت سایر افراد می توانند برای شما اتر بفرستند. '), _defineProperty(_fa$data, 'HELP_2a_Desc_3', 'چند نسخه از کلید خصوصی خود را نگهداری کنید. داشتن کلید خصوصی برای دسترسی به اترهایتان و ارسال آن ها لازم است. سه نوع کلید خصوصی وجود دارد.'), _defineProperty(_fa$data, 'HELP_2a_Desc_4', 'آدرس خود، نسخه های کلید خصوصی و مدل پی دی افی کیف پول کاغذی خود را در یک فولدر (پوشه) بگذارید و آن را در کامپیوتر و یک یو اس بی نگهداری کنید. '), _defineProperty(_fa$data, 'HELP_2a_Desc_5', 'در صورتی که پرینتر دارید از کیف پول خود یک پرینت تهیه کنید. در غیر اینصورت کلید خصوصی و آدرس را در کاغذی یادداشت کنید. این را جدای از کامپیوتر و usb در محلی امن نگهداری کنید. '), _defineProperty(_fa$data, 'HELP_2a_Desc_6', 'HELP_2a_Desc_6'), _defineProperty(_fa$data, 'HELP_2b_Title', ',سوال 2 ب: '), _defineProperty(_fa$data, 'HELP_2b_Desc_1', 'به لینک زیر بروید: https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest '), _defineProperty(_fa$data, 'HELP_2b_Desc_2', 'بر روی dist-vX.X.X.X.zip کلیک کنید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_3', 'فایل زیپ را به یک کامپیوتر قرنطینه منتقل کنید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_4', 'آن را از حالت فشرده خارج کرده و بر روی index.html کلیک کنید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_5', 'یک کیف پول با رمز عبور قوی بسازید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_6', 'آدرس را ذخیره کنید. نسخه هایی از کلید خصوصی ذخیره کنید. اگر ممکن است رمز عبور را فراموش کنید آن را نیز ذخیره کنید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_7', 'این کاغذها و Usbها را در محل های مختلفی نگهداری کنید. '), _defineProperty(_fa$data, 'HELP_2b_Desc_8', 'به صفحه ""مشاهده اطلاعات کیف پول"" بروید و رمز عبور یا کلید خصوصی خود را وارد کنید تا مطمئن شوید که صحیح هستند. مطمئن شوید که مشابه با آدرسی ست که یادداشت کرده اید. '), _defineProperty(_fa$data, 'HELP_3_Title', 'سوال 3: چگونه این موضوع که به کیف پول خود دسترسی دارم را تایید کنم؟ '), _defineProperty(_fa$data, 'HELP_3_Desc_1', 'حتما **قبل از آنکه به کیف پول جدید خود اتر ارسال کنید**، مطمئن شوید که به آن دسترسی دارید. '), _defineProperty(_fa$data, 'HELP_3_Desc_2', 'به صفحه ""مشاهده اطلاعات کیف پول"" بروید. '), _defineProperty(_fa$data, 'HELP_3_Desc_3', 'به صفحه ""مشاهده اطلاعات کیف پول"" در MyetherWallet.com بروید. '), _defineProperty(_fa$data, 'HELP_3_Desc_4', 'فایل کیف پول و یا کلید خصوصی را انتخاب کنید و کیف پول خود را باز کنید. '), _defineProperty(_fa$data, 'HELP_3_Desc_5', 'HELP_3_Desc_5'), _defineProperty(_fa$data, 'HELP_3_Desc_6', 'دکمه ""گشودن کیف پول"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_3_Desc_7', 'اطلاعات کیف پول شما باید نمایش داده شود. آدرس حساب خود را می توانید در کنار یک آیکون دایره ای شکل و رنگی بیابید. آیکون موجود بصورت بصری آدرس شما را نمایش می دهد. مطمئن شوید که آدرس همان آدرسی ست که در نوشته متنی خود و کیف پول کاغذی خود ذخیره کرده اید. '), _defineProperty(_fa$data, 'HELP_3_Desc_8', 'اگر می خواهید مقدار زیادی اتر سپرده (نگهداری) کنید، پیشنهاد می کنیم که پیش از این کار، در ابتدا مقدار کمی اتر از این کیف پول جدید ارسال کنید. 0.001 اتر به کیف پول جدید خود ارسال کنید، سپس از کیف پول خود آن مقدار را به یک آدرس دیگر بفرستید و مطمئن شوید که همه چیز به درستی کار می کند. '), _defineProperty(_fa$data, 'HELP_4_Title', 'سوال 4: چگونه از یک کیف پول به یک کیف پول دیگر اتر منتقل کنم؟ '), _defineProperty(_fa$data, 'HELP_4_Desc_1', 'اگر قصد دارید مقدار زیادی اتر جابجا کنید بهتر است که اول یک مقدار کم به کیف پولتان ارسال کنید تا مطمئن شوید همه چیز درست کار می کند. '), _defineProperty(_fa$data, 'HELP_4_Desc_2', 'به صفحه ""ارسال اتر و توکن ها"" بروید. '), _defineProperty(_fa$data, 'HELP_4_Desc_3', 'با انتخاب فایل کیف پول و یا کلید خصوصی، قفل کیف پول خود را باز کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_4', 'اگر کیف پول رمزگذاری شده باشد، یک صفحه کوچک باز می شود که باید رمز عبور خود را در آن وارد کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_5', 'کلید ""باز کردن کیف پول"" را بفشارید. '), _defineProperty(_fa$data, 'HELP_4_Desc_6', 'در قسمت ""به آدرس""، آدرسی که می خواهید به آن اتر ارسال کنید را وارد کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_7', 'مقداری که می خواهید ارسال کنید را وارد کنید. در صورتی که می خواهید تمام موجودی خود را ارسال کنید می توانید گزینه ""ارسال کل موجودی"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_9', 'گزینه ""تولید تراکنش"" را بزنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_10', 'چند قسمت دیگر ظاهر خواهد شد. این مربوط به مرورگر شماست که در حال ساخت تراکنش می باشد. '), _defineProperty(_fa$data, 'HELP_4_Desc_11', 'در زیر آن، بر روی دکمه آبی ""ارسال تراکنش"" کلیک کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_12', 'صفحه ای ظاهر می شود. در آن صفحه باید تایید کنید که میزان و آدرسی که می خواهید به آن اتر ارسال کنید صحیح است. سپس گزینه ""بله مطمئن هستم. تراکنش را انجام بده "" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_4_Desc_13', 'تراکنش انجام خواهد شد و TX ID نمایش داده می شود. می توانید با کلیک بر روی TX ID آن را بر روی بلاکچین ببینید. '), _defineProperty(_fa$data, 'HELP_4CX_Title', 'سوال 4: چگونه با کیف پول MyEtherWallet خود اتر ارسال کنم؟ '), _defineProperty(_fa$data, 'HELP_4CX_Desc_1', 'ابتدا باید یک کیف پول را اضافه کنید. وقتی این کار را انجام دادید دو گزینه پیش رو خواهید داشت: گزینه ""ارسال سریع"" که از طریق آیکون افزونه Chrome Extension کار می کند و گزینه دیگر که از صفحه ""ارسال اتر و توکن"" به آن دسترسی خواهید داشت. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_2', 'HELP_4CX_Desc_2'), _defineProperty(_fa$data, 'HELP_4CX_Desc_3', 'بر روی آیکون Chrome Extension کلیک کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_4', 'دکمه ""ارسال سریع"" را بزنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_5', 'کیف پولی که می خواهید از آن ارسال را انجام دهید انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_6', 'در قسمت ""به آدرس""، آدرسی که می خواهید به آن ارسال انجام دهید را وارد کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_7', 'میزان ارسالی را وارد کنید. همچنین می توانید با استفاده از لینک ""ارسال کل موجودی"" ، تمام موجودی خود را ارسال کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_8', 'بر روی گزینه ""ارسال تراکنش"" کلیک کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_9', 'میزان و آدرس ارسالی را تایید کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_10', 'رمز عبور این کیف پول را وارد کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_11', 'بر روی گزینه ""ارسال تراکنش"" کلیک کنید. '), _defineProperty(_fa$data, 'HELP_4CX_Desc_12', 'استفاده از صفحه ""ارسال اتر و توکن ها"" '), _defineProperty(_fa$data, 'HELP_5_Title', 'سوال 5: چگونه از MyEtherWallet.com بصورت آفلاین استفاده کنم؟ '), _defineProperty(_fa$data, 'HELP_5_Desc_1', 'شما می توانید MyEtherWallet.com را به جای اجرا از روی سرورهای GitHub، روی کامپیوتر خود اجرا کنید. شما می توانید یک کیف پول را کاملا بصورت آفلاین بسازید و تراکنشی را از طریق صفحه ""تراکنش آفلاین"" ارسال کنید. '), _defineProperty(_fa$data, 'HELP_5_Desc_7', 'حال MyEtherWallet.com بطور کامل در حال اجرا شدن از روی کامپیوتر شماست. '), _defineProperty(_fa$data, 'HELP_5_Desc_8', 'در صورتی که با این موضوع آشنایی ندارید بهتر است بدانید که باید تمام پوشه (فولدر) را نگهداری کنید تا بتوانید وبسایت را اجرا کنید (نه فقط index.html را). به چیزی در این پوشه دست نزنید و یا جابجا نکنید. اگر یک نسخه پشتیبان از کد مخزن MyEtherWallet را برای آینده نگهداری می کنید پیشنهاد می شود که تنها ZIP را نگهداری کنید تا از اینکه تمام محتوای پوشه درست ذخیره می شوند اطمینان حاصل کنید. '), _defineProperty(_fa$data, 'HELP_5_Desc_9', 'از آنجایی که ما بطور مداوم در حال بروزرسانی MyEtherWallet.com هستیم، پیشنهاد می کنیم که نسخه ذخیره شده خود را بصورت دوره ای بروزرسانی کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Title', 'سوال 5: چگونه می توانم این افزونه را به جای نصب کردن از Chrome Store، از مخزن نصب کنم؟ '), _defineProperty(_fa$data, 'HELP_5CX_Desc_2', 'بر روی chrome-extension-vX.X.X.X.zip کلیک کرده و آن را از حالت فشرده خارج کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Desc_3', 'به قسمت تنظیمات (settings) مرورگر Google Chrome بروید (در منو قسمت بالا سمت راست) '), _defineProperty(_fa$data, 'HELP_5CX_Desc_4', 'بر روی افزونه یا همان Extensions در قسمت چپ کلیک کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Desc_5', 'گزینه ""Developer Mode"" در بالای صفحه را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Desc_6', 'گزینه Load unpacked extension… را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Desc_7', 'به پوشه ای که به تازگی از حالت فشرده خارج کردید مراجعه کرده و گزینه select را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_5CX_Desc_8', 'افزونه حالا باید در قسمت افزونه های Chrom Extension نمایش داده شود. '), _defineProperty(_fa$data, 'HELP_7_Title', 'سوال 7: چگونه توکن ارسال کنم و توکن custom اضافه کنم؟ '), _defineProperty(_fa$data, 'HELP_7_Desc_0', 'از طریق [Ethplorer.io](https://ethplorer.io/) می توانید توکن ها را بررسی کنید و دهدهی های یک توکن را ببینید. '), _defineProperty(_fa$data, 'HELP_7_Desc_1', 'به صفحه ""ارسال اتر و توکن ها"" بروید. '), _defineProperty(_fa$data, 'HELP_7_Desc_2', 'کیف پول خود را باز کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_3', 'در بخش ""به آدرس:""، آدرسی که می خواهید به آن اتر بفرستید را وارد کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_4', 'مقداری که می خواهید بفرستید را وارد کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_5', 'توکنی که می خواهید ارسال کنید را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_6', 'اگر لیست توکن را ندیدید '), _defineProperty(_fa$data, 'HELP_7_Desc_7', 'HELP_7_Desc_7'), _defineProperty(_fa$data, 'HELP_7_Desc_8', 'آدرس، اسم و دهدهی توکن را وارد کنید. این ها توسط توسعه دهندگان توکن ارائه می شود که برای '), _defineProperty(_fa$data, 'HELP_7_Desc_9', 'گزینه ""ذخیره"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_10', 'حال می توانید همزمان با مشاهده موجودی، توکن ارسال کنید '), _defineProperty(_fa$data, 'HELP_7_Desc_11', 'گزینه ""ایجاد تراکنش"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_12', 'تعدادی گزینه جدید ظاهر خواهد شد. این مرورگر شماست که در حال ایجاد تراکنش است. '), _defineProperty(_fa$data, 'HELP_7_Desc_13', 'گزینه آبی رنگ ""ارسال تراکنش"" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_14', 'یک صفحه ظاهر می شود. صحت مقدار و آدرسی که به آن ارسال می کنید را تایید کنید. گزینه ""بله مطمئن هستم. تراکنش را انجام بده "" را انتخاب کنید. '), _defineProperty(_fa$data, 'HELP_7_Desc_15', 'تراکنش ثبت خواهد شد. TX ID نمایش داده می شود. می توانید بر روی TX ID جهت مشاهده آن بر روی بلاکچین کلیک کنید. '), _defineProperty(_fa$data, 'HELP_8_Title', 'سوال 8: اگر سایت شما از کار بیافتد چه اتفاقی میافتد؟ '), _defineProperty(_fa$data, 'HELP_8_Desc_1', 'وبسایت MyEtherWallet یک کیف پول وبی نیست. نیازی نیست که وارد شوید (لاگین کنید) و هیچ چیزی بر روی سرورهای ما ذخیره نمی شود. این تنها یک ظاهر است که به شما امکان برقراری ارتباط با بلاکچین را می دهد. '), _defineProperty(_fa$data, 'HELP_8_Desc_2', 'اگر MyEtherWallet.com از کار بیافتد، راه دیگری (مثل geth یا Ethereum Wallet/ Mist) وجود دارد که کاری که ما انجام می دهیم را انجام دهد. اما نیازی نیست که اترهای خود را از MyEtherWallet بیرون بیاورید چرا که آن ها در MyEtherWallet نیستند، بلکه در هر کیف پولی ست که شما از طریق سایت ما ساخته باشید. '), _defineProperty(_fa$data, 'HELP_8_Desc_3', 'می توانید فایل های کلید خصوصی رمزنگاری نشده و Geth/Mist Format (رمزنگاری شده) را مستقیما به geth/ Ethereum Wallet/ Mist انتقال دهید. به سوال شماره 12 مراجعه کنید. '), _defineProperty(_fa$data, 'HELP_8_Desc_4', 'علاوه بر این، امکان اینکه MyEtherWallet را از کار بیاندازیم نزدیک به صفر است. ازآنجایی که هیچ اطلاعاتی را ذخیره نمی کنیم در نتیجه هیچ هزینه نگهداری هم برای ما ندارد. اگر دامنه را به هر دلیلی از کار بیاندازیم، بصورت عمومی در آدرس های زیر در دسترس خواهد بود. [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages) . می توانید از آنجا ZIP را دانلود کنید و آن را بصورت محلی راه اندازی و اجرا کنید. '), _defineProperty(_fa$data, 'HELP_8CX_Title', 'سوال 8: اگر MyEtherWallet CX ناپدید شود چه اتفاقی میافتد؟ '), _defineProperty(_fa$data, 'HELP_8CX_Desc_1', 'اول از همه اینکه تمام داده ها بر روی کامپیوتر شما ذخیره شده است و نه سرورهای ما. زمانی که به افزونه Chrome Extension نگاه می کنید، چیزی که روی سرورهای ما ذخیره شده باشد نمی بینید، بلکه تمام آن بر روی کامپیوتر خود شما ذخیره شده است. '), _defineProperty(_fa$data, 'HELP_8CX_Desc_2', 'مهم است در نظر داشته باشید که برای هر کیف پولی که با MyEtherWallet CX ساخته می شود، از تمام اطلاعات خود یک نسخه پشتیبان تهیه کنید. در اینصورت اگر هر اتفاقی برای MyEtherWallet CX یا کامپیوترتان بیافتد، همچنان اطلاعات لازم جهت دسترسی به اترهای خود را خواهید داشت. به سوال 2 الف برای چگونگی تهیه نسخه پشتیبان از کیف پول مراجعه کنید. '), _defineProperty(_fa$data, 'HELP_8CX_Desc_3', 'اگر به هر دلیلی MyEtherWallet CX از Chrome Store ناپدید شد، می توانید سورس (کد منبع) آن را از Github پیدا کرده و بصورت دستی اجرا کنید. به سوال شماره 5 مراجعه کنید. '), _defineProperty(_fa$data, 'HELP_9_Title', 'سوال 9: آیا صفحه ""ارسال اتر و توکن"" آفلاین است؟ '), _defineProperty(_fa$data, 'HELP_9_Desc_1', ',خیر. برای بدست آوردن قیمت سوخت فعلی نیاز به اینترنت دارد'), _defineProperty(_fa$data, 'HELP_10_Title', 'سوال 10: چگونه یک تراکنش آفلاین ایجاد کنم؟ '), _defineProperty(_fa$data, 'HELP_10_Desc_1', 'با کامپیوتر خود (که آنلاین است) به صفحه ""تراکنش آفلاین"" بروید. '), _defineProperty(_fa$data, 'HELP_10_Desc_2', 'قسمت ""از آدرس"" را پر کنید. توجه کنید که این آدرسی ست که از آن سرمایه ارسال می کنید و نه آدرسی که می خواهید به آن ارسال کنید. این کار هزینه سوخت و ؟؟؟ را ...."'), _defineProperty(_fa$data, 'HELP_10_Desc_3', 'به کامپیوتر آفلاین خود بروید و قسمت ""به آدرس"" و ""مقدار"" (مقداری که می خواهید بفرستید) را وارد کنید. '), _defineProperty(_fa$data, 'HELP_10_Desc_4', 'در مرحله 1 قیمت سوخت در کامپیوتر آنلاین به شما نمایش داده شد. آن را در قسمت ""قیمت سوخت"" وارد کنید. '), _defineProperty(_fa$data, 'HELP_10_Desc_5', 'HELP_10_Desc_5'), _defineProperty(_fa$data, 'HELP_10_Desc_6', 'مقدار پیش فرض برای ""سقف سوخت"" 21000 است که یک تراکنش استاندارد را پوشش می دهد. اگر در حال ارسال سرمایه به یک قرارداد هستید و یا اطلاعات بیشتری را در تراکنش خود جای دادید، باید مقدار سقف سوخت را افزایش دهید. هر مقدار سوخت که باقی بماند به شما برگردانده می شود. '), _defineProperty(_fa$data, 'HELP_10_Desc_7', 'اگر می خواهید می توانید اطلاعات بیشتری اضافه کنید. اگر اطلاعات را وارد کنید باید برای سقف سوخت بیش از 21000 در نظر بگیرید. تمام اطلاعات با فرمت هگز (HEX) است. '), _defineProperty(_fa$data, 'HELP_10_Desc_8', 'فایل کیف پول یا کلید خصوصی خود را جهت باز کردن کیف پول وارد کنید. '), _defineProperty(_fa$data, 'HELP_10_Desc_9', 'دکمه ""ارسال تراکنش امضا شده"" را بزنید. '), _defineProperty(_fa$data, 'HELP_10_Desc_10', 'HELP_10_Desc_10'), _defineProperty(_fa$data, 'HELP_10_Desc_11', 'HELP_10_Desc_11'), _defineProperty(_fa$data, 'HELP_12_Title', 'سوال 12: چگونه کیف پولی که با MyEtherWallet ساخته ام را به geth یا Ethereum Wallet یا Mist منتقل کنم؟ '), _defineProperty(_fa$data, 'HELP_12_Desc_1', ',با استفاده از فایل Geth یا Mist JSON از MyEtherWallet نسخه 2 به بالا.'), _defineProperty(_fa$data, 'HELP_12_Desc_2', 'به صفحه ""مشاهده اطلاعات کیف پول"" بروید/ '), _defineProperty(_fa$data, 'HELP_12_Desc_3', 'قفل کیف پول خود را با استفاده از کلید خصوصی **رمزنگاری شده** و یا فایل JSON خود باز کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_4', 'به صفحه ""کیف پول های من"" بروید. '), _defineProperty(_fa$data, 'HELP_12_Desc_5', 'کیف پولی که می خواهید به Mist انتقال دهید را انتخاب کنید. بر روی آیکوین ""مشاهده"" کلیک کنید. رمزعبور خود را وارد کنید و به کیف پول دسترسی پیدا کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_6', 'بخش ""دانلود فایل JASON - فرمت Get یا Mist (رمزنگاری شده)"" را پیدا کنید. بر روی دکمه ""دانلود"" که در زیر آن قرار دارد کلیک کنید. حال شما فایل keystore خود را دارید. '), _defineProperty(_fa$data, 'HELP_12_Desc_7', 'برنامه کیف پول Ethereum Wallet را باز کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_8', 'در قسمت منو به ترتییب بخش های زیر را دنبال کنید تا به بخش آخر برسید: حساب ها --> پشتیبان --> حساب ها. '), _defineProperty(_fa$data, 'HELP_12_Desc_9', 'با این کار می توانید به پوشه ای که keystore خود را در آن ذخیره کردید دسترسی پیدا کنید. فایلی که به تازگی دانلود کردید (`UTC--2016-04-14......../`) را به همان پوشه keystore ببرید. '), _defineProperty(_fa$data, 'HELP_12_Desc_10', 'حساب شما سریعا در قسمت ""حساب ها"" نمایش داده می شود. '), _defineProperty(_fa$data, 'HELP_12_Desc_11', 'با استفاده از کلید خصوصی ررمزنگاری نشده خود... '), _defineProperty(_fa$data, 'HELP_12_Desc_12', 'اگر در حال حاضر کلید خصوصی رمزنگاری نشده خود را ندارید، به قست ""مشاهده اطلاعات کیف پول"" بروید. '), _defineProperty(_fa$data, 'HELP_12_Desc_13', 'فایل کیف پول خود را انتخاب کنید یا کلید خصوصی خود را وارد کنید تا قفل کیف پولتان باز شود. '), _defineProperty(_fa$data, 'HELP_12_Desc_14', 'کلید خصوصی (رمزنگاری نشده) خود را کپی کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_15', 'اگر با مک (Mac) کار می کنید '), _defineProperty(_fa$data, 'HELP_12_Desc_15b', 'اگر با کامپیوتر (PC) کار می کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_16', 'گزینه ""ویرایش نوشته"" را باز کنید و این کلید خصوصی را در آنجا paste کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_17', 'HELP_12_Desc_17'), _defineProperty(_fa$data, 'HELP_12_Desc_18', 'این فایل را بر روی دسکتاپ خود با عنوان nothing_special_delete_me.txt ذخیره کنید. مطمئن شوید که می گوید ""UTF-8"" و در بخش ذخیره بنویسد """"If no extension is provided use .txt"" . '), _defineProperty(_fa$data, 'HELP_12_Desc_19', 'ترمینال را باز کنید دستور زیر را وارد کنید: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_fa$data, 'HELP_12_Desc_20', 'این کار باعث می شود تا از شما در خواست یک رمزعبور جدید شود. این رمزعبوری ست که در زمان ارسال یک تراکنش با استفاده از geth یا Ethereum Wallet یا Mist از آن استفاده می کنید، در نتیجه آن را به خاطر بسپارید. '), _defineProperty(_fa$data, 'HELP_12_Desc_21', 'HELP_12_Desc_21'), _defineProperty(_fa$data, 'HELP_12_Desc_22', 'دفعه بعد که برنامه Ethereum Wallet را باز کنید، حساب شما در بخش ""حساب ها"" قابل مشاهده خواهد بود. '), _defineProperty(_fa$data, 'HELP_12_Desc_23', 'برنامه Notepad را باز کنید و کلید خصوصی را در آن paste کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_24', 'فایل را با عنوان `nothing_special_delete_me.txt` در درایو :C ذخیره کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_25', 'این دستور را وارد کنید: `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_fa$data, 'HELP_12_Desc_26', 'این کار باعث می شود تا از شما در خواست یک رمزعبور جدید شود. این رمزعبوری ست که در زمان ارسال یک تراکنش با استفاده از geth یا Ethereum Wallet یا Mist از آن استفاده می کنید، در نتیجه آن را به خاطر بسپارید. '), _defineProperty(_fa$data, 'HELP_12_Desc_27', 'بعد از انتقال موفق، فایل `nothing_special_delete_me.txt` را پاک کنید. '), _defineProperty(_fa$data, 'HELP_12_Desc_28', 'دفعه بعد که برنامه Ethereum Wallet را باز کنید، حساب شما در بخش ""حساب ها"" قابل مشاهده خواهد بود. '), _defineProperty(_fa$data, 'HELP_13_Title', 'سوال 13: این جمه به چه معناست؟ : ""سرمایه کافی نیست. حسابی که سعی در ارسال تراکنش از طریق آن را دارید به اندازه کافی سرمایه ندارد. به XXXXXXXXXXXXXXXXXXX و تنها XXXXXXXXXXXXXXXX دارد"". '), _defineProperty(_fa$data, 'HELP_13_Desc_1', 'این بدان معناست که در حساب خود به اندازه کافی اتر (ٍETH) جهت پرداخت هزینه سوخت را ندارید. هر تراکنش (که شامل توکن و تراکنش های قراردادی نیز می شود) به سوخت نیاز دارد و این سوخت با اتر پرداخت می شود. عددی که نمایش داده شد، مقداری ست که برای پوشش هزینه تراکنش در Wei مورد نیاز است. آن عدد را بر `1000000000000000000` تقسیم کنید و از مقدار اتری که می خواستید ارسال کنید کم کنید (اگر می خواستید که اتر ارسال کنید). این کار به شما میزان اتری که برای انجام تراکنش باید به آن حساب بفرستید را مشخص می کند. '), _defineProperty(_fa$data, 'HELP_14_Title', 'سوال 14: برخی از سایت ها ساخت رندوم یا تصادفی کلیدهای خصوصی را بر اساس حرکت موس انجام می دهند. سایت MyEtherWallet.com این کار را انجام نمی دهد. آیا تولید تصادفی اعداد برای MyEtherWallet امن است؟ '), _defineProperty(_fa$data, 'HELP_14_Desc_1', 'روش ساخت بر اساس حرکت موس هوشمندانه است و می دانیم که چرا مردم آن را دوست دارند، اما واقعیت این است که window.crypto ؟؟؟؟؟ بیشتری را نسبت به حرکات موس شما ارائه می کنند. حرکات موس ناامن نیستند اما ما (و بسیاری از آزمایش های کریپتو دیگر) در window.crypto باور بیشتری داریم. بعلاوه اینکه از MyEtherWallet.com می توان در دستگاه های لمسی نیز استفاده کرد. در [اینجا می توانید بحث بین یک نویسنده عصبانی در reddit و Vitalik Buterin درباره حرکات موس و window.crypto را ببینید](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_fa$data, 'HELP_15_Title', 'سوال 15: چرا حسابی که همین الان ساخته ام در مرورگر بلاکچین (bllockchain explorer) دیده نمی شود؟ (برای مثال در etherchain یا etherscan) '), _defineProperty(_fa$data, 'HELP_15_Desc_1', 'HELP_15_Desc_1'), _defineProperty(_fa$data, 'HELP_16_Title', 'سوال 16: چگونه موجودی حساب خود را ببینم؟ '), _defineProperty(_fa$data, 'HELP_16_Desc_1', 'برای این کار می توانید از یک مرورگر بلاکچین مثل [etherscan.io](https://etherscan.io/) استفاده کنید. آدرس خود را در قسمت search (جستجو) وارد کنید و بعد می توانید آدرس و سابقه تراکنش های خود را مشاهده کنید. برای مثال حساب اهدایی ما [بدین صورت](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) است. '), _defineProperty(_fa$data, 'HELP_17_Title', 'سوال 17: چرا زمانی که قفل کیف پول خود را باز می کنم موجودی من نمایش داده نمی شود؟ '), _defineProperty(_fa$data, 'HELP_17_Desc_1', 'این موضوع احتمالا بخاطر این است که شما پشت یک firewall (دیوار آتشین) هستید. API که ما برای بدست آوردن موجودی استفاده می کنیم به دلایلی معمولا توسط فایر وال ها بلاک می شوند. شما همچنان می توانید تراکنش هایتان را ارسال کنید و برای دیدن موجودی خود تنها باید از راه دیگری (مثل etherscan.io) استفاده کنید. '), _defineProperty(_fa$data, 'HELP_18_Title', 'سوال 18: فایل مربوط به کیف پول geth کجا قرار دارد؟ '), _defineProperty(_fa$data, 'HELP_19_Title', 'سوال 19: فایل مربوط به کیف پول Mist من کجا قرار دارد؟ '), _defineProperty(_fa$data, 'HELP_19_Desc_1', 'فایل های Mist معمولا در فضاهای بالا قرار دارند. اما را آسان تر این است که Mist را باز کنید، در قسمت بالا گزینه Accounts و بعد Backup را انتخاب کنید. این کار پوشه ای که فایل های شما در آن ذخیره شده را باز می کند. '), _defineProperty(_fa$data, 'HELP_20_Title', 'سوال 20: فایل مربوط به کیف پول پیش فروش (pre-sale) من کجا قرار دارد؟ '), _defineProperty(_fa$data, 'HELP_20_Desc_1', 'هر جایی که آن را ذخیره کرده اید! البته برای ایمیل شما هم ارسال شده است، در نتیجه آن را نیز بررسی کنید. بدنبال فایلی با نام ""ethereum_wallet_backup.json"" بگردید. این فایلِ کیف پول با یک رمزعبور رمزنگاری شده است. رمزعبوری که شما هنگام خرید در پیش فروش ساخته اید. '), _defineProperty(_fa$data, 'HELP_21_Title', 'سوال 21: آیا این امکان وجود ندارد که هر کسی یک کلید خصوصی تصادفی (رندوم) را وارد کرده و بدنبال یک موجودی بگردد و سپس آن را برای خود ارسال کند؟ '), _defineProperty(_fa$data, 'HELP_21_Desc_1', 'جواب کوتاه: بله، اما یافتن یک حساب با موجودی، بیش از هزاران سال طول می کشد؛ پس جواب خیر است. '), _defineProperty(_fa$data, 'HELP_21_Desc_2', 'نسخه Long ELI5: اتریوم بر پایه Public Key Cryptography یا رمزنگاری کلید عمومی و بطور خاص، منحنی رمزنگاری Elliptic است که بصورت گسترده ای نیز مورد استفاده قرار می گیرد. امنیت بسیاری از سرورها از طریق ECC فراهم می شود. بیتکوین نیز از همان، و از چیزهای دیگری مثل SSH و TLS استفاده می کند. کلیدهای اتریوم کلیدهای 256 بیتی هستند که بسیار قوی تر از مدل های 128بیتی و 192بیتی هستند که بصورت گسترده ای مورد استفاده قرار می گیرند و از نظر کارشناسان امن هستند. '), _defineProperty(_fa$data, 'HELP_21_Desc_3', 'در اینجا شما یک کلید خصوصی و یک کلید عمومی دارید. از کلید خصوصی می توان کلید عمومی ساخت، اما کلید عمومی را نمی توان برگرداند و به کلید خصوصی تبدیل کرد یا از طریق آن کلید خصوصی را بدست آورد. تمام دنیا و اینترنت در حال استفاده از این نوع رمزنگاری هستند و اگر راهی برای بدست آوردن کلید خصوصی از طریق کلید عمومی وجود داشته باشد و به این خاطر شما اترهای خود را از دست دهید، این موضوع کمترین نگرانی هر کسی خواهد بود. '), _defineProperty(_fa$data, 'HELP_21_Desc_4', 'اگر کسی کلید خصوصی شما را داشته باشد می تواند از حساب شما اتر منتقل کند؛ درست همانطور که اگر کسی رمزعبور ایمیل شما را داشته باشد می تواند ایمیل هایتان را بخواند و یا ایمیل ارسال کند، یا اگر کسی رمزعبور حساب شما را داشته باشد می تواند پول جابجا کند. می توانید نسخه Keystore کلید خصوصی خود، که کلید خصوصیِ رمزنگاری شده با یک رمزعبور است را دانلود کنید. این کار مثل این است که یک رمزعبوری دارید که توسط یک رمزعبور دیگر محافظت می شود. '), _defineProperty(_fa$data, 'HELP_21_Desc_5', 'بصورت تئوری این امکان وجود دارد که رشته هایی با 64 کاراکتر هگزادسیمالی وارد کنید تا یکی از آن ها کار کند و کلید خصوصی از آب در بیاید. البته افراد باهوش برای این کار برنامه ای می نویسند که با سرعت بالا کلیدهای خصوصی تصادفی مختلفی را امتحان کند. به این کار Brute-force یا نیروی کور و یا در اصطلاحی دیگر به آن mining یا استخراج کلید خصوصی گفته می شود. با تعداد کمی سرورهای قوی، احتمال چک کردن بیش از 1میلیون کلید در درثانیه وجود دارد. اما چک کردن این تعداد کلید در ثانیه نمی تواند هزینه های فعالیت سرورها را پوشش دهد و احتمالا نه تنها شما بلکه فرزندان و نوه های شما نیز نمی توانند کلیدی پیدا کند. '), _defineProperty(_fa$data, 'HELP_21_Desc_6', 'اگر چیزی درباره بیتکوین می دانید، برای نشان دادن اینکه این احتمال چقدر کم است به این نکته توجه کنید: فرض کنید هر ساتوشی از هر بیتکوینی که تا به حال ساخته شده به کلید خصوصی یکتای مربوط به خود رفته باشد. احتمال آنکه بین تمام آن کلیدها، دو کلید وجود داشته باشد که هر دو به یک آدرس اشاره کنند حدود یک در 100 کوینتیلیون (کوینتیلیون معادل است با 1 و هجده صفر جلوی آن که کل آن ها به توان 2 برسد) است. '), _defineProperty(_fa$data, 'HELP_21_Desc_7', 'این عددها هیچ ربطی با فناوری دستگاه ها ندارند؛ مقدارها بیشینه یا ماکزیمی هستند که از نظر ترمودینامیکی مجاز است و شدیده بر این موضوع دلالت دارد که حمله های نیروی کور یا brute force به کلیدهای 256بیتی تا زمانی که کامپیوترهایی با چیزی غیر از چیزهای فعلی ساخته شود و چیزی غیر از فضا را اشغال کند ساخته شوند غیر عملی است. '), _defineProperty(_fa$data, 'HELP_21_Desc_8', 'این موضوع نشانگر آن است که کلیدها بصورت کاملا تصادفی و با آنتروپی کافی ساخته می شوند. کلیدهایی که اینجا ساخته می شوند همانند Jaxx و Mist/geth از این معیار پیروی می کنند. کیف پول های اتریوم همگی خوب هستند. کلیدهای که توسط ذهن انسان ساخته می شوند خوب نیستند چرا که ذهن انسان توان ایجاد یک دانه یا رمز کاملا تصدفی را ندارد. مشکلاتی در زمینه آنتروپی و یا اینکه دانه ها بطور کاملا تصدفی ساخته نشدند در دنیای بیتکوین وجود داشته که موضوعی ست که باید بعدا راجع به آن صحبت کرد. '), _defineProperty(_fa$data, 'HELP_SecCX_Title', 'امنیت - MyEtherWallet CX '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_1', 'این افزونه (extension) اطلاعات من را کجا ذخیره می کند؟ '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_2', 'اطلاعاتی که در این Chrome Extension ذخیرنگهداری می کنید از طریق [chrome.storage](http://chrome.storage/) ذخیره می شود. این دقیقا همان جایی ست که رمزعبورهایی که در مرورگر Chrome ذخیره می کنید در آن ذخیره می شود. '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_3', 'چه اطلاعاتی ذخیره می شود؟ '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_4', 'آدرس، نام اختصاری و کلید خصوصی در chrome.storage ذخیره می شود. کلید خصوصی با استفاده از رمزعبوری که در زمان اضافه کردن کیف پول انتخاب کردید رمزنگاری شده است. نام اختصاری و کیف پول رمزنگاری نشده است. '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_5', 'چرا نام اختصاری و کیف پول رمزنگاری نمی شوند؟ '), _defineProperty(_fa$data, 'HELP_SecCX_Desc_6', 'اگر می خواستیم این موارد را رمزنگاری کنیم، هربار که می خواستید موجودی حساب یا نام های اختصاری را ببینید مجبور به وارد کردن رمزعبور می شدید. اگر این موضوع برایتان مهم است، پیشنهاد می کنیم از MyEtherWallet.com به جای این Chrome Extension استفاده کنید. '), _defineProperty(_fa$data, 'HELP_Sec_Title', 'امنیت '), _defineProperty(_fa$data, 'HELP_Sec_Desc_1', 'ممکن است یکی از اولین سوالاتی که به ذهنتان می رسد این باشد که ""چرا باید به این افراد اعتماد کنم؟""؛ این سوال خوبی ست که ادامه می توانید جوابی برای آن جهت کم کردن ترس خود پیدا کنید. '), _defineProperty(_fa$data, 'HELP_Sec_Desc_2', 'ما از آگوست 2015 در حال فعالیت هستیم. اگر در [reddit](https://www.reddit.com/search?q=myetherwallet) بدنبال myetherwallet بگردید، تعداد زیادی از کاربران را خواهید دید که از سرویس ما با موفقیت استفاده کرده اند. '), _defineProperty(_fa$data, 'HELP_Sec_Desc_3', 'ما نمی خواهیم که پول شما را بگیریم و یا کلیدهای خصوصی شما را بدزدیم. هیچ کد خرابی در این سایت وجود ندارد. در واقع صفحه های ""ایجاد کیف پول"" در سمت کاربر هستند (client-side). این بدان معناست که تمام کدها بر روی کامپیوتر خود شما اجرا می شود و هرگز جای دیگری ارسال و یا ذخیره نمی شود. '), _defineProperty(_fa$data, 'HELP_Sec_Desc_4', 'این سایت از طریق GitHub ارائه می شود، می توانید کد اصلی یا Source Code آن را در این آدرس ببینید: [https://github.com/kvhnuke/etherwallet/tree/gh-](https://github.com/kvhnuke/etherwallet/tree/gh-pages) و [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_fa$data, 'HELP_Sec_Desc_5', 'برای ایجاد کیف پول، می توانید کد منبع را دانلود کنید و آن را بصورت محلی اجرا کنید. به سوال شماره 5 مراجعه کنید. (https://github.com/kvhnuke/etherwallet/releases/latest) '), _defineProperty(_fa$data, 'HELP_Sec_Desc_6', 'یک کیف پول تستی بسازید و به بررسی فعالیت شبکه بپردازید. ساده ترین راه این است که بر روی سایت کلیک راست کرده و گزینه ""inspect element"" را انتخاب کنید. به قسمت ""Network"" بروید. یک کیف پول آزمایشی بسازید. خواهید دید که هیچ فعالیت شبکه ای در آن جا رخ نمی دهد. خواهید دید که اتفاقی در حال رخداد است که همانند داده هایی مثل عکس یا گیف هستند. آن ها کدهای QR هستند که در حال ساخته شدن بر روی کامپیوتر شما و توسط کامپیوتر شما هستند. هیچ بایتی جابجا نمی شود. '), _defineProperty(_fa$data, 'HELP_Sec_Desc_8', 'اگر با استفاده از این ابزار راحت نیستید آن را کنار بگذارید. ما این ابزار را بعنوان یک راه موثر جهت ایجاد کیف پول و تراکنش بدون نیاز به اجرای یک فول نود یا رفتن به خط فرمان درست کرده ایم. در هر صورت اگر سوالی ذهن شما را به خود مشغول کرده می توانید با ما در ارتباط باشید و ما نیز در اولین فرصت پاسخگوی شما خواهیم بود. با تشکر از توجه شما '), _defineProperty(_fa$data, 'HELP_FAQ_Title', 'پاسخ های کامل تری به سوالات متداول '), _defineProperty(_fa$data, 'HELP_Contact_Title', 'HELP_Contact_Title'), _fa$data);
module.exports = fa;
},{}],112:[function(require,module,exports){
// Finnish
'use strict';
var _fi$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var fi = function fi() {};
fi.code = 'fi';
fi.data = (_fi$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_fi$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_fi$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_fi$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_fi$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_fi$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_fi$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_fi$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_fi$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_fi$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_fi$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_fi$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_fi$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_fi$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_fi$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_fi$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_fi$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_fi$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_fi$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_fi$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_fi$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_fi$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_fi$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_fi$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_fi$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_fi$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_fi$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_fi$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_fi$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_fi$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_fi$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_fi$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_fi$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_fi$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_fi$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_fi$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_fi$data, 'x_ReadMore', 'Read More'), _defineProperty(_fi$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_fi$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_fi$data, 'x_TXFee', 'TX Fee'), _defineProperty(_fi$data, 'x_TxHash', 'TX Hash'), _defineProperty(_fi$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_fi$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_fi$data, 'tx_Details', 'Transaction Details'), _defineProperty(_fi$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_fi$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_fi$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_fi$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_fi$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_fi$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_fi$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_fi$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_fi$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_fi$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_fi$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_fi$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_fi$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_fi$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_fi$data, 'GEN_Help_1', 'Use your'), _defineProperty(_fi$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_fi$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_fi$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_fi$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_fi$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_fi$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_fi$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_fi$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_fi$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_fi$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_fi$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_fi$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_fi$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_fi$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_fi$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_fi$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_fi$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_fi$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_fi$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_fi$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_fi$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_fi$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_fi$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_fi$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_fi$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_fi$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_fi$data, 'NAV_AddWallet', 'Lisää Lompakko '), _defineProperty(_fi$data, 'NAV_BulkGenerate', 'Massa Generoi '), _defineProperty(_fi$data, 'NAV_Contact', 'Yhteystiedot '), _defineProperty(_fi$data, 'NAV_Contracts', 'Contracts '), _defineProperty(_fi$data, 'NAV_DeployContract', 'Deploy Contract '), _defineProperty(_fi$data, 'NAV_DeployContract', 'Ota Käyttöön Sopimus '), _defineProperty(_fi$data, 'NAV_ENS', 'ENS'), _defineProperty(_fi$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_fi$data, 'NAV_GenerateWallet', 'Luo Lompakko '), _defineProperty(_fi$data, 'NAV_Help', 'Apua '), _defineProperty(_fi$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_fi$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_fi$data, 'NAV_MyWallets', 'Minun Lompakkoni '), _defineProperty(_fi$data, 'NAV_Offline', 'Lähetä Offlinena '), _defineProperty(_fi$data, 'NAV_SendEther', 'Lähetä Etheriä ja Tokeneita '), _defineProperty(_fi$data, 'NAV_SendTokens', 'Lähetä Tokeneita '), _defineProperty(_fi$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_fi$data, 'NAV_Swap', 'Swap '), _defineProperty(_fi$data, 'NAV_ViewWallet', 'Tarkastele Lompakon Tietoja '), _defineProperty(_fi$data, 'NAV_YourWallets', 'Sinun Lompakkosi '), _defineProperty(_fi$data, 'x_Access', 'Access '), _defineProperty(_fi$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Saatat tuntea tämän "Tilinumeronasi" tai "Julkisena Salausavaimenasi". Tämä on se jonka jaat ihmisille, jotta he voivat lähettää sinulle ETHiä. Tuo kuvake on helppo tapa tunnistaa sinun osoitteesi. '), _defineProperty(_fi$data, 'x_Address', 'Sinun osoitteesi '), _defineProperty(_fi$data, 'x_Cancel', 'Peruuta '), _defineProperty(_fi$data, 'x_CSV', 'CSV tiedosto (salaamaton) '), _defineProperty(_fi$data, 'x_Download', 'Lataa '), _defineProperty(_fi$data, 'x_Json', 'JSON Tiedosto (salaamaton) '), _defineProperty(_fi$data, 'x_JsonDesc', 'Tämä on salaamaton JSON tiedosto yksityisestä salausavaimestasi. Tämä tarkoittaa että et tarvitse salasanaa mutta kuka tahansa joka löytää JSON tiedostosi saa pääsyn lompakkoosi ja sen sisältämään Etheriin ilman salasanaa. '), _defineProperty(_fi$data, 'x_Keystore', 'Avainsäilö Tiedosto (UTC / JSON · Suositeltu · Salattu) '), _defineProperty(_fi$data, 'x_Keystore2', 'Avainsäilö Tiedosto (UTC / JSON) '), _defineProperty(_fi$data, 'x_KeystoreDesc', 'Tämä Avainsäilö tiedosto vastaa sitä tiedostoformaattia jota Mist käyttävät, joten voit helposti importata sen tulevaisuudessa. Se on suositeltu tiedostomuoto ladata ja varmuuskopioida. '), _defineProperty(_fi$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_fi$data, 'x_Mnemonic', 'Mnemonic Phrase '), _defineProperty(_fi$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_fi$data, 'x_Password', 'Salasana '), _defineProperty(_fi$data, 'x_Print', 'Tulosta Paperi Lompakko '), _defineProperty(_fi$data, 'x_PrintDesc', 'ProTip: Klikkaa Tulosta ja tallenna tämä PDF:nä, vaikka et omistaisikaan tulostinta! '), _defineProperty(_fi$data, 'x_PrintShort', 'Tulosta '), _defineProperty(_fi$data, 'x_PrivKey', 'Yksityinen salausavain (salaamaton) '), _defineProperty(_fi$data, 'x_PrivKey2', 'Yksityinen salausavain '), _defineProperty(_fi$data, 'x_PrivKeyDesc', 'Tämä on salaamaton versio sinun yksityisestä salausavaimestasi, tarkoittaen että salasanaa ei tarvita. Jos joku sattuisi löytämään sinun salaamattoman yksityisen salausavaimesi, he pääsisivät käsiksi sinun lompakkoosi ilman salasanaa. Tästä syystä salatut versiot ovat yleensä suositeltuja. '), _defineProperty(_fi$data, 'x_Save', 'Tallenna '), _defineProperty(_fi$data, 'x_TXT', 'TXT tiedosto (salaamaton) '), _defineProperty(_fi$data, 'x_Wallet', 'Lompakko '), _defineProperty(_fi$data, 'x_Wallet', 'Wallet '), _defineProperty(_fi$data, 'MEW_Warning_1', 'Tarkista URL aina ennen kuin avaat lompakkosi tai luot uuden lompakon. Varo tietojen-kalastelu sivustoja! '), _defineProperty(_fi$data, 'CX_Warning_1', 'Varmista että sinulla on **ulkoiset varmuuskopiot** kaikista lompakoista joita säilytät täällä. Monia asioita voi tapahtua joiden seurauksena voit menettää tietoja tässä Chrome Laajennuksessa, mukaan lukien laajennuksen asennuksen poistaminen tai uudelleenasennus. Tämä laajennus on keino jolla saat helpon pääsyn lompakkoosi, **ei** keino varmuuskopioida niitä. '), _defineProperty(_fi$data, 'MEW_Tagline', 'Avoimen Lähdekoodin JavaScript Ether Lompakko '), _defineProperty(_fi$data, 'CX_Tagline', 'Avoimen Lähdekoodin JavaScript Chrome Laajennus '), _defineProperty(_fi$data, 'FOOTER_1', 'Avoimen lähdekoodin, javascript työkalu Ethereum lompakkojen luomista & varojen siirtoja varten. '), _defineProperty(_fi$data, 'FOOTER_1b', 'Luonut '), _defineProperty(_fi$data, 'FOOTER_2', 'Lahjoituksia arvostetaan suuresti: '), _defineProperty(_fi$data, 'FOOTER_3', 'Lompakon luomisen tarjoaa '), _defineProperty(_fi$data, 'FOOTER_4', 'Vastuuvapauslauseke / Disclaimer '), _defineProperty(_fi$data, 'sidebar_AccountInfo', 'Tilin Tiedot '), _defineProperty(_fi$data, 'sidebar_AccountAddr', 'Tilin Osoite '), _defineProperty(_fi$data, 'sidebar_AccountBal', 'Tilin Saldo '), _defineProperty(_fi$data, 'sidebar_TokenBal', 'Tokenien Saldo '), _defineProperty(_fi$data, 'sidebar_Equiv', 'Vastaavat Arvot '), _defineProperty(_fi$data, 'sidebar_TransHistory', 'Siirto Historia '), _defineProperty(_fi$data, 'sidebar_donation', 'MyEtherWallet on ilmainen, avoimen lähdekoodin palvelu joka on omistautunut sinun yksityisyyteesi ja turvallisuuteesi. Mitä enemmän lahjoituksia me vastaanotamme, sitä enemmän aikaa me käytämme uusien toimintojen luomiseksi, kuunnellen teidän palautettanne ja antaen teille juuri sitä mitä te tahdotte. Me olemme vain kaksi ihmistä jotka koittavat muuttaa maailmaa. Auta meitä? '), _defineProperty(_fi$data, 'sidebar_donate', 'Lahjoita '), _defineProperty(_fi$data, 'sidebar_thanks', 'KIITOS!!! '), _defineProperty(_fi$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_fi$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_fi$data, 'decrypt_Access', 'Kuinka haluaisit saada pääsyn lompakkoosi? '), _defineProperty(_fi$data, 'decrypt_Title', 'Valitse yksityisen salausavaimesi muoto: '), _defineProperty(_fi$data, 'decrypt_Select', 'Valitse Lompakko: '), _defineProperty(_fi$data, 'ADD_Label_1', 'Mitä tahtoisit tehdä? '), _defineProperty(_fi$data, 'ADD_Radio_1', 'Luo Uusi Lompakko '), _defineProperty(_fi$data, 'ADD_Radio_2', 'Valitse Lompakko Tiedostosi (Avainsäilö / JSON) '), _defineProperty(_fi$data, 'ADD_Radio_2_alt', 'Valitse Lompakko Tiedostosi '), _defineProperty(_fi$data, 'ADD_Radio_2_short', 'VALITSE LOMPAKKO TIEDOSTO... '), _defineProperty(_fi$data, 'ADD_Radio_3', 'Liitä/Kirjoita Yksityinen Salausavaimesi '), _defineProperty(_fi$data, 'ADD_Radio_4', 'Lisää Tili Jota Seurata '), _defineProperty(_fi$data, 'ADD_Radio_5', 'Paste Your Mnemonic '), _defineProperty(_fi$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_fi$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_fi$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_fi$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_fi$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_fi$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_fi$data, 'ADD_Label_2', 'Luo Kutsumanimi: '), _defineProperty(_fi$data, 'ADD_Label_3', 'Lompakkosi on salattu, ole hyvä ja syötä salasanasi '), _defineProperty(_fi$data, 'ADD_Label_4', 'Lisää Tili Jota Seurata '), _defineProperty(_fi$data, 'ADD_Warning_1', 'Voit lisätä minkä tahansa tilin jota "seurata" lompakkojen välilehdessä ilman yksityisen salausavaimesi lähettämistä. Tämä ** ei ** tarkoita että sinulla olisi pääsy tähän lompakkoon, tai että voit siirtää Etheriä siitä. '), _defineProperty(_fi$data, 'ADD_Label_5', 'Syötä Osoite '), _defineProperty(_fi$data, 'ADD_Label_6', 'Avaa Sinun Lompakkosi '), _defineProperty(_fi$data, 'ADD_Label_6_short', 'Avaa '), _defineProperty(_fi$data, 'ADD_Label_7', 'Lisää Tili '), _defineProperty(_fi$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_fi$data, 'GEN_desc', 'Jos tahdot luoda useita lompakoita, voit tehdä sen täältä '), _defineProperty(_fi$data, 'GEN_Label_1', 'Syötä vahva salasana (vähintään 9 merkkiä) '), _defineProperty(_fi$data, 'GEN_Placeholder_1', 'ÄLÄ unohda tallentaa tätä! '), _defineProperty(_fi$data, 'GEN_SuccessMsg', 'Onnistui! Sinun lompakkosi on luotu. '), _defineProperty(_fi$data, 'GEN_Label_2', 'Tallenna Avainsäilö tai Yksityinen salausavaimesi. Älä unohda yllä olevaa salasanaasi. '), _defineProperty(_fi$data, 'GEN_Label_3', 'Tallenna Osoitteesi. '), _defineProperty(_fi$data, 'GEN_Label_4', 'Valinnainen: Tulosta paperi lompakkosi, tai säilö QR koodi versio. '), _defineProperty(_fi$data, 'BULK_Label_1', 'Kuinka Monta Lompakkoa Luodaan '), _defineProperty(_fi$data, 'BULK_Label_2', 'Luo Lompakot '), _defineProperty(_fi$data, 'BULK_SuccessMsg', 'Onnistui! Sinun lompakkosi on luotu. '), _defineProperty(_fi$data, 'SEND_addr', 'Osoitteeseen '), _defineProperty(_fi$data, 'SEND_amount', 'Summa Joka Lähetetään '), _defineProperty(_fi$data, 'SEND_amount_short', 'Summa '), _defineProperty(_fi$data, 'SEND_custom', 'Mukautettu '), _defineProperty(_fi$data, 'SEND_gas', 'Gas '), _defineProperty(_fi$data, 'SEND_TransferTotal', 'Lähetä Koko Saldo '), _defineProperty(_fi$data, 'SEND_generate', 'Luo Allekirjoitettu Siirto '), _defineProperty(_fi$data, 'SEND_raw', 'Käsittelemätön Siirto '), _defineProperty(_fi$data, 'SEND_signed', 'Allekirjoitettu Siirto '), _defineProperty(_fi$data, 'SEND_trans', 'Lähetä Siirto '), _defineProperty(_fi$data, 'SEND_custom', 'Add Custom Token '), _defineProperty(_fi$data, 'SENDModal_Title', 'Varoitus! '), _defineProperty(_fi$data, 'SENDModal_Content_1', 'Olet lähettämässä '), _defineProperty(_fi$data, 'SENDModal_Content_2', 'osoitteeseen '), _defineProperty(_fi$data, 'SENDModal_Content_3', 'Oletko varma että haluat tehdä tämän? '), _defineProperty(_fi$data, 'SENDModal_Content_4', 'HUOMAUTUS: Jos kohtaat virheen, sinun täytyy todennäköisesti lisätä ETHiä tilillesi kattaaksesi siirron vaatiman gasin hinnan. Gas maksetaan ETHeinä. '), _defineProperty(_fi$data, 'SENDModal_No', 'En, vie minut pois täältä! '), _defineProperty(_fi$data, 'SENDModal_Yes', 'Kyllä, olen varma! Toteuta siirto. '), _defineProperty(_fi$data, 'TOKEN_Addr', 'Token Contract Osoite '), _defineProperty(_fi$data, 'TOKEN_Symbol', 'Token Tunnus '), _defineProperty(_fi$data, 'TOKEN_Dec', 'Desimaalit '), _defineProperty(_fi$data, 'TOKEN_hide', 'Hide Tokens '), _defineProperty(_fi$data, 'TOKEN_show', 'Show All Tokens '), _defineProperty(_fi$data, 'TRANS_desc', 'Jos haluat lähettää Tokeneita, ole hyvä ja käytä "Lähetä Tokeneita" sivua. '), _defineProperty(_fi$data, 'TRANS_warning', 'Jos käytät "Vain ETH" tai "Vain ETC" Toimintoja, niin lähetät sopimuksen kautta. Joillakin palveluilla on vaikeuksia hyväksyä näitä siirtoja. Lue lisää. '), _defineProperty(_fi$data, 'TRANS_advanced', '+Edistynyt: Lisää Tietoja '), _defineProperty(_fi$data, 'TRANS_data', 'Tiedot '), _defineProperty(_fi$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_fi$data, 'TRANS_sendInfo', 'Tavallinen siirto käyttäen 21000 gasia maksaa 0.000441 ETHiä. Me käytämme hieman-yli-minimin gasin hintaa 0.000000021 ETHiä varmistaaksemme että se louhitaan nopeasti. Me emme veloita siirto maksua. '), _defineProperty(_fi$data, 'TRANSModal_Title', '"Vain ETH" ja "Vain ETC" Siirrot '), _defineProperty(_fi$data, 'TRANSModal_Content_0', 'Huomautus erilaisista siirroista ja eri palveluista: '), _defineProperty(_fi$data, 'TRANSModal_Content_1', '**ETH (Tavallinen Siirto): ** Tämä luo oletusarvoisen siirron osoitteesta toiseen. Siinä on oletus gasina 21000. On todennäköistä että kaikki ETH joka lähetetään tällä tavalla, toistetaan ETC ketjussa. '), _defineProperty(_fi$data, 'TRANSModal_Content_2', '**Vain ETH: ** Tämä lähettää [Timon Rappin toiston suojaus sopimuksen kautta (kuten VB on suositellut)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) niin että sinä lähetät vain **ETH** ketjussa. '), _defineProperty(_fi$data, 'TRANSModal_Content_3', '**Only ETC: ** Tämä lähettää [Timon Rappin toiston suojaus sopimuksen kautta (kuten VB on suositellut)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) niin että sinä lähetät vain **ETC** ketjussa. '), _defineProperty(_fi$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Lähetä ainoastaan käyttäen Tavallista Siirtoa. Jos lähetät käyttäen "Vain" sopimuksia, sinun täytyy olla yhteydessä heidän asiakastukensa henkilöstöön jotta he joko manuaalisesti lisäävät sinun saldosi tai palauttavat rahasi. [Voit kokeilla myös ShapeShiftin "split" työkalua.](https://split.shapeshift.io/) '), _defineProperty(_fi$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Ei tunnettuja ongelmia. Käytä mitä vain. '), _defineProperty(_fi$data, 'TRANSModal_Yes', 'Siistiä, nyt ymmärrän. '), _defineProperty(_fi$data, 'TRANSModal_No', 'Voi ei, olen entistä enemmän hämilläni. Auttakaa minua. '), _defineProperty(_fi$data, 'OFFLINE_Title', 'Luo ja Lähetä Offline Siirto '), _defineProperty(_fi$data, 'OFFLINE_Desc', 'Offline siirtojen luonti voidaan tehdä kolmella eri vaiheella. Teet vaiheet 1 ja 3 käyttäen verkkoon yhdistettyä (online) tietokonetta, ja vaiheen 2 käyttäen offline/airgappattua tietokonetta. Tämä varmistaa ettei sinun yksityinen salausavaimesi ole kosketuksissa internettiin yhdistetyn laitteen kanssa. '), _defineProperty(_fi$data, 'OFFLLINE_Step1_Title', 'Vaihe 1: Luo Tiedot (Online Tietokone) '), _defineProperty(_fi$data, 'OFFLINE_Step1_Button', 'Luo Tiedot '), _defineProperty(_fi$data, 'OFFLINE_Step1_Label_1', 'Osoitteesta '), _defineProperty(_fi$data, 'OFFLINE_Step1_Label_2', 'Huomautus: Tämä on MISTÄ osoitteesta, ei MIHIN osoitteeseen. Nonce luodaan osoitteesta josta siirto on peräisin. Jos käytetään airgappattua tietokonetta, se olisi kylmä-varasto tilin osoite. '), _defineProperty(_fi$data, 'OFFLINE_Step2_Title', 'Vaihe 2: Luo Siirto (Offline Tietokone) '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_1', 'Osoitteeseen '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_2', 'Arvo / Määrä Joka Lähetetään '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_3', 'Gasin hinta '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_3b', 'Tämä näytettiin kohdassa Vaihe 1 sinun verkkoon yhdistetyssä tietokoneessasi. '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_4', 'Gas Raja '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_4b', '21000 on oletusarvoinen gas raja. Kun lähetät sopimuksiin tai lisäät tietoa, saattaa tämä määrä joutua olemaan eri. Kaikki käyttämätön gas palautetaan sinulle. '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_5b', 'Tämä näytettiin kohdassa Vaihe 1 sinun verkkoon yhdistetyssä tietokoneessasi. '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_6', 'Tiedot '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_6b', 'Tämä on valinnainen. Tietoja käytetään usein kun varoja lähetetään sopimuksiin. '), _defineProperty(_fi$data, 'OFFLINE_Step2_Label_7', 'Syötä / Valitse Yksityinen salausavaimesi / JSON. '), _defineProperty(_fi$data, 'OFFLINE_Step3_Title', 'Vaihe 3: Lähetä / Julkaise Siirto (Verkkoon yhdistetty (online) tietokone) '), _defineProperty(_fi$data, 'OFFLINE_Step3_Label_1', 'Liitä allekirjoitettu siirto Vaiheesta 2 tähän ja paina "LÄHETÄ SIIRTO" nappia. '), _defineProperty(_fi$data, 'DEP_generate', 'Generoi Bytecode '), _defineProperty(_fi$data, 'DEP_generated', 'Generoitu Bytecode '), _defineProperty(_fi$data, 'DEP_signtx', 'Allekirjoita Siirto '), _defineProperty(_fi$data, 'DEP_interface', 'Generoitu Rajapinta '), _defineProperty(_fi$data, 'MYWAL_Nick', 'Lompakon Kutsumanimi '), _defineProperty(_fi$data, 'MYWAL_Address', 'Lompakon Osoite '), _defineProperty(_fi$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_fi$data, 'MYWAL_Edit', 'Muokkaa '), _defineProperty(_fi$data, 'MYWAL_View', 'Katso '), _defineProperty(_fi$data, 'MYWAL_Remove', 'Poista '), _defineProperty(_fi$data, 'MYWAL_RemoveWal', 'Poista Lompakko: '), _defineProperty(_fi$data, 'MYWAL_WatchOnly', 'Sinun Seuraa-Ainoastaan Tilisi '), _defineProperty(_fi$data, 'MYWAL_Viewing', 'Tarkastellaan Lompakkoa '), _defineProperty(_fi$data, 'MYWAL_Hide', 'Piilota Lompakon Tiedot '), _defineProperty(_fi$data, 'MYWAL_Edit_2', 'Muokkaa Lompakkoa '), _defineProperty(_fi$data, 'MYWAL_Name', 'Lompakon Nimi '), _defineProperty(_fi$data, 'MYWAL_Content_1', 'Varoitus! Olet poistamassa lompakkoasi. '), _defineProperty(_fi$data, 'MYWAL_Content_2', 'Varmista että olet **tallentanut tähän lompakkoon liittyvät yksityisen salausavaimesi/JSON tiedostosi ja salasanasi** ennen kuin poistat sen. '), _defineProperty(_fi$data, 'MYWAL_Content_3', 'Jos tahdot käyttää tätä lompakkoa MyEtherWallet CX:si kanssa tulevaisuudessa, sinun täytyy manuaalisesti uudelleen-lisätä se käyttäen yksityistä salausavaintasi/JSONia ja salasanaa. '), _defineProperty(_fi$data, 'VIEWWALLET_Subtitle', 'Tämä antaa sinun ladata eri versiota yksityisistä salausavaimistasi ja uudelleen-tulostaa paperi lompakkosi. Saatat tahtoa tehdä tämän [tuodaksesi sinun tilisi Gethiin/Mistiin](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Jos haluat tarkistaa saldosi, me suosittelemme käyttämään blockchain exploreria kuten [etherscan.io](https://etherscan.io/). '), _defineProperty(_fi$data, 'VIEWWALLET_Subtitle_Short', 'Tämä antaa sinun ladata eri versiota yksityisistä salausavaimistasi ja uudelleen-tulostaa paperi lompakkosi. '), _defineProperty(_fi$data, 'VIEWWALLET_SuccessMsg', 'Onnistui! Tässä ovat lompakkosi yksityiskohdat. '), _defineProperty(_fi$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_fi$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_fi$data, 'CX_error_1', 'Sinulla ei ole lompakkoja tallennettuna. Klikkaa ["Lisää Lompakko"](/cx-wallet.html#add-wallet) lisätäksesi! '), _defineProperty(_fi$data, 'CX_quicksend', 'PikaLähetä '), _defineProperty(_fi$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_fi$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_fi$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_fi$data, 'NODE_Name', 'Node Name'), _defineProperty(_fi$data, 'NODE_Port', 'Node Port'), _defineProperty(_fi$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_fi$data, 'CONTRACT_Title', 'Contract Address '), _defineProperty(_fi$data, 'CONTRACT_Title_2', 'Select Existing Contract '), _defineProperty(_fi$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_fi$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_fi$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_fi$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_fi$data, 'CONTRACT_Read', 'READ '), _defineProperty(_fi$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_fi$data, 'DEP_generate', 'Generate Bytecode '), _defineProperty(_fi$data, 'DEP_generated', 'Generated Bytecode '), _defineProperty(_fi$data, 'DEP_signtx', 'Sign Transaction '), _defineProperty(_fi$data, 'DEP_interface', 'Generated Interface '), _defineProperty(_fi$data, 'SWAP_rates', "Current Rates "), _defineProperty(_fi$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_fi$data, 'SWAP_init_2', " for "), _defineProperty(_fi$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_fi$data, 'SWAP_information', "Your Information "), _defineProperty(_fi$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_fi$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_fi$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_fi$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_fi$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_fi$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_fi$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_fi$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_fi$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_fi$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_fi$data, 'SWAP_progress_3', "Received! "), _defineProperty(_fi$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_fi$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_fi$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_fi$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_fi$data, 'MSG_message', 'Message '), _defineProperty(_fi$data, 'MSG_date', 'Date '), _defineProperty(_fi$data, 'MSG_signature', 'Signature '), _defineProperty(_fi$data, 'MSG_verify', 'Verify Message '), _defineProperty(_fi$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_fi$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_fi$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_fi$data, 'MNEM_1', 'Please select the address you would like to interact with. '), _defineProperty(_fi$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_fi$data, 'MNEM_more', 'More Addresses '), _defineProperty(_fi$data, 'MNEM_prev', 'Previous Addresses '), _defineProperty(_fi$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_fi$data, 'ADD_Ledger_1', 'Connect your Ledger Wallet '), _defineProperty(_fi$data, 'ADD_Ledger_2', 'Open the Ethereum application (or a contract application) '), _defineProperty(_fi$data, 'ADD_Ledger_2_Exp', 'Open the Expanse application (or a contract application) '), _defineProperty(_fi$data, 'ADD_Ledger_2_Ubq', 'Open the Ubiq application (or a contract application) '), _defineProperty(_fi$data, 'ADD_Ledger_3', 'Verify that Browser Support is enabled in Settings '), _defineProperty(_fi$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_fi$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_fi$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_fi$data, 'ADD_Ledger_scan', 'Connect to Ledger Wallet '), _defineProperty(_fi$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_fi$data, 'x_Trezor', 'TREZOR '), _defineProperty(_fi$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_fi$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_fi$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_fi$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_fi$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_fi$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_fi$data, 'CX_error_1', 'You don\'t have any wallets saved. Click ["Add Wallet"](/cx-wallet.html#add-wallet) to add one! '), _defineProperty(_fi$data, 'CX_quicksend', 'QuickSend '), _defineProperty(_fi$data, 'FOOTER_1b', 'Created by '), _defineProperty(_fi$data, 'FOOTER_4', 'Disclaimer '), _defineProperty(_fi$data, 'ERROR_0', '(error_01) Ole hyvä ja syötä kelpaava summa. Please enter a valid amount.'), _defineProperty(_fi$data, 'ERROR_1', '(error_02) Salasanasi pitää olla vähintään 9 merkkiä pitkä. Ole hyvä ja varmista että käytät vahvaa salasanaa. Your password must be at least 9 characters. Please ensure it is a strong password.'), _defineProperty(_fi$data, 'ERROR_2', '(error_03) Pahoittelut! Emme tunnista tämänlaista lompakko tiedostoa. Sorry! We don\'t recognize this type of wallet file.'), _defineProperty(_fi$data, 'ERROR_3', '(error_04) Tämä ei ole validi lompakko tiedosto. This is not a valid wallet file.'), _defineProperty(_fi$data, 'ERROR_4', '(error_05) Tätä yksikköä ei ole olemassa, ole hyvä ja käytä jotain seuraavista yksiköistä This unit doesn\'t exists, please use the one of the following units'), _defineProperty(_fi$data, 'ERROR_5', '(error_06) Virheellinen osoite. Please enter a valid address.'), _defineProperty(_fi$data, 'ERROR_6', '(error_07) Virheellinen salasana. Please enter a valid password.'), _defineProperty(_fi$data, 'ERROR_7', '(error_08) Virheellinen summa. Please enter valid decimals (Must be an integer. Try 0-18.)'), _defineProperty(_fi$data, 'ERROR_8', '(error_09) Virheellinen gas raja.Please enter a valid gas limit (Must be an integer. Try 21000-4000000.)'), _defineProperty(_fi$data, 'ERROR_9', '(error_10) Virheellinen tieto arvo. Please enter a valid data value (Must be hex.)'), _defineProperty(_fi$data, 'ERROR_10', '(error_11) Virheellinen gasin määrä. Try 20 GWEI / 20000000000 WEI.) Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_fi$data, 'ERROR_11', '(error_12) Virheellinen nonce. (Must be integer.) '), _defineProperty(_fi$data, 'ERROR_12', '(error_13) Virheellinen allekirjoitettu siirto. Invalid signed transaction.'), _defineProperty(_fi$data, 'ERROR_13', '(error_14) Lompakko tällä kutsumanimellä on jo olemassa. A wallet with this nickname already exists.'), _defineProperty(_fi$data, 'ERROR_14', '(error_15) Lompakkoa ei löytynyt. Wallet not found.'), _defineProperty(_fi$data, 'ERROR_15', '(error_16) Ei näytä että ehdotusta tällä ID:llä olisi vielä olemassa tai tapahtui virhe ehdotusta luettaessa. Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.'), _defineProperty(_fi$data, 'ERROR_16', '(error_17) Lompakko jolla on tämä osoite on jo muistissa. Ole hyvä ja tarkista oma lompakko sivusi. A wallet with this address already exists in storage. Please check your wallets page.'), _defineProperty(_fi$data, 'ERROR_17', '(error_18) Riittämätön saldo gas * hinta + arvo. Sinulla täytyy olla vähintään 0.01 ETHiä tililläsi kattaaksesi gasin hinnan. Ole hyvä ja lisää hieman ETHiä ja kokeile uudelleen. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fi$data, 'ERROR_18', '(error_19) Kaikki gas käytettäisiin tässä siirrossa. Tämä tarkoittaa että olet jo äänestänyt tässä ehdotuksessa tai debaatti aika on jo päättynyt. All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_fi$data, 'ERROR_19', '(error_20) Virheellinen merkki Please enter a valid symbol'), _defineProperty(_fi$data, 'ERROR_20', '(error_21) Not a valid ERC-20 token'), _defineProperty(_fi$data, 'ERROR_21', '(error_22) Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_fi$data, 'ERROR_22', '(error_23) Please enter a valid node name'), _defineProperty(_fi$data, 'ERROR_23', '(error_24) Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_fi$data, 'ERROR_24', '(error_25) Please enter a valid port.'), _defineProperty(_fi$data, 'ERROR_25', '(error_26) Please enter a valid chain ID.'), _defineProperty(_fi$data, 'ERROR_26', '(error_27) Please enter a valid ABI.'), _defineProperty(_fi$data, 'ERROR_27', '(error_28) Minimum amount: 0.01. Max amount:'), _defineProperty(_fi$data, 'ERROR_28', '(error_29) You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. '), _defineProperty(_fi$data, 'ERROR_29', '(error_30) Please enter a valid user and password.'), _defineProperty(_fi$data, 'ERROR_30', '(error_31) Please enter a valid name (7+ characters, limited punctuation)'), _defineProperty(_fi$data, 'ERROR_31', '(error_32) Please enter a valid secret phrase.'), _defineProperty(_fi$data, 'ERROR_32', '(error_33) Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_fi$data, 'ERROR_33', '(error_34) The wallet you have unlocked does not match the owner\'s address.'), _defineProperty(_fi$data, 'ERROR_34', '(error_35) The name you are attempting to reveal does not match the name you have entered.'), _defineProperty(_fi$data, 'ERROR_35', '(error_36) Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>'), _defineProperty(_fi$data, 'ERROR_36', '(error_37) Please enter a valid TX hash'), _defineProperty(_fi$data, 'ERROR_37', '(error_38) Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f'), _defineProperty(_fi$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_fi$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_fi$data, 'GETH_Balance', '(geth-01) Riittämätön saldo. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fi$data, 'GETH_Cheap', '(geth-02) Gasin hinta liian matala hyväksyttäväksi. Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_fi$data, 'GETH_GasLimit', '(geth-03) Ylittää blockin gas rajan. Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_fi$data, 'GETH_InsufficientFunds', '(geth-04) Riittämätön saldo gas * hinta + arvo. Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_fi$data, 'GETH_IntrinsicGas', '(geth-05) Olennainen gas liian pieni. Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_fi$data, 'GETH_InvalidSender', '(geth-06) Virheellinen lähettäjä. Invalid sender.'), _defineProperty(_fi$data, 'GETH_NegativeValue', '(geth-07) Negatiivinen arvo. Negative value.'), _defineProperty(_fi$data, 'GETH_Nonce', "(geth-08) Nonce liian pieni. This TX's [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_fi$data, 'GETH_NonExistentAccount', '(geth-09) Tiliä ei ole olemassa tai tilin saldo liian pieni. Account does not exist or account balance too low'), _defineProperty(_fi$data, 'PARITY_AlreadyImported', "(parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fi$data, 'PARITY_GasLimitExceeded', "(parity-02) Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_fi$data, 'PARITY_InsufficientBalance', "(parity-03) Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fi$data, 'PARITY_InsufficientGasPrice', "(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fi$data, 'PARITY_InvalidGasLimit', "(parity-05) Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_fi$data, 'PARITY_LimitReached', "(parity-06) There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fi$data, 'PARITY_Old', "(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_fi$data, 'PARITY_TooCheapToReplace', "(parity-08) TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_fi$data, 'SUCCESS_1', 'Validi osoite '), _defineProperty(_fi$data, 'SUCCESS_2', 'Lompakon salaus onnistuneesti purettu '), _defineProperty(_fi$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_fi$data, 'SUCCESS_4', 'Lompakkosi lisätty onnistuneesti '), _defineProperty(_fi$data, 'SUCCESS_5', 'Valittu Tiedosto '), _defineProperty(_fi$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_fi$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_fi$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_fi$data, 'translate_version', '0.4 '), _defineProperty(_fi$data, 'Translator_Desc', 'Kiitos kääntäjillemme... '), _defineProperty(_fi$data, 'TranslatorName_1', '[Smokyish](https://www.myetherwallet.com/?gaslimit=21000&to=0xac9a2c1dd946da64c0dc8e70cec2cfb14304fd4f&value=1.0#send-transaction)'), _defineProperty(_fi$data, 'TranslatorAddr_1', ''), _defineProperty(_fi$data, 'TranslatorName_2', ''), _defineProperty(_fi$data, 'TranslatorAddr_2', ''), _defineProperty(_fi$data, 'TranslatorName_3', ''), _defineProperty(_fi$data, 'TranslatorAddr_3', ''), _defineProperty(_fi$data, 'TranslatorName_4', ''), _defineProperty(_fi$data, 'TranslatorAddr_4', ''), _defineProperty(_fi$data, 'TranslatorName_5', ''), _defineProperty(_fi$data, 'TranslatorAddr_5', ''), _defineProperty(_fi$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_fi$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_fi$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_fi$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_fi$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_fi$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_fi$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_fi$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_fi$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_fi$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_fi$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_fi$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_fi$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_fi$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_fi$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_fi$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_fi$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_fi$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_fi$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_fi$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_fi$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_fi$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_fi$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_fi$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_fi$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_fi$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_fi$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_fi$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_fi$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_fi$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_fi$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_fi$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_fi$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_fi$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_fi$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_fi$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_fi$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_fi$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_fi$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_fi$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_fi$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_fi$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_fi$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_fi$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_fi$data, 'HELP_4_Desc_2', 'Navigate to the "Lähetä Etheriä ja Tokeneita" page. '), _defineProperty(_fi$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_fi$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_fi$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_fi$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_fi$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_fi$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_fi$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_fi$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_fi$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_fi$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_fi$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_fi$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Lähetä Etheriä ja Tokeneita" page. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_fi$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_fi$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_fi$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_fi$data, 'HELP_4CX_Desc_12', 'Using "Lähetä Etheriä ja Tokeneita" Page '), _defineProperty(_fi$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_fi$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_fi$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_fi$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_fi$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_fi$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_fi$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_fi$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_fi$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_fi$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_fi$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_fi$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_fi$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_fi$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_fi$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_fi$data, 'HELP_7_Desc_1', 'Navigate to the "Lähetä Etheriä ja Tokeneita" page. '), _defineProperty(_fi$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_fi$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_fi$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_fi$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_fi$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_fi$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_fi$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_fi$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_fi$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_fi$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_fi$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_fi$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_fi$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_fi$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_fi$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_fi$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_fi$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_fi$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_fi$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_fi$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_fi$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_fi$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_fi$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_fi$data, 'HELP_9_Title', '9) Is the "Lähetä Etheriä ja Tokeneita" page offline? '), _defineProperty(_fi$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_fi$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_fi$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_fi$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_fi$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_fi$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_fi$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_fi$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_fi$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_fi$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_fi$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_fi$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_fi$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_fi$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_fi$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_fi$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_fi$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_fi$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_fi$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_fi$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_fi$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_fi$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_fi$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_fi$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_fi$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_fi$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_fi$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_fi$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_fi$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_fi$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_fi$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_fi$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_fi$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_fi$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_fi$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_fi$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_fi$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_fi$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_fi$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_fi$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_fi$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_fi$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_fi$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_fi$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_fi$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_fi$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_fi$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_fi$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_fi$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_fi$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_fi$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_fi$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_fi$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_fi$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_fi$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_fi$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_fi$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_fi$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_fi$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_fi$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_fi$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_fi$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_fi$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_fi$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_fi$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_fi$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_fi$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_fi$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_fi$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_fi$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_fi$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_fi$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_fi$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_fi$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_fi$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_fi$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_fi$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_fi$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_fi$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _fi$data);
module.exports = fi;
},{}],113:[function(require,module,exports){
// French
'use strict';
var _fr$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var fr = function fr() {};
fr.code = 'fr';
fr.data = (_fr$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_fr$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_fr$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_fr$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_fr$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_fr$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_fr$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_fr$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_fr$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_fr$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_fr$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_fr$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_fr$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_fr$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_fr$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_fr$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_fr$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_fr$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_fr$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_fr$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_fr$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_fr$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_fr$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_fr$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_fr$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_fr$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_fr$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_fr$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_fr$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_fr$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_fr$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_fr$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_fr$data, 'x_CancelReplaceTx', 'Annuler ou remplacer la transaction'), _defineProperty(_fr$data, 'x_CancelTx', 'Annuler la transaction'), _defineProperty(_fr$data, 'x_PasswordDesc', 'Ce mot de passe va crypter votre clé privée. Ce n\'est pas une graine pour générer votre portefeuille. **Vous aurez besoin de ce mot de passe et de votre clé privée pour déverouiller votre portefeuille.**'), _defineProperty(_fr$data, 'x_ReadMore', 'En savoir plus'), _defineProperty(_fr$data, 'x_ReplaceTx', 'Remplacer la transaction'), _defineProperty(_fr$data, 'x_TransHash', 'Empreinte (_hash_) de transaction'), _defineProperty(_fr$data, 'x_TXFee', 'Frais de transaction'), _defineProperty(_fr$data, 'x_TxHash', 'Empreinte (_hash_) de transaction'), _defineProperty(_fr$data, 'NAV_CheckTxStatus', 'Vérifier le statut de la transaction'), _defineProperty(_fr$data, 'NAV_TxStatus', 'Statut de la transaction'), _defineProperty(_fr$data, 'tx_Details', 'Détails de transaction'), _defineProperty(_fr$data, 'tx_Summary', 'Pendant des périodes de volume important (comme pendant les ICOs les transactions peuvent rester en attente durant des heures, voire des jours. Cet outil cherche à vous donner la possibilité de trouver et d\'annuler / remplacer ces transactions. **Ce n\'est pas quelque chose de normalement faisable et vous ne devriez pas vous y fier. Cela ne marchera que lorsque les files d\'attente de transactions seront pleines. [Nous vous recommandons d\'en lire plus sur cet outil ici.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_fr$data, 'tx_notFound', 'Transaction non trouvée'), _defineProperty(_fr$data, 'tx_notFound_1', 'Cette transaction est introuvable dans la file d\'attente du nœud auquel vous êtes connecté.'), _defineProperty(_fr$data, 'tx_notFound_2', 'Si vous venez d\'envoyer la transaction, veuillez attendre 15 secondes et cliquez une nouvelle fois sur le bouton "Vérifier le statut de la transaction". '), _defineProperty(_fr$data, 'tx_notFound_3', 'La transaction pourrait toujours être en instance sur un autre nœud, en attente d\'être minée.'), _defineProperty(_fr$data, 'tx_notFound_4', 'Veuillez utiliser le menu déroulant en haut à droite & sélectionner un nœud ETH différent (par ex. `ETH (Etherscan.io)`, `ETH (Infura.io)` ou `ETH (MyEtherWallet)`) puis revérifiez.'), _defineProperty(_fr$data, 'tx_foundInPending', 'Transaction en attente trouvée'), _defineProperty(_fr$data, 'tx_foundInPending_1', 'Cette transaction a été retrouvée sur la file d\'attente du nœud auquel vous êtes connecté.'), _defineProperty(_fr$data, 'tx_foundInPending_2', 'Elle est pour l\'instant en attente d\'être minée.'), _defineProperty(_fr$data, 'tx_foundInPending_3', 'Il est probable que vous puissiez annuler ou remplacer cette transaction. Déverouillez ci-dessous votre portefeuille.'), _defineProperty(_fr$data, 'tx_FoundOnChain', 'Transaction trouvée'), _defineProperty(_fr$data, 'tx_FoundOnChain_1', 'Votre transaction a été minée avec succès et se trouve sur la blockchain.'), _defineProperty(_fr$data, 'tx_FoundOnChain_2', '**Si vous voyez un `( ! )` rouge, un message d\'erreur `BAD INSTRUCTION` ou `OUT OF GAS`**, cela signifie que votre transaction n\'a pas été *envoyée*. Vous ne pouvez pas annuler ou remplacer cette transaction. À la place, envoyez une nouvelle transaction. Si vous avez reçu une erreur de type "OUT OF GAS", vous devriez doubler la limite de Gas que vous aviez spécifiée.'), _defineProperty(_fr$data, 'tx_FoundOnChain_3', '**Si vous ne voyez pas d\'erreur, votre transaction a été envoyée avec succès.** Vos ETH ou Tokens sont à l\'endroit où vous les avez envoyés. Si vous ne voyez pas ces ETH ou Tokens dans votre autre portefeuille ou compte de plateforme de change, et si cela fait plus de 24 heures, veuillez [contacter ce service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Envoyez-leur le *lien* vers votre transaction et demandez, poliment, un examen de votre situation.'), _defineProperty(_fr$data, 'GEN_Help_1', 'Utiliser votre'), _defineProperty(_fr$data, 'GEN_Help_2', 'pour accéder à votre compte.'), _defineProperty(_fr$data, 'GEN_Help_3', 'Votre périphérique *est* votre portefeuille.'), _defineProperty(_fr$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_fr$data, 'GEN_Help_5', 'Comment créer un portefeuille'), _defineProperty(_fr$data, 'GEN_Help_6', 'Pour bien débuter'), _defineProperty(_fr$data, 'GEN_Help_7', 'Gardez-le en sécurité · Faites une sauvegarde · Ne le partagez avec personne · Ne le perdez pas · Il ne peut pas être récupéré si vous le perdez.'), _defineProperty(_fr$data, 'GEN_Help_8', 'Pas de téléchargement ?'), _defineProperty(_fr$data, 'GEN_Help_9', 'Essayez Google Chrome'), _defineProperty(_fr$data, 'GEN_Help_10', 'Clic droit & enregistrer sous. Nom de fichier: '), _defineProperty(_fr$data, 'GEN_Help_11', 'N\'ouvrez pas ce fichier sur votre ordinateur '), _defineProperty(_fr$data, 'GEN_Help_12', 'Utilisez-le pour déverouiller votre portefeuille avec MyEtherWallet (ou Mist, Geth, Parity et autres clients.) '), _defineProperty(_fr$data, 'GEN_Help_13', 'Comment sauvegarder votre fichier Keystore'), _defineProperty(_fr$data, 'GEN_Help_14', 'Quels sont ces différents formats? '), _defineProperty(_fr$data, 'GEN_Help_15', 'Eviter la perte &amp; ou le vol de vos biens.'), _defineProperty(_fr$data, 'GEN_Help_16', 'Quels sont ces différents formats ?'), _defineProperty(_fr$data, 'GEN_Help_17', 'Pourquoi dois-je faire ça ?'), _defineProperty(_fr$data, 'GEN_Help_18', 'Pour avoir une sauvegarde de secours.'), _defineProperty(_fr$data, 'GEN_Help_19', 'Au cas où vous oubliez votre mot de passe.'), _defineProperty(_fr$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_fr$data, 'GET_ConfButton', 'Je comprends. Continuer.'), _defineProperty(_fr$data, 'GEN_Label_5', 'Sauvegardez votre `clé privée`. '), _defineProperty(_fr$data, 'GEN_Unlock', 'Déverouillez votre portefeuille pour voir votre adresse.'), _defineProperty(_fr$data, 'GAS_PRICE_Desc', 'Le prix du Gas est le montant que vous payez par unité de Gas. `frais de transaction = prix du GAS x GAS limite` est payé aux mineurs pour inclure votre transaction dans un bloc. Prix de GAS plus haut = transaction plus rapide, mais plus coûteuse. Le prix par défaut est de `21 GWEI`.'), _defineProperty(_fr$data, 'GAS_LIMIT_Desc', 'Le GAS limite est le montant de GAS à envoyer avec votre transaction. `frais de transaction = prix du GAS * GAS limite` est payé aux mineurs pour inclure votre transaction dans un bloc. Augmenter ce nombre n\'exécutera pas votre transaction plus rapidement. Envoyer ETH : `21000`. Envoyer des Tokens : ~`200000`.'), _defineProperty(_fr$data, 'NONCE_Desc', 'Le nonce est le nombre de transactions envoyées depuis une adresse. Il fait en sorte que les transactions sont envoyées en ordre et pas plus d\'une fois.'), _defineProperty(_fr$data, 'TXFEE_Desc', 'Les frais de transaction sont payés aux mineurs pour inclure votre transaction dans un bloc. Cela représente le `GAS limite` * le `prix du GAS`. [Vous pouvez convertir GWEI -> ETH ici.](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_fr$data, 'NAV_AddWallet', 'Ajouter un portefeuille '), _defineProperty(_fr$data, 'NAV_BulkGenerate', 'Générer des portefeuilles par lots '), _defineProperty(_fr$data, 'NAV_Contact', 'Contact '), _defineProperty(_fr$data, 'NAV_Contracts', 'Contrats '), _defineProperty(_fr$data, 'NAV_DeployContract', 'Déployer un contrat '), _defineProperty(_fr$data, 'NAV_ENS', 'ENS'), _defineProperty(_fr$data, 'NAV_GenerateWallet_alt', 'Nouveau portefeuille '), _defineProperty(_fr$data, 'NAV_GenerateWallet', 'Générer un portefeuille '), _defineProperty(_fr$data, 'NAV_Help', 'Aide '), _defineProperty(_fr$data, 'NAV_InteractContract', 'Interagir avec un contrat '), _defineProperty(_fr$data, 'NAV_Multisig', 'Multisign.'), _defineProperty(_fr$data, 'NAV_MyWallets', 'Mes portefeuilles '), _defineProperty(_fr$data, 'NAV_Offline', 'Envoi hors-ligne '), _defineProperty(_fr$data, 'NAV_SendEther', 'Envoyer des Ether et des Tokens '), _defineProperty(_fr$data, 'NAV_SendTokens', 'Envoyer des Tokens '), _defineProperty(_fr$data, 'NAV_SignMsg', 'Signer un message '), _defineProperty(_fr$data, 'NAV_Swap', 'Échanger '), _defineProperty(_fr$data, 'NAV_ViewWallet', 'Visualiser un portefeuille '), _defineProperty(_fr$data, 'NAV_YourWallets', 'Vos portefeuilles '), _defineProperty(_fr$data, 'x_Access', 'Accès '), _defineProperty(_fr$data, 'x_AddessDesc', 'Aussi appelée `adresse` ou `clé publique`. C\'est ce que vous donnez aux gens pour qu\'ils puissent vous envoyer des Ether ou des Tokens. Remarquez l\'icône colorée. Cette icône doit être identique quand vous entrez votre adresse quelque part.'), _defineProperty(_fr$data, 'x_Address', 'Votre adresse '), _defineProperty(_fr$data, 'x_Cancel', 'Annuler '), _defineProperty(_fr$data, 'x_CSV', 'Fichier CSV (non-chiffré) '), _defineProperty(_fr$data, 'x_Download', 'Télécharger '), _defineProperty(_fr$data, 'x_Json', 'Fichier JSON (non-chiffré) '), _defineProperty(_fr$data, 'x_JsonDesc', 'C\'est la version non-chiffrée au format JSON de votre clé privée. Cela signifie que vous n\'avez pas besoin de votre mot de passe pour l\'utiliser mais que toute personne qui trouve ce JSON peut accéder à votre portefeuille et vos Ether sans mot de passe. '), _defineProperty(_fr$data, 'x_Keystore', 'Fichier Keystore (UTC / JSON · Recommandé · Chiffré) '), _defineProperty(_fr$data, 'x_Keystore2', 'Fichier Keystore (UTC / JSON) '), _defineProperty(_fr$data, 'x_KeystoreDesc', 'Ce fichier Keystore utilise le même format que Mist, vous pouvez donc facilement l\'importer plus tard dans ce client. C\'est le fichier que nous vous recommandons de télécharger et de garder en sécurité. '), _defineProperty(_fr$data, 'x_Ledger', 'Ledger (Portefeuille matériel)'), _defineProperty(_fr$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_fr$data, 'x_Mnemonic', 'Phrase mnémonique '), _defineProperty(_fr$data, 'x_ParityPhrase', 'Phrase Parity '), _defineProperty(_fr$data, 'x_Password', 'Mot de passe '), _defineProperty(_fr$data, 'x_Print', 'Imprimer un portefeuille papier '), _defineProperty(_fr$data, 'x_PrintDesc', 'Astuce : Cliquez sur Imprimer et sauvegardez le portefeuille papier en PDF, même si vous n\'avez pas d\'imprimante !'), _defineProperty(_fr$data, 'x_PrintShort', 'Imprimer '), _defineProperty(_fr$data, 'x_PrivKey', 'Clé privée (non-chiffrée) '), _defineProperty(_fr$data, 'x_PrivKey2', 'Clé privée '), _defineProperty(_fr$data, 'x_PrivKeyDesc', 'C\'est la version textuelle non-chiffrée de votre clé privée, ce qui signifie qu\'aucun mot de passe n\'est nécessaire pour l\'utiliser. Si quelqu\'un venait à découvrir cette clé privée, il pourrrait accéder à votre portefeuille sans mot de passe. Pour cette raison, la version chiffrée de votre clé privée est recommandée. '), _defineProperty(_fr$data, 'x_Save', 'Sauvegarder '), _defineProperty(_fr$data, 'x_TXT', 'Fichier TXT (non-chiffré) '), _defineProperty(_fr$data, 'x_Wallet', 'Portefeuille '), _defineProperty(_fr$data, 'MEW_Warning_1', 'Vérifiez toujours l\'URL avant d\'accéder à votre portefeuille ou d\'en générer un nouveau. Attentions aux sites de phishing !'), _defineProperty(_fr$data, 'CX_Warning_1', 'Assurez vous d\'avoir une **sauvegarde externe** de tout portefeuille que vous gérez ici. De nombreux événements peuvent vous faire perdre les données de cette extension Chrome, y compris la dédinstallation et la réinstallation de l\'extension. Cette extension est une manière d\'accéder facilement à vos portefeuilles, **pas** une façon de les sauvegarder. '), _defineProperty(_fr$data, 'MEW_Tagline', 'Portefeuille d\'Ether Open Source, écrit en JavaScript'), _defineProperty(_fr$data, 'CX_Tagline', 'Extension Chrome de portefeuille d\'Ether Open Source JavaScript'), _defineProperty(_fr$data, 'FOOTER_1', 'Un outil open source, écrit en Javascript, qui permet de générer des portefeuilles Ethereum et d\'envoyer des transactions. '), _defineProperty(_fr$data, 'FOOTER_1b', 'Créé par '), _defineProperty(_fr$data, 'FOOTER_2', 'Les donations sont extrêmement appréciées : '), _defineProperty(_fr$data, 'FOOTER_3', 'Génération de portefeuille par '), _defineProperty(_fr$data, 'FOOTER_4', 'Avertissement '), _defineProperty(_fr$data, 'sidebar_AccountInfo', 'Informations du compte '), _defineProperty(_fr$data, 'sidebar_AccountAddr', 'Adresse du compte '), _defineProperty(_fr$data, 'sidebar_AccountBal', 'Solde du compte '), _defineProperty(_fr$data, 'sidebar_TokenBal', 'Solde en tokens '), _defineProperty(_fr$data, 'sidebar_Equiv', 'Valeur correspondante '), _defineProperty(_fr$data, 'sidebar_TransHistory', 'Historique des transactions '), _defineProperty(_fr$data, 'sidebar_donation', 'MyEtherWallet est un service gratuit et open source respectueux de votre vie privée et de votre sécurité. Plus nous recevons de donations, plus nous dédions de temps à développer de nouvelles fonctionnalités, à écouter vos retours et à vous fournir ce dont vous avez besoin. Nous ne sommes que deux personnes qui essayent de changer le monde. Aidez-nous !'), _defineProperty(_fr$data, 'sidebar_donate', 'Faire une donation '), _defineProperty(_fr$data, 'sidebar_thanks', 'MERCI !!! '), _defineProperty(_fr$data, 'sidebar_DisplayOnTrezor', 'Afficher l\'adresse sur TREZOR'), _defineProperty(_fr$data, 'sidebar_DisplayOnLedger', 'Afficher l\'adresse sur Ledger'), _defineProperty(_fr$data, 'decrypt_Access', 'Comment voulez-vous accéder à votre portefeuille ? '), _defineProperty(_fr$data, 'decrypt_Title', 'Choisissez le format de votre clé privée '), _defineProperty(_fr$data, 'decrypt_Select', 'Choisissez un portefeuille : '), _defineProperty(_fr$data, 'ADD_Label_1', 'Que voulez-vous faire ?'), _defineProperty(_fr$data, 'ADD_Radio_1', 'Générer un nouveau portefeuille'), _defineProperty(_fr$data, 'ADD_Radio_2', 'Choisissez le fichier de votre portefeuille (Keystore / JSON)'), _defineProperty(_fr$data, 'ADD_Radio_2_alt', 'Choisissez le fichier du portefeuille'), _defineProperty(_fr$data, 'ADD_Radio_2_short', 'CHOISISSEZ LE FICHIER DU PORTEFEUILLE...'), _defineProperty(_fr$data, 'ADD_Radio_3', 'Collez/saisissez votre clé privée'), _defineProperty(_fr$data, 'ADD_Radio_4', 'Ajoutez un compte'), _defineProperty(_fr$data, 'ADD_Radio_5', 'Collez/entrez votre phrase mnémonique'), _defineProperty(_fr$data, 'ADD_Radio_5_Path', 'Selectionnez le checmin d\'accès'), _defineProperty(_fr$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_fr$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_fr$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_fr$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_fr$data, 'ADD_Radio_5_PathCustom', 'Personnalisé'), _defineProperty(_fr$data, 'ADD_Label_2', 'Nommez votre compte : '), _defineProperty(_fr$data, 'ADD_Label_3', 'Votre fichier est chiffré, merci de saisir le mot de passe '), _defineProperty(_fr$data, 'ADD_Label_4', 'Ajouter un compte au répertoire'), _defineProperty(_fr$data, 'ADD_Warning_1', 'Vous pouvez ajouter n\'importe quel compte pour l\'afficher dans l\'onglet "portefeuilles" sans uploader une clé privée. Cela ne veut **pas** dire que vous aurez accès à ce portefeuille, ni que vous pouvez transférer des Ether depuis ce portefeuille. '), _defineProperty(_fr$data, 'ADD_Label_5', 'Entrez l\'adresse'), _defineProperty(_fr$data, 'ADD_Label_6', 'Déverrouillez votre portefeuille'), _defineProperty(_fr$data, 'ADD_Label_6_short', 'Déverrouillez'), _defineProperty(_fr$data, 'ADD_Label_7', 'Ajouter un compte'), _defineProperty(_fr$data, 'ADD_Label_8', 'Mot de passe (optionnel) :'), _defineProperty(_fr$data, 'GEN_desc', 'Si vous voulez générer plusieurs portefeuilles, vous pourrez le faire ici'), _defineProperty(_fr$data, 'GEN_Label_1', 'Entrez un mot de passe fort (d\'au moins 9 caractères)'), _defineProperty(_fr$data, 'GEN_Placeholder_1', 'N\'oubliez PAS de sauvegarder ceci !'), _defineProperty(_fr$data, 'GEN_SuccessMsg', 'Succès ! Votre portefeuille a été généré.'), _defineProperty(_fr$data, 'GEN_Label_2', 'Sauvegardez votre fichier Keystore ou votre clé privée. N\'oubliez pas votre mot de passe.'), _defineProperty(_fr$data, 'GEN_Label_3', 'Sauvegarder votre portefeuille.'), _defineProperty(_fr$data, 'GEN_Label_4', 'Optionnel: Imprimez votre portefeuille papier ou conserver une version en QR-code.'), _defineProperty(_fr$data, 'BULK_Label_1', 'Nombre de portefeuilles à générer'), _defineProperty(_fr$data, 'BULK_Label_2', 'Générer les portefeuilles'), _defineProperty(_fr$data, 'BULK_SuccessMsg', 'Succès ! Vos portefeuilles ont été générés.'), _defineProperty(_fr$data, 'SEND_addr', 'Adresse de destination'), _defineProperty(_fr$data, 'SEND_amount', 'Montant à envoyer'), _defineProperty(_fr$data, 'SEND_amount_short', 'Montant'), _defineProperty(_fr$data, 'SEND_custom', 'Token personnalisé'), _defineProperty(_fr$data, 'SEND_gas', 'GAS'), _defineProperty(_fr$data, 'SEND_TransferTotal', 'Envoyer tout'), _defineProperty(_fr$data, 'SEND_generate', 'Générer la transaction'), _defineProperty(_fr$data, 'SEND_raw', 'Transaction brute'), _defineProperty(_fr$data, 'SEND_signed', 'Transaction signée'), _defineProperty(_fr$data, 'SEND_trans', 'Envoyer la transaction'), _defineProperty(_fr$data, 'SENDModal_Title', 'Attention !'), _defineProperty(_fr$data, 'SENDModal_Content_1', 'Vous êtes sur le point d\'envoyer'), _defineProperty(_fr$data, 'SENDModal_Content_2', 'à l\'adresse'), _defineProperty(_fr$data, 'SENDModal_Content_3', 'Voulez-vous vraiment le faire ?'), _defineProperty(_fr$data, 'SENDModal_Content_4', 'NOTE : Si vous renontrez une erreur, il est très probable que vous deviez ajouter des Ether à votre compte pour couvrir les coûts (en GAS) d\'envoi des Tokens. Le GAS est payé en Ether.'), _defineProperty(_fr$data, 'SENDModal_No', 'Non, je veux sortir d\'ici !'), _defineProperty(_fr$data, 'SENDModal_Yes', 'Oui, je le veux ! Effectuer la transaction.'), _defineProperty(_fr$data, 'TOKEN_Addr', 'Adresse'), _defineProperty(_fr$data, 'TOKEN_Symbol', 'Symbole du Token'), _defineProperty(_fr$data, 'TOKEN_Dec', 'Décimales'), _defineProperty(_fr$data, 'TOKEN_show', 'Montrer tous les Tokens'), _defineProperty(_fr$data, 'TOKEN_hide', 'Cacher les Tokens'), _defineProperty(_fr$data, 'TRANS_desc', 'Si vous voulez envoyer des Tokens, allez plutôt à la page "Envoi de Tokens".'), _defineProperty(_fr$data, 'TRANS_warning', 'L\'emploi des fonctions "ETH seulement" et "ETC seulement" vous fait passer par un contrat. Certains services ont des problèmes avec ces transactions. En savoir plus.'), _defineProperty(_fr$data, 'TRANS_advanced', '+ Avancé : Ajouter des données'), _defineProperty(_fr$data, 'TRANS_data', 'Données'), _defineProperty(_fr$data, 'TRANS_sendInfo', 'Une transaction standard utilisant 21000 GAS coûtera 0,000441 ETH. Le prix du GAS, de 0.000000021 ETH, que nous avons choisi est légèrement supérieur au minimum assurant une confirmation rapide. Nous ne prenons pas de frais de transaction.'), _defineProperty(_fr$data, 'TRANS_gas', 'GAS limite'), _defineProperty(_fr$data, 'TRANSModal_Title', 'Transactions "ETH seulement" et "ETC seulement"'), _defineProperty(_fr$data, 'TRANSModal_Content_0', 'Note sur les transactions et services divers :'), _defineProperty(_fr$data, 'TRANSModal_Content_1', '**ETH (Transaction standard) :** Génère une transaction standard depuis une adresse directement vers une autre. Son GAS par défaut est de 21000. Il est probable que toute transaction d\'ETH envoyée de cette manière sera réexécutée sur la chaîne ETC.'), _defineProperty(_fr$data, 'TRANSModal_Content_2', '**ETH seulement :** Envoi à travers le [contrat anti-réexécution de Timon Rapp (recommandé par VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) afin de n\'envoyer que sur la chaîne **ETH**.'), _defineProperty(_fr$data, 'TRANSModal_Content_3', '**ETC seulement : **Envoi à travers le [contrat anti-réexécution de Timon Rapp (recommandé par VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) afin de n\'envoyer que sur la chaîne **ETC**.'), _defineProperty(_fr$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift :** N\'envoyer que par transaction standard. Si vous utilisez les contrats d\'envoi sur une seule chaîne, vous devrez contacter leur équipe de support pour ajouter manuellement la somme à votre solde ou pour vous rembourser. [Vous pouvez aussi essayer l\'outil "split" de Shapeshift.](https://split.shapeshift.io/)'), _defineProperty(_fr$data, 'TRANSModal_Content_5', '**Kraken & Poloniex :** Pas de problème connu. Utilisez ce que vous voulez.'), _defineProperty(_fr$data, 'TRANSModal_Yes', 'Génial, j\'ai compris !'), _defineProperty(_fr$data, 'TRANSModal_No', 'Aïe ! Je comprends de moins en moins. Aidez-moi !'), _defineProperty(_fr$data, 'OFFLINE_Title', 'Générer et envoyer une transaction hors ligne'), _defineProperty(_fr$data, 'OFFLINE_Desc', 'La génération d\'une transaction hors ligne s\'effectue en trois étapes. Les étapes 1 et 3 sont réalisées sur un ordinateur en ligne et l\'étape 2 sur un ordinateur déconnecté du réseau. Cela permet d\'isoler totalement vos clefs privées de toute machine connectée à Internet.'), _defineProperty(_fr$data, 'OFFLLINE_Step1_Title', 'Étape 1 : Génération de l\'information (ordinateur en ligne) '), _defineProperty(_fr$data, 'OFFLINE_Step1_Button', 'Générer l\'information'), _defineProperty(_fr$data, 'OFFLINE_Step1_Label_1', 'Addresse d\'émission'), _defineProperty(_fr$data, 'OFFLINE_Step1_Label_2', 'Note : Il s\'agit de l\'adresse de départ, pas de l\'adresse d\'arrivée. Le nonce est généré à partir du compte de l\'expéditeur. Si on utilise une machine déconnectée du réseau, cette adresse est celle du compte en _Cold Storage_.'), _defineProperty(_fr$data, 'OFFLINE_Step2_Title', 'Étape 2 : Génération de la transaction (ordinateur hors ligne)'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_1', 'Adresse de destination'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_2', 'Valeur / montant à envoyer'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_3', 'Prix du GAS'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_3b', 'Ce montant était affiché à l\'étape 1 sur votre ordinateur en ligne.'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_4', 'GAS limite'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_4b', '21000 est la limite par défaut. En cas d\'envoi vers des contrats ou avec des données supplémentaires, cette valeur peut être différente. Tout GAS non consommé vous sera renvoyé.'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_5', 'Nonce'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_5b', 'Cette valeur a été affichée à l\'étape 1 sur votre ordinateur en ligne.'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_6', 'Données'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_6b', 'Cette zone est optionnelle. Les données sont souvent ajoutées lors de transactions vers des contrats.'), _defineProperty(_fr$data, 'OFFLINE_Step2_Label_7', 'Entrez ou sélectionnez votre clef privée / fichier JSON.'), _defineProperty(_fr$data, 'OFFLINE_Step3_Title', 'Étape 3 : Envoyer / publier la transaction (ordinateur en ligne)'), _defineProperty(_fr$data, 'OFFLINE_Step3_Label_1', 'Copier ici la transaction signée à l\'étape 2 et cliquez sur le bouton "ENVOYER LA TRANSACTION".'), _defineProperty(_fr$data, 'MSG_message', 'Message'), _defineProperty(_fr$data, 'MSG_date', 'Date'), _defineProperty(_fr$data, 'MSG_signature', 'Signature'), _defineProperty(_fr$data, 'MSG_verify', 'Verifier le message'), _defineProperty(_fr$data, 'MSG_info1', 'Inclure la date courante afin que la signature ne puisse pas être réutilisée à un autre moment.'), _defineProperty(_fr$data, 'MSG_info2', 'Inclure votre surnom et là où vous l\'utilisez afin que personne d\'autre ne puisse l\'utiliser.'), _defineProperty(_fr$data, 'MSG_info3', 'Inclure une raison spécifique pour le message afin qu\'il ne puisse pas être réutilisé dans un contexte différent.'), _defineProperty(_fr$data, 'MYWAL_Nick', 'Nom du portefeuille'), _defineProperty(_fr$data, 'MYWAL_Address', 'Adresse du portefeuille'), _defineProperty(_fr$data, 'MYWAL_Bal', 'Solde'), _defineProperty(_fr$data, 'MYWAL_Edit', 'Modifier'), _defineProperty(_fr$data, 'MYWAL_View', 'Voir'), _defineProperty(_fr$data, 'MYWAL_Remove', 'Supprimer'), _defineProperty(_fr$data, 'MYWAL_RemoveWal', 'Supprimer le portefeuille :'), _defineProperty(_fr$data, 'MYWAL_WatchOnly', 'Vos comptes en affichage uniquement'), _defineProperty(_fr$data, 'MYWAL_Viewing', 'Affichage des portefeuilles'), _defineProperty(_fr$data, 'MYWAL_Hide', 'Cacher les informations sur le portefeuille'), _defineProperty(_fr$data, 'MYWAL_Edit_2', 'Modifier le portefeuille'), _defineProperty(_fr$data, 'MYWAL_Name', 'Nom du portefeuille'), _defineProperty(_fr$data, 'MYWAL_Content_1', 'Attention ! Vous êtes sur le point de supprimer votre portefeuille'), _defineProperty(_fr$data, 'MYWAL_Content_2', 'Assurez-vous d\'avoir bien **sauvegardé la clé privée / fichier JSON et le mot de passe** associé à ce portefeuille avant de le supprimer.'), _defineProperty(_fr$data, 'MYWAL_Content_3', 'Si vous voulez utiliser ce portefeuille avec MyEtherWallet CX à l\'avenir, vous devrez le rajouter manuellement en utilisant la clé privée / fichier JSON et le mot de passe.'), _defineProperty(_fr$data, 'VIEWWALLET_Subtitle', 'Ceci vous permet de télécharger plusieurs versions des clefs privées et d\'imprimer votre portefeuille papier. Vous devrez le faire pour [importer votre compte dans Geth / Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Si vous voulez seulement consulter votre solde, nous recommandons d\'utiliser un explorateur de blockchain comme [etherscan.io](https://etherscan.io/).'), _defineProperty(_fr$data, 'VIEWWALLET_Subtitle_Short', 'Ceci vous permet de télécharger plusieurs versions des clefs privées et d\'imprimer votre portefeuille papier.'), _defineProperty(_fr$data, 'VIEWWALLET_SuccessMsg', 'Réussi ! Voici les détails de votre portefeuille :'), _defineProperty(_fr$data, 'VIEWWALLET_ShowPrivKey', '(montrer)'), _defineProperty(_fr$data, 'VIEWWALLET_HidePrivKey', '(cacher)'), _defineProperty(_fr$data, 'MNEM_1', 'Sélectionnez l\'adresse avec laquelle vous désirez interagir.'), _defineProperty(_fr$data, 'MNEM_2', 'Votre phrase mnémonique HD unique peut accéder à un certain nombre de portefeuilles/adresses. Sélectionnez l\'adresse avec laquelle vous désirez interagir actuellement.'), _defineProperty(_fr$data, 'MNEM_more', 'Plus d\'adresses'), _defineProperty(_fr$data, 'MNEM_prev', 'Adresses précédentes'), _defineProperty(_fr$data, 'ADD_Ledger_1', 'Connectez votre portefeuille Ledger'), _defineProperty(_fr$data, 'ADD_Ledger_2', 'Ouvrez l\'application Ethereum (ou une application de contrat)'), _defineProperty(_fr$data, 'ADD_Ledger_2_Exp', 'Ouvrez l\'application Expanse (ou une application de contrat) '), _defineProperty(_fr$data, 'ADD_Ledger_2_Ubq', 'Ouvrez l\'application Ubiq (ou une application de contrat) '), _defineProperty(_fr$data, 'ADD_Ledger_3', 'Vérifiez que l\'option Browser Support est activée dans Settings'), _defineProperty(_fr$data, 'ADD_Ledger_scan', 'Se connecter au portefeuille Ledger'), _defineProperty(_fr$data, 'ADD_Ledger_4', 'Si l\'option Browser Support n\'est pas présente dans Settings, vérifiez que vous avez le [Firmware 1.2 ou plus récent](https://www.ledgerwallet.com/apps/manager).'), _defineProperty(_fr$data, 'ADD_Ledger_0a', 'Rouvrir MyEtherWallet sur une connexion sécurisée (SSL)'), _defineProperty(_fr$data, 'ADD_Ledger_0b', 'Rouvrir MyEtherWallet avec [Chrome](https://www.google.com/chrome/browser/desktop/) ou [Opera](https://www.opera.com/)'), _defineProperty(_fr$data, 'ADD_MetaMask', 'Connexion à MetaMask'), _defineProperty(_fr$data, 'x_Trezor', 'TREZOR'), _defineProperty(_fr$data, 'ADD_Trezor_scan', 'Connexion à TREZOR'), _defineProperty(_fr$data, 'ADD_Trezor_select', 'Ceci est une graine (_seed_) TREZOR'), _defineProperty(_fr$data, 'ADD_Trezor_select', 'Ceci est une graine (_seed_) TREZOR'), _defineProperty(_fr$data, 'x_DigitalBitbox', 'Digital Bitbox'), _defineProperty(_fr$data, 'ADD_DigitalBitbox_0a', 'Rouvrir MyEtherWallet sur une connexion sécurisée (SSL)'), _defineProperty(_fr$data, 'ADD_DigitalBitbox_0b', 'Rouvrir MyEtherWallet avec [Chrome](https://www.google.com/chrome/browser/desktop/) ou [Opera](https://www.opera.com/)'), _defineProperty(_fr$data, 'ADD_DigitalBitbox_scan', 'Se connecter au Digital Bitbox'), _defineProperty(_fr$data, 'CX_error_1', 'Vous n\'avez pas de portefeuille sauvegardé. Cliquez sur ["Ajout de portefeuilles"](/cx-wallet.html#add-wallet) pour en ajouter un !'), _defineProperty(_fr$data, 'CX_quicksend', 'Envoyer'), _defineProperty(_fr$data, 'NODE_Title', 'Ajouter votre nœud personnalisé'), _defineProperty(_fr$data, 'NODE_Subtitle', 'Connexion à un nœud local…'), _defineProperty(_fr$data, 'NODE_Warning', 'Votre nœud doit être en HTTPS pour vous y connecter via MyEtherWallet.com. Vous pouvez [télécharger MyEtherWallet et le lancer localement](https://github.com/kvhnuke/etherwallet/releases/latest) pour vous connecter à un nœud quelconque, ou obtenir un certificat SSL gratuit via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_fr$data, 'NODE_Name', 'Nom du nœud'), _defineProperty(_fr$data, 'NODE_Port', 'Port du nœud'), _defineProperty(_fr$data, 'NODE_CTA', 'Sauvegarder et utiliser le nœud personnalisé'), _defineProperty(_fr$data, 'CONTRACT_Title', 'Adresse du contrat'), _defineProperty(_fr$data, 'CONTRACT_Title_2', 'Sélectionner un contrat existant'), _defineProperty(_fr$data, 'CONTRACT_Json', 'Interface ABI / JSON'), _defineProperty(_fr$data, 'CONTRACT_Interact_Title', 'Lecture / écriture de contrat'), _defineProperty(_fr$data, 'CONTRACT_Interact_CTA', 'Sélectionnez une fonction'), _defineProperty(_fr$data, 'CONTRACT_ByteCode', 'Bytecode'), _defineProperty(_fr$data, 'CONTRACT_Read', 'LIRE'), _defineProperty(_fr$data, 'CONTRACT_Write', 'ÉCRIRE'), _defineProperty(_fr$data, 'DEP_generate', 'Générer le bytecode'), _defineProperty(_fr$data, 'DEP_generated', 'Bytecode généré'), _defineProperty(_fr$data, 'DEP_signtx', 'Signer la transaction'), _defineProperty(_fr$data, 'DEP_interface', 'Interface générée'), _defineProperty(_fr$data, 'SWAP_rates', "Taux actuels"), _defineProperty(_fr$data, 'SWAP_init_1', "Je veux échanger"), _defineProperty(_fr$data, 'SWAP_init_2', " contre"), _defineProperty(_fr$data, 'SWAP_init_CTA', "Allons-y !"), _defineProperty(_fr$data, 'SWAP_information', "Vos informations "), _defineProperty(_fr$data, 'SWAP_send_amt', "Montant à envoyer "), _defineProperty(_fr$data, 'SWAP_rec_amt', "Montant à recevoir "), _defineProperty(_fr$data, 'SWAP_your_rate', "Votre taux "), _defineProperty(_fr$data, 'SWAP_rec_add', "Votre adresse de réception "), _defineProperty(_fr$data, 'SWAP_start_CTA', "Commencer l\'échange "), _defineProperty(_fr$data, 'SWAP_ref_num', "Votre numéro de référence "), _defineProperty(_fr$data, 'SWAP_time', "Temps restant pour l\'envoi "), _defineProperty(_fr$data, 'SWAP_elapsed', "Temps passé depuis l\'envoi "), _defineProperty(_fr$data, 'SWAP_progress_1', "Ordre déclenché "), _defineProperty(_fr$data, 'SWAP_progress_2', "En attente de vos "), _defineProperty(_fr$data, 'SWAP_progress_3', "reçu !"), _defineProperty(_fr$data, 'SWAP_progress_4', "Envoi de vos {{orderResult.output.currency}}"), _defineProperty(_fr$data, 'SWAP_progress_5', "Ordre exécuté"), _defineProperty(_fr$data, 'SWAP_order_CTA', "Envoyer "), _defineProperty(_fr$data, 'SWAP_unlock', "Déverrouillez votre portefeuille pour envoyer des ETH ou des tokens directement depuis cette page."), _defineProperty(_fr$data, 'ERROR_0', '(error_01) Please enter a valid amount. Veuillez entrer un montant valide. '), _defineProperty(_fr$data, 'ERROR_1', '(error_02) Your password must be at least 9 characters. Please ensure it is a strong password. Votre mot de passe doit être composé d\'au moins 9 caractères. Assurez-vous qu\'il s\'agisse d\'un mot de passe fort.'), _defineProperty(_fr$data, 'ERROR_2', '(error_03) Sorry! We don\'t recognize this type of wallet file. Désolé ! Notre service ne permet pas de gérer ce type de fichier de portefeuille. '), _defineProperty(_fr$data, 'ERROR_3', '(error_04) This is not a valid wallet file. Ceci n\'est pas un fichier de portefeuille. '), _defineProperty(_fr$data, 'ERROR_4', '(error_05) This unit doesn\'t exists, please use the one of the following units Cette unité n\'existe pas, merci d\'utiliser une des unités suivantes '), _defineProperty(_fr$data, 'ERROR_5', '(error_06) Please enter a valid address. Veuillez entrer une adresse valide. '), _defineProperty(_fr$data, 'ERROR_6', '(error_07) Please enter a valid password. Veuillez entrer un mot de passe valide. '), _defineProperty(_fr$data, 'ERROR_7', '(error_08) Please enter valid decimals (Must be an integer. Try 0-18.) Veuillez entrer un montant valide. (Must be integer. Try 0-18.) '), _defineProperty(_fr$data, 'ERROR_8', '(error_09) Please enter a valid gas limit (Must be an integer. Try 21000-4000000.) Veuillez entrer une limite de Gas valide. (Must be integer. Try 21000-4000000.) '), _defineProperty(_fr$data, 'ERROR_9', '(error_10) Please enter a valid data value (Must be hex.) Veuillez entrer des donnnées valides (en héxadécimal).'), _defineProperty(_fr$data, 'ERROR_10', '(error_11) Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.) Veuillez entrer un montant de Gas valide (une valeur entière. Essayez 20 Gwei, soit 20000000000 wei).'), _defineProperty(_fr$data, 'ERROR_11', '(error_12) Please enter a valid nonce (Must be an integer.) Veuillez entrer un nonce valide (nombre entier).'), _defineProperty(_fr$data, 'ERROR_12', '(error_13) Invalid signed transaction. Transaction signée invalide.'), _defineProperty(_fr$data, 'ERROR_13', '(error_14) A wallet with this nickname already exists. Un portefeuille portant ce nom existe déjà.'), _defineProperty(_fr$data, 'ERROR_14', '(error_15) Wallet not found. Portefeuille non trouvé.'), _defineProperty(_fr$data, 'ERROR_15', '(error_16) Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. Il semblerait qu\'aucune proposition n\'existe avec cet identifiant ou qu\'il y a eu une erreur lors de la consultation de cette proposition.'), _defineProperty(_fr$data, 'ERROR_16', '(error_17) A wallet with this address already exists in storage. Please check your wallets page. Un portefeuille avec cette adresse existe déja. Merci de consulter la liste de vos portefeuilles.'), _defineProperty(_fr$data, 'ERROR_17', '(error_18) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html) Fonds insuffisants. Le compte duquel vous essayez d\'envoyer la transaction ne possède pas assez de fonds. Il vous faut au moins 0,01 ether sur votre compte pour couvrir les frais de Gas. Ajoutez des ethers et réessayez.'), _defineProperty(_fr$data, 'ERROR_18', '(error_19) All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended. Tout le Gas serait consommé lors de cette transaction. Cela signifie que vous avez déjà voté pour cette proposition ou que la période du débat est terminée.'), _defineProperty(_fr$data, 'ERROR_19', '(error_20) Please enter a valid symbol Veuillez entrer un symbole valide.'), _defineProperty(_fr$data, 'ERROR_20', '(error_21) Not a valid ERC-20 token n\'est pas un token ERC-20 valide. Si d\'autres tokens sont en train de se charger, enlevez celui-ci et réessayez.'), _defineProperty(_fr$data, 'ERROR_21', '(error_22) Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative. Impossible d\'estimer le Gas. Il n\'y a pas assez de fonds sur le compte, ou l\'adresse du contrat de réception a renvoyé une erreur. Vous pouvez ajuster vous-même le Gas et recommencer. Le message d\'erreur à l\'envoi peut comporter plus d\'informations.'), _defineProperty(_fr$data, 'ERROR_22', '(error_23) Please enter a valid node name Veuillez entrer un nom de nœud valide.'), _defineProperty(_fr$data, 'ERROR_23', '(error_24) Please enter a valid URL. If you are on https, your URL must be https Veuillez entrer une URL valide ; si vous êtes en HTTPS, votre URL doit être en https.'), _defineProperty(_fr$data, 'ERROR_24', '(error_25) Please enter a valid port. Veuillez entrer un port valide.'), _defineProperty(_fr$data, 'ERROR_25', '(error_26) Please enter a valid chain ID. Veuillez entrer un ID de chaîne valide.'), _defineProperty(_fr$data, 'ERROR_26', '(error_27) Please enter a valid ABI. Veuillez entrer une ABI valide.'), _defineProperty(_fr$data, 'ERROR_27', '(error_28) Minimum amount: 0.01. Max amount: Montant minimum : 0.01. Montant maximum : '), _defineProperty(_fr$data, 'ERROR_28', '(error_29) You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. **Vous avez besoin de votre fichier Keystore et du mot de passe** (ou de la clé privée) pour accéder à ce portefeuille à l\'avenir. Merci de le télécharger et d\'en faire une sauvegarde externe. Il n\'existe aucun moyen de récupérer un portefeuille si vous ne le sauvegardez pas. Merci de lire la [page d\'Aide](https://www.myetherwallet.com/#help) pour plus de détails.'), _defineProperty(_fr$data, 'ERROR_29', '(error_30) Please enter a valid user and password. Veuillez entrer un nom d\'utilisateur et mot de passe valides.'), _defineProperty(_fr$data, 'ERROR_30', '(error_31) Please enter a valid name (7+ characters, limited punctuation) Veuillez entrer un nom ENS valide.'), _defineProperty(_fr$data, 'ERROR_31', '(error_32) Please enter a valid secret phrase. Phrase secrète invalide.'), _defineProperty(_fr$data, 'ERROR_32', '(error_33) Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs. Connexion au nœud impossible. Actualisez la page ou essayez un nœud différent (en haut à droite). Vérifiez les réglages de votre parefeu. S\'il s\'agit d\'un nœud personnalisé, vérifiez votre configuration.'), _defineProperty(_fr$data, 'ERROR_33', '(error_34) The wallet you have unlocked does not match the owner\'s address. Le portefeuille que vous avez déverrouillé ne correspond pas à l\'adresse du propriétaire.'), _defineProperty(_fr$data, 'ERROR_34', '(error_35) The name you are attempting to reveal does not match the name you have entered. Le nom que vous tentez de révéler ne correspond pas au nom que vous avez entré.'), _defineProperty(_fr$data, 'ERROR_35', '(error_36) Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a> L\'adresse d\'entrée n\'a pas de somme de contrôle. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener">Cliquez ici pour plus d\'infos</a>.'), _defineProperty(_fr$data, 'ERROR_36', '(error_37) Please enter a valid TX hash Entrez une empreinte (_hash_) de transaction valide.'), _defineProperty(_fr$data, 'ERROR_37', '(error_38) Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f Entrez une chaîne hexadécimale valide (0-9, a-f).'), _defineProperty(_fr$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_fr$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_fr$data, 'SUCCESS_1', 'Adresse valide !'), _defineProperty(_fr$data, 'SUCCESS_2', 'Portefeuille déchiffré avec succès !'), _defineProperty(_fr$data, 'SUCCESS_3', 'Votre transaction a été diffusée sur le réseau. Elle est en attente de confirmation. Pendant les ICO, cette confirmation peut prendre plus de 3 heures. Utilisez les boutons de vérification ci-dessous pour la suivre. Hash de la TX : '), _defineProperty(_fr$data, 'SUCCESS_4', 'Votre portefeuille a été ajouté avec succès !'), _defineProperty(_fr$data, 'SUCCESS_5', 'Fichier sélectionné !'), _defineProperty(_fr$data, 'SUCCESS_6', 'Vous êtes bien connecté !'), _defineProperty(_fr$data, 'SUCCESS_7', 'Signature du message vérifiée !'), _defineProperty(_fr$data, 'WARN_Send_Link', 'Vous avez suivi un lien qui a rempli l\'adresse, le montant, le Gas ou les champs de données pour vous. Vous pouvez modifier toutes ces informations avant l\'envoi. Débloquez votre portefeuille pour démarrer.'), _defineProperty(_fr$data, 'GETH_Balance', '(geth-01) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Solde insuffisant'), _defineProperty(_fr$data, 'GETH_Cheap', '(geth-02) Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right. Prix du Gas trop bas pour être accepté'), _defineProperty(_fr$data, 'GETH_GasLimit', '(geth-03) Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html). Limite de Gas dépassée'), _defineProperty(_fr$data, 'GETH_InsufficientFunds', '(geth-04) Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Fonds insuffisants pour (Gas * prix) + valeur'), _defineProperty(_fr$data, 'GETH_IntrinsicGas', '(geth-05) Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. Gas intrinsèque trop bas'), _defineProperty(_fr$data, 'GETH_InvalidSender', '(geth-06) Invalid sender. Expéditeur invalide'), _defineProperty(_fr$data, 'GETH_NegativeValue', '(geth-07) Negative value. Valeur négative'), _defineProperty(_fr$data, 'GETH_Nonce', '(geth-08) This TX\'s [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html). Nonce trop bas'), _defineProperty(_fr$data, 'GETH_NonExistentAccount', '(geth-09) Account does not exist or account balance too low. Compte inexistant ou solde du compte trop bas'), _defineProperty(_fr$data, 'PARITY_AlreadyImported', "(parity-01) A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Une transaction portant la même empreinte (_hash_) a déjà été importée."), _defineProperty(_fr$data, 'PARITY_GasLimitExceeded', "(parity-02) Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html). Le coût de la transaction excède la limite en Gas courante (limite : {}, coût : {}). Essayez de réduire le Gas fourni."), _defineProperty(_fr$data, 'PARITY_InsufficientBalance', "(parity-03) Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Fonds insuffisants. Le compte d'où vous essayez d'envoyer une transaction ne possède pas assez de fonds (requis : {}, disponibles : {})."), _defineProperty(_fr$data, 'PARITY_InsufficientGasPrice', "(parity-04) There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Les frais de transaction sont trop bas. Ils ne satisfont pas au minimum de votre nœud (minimum : {}, frais : {}). Essayez d\'augmenter les frais."), _defineProperty(_fr$data, 'PARITY_InvalidGasLimit', "(parity-05) Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html). Le Gas fourni dépasse la limite."), _defineProperty(_fr$data, 'PARITY_LimitReached', "(parity-06) There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Il y a trop de transactions en file d\'attente. Votre transaction a été abandonnée en raison de cette limite. Essayez d\'augmenter les frais."), _defineProperty(_fr$data, 'PARITY_Old', "(parity-07) There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html). Le nonce de la transaction est trop bas. Essayez d\'incrémenter le nonce."), _defineProperty(_fr$data, 'PARITY_TooCheapToReplace', "(parity-08) TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html). Les frais de transaction sont trop bas. Il y a une autre transaction avec le même nonce en file d\'attente. Essayez d\'augmenter les frais ou d\'incrémenter le nonce."), _defineProperty(_fr$data, 'translate_version', '0.4'), _defineProperty(_fr$data, 'Translator_Desc', 'Merci à nos traducteurs'), _defineProperty(_fr$data, 'TranslatorName_1', '[Simon P](https://www.myetherwallet.com/?gaslimit=21000&to=0x89a18eE46b5aabC62e94b1830881887D04C687f3&value=1.0#send-transaction) ·'), _defineProperty(_fr$data, 'TranslatorAddr_1', '0x89a18eE46b5aabC62e94b1830881887D04C687f3 '), _defineProperty(_fr$data, 'TranslatorName_2', 'Jean Zundel ·'), _defineProperty(_fr$data, 'TranslatorAddr_2', ''), _defineProperty(_fr$data, 'TranslatorName_3', 'girards ·'), _defineProperty(_fr$data, 'TranslatorAddr_3', ''), _defineProperty(_fr$data, 'TranslatorName_4', 'Paul Ramlach ·'), _defineProperty(_fr$data, 'TranslatorAddr_4', ''), _defineProperty(_fr$data, 'TranslatorName_5', 'DarthJahus ·'), _defineProperty(_fr$data, 'TranslatorAddr_5', '0x4817Ad0411eddB9A32fda74AD1a2DfCAb3a89039'), _defineProperty(_fr$data, 'HELP_Warning', 'Si vous avez créé un portefeuille ou téléchargé le référentiel avant **le 31 déc. 2015**, merci de vérifier vos portefeuilles ou de télécharger une nouvelle version du référentiel. Cliquez ici pour plus de détails.'), _defineProperty(_fr$data, 'HELP_Desc', 'Il manque quelque chose ? Vous avez d\'autres questions ? [Contactez-nous](mailto:support@myetherwallet.com), et non seulement nous allons vous répondre, mais nous mettrons aussi à jour cette page afin qu\'elle soit plus utile à tout le monde à l\'avenir !'), _defineProperty(_fr$data, 'HELP_Remind_Title', 'Quelques rappels :'), _defineProperty(_fr$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, ainsi que certaines des bibliothèques Javascript que nous employons sont en cours de développement.** Bien que nous les ayons testés intensivement et que des dizaines de milliers de portefeuilles aient été créés avec succès dans le monde entier, il existe toujours une faible possibilité qu\'un incident se produise, conduisant à la perte de vos ethers. N\'investissez pas plus que ce que vous pouvez vous permettre de perdre, et restez toujours prudents. En cas d\'accident, nous en serons désolés mais **nous ne sommes pas responsables d\'une éventuelle perte d\'ether**.'), _defineProperty(_fr$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX ne sont pas des "portefeuilles web". Vous ne créez pas un compte, vous ne déposez pas votre ether chez nous. Aucune donnée ne sort de votre ordinateur ou de votre navigateur. Nous vous facilitons la création, la sauvegarde et l\'accès à vos informations ainsi que l\'interaction avec le blockchain.'), _defineProperty(_fr$data, 'HELP_Remind_Desc_3', 'Si vous ne sauvegardez pas votre clef privée et votre mot de passe, il n\'existe aucun moyen de regagner accès à votre portefeuille et aux fonds qu\'il détient. Sauvegardez-les en plusieurs endroits et non seulement sur votre ordinateur !'), _defineProperty(_fr$data, 'HELP_0_Title', '0) Je suis nouveau. Que puis-je faire ?'), _defineProperty(_fr$data, 'HELP_0_Desc_1', 'MyEtherWallet vous donne la possibilité de générer de nouveaux portefeuilles pour stocker votre Ether vous-même, et de ne pas les stocker sur une plateforme de change. Ce processus ne s\'exécute que sur votre ordinateur, et non sur nos serveurs. Quand vous générez un nouveau portefeuille, **il est donc de votre responsabilité de le sauvegarder de manière sécurisée.** '), _defineProperty(_fr$data, 'HELP_0_Desc_2', 'Créez un nouveau portefeuille.'), _defineProperty(_fr$data, 'HELP_0_Desc_3', 'Sauvegardez le portefeuille.'), _defineProperty(_fr$data, 'HELP_0_Desc_4', 'Vérifiez que vous avez accès à ce nouveau portefeuille et que vous avez correctement sauvegardé toutes les informations nécessaires.'), _defineProperty(_fr$data, 'HELP_0_Desc_5', 'Transférez de l\'Ether vers ce nouveau portefeuille.'), _defineProperty(_fr$data, 'HELP_1_Title', '1) Comment puis-je créer un nouveau portefeuille ?'), _defineProperty(_fr$data, 'HELP_1_Desc_1', 'Accédez à la page "Génération d\'un portefeuille".'), _defineProperty(_fr$data, 'HELP_1_Desc_2', 'Accédez à la page "Ajout de portefeuille" et sélectionnez "Générer un nouveau portefeuille"'), _defineProperty(_fr$data, 'HELP_1_Desc_3', 'Entrez un mot de passe fort. Si vous pensez que vous pouvez l\'oublier, sauvegardez-le dans un endroit sûr. Vous aurez besoin de ce mot de passe pour envoyer des transactions.'), _defineProperty(_fr$data, 'HELP_1_Desc_4', 'Cliquez sur "GÉNÉRER".'), _defineProperty(_fr$data, 'HELP_1_Desc_5', 'Votre portefeuille a maintenant été généré.'), _defineProperty(_fr$data, 'HELP_2a_Title', 'Comment puis-je sauvegarder mon portefeuille ?'), _defineProperty(_fr$data, 'HELP_2a_Desc_1', 'Vous devez toujours sauvegarder votre portefeuille en plusieurs endroits physiques, comme sur une clef USB ou une feuille de papier.'), _defineProperty(_fr$data, 'HELP_2a_Desc_2', 'Sauvegardez l\'adresse. Vous pouvez la garder pour vous-même ou la partager avec d\'autres personnes qui, de cette manière, peuvent vous envoyer de l\'Ether.'), _defineProperty(_fr$data, 'HELP_2a_Desc_3', 'Sauvegardez votre clef privée en plusieurs exemplaires. Ne la partagez avec personne. Votre clef privée est nécessaire pour accéder à votre Ether et pour l\'envoyer ! Il existe 3 types de clef privée :'), _defineProperty(_fr$data, 'HELP_2a_Desc_4', 'Placez votre adresse, les exemplaires de la clef privée et la version PDF de votre portefeuille papier dans un dossier. Sauvegardez-le sur votre ordinateur et une clef USB.'), _defineProperty(_fr$data, 'HELP_2a_Desc_5', 'Imprimez votre portefeuille si vous avez une imprimante. Sinon, écrivez votre clef privée et votre adresse usr une feuille de papier. Rangez-la dans un endroit sûr et différent de votre ordinateur et de la clef USB.'), _defineProperty(_fr$data, 'HELP_2a_Desc_6', 'Gardez à l\'esprit qu\'il faut vous préserver de la perte de la clef et du mot de passe en cas de perte de votre disque dur, de votre clef oui de la feuille de papier. Vous devez également vous prémunir contre les catastrophes pouvant toucher votre zone géographique (comme un incendie ou une inondation).'), _defineProperty(_fr$data, 'HELP_2b_Title', '2b) Comment puis-je gérer en toute sécurité un stockage hors ligne avec MyEtherWallet ?'), _defineProperty(_fr$data, 'HELP_2b_Desc_1', 'Allez sur notre référentiel Github : [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest).'), _defineProperty(_fr$data, 'HELP_2b_Desc_2', 'Cliquez sur `etherwallet-vX.X.X.X.zip` '), _defineProperty(_fr$data, 'HELP_2b_Desc_3', 'Transportez le zip sur un ordinateur hors ligne. '), _defineProperty(_fr$data, 'HELP_2b_Desc_4', 'Décompressez-le et double-cliquez sur `index.html`.'), _defineProperty(_fr$data, 'HELP_2b_Desc_5', 'Générez un portefeuille avec un mot de passe fort.'), _defineProperty(_fr$data, 'HELP_2b_Desc_6', 'Sauvegardez l\'adresse. Sauvegardez les exemplaires de la clef privée. Sauvegardez le mot de passe si vous ne voulez pas devoir vous en souvenir.'), _defineProperty(_fr$data, 'HELP_2b_Desc_7', 'Rangez ces papier et/ou ces clefs USB en des endroits physiquement distants.'), _defineProperty(_fr$data, 'HELP_2b_Desc_8', 'Allez à la page "Visualisation d\'un portefeuille" et entrez votre clef privée et votre mot de passe pour vous assurer de leur validité et pour accéder à votre portefeuille. Vérifiez que l\'adresse que vous avez écrite est la même.'), _defineProperty(_fr$data, 'HELP_3_Title', '3) Comment puis-je vérifier que j\'ai accès à mon nouveau portefeuille ?'), _defineProperty(_fr$data, 'HELP_3_Desc_1', '**Avant d\'envoyer de l\'Ether à votre portefeuille**, vous devez vous assurer que vous y avez accès.'), _defineProperty(_fr$data, 'HELP_3_Desc_2', 'Naviguez vers la page "Visualisation d\'un portefeuille".'), _defineProperty(_fr$data, 'HELP_3_Desc_3', 'Naviguez vers la page Visualisation d\'un portefeuille" de MyEtherWallet.com.'), _defineProperty(_fr$data, 'HELP_3_Desc_4', 'Sélectionnez le fichier de votre portefeuille ou votre clef privée et déverrouillez votre portefeuille. '), _defineProperty(_fr$data, 'HELP_3_Desc_5', 'Si le portefeuille est chiffré, une zone texte apparaîtra automatiquement. Entrez le mot de passe.'), _defineProperty(_fr$data, 'HELP_3_Desc_6', 'Cliquez sur le bouton "Déverrouiller votre portefeuille".'), _defineProperty(_fr$data, 'HELP_3_Desc_7', 'Les informations sur votre portefeuille doivent apparaître. Trouvez l\'adresse de votre compte près d\'une icône circulaire et colorée. Celle-ci représente visuellement votre adresse. Assurez-vous que cette adresse est celle que vous avez sauvegardée dans votre document texte et qu\'elle se trouve sur votre portefeuille papier.'), _defineProperty(_fr$data, 'HELP_3_Desc_8', 'Si vous désirez détenir une grande quantité d\'Ether, nous recommandons de commencer par envoyer une petite somme depuis le nouveau portefeuille avant d\'y déposer une somme importante. Envoyez 0,001 Ether vers le nouveau portefeuille, accédez-y puis envoyez ces 0,001 Ether vers une autre adresse, et vérifiez que tout a fonctionné sans encombre.'), _defineProperty(_fr$data, 'HELP_4_Title', '4) Comment puis-je envoyer de l\'Ether d\'un portefeuille vers un autre ?'), _defineProperty(_fr$data, 'HELP_4_Desc_1', 'Si vous désirez transférer une grande quantité d\'Ether, vous devez d\'abord essayer d\'en envoyer un petit montant vers votre portefeuille pour vous assurer que tout fonctionne comme prévu.'), _defineProperty(_fr$data, 'HELP_4_Desc_2', 'Naviguez vers la page "Envoyer des Ether et des Tokens".'), _defineProperty(_fr$data, 'HELP_4_Desc_3', 'Sélectionnez le fichier de votre portefeuille ou votre clef privée et déverrouillez votre portefeuille.'), _defineProperty(_fr$data, 'HELP_4_Desc_4', 'Si le portefeuille est chiffré, une zone texte apparaîtra automatiquement. Entrez le mot de passe.'), _defineProperty(_fr$data, 'HELP_4_Desc_5', 'Cliquez sur le bouton "Déverrouiller votre portefeuille".'), _defineProperty(_fr$data, 'HELP_4_Desc_6', 'Entrez l\'adresse du destinataire dans le champ "Adresse de destination".'), _defineProperty(_fr$data, 'HELP_4_Desc_7', 'Entrez le montant que vous voulez envoyer. Vous pouvez également cliquer sur "Envoyer le solde total" si vous voulez envoyer tout le contenu.'), _defineProperty(_fr$data, 'HELP_4_Desc_9', 'Cliquez sur "Générer la transaction".'), _defineProperty(_fr$data, 'HELP_4_Desc_10', 'Quelques champs supplémentaires apparaîtront. Votre navigateur est en train de générer la transaction.'), _defineProperty(_fr$data, 'HELP_4_Desc_11', 'Cliquez sur le bouton bleu "Envoyer la transaction".'), _defineProperty(_fr$data, 'HELP_4_Desc_12', 'Une boîte de dialog apparaîtra. Vérifiez que le montant défini et l\'adresse de destination sont corrects, puis cliquez sur "Oui, je le veux ! Effectuer la transaction."'), _defineProperty(_fr$data, 'HELP_4_Desc_13', 'La transaction sera soumise et son identifiant affiché. Vous pouvez cliquer sur l\'identifiant pour voir la transaction sur le blockchain.'), _defineProperty(_fr$data, 'HELP_4CX_Title', '4) Comment puis-je envoyer de l\'Ether avec MyEtherWallet CX ?'), _defineProperty(_fr$data, 'HELP_4CX_Desc_1', 'D\'abord, vous devez ajouter un portefeuille. Ceci fait, deux possibilités s\'offrent à vous : la fonctionnalité "Envoi rapide" de l\'icône de l\'extension Chrome ou la page "Envoyer des Ether et des Tokens".'), _defineProperty(_fr$data, 'HELP_4CX_Desc_2', 'Envoi rapide :'), _defineProperty(_fr$data, 'HELP_4CX_Desc_3', 'Cliquez sur l\'icône de l\'extension Chrome.'), _defineProperty(_fr$data, 'HELP_4CX_Desc_4', 'Cliquez sur le bouton "Envoi rapide".'), _defineProperty(_fr$data, 'HELP_4CX_Desc_5', 'Sélectionnez le portefeuille d\'où vous désirez envoyer les Ethers.'), _defineProperty(_fr$data, 'HELP_4CX_Desc_6', 'Entrez l\'adresse du destinataire dans le champ "Adresse de destination :". '), _defineProperty(_fr$data, 'HELP_4CX_Desc_7', 'Entrez le montant que vous voulez envoyer. Vous pouvez également cliquer sur "Envoyer le solde total" si vous voulez envoyer tout le contenu.'), _defineProperty(_fr$data, 'HELP_4CX_Desc_8', 'Cliquez sur "Enoyer la transaction".'), _defineProperty(_fr$data, 'HELP_4CX_Desc_9', 'Vérifiez que l\'adresse et le montant envoyé sont corrects.'), _defineProperty(_fr$data, 'HELP_4CX_Desc_10', 'Entrez le mot de passe du portefeuille.'), _defineProperty(_fr$data, 'HELP_4CX_Desc_11', 'Cliquez sur "Envoyez la transaction." '), _defineProperty(_fr$data, 'HELP_4CX_Desc_12', 'Avec la page "Envoyer des Ether et des Tokens" '), _defineProperty(_fr$data, 'HELP_5_Title', '5) Comment puis-je lancer MyEtherWallet.com hors ligne (en local) ?'), _defineProperty(_fr$data, 'HELP_5_Desc_1', 'Vous pouvez lancer MyEtherWallet.com sur votre ordinateur au lieu de passer par les serveurs GitHub. Vous pouvez générer un portefeuille en restant totalement hors ligne et envoyer des transactions depuis la page "Transaction hors ligne".'), _defineProperty(_fr$data, 'HELP_5_Desc_7', 'MyEtherWallet.com tourne maintenant complètement sur votre ordinateur.'), _defineProperty(_fr$data, 'HELP_5_Desc_8', 'Au cas où cela ne vous est pas familier, vous devez conserver l\'intégralité du dossier pour faire tourner le site web et non uniquement `index.html`. Ne touchez à rien, ne déplacez rien dans le dossier. Si vous stockez une sauvegarde du repo MyEtherWallet pour l\'avenir, nous vous recommandons de ne stocker que le ZIP afin d\'être sûr que le contenu du dossier restera intact.'), _defineProperty(_fr$data, 'HELP_5_Desc_9', 'Comme nous améliorons constamment MyEtherWallet.com, nous vous recommandons de mettre régulièrement à jour votre version de sauvegarde.'), _defineProperty(_fr$data, 'HELP_5CX_Title', '5) Comment puis-je installer cette extension depuis le repo au lieu du Chrome Store ?'), _defineProperty(_fr$data, 'HELP_5CX_Desc_2', 'Cliquez sur `chrome-extension-vX.X.X.X.zip`'), _defineProperty(_fr$data, 'HELP_5CX_Desc_3', 'Allez dans le menu de Google Chrome (les trois points en haut à droite).'), _defineProperty(_fr$data, 'HELP_5CX_Desc_4', 'Sous l\'élément "Plus d\'outils", cliquez sur "Extensions".'), _defineProperty(_fr$data, 'HELP_5CX_Desc_5', 'Cochez la case "Mode développeur" en haut de cette page.'), _defineProperty(_fr$data, 'HELP_5CX_Desc_6', 'Cliquez sur le bouton "Chargez l\'extension non empaquetée…".'), _defineProperty(_fr$data, 'HELP_5CX_Desc_7', 'Naviguez vers le dossier que vous avez téléchargé et extrait auparavant. Cliquez sur "Sélectionner".'), _defineProperty(_fr$data, 'HELP_5CX_Desc_8', 'L\'extension doit maintenant apparaître parmi vos extensions et dans la barre d\'extensions de Chrome.'), _defineProperty(_fr$data, 'HELP_7_Title', '7) Comment puis-je envoyer des tokens et ajouter des tokens spécifiques ?'), _defineProperty(_fr$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) est un excellent moyen d\'explorer les tokens et d\'en trouver les informations comme le nombre de décimales.'), _defineProperty(_fr$data, 'HELP_7_Desc_1', 'Naviguez vers la page "Envoi de tokens".'), _defineProperty(_fr$data, 'HELP_7_Desc_2', 'Déverrouillez votre portefeuille.'), _defineProperty(_fr$data, 'HELP_7_Desc_3', 'Entre l\'adresse à laquelle vous désirez envoyer des tokens dans le champ "Adresse de destination".'), _defineProperty(_fr$data, 'HELP_7_Desc_4', 'Entrez le montant que vous désirez envoyer. '), _defineProperty(_fr$data, 'HELP_7_Desc_5', 'Sélectionnez le token que vous désirez envoyer.'), _defineProperty(_fr$data, 'HELP_7_Desc_6', 'Si celui-ci n\'est pas listé : '), _defineProperty(_fr$data, 'HELP_7_Desc_7', 'Cliquez sur "Spécifique".'), _defineProperty(_fr$data, 'HELP_7_Desc_8', 'Entrez l\'adresse, le nom et le nombre de décimales du token. Ces informations sont fournies par les développeurs du token et sont également nécessaires quand vous utilisez la fonction "Add a Watch Token" dans Mist.'), _defineProperty(_fr$data, 'HELP_7_Desc_9', 'Cliquez sur "Sauvegarder".'), _defineProperty(_fr$data, 'HELP_7_Desc_10', 'Vous pouvez maintenant envoyer ces tokens ainsi qu\'en voir votre solde dans la zone sur le côté.'), _defineProperty(_fr$data, 'HELP_7_Desc_11', 'Cliquez sur "Générer la transaction".'), _defineProperty(_fr$data, 'HELP_7_Desc_12', 'Quelques champs supplémentaires vont apparaître : votre navigateur est en train de générer la transaction.'), _defineProperty(_fr$data, 'HELP_7_Desc_13', 'Cliquez sur le bouton bleu "Envoyer la transation".'), _defineProperty(_fr$data, 'HELP_7_Desc_14', 'Une boîte de dialog va apparaître. Vérifiez que le montant et l\'adresse de destination sont corrects puis cliquez sur le bouton "Oui, je le veux ! Effectuer la transaction." '), _defineProperty(_fr$data, 'HELP_7_Desc_15', 'La transaction est alors soumise au réseau. Son identifiant est affiché et vous pouvez cliquer dessus pour voir la transaction sur le blockchain.'), _defineProperty(_fr$data, 'HELP_8_Title', '8) Que se passe-t-il si votre site est hors-ligne ?'), _defineProperty(_fr$data, 'HELP_8_Desc_1', 'MyEtherWallet n\'est pas un portefeuille web. Vous n\'avez pas de compte dessus et rien n\'est jamais stocké sur nos serveurs. Ce n\'est qu\'une interface qui vous permet d\'interagir avec le blockchain.'), _defineProperty(_fr$data, 'HELP_8_Desc_2', 'Si MyEtherWallet.com venait à être hors ligne, vous devrez trouver un autre moyen (comme Geth ou Ethereum Wallet / Mist) pour faire la même chose. Mais vous n\'aurez pas à "récupérer" votre Ether depuis MyEtherWallet parce qu\'il ne se trouve pas dans MyEtherWallet. Il est chez vous, dans le portefeuille que vous avez généré par notre site.'), _defineProperty(_fr$data, 'HELP_8_Desc_3', 'Vous pouvez maintenant importer facilement votre clef privée non chiffrée et vos fichiers (chiffrés) au format Geth/Mist, directement dans geth / Ethereum Wallet / Mist. Voir question #12 ci-dessous.'), _defineProperty(_fr$data, 'HELP_8_Desc_4', 'De plus, la probabilité que nous laissions tomber MyEtherWallet approche zéro. Il ne nous coûte presque rien de le maintenir comme nous n\'y stockons aucune information. Si le domaine venait à être perdu, le logiciel sera toujours disponible publiquement sur [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Vous pourrez y télécharger le ZIP et le faire tourner localement.'), _defineProperty(_fr$data, 'HELP_8CX_Title', '8) Que se passe-t-il si MyEtherWallet CX disparaît ?'), _defineProperty(_fr$data, 'HELP_8CX_Desc_1', 'D\'abord, toutes les données sont sauvegardées sur votre ordinateur et non sur nos serveurs. Cela peut paraître étonnant mais, quand vous regardez sur l\'extension Chrome, ce que vous voyez *ne se trouve pas* sur nos serveurs ; tout est stocké sur votre propre ordinateur. '), _defineProperty(_fr$data, 'HELP_8CX_Desc_2', 'Cela dit, il est **très important** que vous sauvegardiez toutes les données de tous les portefeuilles générés par MyEtherWallet CX. De cette manière, si quoi que ce soit arrivait à MyEtherWallet CX ou à votre ordinateur, vous conserveriez toutes les informations nécessaires pour accéder à votre Ether. Voir #2a pour la sauvegarde de vos portefeuilles.'), _defineProperty(_fr$data, 'HELP_8CX_Desc_3', 'Si, pour une raison quelconque, MyEtherWallet CX disparaissait du Chrome Store, vous pourrez en trouver le source sur [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages) et le charger manuellement. Voir #5 ci-dessus.'), _defineProperty(_fr$data, 'HELP_9_Title', '9) La page "Envoyer des Ether et des Tokens" est-elle hors ligne ? '), _defineProperty(_fr$data, 'HELP_9_Desc_1', 'Non. Elle a besoin de l\'internet pour obtenir le prix actuel du Gas, le nonce de votre compte et pour émettre la transaction (c\'est-à-dire "envoyer des Ethers"). Cependant, elle n\'envoie que la transaction signée. Votre clef privée reste en sécurité chez vous. Nous fournissons aussi une page "Transaction hors ligne" pour vous permettre de conserver en permanence vos clefs privées sur une machine hors ligne.'), _defineProperty(_fr$data, 'HELP_10_Title', '10) Comment puis-je faire une transaction hors ligne ?'), _defineProperty(_fr$data, 'HELP_10_Desc_1', 'Allez à la page "Transaction hors ligne" avec votre ordinateur **en ligne**.'), _defineProperty(_fr$data, 'HELP_10_Desc_2', 'Entrez l\'"Adresse d\'émission". Attention, c\'est l\'adresse **à partir de laquelle** vous envoyez et non celle *vers laquelle** vous envoyez. Ceci va générer un nonce et le prix du Gas.'), _defineProperty(_fr$data, 'HELP_10_Desc_3', 'Sur votre ordinateur **hors ligne**, entrez l\'"Adresse de destination" et le "Montant" que vous désirez envoyer.'), _defineProperty(_fr$data, 'HELP_10_Desc_4', 'Entrez le "Prix du Gas" tel qu\'il vous a été affiché sur l\'ordinateur en ligne à la première étape.'), _defineProperty(_fr$data, 'HELP_10_Desc_5', 'Entrez le "Nonce" tel qu\'il vous a été affiché sur l\'ordinateur en ligne à la première étape.'), _defineProperty(_fr$data, 'HELP_10_Desc_6', 'La "Limite en Gas" a une valeur par défaut de 21000. Ceci couvre les frais d\'une transaction standard. Si vous envoyez à un contrat ou si vous embarquez des données supplémentaires avec votre transaction vous devrez augmenter la limite de Gas. Tout Gas non consommé vous sera retourné.'), _defineProperty(_fr$data, 'HELP_10_Desc_7', 'Si vous le désirez, entrez des données. Dans ce cas, vous devrez inclure plus que la limite de 21000 par défaut. Toutes les données sont au format hexadécimal.'), _defineProperty(_fr$data, 'HELP_10_Desc_8', 'Sélectionnez le fichier de votre portefeuille ou votre clef privée et déverrouillez votre portefeuille. '), _defineProperty(_fr$data, 'HELP_10_Desc_9', 'Cliquez sur le bouton "Générer la transaction signée".'), _defineProperty(_fr$data, 'HELP_10_Desc_10', 'Le champ de données sous ce bouton se remplit avec votre transaction signée. Copiez-la et revenez avec elle sur votre ordinateur en ligne.'), _defineProperty(_fr$data, 'HELP_10_Desc_11', 'Sur votre ordinateur en ligne, collez la transaction signée dans le champ texte et cliquez sur "Envoyez l\'Ether". Ceci émettra votre transaction. '), _defineProperty(_fr$data, 'HELP_12_Title', '12) Comment puis-je importer un portefeuille créé par MyEtherWallet dans geth, Ethereum Wallet ou Mist ?'), _defineProperty(_fr$data, 'HELP_12_Desc_1', 'Avec un fichier Geth/Mist JSON de MyEtherWallet v2+.... '), _defineProperty(_fr$data, 'HELP_12_Desc_2', 'Allez à la page "Visualisation d\'un portefeuille".'), _defineProperty(_fr$data, 'HELP_12_Desc_3', 'Déverrouillez votre portefeuille avec votre clef privée **chiffrée** ou votre fichier JSON.'), _defineProperty(_fr$data, 'HELP_12_Desc_4', 'Allez à la page "Mes portefeuilles".'), _defineProperty(_fr$data, 'HELP_12_Desc_5', 'Sélectionnez le portefeuille que vous désirez importer dans Mist, cliquez sur l\'icône "Voir", entrez votre mot de passe et accédez à votre portefeuille. '), _defineProperty(_fr$data, 'HELP_12_Desc_6', 'Allez à la section "Téléchargez le fichier JSON file - Format Geth/Mist (chiffé)". Cliquez sur le bouton "Télécharger" en dessous. Vous avez maintenant votre fichier *keystore.* '), _defineProperty(_fr$data, 'HELP_12_Desc_7', 'Ouvrez l\'application Ethereum Wallet. '), _defineProperty(_fr$data, 'HELP_12_Desc_8', 'Dans la barre de menu, allez sur "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_fr$data, 'HELP_12_Desc_9', 'Ceci ouvre votre dossier de keystores. Copiez-y le fichier que vous venez de télécharger (`UTC--ANNEE-MOIS-JOUR......../`) dans ce dossier.'), _defineProperty(_fr$data, 'HELP_12_Desc_10', 'Votre compte doit apparaître immédiatement sous "Accounts." '), _defineProperty(_fr$data, 'HELP_12_Desc_11', 'Avec votre clef privée non chiffrée...'), _defineProperty(_fr$data, 'HELP_12_Desc_12', 'Si vous n\'avez pas déjà votre clef privée non chiffrée, allez à la page "Visualisation d\'un portefeuille". '), _defineProperty(_fr$data, 'HELP_12_Desc_13', 'Sélectionnez le fichier de votre portefeuille ou entrez/collez votre clef privée pour déverrouiller votre portefeuille.'), _defineProperty(_fr$data, 'HELP_12_Desc_14', 'Copiez votre clef privée (non chiffrée). '), _defineProperty(_fr$data, 'HELP_12_Desc_15', 'Si vous êtes sur un Mac : '), _defineProperty(_fr$data, 'HELP_12_Desc_15b', 'Si vous êtes sur un PC : '), _defineProperty(_fr$data, 'HELP_12_Desc_16', 'Ouvrez Text Edit et collez cette clef privée.'), _defineProperty(_fr$data, 'HELP_12_Desc_17', 'Dans la barre de menu, cliquez sur "Format" -> "Make Plain Text".'), _defineProperty(_fr$data, 'HELP_12_Desc_18', 'Sauvegardez ce fichier vers votre `Desktop/` en tant que `nothing_special_delete_me.txt`. Assurez-vous qu\'il précise "UTF-8" et "If no extension is provided use .txt" dans le dialogue de sauvegarde.'), _defineProperty(_fr$data, 'HELP_12_Desc_19', 'Ouvrez un terminal et lancez la commande suivante : `geth account import ~/Desktop/nothing_special_delete_me.txt`'), _defineProperty(_fr$data, 'HELP_12_Desc_20', 'Ceci vous invitera à choisir un nouveau mot de passe. C\'est celui que vous utiliserez dans geth / Ethereum Wallet / Mist à chaque vois que vos créerez une transaction, alors ne l\'oubliez pas. '), _defineProperty(_fr$data, 'HELP_12_Desc_21', 'Après que l\'import ait réussi, supprimez `nothing_special_delete_me.txt` '), _defineProperty(_fr$data, 'HELP_12_Desc_22', 'La prochaine fois que vous ouvrirez l\'application Ethereum Wallet, votre compte sera listé sous "Accounts". '), _defineProperty(_fr$data, 'HELP_12_Desc_23', 'Ouvrez Bloc-notes (notepad) et collez-y la clef privée '), _defineProperty(_fr$data, 'HELP_12_Desc_24', 'Sauvegardez le fichier sur `C:\\` sous le nom `nothing_special_delete_me.txt`'), _defineProperty(_fr$data, 'HELP_12_Desc_25', 'Lancez la commande `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_fr$data, 'HELP_12_Desc_26', 'Ceci vous invitera à choisir un nouveau mot de passe. C\'est celui que vous utiliserz dans geth / Ethereum Wallet / Mist à chaque foiq que vous créerez une transaction, alors ne l\'oubliez pas. '), _defineProperty(_fr$data, 'HELP_12_Desc_27', 'Après que l\'import ait réussi, supprimez `nothing_special_delete_me.txt` '), _defineProperty(_fr$data, 'HELP_12_Desc_28', 'La prochaine fois que vous ouvrirez l\'application Ethereum Wallet, votre compte sera listé sous "Accounts". '), _defineProperty(_fr$data, 'HELP_13_Title', '13) Que signifie « Fonds insuffisants. Le compte d\'où vous essayez d\'envoyer une transaction ne possède pas assez de fonds. Requis : XXXXXXXXXXXXXXXXXXX, disponible : XXXXXXXXXXXXXXXXXXX. » ? '), _defineProperty(_fr$data, 'HELP_13_Desc_1', 'Cela signifie que vous n\'avez pas assez d\'Ether sur votre compte pour couvrir les coûts en Gas. Chaque transaction (y compris pour les tokens et les contrats) demande du Gas, et ce Gas est payé en Ether. Le nombre affiché est le montant requis pour couvrir le coût de la transaction en Wei. Prenez ce nombre, divisez-le par `10^18` (soit `1000000000000000000`) et soustrayez la somme en Ether que vous essayiez d\'envoyer (si vous tentiez d\'envoyer de l\'Ether). Cela vous donnera le montant en Ether que vous avez besoin d\'ajouter à votre compte pour effectuer cette transaction.'), _defineProperty(_fr$data, 'HELP_14_Title', '14) Certains sites initialisent la génération de clef privée par les mouvements de la sours. Ce n\'est pas le cas de MyEtherWallet.com. La génération de nombres aléatoires de MyEtherWallet est-elle sûre ?'), _defineProperty(_fr$data, 'HELP_14_Desc_1', 'Bien que l\'interception des mouvement de la souris soit jugée attractive par beaucoup, et que nous en comprenions les raisons, la réalité est que window.crypto assure plus d\'entropie que les mouvements de votre souris. L\'utilisation de ces mouvements est sûre mais nous (ainsi que de nombreux projets crypto) avons de bonnes raisons de croire en window.crypto. De plus, MyEtherWallet.com peut être utilisé sur des périphériques tactiles. Voici une [conversation entre un redditeur rageur et Vitalik Buterin à propos des mouvements de souris et window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) et voici [les spécifications w3 de window.crypto](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto).'), _defineProperty(_fr$data, 'HELP_15_Title', '15) Pourquoi le compte que je viens de créer n\'apparaît-il pas dans l\'explorateur de blockchain ? (etherchain, etherscan)'), _defineProperty(_fr$data, 'HELP_15_Desc_1', 'Les comptes n\'apparaissent dans un explorateur de blockchain qu\'après une activité, comme par exemple, un envoi ou une réception d\'Ether.'), _defineProperty(_fr$data, 'HELP_16_Title', '16) Comment puis-je vérifier le solde de mon compte ?'), _defineProperty(_fr$data, 'HELP_16_Desc_1', 'Vous pouvez utiliser un explorateur de blockchain comme [etherscan.io](https://etherscan.io/). Collez votre adresse dans la barre de recherche et cela récupérera votre solde et l\'historique de vos transactions. Par exemple, voici ce que montre notre [compte de donations](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) sur etherscan.io'), _defineProperty(_fr$data, 'HELP_17_Title', '17) Pourquoi mon solde n\'apparaît-il pas quand je déverrouille mon portefeuille ?'), _defineProperty(_fr$data, 'HELP_17_Desc_1', 'C\'est probablement dû au fait que vous vous trouviez derrière un parefeu. L\'API que nous utilisons pour obtenir le solde et converir celui-ci est souvent bloquée par des parefeus pour des raisons diverses. Vous êtes toujours capable d\'envoyer des transactions mais il vous faut employer une autre méthode pour voir le solde, comme etherscan.io'), _defineProperty(_fr$data, 'HELP_18_Title', '18) Où est le fichier de mon portefeuille geth ?'), _defineProperty(_fr$data, 'HELP_19_Title', '19) Où est le fichier de mon portefeuille Mist ?'), _defineProperty(_fr$data, 'HELP_19_Desc_1', 'Les fichiers Mist se trouvent généralement aux endroits ci-dessus mais il est beaucoup plus facile d\'ouvrir Mist, de sélectionner "Accounts" dans la barre du haut, puis "Backup" et "Accounts". Cela ouvre le dossier où vos fichiers sont stockés. '), _defineProperty(_fr$data, 'HELP_20_Title', '20) Où est le fichier de mon portefeuille de *pre-sale* (pré-vente) ?'), _defineProperty(_fr$data, 'HELP_20_Desc_1', 'Là où vous l\'avez mis ;) Il vous a aussi été envoyé donc allez vérifier vos mails. Cherchez le fichier appelé `"ethereum_wallet_backup.json"` et choisissez ce fichier. Il est chiffré avec un mot de passe que vous avez créé pendant l\'achat au moment de la pré-vente.'), _defineProperty(_fr$data, 'HELP_21_Title', '21) N\'importe qui ne peut-il pas prendre une clef privée au hasard, chercher un solde et l\'envoyer à sa propre adresse ? '), _defineProperty(_fr$data, 'HELP_21_Desc_1', 'Version courte : oui, mais trouver un compte avec un solde prendrait plus longtemps que la durée de vie de l\'univers… donc… non. '), _defineProperty(_fr$data, 'HELP_21_Desc_2', 'Version longue : Ethereum est basé sur la [Cryptographie asymétrique](https://fr.wikipedia.org/wiki/Cryptographie_asymétrique), plus précisément la [cryptographie des courbes elliptiques (ECC)](https://eprint.iacr.org/2013/734.pdf) qui est très couramment employée, non pas uniquement dans Ethereum. La plupart des serveurs sont protégés par les ECC. Bitcoin les emploie, ainsi que SSH, TLS et bien d\'autres protocoles. Dans le cas spécifique d\'Ethereum, les clefs font 256 bits et sont plus fortes que celles en 128 et 192 bits, encore très employées et toujours considérées comme sûres par les experts.'), _defineProperty(_fr$data, 'HELP_21_Desc_3', 'Vous avez une clef privée et une clef publique. La clef privée peut servir à dériver la clef publique mais l\'inverse est pratiquement impossible. Le fait que l\'internet et le monde entier utilise ce système cryptographique signifie que, s\'il existait un moyen de dériver la clef privée de la clef publique, le risque que courrait votre Ether serait le dernier de vos soucis.'), _defineProperty(_fr$data, 'HELP_21_Desc_4', 'Cela dit, OUI : si quelqu\'un possède votre clef privée, il peut envoyer de l\'Ether depuis votre compte, de même que si une personne a le mot de passe de votre email, elle peut lire des mails ou en envoyer, ou si c\'est le mot de passe de votre compte en banque, elle peut faire des virements. Vous pouvez télécharger la versoin Keystore de votre clef privée qui est la clef privée chiffrée avec un mot de passe. Cela ressemble à avoir un mot de passe protégé par un autre mot de passe.'), _defineProperty(_fr$data, 'HELP_21_Desc_5', 'Et OUI, en théorie, on peut taper une chaîne de 64 caractères hexadécimaux jusqu\'à en trouver un qui correspond. Il est d\'ailleurs possible d\'écrire un programme qui vérifie très rapidement des clefs privée aléatoires. C\'est ce que l\'on appelle utiliser la "brute force", ou miner des clefs privées. Beaucoup de monde y a pensé très fort et très longtemps. Quelques serveurs haut de gamme peuvent vérifier plus de 1 million de clefs par seconde. Pourtant, même cette performance ne donnerait pas accès à un compte suffisamment approvisionné pour en valoir la chandelle ; il est bien plus probable que vous, vos enfant et vos petits-enfants mouriez avant d\'obtenir une correspondance.'), _defineProperty(_fr$data, 'HELP_21_Desc_6', 'Si vous connaissez un peu Bitcoin, [ceci remettra les choses en perspective :](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *Pour illustrer l\'improbabilité de tout ceci : supposons que chaque satoshi de chaque bitcoin qui sera jamais produit soit affecté à sa propre clef privée distincte. La probabilité que, parmi ces clefs, s\'en trouvent deux qui correspondent à la même adresse serait d\'environ 1 sur 100 quintillons.'), _defineProperty(_fr$data, 'HELP_21_Desc_7', '[Si vous voulez un argumentaire un peu plus technique :](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *Ces nombres n\'ont rien à voir avec la technologie des systèmes ; ce sont les maxima autorisés par la thermodynamique. Et ils impliquent clairement qu\'une attaque par brute force contre des clefs de 256 bits restera impossible jusqu\'à ce que l\'on construise des ordinateurs avec autre chose que de la matière et qu\'ils occupent autre chose que l\'espace.'), _defineProperty(_fr$data, 'HELP_21_Desc_8', 'Cela suppose bien entendu que les clefs sont générées d\'une manière totalement aléatoire avec suffisamment d\'entropie. C\'est le cas des clefs générées ici, tout comme celles de Jaxx et de Mist/geth. Les portefeuilles Ethereum sont tous assez bons de ce point de vue. Les clefs générées par des cerveaux humains ne le sont pas, car ces derniers ne sont pas capables de partir d\'un nombre parfaitement aléatoire. Il y a eu des cas d\'autres problèmes d\'entropie insuffisante ou de nombres imparfaitement aléatoires dans le monde de Bitcoin mais il s\'agit là d\'un tout autre problème qui peut attendre un peu.'), _defineProperty(_fr$data, 'HELP_SecCX_Title', 'Sécurité - MyEtherWallet CX'), _defineProperty(_fr$data, 'HELP_SecCX_Desc_1', 'Où cette extension enregistre-t-elle mes informations ? '), _defineProperty(_fr$data, 'HELP_SecCX_Desc_2', 'Les informations stockées par cette extension sont sauvegardée via [chrome.storage](http://chrome.storage/), c\'est à dire au même endroit que vos mots de passe Chrome.'), _defineProperty(_fr$data, 'HELP_SecCX_Desc_3', 'Quelles informations sont sauvegardées ? '), _defineProperty(_fr$data, 'HELP_SecCX_Desc_4', 'L\'adresse, le surnom et la clef privée sont stockés dans chrome.storage. La clef privée est chiffrée par le mot de passe défini à l\'ajout du portefeuille. Le surnom et l\'adresse du portefeuille ne sont pas chiffrés. '), _defineProperty(_fr$data, 'HELP_SecCX_Desc_5', 'Pourquoi le surnom et l\'adresse du portefeuille ne sont-ils pas chiffrés ? '), _defineProperty(_fr$data, 'HELP_SecCX_Desc_6', 'Si nous devions chiffrer ces informations, il vous faudrait entrer un mot de passe à chaque fois que vous voudriez voir votre solde ou les surnoms. Si cela vous ennuie, nous vous recommandons d\'utiliser MyEtherWallet.com au lieu de cette extension Chrome.'), _defineProperty(_fr$data, 'HELP_Sec_Title', 'Sécurité'), _defineProperty(_fr$data, 'HELP_Sec_Desc_1', 'Si l\'une des premières questions que vous vous posez est "Pourquoi devrais-je faire confiance à ces gens ?", c\'est une bonne démarche. Nous espérons que ce qui suit va dissiper vos craintes. '), _defineProperty(_fr$data, 'HELP_Sec_Desc_2', 'Nous avons commencé en août 2015. Si vous recherchez ["myetherwallet" sur reddit](https://www.reddit.com/search?q=myetherwallet), vous pouvez voir qu\'un nombre considérable de personnes nous utilisent sans problème. '), _defineProperty(_fr$data, 'HELP_Sec_Desc_3', 'Nous n\'allons pas prendre votre argent ou voler vos clefs privées. Il n\'y a pas de code malveillant sur ce site. En fait, les pages sont du côté du client. Cela signifie que tout le code s\'éxécute sur **votre ordinateur** et n\'est jamais sauvegardé ou transmis où que ce soit.'), _defineProperty(_fr$data, 'HELP_Sec_Desc_4', 'Vérifiez l\'URL -- Ce site est servi par Github (et vous pouvez en voir le code source ici : [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages)) vers [https://www.myetherwallet.com](https://www.myetherwallet.com).'), _defineProperty(_fr$data, 'HELP_Sec_Desc_5', 'Pour générer les portefeuilles, vous pouvez télécharger le [code source](https://github.com/kvhnuke/etherwallet/releases/latest). Voir #5 ci-dessus. '), _defineProperty(_fr$data, 'HELP_Sec_Desc_6', 'Lancez un test et vérifiez le type d\'activité réseau. La manière la plus simple consiste en un clic droit sur la page, puis "Inspecter". Allez à l\'onglet "Network". Générez un portefeuille de test. Vous verrez qu\'il n\'y a pas d\'activité réseau. Vous pourrez voir quelque chose se produire ressemblant à data:image/gif et data:image/png. Ce sont les QR codes en cours de génération... sur votre ordinateur. Aucun octet n\'a été transféré. '), _defineProperty(_fr$data, 'HELP_Sec_Desc_8', 'Si cet outil ne vous plaît pas, alors ne l\'utilisez surtout pas. Nous l\'avons créé pour qu\'il aide les gens à générer des portefeuilles et à effectuer des transactions sans avoir besoin de plonger dans des lignes de commandes, ni faire tourner un nœud complet. À nouveau, n\'hésitez pas à nous faire part de vos doutes et nous répondrons aussi rapidement que possible. Merci ! '), _defineProperty(_fr$data, 'HELP_FAQ_Title', 'Plus de réponses utiles aux questions fréquentes '), _defineProperty(_fr$data, 'HELP_Contact_Title', 'Moyens de nous contacter'), _fr$data);
module.exports = fr;
},{}],114:[function(require,module,exports){
//Kreyol
'use strict';
var _ht$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ht = function ht() {};
ht.code = 'ht';
ht.data = (_ht$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_ht$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_ht$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_ht$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_ht$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_ht$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_ht$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_ht$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_ht$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_ht$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_ht$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_ht$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_ht$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_ht$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_ht$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_ht$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_ht$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_ht$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_ht$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_ht$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_ht$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_ht$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_ht$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_ht$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_ht$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_ht$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_ht$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_ht$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_ht$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_ht$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_ht$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_ht$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_ht$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_ht$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_ht$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_ht$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_ht$data, 'x_ReadMore', 'Read More'), _defineProperty(_ht$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_ht$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_ht$data, 'x_TXFee', 'TX Fee'), _defineProperty(_ht$data, 'x_TxHash', 'TX Hash'), _defineProperty(_ht$data, 'NAV_CheckTxStatus', 'Vérifier statut TX'), _defineProperty(_ht$data, 'NAV_TxStatus', 'Statut de la TX'), _defineProperty(_ht$data, 'tx_Details', 'Détails de transaction'), _defineProperty(_ht$data, 'tx_Summary', 'Pendant des périodes de volume important (comme pendant les ICOs) les transactions peuvent rester en attente des heures, voir des jours. Cet outil cherche à vous donner la possibilité de trouver et "annuler" / remplacer ces transactions. ** Ce n\'est pas quelque chose de possible normalement. Vous ne devriez pas vous y fier et cela ne marchera que lorsque les pools de transactions sont remplis. [Nous vous recommandons d\'en lire plus sur cet outil ici.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_ht$data, 'tx_notFound', 'Pas de transaction trouvée'), _defineProperty(_ht$data, 'tx_notFound_1', 'Cette TX est introuvable dans le pool de TX du nœud auquel vous êtes connecté.'), _defineProperty(_ht$data, 'tx_notFound_2', 'Si vous venez d\'envoyer la transaction, veuillez attendre 15 secondes et cliquez une nouvelle fois sur le bouton "Vérifier statut TX". '), _defineProperty(_ht$data, 'tx_notFound_3', 'La transaction pourrait toujours être dans le pool de transactions d\'un nœud différent, en attente d\'être minée.'), _defineProperty(_ht$data, 'tx_notFound_4', 'Veuillez utiliser le menu déroulant en haut à droite & sélectionner un nœud ETH différent (par ex. `ETH (Etherscan.io)` ou `ETH (Infura.io)` ou `ETH (MyEtherWallet)`) et revérifiez.'), _defineProperty(_ht$data, 'tx_foundInPending', 'Transaction en attente trouvée'), _defineProperty(_ht$data, 'tx_foundInPending_1', 'Cette TX a été identifiée dans le pool de TX du nœud auquel vous êtes connecté.'), _defineProperty(_ht$data, 'tx_foundInPending_2', 'Elle est pour l\'instant en attente (en attente d\'être minée). '), _defineProperty(_ht$data, 'tx_foundInPending_3', 'Il existe une chance que vous puissiez "annuler" ou remplacer cette transaction. Déverouillez votre portefeuille ci-dessous.'), _defineProperty(_ht$data, 'tx_FoundOnChain', 'Transaction trouvée'), _defineProperty(_ht$data, 'tx_FoundOnChain_1', 'Votre transaction a été minée avec succès et se trouve sur la blockchain.'), _defineProperty(_ht$data, 'tx_FoundOnChain_2', '**Si vous voyez un `( ! )` rouge, un message d\'erreur `BAD INSTRUCTION` ou `OUT OF GAS`**, cela signifie que votre transaction n\'a pas été *envoyée*. Vous ne pouvez pas annuler ou remplacer cette transaction. A la place, envoyez une nouvelle transaction. Si vous avez reçu une erreur de type "Out of Gas", vous devriez doubler la limite de gaz que vous aviez spécifiée.'), _defineProperty(_ht$data, 'tx_FoundOnChain_3', '**Si vous ne voyez pas d\'erreur, votre transaction a été envoyée avec succès.** Vos ETH ou Tokens sont à l\'endroit où vous les avez envoyés. Si vous ne voyez pas ces ETH ou Tokens dans votre autre portefeuille ou compte de place d\'échange, et si cela fait plus de 24 heures, veuillez [contacter ce service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Envoyez-leur le *lien* vers votre transaction et demandez, poliment, d\'examiner votre situation.'), _defineProperty(_ht$data, 'GEN_Help_1', 'Utiliser votre'), _defineProperty(_ht$data, 'GEN_Help_2', 'pour accéder à votre compte.'), _defineProperty(_ht$data, 'GEN_Help_3', 'Votre périphérique * est * votre portefeuille.'), _defineProperty(_ht$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_ht$data, 'GEN_Help_5', 'Comment créer un portefeuille'), _defineProperty(_ht$data, 'GEN_Help_6', 'Pour bien débuter'), _defineProperty(_ht$data, 'GEN_Help_7', 'Gardez-le en sécurité · Faites une sauvegarde · Ne le partagez pas avec qui que ce soit · Ne le perdez pas · Il ne peut pas être récupéré si vous le perdez.'), _defineProperty(_ht$data, 'GEN_Help_8', 'Pas de téléchargement? '), _defineProperty(_ht$data, 'GEN_Help_9', 'Essayez Google Chrome '), _defineProperty(_ht$data, 'GEN_Help_10', 'Clic droit & enregistrer sous. Nom de fichier: '), _defineProperty(_ht$data, 'GEN_Help_11', 'N\'ouvrez pas ce fichier sur votre ordinateur '), _defineProperty(_ht$data, 'GEN_Help_12', 'Utilisez-le pour déverouiller votre portefeuille avec MyEtherWallet (ou Mist, Geth, Parity et autres wallet clients.) '), _defineProperty(_ht$data, 'GEN_Help_13', 'Comment sauvegarder votre fichier Keystore '), _defineProperty(_ht$data, 'GEN_Help_14', 'Quels sont ces différents formats? '), _defineProperty(_ht$data, 'GEN_Help_15', 'Eviter la perte &amp; ou le vol de vos biens.'), _defineProperty(_ht$data, 'GEN_Help_16', 'Quels sont ces différents formats?'), _defineProperty(_ht$data, 'GEN_Help_17', 'Pourquoi dois-je faire ça?'), _defineProperty(_ht$data, 'GEN_Help_18', 'Pour avoir une sauvegarde de secours.'), _defineProperty(_ht$data, 'GEN_Help_19', 'Au cas où vous oubliez votre mot de passe.'), _defineProperty(_ht$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_ht$data, 'GET_ConfButton', 'Je comprends. Continuer.'), _defineProperty(_ht$data, 'GEN_Label_5', 'Sauvegardez votre `clé privée`. '), _defineProperty(_ht$data, 'GEN_Unlock', 'Déverouillez votre portefeuille pour voir votre adresse.'), _defineProperty(_ht$data, 'GAS_PRICE_Desc', 'Le prix du gaz est le montant que vous payez par unité de gaz. `frais de TX = prix du gaz * limite en gaz` & est payé aux mineurs pour inclure votre transaction à un bloc. Prix de gaz plus haut = transaction plus rapide, mais plus coûteuse. Le prix par défaut est de `41 GWEI`.'), _defineProperty(_ht$data, 'GAS_LIMIT_Desc', 'La limite en gaz est le montant de gaz à envoyer avec votre transaction. `frais de TX = prix du gaz * limite en gaz` et est payé aux mineurs pour inclure votre transaction à un bloc. Augmenter ce nombre n\'exécutera pas votre transaction plus rapidement. Envoyer ETH = `21000`. Envoyer des Tokens = ~`200000`.'), _defineProperty(_ht$data, 'NONCE_Desc', 'Le nonce est le nombre de transactions envoyées depuis une adresse. Il fait en sorte que les transactions sont envoyées en ordre et pas plus d\'une fois.'), _defineProperty(_ht$data, 'TXFEE_Desc', 'Les frais de transaction sont payés aux mineurs pour inclure votre transaction dans un bloc. Cela représente le `gas limit` * le `gas price`. [Vous pouvez convertir GWEI -> ETH ici](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_ht$data, 'NAV_AddWallet', 'METE YON BOUS. '), _defineProperty(_ht$data, 'NAV_BulkGenerate', 'KREYE BOUS YO PA LO '), _defineProperty(_ht$data, 'NAV_Contact', 'KONTAK '), _defineProperty(_ht$data, 'NAV_Contracts', 'KONTRA YO '), _defineProperty(_ht$data, 'NAV_DeployContract', 'OUVRI YON KONTRA '), _defineProperty(_ht$data, 'NAV_ENS', 'ENS '), _defineProperty(_ht$data, 'NAV_GenerateWallet_alt', 'Nouveau portefeuille '), _defineProperty(_ht$data, 'NAV_GenerateWallet', 'KREYE YON BOUS '), _defineProperty(_ht$data, 'NAV_Help', 'EDE '), _defineProperty(_ht$data, 'NAV_InteractContract', 'PALE AVÈK KONTRA A '), _defineProperty(_ht$data, 'NAV_Multisig', 'PLIZYÈ SIY '), _defineProperty(_ht$data, 'NAV_MyWallets', 'BOUS MWEN YO '), _defineProperty(_ht$data, 'NAV_Offline', 'VOYE SAN SIYAL '), _defineProperty(_ht$data, 'NAV_SendEther', 'VOYE ETHER '), _defineProperty(_ht$data, 'NAV_SendTokens', 'VOYE TOKENS YO '), _defineProperty(_ht$data, 'NAV_SignMsg', 'SIYEN YON MESAJ '), _defineProperty(_ht$data, 'NAV_Swap', 'CHANJE '), _defineProperty(_ht$data, 'NAV_ViewWallet', 'GADE ANNDAN YON BOUS '), _defineProperty(_ht$data, 'NAV_YourWallets', 'BOUS OU YO '), _defineProperty(_ht$data, 'x_Access', 'ANTRE '), _defineProperty(_ht$data, 'x_AddessDesc', 'LI RELE ANKÒNIMEWO KONT OSWA KLE PIBLIK SE SA W KA VOYE BAY TOUT MOUN POU YO KA VOYE ETHER YO BA W. PYON SA SE YON FASON SENP POU KONNEN ADRÈS OU '), _defineProperty(_ht$data, 'x_Address', 'ADRÈS OU '), _defineProperty(_ht$data, 'x_Cancel', 'RETIRE '), _defineProperty(_ht$data, 'x_CSV', 'PAJ CSV SAN KÒD '), _defineProperty(_ht$data, 'x_Download', 'PRAN L '), _defineProperty(_ht$data, 'x_Json', 'PAJ JSON (SAN-KÒD) '), _defineProperty(_ht$data, 'x_JsonDesc', 'SE YON LÒT VÈSYON SAN KÒD SOU FÒM JSON POU KLE SEKRÈ WLA. SA VLE DI KE W PA BEZWEN KÒD SEKRÈ W POU W SÈVI AK LI MEN NENPÒT MOUN KI JWENN JSON AN KAPAB ANTRE NAN BOUS OU A AK ETHER W YO SAN KÒD SEKRÈ '), _defineProperty(_ht$data, 'x_Keystore', 'PAJ KEYSTORE (UTC/ JSON DWE GEN KÒD) '), _defineProperty(_ht$data, 'x_Keystore2', 'PAJ KEYSTORE (UTC / JSON) '), _defineProperty(_ht$data, 'x_KeystoreDesc', 'PAJ KEYSTORE SA SÈVI AK MENM FÒM MIST LA SÈVI A TOU, OU KAPAB PRAN L FASILMAN PITA NAN LOGISYÈL YO. SE PAJ SA NOU MANDE W POU W PRAN AK KENBE L '), _defineProperty(_ht$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_ht$data, 'x_Mnemonic', 'LÈT FRAZ KACHE.'), _defineProperty(_ht$data, 'x_ParityPhrase', 'FRAZ KI SANBLE '), _defineProperty(_ht$data, 'x_Password', 'KÒD SEKRÈ '), _defineProperty(_ht$data, 'x_Print', 'FÈ SÒTI YON BOUS SOU PAPYE '), _defineProperty(_ht$data, 'x_PrintDesc', 'LÒT MWAYEN: PEZE SOU SÒTI PAJ LA AK KENBE BOUS PAPYE A TANKOU YON PDF, MENM KE W PA GEN APARÈY POU SÒTI PAJ LA ! '), _defineProperty(_ht$data, 'x_PrintShort', 'SÒTI PAJ LA '), _defineProperty(_ht$data, 'x_PrivKey', 'KLE SEKRÈ ( SAN KÒD) '), _defineProperty(_ht$data, 'x_PrivKey2', 'KLE SEKRÈ '), _defineProperty(_ht$data, 'x_PrivKeyDesc', 'SE YON LÒT VÈSYON KLE SEKRÈ W LA EKRI SAN KÒD, SA VLE DI OKENN KÒD SEKRÈ PA NESESÈ POU SÈVI AK LI. SI NENPÒT MOUN TA VIN JWENN KLE SEKRÈ SA, LAP KAPAB ANTRE NAN BOUS OU A SAN KÒD SEKRÈ. POU REZON SA, NOU MANDE LÒT FASON AN KI GEN KÒD POU KLE SEKRÈ W LA '), _defineProperty(_ht$data, 'x_Save', 'KENBE L '), _defineProperty(_ht$data, 'x_TXT', 'PAJ TXT (SAN-KÒD) '), _defineProperty(_ht$data, 'x_Wallet', 'BOUS '), _defineProperty(_ht$data, 'CX_Tagline', 'EKSTANSYON CHROME BOUS d\'Ether Open Source JavaScript POU KLIYAN AN '), _defineProperty(_ht$data, 'CX_Warning_1', 'VEYE POU W KA GEN** YON LÒT KOTE POU KENBE DEYÒ** AK TOUT BOUS WAP JERE LA. GEN ANPIL BAGAY KI KAPAB FÈ W PÈDI DONE NIVO CHROME SA, AK ANKÒ RETIRE ENSTALASYON AN AK NAN ENSTALE NIVO A. NIVO SA SE YON FASON POU W ANTRE FASILMAN NAN BOUS OU YO, **SE PA** YON FASON POU W KENBE YO '), _defineProperty(_ht$data, 'MEW_Tagline', 'BOUS d\'Ether Open Source JavaScript POU KLIYAN AN '), _defineProperty(_ht$data, 'MEW_Warning_1', 'TOUJOU BYEN VERIFYE LURL ANVAN W ANTRE NAN BOUS OU A OSWA POU KREYE YON LÒT BOUS. ATANSYON AK FO SIT YO '), _defineProperty(_ht$data, 'FOOTER_1', 'YON ZOUTI OPEN SOURCE NAN JAVASCRIPT LI FÈT POU KLIYAN KREYE BOUS ETHEREUM YO EPI FÈ ANPIL TRANSFÈ '), _defineProperty(_ht$data, 'FOOTER_1b', 'MOUN KI FÈ L LA SE '), _defineProperty(_ht$data, 'FOOTER_2', 'DON YO APRESYE ANPIL '), _defineProperty(_ht$data, 'FOOTER_3', 'KREYASYON BOUS POU KLIYAN AK '), _defineProperty(_ht$data, 'FOOTER_4', 'AVÈTISMAN '), _defineProperty(_ht$data, 'sidebar_AccountInfo', 'ENFÒMASYON YO SOU KONT LA '), _defineProperty(_ht$data, 'sidebar_AccountAddr', 'ADRÈS KONT LA '), _defineProperty(_ht$data, 'sidebar_AccountBal', 'KOBYEN KÒB KONT LA GENYEN '), _defineProperty(_ht$data, 'sidebar_TokenBal', 'KONBYEN TOKENS KONT LA GENYEN '), _defineProperty(_ht$data, 'sidebar_Equiv', 'LÒT VALÈ KI MENM JAN '), _defineProperty(_ht$data, 'sidebar_TransHistory', 'LIS TRANSFÈ YO '), _defineProperty(_ht$data, 'sidebar_donation', 'MYETHERWALLET SE YON SÈVIS GRATIS EPI YON OPEN SOURCE KI RESPEKTE VI SEKRÈ W AK SEKIRITE W. PLIS NAP JWENN ANPIL DON, PLIS NAP PASE ANPIL TAN POU N DEVLOPE LÒT FONKSYON YO, NAP TANDE SA W MANDE AK BA W SA W BEZWEN . NOU SE KÈK MOUN KAP ESEYE CHANJE MOND LA. EDE NOU! '), _defineProperty(_ht$data, 'sidebar_donate', 'FÈ YON DON '), _defineProperty(_ht$data, 'sidebar_thanks', 'MÈSI !!! '), _defineProperty(_ht$data, 'sidebar_DisplayOnTrezor', 'Afficher l\'adresse sur TREZOR'), _defineProperty(_ht$data, 'sidebar_DisplayOnLedger', 'Afficher l\'adresse sur Ledger'), _defineProperty(_ht$data, 'decrypt_Access', 'KÒMAN W VLE ANTRE NAN BOUS OU A ? '), _defineProperty(_ht$data, 'decrypt_Title', 'CHWAZI FÒM OU VLE METE KLE SEKRÈ W LA '), _defineProperty(_ht$data, 'decrypt_Select', 'CHWAZI YON BOUS '), _defineProperty(_ht$data, 'MNEM_1', 'Please select the address you would like to interact with. '), _defineProperty(_ht$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_ht$data, 'MNEM_more', 'More Addresses '), _defineProperty(_ht$data, 'MNEM_prev', 'Previous Addresses '), _defineProperty(_ht$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_ht$data, 'ADD_Ledger_1', 'Connect your Ledger Wallet '), _defineProperty(_ht$data, 'ADD_Ledger_2', 'Open the Ethereum application (or a contract application) '), _defineProperty(_ht$data, 'ADD_Ledger_2_Exp', 'Open the Expanse application (or a contract application) '), _defineProperty(_ht$data, 'ADD_Ledger_2_Ubq', 'Open the Ubiq application (or a contract application) '), _defineProperty(_ht$data, 'ADD_Ledger_3', 'Verify that Browser Support is enabled in Settings '), _defineProperty(_ht$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_ht$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_ht$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_ht$data, 'ADD_Ledger_scan', 'Connect to Ledger Wallet '), _defineProperty(_ht$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_ht$data, 'x_Trezor', 'TREZOR '), _defineProperty(_ht$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_ht$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_ht$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_ht$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_ht$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_ht$data, 'ADD_Label_1', 'KISA W VLE FÈ ? '), _defineProperty(_ht$data, 'ADD_Radio_1', 'KREYE YON LÒT BOUS '), _defineProperty(_ht$data, 'ADD_Radio_2', 'CHWAZI PAJ BOUS OU A (KEYSTORE/JSON) '), _defineProperty(_ht$data, 'ADD_Radio_2_alt', 'CHWAZI PAJ BOUS OU A '), _defineProperty(_ht$data, 'ADD_Radio_2_short', 'SELECT WALLET FILE... '), _defineProperty(_ht$data, 'ADD_Radio_3', 'KOLE/PRAN KLE SEKRÈ W LA '), _defineProperty(_ht$data, 'ADD_Radio_4', 'METE YON KONT '), _defineProperty(_ht$data, 'ADD_Radio_5', 'KOLE/ANTRE LÈT POU FRAZ KACHE W LA '), _defineProperty(_ht$data, 'ADD_Radio_5_Path', 'CHWAZI HD POU LÒT WOUT '), _defineProperty(_ht$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_ht$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_ht$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_ht$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_ht$data, 'ADD_Radio_5_PathCustom', 'Personnalisé'), _defineProperty(_ht$data, 'ADD_Label_2', 'BAY KONT OU A YON NON '), _defineProperty(_ht$data, 'ADD_Label_3', 'PAJ OU A GEN KÒD, TANPRI METE KÒD SEKRÈ W '), _defineProperty(_ht$data, 'ADD_Label_4', 'METE YON KONT KI KA PARÈT '), _defineProperty(_ht$data, 'ADD_Warning_1', 'OU KAPAB METE NENPÒT KI KONT POU W FÈ L PARÈT NAN TI BWAT « BOUS YO » SAN W PA PRAN YON KLE SEKRÈ. SA **PA** VLE DI KE WAP KA ANTRE NAN BOUS SA, NI POU W TA FÈ TRANSFÈ ETHER YO SÒTI NAN BOUS SA '), _defineProperty(_ht$data, 'ADD_Label_5', 'ANTRE ADRÈS LA '), _defineProperty(_ht$data, 'ADD_Label_6', 'OUVRI BOUS OU A '), _defineProperty(_ht$data, 'ADD_Label_6_short', 'OUVRI '), _defineProperty(_ht$data, 'ADD_Label_7', 'METE YON KONT '), _defineProperty(_ht$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_ht$data, 'MYWAL_Nick', 'NON BOUS LA '), _defineProperty(_ht$data, 'MYWAL_Address', 'ADRÈS BOUS LA '), _defineProperty(_ht$data, 'MYWAL_Bal', 'KANTITE KÒB '), _defineProperty(_ht$data, 'MYWAL_Edit', 'KORIJE '), _defineProperty(_ht$data, 'MYWAL_View', 'GADE '), _defineProperty(_ht$data, 'MYWAL_Remove', 'EFASE '), _defineProperty(_ht$data, 'MYWAL_RemoveWal', 'EFASE BOUS LA '), _defineProperty(_ht$data, 'MYWAL_WatchOnly', 'KONT OU YO KI PARÈT SELMAN '), _defineProperty(_ht$data, 'MYWAL_Viewing', 'FÈ PARÈT BOUS YO '), _defineProperty(_ht$data, 'MYWAL_Hide', 'KACHE ENFÒMASYON YO SOU BOUS LA '), _defineProperty(_ht$data, 'MYWAL_Edit_2', 'KORIJE BOUS LA '), _defineProperty(_ht$data, 'MYWAL_Name', 'NON BOUS LA '), _defineProperty(_ht$data, 'MYWAL_Content_1', 'ANTANSYON ! OU PRAL EFASE BOUS OU A '), _defineProperty(_ht$data, 'MYWAL_Content_2', 'BYEN VEYE KE W **KENBE KLE SEKRÈ W LA/PAJ JSON AK KÒD SEKRÈ A**KI ASOSYE AK BOUS LA ANVAN W EFASE L '), _defineProperty(_ht$data, 'MYWAL_Content_3', 'SI W VLE SÈVI AK BOUS SA AVÈK MyEtherWallet CX NAN LÒT JOU YO, OU DWE METE L ANKÒ SÈVI AK KLE SEKRÈ A /PAJ JSON AK KÒD SEKRÈ A '), _defineProperty(_ht$data, 'GEN_desc', 'SI W VLE KREYE PLIZYÈ LÒT BOUS, OU KAPAB FÈL LA '), _defineProperty(_ht$data, 'GEN_Label_1', 'METE YON GWO KÒD SEKRÈ (POU PI PITI 9 KARAKTÈ '), _defineProperty(_ht$data, 'GEN_Placeholder_1', 'PA BLIYE KENBE SA '), _defineProperty(_ht$data, 'GEN_SuccessMsg', 'SIKSÈ ! BOUS OU A KREYE '), _defineProperty(_ht$data, 'GEN_Label_2', 'KENBE PAJ KEYSTORE W LA OSWA KLE SEKRÈ W LA. PA BLIYE KÒD SEKRÈ W LA KI ANLÈ A '), _defineProperty(_ht$data, 'GEN_Label_3', 'KENBE BOUS OU A '), _defineProperty(_ht$data, 'GEN_Label_4', 'OPSYON : FÈ SÒTI BOUS OU A SOU PAPYE OSWA SERE version QR code '), _defineProperty(_ht$data, 'BULK_Label_1', 'KANTITE BOUS KI KA KREYE '), _defineProperty(_ht$data, 'BULK_Label_2', 'KREYE BOUS YO '), _defineProperty(_ht$data, 'BULK_SuccessMsg', 'SIKSÈ ! BOUS OU YO KREYE '), _defineProperty(_ht$data, 'SEND_addr', 'ADRÈS KOTE WAP VOYE L '), _defineProperty(_ht$data, 'SEND_amount', 'KANTITE WAP VOYE A '), _defineProperty(_ht$data, 'SEND_amount_short', 'KANTITE '), _defineProperty(_ht$data, 'SEND_custom', 'TOKENS ESPESYAL '), _defineProperty(_ht$data, 'SEND_gas', 'GAZ '), _defineProperty(_ht$data, 'SEND_TransferTotal', 'VOYE TOUT KANTITE A ;// RENOUVLLE L POU PI PI VIT '), _defineProperty(_ht$data, 'SEND_generate', 'KREYE TRANFÈ A '), _defineProperty(_ht$data, 'SEND_raw', 'TRASFÈ SAN ANALIZ '), _defineProperty(_ht$data, 'SEND_signed', 'TRANSFÈ SIYEN '), _defineProperty(_ht$data, 'SEND_trans', 'VOYE TRANSFÈ A '), _defineProperty(_ht$data, 'SENDModal_Title', 'ATANSYON! '), _defineProperty(_ht$data, 'SENDModal_Content_1', 'OU PRAL VOYE L '), _defineProperty(_ht$data, 'SENDModal_Content_2', 'NAN ADRÈS '), _defineProperty(_ht$data, 'SENDModal_Content_3', 'ESKE W KONFYAN ? '), _defineProperty(_ht$data, 'SENDModal_Content_4', 'NÒT :SI JWENN AK YON ERÈ, OU TA GEN POU METE ETHER YO NAN KONT OU A POU W KOUVRI KÒB GAZ POU VOYE TOKENS YO. GAZ LA PEYE AK ETHER '), _defineProperty(_ht$data, 'SENDModal_No', 'NON, MWEN VLE SÒTI LA '), _defineProperty(_ht$data, 'SENDModal_Yes', 'WI, MWEN KONFYAN ! FÈ TRANSFÈ A '), _defineProperty(_ht$data, 'TOKEN_Addr', 'ADRÈS TOKEN CONTRACT'), _defineProperty(_ht$data, 'TOKEN_Symbol', 'SENBÒL TOKEN NAN '), _defineProperty(_ht$data, 'TOKEN_Dec', 'KONTE AN DIS (10) '), _defineProperty(_ht$data, 'TOKEN_show', 'MONTRE TOKENS YO '), _defineProperty(_ht$data, 'TOKEN_hide', 'KACHE TOKENS YO '), _defineProperty(_ht$data, 'TRANS_desc', 'SI W VLE VOYE TOKENS YO, ALE PITO NAN PAJ « VOYE TOKENS » '), _defineProperty(_ht$data, 'TRANS_warning', 'METE FONKSYON ETH YO SÈLMAN AK ETC SÈLMAN OU FÈ W PASE NAN YON KONTRA. KÈK NAN SÈVIS SA YO KONN GEN PWOBLÈM AK TRANSFÈ SA YO. POU W KONN PLIS '), _defineProperty(_ht$data, 'TRANS_advanced', '+AVANSE : METE GAZ '), _defineProperty(_ht$data, 'TRANS_data', 'DONE '), _defineProperty(_ht$data, 'TRANS_gas', 'LIMIT AN GAZ ;// CHANJE AN ENG POU LIMIT GAZ LA '), _defineProperty(_ht$data, 'TRANS_sendInfo', 'YON TRANSFÈ NÒMAL SÈVI AK 21000 GAZ KI KOUTE 0.000441 ETH. PRI GAZ LA 0.000000021 ETH KE NOU TE CHWAZI A ON TI JAN PI WO KE PI PITI A ASIRE W POU W YON KONFIMASYON RAPID. NOU PA PRAN FRÈ POU TRANSFÈ A. '), _defineProperty(_ht$data, 'OFFLINE_Title', 'KREYE EPI VOYE YON TRANFÈ SAN SIYAL '), _defineProperty(_ht$data, 'OFFLINE_Desc', 'KREYASYON YON TRANSFÈ SAN SIYAL FÈT NAN TWA ETAP. ETAP 1 AK 3 YO FÈT NAN YON KOMPITÈ KI GEN SIYAL AK ETAP 2 A NAN YON KOMPITÈ KI PA KONEKTE AK REZO A. SA PÈMÈT OU IZOLE NÈT KLE SEKRÈ W LA POU TOUT MACHIN KI KONEKTE AK INTÈNÈT '), _defineProperty(_ht$data, 'OFFLLINE_Step1_Title', 'ETAP 1 : KREYASYON ENFÒMASYON AN (KOMPITÈ AK SIYAL) '), _defineProperty(_ht$data, 'OFFLINE_Step1_Button', 'KREYE ENFÒMASYON AN '), _defineProperty(_ht$data, 'OFFLINE_Step1_Label_1', 'ADRÈS KOTE L SÒTI '), _defineProperty(_ht$data, 'OFFLINE_Step1_Label_2', 'NÒT : SE NAN ADRÈS KOTE L SÒTI A, SE PA ADRÈS KOTE LAP RIVE A.NONCE LA KREYE AK KONT MOUN KAP VOYE A. SI NOU SÈVI AK YON MACHIN KI PA KONEKTE AK REZO A, ADRÈS SA AP ADRÈS KONT LA TANKOU _COLDSTORAGE '), _defineProperty(_ht$data, 'OFFLINE_Step2_Title', 'ETAP 2: KREYASYON TRANSFÈ A(KOMPITÈ SAN SIYAL) '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_1', 'ADRÈS KOTE L PRALE '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_2', 'VALÈ/KANTITE WAP VOYE '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_3', 'PRI GAZ LA '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_3b', 'KANTITE SA TE PARÈT NAN ETAP 1 AN LÈ KOMPITÈ W LA KI TE GEN SIYAL '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_4', 'LIMIT GAZ '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_4b', '21000 SE LIMIT NÒMAL LA. NA KA WAP VOYE POU KONTRA YO OSWA AVÈK DONE ANPLIS YO, VALÈ SA KAPAB DIFERAN. TOUT GAZ KI PA SÈVI YO YAP VOYE YO BA W '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_5', 'NONCE '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_5b', 'SA TE PARÈT NAN PREMYE ETAP NAN KOMPITÈ W LA KI GEN SIYAL.'), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_6', 'DONE YO '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_6b', 'SA SE YON ZÒN OPSYON, DONE YO TOUJOU SÈVI LÈ YAP FÈ TRANSFÈ POU KONTRA YO '), _defineProperty(_ht$data, 'OFFLINE_Step2_Label_7', 'ANTRE/ CHWAZI KLE SEKRÈ W LA / JSON '), _defineProperty(_ht$data, 'OFFLINE_Step3_Title', 'ETAP 3 : VOYE/ FÈ WÈ TRANSFÈ A ( KOMPITÈ AK SIYAL) '), _defineProperty(_ht$data, 'OFFLINE_Step3_Label_1', 'KOPYE TRANSFÈ A LA SIYEN NAN ETAP 2 A AK PEZE SOU BOUTON ”VOYE TRANSFÈ A '), _defineProperty(_ht$data, 'CONTRACT_Title', 'Adresse de contrat '), _defineProperty(_ht$data, 'CONTRACT_Title_2', 'Sélectionner un contrat existant '), _defineProperty(_ht$data, 'CONTRACT_Json', 'Interface ABI / JSON '), _defineProperty(_ht$data, 'CONTRACT_Interact_Title', 'Lecture / écriture de contrat '), _defineProperty(_ht$data, 'CONTRACT_Interact_CTA', 'Sélectionnez une fonction '), _defineProperty(_ht$data, 'CONTRACT_ByteCode', 'Bytecode '), _defineProperty(_ht$data, 'CONTRACT_Read', 'LIRE '), _defineProperty(_ht$data, 'CONTRACT_Write', 'ECRIRE '), _defineProperty(_ht$data, 'DEP_generate', 'Générer le bytecode '), _defineProperty(_ht$data, 'DEP_generated', 'Bytecode généré '), _defineProperty(_ht$data, 'DEP_signtx', 'Signer la transaction '), _defineProperty(_ht$data, 'DEP_interface', 'Interface générée '), _defineProperty(_ht$data, 'NODE_Title', 'ENSTALE NE SEKRÈ W LA '), _defineProperty(_ht$data, 'NODE_Subtitle', 'POU W KAPAB KONENTE AK YON NE LOKAL '), _defineProperty(_ht$data, 'NODE_Warning', 'NE W LA DWE AN HTTPS POU W KONEKTE AVÈK MYETHERWALLET.COM. OU KAPAB [PRAN REPO MYWALLET LA EPI OUVRI L LOKALMAN ](https://github.com/kvhnuke/etherwallet/releases/latest) POU W KONEKTE A KÈK LÒT NE , OSWA POU W GENYEN SÈTIFIKA SSL GRATIS AVÈK[LetsEncrypt](https://letsencrypt.org/).'), _defineProperty(_ht$data, 'NODE_Name', 'NON NE A '), _defineProperty(_ht$data, 'NODE_Port', 'PÒ NE A '), _defineProperty(_ht$data, 'NODE_CTA', 'ANREJISTRE EPI SÈVI AK YON NE SEKRÈ '), _defineProperty(_ht$data, 'SWAP_rates', 'VALÈ LI YE KOUNYE A '), _defineProperty(_ht$data, 'SWAP_init_1', 'M VLE CHANJE '), _defineProperty(_ht$data, 'SWAP_init_2', 'POU '), _defineProperty(_ht$data, 'SWAP_init_CTA', 'ANN KONTINYE'), _defineProperty(_ht$data, 'SWAP_information', 'ENFÒMASYON W YO'), _defineProperty(_ht$data, 'SWAP_send_amt', 'KANTITE POU VOYE '), _defineProperty(_ht$data, 'SWAP_rec_amt', 'KANTITE POU RESEVWA '), _defineProperty(_ht$data, 'SWAP_your_rate', 'VALÈ LI YE '), _defineProperty(_ht$data, 'SWAP_rec_add', 'ADRÈS POU RESEVWA '), _defineProperty(_ht$data, 'SWAP_start_CTA', 'KÒMANSE CHANJE '), _defineProperty(_ht$data, 'SWAP_ref_num', 'NIMEWO POU YO JWENN OU '), _defineProperty(_ht$data, 'SWAP_time', 'TAN KI RETE POU VOYE L '), _defineProperty(_ht$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_ht$data, 'SWAP_progress_1', 'LÒD PASE '), _defineProperty(_ht$data, 'SWAP_progress_2', '// Waiting for your BTC... //NAP TANN BTC W YO '), _defineProperty(_ht$data, 'SWAP_progress_3', ', // ETH Received! ETH RESEVWA ! '), _defineProperty(_ht$data, 'SWAP_progress_4', 'VOYE {{REZILTA LÒD. KREYASYON.MONNEN}} YO '), _defineProperty(_ht$data, 'SWAP_progress_5', 'LÒD AKONPLI '), _defineProperty(_ht$data, 'SWAP_order_CTA', 'TANPRI VOYE 1 ETH '), _defineProperty(_ht$data, 'SWAP_unlock', 'OUVRI BOUS OU A POU W VOYE ETH YO OSWA TOKENS YO SÒTI DIRÈKTEMAN NAN SA '), _defineProperty(_ht$data, 'MSG_message', 'MESAJ '), _defineProperty(_ht$data, 'MSG_date', 'DAT '), _defineProperty(_ht$data, 'MSG_signature', 'SIYATI.'), _defineProperty(_ht$data, 'MSG_verify', 'VERIFYE YON MESAJ '), _defineProperty(_ht$data, 'MSG_info1', 'METE DAT JOU A POU SIYATI A PA SÈVI ANKÒ NAN YON LÒT MOMAN '), _defineProperty(_ht$data, 'MSG_info2', 'METE TI NON W NAN KOTE W KONN SÈVI AK LI A POU YON LÒT MOUN PA SÈVI AK LI '), _defineProperty(_ht$data, 'MSG_info3', 'METE YON SÈL BON REZON POU MESAJ LA POU L PA SÈVI ANKÒ POU YON LÒT REZON '), _defineProperty(_ht$data, 'VIEWWALLET_Subtitle', 'SA PÈMÈT OU POU W PRAN PLIZYÈ VÈZSYON KLE SEKRÈ YO EPI AK SÒTI BOUS OU A ANKÒ SOU PAPYE. OU DWE FÈ L POU [ PRAN KONT OU A NAN GETH/MIST] (http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). SI W VLE WÈ VALÈ KÒB OU A, NOU MANDE W POU SÈVI AK YON EKSPLORATÈ POU BLOCKCHAIN TANKOU[etherscan.io](https://etherscan.io/).'), _defineProperty(_ht$data, 'VIEWWALLET_Subtitle_Short', 'SA PÈMÈT OU POU W PRAN PLIZYÈ VÈZSYON KLE SEKRÈ YO EPI POU SÒTI BOUS OU A ANKÒ SOU PAPYE '), _defineProperty(_ht$data, 'VIEWWALLET_SuccessMsg', 'SIKSÈ ! MEN DETAY YO POU BOUS OU A '), _defineProperty(_ht$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_ht$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_ht$data, 'CX_error_1', 'OU PA GEN BOUS KI ANREJISTRE. PEZE SOU[METE YON BOUS] (/cx-wallet.html#add-wallet) POU METE YOUN !. '), _defineProperty(_ht$data, 'CX_quicksend', 'VOYE RAPID ; // SI JAN L TRADWI A PA NAN GOU W JIS SÈVI AK ”SEND” '), _defineProperty(_ht$data, 'ERROR_0', 'ANTRE YON KANTITE KI VALAB '), _defineProperty(_ht$data, 'ERROR_1', 'KÒD SEKRÈ W LA DWE GEN POU PI PITI 9 KARAKTÈ. BYEN VEYE KE SE YON GWO KÒD SEKRÈ '), _defineProperty(_ht$data, 'ERROR_2', 'DEZOLE ! SÈVIS NOU AN PA PÈMÈT NOU JERE JAN DE PAJ BOUS SA '), _defineProperty(_ht$data, 'ERROR_3', 'SA SE PA YON PAJ BOUS '), _defineProperty(_ht$data, 'ERROR_4', 'VALÈ SA PA LA, TANPRI SÈVI AK YOUN NANN LÒT VALÈ SA YO '), _defineProperty(_ht$data, 'ERROR_5', 'ANTRE YON BON ADRÈS '), _defineProperty(_ht$data, 'ERROR_6', 'ANTRE YON BON KÒD SEKRÈ '), _defineProperty(_ht$data, 'ERROR_7', 'TANPRI ANTRE YON VALÈ KI BON (Must be integer. Try 0-18.) '), _defineProperty(_ht$data, 'ERROR_8', 'TANPRI ANTRE YON BON LIMIT GAZ . (Must be integer. Try 21000-4000000.) '), _defineProperty(_ht$data, 'ERROR_9', 'TANPRI ANTRE YON VALÈ DONE YO KI VALAB. (Must be hex.) '), _defineProperty(_ht$data, 'ERROR_10', 'TANPRI ANTRE YON VALÈ GAZ KI VALAB(Must be integer. Try 20 GWEI / 20000000000 WEI.) (LI DWE ANTYE. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_ht$data, 'ERROR_11', '(Must be integer.) '), _defineProperty(_ht$data, 'ERROR_12', 'SIYATI TRANSFÈ A PA VALAB '), _defineProperty(_ht$data, 'ERROR_13', 'NON BOUS SA LA DEJA '), _defineProperty(_ht$data, 'ERROR_14', 'BOUS SA PA LA '), _defineProperty(_ht$data, 'ERROR_15', 'TA SANBLE POKO GEN OKENN PWOPOZISYON KI LA DEJA AVÈK MOUN SA OSWA GEN YON ERÈ PANDAN KONSILTASYON PWOPOZISYON AN '), _defineProperty(_ht$data, 'ERROR_16', 'GEN YON BOUS KI GEN ADRÈ SA DEJA. TANPRI AL GADE LIS PAJ BOUS OU A '), _defineProperty(_ht$data, 'ERROR_17', 'IFONDS LA YO PA SIFI. KONT KOTE WAP ESEYE VOYE TRANSFÈ A PA GEN ASE PWOVISYON. FÒK OU TA GENYEN POU PI PITI 0,01 ETHER SOU KONT OU A POU W KA KOUVRI KÒB GAZ YO. METE ETHER YO EPI ESEYE ANKÒ '), _defineProperty(_ht$data, 'ERROR_18', 'TOUT GAZ LA TE SÈVI PANDAN TRANSFÈ A. SA VLE DI KE W TE DEJA VOTE POU PWOPOZISYON SA DEJA OSWA KE MOMAN DEBA A FINI '), _defineProperty(_ht$data, 'ERROR_19', 'TANPRI ANTRE YON SENBÒL KI VALAB '), _defineProperty(_ht$data, 'ERROR_20', 'SE PA YON TOKEN ERC-20 VALAB. SI YAP PRAN LÒT TOKEN YO, RETIRE SA EPI ESEYE ANKÒ '), _defineProperty(_ht$data, 'ERROR_21', 'LI PA POSIB POU N KONN KONBYEN GAZ LA YE. PA GEN ASE PWOVISYON SOU KONT SA, OSWA ADRÈS KONTRA KOTE Y AP RESEVWA L LA TE VOYE TOUNEN YON ERÈ. OU KAPAB METE GAZ LA OU MENM EPI KÒMANSE ANKÒ. MESAJ ERÈ A PANDAN WAP VOYE L LA KAPAB GEN ANPIL ENFÒMASYON '), _defineProperty(_ht$data, 'ERROR_22', 'TANPRI ANTRE YON NON NE KI VALAB '), _defineProperty(_ht$data, 'ERROR_23', 'TANPRI ANTRE YON URL KI VALAB ; SI W AN HTTPS URL OUA DWE AN HTTPS '), _defineProperty(_ht$data, 'ERROR_24', 'TANPRI ANTRE YON PÒ KI VALAB '), _defineProperty(_ht$data, 'ERROR_25', 'TANPRI ANTRE YON ID DE CHÈNN VALAB '), _defineProperty(_ht$data, 'ERROR_26', 'TANPRI ANTRE YON ABI KI VALAB '), _defineProperty(_ht$data, 'ERROR_27', 'KANTITE PI PITI : 0.01. KANTITE PI GWO '), _defineProperty(_ht$data, 'ERROR_28', '**OU BEZWEN PAJ KEYSTORE W LA EPI KÒD SEKRÈ A ** ( OSWA KLE SEKRÈ W LA) POU KAPAB ANTRE NAN BOUS SA NAN LÒT JOU YO. TANPRI PRAN LEPI POU W SERE L YON KOTE DEYÒ ! PA GEN OKENN LÒT MWAYEN POU W JWENN ANKÒ YON BOUS SI W PA ANREJISTRE L. TANPRI LI PAJ SA [PAJ POU EDE](https://www.myetherwallet.com/#help) POU DETAY YO '), _defineProperty(_ht$data, 'ERROR_29', 'TANPRI ANTRE YON BON NON AK KÒD SEKRÈ L '), _defineProperty(_ht$data, 'ERROR_30', 'TANPRI ANTRE YON BON NON ENS '), _defineProperty(_ht$data, 'ERROR_31', 'FRAZ SEKRÈ A PA VALAB '), _defineProperty(_ht$data, 'ERROR_32', 'LI ENPOSIB POU W KONEKTE AK NE A. RAFRECHI PAJ LA, OSWA ESEYE YON LÒT NE (upper right corner), GADE NAN PARAMÈT FIREWALL OU YO. SI W AN MÒD NE, GADE NAN PARAMÈT YO // 32 '), _defineProperty(_ht$data, 'ERROR_33', 'BOUS WAP ESEYE OUVRI A LI PA GEN MENNM ADRÈS AK MET LI;33 '), _defineProperty(_ht$data, 'ERROR_34', 'NON WAP TANTE POU W KA WÈ A PA GEN MENM ADRÈS AK NON OU TE ANTRE A // 34 '), _defineProperty(_ht$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_ht$data, 'ERROR_36', 'Entrez une empreinte (_hash_) de TX valide'), _defineProperty(_ht$data, 'ERROR_37', 'Entrez une chaîne hex valide (0-9, a-f)'), _defineProperty(_ht$data, 'SUCCESS_1', 'ADRÈS LA VALAB '), _defineProperty(_ht$data, 'SUCCESS_2', 'BOUS DEKÒDE AVÈK SIKSÈ '), _defineProperty(_ht$data, 'SUCCESS_3', 'TX ALE NAN BLOCKCHAIN NAN. PEZE BOUTON AN POU W KA WÈ TRANSFÈ W LA & VERIFYE SI SE POU OU AK SI LI PA MANKE GAZ OSWA KÈK ERÈ NAN KONTRA EKZEKISYON LYO '), _defineProperty(_ht$data, 'SUCCESS_4', 'BOUS LA METE AVÈK SIKSÈ '), _defineProperty(_ht$data, 'SUCCESS_5', 'PAJ CHWAZI '), _defineProperty(_ht$data, 'SUCCESS_6', 'OU BYEN KONEKTE '), _defineProperty(_ht$data, 'SUCCESS_7', 'SIYATI MESAJ LA VERIFYE '), _defineProperty(_ht$data, 'WARN_Send_Link', 'OU RIVE LA GRAS AK YON LYEN KI PLEN ADRÈS LA, KANTITE A, GAZ LA OSWA ESPAS DONE W YO. OU KAPAB KORIJE TOUT ENFÒMASYON YO ANVAN W VOYE YO . OUVRI BOUS OU A POU W KÒMANSE '), _defineProperty(_ht$data, 'GETH_InvalidSender', 'MOUN KAP VOYE L PA BON '), _defineProperty(_ht$data, 'GETH_Nonce', 'NONCE TWÒ BA '), _defineProperty(_ht$data, 'GETH_Cheap', 'PRI GAZ LA TWO BA POU L AKSEPTE '), _defineProperty(_ht$data, 'GETH_Balance', 'KANTITE A PA SIFI '), _defineProperty(_ht$data, 'GETH_NonExistentAccount', 'KONT SA PA EGZISTE OSWA KANTITE KI NAN KONT LA TWÒ BA '), _defineProperty(_ht$data, 'GETH_InsufficientFunds', 'KÒB SA YO PA SIFI POU GAZ *PRI+VALÈ '), _defineProperty(_ht$data, 'GETH_IntrinsicGas', 'VALÈ GAZ LA TWO BA '), _defineProperty(_ht$data, 'GETH_GasLimit', 'LIMIT GAZ LA DEPASE '), _defineProperty(_ht$data, 'GETH_NegativeValue', 'VALÈ A PA BON '), _defineProperty(_ht$data, 'PARITY_AlreadyImported', 'GEN YON TRANSFÈ KI GEN MENM HASH SA KI SÒTI LA DEJA '), _defineProperty(_ht$data, 'PARITY_Old', 'NONCE TRANSFÈ A TWÒ BA. ESEYE METE SOU NONCE LAN ANKÒ '), _defineProperty(_ht$data, 'PARITY_TooCheapToReplace', 'FRÈ TRANSFÈ YO TWÒ BA. GEN YON LÒT TRANSFÈ KI GEN MENM NONCE LA KAP TANN. ESEYE METE SOU FRÈ A OSWA METE SOU NONCE LAN '), _defineProperty(_ht$data, 'PARITY_LimitReached', 'GEN TWÒP TRANSFÈ KAP TANN. TRANSFÈ W LA PA FÈT POU REZON SA. ESYE METE SOU FRÈ A '), _defineProperty(_ht$data, 'PARITY_InsufficientGasPrice', 'FRÈ TRANSFÈ YO TWÒ BA. YO PA SATISFÈ MENM POU PITI NE A (MINIMUM :{},REÇU :{}). ESEYE METE SOU FRÈ YO '), _defineProperty(_ht$data, 'PARITY_InsufficientBalance', 'IFONDS YO PA SIFI. KONT KOTE WAP ESEYE VOYE TANSFÈ A PA GEN ASE KÒB. YO MANDE A: {} , REÇU : {} '), _defineProperty(_ht$data, 'PARITY_GasLimitExceeded', 'KÒB TRANSFÈ A DEPASE LIMIT GAZ KOUNYE A. LIMIT :{}. ESEYE RETIRE NAN GAZ OU JWENN NAN '), _defineProperty(_ht$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_ht$data, 'translate_version', '0.5 '), _defineProperty(_ht$data, 'Translator_Desc', ' YON MÈSI POU TRADIKTÈ NYO '), _defineProperty(_ht$data, 'TranslatorName_1', '[Nogo10](https://www.myetherwallet.com/?gaslimit=21000&to= 0x152e77CC3Dd8d86471ebEa8e93B9924A41e7055a&value=1.0#VOYE-TRANSFÈ A) · '), _defineProperty(_ht$data, 'TranslatorAddr_1', ' 0x152e77CC3Dd8d86471ebEa8e93B9924A41e7055a '), _defineProperty(_ht$data, 'TranslatorName_2', 'NON TRADIKTÈ_2 JJCROISIERE · '), _defineProperty(_ht$data, 'TranslatorAddr_2', 'TRADIKTÈ ADDR_2 '), _defineProperty(_ht$data, 'TranslatorName_3', 'NON TRADIKTÈ A JJCROISIERE '), _defineProperty(_ht$data, 'TranslatorAddr_3', ' TRADIKTÈ ADDDR_3 '), _defineProperty(_ht$data, 'TranslatorName_4', 'NON TRADIKTÈ_4 '), _defineProperty(_ht$data, 'TranslatorAddr_4', 'TRADIKTÈADDR_4 '), _defineProperty(_ht$data, 'TranslatorName_5', 'NON TRADIKTÈ_5 '), _defineProperty(_ht$data, 'TranslatorAddr_5', 'TRADIKTÈADDR_5 '), _defineProperty(_ht$data, 'HELP_Warning', 'SI W TE KREYE YON BOUS- OSWA- OU TE PRAN REPO A ANVAN ** 31 DESANM 2015**, TANPRI VERIFYE BOUS OU YO / AL PRAN YON LÒT VÈSYON REPO A ANKÒ. PEZE LA POU W KA JWENN PLIS DETAY. '), _defineProperty(_ht$data, 'HELP_Desc', 'MANKE YON BAGAY ? SI W GEN LÒT KESYON ? [PALE AK NOU]( mailto:support@myetherwallet.com), NAP REPONN OU EPI NAP TOU METE PAJ LA A JOU POU L KA ITIL PI PLIS AK TOUT LÒT MOUN YO NAN LÒT JOU YO ! '), _defineProperty(_ht$data, 'HELP_Remind_Title', 'KÈK NAN SA POU SONJE YO: '), _defineProperty(_ht$data, 'HELP_Remind_Desc_1', 'ETHEREUM, MYETHERWALLET.COM & MYETHER WALLET CX, EPI KÈK NAN BIBLIYOTÈK YO JAVASCRIPT KI ANBA KE NOU KONN SÈVI AK YO KÒMANSE AP DEVLOPE.** NOU PASE YO GWO TÈS EPI ANPIL DIZÈNN AK MILYE BOUS SA YO TE KREYE AVÈK ANPIL SIKSÈ TOUT KOTE NAN MOND LA. KA TOUJOU GEN YON TI KRAS POSIBLITE KE YON BAGAY KA PASE KI KA PÈMÈT OU PÈDI ETH OU YO. PA ENVESTI PLIS PLIS KE SA W KA PRÈ POU W PÈDI EPI PRIDANS. NAN KA AKSIDAN, NAP DEZOLE MEN ** NOU PAP RESPONSAB POU ETHER SA W PÈDI A** '), _defineProperty(_ht$data, 'HELP_Remind_Desc_2', 'MYETHERWALLET.COM & MYETHERWALLET CX YO PA "BOUS WEB". OU PA KREYE YON KONT , OU PA BA NOU ETHER W YO TANKOU DEPO. OKENN DONE PA SÒTI NAN KOMPITÈ W OSWA NAVIGATÈ W LA. NAP FASILITE W POU W KREYASYON AN. KIJAN POU KENBE L EPI ANTRE NAN ENFÒMASYON W YO AK KONTAK OU MENM AK BLOCKCHAIN NAN. '), _defineProperty(_ht$data, 'HELP_Remind_Desc_3', 'SI W PA BYEN KENBE KLE SEKRÈ W LA EPI KÒD SEKRÈ W , PA GEN OKENN LÒT MWAYEN OU KA ANTRE NAN BOUS OU A ANKÒ AK JWENN PWOVIZYON KI LADAN L YO. SERE YO NAN PLIZYÈ KOTE EPI SE PA SELMAN SOU KOMPITÈ W LA! '), _defineProperty(_ht$data, 'HELP_0_Title', '0) MWEN FENK VINI. KISA POU M FÈ? '), _defineProperty(_ht$data, 'HELP_0_Desc_1', 'MYETHERWALLET BA W MWAYEN POU W KREYE PLIZYÈ LÒT BOUS POU W KACHE ETHER OU A OU MENM EPI SE PA SOU YON ** CHANJ** PWOSESIS SA KA FÈT SOU YON KOMPITÈ, SE PA SOU SÈVÈ NOU YO. LÈ WAP KREYE YON LÒT BOUS ** SE RESPONSABLITE W POU W BYEN KENBE L AN SEKIRITE** '), _defineProperty(_ht$data, 'HELP_0_Desc_2', 'KREYE YON NOUVO BOUS. '), _defineProperty(_ht$data, 'HELP_0_Desc_3', 'ANREJISTRE BOUS LA. '), _defineProperty(_ht$data, 'HELP_0_Desc_4', 'VERIFYE POU W WÈ SI W GEN AKSÈ POU W ANTRE NAN LÒT BOUS SA AK SI W BYEN SOVE TOUT BON ENFÒMASYON NESESÈ YO. '), _defineProperty(_ht$data, 'HELP_0_Desc_5', 'VOYE ETHER A NAN LÒT BOUS SA. '), _defineProperty(_ht$data, 'HELP_1_Title', '1) KÒMAN POU M KREYE YON LÒT BOUS ? '), _defineProperty(_ht$data, 'HELP_1_Desc_1', 'ALE NAN PAJ "KREYASYON YON BOUS. '), _defineProperty(_ht$data, 'HELP_1_Desc_2', 'ALE NAN PAJ "METE YON BOUS" EPI CHWAZI "KREYE YON LÒT BOUS" '), _defineProperty(_ht$data, 'HELP_1_Desc_3', 'ANTRE YON GWO KÒD SEKRÈ. SI W PANSE W KA BLIYE L, SERE L YON BON KOTE. OU PRAL GEN BEZWEN KÒD SEKRÈ SA POU W VOYE TRANSFÈ YO. '), _defineProperty(_ht$data, 'HELP_1_Desc_4', 'PEZE SOU "KREYE". '), _defineProperty(_ht$data, 'HELP_1_Desc_5', 'POU KOUNYE A BOUS OU A KREYE. '), _defineProperty(_ht$data, 'HELP_2a_Desc_1', 'OU DWE TOUJOU ANREJISTRE BOUS OU A NAN PLIZYÈ KOTE, TANKOU SOU YON USB OSWA YON FÈY PAPYE. '), _defineProperty(_ht$data, 'HELP_2a_Desc_2', 'ANREJISTRE ADRÈS LA, OU KAPAB GENYEN L POU OU SÈL OSWA PATAJE L AVÈK LÒT MOUN, NAN FASON TOUT MOUN KAPAB VOYE ETHER BA W. '), _defineProperty(_ht$data, 'HELP_2a_Desc_3', 'ANREJISTRE KLE SEKRÈ W NAN PLIZYÈ FASON. PA PATAJE L AK OKENN MOUN. KLE SEKRÈ LA NESESÈ POU W ANTRE NAN ETHER W LA. POU W VOYE L ! GEN 3 DIFERAN KLE SEKRÈ KI EGZISTE: '), _defineProperty(_ht$data, 'HELP_2a_Desc_4', 'METE ADRÈS OU A, NAN BAGAY YO OU METE KLE SEKRÈ W LA AK VÈSYON PDF POU BOUS PAPYE W LA NAN YON DOSYE. KENBE L SOU KOMPITÈW LA EPI YON KLE USB. '), _defineProperty(_ht$data, 'HELP_2a_Desc_5', 'FÈ SÒTI BOUS OU A SI W GEN APARÈY LA. SI SE PA SA, EKRI KLE SEKRÈ W AK ADRÈS OU A SOU YON FÈY PAPYE. KACHE L YON BON KOTE, APRE SOU KOMPITÈ W LA EPI KLE USB LA. '), _defineProperty(_ht$data, 'HELP_2a_Desc_6', 'METE NAN LESPRI W POU W PWOTEJE TÈT OU POU W PA PÈDI KLE A EPI KÒD SEKRÈ A NAN KA OU TA PÈDI DISKEDI W LA, KLE W LA OSWA FÈY PAPYE A. OU DWE TOU PWOTEJE W KONT TOUT GWO KATASTWÒF KI KA FÈ ENPAK SOU YON ZÒN GEOGRAFIK (TANKOU YON GWO DIFE OSWA YON INONDASYON) . '), _defineProperty(_ht$data, 'HELP_2b_Title', '2b) KÒMAN POU M JERE AK TOUT SEKIRITE YON MAGAZEN SAN SIYAL AVÈK MYETHERWALLET? '), _defineProperty(_ht$data, 'HELP_2b_Desc_1', 'ALE NAN GITHUB NOU AN : [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_ht$data, 'HELP_2b_Desc_2', 'PEZE SOU DIST-VX.X.X.X.ZIP` '), _defineProperty(_ht$data, 'HELP_2b_Desc_3', 'METE ZIP LASOU YON KOMPITÈ SAN SIYAL. '), _defineProperty(_ht$data, 'HELP_2b_Desc_4', 'DEZIPE L PEZE 2 FWA SOU INDEX.HTML`. '), _defineProperty(_ht$data, 'HELP_2b_Desc_5', ' YON BOUS AVÈK YON GWO KÒD SEKRÈ. '), _defineProperty(_ht$data, 'HELP_2b_Desc_6', 'KENBE ADRÈS LA. KENBE BAGAY YO OU METE KLE SEKRÈ A. KENBE KÒD SEKRÈ A SI W PA TA VLE TOUJOU AP SONJE L. '), _defineProperty(_ht$data, 'HELP_2b_Desc_7', 'BYEN SERE PAPYE YO EPI/ OSWA KLE USB SA YO NAN YON KOTE BYEN LWEN. '), _defineProperty(_ht$data, 'HELP_2b_Desc_8', 'ALE NAN PAJ "FÈ PARÈT YON BOUS" EPI ANTRE KLE SEKRÈ W LA AK KÒD SEKRÈ W LA POU W GEN ASIRANS KE YO VALAB EPI POU KA ANTRE NAN BOUS OU A. VERIFYE KE ADRÈS OU TE EKRI A SE MENM BAGAY LA. '), _defineProperty(_ht$data, 'HELP_3_Title', '3) KÒMAN POU M VERIFYE KE M ANTRE NAN LÒT BOUS MWEN AN ? '), _defineProperty(_ht$data, 'HELP_3_Desc_1', '** ANVAN W VOYE ETHER NAN BOUS OU A** OU DWE GEN ASIRANS KE W ANTRE. '), _defineProperty(_ht$data, 'HELP_3_Desc_2', 'NAVIGE AL NAN PAJ "FÈ PARÈT YON BOUS". '), _defineProperty(_ht$data, 'HELP_3_Desc_3', 'NAVIGE AL NAN PAJ " FÈ PARÈT YON BOUS" MYETHERWALLET.COM LA. '), _defineProperty(_ht$data, 'HELP_3_Desc_4', 'CHWAZI PAJ BOUS OU A- OSWA - KLE SEKRÈ W LA EPI OUVRI BOUS OU A. '), _defineProperty(_ht$data, 'HELP_3_Desc_5', 'SI BOUS OU A GEN KÒD , YON ZÒN KI GEN EKRITI AP PARÈT POU KONT LI. ANTRE KÒD SEKRÈ A. '), _defineProperty(_ht$data, 'HELP_3_Desc_6', 'PEZE BOUTON "OUVRI BOUS OU A". '), _defineProperty(_ht$data, 'HELP_3_Desc_7', 'ENFÒMASYON SOU BOUS OU YO DWE PARÈT . JWENN ADRÈS KONT OU A KOTE YON PYON KI GEN FÒM YON SÈK EPI KI GEN KOULÈ. SA REPREZANTE ADRÈS OU A JAN W WÈ L LA. ASIRE W KE ADRÈS SA SE SA W TE KENBE NAN DOKIMAN KI EKRI W LA EPI LI NAN BOUS PAPYE W LA TOU. '), _defineProperty(_ht$data, 'HELP_3_Desc_8', 'SI W VLE GEN YON GWO KANTITTE ETHER, NOU MANDE W POU W KÒMANSE VOYE YON TI KANTITE KÒB KI AP SÒTI NAN BOUS OU FENK GENYEN AN ANAVN W METE YON GWO KANTITE KÒB. VOYE 0,001 ETHER AL NAN BOUS OU FENK GENYEN AN, ANTRE LADAN L EPI VOYE 0,001 ETHER SA YO AL NAN YON LÒT ADRÈS, EPI VERIFYE KE TOUT BAGAY AP BYEN FONKSYONE SAN PWOBLÈM. '), _defineProperty(_ht$data, 'HELP_4_Title', '4) KÒMAN POU M KA VOYE ETHER A SÒTI NAN BOUS SA AL NAN YON LÒT? '), _defineProperty(_ht$data, 'HELP_4_Desc_1', 'SI W VLE FÈ YON GWO KANTITE TRANSFÈ ETHER, OU DWE AVAN TOUT BAGAY ESEYE VOYE YON TI KANTITE KÒB AL NAN BOUS OU A POU GEN KONFYANS KE TOUT BAGAY AP BYEN FONKSYONE JAN SA DWE YE. '), _defineProperty(_ht$data, 'HELP_4_Desc_2', 'NAVIGE AL NAN PAJ "VOYE ETHER YO EPI TOKENS YO" . '), _defineProperty(_ht$data, 'HELP_4_Desc_3', 'CHWAZI PAJ BOUS OU A- OSWA- KLE SEKRÈ W LA EPI OUVRI BOUS OU A. '), _defineProperty(_ht$data, 'HELP_4_Desc_4', 'SI BOUS OU A GEN KÒD, YON ZÒN GEN EKRITI AP PARÈT POU KONT LI. ANTRE KÒD SEKRÈ W LA. '), _defineProperty(_ht$data, 'HELP_4_Desc_5', 'PEZE SOU BOUTON "OUVRI BOUS OU A". '), _defineProperty(_ht$data, 'HELP_4_Desc_6', 'ANTRE ADRÈS MOUN KAP RESEVWA L LA NAN ESPAS "ADRÈS KOTE L PRALE A". '), _defineProperty(_ht$data, 'HELP_4_Desc_7', 'ANTRE KANTITE W VLE VOYE A. OU KAPAB ANKÒ PEZE SOU "VOYE TOUT KANTITE A" SI W VLE VOYE TOUT NÈT. '), _defineProperty(_ht$data, 'HELP_4_Desc_9', 'PEZE SOU "KREYE TRANSFÈ A". '), _defineProperty(_ht$data, 'HELP_4_Desc_10', 'KÈK ESPAS ANPLIS AP PARÈT. NAVIGATÈ W LA AP KREYE TRANSFÈ A. '), _defineProperty(_ht$data, 'HELP_4_Desc_11', 'PEZE SOU BOUTON BLE A "VOYE TRANSFÈ A" KI ANBA A. '), _defineProperty(_ht$data, 'HELP_4_Desc_12', 'YON FENÈT POP-UP AP PARÈT. VERIFYE KE KANTITE A EPI ADRÈS LA KOTE WAP VOYE L LA YO BON. APRE PEZE SOU "WI, MWEN KONFYAN ! FÈ TRANSFÈ A. '), _defineProperty(_ht$data, 'HELP_4_Desc_13', 'TRANSFÈ A PRAL FÈT. MOUN LI AN PRAL PARÈT. OU KAPAB PEZE SOU MOUN NAN POU W WÈ L SOU BLOCKCHAIN NAN. '), _defineProperty(_ht$data, 'HELP_4CX_Title', '4) KÒMAN POU M KA VOYE RTHER AVÈK MYETHERWALLET CX ? '), _defineProperty(_ht$data, 'HELP_4CX_Desc_1', 'ANVAN, OU DWE METE YON BOUS. SA FÈT, OU GENYEN DE FASON : FONKSYON "VOYE RAPID" NAN PYON AN NAN EXTENSION CHROME OSWA PAJ "VOYE ETHER YO EPI TOKENS YO". '), _defineProperty(_ht$data, 'HELP_4CX_Desc_2', 'VOYE RAPID: '), _defineProperty(_ht$data, 'HELP_4CX_Desc_3', 'PEZE SOU PYON EXTENSION CHROME. '), _defineProperty(_ht$data, 'HELP_4CX_Desc_4', 'PEZE SOU BOUTON "VOYE RAPID". '), _defineProperty(_ht$data, 'HELP_4CX_Desc_5', 'CHWAZI BOUS KOTE OU VLE VOYE A. '), _defineProperty(_ht$data, 'HELP_4CX_Desc_6', 'ANTRE ADRÈS LA OU VLE VOYE A NAN ESPAS "ADRÈS KOTE L PRALE A :" . '), _defineProperty(_ht$data, 'HELP_4CX_Desc_7', 'ANTRE KANTITE OU VLE VOYE A. OU KAPAB ANKÒ PEZE SOU "VOYE TOUT KANTITE A" SI W VLE VOYE TOUT SA L GENYEN AN. '), _defineProperty(_ht$data, 'HELP_4CX_Desc_8', 'PEZE SOU "VOYE TRANSFÈ A". '), _defineProperty(_ht$data, 'HELP_4CX_Desc_9', 'VERIFYE KE ADRÈS LA EPI KANTITE WAP VOYE A BON. '), _defineProperty(_ht$data, 'HELP_4CX_Desc_10', 'ANTRE KÒD SEKRÈ BOUS SA. '), _defineProperty(_ht$data, 'HELP_4CX_Desc_11', 'PEZE SOU "VOYE TRANSFÈ A." '), _defineProperty(_ht$data, 'HELP_4CX_Desc_12', 'AVÈK PAJ "VOYE ETHER YO EPI AK TOKENS YO" '), _defineProperty(_ht$data, 'HELP_5_Title', '5) KÒMAN M KA OUVRI MYETHERWALLET.COM SAN SIYAL/LOKAL ? '), _defineProperty(_ht$data, 'HELP_5_Desc_1', 'OU KAPAB OUVRI MYETHERWALLET.COM SOU KOMPITÈ W LA SAN W PA PASE NAN SÈVÈ GITHUB YO. OU KAPAB KREYE YON BOUS SAN OU PA BEZWEN GEN SIYAL EPI VOYE TRANSFÈ YO SÒTI NAN PAJ SA "TRANSFÈ SAN SIYAL". '), _defineProperty(_ht$data, 'HELP_5_Desc_7', 'TOUT MYETHERWALLET.COM LA VIRE SOU KOMPITÈ W LA KOUNYE A. '), _defineProperty(_ht$data, 'HELP_5_Desc_8', 'NAN KA OU PA TA ABITYE AK SA. OU DWE KONSÈVE TOUT DOSYE A POU W VIRE SIT WEB LA EPI PA SÈLMAN INDEX.HTML. PA MANYEN ANYEN, PA DEPLASE ANYEN NAN DOSYE A. SI W KENBE YON REPO NAN MAGAZEN MYETHERWALLET POU LÒT JOU YO, NOU MANDE W PA METE ZIP LA SÈLMAN NAN MAGAZENN AN POU W KA ASIRE W KE DOSYE A PA GEN TACH. '), _defineProperty(_ht$data, 'HELP_5_Desc_9', 'NOU TOUJOU AP AMELYORE MYETHERWALLET.COM, NOU MANDE W POU W TOUJOU METE A JOU VÈSYON W TE KENBE A. '), _defineProperty(_ht$data, 'HELP_5CX_Title', '5) KÒMAN POU M ENSTALE EXTENSION AN NAN REPO A KE NAN CHROME STORE A ? '), _defineProperty(_ht$data, 'HELP_5CX_Desc_2', 'PEZE SOU CHROME-EXTENSION-VX.X.X.X.ZIP` '), _defineProperty(_ht$data, 'HELP_5CX_Desc_3', 'AL NAN GOOGLE CHROME EPI CHÈCHE PARAMÈT YO ( NAN MENI KI ANWO ADWAT LA). '), _defineProperty(_ht$data, 'HELP_5CX_Desc_4', 'PEZE SOU "EXTENSIONS" A GÒCH. '), _defineProperty(_ht$data, 'HELP_5CX_Desc_5', 'PEZE SOU KAZYE "MÒD POU DEVLOPE" ANLÈ NAN PAJ SA. '), _defineProperty(_ht$data, 'HELP_5CX_Desc_6', 'PEZE SOU BOUTON "CHAJE EXTENSION AN PA METE L ANNDAN…". '), _defineProperty(_ht$data, 'HELP_5CX_Desc_7', 'NAVIGE AL NAN DOSYE KE W TE PRAN AN EPI DEZIPE L ANVAN. PEZE SOU "CHWAZI". '), _defineProperty(_ht$data, 'HELP_5CX_Desc_8', 'EXTENSION AN DWE PARÈT KOUNYE A NAN EXTENSION W YO EPI NAN BA EXTENSION YO POU CHROME. '), _defineProperty(_ht$data, 'HELP_7_Title', '7)KÒMAN M KAPAB VOYE TOKENS YO EPI METE TOKENS SPESYAL YO ? '), _defineProperty(_ht$data, 'HELP_7_Desc_0', 'SE YON BON MWAYEN POU W AL GADE NAN TOKENS YO EPI JWENN JAN YO KONTE AN 10 LA NAN YON TOKEN. '), _defineProperty(_ht$data, 'HELP_7_Desc_1', 'NAVIGE AL NAN PAJ "VOYE TOKENS". '), _defineProperty(_ht$data, 'HELP_7_Desc_2', 'OUVRI BOUS OU A. '), _defineProperty(_ht$data, 'HELP_7_Desc_3', 'ANTRE ADRÈS KOTE OU VLE VOYE L LA NAN ESPAS "ADRÈS KOTE L PRALE A". '), _defineProperty(_ht$data, 'HELP_7_Desc_4', 'ANTRE KANTITE OU VLE VOYE A. '), _defineProperty(_ht$data, 'HELP_7_Desc_5', 'CHWAZI TOKEN OU VLE VOYE A. '), _defineProperty(_ht$data, 'HELP_7_Desc_6', 'SI SA A PA NAN LIS LA: '), _defineProperty(_ht$data, 'HELP_7_Desc_7', 'PEZE SOU "SPESYAL ". '), _defineProperty(_ht$data, 'HELP_7_Desc_8', 'ANTRE ADRÈS LA, NON AN EPI TOKEN YO KI KONTE AN 10 YO. ENFÒMASYON SA YO. SE MOUN KI FÈ TOKEN NAN KI BAY YO EPI YO ANKÒ NESESÈ LE WAP FÈ "ADD A WATCH TOKEN" NAN MIST. '), _defineProperty(_ht$data, 'HELP_7_Desc_9', 'PEZE SOU "SOVE ". '), _defineProperty(_ht$data, 'HELP_7_Desc_10', 'OU KAPAB VOYE TOKENS SA YO KOUNYE A AK WÈ TOU LAJAN SOU KONT OU A NAN ZÒN KI SOU KOTE A. '), _defineProperty(_ht$data, 'HELP_7_Desc_11', 'PEZE SOU "KREYE TRANSFÈ A". '), _defineProperty(_ht$data, 'HELP_7_Desc_12', 'KÈK NAN ESPAS ANPLIS YO AP PARÈT : NAVIGATÈ W LA AP KREYE TRANSFÈ A. '), _defineProperty(_ht$data, 'HELP_7_Desc_13', 'PEZE SOU BOUTON BLE A "VOYE TRANSFÈ A" KI ANBA A. '), _defineProperty(_ht$data, 'HELP_7_Desc_14', 'YON FENÈT POP-UP AP PARÈT. VERIFYE KE KANTITE A EPI ADRÈS KOTE L PRALE A YO BON APRÈ PEZE SOU BOUTON "WI, MWEN KONFYAN ! FÈ TRANSFÈ A." '), _defineProperty(_ht$data, 'HELP_7_Desc_15', 'TRANSFÈ A FÈT EPI MOUN TRANSFÈ A PARÈT. OU KAPAB PEZE SOU LI POU W KA WÈ L NAN BLOCKCHAIN NAN. '), _defineProperty(_ht$data, 'HELP_8_Title', '8) SA KAP PASE SI SIT OU A TONBE ? '), _defineProperty(_ht$data, 'HELP_8_Desc_1', 'MYETHERWALLET SE PA YON BOUS SOU WÈB LA. OU PA GEN KONEKSYON EPI ANYEN PA JANM ANREJISTRE SOU SÈVÈ NOU YO. SE JIS YON LÒT FAS KI PÈMET OU PALE AK BLOCKCHAIN LA. '), _defineProperty(_ht$data, 'HELP_8_Desc_2', 'SI MYETHERWALLET.COM TONBE, OU DWE JWENN YON LÒT MWAYEN ( TANKOU GETH OSWA ETHEREUM WALLET / MIST) POU FÈ MENM BAGAY LA. MEN OU PA GEN POU "REPRAN " ETHER W LA KI NAN MY ETHERWALLET PASKE L PA NAN MY ETHERWALLET. LI LAKAY OU. NAN BOUS SA W TE KREYE SOU SIT NOU AN. '), _defineProperty(_ht$data, 'HELP_8_Desc_3', 'OU KAPAB PRAN KLE SEKRÈ W LA FASIL KOUNYE A SAN KÒD EPI PAJ OU YO (KÒD) SOU FÒM GETH/MIST, DIREKTEMAN NAN GETH/ETHEREUM WALLET / MIST. GADE KESYON #12 LA KI ANBA A. '), _defineProperty(_ht$data, 'HELP_8_Desc_4', 'ANPLIS, FASON POU N TA KITE MYETHERWALLET TONBE LI PRE ZEWO.SA KOUTE NOU PRESKE ANYEN POU N KENBE L TANKOU JAN NOU PA KENBE OKENN ENFÒMASYON. SI DOMÈNN SA TA VIN PÈDI. LOJISYÈL LA AP TOUJOU DISPONIB POU PIBLIK LA SOU [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). OU KAPAB PRAN ZIP LA EPI SÈVI AK LI LOKAL. '), _defineProperty(_ht$data, 'HELP_8CX_Title', '8) SA KI AP PASE SI MYETHERWALLET CX DISPARÈT ? '), _defineProperty(_ht$data, 'HELP_8CX_Desc_1', 'ANVAN, KOMPITÈ W LA TE KENBE TOUT DONE YO EPI SE PAT SOU SÈVÈ NOU YO. SA KA PARÈT ETONAN MEN, LÈ WAP GADE SOU EXTENSION CHROME LA, SA W WÈ A *PA LA* SOU SÈVÈ NOU YO. KOMPITTÈ W LA KENBE TOUT. '), _defineProperty(_ht$data, 'HELP_8CX_Desc_2', 'SA VLE DI, LI **ENPÒTAN ANPIL** POU W TA KENBE TOUT DONE POU TOUT BOUS OU KREYE YO AK MYETHERWALLET CX. NAN FASON SA NENPÒT SA KI TA RIVE MYETHERWALLET CX OSWA KOMPITÈ W LA, WAP TOUJOU KONSÈVE TOUT ENFÒMASYON NESESÈ YO POU W KAANTRE NAN ETHER W YO. GADE #2 A POU W KENBE BOUS OU YO. '), _defineProperty(_ht$data, 'HELP_8CX_Desc_3', 'SI, POU NENPÒT REZON, MYETHERWALLET CX TA DISPARÈT NAN CHROME STORE A, OU KAPAB JWENN SOUS LA SOU GTITHUB EPI PRAN L. GADE #5 KI ANLÈ A. '), _defineProperty(_ht$data, 'HELP_9_Title', '9)? PAJ "VOYE RTHER YO AK TOKENS YO" ESKE L PA GEN SIYAL ? '), _defineProperty(_ht$data, 'HELP_9_Desc_1', 'NON. LI BEZWEN INTÈNÈT POU L JWENN PRI GAZ KOUNYE A. NONCE KONT OU A EPI POU W VOYE TRANSFÈ A ( SA VLE DI "VOYE"). LI VOYE SÈLMAN TRANSFÈ KI SIYEN AN. KLE SEKRÈ W LA RETE AN SEKIRITE LAKAY OU. NOU BAY ANKÒ KOUNYE AYON PAJ "TRANSFÈ SAN SIYAL" POU N PÈMET OU TOUJOU KENBE KLE SEKRÈ W LA SOU YON MACHIN SAN SIYAL. '), _defineProperty(_ht$data, 'HELP_10_Title', '10) KÒMAN POU M FÈ YON TRANSFÈ SAN SIYAL ? '), _defineProperty(_ht$data, 'HELP_10_Desc_1', 'ALE NAN PAJ "TRANSÈ SAN SIYAL" AVÈK KOMPITÈ W LA AK SIYAL. '), _defineProperty(_ht$data, 'HELP_10_Desc_2', 'ANTRE "ADRÈS KOTE L SÒTI A". ATANSYON, SE ADRÈS *KOTE L SÒTI A* SE PA ADRÈS *KOTE L PRALE A*. SA PRAL KREYE NONCE LA EPI PRI GAZ LA. '), _defineProperty(_ht$data, 'HELP_10_Desc_3', 'ALE SOU KOMPITÈ W LA KI PA GEN SIYAL. ANTRE "ADRÈS KOTE L PRALE A" EPI "KANTITE A" OU VLE VOYE A. '), _defineProperty(_ht$data, 'HELP_10_Desc_4', 'ANTRE "PRI GAZ LA" JAN W TE WÈ L PARÈT SOU KOMPITÈ A KI GEN SIYAL NAN PREMYE ETAP LA. '), _defineProperty(_ht$data, 'HELP_10_Desc_5', 'ANTRE "NONCE LA" JAN W TE WÈL PARÈT SOU KOMPITÈ A KI GEN SIYAL NAN PREMYE ETAP LA. '), _defineProperty(_ht$data, 'HELP_10_Desc_6', ' " LIMIT GAZ LA" GEN YON VALÈ 21000 NÒMAL. SA KOUVRI FRÈ YON TRANSFÈ NÒMAL. SI WA VOYE POU YON KONTRA OSWA SI WAP PRAN DONE ANPLIS YO AVÈK TRANSFÈ W LA OU DWE METE SOU LIMIT GAZ LA. GAZ KI PA SÈVI A AP RETOUNEN VIN JWENN OU. '), _defineProperty(_ht$data, 'HELP_10_Desc_7', 'SI W VLE L, ANTRE DONE YO, NAN KA SA, OU DWE METE PLIS KE LIMIT 21000 NÒMAL LA ? TOUT DONE YO SOU FÒM 16 NIMEWO. '), _defineProperty(_ht$data, 'HELP_10_Desc_8', 'CHWA PAJ BOUS OU A OSWA KLE SEKRÈ W LA AK OUVRI BOUS OU A. '), _defineProperty(_ht$data, 'HELP_10_Desc_9', 'PEZE BOUTON "KREYE TRANSFÈ SIYEN AN". '), _defineProperty(_ht$data, 'HELP_10_Desc_10', 'ESPAS DONE YO ANBA BOUTON SA PLEN AVÈK TRANSFÈ SIYEN W LA. KOPYE L EPI TOUNEN ANKÒ AVÈK LI SOU KOMPITÈ W LA KI GEN SIYAL. '), _defineProperty(_ht$data, 'HELP_10_Desc_11', 'SOU KOMPITÈ AK SIYAL OU A, KOLE TRANSFÈ KI SIYEN AN NAN ESPAS EKRI A EPI PEZE SOU "VOYE ETHER". SA A AP VOYE TRANSFÈ W LA. '), _defineProperty(_ht$data, 'HELP_12_Title', '12) KÒMAN POU M PRAN YON BOUS KI KREYE AK MYETHERWALLET NAN GETH/ ETHEREUM WALLET/ MIST ? '), _defineProperty(_ht$data, 'HELP_12_Desc_1', 'AVÈK YON PAJ GETH/MIST JSON NAN MYETHERWALLET V2+…. '), _defineProperty(_ht$data, 'HELP_12_Desc_2', 'ALE NAN PAJ "GADE YON BOUS". '), _defineProperty(_ht$data, 'HELP_12_Desc_3', 'OUVRI BOUS OU A AVÈK KLE SEKRÈ W LA ** KI GEN KÒD** OSWA PAJ JSON W LA. '), _defineProperty(_ht$data, 'HELP_12_Desc_4', 'ALE NAN PAJ "BOUS MWEN YO". '), _defineProperty(_ht$data, 'HELP_12_Desc_5', 'CHWAZI BOUS OU VLE PRAN NAN MIST, PEZE SOU PYON "VIEW " A ANTRE KÒD SEKRÈ W EPI ANTRE NAN BOUS OU A. '), _defineProperty(_ht$data, 'HELP_12_Desc_6', 'ALE NA SEKSYON "PRAN PAJ JSON DOKIMAN- FÒM GETH/MIST( KI GEN KÒD) PEZE SOU BOUTON "PRAN L" KI ANBA . OU GEN KOUNYE A PAJ *KEYSTORE* W LA. '), _defineProperty(_ht$data, 'HELP_12_Desc_7', 'OUVRI APLIKASYON ETHEREUM WALLET. '), _defineProperty(_ht$data, 'HELP_12_Desc_8', 'NA BA MENI AN, ALE NAN "ACCOUNTS"->BACKUP -> "ACCOUNTS" '), _defineProperty(_ht$data, 'HELP_12_Desc_9', 'SA OUVRI DOSYE KEYSTORES W LA. KOPYE L PAJ OU SÒT PRAN AN (UTC—2016-04-14)……../) NAN DOSYE SA. '), _defineProperty(_ht$data, 'HELP_12_Desc_10', ' KONT OU A DWE PARÈT BYEN VIT ANBA "ACCOUNTS." '), _defineProperty(_ht$data, 'HELP_12_Desc_11', 'AVÈK KLE SEKRÈ W LA SAN KÒD… '), _defineProperty(_ht$data, 'HELP_12_Desc_12', 'SI W PAT GENTAN GEN KLE SEKRÈ WLA SAN KÒD, ALE NAN PAJ "FÈ PARÈT YON BOUS". '), _defineProperty(_ht$data, 'HELP_12_Desc_13', 'CHWAZI PAJ BOUS OU A-OSWA- ANTRE/KOLE KLE SEKRÈ W LA POU W OUVRI BOUS OU A. '), _defineProperty(_ht$data, 'HELP_12_Desc_14', 'KOPYE KLE SEKRÈ W LA (SAN KÒD). '), _defineProperty(_ht$data, 'HELP_12_Desc_15', 'SI W SOU YON MAC : '), _defineProperty(_ht$data, 'HELP_12_Desc_15b', ' SI W SOU YON PC ; //LI FENK PARÈT, LI DEJA NAN LANG FRANSE, OU PA JWENN LI NAN DE.JS '), _defineProperty(_ht$data, 'HELP_12_Desc_16', 'OUVRI MODIFYE TÈKS APRE KOLE KLE SEKRÈ A. '), _defineProperty(_ht$data, 'HELP_12_Desc_17', 'NAN BA MENI AN, PEZE SOU "FÒM" -> FÈ YON PLAN EKRI". '), _defineProperty(_ht$data, 'HELP_12_Desc_18', 'KENBE PAJ SA NAN DESKTOP OU A TANKOU NOTHIG_SPECIAL_DELETE_ME.TXT`. ASIRE W KE L DI "UTF-8" EPI "SI PA GEN EXTENSION KI BAY SÈVI AK TXT" NAN BWAT KI LA POU KENBE A. '), _defineProperty(_ht$data, 'HELP_12_Desc_19', 'OUVRI YON PÒ EPI KÒMANSE KOMAND KI VINI AN : `GETH ACCOUNT IMPORT~/DESKTOP/NOTHING_SPECIAL_DELETE_ME.TXT` '), _defineProperty(_ht$data, 'HELP_12_Desc_20', 'SA AP ENVITE CHWAZI YON NOUVO KÒD SEKRÈ. SE SA W PRAL ITILIZE NAN GETH / ETHEREUM WALLET / MIST NAN CHAK MOMAN OU PRAL FÈ YON TRANSFÈ. KIDONK PA BLIYE L. '), _defineProperty(_ht$data, 'HELP_12_Desc_21', 'APRÈ SA W FIN PRAN AN FINI, EFASE NOTHING_SPECIAL_DELETE_ME.TXT` '), _defineProperty(_ht$data, 'HELP_12_Desc_22', 'LÈ WAP OUVRI APLIKASYON ETHEREUM WALLET LA YON LÒT FWA ANKÒ, KONT OU A AP NAN YON LIS NAN "ACCOUNT". '), _defineProperty(_ht$data, 'HELP_12_Desc_23', ' OUVRI NOTEPAD EPI KOLE KLE SEKRÈ W LA. '), _defineProperty(_ht$data, 'HELP_12_Desc_24', 'KENBE PAJ LA TANKOU NOTHING_SPECIAL_DELETE_ME.TXT SOU `C:` '), _defineProperty(_ht$data, 'HELP_12_Desc_25', 'KÒMANSE AK KÒMAND `GETH ACCOUNT IMPORT C:// NOTHING_SPECIAL_DELETE_ME.TXT` '), _defineProperty(_ht$data, 'HELP_12_Desc_26', 'SA PRAL ENVITE W POU CHWAZI YON NOUVO KÒD SEKRÈ. SE AK SA W PRAL SÈVI NA GETH / ETHEREUM WALLET / MIST CHAK FWA OU PRAL VOYE YON TRANFÈ KIDONK PA BLIYE L. '), _defineProperty(_ht$data, 'HELP_12_Desc_27', 'APRÈ SA W FIN PRAN AN FINI, EFASE NOTHING_SPECIAL_DELETE_ME.TXT` '), _defineProperty(_ht$data, 'HELP_12_Desc_28', 'LÈ WAP OUVRI APLIKASYON ETHEREUM WALLET LA YON LÒT FWA ANKÒ, KONT OU A AP NAN YON LIS NAN "ACCOUNTS". '), _defineProperty(_ht$data, 'HELP_13_Title', '13) SA SA VLE DI <<PWOVISYON YO PA SIFI>> KONT KOTE WAP ESEYE VOYE TRANSFÈ A PA GEN ASE PWOVIZYON YO MANDE A : XXXXXXXXXXXXXXXXXXX, RESEVWA : XXXXXXXXXXXXXXXXXXX. » ? '), _defineProperty(_ht$data, 'HELP_13_Desc_1', 'SA VLE DI KE W PA GEN ASE ETHER SOU KONT OUAN POU W TA KOUVRI KÒB YO AN GAZ. CHAK TRANSFÈ ( MENM JAN POU TOKENS YO AK KONTRA YO) YO MANDE GAZ, EPI GAZ SA YO PEYE AK ETHER, NIMEWO YO KI PARÈT LA SE KANTITE SA YO MANDE POU W KOUVRI KÒB TRANSFÈ A AN WEI. PRAN NIMEWO SA YO DIVIZE YO PA 1000000000000000000` EPI SOUSTRÈ KANTITE KÒB LA AN ETHER KE TAP ESEYE VOYE A( SI W TAP TANTE VOYE ETHER0). SA PRAL BA W KANTITE A AN ETHER KE W TE BEZWEN AN POU KONT LA KA FÈ TRANSFÈ A. '), _defineProperty(_ht$data, 'HELP_14_Title', '14) KÈK SIT PA AZA ( KONN REKÒMANSE) KREYASYON KLE SEKRÈ A NAN MOUVMAN ANTRE SÒTI YO. KA SA PA POU MYETHERWALLET.COM. KANTITE KREYASYON ALE VINI POU MYETHERWALLET.COM ESKE L KONFYAN? '), _defineProperty(_ht$data, 'HELP_14_Desc_1', 'MENM KE KANPE MOUVMAN SOURI A ANPIL MOUN JIJE LI GEN ATIRANS , EPI NOU TA KA KONPRANN REZON YO, REYALITE A SE WINDOW.CRYPTO A MEZIRE LIMIT DEZÒD ZIZTÈM PLIS KE MOUVMAN SOURI W LA. JAN W SÈVI AK MOUVMAN SA YO YO BON MEN NOU(ANSANM AK PLIZYÈ PWOJÈ KRYPTO YO) GEN ANPIL BON REZON POU N KWÈ NAN WINDOW.CRYPTO A. ANPLIS, MYETHERWALLET.COM KAPAB SÈVI SOU EKRAN OU KAPAB TOUCHE YO. MEN YON [KONVÈSASYON KI FÈT AK REDDITOR RAGEUR EPI VITALIK BUTERIN SOU MOUVMAN SOURI YO EPI WINDOW.CRYPTO] (https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) EPI MEN [SPESYAL W3 YO WINDOW.CRYPTO AN](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_ht$data, 'HELP_15_Title', '15) POUKISA KONT SA M SOT KREYE A PA PARÈT NAN EKSPLORATÈ BLOCKCHAIN LAN ? (i.e. : etherchain, etherscan) '), _defineProperty(_ht$data, 'HELP_15_Desc_1', 'KONT YO PA PARÈT NAN YON EKSPLORATÈ BLOCKCHAIN LÈ YON AKTIVITE FIN FÈT TANKOU, EGZANP, LE N TA GEN POU N FE YON TRANSFÈ ETHER . '), _defineProperty(_ht$data, 'HELP_16_Title', '16) KÒMAN POU M VERIFYE LAJAN SOU KONT MWEN AN ? '), _defineProperty(_ht$data, 'HELP_16_Desc_1', 'OU KAPAB SÈVI AK YON EKSPLORATÈ BLOCKCHAIN TANKOU [etherscan.io](https://etherscan.io/). KOLE ADRÈS OU A NAN BA KOT E POU YO CHÈCHE A EPI SA AP È W JWENN LAJAN SOU KONT OU A EPI LIS TRANSFÈ W YO. EGZANP, MEN SA [KONT DON NOU YO MONTRE](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) SOU etherscan.io '), _defineProperty(_ht$data, 'HELP_17_Title', '17) POUKISA LAJAN SOU KONT MWEN AN PA PARÈT LÈ M OUVRI BOUS MWEN AN ? '), _defineProperty(_ht$data, 'HELP_17_Desc_1', 'SA KI KA LAKÒZ SA SE PASKE W KA DÈYÈ YON FIREWALL. APLIKASYON NOU SÈVI AK LI POU N JWENN LAJAN SOU KONT OU A EPI KONVÈTI L LI SOUVAN BLOKE AK FIREWALL YO POU PLIZYÈ REZON. WAP TOUJOU KAPAB VOYE TRANSFÈ MEN FÒK OU FÈL NAN YON LÒT FASON POU W KA WÈ LAJAN SOU KONT OU A, TANKOU etherscan.io '), _defineProperty(_ht$data, 'HELP_18_Title', '18) KOTE PAJ BOUS GETH MWEN AN ? '), _defineProperty(_ht$data, 'HELP_19_Title', '19) KOTE PAJ BOUS MIST MWEN AN ? '), _defineProperty(_ht$data, 'HELP_19_Desc_1', 'PAJ MIST YO OU TOUJOU JWENN YO NAN KOTE ANLÈ YO MEN LI PI FASIL POU W OUVRI MIST, CHWAZI "ACCOUNTS" NAN BA KI ANLÈ A EPI "BACUP" EPI "ACCOUNTS" SA AP OUVRI DOSYE A KOTE PAJ OU YO KACHE A. '), _defineProperty(_ht$data, 'HELP_20_Title', '20) KOTE PAJ BOUS MWEN AN *pre-sale* (ANVAN W VANN)? '), _defineProperty(_ht$data, 'HELP_20_Desc_1', 'KOTEW TE METE L LA. ;) YO TE VOYE L BA OU TOU KIDONK AL GADE NAN EMAIL OU YO. CHÈCHE PAJ KI RELE `"ethereum_wallet_backup.json"` LA EPI CHWAZI PAJ LA. LI GEN KÒD YON KÒD SEKRÈ KE W TE KREYE PANDAN W TAP ACHTE A NAN MOMAN AVAN W VANN NAN. '), _defineProperty(_ht$data, 'HELP_21_Title', '21) NENPÒT MOUN PAKA PRAN YON KLE SEKRÈ PA AZA, CHÈCHE LAJAN SOU KONT YON MOUN EPI VOYE L NAN ADRÈS PA L ? '), _defineProperty(_ht$data, 'HELP_21_Desc_1', 'VÈSYON KI KOUT LA : WI, MEN JWENN YON KONT AK LAJAN SOU LI SA AP PRAN PLIS TAN KE DEPI MOND NOU AN TE KREYE…. KIDONK……NON. '), _defineProperty(_ht$data, 'HELP_21_Desc_2', 'VÈSYON LONG : ETHEREUM NAN GEN BAZ LI SOU[KRIPTOGRAFI KI GEN KLE PIBLIK ](https://en.wikipedia.org/wiki/Public-key_cryptography), POU PI KLÈ[cryptographie des courbes elliptiques (ECC)](https://eprint.iacr.org/2013/734.pdf) KE YO SOUVAN SÈVI AK LI, PA SÈLMAN NAN ETHEREUM. MAJORITE SÈVÈ YO PWOTEJE AK ECC YO. BITCOIN YO SÈVI AK YO TOU AK SSH, TLS EPI LÒT PWOTOKÒL YO. NAN KA SPESYAL ETHEREUM YO, KLE YO FÈ 256 BITS EPI YO PI FÒ KE SA KI NAN128 YO EPI 192 YO BITS YO, YO TOUJOU SÈVI AK YO EPI YO TOUJOU KONSIDERE YO KONFYAN POU EKSPÈ YO. '), _defineProperty(_ht$data, 'HELP_21_Desc_3', 'OU GE YON KLE SEKRÈ EPI YON KLE PIBLIK. KLE SEKRÈ A KAPAB SÈVI POU CHANJE KLE PIBLIK OU A MEN LÒT FASON AN PA POSIB. MENM INTENET EPI TOUT MOND LAN AP SÈVI AK SYSTÈM KRIPTOGRAFI A SA VLE DI KE, SI TA GEN YON MWAYEN POU CHANJE KLE SEKRÈ A AK KLE PIBLIK LA, RSIK KE ETHER W TA KAPAB JWENN NAN SE TAP YOUN NAN TI KRAS PWOBLÈM YO POU TOUT MOND LAN. '), _defineProperty(_ht$data, 'HELP_21_Desc_4', 'SA TA DI, WI : SI YON MOUN GEN KLE SEKRÈ W LA , LI KAPAB VOYE ETHER SÒTI NA N KONT OU A, AK ANKÒ SI YON MOUN GEN KÒD SEKRÈ ADRÈS EMAIL OU A, LI KAPAB LI MESSAGE YO OSWA VOYE MESAJ, OSWA SI SE KÒD SEKRÈ KONT BANK OU A, LI KAPAB VOYE NAN KONT PA L LA TOU OSWA YON LOT KONT. OU KAPAB PRAN VÈSYON KEYSTORE KLE SEKRÈ W LA KI SE KLE SEKRÈ KI GEN KÒD AK YON KÒD SEKRÈ. SA AP SANBLE AP YON KÒD SEKRÈ KI PWOTEJE AK YON LÒT KÒD SEKRÈ. '), _defineProperty(_ht$data, 'HELP_21_Desc_5', 'EPI WI, NAN TEYORI A, NOU KAPAB TAPE YON CHAIN 64 KARAKTÈ KI GEN 16 NIMEWO JISKASKE W JWENN YOUN MENM JAN AK LI. LI POSIB TOU POU W EKRI YON PWOGRAM KI KA VERIFYE BYEN RAPID KLE SEKRÈ ALE VINI YO. SE SA NOU RELE SÈVI "AK GWO FÒS" OSWA FOUYE KLE SEKRÈ YO. ANPIL MOUN AP APNSE AK SA ANPIL DEPI BYEN LONTAN. KÈK GWO SÈVÈ KAPAB VERIFYE PLIS PASE YON MILYON KLE CHAK SEKOND. EPOUTAN, MENM CHIF SA PA TA PRAL BAY AKSÈ AK YON KONT KI GEN PWOVISYON SOU LI POU TA KONN PRI YON BOUJI ; LI PLIS PWOBAB KE OU MENM, PITIT OU YO EPI PITIT PITIT OU YO MOURI ANVAN W JWENN YOUN KI SANBLE L. '), _defineProperty(_ht$data, 'HELP_21_Desc_6', 'SI W TA KONN BITCOIN YON TI KRAS, [ SA AP FÈ W KONPRANN PI BYEN :] :](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) * POU W EKRI SA KI TA KA PAKA PASE NAN TOUT SA. ANN SIPOZE KE CHAK SATOCHI NAN CHAK BITCOIN KI PA PRAL JANM FÈ OSWA ALE NAN SÈL MENM KLE SEKRÈ LI A. SA KI KA, NAN MITAN KLE SA YO, POU YO TA JWENN 2 KI GEN MENM ADRÈS LA LI TA KAPAB 1 SOU 100 KENTIYON. '), _defineProperty(_ht$data, 'HELP_21_Desc_7', '[SI WTA VLE AGIMAN KI POU TA EDE W KONPRANN PI FASIL :] (http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) * NIMEWO SA YO PA GEN ANYEN POU WÈ AK TEKNOLOJI SYSTÈM YO ; SE PI GWO SA YO KE TÈMODINAMIK LA AKSEPTE. EPI YO METE KLÈ YON ATAK AK GWO FÒS KONT KLE 256 BIT YO AP RETE ENPOSIB JISKASKE YO KONSTWI LÒT KOMPITÈ AVÈK LÒT BAGAY KE MATYÈ EPI POU YO TA OKIPE YON LÒT BAGAY KE ESPAS LA. '), _defineProperty(_ht$data, 'HELP_21_Desc_8', 'SA W TA SIPOZE BYEN KONPRANN KE KLE YO KREYE YON FASON ALE VINI TOUT ANTYE AVÈK YON SISTÈM KI MEZIRE LIMIT DEZÒD LA. SE KA KLE SA YO KI KREYE LA, MENM JAN AK JAXX EPI MIST/GETH. BOUS ETHTEREUM YO TOUT BON POU KONSÈY SA. KLE KE SÈVO MOUN YO KREYE YO YO PA KONSA, PASKE KLE SA YO PA KAPAB SÒTI NAN YON BON NIMEWO ALE VINI. TE KONN GEN LÒT PWOBLÈM NAN SISTÈM KI MEZIRE LIMIT DEZÒD LA KI PA SIFI OSWA NAN NIMEWO ALE VINI YO NAN MOND BITCOIN NAN MEN KOUNYE A SE YON LÒT PWOBLÈM LI VIN YE KI KA TANN YON MOMAN. '), _defineProperty(_ht$data, 'HELP_SecCX_Title', 'KLE MYETHERWALLET CX '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_1', 'KIBÒ EXTENSION CHROME NAN KENBE ENFÒMASYON M YO ? '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_2', 'ENFÒMASYON YO KI NAN EXTENSION YO ANREJISTRE PA [chrome.storage](http://chrome.storage/), SA VLE DI MENM KOTE AK KÒD SEKRÈ W YO NAN CHROME. '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_3', 'KI ENFÒMASYON SA YO KI ANREJISTRE A? '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_4', 'ADRÈS LA, TI NON AN, KLE SEKRÈ A, YO KACHE NAN chrome.storage. KLE SEKRÈ A GEN KÒD AK KÒD SEKRÈ KI TE METE LÈ W TAP KREYE BOUS LA. TI NON AN EPI ADRÈS BOUS LA YO PA GEN KÒD. '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_5', 'POUKISA TI NON AN AK ADRÈS BOUS LA YO PA GEN KÒD ? '), _defineProperty(_ht$data, 'HELP_SecCX_Desc_6', 'SI NOU TA DWE METE KÒD NAN ENFÒMASYON YO, FÒK OU TA ANTRE YON KÒD SEKRÈ NAN CHAK MOMAN OU BEZWEN WÈ LAJAN SOU KONT OU OSWA LÒT TI NON YO. SI SA NWI W,NOU MANDE W POU SÈVI AK MyEtherWallet.com KE EXTENSION CHROME SA. '), _defineProperty(_ht$data, 'HELP_Sec_Title', 'KLE '), _defineProperty(_ht$data, 'HELP_Sec_Desc_1', 'SI YOUN NAN PREMYE KESYON W OU POZE TÈT OU SE "POUKISA W DWE FÈ MOUN SA YO KONFYANS ? " SE YON BON DEMACH. ESPERANS NOU SE SA KI AP VINI AN KI PRAL FÈ W PI BYEN KONPRANN. '), _defineProperty(_ht$data, 'HELP_Sec_Desc_2', 'NOU TE KÒMANSE NAN MWA DAWOU 2015. SI W AL CHÈCHE ["myetherwallet" SOU reddit](https://www.reddit.com/search?q=myetherwallet), OU KAPAB WÈ YON PAKÈT BANN MOUN KAP SÈVI AK NOU SAN OKENN PWOBLÈM. '), _defineProperty(_ht$data, 'HELP_Sec_Desc_3', 'NOU PA PRAL PRAN KÒB OU OSWA VÒLÈ KLE SEKRÈ W YO. PA GEN KÒD MALVEYAN SOU SIT LA. EPI, PAJ "KREYASYON BOUS YO" YO TOUT ANTYE SE POU KLIYAN AN. SA VLE DI KE TOUT KÒD YO FÈT SOU **KOMPITÈ W LA** YO PA JANM SOVE EPI/OSWA ALE OKENN LÒT KOTE. '), _defineProperty(_ht$data, 'HELP_Sec_Desc_4', 'VERIFYE URL LA SIT SA SÈVI AK GITHUB EPI OU KAPAB WÈ KÒD SOUS LA LA : : [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) NAN [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_ht$data, 'HELP_Sec_Desc_5', 'POU W KREYE BOUS YO, OU KAPAB PRAN [KÒD SOUS LA] (https://github.com/kvhnuke/etherwallet/releases/latest). GADE #5 KI ANLÈ A. '), _defineProperty(_ht$data, 'HELP_Sec_Desc_6', 'KÒMANSE YON TÈS EPI VERIFYE JAN REZO AP FONKSYONE. FASON KI PI SENP LA SE YON KLIK DWAT SOU PAJ LA APRÈ "ENSPEKSYON".AL NAN KAZYE "NETWORK" KREYE YON BOUS POU TÈS. OU PRAL WÈ REZO A PAP FONKSYONE. OU KAPAB PRAL WÈ YON KÈK BAGAY AP FÈT KI SANBLE AK DATA :IMAGE/GIF EPI DATA :IMAGE/PNG SA YO SE QR KÒD YO KI KÒMANSE AP KREYE… SOU KOMPITÈ W LA. PA GEN OKENN TRANSFÈ OCTET KI TE FÈT. '), _defineProperty(_ht$data, 'HELP_Sec_Desc_8', 'SI ZOUTI SA PA FÈ W PLEZI, EBYEN PA SÈVI AK LI. NOU TE KREYE L POU L KA EDE TOUT MOUN KREYE BOUS YO AK FÈ TRANSFÈ YO SAN YO PA BEZWEN AL PRAN LIY POU FÈ SA YO NI FÈ VIRE TOUNEN NAN YON NE ANTYE. YON LÒT FWA, PA EZITE FÈ N KONNEN SI W GEN DOUT EPI NAP REPONN OU PI VIT KE POSIB. MÈSI ! '), _defineProperty(_ht$data, 'HELP_FAQ_Title', 'REPONS ANPLIS AK KESYON YO YOUJOU POZE YO'), _defineProperty(_ht$data, 'HELP_Contact_Title', 'MWAYEN OU KA PALE AK NOU'), _ht$data);
module.exports = ht;
},{}],115:[function(require,module,exports){
// Hungarian
'use strict';
var _hu$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var hu = function hu() {};
hu.code = 'hu';
hu.data = (_hu$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_hu$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_hu$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_hu$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_hu$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_hu$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_hu$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_hu$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_hu$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_hu$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_hu$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_hu$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_hu$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_hu$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_hu$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_hu$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_hu$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_hu$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_hu$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_hu$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_hu$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_hu$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_hu$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_hu$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_hu$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_hu$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_hu$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_hu$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_hu$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_hu$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_hu$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_hu$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_hu$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_hu$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_hu$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_hu$data, 'x_ReadMore', 'Read More'), _defineProperty(_hu$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_hu$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_hu$data, 'x_TXFee', 'TX Fee'), _defineProperty(_hu$data, 'x_TxHash', 'TX Hash'), _defineProperty(_hu$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_hu$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_hu$data, 'tx_Details', 'Transaction Details'), _defineProperty(_hu$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_hu$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_hu$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_hu$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_hu$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_hu$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_hu$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_hu$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_hu$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_hu$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_hu$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_hu$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_hu$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_hu$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_hu$data, 'GEN_Help_1', 'Use your'), _defineProperty(_hu$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_hu$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_hu$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_hu$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_hu$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_hu$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_hu$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_hu$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_hu$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_hu$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_hu$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_hu$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_hu$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_hu$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_hu$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_hu$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_hu$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_hu$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_hu$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_hu$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_hu$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_hu$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_hu$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_hu$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_hu$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_hu$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_hu$data, 'NAV_YourWallets', 'Tárcáid '), _defineProperty(_hu$data, 'NAV_AddWallet', 'Tárca hozzáadása '), _defineProperty(_hu$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_hu$data, 'NAV_GenerateWallet', 'Tárca generálása '), _defineProperty(_hu$data, 'NAV_BulkGenerate', 'Több tárca generálása '), _defineProperty(_hu$data, 'NAV_SendEther', 'Ether & Tokenek küldése '), _defineProperty(_hu$data, 'NAV_SendTokens', 'Tokenek küldése '), _defineProperty(_hu$data, 'NAV_Offline', 'Offline tranzakció '), _defineProperty(_hu$data, 'NAV_DeployContract', 'Kontraktus Telepítése '), _defineProperty(_hu$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_hu$data, 'NAV_Contracts', 'Kontraktus '), _defineProperty(_hu$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_hu$data, 'NAV_MyWallets', 'Tárcáim '), _defineProperty(_hu$data, 'NAV_ViewWallet', 'Tárca adatainak megtekintése '), _defineProperty(_hu$data, 'NAV_Help', 'Segítség '), _defineProperty(_hu$data, 'NAV_Contact', 'Kapcsolat '), _defineProperty(_hu$data, 'NAV_ENS', 'ENS'), _defineProperty(_hu$data, 'NAV_Swap', 'Swap '), _defineProperty(_hu$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_hu$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Úgy is ismerheted ezt, mint "Számlaszám" vagy "Publikus Kulcs". Ez az amit a partnereidnek küldesz, hogy tudjanak ETH-et küldeni neked. Az oldalsó ikon egyszerű módja a saját címed felismerésének. '), _defineProperty(_hu$data, 'x_Address', 'A Te címed '), _defineProperty(_hu$data, 'x_Cancel', 'Mégse '), _defineProperty(_hu$data, 'x_CSV', 'CSV fájl (titkosítatlan) '), _defineProperty(_hu$data, 'x_Download', 'Letöltés '), _defineProperty(_hu$data, 'x_Json', 'JSON Fájl (titkosítatlan) '), _defineProperty(_hu$data, 'x_JsonDesc', 'Ez a titkosítotatlan, JSON formátumú változata a privát kulcsodnak. Ez azt jelenti, hogy nincs szükség jelszóra az eléréséhez, viszont ha bárki megtalálja a JSON fájlt, akkor hozzáférhet a tárcádhoz és az Etheredhez a jelszó ismerete nélkül. '), _defineProperty(_hu$data, 'x_Keystore', 'Keystore Fájl (UTC / JSON · Ajánlott · Titkosított) '), _defineProperty(_hu$data, 'x_Keystore2', 'Keystore Fájl (UTC / JSON) '), _defineProperty(_hu$data, 'x_KeystoreDesc', 'Ez a Keystore fájl ugyanolyan formátumú, amit a Mist használ, tehát könnyedén importálhatod a későbbiekben. Leginkább ezt a fájlt ajánlott letölteni és elmenteni. '), _defineProperty(_hu$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_hu$data, 'x_Mnemonic', 'Mnemonikus frázis '), _defineProperty(_hu$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_hu$data, 'x_Password', 'Jelszó '), _defineProperty(_hu$data, 'x_Print', 'PapírTárca Nyomtatása '), _defineProperty(_hu$data, 'x_PrintDesc', 'Profi Tipp: Kattints a nyomtatásra és mentsd el PDF formátumban, még abban az esetben is, ha nincs nyomtatód! '), _defineProperty(_hu$data, 'x_PrintShort', 'Nyomtatás '), _defineProperty(_hu$data, 'x_PrivKey', 'Privát Kulcs (titkosítatlan) '), _defineProperty(_hu$data, 'x_PrivKey2', 'Privát Kulcs '), _defineProperty(_hu$data, 'x_PrivKeyDesc', 'Ez a titkosítatlan szöveges változata a privát kulcsodnak, ami azt jelenti, hogy az eléréséhez nem szükséges jelszó. Ha valaki megtalálta a titkosítatlan privát kulcsodat jelszó nélkül is hozzáférhet a tárcádhoz. Ezért a titkosított változat ajánlott. '), _defineProperty(_hu$data, 'x_Save', 'Mentés '), _defineProperty(_hu$data, 'x_TXT', 'TXT fájl (titkosítatlan) '), _defineProperty(_hu$data, 'x_Wallet', 'Tárca '), _defineProperty(_hu$data, 'x_Access', 'Access '), _defineProperty(_hu$data, 'MEW_Warning_1', 'Mindig ellenőrizd az URL-t mielőtt megpróbálod elérni a tárcádat vagy új tárcát hozol létre. Óvakodj az adathalász oldalalaktól! '), _defineProperty(_hu$data, 'CX_Warning_1', 'Győződj meg róla, hogy van **külső adatmentésed** minden tárcáról, amit itt tárolsz. Több dolog is történhet, ami adatvesztést eredményezhet a Chrome Bővítményben, többek között a Bővítmény törlése vagy újratelepítése. A bővítmény egyszerű módja annak, hogy elérd a tárcáidat, de **nem** annak, hogy elmentsd azokat. '), _defineProperty(_hu$data, 'MEW_Tagline', 'Nyílt forrású JavaScript-alapú, Kliens-oldali Ether Tárca '), _defineProperty(_hu$data, 'CX_Tagline', 'Nyílt forrású JavaScript-alapú, Kliens-oldali Ether Tárca Chrome Bővítmény '), _defineProperty(_hu$data, 'FOOTER_1', 'Egy nyílt forrású, javascript-alapú, kliens-oldali eszköz Ethereum Tárcák létrehozására és tranzakicók végrehajtására. '), _defineProperty(_hu$data, 'FOOTER_1b', 'Készítette: '), _defineProperty(_hu$data, 'FOOTER_2', 'Az adományokat igazán nagyra értékeljük: '), _defineProperty(_hu$data, 'FOOTER_3', 'Kliens-oldali Tárca létrehozása: '), _defineProperty(_hu$data, 'FOOTER_4', 'Jogi nyilatkozat '), _defineProperty(_hu$data, 'sidebar_AccountInfo', 'Számlainformáció '), _defineProperty(_hu$data, 'sidebar_AccountAddr', 'Számla címe '), _defineProperty(_hu$data, 'sidebar_AccountBal', 'Számlaegyenleg '), _defineProperty(_hu$data, 'sidebar_TokenBal', 'Token Egyenleg '), _defineProperty(_hu$data, 'sidebar_Equiv', 'Ezzel egyenértékű '), _defineProperty(_hu$data, 'sidebar_TransHistory', 'Tranzakció Történet '), _defineProperty(_hu$data, 'sidebar_donation', 'A MyEtherWallet egy szabad, nyílt forrású szolgáltatás az adatod védelmének és a biztonságodnak szentelve. Minél több adomány érkezik, annál több időt tudunk fordítani új funkciók létrehozására, a visszajelzéseidre és olyan szolgáltatást nyújtani, amilyet szeretnél. Mindössze két ember, akik megpróbálnak változtatni a világon. Segítesz nekünk? '), _defineProperty(_hu$data, 'sidebar_donate', 'Adományozok '), _defineProperty(_hu$data, 'sidebar_thanks', 'KÖSZÖNJÜK!!! '), _defineProperty(_hu$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_hu$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_hu$data, 'decrypt_Access', 'Hogyan szeretnéd elérni a tárcádat? '), _defineProperty(_hu$data, 'decrypt_Title', 'Válaszd ki a privát kulcsod formátumát: '), _defineProperty(_hu$data, 'decrypt_Select', 'Válassz egy Tárcát: '), _defineProperty(_hu$data, 'ADD_Label_1', 'Mit szeretnél tenni? '), _defineProperty(_hu$data, 'ADD_Radio_1', 'Új Tárca Létrehozása '), _defineProperty(_hu$data, 'ADD_Radio_2', 'Válaszd ki a Tárca fájlodat (Keystore / JSON) '), _defineProperty(_hu$data, 'ADD_Radio_2_alt', 'Válaszd ki a Tárca fájlt '), _defineProperty(_hu$data, 'ADD_Radio_2_short', 'TÁRCA FÁJL KIVÁLASZTÁSA... '), _defineProperty(_hu$data, 'ADD_Radio_2_success', 'Kiválasztott Tárca '), _defineProperty(_hu$data, 'ADD_Radio_3', 'Illeszd be vagy írd be a Privát Kulcsodat '), _defineProperty(_hu$data, 'ADD_Radio_4', 'Tárca hozzáadása megfigyelésre '), _defineProperty(_hu$data, 'ADD_Radio_5', 'Másold/írd be a mnemonikus frázist '), _defineProperty(_hu$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_hu$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_hu$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_hu$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_hu$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_hu$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_hu$data, 'ADD_Label_2', 'Hozz létre egy Nicknevet: '), _defineProperty(_hu$data, 'ADD_Label_3', 'A Tárcád titkosítva van. Írj be a jelszót '), _defineProperty(_hu$data, 'ADD_Label_4', 'Számla hozzáadása megfigyelésre '), _defineProperty(_hu$data, 'ADD_Warning_1', 'Bármelyik számlát hozzáadhatod "megfigyelésre" a tárcák lapon, anélkül, hogy felöltenél privát kulcsot. Ez **nem azt jelenti**, hogy van hozzáférésed ehhez a tárcához és azt sem, hogy tudsz Ethert küldeni vele. '), _defineProperty(_hu$data, 'ADD_Label_5', 'Add meg a címet '), _defineProperty(_hu$data, 'ADD_Label_6', 'Tárcád feloldása '), _defineProperty(_hu$data, 'ADD_Label_6_short', 'Feloldás '), _defineProperty(_hu$data, 'ADD_Label_7', 'Számla Hozzáadása '), _defineProperty(_hu$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_hu$data, 'GEN_desc', 'Ha több tárcát szeretnél egyszerre generálni, azt megteheted itt '), _defineProperty(_hu$data, 'GEN_Label_1', 'Adj meg egy erős jelszót! (legalább 9 karakter) '), _defineProperty(_hu$data, 'GEN_Placeholder_1', 'NE felejtsd el elmenteni! '), _defineProperty(_hu$data, 'GEN_SuccessMsg', 'Sikerült! A Tárcád legenerálódott. '), _defineProperty(_hu$data, 'GEN_Label_2', 'Mentsd el a Keystore fájlt vagy a Privát Kulcsot. Ne felejtsd el a fenti jelszót! '), _defineProperty(_hu$data, 'GEN_Label_3', 'Mentsd el a címed. '), _defineProperty(_hu$data, 'GEN_Label_4', 'Választható: Nyomtasd ki a papír tárcádat vagy tárold a QR kód változatot. '), _defineProperty(_hu$data, 'BULK_Label_1', 'Generálni kívánt tárcák száma '), _defineProperty(_hu$data, 'BULK_Label_2', 'Tárcák generálása '), _defineProperty(_hu$data, 'BULK_SuccessMsg', 'Sikerült! A tárcáid legenerálódtak. '), _defineProperty(_hu$data, 'SEND_addr', 'Erre a címre '), _defineProperty(_hu$data, 'SEND_amount', 'Küldendő összeg '), _defineProperty(_hu$data, 'SEND_amount_short', 'Összeg '), _defineProperty(_hu$data, 'SEND_custom', 'Saját Token '), _defineProperty(_hu$data, 'SEND_gas', 'Gas '), _defineProperty(_hu$data, 'SEND_TransferTotal', 'Teljes egyenleg küldése '), _defineProperty(_hu$data, 'SEND_generate', 'Tranzakció generálása '), _defineProperty(_hu$data, 'SEND_raw', 'Raw/Nyers Tranzakció '), _defineProperty(_hu$data, 'SEND_signed', 'Aláírt Tranzakció '), _defineProperty(_hu$data, 'SEND_trans', 'Tranzakció Küldése '), _defineProperty(_hu$data, 'SENDModal_Title', 'Figyelmeztetés! '), _defineProperty(_hu$data, 'SENDModal_Content_1', 'Most készülsz küldeni '), _defineProperty(_hu$data, 'SENDModal_Content_2', '-t az alábbi címre: '), _defineProperty(_hu$data, 'SENDModal_Content_3', 'Biztos vagy benne? '), _defineProperty(_hu$data, 'SENDModal_Content_4', 'JEGYZET: Ha hibával találkozol valószínűleg ethert kell küldened a számládra, hogy fedezni tudd a gas-költségét a token küldésének. A Gas etherben fizetendő. '), _defineProperty(_hu$data, 'SENDModal_No', 'Nem, vigyél ki innen! '), _defineProperty(_hu$data, 'SENDModal_Yes', 'Igen, biztos vagyok benne! Tranzakció indítása. '), _defineProperty(_hu$data, 'TOKEN_Addr', 'Token Contract Cím '), _defineProperty(_hu$data, 'TOKEN_Symbol', 'Token Szimbólum '), _defineProperty(_hu$data, 'TOKEN_Dec', 'Tizedesjegyek '), _defineProperty(_hu$data, 'TOKEN_show', 'Minden Token megjelenítése '), _defineProperty(_hu$data, 'TOKEN_hide', 'Tokenek elrejtése '), _defineProperty(_hu$data, 'TRANS_desc', 'Ha Tokeneket akarsz küldeni, kérlek használd a Token Küldése oldalt ehelyett. '), _defineProperty(_hu$data, 'TRANS_warning', 'Ha a "Csak ETH" vagy a "Csak ETC" Funkciókat használod a küldés kontraktuson keresztül megy végbe. Néhány szolgáltatásnak problémái lehetnek az ilyen tranzakciók elfogadásával. Kattints és tudj meg többet. '), _defineProperty(_hu$data, 'TRANS_advanced', '+Haladó: Több Adat '), _defineProperty(_hu$data, 'TRANS_data', 'Adat '), _defineProperty(_hu$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_hu$data, 'TRANS_sendInfo', 'Egy standard tranzakció 21000 gas-t használ, ami 0.000441 ETH-be fog kerülni. Mi 0.000000021 ETH-nél (a minimálisnál) enyhén magasabb gas árat használunk, annak biztosítása érdekében, hogy gyorsan ki legyen bányászva. Tranazkciós költséget nem számolunk fel. '), _defineProperty(_hu$data, 'TRANSModal_Title', '"Csak ETH" és "Csak ETC" Tranzakciók '), _defineProperty(_hu$data, 'TRANSModal_Content_0', 'Egy jegyzet a különféle tranzakciókról és szolgáltatásokról '), _defineProperty(_hu$data, 'TRANSModal_Content_1', '**ETH (Standard Tranzakció): ** Egy alapértelmezett tranzakciót generál közvetlenül az egyik címről a másikra. A gas alapértéke 21000. Valószínűsíthető, hogy minden ETH, ami ezzel a módszerrel lesz elküldve, végbemegy az ETC láncon is. '), _defineProperty(_hu$data, 'TRANSModal_Content_2', '**Csak ETH: ** Ez a tranzakciótípus [Timon Rapp replay protection/visszajátszás elleni védelem kontraktusán keresztül küld (ahogy azt Vitalik Buterin adjánlotta)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) tehát a küldés csak az **ETH** láncon megy végbe. '), _defineProperty(_hu$data, 'TRANSModal_Content_3', '**Csak ETC: ** Ez a tranzakciótípus [Timon Rapp replay protection/visszajátszás elleni védelem kontraktusán keresztül küld (ahogy azt Vitalik Buterin adjánlotta)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) tehát a küldés csak az **ETC** láncon megy végbe. '), _defineProperty(_hu$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Csak Standard Tranzakció szerint küld. Ha a "Csak" kontraktusok valamelyikével küldesz, fel kell venned a kapcsolatot az ügyfélszolgálattal, hogy manuálisan hozzáadhassák az egyenleged vagy visszatérítést küldjenek. [Megpróbálhatod a Shapeshift "split" eszközét is.](https://split.shapeshift.io/) '), _defineProperty(_hu$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Nincsenek ismert problémák. Használható bárhogyan. '), _defineProperty(_hu$data, 'TRANSModal_Yes', 'Király, most már értem. '), _defineProperty(_hu$data, 'TRANSModal_No', 'Ó istenem, most még jobban összezavarodtam. Segítsetek! '), _defineProperty(_hu$data, 'OFFLINE_Title', 'Offline tranzakció generálása és küldése '), _defineProperty(_hu$data, 'OFFLINE_Desc', 'Az Offline tranzakció generálása három lépsében történik. Az első(1.) és a harmadik(3.) lépéseket online számítógépen kell végrehajtani, a második(2.) lépést pedig offline/airgap számítógépen. Ezzel meggyőződhetsz róla, hogy a privát kulcsod nem érintkezik internetre kötött eszközzel. '), _defineProperty(_hu$data, 'OFFLLINE_Step1_Title', 'Lépés 1: Információ Generálása (Online Számítógép) '), _defineProperty(_hu$data, 'OFFLINE_Step1_Button', 'Információ Generálása '), _defineProperty(_hu$data, 'OFFLINE_Step1_Label_1', 'Erről a címről '), _defineProperty(_hu$data, 'OFFLINE_Step1_Label_2', 'Jegyzet: Ez a FELADÓ címe, nem a FOGADÓÉ. A nonce a feladó számlájából generálódik. Ha airgap-elt számítógépet használsz, ez a cím a hidegtárcás számla címe legyen. '), _defineProperty(_hu$data, 'OFFLINE_Step2_Title', 'Lépés 2: Tranzakció Generálása (Offline Számítógép) '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_1', 'Erre a címre '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_2', 'Érték / Összeg küldésre '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_3', 'Gas Ár '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_3b', 'Ez volt látható az online számítógépen az első lépésben. '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_4', 'Gas Limit '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_4b', '21000 az alapértelmezett gas limit. Amikor kontraktust küldesz vagy adatot adsz hozzá ezeknek különbözőeknek kell lennie. A nem használt gas visszatérül hozzád. '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_5b', 'Ez volt látható az online számítógépen az első lépésben. '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_6', 'Adat '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_6b', 'Ez választható. Az adat mező gyakran használt, amikor tranzakciót küldesz kontraktusokba. '), _defineProperty(_hu$data, 'OFFLINE_Step2_Label_7', 'Írd be / Válaszd ki a Privát Kulcsodat / JSON-fájlt. '), _defineProperty(_hu$data, 'OFFLINE_Step3_Title', 'Lépés 3: Küld / Közzétesz (Online Számítógép) '), _defineProperty(_hu$data, 'OFFLINE_Step3_Label_1', 'Illeszd be ide az aláírt tranzakciót a második lépésből (Lépés 2) és nyomd meg a "TRANZAKCIÓ KÜLDÉSE" gombot. '), _defineProperty(_hu$data, 'MYWAL_Nick', 'Tárca Nickname '), _defineProperty(_hu$data, 'MYWAL_Address', 'Tárca Cím '), _defineProperty(_hu$data, 'MYWAL_Bal', 'Egyenleg '), _defineProperty(_hu$data, 'MYWAL_Edit', 'Szerkesztés '), _defineProperty(_hu$data, 'MYWAL_View', 'Nézet '), _defineProperty(_hu$data, 'MYWAL_Remove', 'Eltávolítás '), _defineProperty(_hu$data, 'MYWAL_RemoveWal', 'Tárca Eltávolítása: '), _defineProperty(_hu$data, 'MYWAL_WatchOnly', 'Megfigyelt Számláid '), _defineProperty(_hu$data, 'MYWAL_Viewing', 'Tárca megtekintése '), _defineProperty(_hu$data, 'MYWAL_Hide', 'Tárca Információ elrejtése '), _defineProperty(_hu$data, 'MYWAL_Edit_2', 'Tárca szerkesztése '), _defineProperty(_hu$data, 'MYWAL_Name', 'Tárca Neve '), _defineProperty(_hu$data, 'MYWAL_Content_1', 'Figyelmeztetés! Arra készülsz, hogy eltávolítod a tárcádat '), _defineProperty(_hu$data, 'MYWAL_Content_2', 'Győződj meg róla, hogy **elmentetted a privát kulcsodat és/vagy Keystore fájlodat a jelszóval együtt,** mielőtt törlöd őket. '), _defineProperty(_hu$data, 'MYWAL_Content_3', 'Ha használni akarod ezt a tárcát a MyEtherWallet CX-szel a jövőben, manuálisan újra hozzá kell majd adnod a privát kulcs/JSON-nal és jelszóval. '), _defineProperty(_hu$data, 'VIEWWALLET_Subtitle', 'Ez lehetővé teszi számodra, hogy különböző változatú privát kulcsokat tölts le és újranyomtasd a papírtárcádat. Ezt megteheted úgy, hogy [importálod a számládat a Geth/Mist-be](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Ha ellenőrizni akarod a számládat, azt ajánljuk, hogy használj blokklánc explorert mint az [etherscan.io](https://etherscan.io/). '), _defineProperty(_hu$data, 'VIEWWALLET_Subtitle_Short', 'Ez lehetővé teszi számodra, hogy különböző változatú privát kulcsokat tölts le és újranyomtasd a papírtárcádat. '), _defineProperty(_hu$data, 'VIEWWALLET_SuccessMsg', 'Sikerült! Itt vannak a tárcád részletei. '), _defineProperty(_hu$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_hu$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_hu$data, 'MNEM_1', 'Válaszd ki a címet amelyiket használni szeretnéd. '), _defineProperty(_hu$data, 'MNEM_2', 'Egyetlen mnemonikus frázis egyszerre több tárcához / címhez ad hozzáférést. Válaszd ki a címet amelyiket most használni szeretnéd. '), _defineProperty(_hu$data, 'MNEM_more', 'További Címek '), _defineProperty(_hu$data, 'MNEM_prev', 'Előző Címek '), _defineProperty(_hu$data, 'CX_error_1', 'Nincsen mentett Tárcád. Kattints ["Tárca Hozzáadása"](/cx-wallet.html#add-wallet) ahhoz, hogy hozzáadj egyet! '), _defineProperty(_hu$data, 'CX_quicksend', 'GyorsKüldés '), _defineProperty(_hu$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_hu$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_hu$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_hu$data, 'NODE_Name', 'Node Name'), _defineProperty(_hu$data, 'NODE_Port', 'Node Port'), _defineProperty(_hu$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_hu$data, 'CONTRACT_Title', 'Contract Address '), _defineProperty(_hu$data, 'CONTRACT_Title_2', 'Select Existing Contract '), _defineProperty(_hu$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_hu$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_hu$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_hu$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_hu$data, 'CONTRACT_Read', 'READ '), _defineProperty(_hu$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_hu$data, 'DEP_generate', 'Byte-kód Generálása '), _defineProperty(_hu$data, 'DEP_generated', 'Generált Byte-kód '), _defineProperty(_hu$data, 'DEP_signtx', 'Aláírt Tranzakció '), _defineProperty(_hu$data, 'DEP_interface', 'Generált Felület '), _defineProperty(_hu$data, 'SWAP_rates', "Current Rates "), _defineProperty(_hu$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_hu$data, 'SWAP_init_2', " for "), _defineProperty(_hu$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_hu$data, 'SWAP_information', "Your Information "), _defineProperty(_hu$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_hu$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_hu$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_hu$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_hu$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_hu$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_hu$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_hu$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_hu$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_hu$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_hu$data, 'SWAP_progress_3', "Received! "), _defineProperty(_hu$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_hu$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_hu$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_hu$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_hu$data, 'MSG_message', 'Message '), _defineProperty(_hu$data, 'MSG_date', 'Date '), _defineProperty(_hu$data, 'MSG_signature', 'Signature '), _defineProperty(_hu$data, 'MSG_verify', 'Verify Message '), _defineProperty(_hu$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_hu$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_hu$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_hu$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_hu$data, 'ADD_Ledger_scan', 'Csatlakozás a Ledger Wallet-hez '), _defineProperty(_hu$data, 'ADD_Ledger_1', 'Csatlakoztasd a Ledger Wallet-et '), _defineProperty(_hu$data, 'ADD_Ledger_2', 'Nyisd meg az Ethereum applikációt (vagy egy kontraktus applikációt) '), _defineProperty(_hu$data, 'ADD_Ledger_2_Exp', 'Nyisd meg az Expanse applikációt (vagy egy kontraktus applikációt) '), _defineProperty(_hu$data, 'ADD_Ledger_2_Ubq', 'Nyisd meg az Ubiq applikációt (vagy egy kontraktus applikációt) '), _defineProperty(_hu$data, 'ADD_Ledger_3', 'Ellenőrizd, hogy a beállításokban engedélyezve van a Böngésző Támogatás (Browser Support) '), _defineProperty(_hu$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_hu$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_hu$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_hu$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_hu$data, 'x_Trezor', 'TREZOR '), _defineProperty(_hu$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_hu$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_hu$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_hu$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_hu$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_hu$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_hu$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_hu$data, 'ERROR_0', 'Kérlek írj be érvényes összeget '), _defineProperty(_hu$data, 'ERROR_1', 'A jelszavadnak minimum 9 karakter hosszúságúnak kell lennie. Kérlek győződj meg arról, hogy erős jelszót választasz. '), _defineProperty(_hu$data, 'ERROR_2', 'Sajnáljuk, de nem tudjuk felismerni ezt a típusú Tárca fájlt. '), _defineProperty(_hu$data, 'ERROR_3', 'Ez nem egy érvényes Tárca fájl. '), _defineProperty(_hu$data, 'ERROR_4', 'Ez a egység nem létezik, kérlek használj egyet az alábbi egységek közül '), _defineProperty(_hu$data, 'ERROR_5', 'Érvénytelen cím. '), _defineProperty(_hu$data, 'ERROR_6', 'Érvénytelen jelszó. '), _defineProperty(_hu$data, 'ERROR_7', 'Érvénytelen összeg. (Must be integer. Try 0-18.) '), _defineProperty(_hu$data, 'ERROR_8', 'Érvénytelen gas limit. (Must be integer. Try 21000-4000000.) '), _defineProperty(_hu$data, 'ERROR_9', 'Érvénytelen adatérték. (Must be hex.) '), _defineProperty(_hu$data, 'ERROR_10', 'Érvénytelen gas összeg. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_hu$data, 'ERROR_11', 'Érvénytelen nonce. (Must be integer.) '), _defineProperty(_hu$data, 'ERROR_12', 'Érvénytelen aláírású tranzakció. '), _defineProperty(_hu$data, 'ERROR_13', 'Egy Tárca ezzel a Nicknévvel már létezik '), _defineProperty(_hu$data, 'ERROR_14', 'Tárca nem található. '), _defineProperty(_hu$data, 'ERROR_15', 'Úgy tűnik ezzel az ID-vel nem létezik javaslat, vagy hiba történt a javaslat beolvasása közben. '), _defineProperty(_hu$data, 'ERROR_16', 'Egy tárca ezzel a címmel már létezik a tárolóban. Kérlek ellenőrizd a tárcák oldalán. '), _defineProperty(_hu$data, 'ERROR_17', 'Nincs elegendő egyenleg. A számlán amiről küldeni próbálsz nem elég az egyenleg. Legalább 0.01 ethernek kell lennie a számládon, ahhoz, hogy fedezni tudd a gas költségeit. Kérlek adj hozzá ethert és próbáld újra! '), _defineProperty(_hu$data, 'ERROR_18', 'Az összes gas felhasználásra kerülne ezen a tranzakción. Ez azt jelenti, hogy már szavaztál erre a javaslatra vagy a vita periódus már lejárt. '), _defineProperty(_hu$data, 'ERROR_19', 'Érvénytelen szimbólum '), _defineProperty(_hu$data, 'ERROR_20', 'Not a valid ERC-20 token'), _defineProperty(_hu$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_hu$data, 'ERROR_22', 'Please enter a valid node name'), _defineProperty(_hu$data, 'ERROR_23', 'Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_hu$data, 'ERROR_24', 'Please enter a valid port. '), _defineProperty(_hu$data, 'ERROR_25', 'Please enter a valid chain ID. '), _defineProperty(_hu$data, 'ERROR_26', 'Please enter a valid ABI. '), _defineProperty(_hu$data, 'ERROR_27', 'Minimum amount: 0.01. Max amount: '), _defineProperty(_hu$data, 'ERROR_28', '**Szükséged lesz a Keystore Fájlra és a jelszóra vagy a Privát Kulcsra**, ahhoz, hogy hozzáférj ehhez a tárcához a jövőben. Kérlek mentsd el és készíts külső biztonsági mentést is! Nincs lehetőség egy tárca visszaszerzésére, ha nem mented el. Olvasd el a [Segítség lapot](https://www.myetherwallet.com/#help) további instrukciókért. '), _defineProperty(_hu$data, 'ERROR_29', 'Please enter a valid user and password. '), _defineProperty(_hu$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_hu$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_hu$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_hu$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_hu$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_hu$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_hu$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_hu$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_hu$data, 'SUCCESS_1', 'Érvényes cím '), _defineProperty(_hu$data, 'SUCCESS_2', 'Tárca sikeresen dekódolva '), _defineProperty(_hu$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_hu$data, 'SUCCESS_4', 'Tárcád sikeresen hozzáadva '), _defineProperty(_hu$data, 'SUCCESS_5', 'File Selected '), _defineProperty(_hu$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_hu$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_hu$data, 'GETH_InvalidSender', 'Érvénytelen küldő '), _defineProperty(_hu$data, 'GETH_Nonce', 'a Nonce túl alacsony '), _defineProperty(_hu$data, 'GETH_Cheap', 'A Gas ára túl alacsony az elfogadáshoz '), _defineProperty(_hu$data, 'GETH_Balance', 'Hiányos egyenleg '), _defineProperty(_hu$data, 'GETH_NonExistentAccount', 'A Számla nem létezik vagy az egyenleg túl alacsony '), _defineProperty(_hu$data, 'GETH_InsufficientFunds', 'Hiányos alap a gas-hoz * ár + érték '), _defineProperty(_hu$data, 'GETH_IntrinsicGas', 'Intrinsic gas túl alacsony '), _defineProperty(_hu$data, 'GETH_GasLimit', 'Meghaladja a blokk gas limitjét '), _defineProperty(_hu$data, 'GETH_NegativeValue', 'Negatív érték '), _defineProperty(_hu$data, 'PARITY_AlreadyImported', "Egy azonos hash-sel rendelkező tranzakció már importálva volt."), _defineProperty(_hu$data, 'PARITY_Old', "A tranzakciós nonce túl alacsony. Próbáld meg megnövelni."), _defineProperty(_hu$data, 'PARITY_TooCheapToReplace', "Túl alacsony a tranzakciós díj. Van egy másik tranzakció is a sorban azonos nonce-szal. Próbáld meg megemelni adíjat vagy megnövelni a nonce-t."), _defineProperty(_hu$data, 'PARITY_LimitReached', "Túl sok tranzakció van a sorodban, ezért ez a tranzakció nem lett feldolgozva."), _defineProperty(_hu$data, 'PARITY_InsufficientGasPrice', "Túl alacsony a tranzakciós díj. Nem felel meg a node-od minimum díjának. Minimum: {}, ennyi lenne: {}. Próbáld meg megnövelni a díjat."), _defineProperty(_hu$data, 'PARITY_InsufficientBalance', "Nincs elegendő egyenleg. A számlán amiről küldeni próbálsz nem elég az egyenleg. Szükséges: {} és van: {}."), _defineProperty(_hu$data, 'PARITY_GasLimitExceeded', "A tranzakcó ára meghaladja a jelenlegi gas limitet. Limit: {}, ennyi lenne: {}."), _defineProperty(_hu$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_hu$data, 'translate_version', '0.4.3 '), _defineProperty(_hu$data, 'Translator_Desc', 'Köszönet a fordításért '), _defineProperty(_hu$data, 'TranslatorName_1', '[belpheg](https://www.myetherwallet.com/?gaslimit=21000&to=0xBF8C35176eAD29257834D5A1592ed50Adb0b6e4f&value=1.0#send-transaction) · '), _defineProperty(_hu$data, 'TranslatorAddr_1', '0xBF8C35176eAD29257834D5A1592ed50Adb0b6e4f '), _defineProperty(_hu$data, 'TranslatorName_2', '[bluqesh](https://www.myetherwallet.com/?gaslimit=21000&to=0x4270A331d14CcdB6FB941f3f5De9Cf01607Bff9F&value=1.0#send-transaction) '), _defineProperty(_hu$data, 'TranslatorAddr_2', '0x4270A331d14CcdB6FB941f3f5De9Cf01607Bff9F '), _defineProperty(_hu$data, 'TranslatorName_3', ''), _defineProperty(_hu$data, 'TranslatorAddr_3', ''), _defineProperty(_hu$data, 'TranslatorName_4', ''), _defineProperty(_hu$data, 'TranslatorAddr_4', ''), _defineProperty(_hu$data, 'TranslatorName_5', ''), _defineProperty(_hu$data, 'TranslatorAddr_5', ''), _defineProperty(_hu$data, 'HELP_Warning', 'Ha **2015 december 31** előtt készítettél egy tárcát vagy töltötted le a repo-t, akkor ellenőrizd a tárcáidat és töltsd le a repo új verzióját. Kattints a részletekért. '), _defineProperty(_hu$data, 'HELP_Desc', 'Valamit hiányolsz? Egyéb kérdésed lenne? [Írj nekünk](mailto:support@myetherwallet.com), és nem csak választ fogsz kapni, de még ezt az oldalt is frissítjük, hogy másoknak is hasznosabb legyen. '), _defineProperty(_hu$data, 'HELP_Remind_Title', 'Néhány emlékeztető '), _defineProperty(_hu$data, 'HELP_Remind_Desc_1', 'Az **Ethereum, MyEtherWallet.com és MyEtherWallet CX, továbbá néhány, az oldal által használt JavaScript könyvtár aktív fejlesztés alatt állnak.** Az alapos tesztelés és a világszerte több tízezer sikeresen létrehozott tárca ellenére mindig fennáll az apró lehetőség arra, hogy valami váratlan esemény miatt elveszted az ETH-id. Ne fektess be annál többet, mint amit hajlandó lennél elveszítnei. Ha esetleg bármi ilyen történne, nagyon sajnáljuk, de **nem vagyunk a felősek az elvesztett Etherekért**. '), _defineProperty(_hu$data, 'HELP_Remind_Desc_2', 'A MyEtherWallet.com és a MyEtherWallet CX nem "web tárcák". Nem kell nálunk regisztrálnod, vagy ránk bízni az Ethereid megőrzésre. Semmilyen adat nem hagyja el a gépedet/böngésződet. Abban segítünk, hogy egyszerűen tudd az tárcáid látrehozni, lementeni és hozzájuk férni, és egyéb módon használni a blokkláncot. '), _defineProperty(_hu$data, 'HELP_Remind_Desc_3', 'Ha nem mented le a privát kulcsodat és a jelszót, akkor nincs lehetőség visszaszerezni a tárcádhoz a hozzáférést, sem a rajta levő összeget. Készíts róluk több példányban is biztonsági másolatot, és ne csak a gépeden legyenek! '), _defineProperty(_hu$data, 'HELP_0_Title', '0) Új vagyok. Mire tudom használni ezt az oldalt? '), _defineProperty(_hu$data, 'HELP_0_Desc_1', 'A MyEtherWallet-tel új tárcákat lehet létrehozni, hogy saját magadnál tudd tárolni az Ethert, és nem egy exchange-nél. Ez a folyamat teljesen a te gépeden történik, nem a mi szerverünkön, így amikor létrehozol egy új tárcát **a te felelősséged biztonságosan tárolni azt**. '), _defineProperty(_hu$data, 'HELP_0_Desc_2', 'Hozz létre egy új tárcát. '), _defineProperty(_hu$data, 'HELP_0_Desc_3', 'Készíts róla biztonsági mentést. '), _defineProperty(_hu$data, 'HELP_0_Desc_4', 'Ellnőrizd, hogy van hozzáférésed az új tárcához, és helyesen mentettél le minden szükséges információt. '), _defineProperty(_hu$data, 'HELP_0_Desc_5', 'Küldj Ethert az új címedre. '), _defineProperty(_hu$data, 'HELP_1_Title', '1) Hogyan tudok új tárcát készíteni? '), _defineProperty(_hu$data, 'HELP_1_Desc_1', 'Menj a "Tárca Generálása" oldalra. '), _defineProperty(_hu$data, 'HELP_1_Desc_2', 'Menj a "Tárca hozzáadása" oldalra, és válaszd ki az "Új Tárca Létrehozása" opciót. '), _defineProperty(_hu$data, 'HELP_1_Desc_3', 'Írj be egy erős jelszót. Ha úgy gondolod, esetleg elfelejtheted, akkor ments le / írd le egy biztonságos helyre, mert szükséged lesz rá később, hogy tranzakciókat küldhess. '), _defineProperty(_hu$data, 'HELP_1_Desc_4', 'Kattints a "Tárca generálása" gombra. '), _defineProperty(_hu$data, 'HELP_1_Desc_5', 'Az új tárcád ezzel kész van. '), _defineProperty(_hu$data, 'HELP_2a_Title', 'Hogyan tudom lementeni/biztonsági másolatot készíteni a tárcáról? '), _defineProperty(_hu$data, 'HELP_2a_Desc_1', 'A tárcádról ajánlott mindig külső biztonsági mentést tartani, több, fizikailag különböző helyen - például egy pendrive-on és/vagy papíron. '), _defineProperty(_hu$data, 'HELP_2a_Desc_2', 'Mentsd le a címet. Megtarthatod magadnak, vagy megoszthatod másokkal is, így ők is tudnak neked Ethert küldeni. '), _defineProperty(_hu$data, 'HELP_2a_Desc_3', 'Mentsd el több példányban a privát kulcsot, és ne oszd meg senkivel. Erre van ugyanis szükség, ha hozzá szeretnél férni az Etheredhez, és el szeretnéd küldeni. Három fajta privát kulcs van: '), _defineProperty(_hu$data, 'HELP_2a_Desc_4', 'Tedd a címed, a privát kulcsod egy változatát és a papírtárca PDF-et egy mappába. Ments ezt le a számítógépedre és egy USB pendrive-ra. '), _defineProperty(_hu$data, 'HELP_2a_Desc_5', 'Ha van nyomtatód, nyomtasd ki a papírtárcát. Ennek hiányában írd le a privát kulcsot és a címed egy darab papírra. Ezt a számítógépedtől és a pendrive-tól elkülönített, biztonságos helyen tárold. '), _defineProperty(_hu$data, 'HELP_2a_Desc_6', 'Figyel arra is, hogy olyankor is legyen másolatod a privát kulcsról/jelszóról, ha a számítógéped, a pendrive vagy a papír eltűnik, vagy elromlik. Olyan esetekkel is számolj ami akár fizikailag nagyobb területet érinthet, mint például egy tűz, vagy árvíz. '), _defineProperty(_hu$data, 'HELP_2b_Title', '2b) Hogyan tudom biztonságosan/offline/hidegen használni a MyEtherWallet-et? '), _defineProperty(_hu$data, 'HELP_2b_Desc_1', 'Menj a github oldalunkra: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_hu$data, 'HELP_2b_Desc_2', 'Kattints a `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_hu$data, 'HELP_2b_Desc_3', 'Másold a letöltött zip fájlt egy airgap-elt számítógépre. '), _defineProperty(_hu$data, 'HELP_2b_Desc_4', 'Csomagold ki, és indítsd el az "index.html" fájlt. '), _defineProperty(_hu$data, 'HELP_2b_Desc_5', 'Generálj egy tárcát egy erős jelszóval. '), _defineProperty(_hu$data, 'HELP_2b_Desc_6', 'Mentsd le a címet, és a privát kulcs különféle verzióit. Mentsd le a jelszót is, ha esetleg nem emlékeznél rá örökre. '), _defineProperty(_hu$data, 'HELP_2b_Desc_7', 'Ezeket a paírokat / pendriveoket egymástól fizikailag különböző helyeken tárold. '), _defineProperty(_hu$data, 'HELP_2b_Desc_8', 'Menj a "Tárca adatainak megtekintése" oldalra, majd írd be a privát kulcsot/jelszót, hogy le tudd ellenőrizni, hogy minden helyes. Győződj meg róla, hogy a címet is helyesen írtad le. '), _defineProperty(_hu$data, 'HELP_3_Title', '3) Hogyan tudom ellenőrizni, hogy hozzáférek a tárcához?How do I verify I have access to my new wallet? '), _defineProperty(_hu$data, 'HELP_3_Desc_1', '**Mielőtt bármennyi Ethert küldesz az új tárcádba**, mindenképp ellenőrizd le, hogy később hozzá tudsz majd férni. '), _defineProperty(_hu$data, 'HELP_3_Desc_2', 'Menj a "Tárca adatainak megtekintése" oldalra. '), _defineProperty(_hu$data, 'HELP_3_Desc_3', 'Menj a MyEtherWallet.com-on a "Tárca adatainak megtekintése" oldalra. '), _defineProperty(_hu$data, 'HELP_3_Desc_4', 'Válaszd ki a tárca fájlt -vagy- a privát kulcsot, és nyisd ki a tárcádat. Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_hu$data, 'HELP_3_Desc_5', 'Ha a tárca titkosított, automatikusan megjelenik egy szövegdoboz. Ide írd be a jelszót. '), _defineProperty(_hu$data, 'HELP_3_Desc_6', 'Kattints a "Tárca feloldása" gombra. '), _defineProperty(_hu$data, 'HELP_3_Desc_7', 'Ezután megjelennek a tárcádhoz kapcsolódó információk. A címedet a színes, kör alakú ikon mellett fogod megtalálni. Ez az ikon a címed képi reprezentációja. Bizonyosodj meg róla, hogy ez a cím megegyezik az általad lementett címmel, és azzal ami a papír tárcán is szerepel. '), _defineProperty(_hu$data, 'HELP_3_Desc_8', 'Ha egy nagyobb összeget szeretnél a tárolni, akkor azt javasoljuk, hogy előtte próbálj meg egy kisebb összeget küldeni az új tárcából. Ehhez küldj az új címedre 0.001 Etheret, nyisd ki a tárcát, és küldd tovább ezt a 0.001 Ethert egy másik címre. Így biztos lehetsz benne, hogy minden jól működik. '), _defineProperty(_hu$data, 'HELP_4_Title', '4) Hogyan tudok Ethert küldeni az egyik tárcámból egy másikba? '), _defineProperty(_hu$data, 'HELP_4_Desc_1', 'Ha egy nagyobb összeget szeretnél küldeni, előtte mindig próbáld ki a küldést egy kisebb összeggel. Így biztos lehetsz benne, hogy minden jól fog működni. '), _defineProperty(_hu$data, 'HELP_4_Desc_2', 'Menj az "Ether & Tokenek küldése" oldalra. '), _defineProperty(_hu$data, 'HELP_4_Desc_3', 'Válaszd ki a tárca fájlt -vagy- a privát kulcsot, és nyisd ki a tárcádat. '), _defineProperty(_hu$data, 'HELP_4_Desc_4', 'Ha a tárca titkosított, automatikusan megjelenik egy szövegdoboz. Ide írd be a jelszót. '), _defineProperty(_hu$data, 'HELP_4_Desc_5', 'Kattints a "Tárca feloldása" gombra. '), _defineProperty(_hu$data, 'HELP_4_Desc_6', 'Írd be a címet ahova küldeni szeretnél az "Erre a címre" mezőbe. '), _defineProperty(_hu$data, 'HELP_4_Desc_7', 'Írd be az összeget, amennyit küldeni szeretnél. Ha a teljes egyenleget át szeretnéd küldeni, akkor használhatod a "Teljes egyenleg küldése" gombot is. '), _defineProperty(_hu$data, 'HELP_4_Desc_9', 'Kattints a "Tranzakció generálása" gombra. '), _defineProperty(_hu$data, 'HELP_4_Desc_10', 'Meg fog jelenni még néhány mező. Ezeket a böngésződ tölti ki, miközben legenerálja a tranzakciót. '), _defineProperty(_hu$data, 'HELP_4_Desc_11', 'Kattints az ezek alatt levő kék "Tranzakció küldése" gombra. '), _defineProperty(_hu$data, 'HELP_4_Desc_12', 'Felugrik egy pop-up, ahol le tudod ellenőrizni a címet és az összeget. Ha minden jó, kattints az "Igen, biztos vagyok benne! Tranzakció indítása." gombra. '), _defineProperty(_hu$data, 'HELP_4_Desc_13', 'A tranzakció el lesz küldve, és megjelenik egy TX Hash. Erre a TX Hash-re kattintva megnézheted a tranzakciót a blokkláncon. '), _defineProperty(_hu$data, 'HELP_4CX_Title', '4) Hogyan tudok Ethert küldeni a MyEtherWalet CX-szel? '), _defineProperty(_hu$data, 'HELP_4CX_Desc_1', 'Első lépésként hozzá kell adj egy tárcát. Ha ez megvan, két lehetőséged van: a "GyorsKüldés" funkció a Chrome Bővítmény ikonon, vagy az "Ether & Tokenek küldése" oldal. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_2', 'GyorsKüldés: '), _defineProperty(_hu$data, 'HELP_4CX_Desc_3', 'Kattints a Chrome Bővítmény ikonra. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_4', 'Kattints a "GyorsKüldés" gombra. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_5', 'Válaszd ki a tárcát ahonnan küldeni szerentél. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_6', 'Írd be a címet ahova küldeni szeretnél az "Erre a címre" mezőbe. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_7', 'Írd be az összeget, amennyit küldeni szeretnél. Ha a teljes egyenleget át szeretnéd küldeni, akkor használhatod a "Teljes egyenleg küldése" gombot is. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_8', 'Kattints a "Tranzakció küldése" gombra. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_9', 'Ellenőrizd, hogy a cím és a küldendő összeg helyes. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_10', 'Írd be a tárcád jelszavát. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_11', 'Kattints a "Tranzakció küldése" gombra. '), _defineProperty(_hu$data, 'HELP_4CX_Desc_12', 'A "Tranzakció küldése" oldalon '), _defineProperty(_hu$data, 'HELP_5_Title', '5) Hogyan lehet a MyEtherWallet-et offline/lokálisan használni? '), _defineProperty(_hu$data, 'HELP_5_Desc_1', 'Futtahatod a MyEtherWallet.com-ot a saját számítógépeden is, a GitHub szerverei nélkül. Így lehetőséged van teljesen offline generálni tárcákat, vagy Ethert küldeni az "Offline tranzakció" oldalról. '), _defineProperty(_hu$data, 'HELP_5_Desc_7', 'A MyEtherWallet.com most teljesen a te számítógépedről fut. '), _defineProperty(_hu$data, 'HELP_5_Desc_8', 'Ha esetleg nem csináltál volna még ilyet: a teljes mappára szükséged van az oldal futtatásához, nem elég csak az "index.html" fájl. A mappában ne piszkálj / mozgass el semmit. Ha biztonsági másolatot szeretnél a MyEtherWallet repo-ról későbbre, akkor az eredeti zip fájl tárolását javasoljuk, így biztos lehetsz benne hogy a tartalma érintetlen marad. '), _defineProperty(_hu$data, 'HELP_5_Desc_9', 'Mivel folyamatosan frissítjük a MyEtherWallet.com-ot, ezért javasoljuk, hogy időközönként frissítsd a lementett repo-t is. '), _defineProperty(_hu$data, 'HELP_5CX_Title', '5) Hogyan tudom ezt a kiegészítőt a repo-ból telepíteni a Chrome Store helyett? '), _defineProperty(_hu$data, 'HELP_5CX_Desc_2', 'Kattints a `chrome-extension-vX.X.X.X.zip`. '), _defineProperty(_hu$data, 'HELP_5CX_Desc_3', 'A Goole Chrome-ban menj a Beállításokba (a jobb fenti menüből). '), _defineProperty(_hu$data, 'HELP_5CX_Desc_4', 'Kattints a "Bővítmények"-re a bal oldalon. '), _defineProperty(_hu$data, 'HELP_5CX_Desc_5', 'Az oldal tetején jelöld be a "Fejlesztői mód" opciót. '), _defineProperty(_hu$data, 'HELP_5CX_Desc_6', 'Kattints a "Kicsomagolt bővítmények betöltése..." gombra. '), _defineProperty(_hu$data, 'HELP_5CX_Desc_7', 'Keresd meg az előző lépésekben letöltött és már kicsomagolt mappát. Klikelj az "OK"-ra. '), _defineProperty(_hu$data, 'HELP_5CX_Desc_8', 'A bővítmény meg kell jelenjen a többi bővítmény közt és a Chrome menüben. '), _defineProperty(_hu$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_hu$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_hu$data, 'HELP_7_Desc_1', 'Navigate to the "Ether & Tokenek küldése" page. '), _defineProperty(_hu$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_hu$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_hu$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_hu$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_hu$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_hu$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_hu$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_hu$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_hu$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_hu$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_hu$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_hu$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_hu$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_hu$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_hu$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_hu$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_hu$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_hu$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_hu$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_hu$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_hu$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_hu$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_hu$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_hu$data, 'HELP_9_Title', '9) Is the "Ether & Tokenek küldése" page offline? '), _defineProperty(_hu$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_hu$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_hu$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_hu$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_hu$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_hu$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_hu$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_hu$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_hu$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_hu$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_hu$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_hu$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_hu$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_hu$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_hu$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_hu$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_hu$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_hu$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_hu$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_hu$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_hu$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_hu$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_hu$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_hu$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_hu$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_hu$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_hu$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_hu$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_hu$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_hu$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_hu$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_hu$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_hu$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_hu$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_hu$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_hu$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_hu$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_hu$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_hu$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_hu$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_hu$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_hu$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_hu$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_hu$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_hu$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_hu$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_hu$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_hu$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_hu$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_hu$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_hu$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_hu$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_hu$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_hu$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_hu$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_hu$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_hu$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_hu$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_hu$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_hu$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_hu$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_hu$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_hu$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_hu$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_hu$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_hu$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_hu$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_hu$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_hu$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_hu$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_hu$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_hu$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_hu$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_hu$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_hu$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_hu$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_hu$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_hu$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_hu$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _hu$data);
module.exports = hu;
},{}],116:[function(require,module,exports){
// Indonesian
'use strict';
var _id$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var id = function id() {};
id.code = 'id';
id.data = (_id$data = {
GEN_Help_0: 'Sudah pernah punya/membuat dompet sebelumnya?',
GEN_Help_MetaMask: 'Sangat mudah! Kunci tetap berada di MetaMask, bukan di situs phishing! Cobalah sekarang juga.',
GEN_Warning_1: '**Jangan sampai hilang!** Tidak dapat dikembalikan jika hilang.',
GEN_Warning_2: '**Jangan berbagi!** Dana Anda akan dicuri jika Anda menggunakan file ini di situs berbahaya/phishing.',
GEN_Warning_3: '**Buat backup!** Amankan seakan nilainya jutaan dolar, yang mungkin akan tercapai satu hari nanti.',
GAS_Price_1: 'Tidak terlalu cepat',
GAS_Price_2: 'Cepat',
GAS_Price_3: 'Cepat AF',
CONTRACT_Helper_1: 'Mohon ganti alamat ke alamat Multisig Contract Anda sendiri.',
CONTRACT_Warning_1: 'Anda akan **menyebarkan kontrak**.',
CONTRACT_Warning_2: 'Ini akan disebarkan pada jaringan berikut:',
CONTRACT_Warning_3: 'Anda akan **menjalankan sebuah fungsi dalam kontrak**.',
SEND_Helper_Contract: 'Dalam banyak situasi, biarkan ini tetap 0.',
SEND_ViewOnly: 'Anda tidak bisa mengirim hanya dengan alamat Anda. Anda harus menggunakan salah satu opsi lain untuk membuka dompet Anda agar bisa mengirim.',
SEND_LoadTokens: 'Unggah Token',
SEND_CustomAddrMsg: 'Pesan tentang',
SWAP_Warning_1: 'PERINGATAN! Anda tidak memiliki cukup dana untuk menyelesaikan swap ini.',
SWAP_Warning_2: 'Tambahkan banyak dana ke dompet Anda atau pakai dompet lainnya.',
X_Advanced: 'Untuk pengguna tingkat lanjut.',
X_HelpfulLinks: 'Tautan & FAQs yang bermanfaat',
X_HelpfulLinks_1: 'Cara Mengakses Dompet Anda',
X_HelpfulLinks_2: 'Saya kehilangan Kunci Privat saya',
X_HelpfulLinks_3: 'Kunci Privat saya membuka alamat yang berbeda',
X_HelpfulLinks_4: 'Migrasi ke/dari MyEtherWallet',
X_Network: 'Network', // alias "node" atau "chain" - digunakan di dropdown di header
X_Network_Custom: 'Tambahkan Custom Network / Node',
DOMAIN_Buy: 'Beli domain',
DOMAIN_BuyItNow: 'Harga untuk langsung membeli domain tersebut:',
DOMAIN_bid: 'Penawaran untuk domain tersebut',
DOMAIN_bid_0: 'Anda saat ini memenangkan lelang ini dengan tawaran tertinggi. Anda bisa menawar lebih tinggi jika mau, tapi akan menunda penutupan lelang selama 24 jam.',
DOMAIN_bid_1: 'Nilai Penawaran setidaknya',
DOMAIN_bid_2: 'pada domain tersebut.',
DOMAIN_bid_3: 'Anda akan memenangkan domain tersebut jika tidak ada tawaran yang lebih tinggi yang ditempatkan dalam 24 jam ke depan.',
DOMAIN_bid_4: 'Harap diperhatikan bahwa domain tersebut memiliki nilai terkunci sebesar',
DOMAIN_bid_5: 'Sebagai bagian dari proses penjualan, Anda akan menerima akta dengan nilai ini namun tidak dapat mengklaimnya kecuali jika Anda melepaskan nama tersebut.',
DOMAIN_Finish_1: 'Tidak terkait dengan lelang tersebut',
DOMAIN_Finish_2: 'Alamat ini bukan pemenang maupun penjual dari proses lelang.',
DOMAIN_Finish_3: 'Selesaikan Lelang ini',
DOMAIN_Finish_4: 'Selesaikan proses Lelang untuk mengalokasikan domain tersebut kepada pihak pemenang dan dana ke pihak penjual.',
DOMAIN_Finish_5: 'Klik hash TX Anda untuk melihat apakah Anda berhasil mentransfer domain tersebut ke DomainSale.',
DOMAIN_offer_4: 'Penawaran untuk Dijual:',
DOMAIN_offer_5: 'Tetapkan salah satu dari kedua harga di bawah ini untuk menawarkan domain Anda untuk dijual. Ingat bahwa dana yang telah Anda masukkan dalam akta domain akan masuk ke pembeli dan 10% dari dana saat terjual ke pihak yang mereferensikan.',
DOMAIN_offer_7: 'Ubah Penawaran Anda untuk:',
DOMAIN_offer_8: 'Ubah salah satu dari kedua harga di bawah untuk mengubah penawaran penjualan domain Anda. Ingat bahwa dana yang telah Anda masukkan dalam akta domain akan masuk ke pembeli dan 10% dari dana saat terjual ke pihak yang mereferensikan..',
DOMAIN_offer_9: 'Harga Beli',
DOMAIN_offer_10: 'Ini adalah harga dimana seseorang bisa langsung membeli domainnya. 0 berarti domain tidak bisa langsung dibeli.',
DOMAIN_offer_11: 'Ini adalah harga di mana seseorang dapat memulai pelelangan untuk domain tersebut. 0 berarti bahwa domain tidak akan tersedia untuk pelelangan.',
DOMAIN_offer_12: 'Tawarkan domain Anda',
DOMAIN_offer_13: 'Ubah penjualan Anda',
DOMAIN_offer_14: 'Batalkan penjualan Anda',
DOMAIN_offer_15: 'Anda dapat membatalkan penjualan domain Anda, yang akan mengembalikan domain tersebut kepada Anda tanpa biaya apapun. Ini hanya tersedia sebelum ada tawaran yang masuk untuk domain tersebut.',
ENS_WrongAddress_1: 'Dompet yang Anda buka bukan pemilik nama tersebut ',
ENS_WrongAddress_2: 'Tolong buka dompet dengan alamat ',
ENS_Finalize: 'Selesaikan',
ENS_Finalize_content: 'Menyelesaikan nama ini akan memberikan nama ENS kepada pemenang lelang. Selisih antara tawaran mereka dan tawaran tertinggi berikutnya akan dikembalikan kepada Pemenang. Jika Anda adalah satu-satunya peserta lelang, akan mendapat pengembalian penuh dipotong 0,01 ETH. Setiap non-pemenang juga akan dikembalikan dana-nya.',
ENS_Finalize_content_1: 'Anda akan menyelesaikan proses lelang & mengklaim nama tersebut:',
ENS_Helper_1: 'Prosesnya seperti apa?',
ENS_Helper_2: '1) Persiapan',
ENS_Helper_3: 'Tentukan akun mana yang akan menjadi pemilik nama & pastikan Anda memiliki beberapa backup dari akun itu.',
ENS_Helper_4: 'Tentukan jumlah maksimum ETH yang bersedia Anda bayar untuk nama tersebut (<u>Bid Amount</u> Anda). Pastikan akun memiliki cukup dana untuk membayar tawaran Anda + 0.01 ETH untuk gas.',
ENS_Helper_5: '2) Mulai Lelang / Ajukan Penawaran',
ENS_Helper_6: 'Tenggang waktu lelang adalah 3 hari (72 jam).',
ENS_Helper_7: 'Anda akan mengisi <u>nama</u>, <u>Angka Penawaran yang sebenarnya</u>, <u>Penawaran yang disamarkan</u>, yang diamankan menggunakan <u>Phrase rahasia</u>.',
ENS_Helper_8: 'Ini menempatkan tawaran Anda, tapi informasi ini dirahasiakan sampai Anda mengungkapkannya.',
ENS_Helper_9: '3) Ungkapkan tawaran Anda',
ENS_Helper_10: '**Jika Anda tidak mengungkapkan tawaran Anda, Anda dana Anda tidak akan dikembalikan.**',
ENS_Helper_11: 'Tenggang waktu Pengungkapan adalah 2 hari (48 jam).',
ENS_Helper_12: 'Anda akan membuka kunci akun Anda, masukkan <u>Angka Penawaran</u>, dan <u>Phrase rahasia</u>.',
ENS_Helper_13: 'Jika dua pihak menawar jumlah yang sama persis, tawaran pertama yang diungkap akan menang.',
ENS_Helper_14: '4)Selesaikan Lelang',
ENS_Helper_15: 'Setelah lelang selesai (setelah 5 hari / 120 jam), pemenang harus menyelesaikan lelang untuk mengklaim nama baru mereka.',
ENS_Helper_16: 'Pemenang akan mendapat pengembalian selisih antara tawaran mereka dan tawaran tertinggi berikutnya. Jika Anda adalah satu-satunya penawar, akan mendapat pengembalian penuh dipotong 0,01 ETH.',
ENS_Helper_17: 'Informasi lebih lanjut',
ENS_Helper_18: 'Pelelangan untuk registrar ini memakai metode lelang buta, seperti dijelaskan di',
ENS_Helper_19: 'Pada dasarnya, tidak ada yang bisa melihat *apapun* selama pelelangan.',
ENS_Helper_20: 'ENS: Baca dokumennya',
ENS_Helper_21: 'Mengumumkan Tanggal Peluncuran kembali Ethereum Name Service!',
ENS_Helper_22: 'Dasar pengetahuan: ENS',
ENS_Helper_23: 'Debugging [BAD INSTRUCTION] Menunjukkan',
ENS_Helper_24: 'Silakan coba petunjuk di atas sebelum meminta dukungan kami untuk permasalahan reveal karena kami sedang kebanjiran permohonan bantuan. Kami mohon maaf. :(',
EOS_01: '**Buat pasangan Kunci EOS**',
EOS_02: '**Daftarka / Petakan Kunci EOS Anda**',
EOS_03: 'Pilih `register`',
EOS_04: 'Masukkan **EKunci Publik EOS/OS Public Key** <--- PERHATIKAN! KUNCI PUBLIK EOS/EOS PUBLIC KEY!',
EOS_05: 'Danai kontrak EOS di Halaman Pengiriman/Send',
EOS_06: 'Buka halaman Send Ether & Tokens',
EOS_07: 'Buka dompet yang sama dengan yang sedang Anda buka di sini.',
EOS_08: 'Kirim Jumlah yang ingin Anda Kontribusikan ke `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Klaim Token EOS',
EOS_10: 'Pilih `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Selamat datang di MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Sisihkan waktu untuk memahami informasi berikut, demi keamanan Anda. 🙏',
ONBOARD_welcome_content__2: 'Dana Anda akan bisa dicuri jika Anda tidak mengindahkan peringatan ini.',
ONBOARD_welcome_content__3: 'Kami tahu laman informasi yang harus di klik ini mengganggu. Kami mohon maaf sebelumnya.',
ONBOARD_welcome_content__4: 'Apa itu MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet adalah antarmuka sisi klien berbasis open source yang gratis.',
ONBOARD_welcome_content__6: 'MEW memungkinkan Anda untuk berinteraksi langsung dengan blockchain sambil tetap memegang kendali penuh atas kunci &amp; dana Anda.',
ONBOARD_welcome_content__7: '**Anda** dan **hanya Anda** sendiri-lah yang bertanggung jawab atas keamanan Anda.',
ONBOARD_welcome_content__8: 'Kami tidak dapat memulihkan dana Anda atau membekukan akun Anda jika Anda mengunjungi situs phishing atau kehilangan Kunci Privat Anda.',
ONBOARD_bank_title: 'MyEtherWallet bukan Bank',
ONBOARD_bank_content__1: 'Saat Anda membuka rekening dengan bank atau bursa, mereka membuat akun untuk Anda di sistem mereka.',
ONBOARD_bank_content__2: 'Bank mencatat semua informasi termasuk data diri, password akun, saldo, transaksi dan pada akhirnya uang Anda.',
ONBOARD_bank_content__3: 'Bank menarik biaya untuk mengelola akun Anda dan memberikan layanan, termasuk mengembalikan dana saat kartu Anda dicuri.',
ONBOARD_bank_content__4: 'Bank mengizinkan Anda untuk menulis cek atau memakai kartu debit Anda untuk mengirim uang, melihat saldo Anda secara online, mengganti password Anda, dan mendapatkan kartu debit baru jika hilang.',
ONBOARD_bank_content__5: 'Anda memiliki akun * dengan bank atau bursa * dan mereka memutuskan berapa banyak uang yang dapat Anda kirim, di mana Anda dapat mengirimkannya, dan berapa lama dalam menahan setoran yang mencurigakan. Semua dengan biaya.',
ONBOARD_welcome_title__alt: 'Pengantar',
ONBOARD_interface_title: 'MyEtherWallet adalah sebuah antarmuka',
ONBOARD_interface_content__1: 'Saat membuat akun di MyEtherWallet, Anda menghasilkan kumpulan nomor kriptografi: Kunci Privat dan kunci publik (alamat) Anda.',
ONBOARD_interface_content__2: 'Penanganan kunci Anda terjadi sepenuhnya di komputer Anda, di dalam browser Anda.',
ONBOARD_interface_content__3: 'Kami tidak pernah mengirimkan, menerima atau menyimpan Kunci Privat, password, atau informasi akun lainnya.',
ONBOARD_interface_content__4: 'Kami tidak mengenakan biaya transaksi.',
ONBOARD_interface_content__5: 'Anda hanya menggunakan **antarmuka** untuk berinteraksi **langsung dengan blockchain**.',
ONBOARD_interface_content__6: 'Jika Anda mengirim *kunci publik (alamat)* kepada seseorang, mereka dapat mengirimkan ETH atau token. 👍',
ONBOARD_interface_content__7: 'Jika Anda mengirim *Kunci Privat* kepada seseorang, mereka menjadi memiliki kontrol penuh atas akun Anda. 👎',
ONBOARD_bank_title__alt: 'MEW bukan sebuah Bank',
ONBOARD_blockchain_title__alt: 'Apa itu Blockchain?',
ONBOARD_blockchain_skip: 'Saya sudah tahu apa itu blockchain...',
ONBOARD_blockchain_title: 'Tunggu, apa sih Blockchain?',
ONBOARD_blockchain_content__1: 'Blockchain itu seperti spreadsheet besar yang terdesentralisasi dan global.',
ONBOARD_blockchain_content__2: 'Blockchain mencatat siapa yang mengirimkan berapa banyak koin kepada siapa, dan berapa saldo setiap akunnya?.',
ONBOARD_blockchain_content__3: 'Catatan tersebut disimpan dan dikelola oleh ribuan orang (penambang) di seluruh dunia yang memiliki komputer khusus.',
ONBOARD_blockchain_content__4: 'Blok di blockchain berisi catatan dari semua transaksi individual yang dikirim dari MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, dan lain-lainnya..',
ONBOARD_blockchain_content__5: 'Saat Anda melihat saldo di MyEtherWallet.com atau melihat transaksi Anda di [etherscan.io](https://etherscan.io), Anda melihat data di blockchain, bukan di sistem privat Anda.',
ONBOARD_blockchain_content__6: 'Sekali lagi: **kami bukan sebuah bank**.',
ONBOARD_interface_title__alt: 'MEW adalah sebuah antarmuka',
ONBOARD_why_title__alt: 'Lalu...apa pentingnya?',
ONBOARD_why_title: 'Mengapa Anda membuat saya harus membaca semua ini??',
ONBOARD_why_content__1: 'Karena kami ingin Anda mengerti bahwa kami **tidak dapat**...',
ONBOARD_why_content__2: 'Mengakses akun Anda atau mengirim dana Anda atas nama Anda.',
ONBOARD_why_content__3: 'Memulihkan atau mengganti Kunci Privat Anda.',
ONBOARD_why_content__4: 'Memulihkan atau mengganti password Anda.',
ONBOARD_why_content__5: 'Membalikkan, membatalkan, atau mengembalikan transaksi.',
ONBOARD_why_content__6: 'Membekukan akun.',
ONBOARD_why_content__7: '**Anda** dan **hanya Anda** sendiri-lah yang bertanggung jawab atas keamanan Anda.',
ONBOARD_why_content__8: 'Jagalah selalu agar Kunci Privat dan password Anda tetap aman. Kunci Privat Anda terkadang disebut juga sebagai frase mnemonik, file keystore, file UTC, file JSON maupun file dompet.',
ONBOARD_why_content__9: 'Jika Anda kehilangan Kunci Privat atau password Anda, tidak ada yang bisa mengembalikannya.',
ONBOARD_why_content__10: 'Jika Anda memasukkan Kunci Privat Anda di situs phishing, **semua dana Anda akan dicuri**.'
}, _defineProperty(_id$data, 'ONBOARD_blockchain_title__alt', 'Apa itu Blockchain?'), _defineProperty(_id$data, 'ONBOARD_point_title__alt', 'Jadi apa gunanya MEW kalau begitu?'), _defineProperty(_id$data, 'ONBOARD_whymew_title', 'Jika MyEtherWallet tidak dapat melakukan semua hal tersebut, lalu apa gunanya?'), _defineProperty(_id$data, 'ONBOARD_whymew_content__1', 'Karena itulah esensi desentralisasi dan blockchain.'), _defineProperty(_id$data, 'ONBOARD_whymew_content__2', 'Anda tidak harus bergantung pada bank, pemerintah, atau orang lain saat Anda ingin memindahkan dana Anda.'), _defineProperty(_id$data, 'ONBOARD_whymew_content__3', 'Anda tidak harus bergantung pada keamanan bursa atau bank agar dana Anda tetap aman.'), _defineProperty(_id$data, 'ONBOARD_whymew_content__4', 'Jika Anda tidak menganggap hal-hal ini berharga, tanyakan pada diri Anda mengapa Anda menganggap blockchain dan cryptocurrencies sangat berharga. 😉'), _defineProperty(_id$data, 'ONBOARD_whymew_content__5', 'Jika Anda tidak berkenan, Anda bisa menggunakan [Coinbase](https://www.coinbase.com/) atau [Blockchain.info](https://blockchain.info/wallet/#/signup). Mereka memiliki akun yang lebih mirip dengan yang biasa Anda temui yaitu menggunakan username & password.'), _defineProperty(_id$data, 'ONBOARD_whymew_content__6', 'Jika Anda takut tapi ingin menggunakan MEW, [gunakan dompet hardware](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! Perangkat ini akan menjaga kunci Anda tetap aman.'), _defineProperty(_id$data, 'ONBOARD_why_title__alt', 'Tapi...kenapa?'), _defineProperty(_id$data, 'ONBOARD_secure_title', 'Cara Melindungi Diri & Dana Anda'), _defineProperty(_id$data, 'ONBOARD_secure_1_title', 'Cara Melindungi Diri Anda dari Phisher'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__1', 'Phisher biasanya mengirim Anda pesan dengan link ke situs web yang sekilas terlihat seperti MyEtherWallet, EtherDelta, Paypal, atau bank Anda, namun bukan situs web yang asli. Mereka mencuri informasi Anda dan kemudian mencuri uang Anda.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__2', 'Pasang [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) atau [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) atau [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) atau [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) untuk memblokir situs web jahat.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__3', 'Selalu periksa URLnya: `https://www.myetherwallet.com`.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__4', 'Pastikan bar URL menunjukkan `MYETHERWALLET LLC [US]` dalam warna hijau.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__5', 'Jangan mempercayai pesan atau tautan yang dikirim kepada Anda secara acak melalui email, Slack, Reddit, Twitter, dll.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__6', 'Selalu kunjungi situs secara langsung sebelum memasukkan informasi. Jangan memasukkan informasi setelah mengklik link dari pesan atau email.'), _defineProperty(_id$data, 'ONBOARD_secure_1_content__7', '[Pasang AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) dan jangan klik iklan dari search engine (misalnya Google).'), _defineProperty(_id$data, 'ONBOARD_point_title__alt_2', 'Apa gunanya?'), _defineProperty(_id$data, 'ONBOARD_secure_2_title', 'Cara Melindungi Diri dari Penipuan'), _defineProperty(_id$data, 'ONBOARD_secure_2_content__1', 'Banyak orang akan berusaha membuat Anda memberi mereka uang tanpa memberikan imbalan apa-apa.'), _defineProperty(_id$data, 'ONBOARD_secure_2_content__2', 'Jika terlalu bagus untuk menjadi kenyataan, mungkin memang begitu.'), _defineProperty(_id$data, 'ONBOARD_secure_2_content__3', 'Teliti dengan baik sebelum mengirim uang ke seseorang atau sebuah kegiatan. Cari informasi dari berbagai situs web dan forum. Waspadalah!!'), _defineProperty(_id$data, 'ONBOARD_secure_2_content__4', 'Ajukan pertanyaan saat Anda tidak mengerti tentang sesuatu atau merasa ada yang tidak benar.'), _defineProperty(_id$data, 'ONBOARD_secure_2_content__5', 'Jangan biarkan rasa takut, FUD, atau FOMO mengalahkan akal sehat Anda. Jika ada sesuatu yang sangat mendesak, tanyakan pada diri sendiri "mengapa?". Ini mungkin disengaja untuk menciptakan FOMO atau mencegah Anda membuat keputusan dengan teliti.'), _defineProperty(_id$data, 'ONBOARD_secure_3_title__alt', 'Kita ganyang Phisher'), _defineProperty(_id$data, 'ONBOARD_secure_3_title', 'Cara Melindungi Diri dari Kerugian'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__1', 'Jika sampai kehilangan, Kunci Privat atau password Anda akan hilang selamanya. Jagalah jangan sampai hilang.'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__2', 'Buat cadangan Kunci Privat dan password Anda. JANGAN hanya menyimpannya di komputer Anda. Cetaklah di selembar kertas atau simpan ke drive USB.'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__3', 'Simpan kertas ini atau USB drive di lokasi fisik yang berbeda. Cadangan tidak berguna jika dihancurkan oleh api atau banjir bersama laptop Anda.'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__4', 'Jangan simpan Kunci Privat Anda di Dropbox, Google Drive, atau penyimpanan awan lainnya. Jika akun itu disusupi, dana Anda akan dicuri.'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__5', 'Jika Anda memiliki kriptocurrency senilai lebih dari gaji 1 minggu Anda, pakailah dompet hardware. Tidak ada alasan untuk tidak memakainya. Biaya yang dikeluarkan sangat sepadan. Percaya saya.'), _defineProperty(_id$data, 'ONBOARD_secure_3_content__6', '[Lihat lebih banyak lagi tentang Tips Keamanan!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_id$data, 'ONBOARD_secure_2_title__alt_2', 'Berantas Penipuan'), _defineProperty(_id$data, 'ONBOARD_final_title__alt', 'Tinggal Satu lagi klik sebelum selesai! 🤘'), _defineProperty(_id$data, 'ONBOARD_final_title', 'Baiklah, saya selesai menguliahi Anda!'), _defineProperty(_id$data, 'ONBOARD_final_subtitle', 'Maaf telah memaksa Anda semua informasi tadi. Silahkan melanjutkan melalui tautan di bawah ini!'), _defineProperty(_id$data, 'ONBOARD_final_content__1', 'Buat dompet'), _defineProperty(_id$data, 'ONBOARD_final_content__2', 'Dapatkan dompet hardware'), _defineProperty(_id$data, 'ONBOARD_final_content__3', 'Cara Setup MEW + MetaMask'), _defineProperty(_id$data, 'ONBOARD_final_content__4', 'Cara Menjalankan MEW Offline / Lokal'), _defineProperty(_id$data, 'ONBOARD_final_content__5', 'Cara Mengirim memakai dompet hardware Ledger'), _defineProperty(_id$data, 'ONBOARD_final_content__6', 'Cara Mengirim memakai dompet hardware TREZOR'), _defineProperty(_id$data, 'ONBOARD_final_content__7', 'Cara Mengirim memakai MetaMask'), _defineProperty(_id$data, 'ONBOARD_final_content__8', 'Pelajari lebih lanjut atau hubungi kami'), _defineProperty(_id$data, 'ONBOARD_final_content__9', 'Ya ampun, saya sudah tidak sabar, tolong biarkan saya bertransaksi.'), _defineProperty(_id$data, 'ONBOARD_resume', 'Sepertinya Anda belum selesai membaca semua slide di kunjungan sebelumnya. ProTip: bacalah semua slide sampai selesai 😉'), _defineProperty(_id$data, 'HELP_2a_Title', 'Bagaimana cara menyimpan/membackup dompet saya? '), _defineProperty(_id$data, 'x_CancelReplaceTx', 'Batalkan atau Ganti Transaksi'), _defineProperty(_id$data, 'x_CancelTx', 'Batalkan Transaksi'), _defineProperty(_id$data, 'x_PasswordDesc', 'Password ini * meng-enkripsi * Kunci Privat Anda. Ini bukan berfungsi sebagai "seed" untuk membuat "keys". **Anda akan memerlukan password ini + Kunci Privat Anda untuk membuka dompet Anda.**'), _defineProperty(_id$data, 'x_ReadMore', 'Lebih lanjut'), _defineProperty(_id$data, 'x_ReplaceTx', 'Ganti Transaksi'), _defineProperty(_id$data, 'x_TransHash', 'Hash Transaksi'), _defineProperty(_id$data, 'x_TXFee', 'Biaya TX'), _defineProperty(_id$data, 'x_TxHash', 'Hash TX'), _defineProperty(_id$data, 'NAV_CheckTxStatus', 'Check Status TX'), _defineProperty(_id$data, 'NAV_TxStatus', 'Status TX'), _defineProperty(_id$data, 'tx_Details', 'Detail Transaksi'), _defineProperty(_id$data, 'tx_Summary', 'Saat volume sedang tinggi (misalnya saat ICOs) transaksi dapat tertunda selama berjam-jam, bahkan hari. Fitur ini memberikan kemampuan untuk menemukan dan membatalkan / mengganti TX. ** Ini bukanlah hal yang pada umumnya dapat dilakukan. Jangan bergantung pada fitur ini & fitur ini hanya akan bekerja saat TX pool penuh. [Penjelasan tentang firur ini bisa dibaca di sini.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_id$data, 'tx_notFound', 'Transaksi tidak ditemukan'), _defineProperty(_id$data, 'tx_notFound_1', 'TX ini tidak dapat ditemukan di TX Pool dari node yang anda pakai.'), _defineProperty(_id$data, 'tx_notFound_2', 'Jika transaksi baru saja terkirim, tunggu 15 detik dan tekan tombol "Check TX Status" lagi. '), _defineProperty(_id$data, 'tx_notFound_3', 'Kemungkinan masih di TX pool dari node lain, menunggu untuk ditambang (mined).'), _defineProperty(_id$data, 'tx_notFound_4', 'Gunakan dropdown di kanan atas & pilih node ETH lainnya (e.g. `ETH (Etherscan.io)` atau `ETH (Infura.io)` atau `ETH (MyEtherWallet)`) dan check kembali.'), _defineProperty(_id$data, 'tx_foundInPending', 'Transaksi yang tertunda ditemukan'), _defineProperty(_id$data, 'tx_foundInPending_1', 'Transaksi Anda berlokasi di TX pool dari node yang Anda pakai. '), _defineProperty(_id$data, 'tx_foundInPending_2', 'Saat ini statusnya tertunda (menunggu untuk ditamnbang (mined). '), _defineProperty(_id$data, 'tx_foundInPending_3', 'Ada kemungkinan Anda dapat membatalkan atau mengganti transaksi ini. Buka dompet Anda di bawah ini.'), _defineProperty(_id$data, 'tx_FoundOnChain', 'Transaksi ditemukan'), _defineProperty(_id$data, 'tx_FoundOnChain_1', 'Transaksi Anda telah berhasil ditambang (mined) dan sudah masuk di blockchain.'), _defineProperty(_id$data, 'tx_FoundOnChain_2', '**Jika muncul Error `( ! )`, atau `BAD INSTRUCTION` atau `OUT OF GAS` berwarna merah**, artinya transaksi tidak berhasil terkirim. Transaksi ini tidak dapat dibatalkan ataupun diganti. Yang dapat Anda lakukan adalah mengirim transaksi baru. Jika muncul Error "Out of Gas" error, lipat dua-kan jumlah gas limit dari yang dipakai sebelumnya.'), _defineProperty(_id$data, 'tx_FoundOnChain_3', '**Jika tidak ada Error, artinya transaksi Anda berhasil terkirim.** ETH atau Token akan masuk ke alamat yang dituju. Jika ETH atau Token tidak muncul di alamat dompet / exchange account yang dituju, dan sudah lebih dari 24 jam sejak pengiriman, segera [hubungi penerima kiriman](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Lampirkan *link* dari transaksi Anda dan mintalah bantuan untuk memeriksa apa yang terjadi.'), _defineProperty(_id$data, 'GEN_Help_1', 'Memakai'), _defineProperty(_id$data, 'GEN_Help_2', 'untuk mengakses account Anda.'), _defineProperty(_id$data, 'GEN_Help_3', 'Device Anda * adalah * dompet Anda.'), _defineProperty(_id$data, 'GEN_Help_4', 'Panduan & FAQ'), _defineProperty(_id$data, 'GEN_Help_5', 'Bagaimana membuat Dompet'), _defineProperty(_id$data, 'GEN_Help_6', 'Mulai'), _defineProperty(_id$data, 'GEN_Help_7', 'Jaga keamanan-nya · Buat backup · Jangan berikan kepada siapapun · Jangan sampai hilang · Kehilangan bersifat permanen.'), _defineProperty(_id$data, 'GEN_Help_8', 'Tidak mengunduh file? '), _defineProperty(_id$data, 'GEN_Help_9', 'Coba memakai Google Chrome '), _defineProperty(_id$data, 'GEN_Help_10', 'Klik kanan dan "Save file as". Nama file: '), _defineProperty(_id$data, 'GEN_Help_11', 'Jangan buka file ini di komouter Anda '), _defineProperty(_id$data, 'GEN_Help_12', 'Pakailah untuk membuka dompet Anda melalui MyEtherWallet (atau Mist, Geth, Parity maupun perangkat lunak dompet lainnya.) '), _defineProperty(_id$data, 'GEN_Help_13', 'Cara membuat Back Up dari Keystore File Anda '), _defineProperty(_id$data, 'GEN_Help_14', 'Format apakah yang bermacam-macam ini? '), _defineProperty(_id$data, 'GEN_Help_15', 'Mencegah kehilangan dan pencurian dana Anda.'), _defineProperty(_id$data, 'GEN_Help_16', 'Format apakah yang bermacam-macam ini?'), _defineProperty(_id$data, 'GEN_Help_17', 'Kenapa saya harus?'), _defineProperty(_id$data, 'GEN_Help_18', 'Untuk memiliki backup sekunder.'), _defineProperty(_id$data, 'GEN_Help_19', 'Pada saat Anda lupa password.'), _defineProperty(_id$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_id$data, 'GET_ConfButton', 'Saya paham. Lanjutkan.'), _defineProperty(_id$data, 'GEN_Label_5', 'Simpan Kunci Privat Anda. '), _defineProperty(_id$data, 'GEN_Unlock', 'Buka kunci dompet Anda untuk melihat alamat Anda'), _defineProperty(_id$data, 'GAS_PRICE_Desc', 'Harga Gas Price adalah jumlah yang Anda bayar per unit gas. `Biaya TX = harga gas * gas limit` & dibayarkan kepada miners untuk memasukkan TX Anda ke dalam block. Makin tinggi harga gas = transaksi makin cepat, tapi makin mahal. Default-nya `41 GWEI`.'), _defineProperty(_id$data, 'GAS_LIMIT_Desc', 'Batas Gas (Gas limit) adalah jumlah gas untuk dikirim bersama TX Anda. `Biaya TX = harga gas * gas limit` & dibayarkan kepada miners untuk memasukkan TX Anda ke dalam block. Menaikkan angka ini tidak mempercepat TX Anda untuk ditambang. Pengiriman ETH = `21000`. Pengiriman Token = ~`200000`.'), _defineProperty(_id$data, 'NONCE_Desc', 'Nonce adalah nomor transaksi yang dikirimn dari sebuah alamat. Ini untuk menjamin agar pengiriman terlaksana secara runtut dan tidak ada yang dilakukan lebih dari sekali.'), _defineProperty(_id$data, 'TXFEE_Desc', 'Biaya TX Fee dibayarkan kepada miners untuk memasukkan TX Anda ke dalam block. Jumlahnya = `gas limit` * `gas price`. [Anda dapat mengkonversi GWEI -> ETH](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_id$data, 'NAV_AddWallet', 'Tambahkan Dompet '), _defineProperty(_id$data, 'NAV_BulkGenerate', 'Pembuatan Multiple Dompet '), _defineProperty(_id$data, 'NAV_Contact', 'Kontak '), _defineProperty(_id$data, 'NAV_Contracts', 'Kontrak '), _defineProperty(_id$data, 'NAV_DeployContract', 'Buat Kontract '), _defineProperty(_id$data, 'NAV_ENS', 'ENS'), _defineProperty(_id$data, 'NAV_GenerateWallet_alt', 'Buat Dompet '), _defineProperty(_id$data, 'NAV_GenerateWallet', 'Buat Dompet '), _defineProperty(_id$data, 'NAV_Help', 'Bantuan '), _defineProperty(_id$data, 'NAV_InteractContract', 'Interaksi dengan Kontrak '), _defineProperty(_id$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_id$data, 'NAV_MyWallets', 'Dompet Saya '), _defineProperty(_id$data, 'NAV_Offline', 'Kirim Offline '), _defineProperty(_id$data, 'NAV_SendEther', 'Kirim Ether dan Token '), _defineProperty(_id$data, 'NAV_SendTokens', 'Kirim Token '), _defineProperty(_id$data, 'NAV_SignMsg', 'Penandaan Pesan '), _defineProperty(_id$data, 'NAV_Swap', 'Penukaran '), _defineProperty(_id$data, 'NAV_ViewWallet', 'Lihat Info Dompet '), _defineProperty(_id$data, 'NAV_YourWallets', 'Dompet Anda '), _defineProperty(_id$data, 'x_Access', 'Akses '), _defineProperty(_id$data, 'x_AddessDesc', 'Address Anda dikenal juga sebagai `Account #` atau `Public Key` Anda. Address inilah yang diberikan kepada pihak lain agar mereka bisa mengirim Ether atau Token. Pilihlah icon alamat berwarna untuk memudahkan identifikasi. Pastikan Address ini sama persis dengan yang tertulis di Dompet Kertas Anda maupun saat dipakai untuk keperluan lainnya. '), _defineProperty(_id$data, 'x_Address', 'Alamat Anda '), _defineProperty(_id$data, 'x_Cancel', 'Batal '), _defineProperty(_id$data, 'x_CSV', 'File CSV (tidak ter-enkripsi) '), _defineProperty(_id$data, 'x_Download', 'Unduh '), _defineProperty(_id$data, 'x_Json', 'File JSON (tidak ter-enkripsi) '), _defineProperty(_id$data, 'x_JsonDesc', 'Ini adalah Kunci Privat Anda dalam format JSON yang tidak ter-enkripsi. Tidak diperlukan password dan siapapun yang memiliki JSON Anda dapat mengakses dompet dan Ether Anda tanpa password. '), _defineProperty(_id$data, 'x_Keystore', 'File Keystore (UTC / JSON · Format yang direkomendasikan · Ter-enkripsi) '), _defineProperty(_id$data, 'x_Keystore2', 'File Keystore (UTC / JSON) '), _defineProperty(_id$data, 'x_KeystoreDesc', 'File Keystore ini sesuai dengan format yang dipakai Mist sehingga memudahkan untuk diimpor di kemudian hari. File ini yang disarankan untuk di unduh dan di backup. '), _defineProperty(_id$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_id$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_id$data, 'x_Mnemonic', 'Frase Mnemonic '), _defineProperty(_id$data, 'x_ParityPhrase', 'Frase Parity '), _defineProperty(_id$data, 'x_Password', 'Password '), _defineProperty(_id$data, 'x_Print', 'Print Dompet Kertas '), _defineProperty(_id$data, 'x_PrintDesc', 'ProTip: klik print dan simpan sebagai PDF jika Anda tidak memiliki printer! '), _defineProperty(_id$data, 'x_PrintShort', 'Print '), _defineProperty(_id$data, 'x_PrivKey', 'Kunci Privat (Tidak ter-enkripsi) '), _defineProperty(_id$data, 'x_PrivKey2', 'Kunci Privat '), _defineProperty(_id$data, 'x_PrivKeyDesc', 'Ini adalah versi text yang tidak ter-enkripsi dan tidak memerlukan password. Jika file yang tidak ter-enkripsi ini sampai didapatkan orang lain, mereka dapat mengakses dompet Anda tanpa password. Oleh karenanya, sangat direkomendasikan untuk selalu memakai versi yang ter-enkripsi. '), _defineProperty(_id$data, 'x_Save', 'Simpan '), _defineProperty(_id$data, 'x_TXT', 'File TXT file (Tidak ter-enkripsi) '), _defineProperty(_id$data, 'x_Wallet', 'Dompet '), _defineProperty(_id$data, 'MEW_Warning_1', 'Pastikan menggunakan URL yang benar sebelum mengakses Dompet Anda atau sebelum membuat dompet baru. Waspadai situs phishing! '), _defineProperty(_id$data, 'CX_Warning_1', 'Pastikan membuat **backup eksternal** dari semua dompet yang ada. Banyak hal bisa terjadi yang bisa membuat data di Chrome Extension hilang, termasuk saat menginstall maupun menguninstall extension ini. Extension ini hanya untuk memudahkan mengakses dompet Anda, **BUKAN** untuk membackup. '), _defineProperty(_id$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet '), _defineProperty(_id$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension '), _defineProperty(_id$data, 'FOOTER_1', 'Client-side tool open source berbasis javascript untuk membuat Dompet dan transaksi Ethereum. '), _defineProperty(_id$data, 'FOOTER_1b', 'Oleh '), _defineProperty(_id$data, 'FOOTER_2', 'Donasi Anda akan sangat dihargai: '), _defineProperty(_id$data, 'FOOTER_3', 'Pembuatan Dompet Client-side wallet oleh '), _defineProperty(_id$data, 'FOOTER_4', 'Disclaimer '), _defineProperty(_id$data, 'sidebar_AccountInfo', 'Informasi Akun '), _defineProperty(_id$data, 'sidebar_AccountAddr', 'Alamat Akun '), _defineProperty(_id$data, 'sidebar_AccountBal', 'Saldo Akun '), _defineProperty(_id$data, 'sidebar_TokenBal', 'Saldo Token '), _defineProperty(_id$data, 'sidebar_Equiv', 'Nilai Ekuivalent '), _defineProperty(_id$data, 'sidebar_TransHistory', 'Sejarah Transaksi '), _defineProperty(_id$data, 'sidebar_donation', 'MyEtherWallet dapat dipergunakan secara cuma-cuma berdasarkan prinsip open source dengan tetap menjaga privasi dan keamanan. Semakin banyak donasi yang kami terima, semakin banyak waktu yang kami dapat luangkan untuk membuat fitur-fitur baru dan mewujudkan usulan dan keinginan para penggunanya. Tim kami yang terdiri dari hanya dua orang sangat membutuhkan dukungan Anda untuk mewujudkan cita-cita kami dalam membuat dunia yang semakin baik '), _defineProperty(_id$data, 'sidebar_donate', 'Kirim Donasi '), _defineProperty(_id$data, 'sidebar_thanks', 'Terima Kasih!!! '), _defineProperty(_id$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_id$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_id$data, 'decrypt_Access', 'Pilihan cara mengakses dompet Anda? '), _defineProperty(_id$data, 'decrypt_Title', 'Pilih format Kunci Privat: '), _defineProperty(_id$data, 'decrypt_Select', 'Pilih dompet: '), _defineProperty(_id$data, 'ADD_Label_1', 'Pilihan cara membuat dompet '), _defineProperty(_id$data, 'ADD_Radio_1', 'Buat dompet baru '), _defineProperty(_id$data, 'ADD_Radio_2', 'Pilih file dompet (Keystore/JSON) '), _defineProperty(_id$data, 'ADD_Radio_2_alt', 'Pilih file dompet '), _defineProperty(_id$data, 'ADD_Radio_2_short', 'PILIH FILE DOMPET... '), _defineProperty(_id$data, 'ADD_Radio_3', 'Paste/Ketik Kunci Privat Anda '), _defineProperty(_id$data, 'ADD_Radio_4', 'Tambah akun untuk dilihat '), _defineProperty(_id$data, 'ADD_Radio_5', 'Paste/Ketik Mnemonic Anda '), _defineProperty(_id$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_id$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_id$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_id$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_id$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_id$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_id$data, 'ADD_Label_2', 'Buat Alias: '), _defineProperty(_id$data, 'ADD_Label_3', 'File Dompet anda ter-enkripsi. Masukkan password '), _defineProperty(_id$data, 'ADD_Label_4', 'Tambah akun untuk dilihat '), _defineProperty(_id$data, 'ADD_Warning_1', 'Akun untuk "dilihat" dapat ditambahkan tanpa menggunakan Kunci Privat. Namun berarti tidak ada akses ke dompet tersebut dan transfer Ether tidak bisa dilakukan. '), _defineProperty(_id$data, 'ADD_Label_5', 'Masukkan alamat '), _defineProperty(_id$data, 'ADD_Label_6', 'Unlock dompet '), _defineProperty(_id$data, 'ADD_Label_6_short', 'Unlock '), _defineProperty(_id$data, 'ADD_Label_7', 'Tambah Akun '), _defineProperty(_id$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_id$data, 'MNEM_1', 'Pilih alamat yang Anda inginkan untuk berinteraksi. '), _defineProperty(_id$data, 'MNEM_2', 'Satu frasa "HD mnemonic" dapat mengakses beberapa dompet / alamat. Pilih alamat yang Anda inginkan untuk dipakai. '), _defineProperty(_id$data, 'MNEM_more', 'Tampilkan Alamat berikutnya '), _defineProperty(_id$data, 'MNEM_prev', 'Tampilkan Alamat sebelumnya '), _defineProperty(_id$data, 'ADD_Ledger_1', 'Hubungkan ke Ledger Wallet Anda '), _defineProperty(_id$data, 'ADD_Ledger_2', 'Buka Aplikasi Ethereum (atau aplikasi kontrak) '), _defineProperty(_id$data, 'ADD_Ledger_2_Exp', 'Buka Aplikasi Expanse (atau aplikasi kontrak) '), _defineProperty(_id$data, 'ADD_Ledger_2_Ubq', 'Buka Aplikasi Ubiq (atau aplikasi kontrak) '), _defineProperty(_id$data, 'ADD_Ledger_3', 'Periksa bahwa "Browser Support" sudah di aktifkan di "Settings" '), _defineProperty(_id$data, 'ADD_Ledger_4', 'Jika "Browser Support" tidak ditemukan di "Settings", pastikan sudah mengupdate ke [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_id$data, 'ADD_Ledger_0a', 'Buka kembali MyEtherWallet melalui koneksi (SSL) yang aman '), _defineProperty(_id$data, 'ADD_Ledger_0b', 'Buka kembali MyEtherWallet menggunakan [Chrome](https://www.google.com/chrome/browser/desktop/) atau [Opera](https://www.opera.com/) '), _defineProperty(_id$data, 'ADD_Ledger_scan', 'Hubungkan ke Ledger Wallet '), _defineProperty(_id$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_id$data, 'x_Trezor', 'TREZOR '), _defineProperty(_id$data, 'ADD_Trezor_scan', 'Hubungkan ke TREZOR '), _defineProperty(_id$data, 'ADD_Trezor_select', 'Ini adalah TREZOR seed '), _defineProperty(_id$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_id$data, 'ADD_DigitalBitbox_0a', 'Buka kembali MyEtherWallet melalui koneksi (SSL) yang aman '), _defineProperty(_id$data, 'ADD_DigitalBitbox_0b', 'Buka kembali MyEtherWallet menggunakan [Chrome](https://www.google.com/chrome/browser/desktop/) atau [Opera](https://www.opera.com/) '), _defineProperty(_id$data, 'ADD_DigitalBitbox_scan', 'Hubungkan ke Digital Bitbox '), _defineProperty(_id$data, 'GEN_desc', 'Jika Anda memerlukan lebih dari satu dompet, Anda dapat memakai fitur '), _defineProperty(_id$data, 'GEN_Label_1', 'Masukkan password yang kuat (setidaknya 9 karakter) '), _defineProperty(_id$data, 'GEN_Placeholder_1', 'JANGAN LUPA untuk mengingat dan menyimpannya! '), _defineProperty(_id$data, 'GEN_SuccessMsg', 'Berhasil! Dompet Anda sudah dibuat. '), _defineProperty(_id$data, 'GEN_Label_2', 'Simpan Keystore atau Kunci Privat. Jangan lupa Password-nya. '), _defineProperty(_id$data, 'GEN_Label_3', 'Simpan alamat dompet Anda. '), _defineProperty(_id$data, 'GEN_Label_4', 'Opsional: Print Dompet Kertas Anda, atau simpan versi QR code-nya. '), _defineProperty(_id$data, 'BULK_Label_1', 'Jumlah Dompet yang akan dibuat '), _defineProperty(_id$data, 'BULK_Label_2', 'Buat Dompet '), _defineProperty(_id$data, 'BULK_SuccessMsg', 'Sukses! Dompet sudah berhasil dibuat. '), _defineProperty(_id$data, 'SEND_addr', 'Alamat tujuan '), _defineProperty(_id$data, 'SEND_amount', 'Jumlah untuk dikirim '), _defineProperty(_id$data, 'SEND_amount_short', 'Jumlah '), _defineProperty(_id$data, 'SEND_custom', 'Tambahkan "Custom Token" '), _defineProperty(_id$data, 'SEND_gas', 'Gas '), _defineProperty(_id$data, 'SEND_TransferTotal', 'Kirim seluruh Saldo '), _defineProperty(_id$data, 'SEND_generate', 'Laksanakan Transaksi '), _defineProperty(_id$data, 'SEND_raw', 'Transaksi Raw '), _defineProperty(_id$data, 'SEND_signed', '"Signed Transaction" '), _defineProperty(_id$data, 'SEND_trans', 'Kirim Transaksi '), _defineProperty(_id$data, 'SENDModal_Title', 'PERINGATAN! '), _defineProperty(_id$data, 'SENDModal_Content_1', 'Anda akan mengirim '), _defineProperty(_id$data, 'SENDModal_Content_2', 'ke alamat '), _defineProperty(_id$data, 'SENDModal_Content_3', 'Apakah ini benar? '), _defineProperty(_id$data, 'SENDModal_Content_4', 'CATATAN: Jika terjadi Error, kemungkinan Anda harus menambah Ether ke akun Anda untuk menutup biaya gas dan pengiriman. Gas dibayar dalam Ether. '), _defineProperty(_id$data, 'SENDModal_No', 'Batalkan! '), _defineProperty(_id$data, 'SENDModal_Yes', 'Ya! Laksanakan Transaksi-nya. '), _defineProperty(_id$data, 'TOKEN_Addr', 'Alamat Token Contract'), _defineProperty(_id$data, 'TOKEN_Symbol', 'Simbol Token '), _defineProperty(_id$data, 'TOKEN_Dec', 'Desimal '), _defineProperty(_id$data, 'TOKEN_show', 'Tampilkan Semua Token '), _defineProperty(_id$data, 'TOKEN_hide', 'Jangan tampilkan Token '), _defineProperty(_id$data, 'TRANS_desc', 'Untuk pengiriman Token, gunakan halaman "Kirim Token". '), _defineProperty(_id$data, 'TRANS_warning', 'Penggunaan fitur "Hanya ETH" atau "Hanya ETC" memakai pengiriman melalui Kontrak. Beberapa layanan tidak menerima transaksi jenis ini. Baca lebih lanjut. '), _defineProperty(_id$data, 'TRANS_advanced', '+Advanced: Tambah Data '), _defineProperty(_id$data, 'TRANS_data', 'Data '), _defineProperty(_id$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_id$data, 'TRANS_sendInfo', 'Transaksi standar menggunakan 21000 gas membutuhkan 0.000441 ETH. Kami memakai harga gas sedikit-diatas-harga-gas-minimum senilai 0.000000021 ETH untuk mempercepat. Kami tidak mengambil biaya atas transaksi. '), _defineProperty(_id$data, 'TRANSModal_Title', 'Transaksi "Hanya ETH" dan "Hanya ETC" '), _defineProperty(_id$data, 'TRANSModal_Content_0', 'Catatan terkait jenis transaksi dan layanan: '), _defineProperty(_id$data, 'TRANSModal_Content_1', '**ETH (Transaksi Standar): ** Transaksi default ini melakukan pengiriman langsung dari alamat pengirim ke alamat tujuan. Nilai Gas 21000. Besar kemungkinan ETH yang dikirim dengan metode ini akan di "replay" di rantai ETC. '), _defineProperty(_id$data, 'TRANSModal_Content_2', '**Hanya ETH: ** Pengiriman melalui [kontrak penangkal "replay" oleh Timon Rapp (direkomendasikan oleh VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) sehingga hanya dilaksanakan di rantai **ETH** saja. '), _defineProperty(_id$data, 'TRANSModal_Content_3', '**Hanya ETC: ** Pengiriman melalui [kontrak penangkal "replay" oleh Timon Rapp (direkomendasikan oleh VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) sehingga hanya dilaksanakan di rantai **ETC** saja. '), _defineProperty(_id$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Hanya melakukan pengiriman melalui Transaksi Standar saja. Jika Anda mengirim menggunakan "Hanya ETH" atau "Hanya ETC", hubungi layanan konsumen mereka untuk menambahkan saldo Anda secara manual atau membatalkan transaksinya. [Bisa juga dicoba fasilitas "split" dari Shapeshift.](https://split.shapeshift.io/) '), _defineProperty(_id$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Tidak ada masalah dengan tipe pengiriman. Anda bisa memilih metode yang mana saja. '), _defineProperty(_id$data, 'TRANSModal_Yes', 'Baik, saya sudah paham sekarang. '), _defineProperty(_id$data, 'TRANSModal_No', 'Waduh, saya jadi tambah bingung. Bantu saya. '), _defineProperty(_id$data, 'OFFLINE_Title', 'Penyiapan & Pengiriman Transaksi Offline '), _defineProperty(_id$data, 'OFFLINE_Desc', 'Penyiapan Transaksi Offline memerlukan tiga langkah. Langkah 1 & 3 dilakukan menggunakan komputer "online", sementara langkah 2 menggunakan komputer yang "offline/airgapped". Ini untuk menjaga agar Kunci Privat Anda tidak menyentuh perangkat yang terkoneksi dengan internet. '), _defineProperty(_id$data, 'OFFLLINE_Step1_Title', 'Langkah 1: Pelengkapan Informasi (komputer Online) '), _defineProperty(_id$data, 'OFFLINE_Step1_Button', 'Buat Informasi '), _defineProperty(_id$data, 'OFFLINE_Step1_Label_1', 'Alamat Pengirim '), _defineProperty(_id$data, 'OFFLINE_Step1_Label_2', 'Catatan: Ini adalah alamat PENGIRIM, bukan alamat TUJUAN. "Nonce" dibuat oleh akun pengirim. Jika memakai komputer yang "airgapped", ini adalah alamat akun "cold-storage". '), _defineProperty(_id$data, 'OFFLINE_Step2_Title', 'Langkah 2: Pelengkapan Transaksi (komputer Offline) '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_1', 'Alamat Tujuan '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_2', 'Nilai/Jumlah untuk dikirim '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_3', 'Harga Gas '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_3b', 'Nilai ini dihasilkan/ditunjukkan dari Langkah 1 yang dilakukan melalui komputer online di atas. '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_4', 'Limit Gas '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_4b', 'Limit Gas di set pada 21000. Jika ada data tambahan atau pengiriman melalui kontrak, nilainya bisa berbeda. Gas yang tidak terpakai akan dikembalikan. '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_5b', 'Ini ditunjukkan dari Langkah 1 di komputer online di atas. '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_6', 'Data '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_6b', 'Ini opsional/tidak harus diisi. Data biasanya diperlukan jika bertransaksi melalui kontrak. '), _defineProperty(_id$data, 'OFFLINE_Step2_Label_7', 'Masukkan/Pilih Kunci Privat/JSON Anda. '), _defineProperty(_id$data, 'OFFLINE_Step3_Title', 'Langkah 3: Kirim/Publikasikan Transaksi (komputer Online) '), _defineProperty(_id$data, 'OFFLINE_Step3_Label_1', '"Paste" data "Signed Transaction" dari Langkah 2 di atas dan klik tombol "Kirim Transaksi". '), _defineProperty(_id$data, 'MSG_message', 'Pesan '), _defineProperty(_id$data, 'MSG_date', 'Tanggal '), _defineProperty(_id$data, 'MSG_signature', 'Signature '), _defineProperty(_id$data, 'MSG_verify', 'Verifikasi Pesan '), _defineProperty(_id$data, 'MSG_info1', 'Cantumkan tanggal hari ini sehingga "Signature" tidak dapat dipakai ulang pada tanggal yang berbeda. '), _defineProperty(_id$data, 'MSG_info2', 'Cantumkan nama atau "nickname" Anda dan dimana "nickname" tersebut dipakai sehingga pihak lain tidak dapat memakainya. '), _defineProperty(_id$data, 'MSG_info3', 'Cantumkan alasan yang spesifik untuk pesan ini sehingga pesan yang ditandai ini tidak dapat dipakai ulang untuk keperluan lain. '), _defineProperty(_id$data, 'MYWAL_Nick', 'Dompet Alias '), _defineProperty(_id$data, 'MYWAL_Address', 'Alamat Dompet '), _defineProperty(_id$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_id$data, 'MYWAL_Edit', 'Edit '), _defineProperty(_id$data, 'MYWAL_View', 'Tampilkan '), _defineProperty(_id$data, 'MYWAL_Remove', 'Hapus '), _defineProperty(_id$data, 'MYWAL_RemoveWal', 'Hapus Dompet: '), _defineProperty(_id$data, 'MYWAL_WatchOnly', 'Akun Untuk-Dilihat-Saja Anda '), _defineProperty(_id$data, 'MYWAL_Viewing', 'Viewing Wallet '), _defineProperty(_id$data, 'MYWAL_Hide', 'Sembunyikan Informasi Dompet '), _defineProperty(_id$data, 'MYWAL_Edit_2', 'Edit Dompet '), _defineProperty(_id$data, 'MYWAL_Name', 'Nama Dompet '), _defineProperty(_id$data, 'MYWAL_Content_1', 'Peringatan! Anda akan menghapus Dompet '), _defineProperty(_id$data, 'MYWAL_Content_2', 'Pastkan Anda telah **menyimpan Kunci Privat dan/atau File Keystore File dan password** sebelum menghapus Dompet. '), _defineProperty(_id$data, 'MYWAL_Content_3', 'Jika Anda akan memakai dompet ini dengan MyEtherWallet CX Anda ke depan, Kunci Privat/JSON dan password harus ditambahkan lagi secara manual. '), _defineProperty(_id$data, 'VIEWWALLET_Subtitle', 'Memungkinkan Anda untuk mencetak Dompet Kertas dari berbagai format atau versi Kunci Privat. Hal ini diperlukan pada saat anda ingin [mengimpor akun Anda ke Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Jika Anda hanya ingin pengecekan saldo, pakailah salah satu layanan blockchain explorer seperti [etherscan.io](https://etherscan.io/). '), _defineProperty(_id$data, 'VIEWWALLET_Subtitle_Short', 'Untuk pencetakan Dompet Kertas dari berbagai format Kunci Privat. '), _defineProperty(_id$data, 'VIEWWALLET_SuccessMsg', 'Berhasil! Berikut detil dari dompet Anda. '), _defineProperty(_id$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_id$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_id$data, 'CX_error_1', 'Anda tidak memiliki Dompet yang disimpan sebelumnya. Klik ["Buat Dompet"](/cx-wallet.html#add-wallet) untuk membuatnya! '), _defineProperty(_id$data, 'CX_quicksend', 'Kirim '), _defineProperty(_id$data, 'NODE_Title', 'Set Up Node Custom Anda'), _defineProperty(_id$data, 'NODE_Subtitle', 'Untuk terhubung ke node lokal...'), _defineProperty(_id$data, 'NODE_Warning', 'Node Anda harus berupa HTTPS untuk dapat terhubung melalui MyEtherWallet.com. Anda dapat [mengunduh MyEtherWallet repo & menjalankannya secara lokal](https://github.com/kvhnuke/etherwallet/releases/latest) untuk terhubung ke node apa saja. Atau, dapatkan SSL certificate gratis melalui [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_id$data, 'NODE_Name', 'Nama Node'), _defineProperty(_id$data, 'NODE_Port', 'Port Node'), _defineProperty(_id$data, 'NODE_CTA', 'Simpan & Pakai Node Custom'), _defineProperty(_id$data, 'CONTRACT_Title', 'Alamat Kontrak '), _defineProperty(_id$data, 'CONTRACT_Title_2', 'Pilih kontrak yang ada '), _defineProperty(_id$data, 'CONTRACT_Json', 'Interface ABI / JSON '), _defineProperty(_id$data, 'CONTRACT_Interact_Title', 'Kontrak Read / Write '), _defineProperty(_id$data, 'CONTRACT_Interact_CTA', 'Pilih fungsi '), _defineProperty(_id$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_id$data, 'CONTRACT_Read', 'READ '), _defineProperty(_id$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_id$data, 'DEP_generate', 'Buat Bytecode '), _defineProperty(_id$data, 'DEP_generated', 'Bytecode yang dibuat '), _defineProperty(_id$data, 'DEP_signtx', 'Laksanakan Transaksi '), _defineProperty(_id$data, 'DEP_interface', 'Interface yang dibuat '), _defineProperty(_id$data, 'SWAP_rates', "Nilai Tukar yang berlaku "), _defineProperty(_id$data, 'SWAP_init_1', "Saya ingin menukar "), _defineProperty(_id$data, 'SWAP_init_2', " menjadi "), _defineProperty(_id$data, 'SWAP_init_CTA', "Lanjutkan! "), _defineProperty(_id$data, 'SWAP_information', "Informasi Anda "), _defineProperty(_id$data, 'SWAP_send_amt', "Jumlah untuk dikirim "), _defineProperty(_id$data, 'SWAP_rec_amt', "Jumlah untuk diterima "), _defineProperty(_id$data, 'SWAP_your_rate', "Nilai tukar Anda "), _defineProperty(_id$data, 'SWAP_rec_add', "Alamat penerima Anda "), _defineProperty(_id$data, 'SWAP_start_CTA', "Tukarkan "), _defineProperty(_id$data, 'SWAP_ref_num', "Nomor referensi Anda "), _defineProperty(_id$data, 'SWAP_time', "Sisa waktu untuk mengirim "), _defineProperty(_id$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_id$data, 'SWAP_progress_1', "Perintah Dijalankan "), _defineProperty(_id$data, 'SWAP_progress_2', "Menunggu "), _defineProperty(_id$data, 'SWAP_progress_3', "Diterima! "), _defineProperty(_id$data, 'SWAP_progress_4', "Mengirim {{orderResult.output.currency}} "), _defineProperty(_id$data, 'SWAP_progress_5', "Perintah Selesai "), _defineProperty(_id$data, 'SWAP_order_CTA', "Kirimkan "), _defineProperty(_id$data, 'SWAP_unlock', "Unlock wallet Anda untuk mengirim ETH atau Token langsung dari halaman ini. "), _defineProperty(_id$data, 'ERROR_0', 'Masukkan jumlah yang valid. '), _defineProperty(_id$data, 'ERROR_1', 'Password minimal terdiri dari 9 huruf. Pastikan password Anda kuat. '), _defineProperty(_id$data, 'ERROR_2', 'Maaf! tipe dompet ini tidak dikenal. '), _defineProperty(_id$data, 'ERROR_3', 'Ini bukan file dompet yang valid. '), _defineProperty(_id$data, 'ERROR_4', 'Unit tidak valid, gunakan salah satu dari unit berikut '), _defineProperty(_id$data, 'ERROR_5', 'Alamat tidak valid. '), _defineProperty(_id$data, 'ERROR_6', 'Password tidak valid. '), _defineProperty(_id$data, 'ERROR_7', 'Jumlah tidak valid. (Harus integer. Coba 0-18.) '), _defineProperty(_id$data, 'ERROR_8', 'Gas limit tidak valid. (Harus integer. Coba 21000-4000000.) '), _defineProperty(_id$data, 'ERROR_9', 'Nilai data tidak valid. (Harus hex.) '), _defineProperty(_id$data, 'ERROR_10', 'Jumlah Gas tidak valid. (Harus integer. Coba 20 GWEI / 20000000000 WEI.) '), _defineProperty(_id$data, 'ERROR_11', 'Nonce tidak valid. (Harus integer.) '), _defineProperty(_id$data, 'ERROR_12', 'Signed transaction tidak valid. '), _defineProperty(_id$data, 'ERROR_13', 'Sudah ada Dompet dengan nickname ini. '), _defineProperty(_id$data, 'ERROR_14', 'Dompet tidak ditemukan. '), _defineProperty(_id$data, 'ERROR_15', 'Tidak ditemukan proposal dengan ID ini atau terjadi error saat membaca proposal ini. '), _defineProperty(_id$data, 'ERROR_16', 'Terdapat dompet dengan alamat yang sama di storage. Cek kembali halaman dompet Anda. '), _defineProperty(_id$data, 'ERROR_17', 'Dana tidak mencukupi. Akun yang dipakai untuk mengirim tidak memiliki dana yang cukup. Minimal harus ada **0.01 ETH** di akun untuk menutup biaya gas. Tambahkan ether dan coba lagi. '), _defineProperty(_id$data, 'ERROR_18', 'Semua gas akan digunakan pada transaksi ini. Ini berarti Anda telah memberikan suara pada proposal ini atau periode perdebatan telah berakhir. '), _defineProperty(_id$data, 'ERROR_19', 'Simbol tidak valid '), _defineProperty(_id$data, 'ERROR_20', 'Bukan ERC-20 token yang valid.'), _defineProperty(_id$data, 'ERROR_21', 'Tidak dapat memperkirakan gas. Saldo di akun tidak cukup, atau alamat kontrak penerima bisa mengeluarkan error. Cobalah untuk secara manual mengatur gas dan melanjutkan. Keterangan Error saat pengiriman mungkin lebih informatif. '), _defineProperty(_id$data, 'ERROR_22', 'Masukkan nama node yang valid'), _defineProperty(_id$data, 'ERROR_23', 'Masukkan URL yang valid. Jika Anda menggunakan https, URL Anda harus https'), _defineProperty(_id$data, 'ERROR_24', 'Masukkan port yang valid. '), _defineProperty(_id$data, 'ERROR_25', 'Masukkan chain ID yang valid. '), _defineProperty(_id$data, 'ERROR_26', 'Masukkan ABI yang valid. '), _defineProperty(_id$data, 'ERROR_27', 'Jumlah Minimum: 0.01. Jumlah Max: '), _defineProperty(_id$data, 'ERROR_28', '**DIPERLUKAN File Keystore & password** (atau Kunci Privat) untuk mengakses dompet Anda. Simpan dan backup dengan baik file ini! Tidak ada mekanisme untuk me-recover dompet jika file-nya hilang. Baca instruksi lengkapnya [di sini](https://www.myetherwallet.com/#help). '), _defineProperty(_id$data, 'ERROR_29', 'Masukkan user dan password yang valid. '), _defineProperty(_id$data, 'ERROR_30', 'Masukkan nama yang vaklid (7+ karakter, tanda baca terbatas) '), _defineProperty(_id$data, 'ERROR_31', 'Masukkan frase rahasia yang valid. '), _defineProperty(_id$data, 'ERROR_32', 'Tidak dapat tersambung ke node. Coba lakukan "Refresh" dan ganti node (pojok kanan atas), dan check setting firewall. Jika node-nya custom, periksa configs-nya.'), _defineProperty(_id$data, 'ERROR_33', 'Dompet yang Anda buka tidak sesuai dengan address pemiliknya. '), _defineProperty(_id$data, 'ERROR_34', 'Nama yang Anda coba buka tidak sama dengan nama yang dimasukkan. '), _defineProperty(_id$data, 'ERROR_35', 'Address yang dimasukkan tidak di checksum. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Informasi lebih lanjut</a>'), _defineProperty(_id$data, 'ERROR_36', 'Masukkan TX hash yang valid'), _defineProperty(_id$data, 'ERROR_37', 'Masukkan hex string yang valid (0-9, a-f)'), _defineProperty(_id$data, 'SUCCESS_1', 'Alamat valid '), _defineProperty(_id$data, 'SUCCESS_2', 'Dompet telah ter-dekripsi '), _defineProperty(_id$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_id$data, 'SUCCESS_4', 'Dompet Anda telah ditambahkan '), _defineProperty(_id$data, 'SUCCESS_5', 'File Terpilih '), _defineProperty(_id$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_id$data, 'SUCCESS_7', 'Message Signature ter-verifikasi'), _defineProperty(_id$data, 'WARN_Send_Link', 'Alamat, jumlah, gas atau informasi telah diisikan untuk Anda. Informasi tersebut dapat Anda rubah sebelum pengiriman. Buka kunci dompet Anda Untuk memulai. '), _defineProperty(_id$data, 'GETH_InvalidSender', 'Pengirim tidak valid '), _defineProperty(_id$data, 'GETH_Nonce', 'Nonce terlalu rendah '), _defineProperty(_id$data, 'GETH_Cheap', 'Harga Gas terlalu kecil untuk dapat diterima '), _defineProperty(_id$data, 'GETH_Balance', 'Saldo tidak mencukupi '), _defineProperty(_id$data, 'GETH_NonExistentAccount', 'Akun tidak ditemukan atau saldo terlalu rendah '), _defineProperty(_id$data, 'GETH_InsufficientFunds', 'Tidak cukup saldo untuk gas * harga + nilai '), _defineProperty(_id$data, 'GETH_IntrinsicGas', 'Gas intrinsik terlalu rendah '), _defineProperty(_id$data, 'GETH_GasLimit', 'Melebihi limit blok gas '), _defineProperty(_id$data, 'GETH_NegativeValue', 'Nilai negatif '), _defineProperty(_id$data, 'PARITY_AlreadyImported', "(parity-01) Transaksi dengan hash yang sama sudah pernah di-impor sebelumnya. A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_id$data, 'PARITY_GasLimitExceeded', "(parity-02) Biaya transaksi melebihi limit gas yang berlaku. Limit: {}, tersedia: {}. Coba turunkan gas yang disediakan. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_id$data, 'PARITY_InsufficientBalance', "(parity-03) Dana tidak mencukupi. Akun yang dipakai untuk mengirim tidak memiliki dana yang cukup. Diperlukan {} dan hanya tersedia: {}. Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_id$data, 'PARITY_InsufficientGasPrice', "(parity-04) Biaya transaksi terlalu rendah. Tidak memenuhi nilai biaya minimal untuk node Anda(minimal: {}, got: {}). Coba naikkan biaya transaksi. There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_id$data, 'PARITY_InvalidGasLimit', "(parity-05) Gas yang disediakan nilainya diatas limit. Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_id$data, 'PARITY_LimitReached', "(parity-06) Terlalu banyak transaksi dalam antrian. Transaksi Anda gugur karena melampaui batas. Coba naikkan biaya transaksi There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_id$data, 'PARITY_Old', "(parity-07) Nonce transaksi terlalu kecil. Coba naikkan nilai Nonce-nya. There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_id$data, 'PARITY_TooCheapToReplace', "(parity-08) Biaya transaksi terlalu rendah. Ada transaksi lain dengan nonce yang sama dalam antrian. Coba naikkan biaya transaksi atau naikkan nonce-nya. TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_id$data, 'translate_version', '0.3 '), _defineProperty(_id$data, 'Translator_Desc', 'Thank you to our translators '), _defineProperty(_id$data, 'TranslatorName_1', '[Yos Ginting](https://www.myetherwallet.com/?gaslimit=21000&to=0x8F646C5c215be6E0163f02Bd2eB97AFC2DF70e5c&value=1.0#send-transaction) '), _defineProperty(_id$data, 'TranslatorAddr_1', '0x8F646C5c215be6E0163f02Bd2eB97AFC2DF70e5c '), _defineProperty(_id$data, 'TranslatorName_2', ''), _defineProperty(_id$data, 'TranslatorAddr_2', ''), _defineProperty(_id$data, 'TranslatorName_3', ''), _defineProperty(_id$data, 'TranslatorAddr_3', ''), _defineProperty(_id$data, 'TranslatorName_4', ''), _defineProperty(_id$data, 'TranslatorAddr_4', ''), _defineProperty(_id$data, 'TranslatorName_5', ''), _defineProperty(_id$data, 'TranslatorAddr_5', ''), _defineProperty(_id$data, 'HELP_Warning', 'Jika Anda telah membuat dompet -atau- mendownload repo sebelum **Des. 31, 2015**, periksa dompet Anda &amp; download versi repo yang baru. Klik untuk penjelasan yang lebih rinci. '), _defineProperty(_id$data, 'HELP_Desc', 'Anda melihat sesuatu yang hilang? Atau ada pertanyaan lain? [Hubungi kami](mailto:support@myetherwallet.com), dan kami tidak hanya akan menjawab pertanyaan Anda, kami akan memperbarui halaman ini untuk lebih bermanfaat bagi pengguna lainnya kedepan! '), _defineProperty(_id$data, 'HELP_Remind_Title', 'Beberapa pengingat '), _defineProperty(_id$data, 'HELP_Remind_Desc_1', '** Ethereum, MyEtherWallet.com & MyEtherWallet CX, dan beberapa library Javascript yang kami gunakan sedang dalam pengembangan yang aktif.** Meskipun kami telah benar-benar menguji & puluhan ribu dompet telah berhasil diciptakan oleh para pengguna di seluruh dunia, selalu ada kemungkinan bahwa sesuatu yang tidak terduga dapat terjadi yang menyebabkan ETH Anda hilang. Tolong jangan menginvestasikan lebih dari yang Anda mampu kehilangan, dan mohon berhati-hati. Jika ada sesuatu yang buruk terjadi, kami mohon maaf, tapi **kami tidak bertanggung jawab atas Ether yang hilang**. '), _defineProperty(_id$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX bukan "dompet web". Anda tidak membuat akun atau memberikan Ether Anda untuk kami pegang. Semua data tidak pernah meninggalkan komputer/browser Anda. Kami mempermudah Anda untuk membuat, menyimpan, dan mengakses informasi Anda dan berinteraksi dengan blockchain. '), _defineProperty(_id$data, 'HELP_Remind_Desc_3', 'Jika Anda tidak menyimpan Kunci Privat & password Anda, tidak ada cara untuk memulihkan akses ke dompet Anda atau dana yang ada di dalamnya. Simpan kunci cadangan ke beberapa lokasi fisik &ndash; jangan hanya di komputer Anda saja! '), _defineProperty(_id$data, 'HELP_0_Title', '0) Saya masih baru. Apa yang harus saya lakukan? '), _defineProperty(_id$data, 'HELP_0_Desc_1', 'MyEtherWallet memberi Anda kemampuan untuk membuat dompet baru sehingga Anda dapat menyimpan Ether oleh diri Anda sendiri, bukan di bursa. Proses ini dilakukan sepenuhnya di komputer Anda, bukan di server kami. Oleh karena itu, saat Anda membuat dompet baru, **Anda bertanggung jawab untuk menyimpan cadangan/backup-nya dengan aman**. '), _defineProperty(_id$data, 'HELP_0_Desc_2', 'Buat dompet baru. '), _defineProperty(_id$data, 'HELP_0_Desc_3', 'Buat dompet cadangan/backup. '), _defineProperty(_id$data, 'HELP_0_Desc_4', 'Verifikasi bahwa Anda memiliki akses ke dompet baru ini dan telah menyimpan semua informasi yang diperlukan dengan benar. '), _defineProperty(_id$data, 'HELP_0_Desc_5', 'Transfer Ether ke dompet baru ini. '), _defineProperty(_id$data, 'HELP_1_Title', '1) Bagaimana cara membuat dompet baru? '), _defineProperty(_id$data, 'HELP_1_Desc_1', 'Buka halaman "Buat Dompet". '), _defineProperty(_id$data, 'HELP_1_Desc_2', 'Buka laman "Tambahkan Dompet" & pilih "Buat Dompet Baru" '), _defineProperty(_id$data, 'HELP_1_Desc_3', 'Masukkan password yang kuat. Jika Anda pikir Anda mungkin melupakannya, simpan di tempat yang aman. Anda memerlukan password ini untuk mengirim transaksi. '), _defineProperty(_id$data, 'HELP_1_Desc_4', 'Klik "GENERATE/BUAT". '), _defineProperty(_id$data, 'HELP_1_Desc_5', 'Dompet Anda telah dibuat. '), _defineProperty(_id$data, 'HELP_2a_Desc_1', 'Anda harus selalu membuat cadangan/backup dompet Anda secara eksternal dan di beberapa lokasi fisik - seperti pada drive USB dan/atau selembar kertas. '), _defineProperty(_id$data, 'HELP_2a_Desc_2', 'Simpan alamatnya. Anda bisa menyimpannya untuk diri sendiri atau membaginya dengan orang lain. Dengan cara itu, orang lain bisa mentransfer Ether ke Anda. '), _defineProperty(_id$data, 'HELP_2a_Desc_3', 'Simpan untuk diri sendiri semua versi Kunci Privat. Jangan berbagi dengan orang lain. Kunci Privat tersebut akan Anda diperlukan saat Anda ingin mengakses Ether Anda untuk mengirimkannya! Ada 3 jenis Kunci Privat: '), _defineProperty(_id$data, 'HELP_2a_Desc_4', 'Simpan alamat Anda, semua versi Kunci Privat, dan dompet kertas versi PDF dalam sebuah folder. Simpan ini di komputer dan drive USB Anda. '), _defineProperty(_id$data, 'HELP_2a_Desc_5', 'Cetak alamat dompet jika Anda memiliki printer. Jika tidak, tuliskan kunci dan alamat privat Anda di selembar kertas. Simpan ini di lokasi yang aman, terpisah dari komputer dan drive USB Anda. '), _defineProperty(_id$data, 'HELP_2a_Desc_6', 'Ingat, Anda harus mencegah hilangnya kunci dan passwordnya karena hilang atau gagalnya hard drive, atau drive USB, atau lembaran kertasnya. Anda juga harus ingat kerusakan total dari area fisik yang ada (misalnya karena api atau banjir). '), _defineProperty(_id$data, 'HELP_2b_Title', '2b) Bagaimana cara penyimpanan yang aman / offline / cold storage menggunakan MyEtherWallet? '), _defineProperty(_id$data, 'HELP_2b_Desc_1', 'Kunjungi [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_id$data, 'HELP_2b_Desc_2', 'Klik file `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_id$data, 'HELP_2b_Desc_3', 'Pindahkan zip ke sebuah komputer yang tidak terhubung ke internet (airgapped). '), _defineProperty(_id$data, 'HELP_2b_Desc_4', 'Unzip file-nya dan double klik `index.html`. '), _defineProperty(_id$data, 'HELP_2b_Desc_5', 'Buat dompet dengan password yang kuat. '), _defineProperty(_id$data, 'HELP_2b_Desc_6', 'Simpan alamatnya. Simpan semua versi Kunci Privatnya. Simpan passwordnya jika Anda mampu untuk mengingatnya selamanya. '), _defineProperty(_id$data, 'HELP_2b_Desc_7', 'Simpan kertas-kertas tersebut / USB di beberapa lokasi yang terpisah secara fisik. '), _defineProperty(_id$data, 'HELP_2b_Desc_8', 'Buka halaman "Lihat Info Dompet" dan ketik password/Kunci Privat Anda untuk memastikannya benar dan akses dompet Anda. Periksa dan pastikan alamat yang Anda tulis sama. '), _defineProperty(_id$data, 'HELP_3_Title', '3) Bagaimana cara memverifikasi bahwa saya memiliki akses ke dompet baru saya? '), _defineProperty(_id$data, 'HELP_3_Desc_1', '**Sebelum Anda mengirim Ether ke dompet baru Anda**, Anda harus memastikan Anda memiliki akses ke dompet baru tersebut. '), _defineProperty(_id$data, 'HELP_3_Desc_2', 'Buka halaman "Lihat Info Dompet". '), _defineProperty(_id$data, 'HELP_3_Desc_3', 'Buka laman MyEtherWallet.com bagian "Lihat Info Dompet" . '), _defineProperty(_id$data, 'HELP_3_Desc_4', 'Pilih file dompet Anda -atau- Kunci Privat Anda dan buka dompet Anda. '), _defineProperty(_id$data, 'HELP_3_Desc_5', 'Jika dompet dienkripsi, halaman isian password akan muncul secara otomatis. Masukkan passwordnya. '), _defineProperty(_id$data, 'HELP_3_Desc_6', 'Klik tombol "Buka Dompet/Unlock Wallet". '), _defineProperty(_id$data, 'HELP_3_Desc_7', 'Informasi dompet Anda akan ditayangkan. Temukan alamat akun Anda, di samping ikon berbentuk lingkaran yang berwarna-warni. Ikon visual ini merepresentasikan alamat Anda. Pastikan bahwa alamat tersebut adalah alamat yang telah Anda simpan ke dokumen teks Anda dan telah juga disalin ke dompet kertas Anda. '), _defineProperty(_id$data, 'HELP_3_Desc_8', 'Jika Anda berencana untuk menyimpan ether dalam jumlah besar, sebaiknya coba untuk mengirimkan sejumlah kecil ether dari dompet baru sebelum menyetorkan jumlah yang besar. Kirim 0,001 ether ke dompet baru Anda, akses dompet itu, lalu coba kirimkan 0,001 ether itu ke alamat lain, dan pastikan semuanya berjalan lancar. '), _defineProperty(_id$data, 'HELP_4_Title', '4) Bagaimana cara mengirim Ether dari satu dompet ke dompet lainnya? '), _defineProperty(_id$data, 'HELP_4_Desc_1', 'Jika Anda berencana untuk memindahkan ether dalam jumlah besar, pastikan Anda telah menguji pengiriman sejumlah kecil ke dompet Anda terlebih dahulu untuk memastikan semuanya berjalan sesuai rencana. '), _defineProperty(_id$data, 'HELP_4_Desc_2', 'Buka halaman "Kirim Ether dan Token". '), _defineProperty(_id$data, 'HELP_4_Desc_3', 'Pilih file dompet Anda -atau- Kunci Privat Anda dan buka dompet Anda. '), _defineProperty(_id$data, 'HELP_4_Desc_4', 'Jika dompet dienkripsi, halaman isian password akan muncul secara otomatis. Masukkan passwordnya. '), _defineProperty(_id$data, 'HELP_4_Desc_5', 'Klik tombol "Buka Dompet/Unlock Wallet". '), _defineProperty(_id$data, 'HELP_4_Desc_6', 'Masukkan alamat yang ingin Anda kirim ke kolom "Alamat:". '), _defineProperty(_id$data, 'HELP_4_Desc_7', 'Masukkan jumlah yang ingin Anda kirim. Anda juga dapat mengeklik tautan "Kirim Keseluruhan Saldo" jika Anda ingin mentransfer keseluruhan saldo. '), _defineProperty(_id$data, 'HELP_4_Desc_9', 'Klik "Buat Transaksi". '), _defineProperty(_id$data, 'HELP_4_Desc_10', 'Beberapa data tambahan akan dimunculkan. Ini adalah proses dari browser Anda menjalankan transaksi. '), _defineProperty(_id$data, 'HELP_4_Desc_11', 'Klik tombol "Kirim Transaksi" berwarna biru di bawahnya. '), _defineProperty(_id$data, 'HELP_4_Desc_12', 'Pop-up akan muncul. Pastikan jumlah dan alamat yang dituju benar. Kemudian klik tombol "Ya, saya yakin! Lakukan transaksi.". '), _defineProperty(_id$data, 'HELP_4_Desc_13', 'Transaksi akan dijalankan. TX Hash akan ditampilkan. Anda bisa klik TX Hash tersebut untuk melihatnya di blockchain. '), _defineProperty(_id$data, 'HELP_4CX_Title', '4) Bagaimana cara mengirim Ether menggunakan MyEtherWallet CX? '), _defineProperty(_id$data, 'HELP_4CX_Desc_1', 'Pertama, Anda perlu menambahkan dompet. Setelah melakukannya, Anda memiliki 2 pilihan: menggunakan "QuickSend" dari ikon Chrome Extension atau menggunakan halaman "Kirim Ether dan Tokens". '), _defineProperty(_id$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_id$data, 'HELP_4CX_Desc_3', 'Klik Ikon Chrome Extension. '), _defineProperty(_id$data, 'HELP_4CX_Desc_4', 'Klik tombol "QuickSend". '), _defineProperty(_id$data, 'HELP_4CX_Desc_5', 'Pilih dompet yang dipakai untuk mengirim. '), _defineProperty(_id$data, 'HELP_4CX_Desc_6', 'Masukkan alamat tujuan yang ingin Anda kirimi ke kolom "Alamat tujuan:". '), _defineProperty(_id$data, 'HELP_4CX_Desc_7', 'Masukkan jumlah yang ingin Anda kirim. Anda juga dapat mengeklik tautan "Kirim Keseluruhan Saldo" jika Anda ingin mentransfer keseluruhan saldo. '), _defineProperty(_id$data, 'HELP_4CX_Desc_8', 'Klik "Kirim Transaksi". '), _defineProperty(_id$data, 'HELP_4CX_Desc_9', 'Verifikasi alamat dan jumlah yang Anda kirim sudah benar. '), _defineProperty(_id$data, 'HELP_4CX_Desc_10', 'Masukkan password untuk dompet itu. '), _defineProperty(_id$data, 'HELP_4CX_Desc_11', 'Klik "Kirim Transaksi". '), _defineProperty(_id$data, 'HELP_4CX_Desc_12', 'Menggunakan halaman "Kirim Ether dan Tokens" '), _defineProperty(_id$data, 'HELP_5_Title', '5) Bagaimana cara menjalankan MyEtherWallet.com secara offline/lokal? '), _defineProperty(_id$data, 'HELP_5_Desc_1', 'Anda dapat menjalankan MyEtherWallet.com secara lokal di komputer Anda, bukan dari server GitHub. Anda dapat membuat dompet yang benar-benar offline dan mengirim transaksi dari laman "Transaksi Offline". '), _defineProperty(_id$data, 'HELP_5_Desc_7', 'MyEtherWallet.com sekarang berjalan sepenuhnya di komputer Anda. '), _defineProperty(_id$data, 'HELP_5_Desc_8', 'Jika Anda belum pernah melakukannya, Anda harus menyimpan folder dan seluruh isinya (bukan hanya `index.html`) agar bisa menjalankan websitenya. Jangan rubah atau pindahkan file apapun yang ada di dalam folder. Jika Anda akan menyimpan backup dari MyEtherWallet repo, sebaiknya simpan versi ZIP-nya untuk menggaransi bahwa isi foldernya lengkap. '), _defineProperty(_id$data, 'HELP_5_Desc_9', 'Karena kami masih terus memperbarui MyEtherWallet.com, sebaiknya Anda juga memperbarui versi repo yang Anda simpan secara berkala. '), _defineProperty(_id$data, 'HELP_5CX_Title', '6) Bagaimana cara memasang ekstensi ini dari repo, bukan dari Chrome Store? '), _defineProperty(_id$data, 'HELP_5CX_Desc_2', 'Klik `chrome-extension-vX.X.X.X.zip` dan unzip. '), _defineProperty(_id$data, 'HELP_5CX_Desc_3', 'Buka Google Chrome dan temukan Setting Anda (di menu di kanan atas). '), _defineProperty(_id$data, 'HELP_5CX_Desc_4', 'Klik "Extensions" di sebelah kiri. '), _defineProperty(_id$data, 'HELP_5CX_Desc_5', 'Check tombol "Developer Mode" di bagian atas dari laman tersebut. '), _defineProperty(_id$data, 'HELP_5CX_Desc_6', 'Klik tombol "Load unpacked extension...". '), _defineProperty(_id$data, 'HELP_5CX_Desc_7', 'Buka folder yang baru saja di unzip. Klik "select". '), _defineProperty(_id$data, 'HELP_5CX_Desc_8', 'Ekstensi tersebut sekarang akan muncul di bagian ekstensi dan di bilah Chrome Extension. '), _defineProperty(_id$data, 'HELP_7_Title', '7) Bagaimana cara mengirim Token & menambahkan token custom? '), _defineProperty(_id$data, 'HELP_7_Desc_0', 'Kunjungi [Ethplorer.io](https://ethplorer.io/) untuk mendapatkan informasi terkait token dan token desimal. '), _defineProperty(_id$data, 'HELP_7_Desc_1', 'Buka halaman "Kirim Token". '), _defineProperty(_id$data, 'HELP_7_Desc_2', 'Buka dompet Anda. '), _defineProperty(_id$data, 'HELP_7_Desc_3', 'Masukkan alamat tujuan yang ingin Anda kirimi ke kolom "Alamat tujuan:". '), _defineProperty(_id$data, 'HELP_7_Desc_4', 'Masukkan jumlah yang ingin Anda kirim. '), _defineProperty(_id$data, 'HELP_7_Desc_5', 'Pilih token yang ingin Anda kirim. '), _defineProperty(_id$data, 'HELP_7_Desc_6', 'Jika Anda tidak melihat token di dalam daftar yang ada: '), _defineProperty(_id$data, 'HELP_7_Desc_7', 'Klik "Custom". '), _defineProperty(_id$data, 'HELP_7_Desc_8', 'Masukkan alamat, nama, dan desimal dari token. Ini di set oleh para pengembang token dan juga dibutuhkan saat Anda "Add a Watch Token" ke Mist. '), _defineProperty(_id$data, 'HELP_7_Desc_9', 'Klik "Simpan". '), _defineProperty(_id$data, 'HELP_7_Desc_10', 'Anda sekarang dapat mengirim token itu dan juga melihat saldonya di sidebar. '), _defineProperty(_id$data, 'HELP_7_Desc_11', 'Klik "Buat Transaksi". '), _defineProperty(_id$data, 'HELP_7_Desc_12', 'Beberapa data tambahan akan dimunculkan. Ini adalah proses dari browser Anda menjalankan transaksi. '), _defineProperty(_id$data, 'HELP_7_Desc_13', 'Klik tombol "Kirim Transaksi" berwarna biru di bawahnya.. '), _defineProperty(_id$data, 'HELP_7_Desc_14', 'Pop-up akan muncul. Pastikan jumlah dan alamat yang dituju benar. Kemudian klik tombol "Ya, saya yakin! Lakukan transaksi.".'), _defineProperty(_id$data, 'HELP_7_Desc_15', 'Transaksi akan dijalankan. TX Hash akan ditampilkan. Anda bisa klik TX Hash tersebut untuk melihatnya di blockchain. '), _defineProperty(_id$data, 'HELP_8_Title', '8) Apa yang terjadi jika situs Anda tidak berfungsi? '), _defineProperty(_id$data, 'HELP_8_Desc_1', 'MyEtherWallet bukan dompet web. Anda tidak memiliki login dan tidak ada yang bisa disimpan ke server kami. Ini hanyalah sebuah antarmuka yang memungkinkan Anda berinteraksi dengan blockchain. '), _defineProperty(_id$data, 'HELP_8_Desc_2', 'Jika situs MyEtherWallet.com tidak berfungsi, Anda harus memakai cara lain (misalnya memakai geth atau Ethereum Wallet/Mist) sebagai alternatifnya. Tapi Anda tidak perlu "mengeluarkan" Ether Anda dari MyEtherWallet.com karena Ether Anda tidak disimpan di MyEtherWallet.com. Ether Anda tetap tersimpan dalam dompet yang Anda buat di situs kami. '), _defineProperty(_id$data, 'HELP_8_Desc_3', 'Sekarang Anda dapat mengimpor Kunci Privat yang tidak dienkripsi dan file dalam format Geth/Mist (terenkripsi) langsung ke geth/ Ethereum Wallet/Mist dengan sangat mudah. Lihat pertanyaan #12 di bawah ini. '), _defineProperty(_id$data, 'HELP_8_Desc_4', 'Lebih dari itu, kemungkinan kita menghentikan layanan MyEtherWallet sangat kecil. Hampir tidak ada biaya dari penyelenggaraan layanan ini karena kami tidak menyimpan data apapun. Kalaupun sampai kami menghentikan layanan, semua file ini akan selalu akan tersedia untuk umum di [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Anda bisa mendownload file ZIP-nya disana dan menjalankannya secara lokal. '), _defineProperty(_id$data, 'HELP_8CX_Title', '8) Apa yang terjadi jika MyEtherWallet CX tidak beredar lagi? '), _defineProperty(_id$data, 'HELP_8CX_Desc_1', 'Pertama, semua data tersimpan di komputer Anda, bukan di server kami. Mungkin membingungkan, tapi saat Anda melihat semua Chrome Extension, Anda sedang TIDAK melihat program yang tersimpan di server kami - semuanya tersimpan di komputer Anda sendiri. '), _defineProperty(_id$data, 'HELP_8CX_Desc_2', 'terlepas dari semua itu, **sangat penting** bagi Anda untuk membuat backup/cadangan dari semua informasi dompet baru yang Anda buat dengan MyEtherWallet CX. Dengan begitu, jika terjadi sesuatu pada MyEtherWallet CX atau komputer Anda, Anda masih memiliki semua informasi yang diperlukan untuk mengakses Ether Anda. Lihat #2a untuk cara membuat backup/cadangan dompet Anda. '), _defineProperty(_id$data, 'HELP_8CX_Desc_3', 'Jika karena suatu hal maupun lainnya MyEtherWallet CX tidak lagi tersedia di Chrome Store, Anda tetap dapat menemukan file aslinya di Github dan menjalankannya secara manual. Lihat #5 di atas. '), _defineProperty(_id$data, 'HELP_9_Title', '9) Kenapa halaman "Kirim Ether dan Tokens" seperti offline? '), _defineProperty(_id$data, 'HELP_9_Desc_1', 'Sebenarnya tidak offline. Halaman tersebut memerlukan internet untuk mendapatkan harga gas saat ini, nonce akun anda, dan menyiarkan transaksi (alias "send"). Namun, pengiriman hanya memakai data transaksi yang sudah ditandatangani. Kunci Privat Anda tetap aman bersama Anda. Kami juga sekarang menyediakan halaman "Transaksi Offline" sehingga Anda dapat memastikan Kunci Privat Anda berada pada komputer yang offline/airgapped setiap saat.. '), _defineProperty(_id$data, 'HELP_10_Title', '10) Bagaimana cara melakukan transaksi offline? '), _defineProperty(_id$data, 'HELP_10_Desc_1', 'Buka halaman "Offline Transaction" menggunakan komputer yang online. '), _defineProperty(_id$data, 'HELP_10_Desc_2', 'Masukkan data "From Address". Catatan, ini adalah alamat asal DARI pengirim, Bukan alamat TUJUAN. Langkah ini akan menghasilkan nonce dan harga gas. '), _defineProperty(_id$data, 'HELP_10_Desc_3', 'Pindah ke komputer yang offline. Masukkan "ALAMAT TUJUAN/TO ADDRESS" dan "JUMLAH/AMOUNT" yang akan dikirim. '), _defineProperty(_id$data, 'HELP_10_Desc_4', 'Masukkan "HARGA GAS/GAS PRICE" seperti ditunjukkan di online komputer pada step #1. '), _defineProperty(_id$data, 'HELP_10_Desc_5', 'Masukkan "NONCE" seperti ditunjukkan di online komputer pada step #1. '), _defineProperty(_id$data, 'HELP_10_Desc_6', '"BATAS GAS/GAS LIMIT" memiliki nilai default 21000. Ini cukup untuk membiayai transaksi standar. Jika Anda mengirim ke kontrak atau terdapat data tambahan dalam transaksi Anda, Anda perlu menambah batas gas. Sisa Gas akan dikembalikan kepada Anda. '), _defineProperty(_id$data, 'HELP_10_Desc_7', 'Jika dikehendaki, Anda dapat menambahkan beberapa data. Jika Anda memasukkan data, Anda harus menambahkan gas diatas batas gas default 21000. Semua data dalam format HEX. '), _defineProperty(_id$data, 'HELP_10_Desc_8', 'Pilih file dompet Anda -atau- Kunci Privat-nya dan buka dompet Anda. '), _defineProperty(_id$data, 'HELP_10_Desc_9', 'Tekan tombol "LAKSANAKAN SIGNED TRANSACTION/GENERATE SIGNED TRANSACTION". '), _defineProperty(_id$data, 'HELP_10_Desc_10', 'Data di bawah tombol ini akan terisi dengan signed transaction Anda. Salin ini dan pindah kembali ke komputer Anda yang online. '), _defineProperty(_id$data, 'HELP_10_Desc_11', 'Di komputer Anda yang online Anda, paste data signed transaction tadi ke bidang teks di langkah #3 dan klik kirim. Ini akan menyiarkan transaksi Anda ke jaringan. '), _defineProperty(_id$data, 'HELP_12_Title', '12) Bagaimana cara mengimpor dompet yang dibuat dengan MyEtherWallet ke dalam geth / Ethereum Wallet / Mist? '), _defineProperty(_id$data, 'HELP_12_Desc_1', 'Memakai file Geth/Mist JSON yang dibuat dari MyEtherWallet v2+.... '), _defineProperty(_id$data, 'HELP_12_Desc_2', 'Buka halaman "Lihat Info Dompet/View Wallet Info". '), _defineProperty(_id$data, 'HELP_12_Desc_3', 'Buka dompet Anda dengan menggunakan Kunci Privat atau file JSON yang **terenkripsi**. '), _defineProperty(_id$data, 'HELP_12_Desc_4', 'Buka halaman "Dompet Saya/My Wallets". '), _defineProperty(_id$data, 'HELP_12_Desc_5', 'Pilih dompet yang ingin Anda impor ke Mist, klik ikon "Lihat/View", masukkan password Anda, dan akses dompet Anda. '), _defineProperty(_id$data, 'HELP_12_Desc_6', 'Temukan bagian "Download JSON file - Geth/Mist Format (terenkripsi)". Tekan tombol "Download" di bawahnya. Anda akan dapatkan file keystore-nya. '), _defineProperty(_id$data, 'HELP_12_Desc_7', 'Buka aplikasi Ethereum Wallet. '), _defineProperty(_id$data, 'HELP_12_Desc_8', 'Di menu bar, buka "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_id$data, 'HELP_12_Desc_9', 'Ini akan membuka folder keystore Anda. Salin file yang baru saja Anda download (`UTC - 2016-04-14 ........ /`) ke folder keystore tersebut. '), _defineProperty(_id$data, 'HELP_12_Desc_10', 'Akun Anda akan segera muncul di bawah "Akun/Accounts". '), _defineProperty(_id$data, 'HELP_12_Desc_11', 'Menggunakan Kunci Privat yang tidak dienkripsi... '), _defineProperty(_id$data, 'HELP_12_Desc_12', 'Jika Anda belum memiliki Kunci Privat yang tidak dienkripsi, navigasikan ke halaman "Lihat Detil Dompet/View Wallet Details". '), _defineProperty(_id$data, 'HELP_12_Desc_13', 'Pilih file dompet Anda -atau- masukkan/paste Kunci Privat Anda untuk membuka dompet Anda. '), _defineProperty(_id$data, 'HELP_12_Desc_14', 'Salin/Copy Kunci Privat Anda (tidak terenkripsi). '), _defineProperty(_id$data, 'HELP_12_Desc_15', 'ika Anda menggunakan Mac: '), _defineProperty(_id$data, 'HELP_12_Desc_15b', 'ika Anda menggunakan PC: '), _defineProperty(_id$data, 'HELP_12_Desc_16', 'Buka Teks Edit dan paste Kunci Privat ini. '), _defineProperty(_id$data, 'HELP_12_Desc_17', 'Buka menu bar dan klik "Format" -> "Make Plain text". '), _defineProperty(_id$data, 'HELP_12_Desc_18', 'Simpan file ini ke `desktop/` as` nothing_special_delete_me.txt` Anda. Pastikan tertulis "UTF-8" dan "Jika tidak ada ekstensi pada nama file yang diberikan gunakan .txt" pada dialog save. '), _defineProperty(_id$data, 'HELP_12_Desc_19', 'Buka terminal dan jalankan perintah berikut: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_id$data, 'HELP_12_Desc_20', 'Anda akan diminta untuk membuat password baru. Ini adalah password yang akan Anda gunakan di geth/Ethereum Wallet/Mist setiap kali Anda akan mengirim transaksi, mohon diingat dan jangan sampai lupa. '), _defineProperty(_id$data, 'HELP_12_Desc_21', 'Setelah berhasil mengimpor, hapus `nothing_special_delete_me.txt` '), _defineProperty(_id$data, 'HELP_12_Desc_22', 'Saat Anda membuka aplikasi Wallet Etereum berikutnya, akun Anda akan tercantum di bawah "Akun/Accounts". '), _defineProperty(_id$data, 'HELP_12_Desc_23', 'Buka Notepad dan paste Kunci Privat-nya '), _defineProperty(_id$data, 'HELP_12_Desc_24', 'Simpan filenya dan beri nama `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_id$data, 'HELP_12_Desc_25', 'Jalankan perintah/command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_id$data, 'HELP_12_Desc_26', 'Anda akan diminta untuk membuat password baru. Ini adalah password yang akan Anda gunakan di geth/Ethereum Wallet/Mist setiap kali Anda akan mengirim transaksi, mohon diingat dan jangan sampai lupa. '), _defineProperty(_id$data, 'HELP_12_Desc_27', 'Setelah berhasil mengimpor, hapus `nothing_special_delete_me.txt` '), _defineProperty(_id$data, 'HELP_12_Desc_28', 'Saat Anda membuka aplikasi Wallet Etereum berikutnya, akun Anda akan tercantum di bawah "Akun/Accounts". '), _defineProperty(_id$data, 'HELP_13_Title', '13) Apa arti dari "Dana yang tersedia tidak mencukupi. Akun yang Anda pakai untuk mengirim transaksi tidak memiliki cukup dana. Diperlukan XXXXXXXXXXXXXXXXXXX dan tersedia: XXXXXXXXXXXXXXXX."? '), _defineProperty(_id$data, 'HELP_13_Desc_1', 'Ini artinya tidak tersedia cukup Ether di akun Anda untuk menutupi biaya gas. Setiap transaksi (termasuk token dan transaksi kontrak) memerlukan gas dan gas tersebut dibayarkan menggunakan Ether. Jumlah yang ditampilkan adalah jumlah yang dibutuhkan untuk menutupi biaya transaksi di Wei. Ambil nomor itu, bagi dengan `1000000000000000000`, dan pakai untuk mengurangi jumlah Ether yang ingin Anda kirim (jika Anda mencoba mengirim Eter). Ini akan memberi Anda jumlah Ether yang perlu Anda kirim ke akun tersebut untuk melakukan transaksi. '), _defineProperty(_id$data, 'HELP_14_Title', '14) Beberapa situs menggunakan metode randomisasi pembuatan Kunci Privat melalui gerakan mouse. MyEtherWallet.com tidak menggunakan metode ini. Apakah metode pembuatan angka random yang dipakai MyEtherWallet aman? '), _defineProperty(_id$data, 'HELP_14_Desc_1', 'Harus diakuai bahwa penggunaan gerakan mouse adalah cara yang pandai dan oleh karenanya banyak orang menyukainya, namun sebenarnya metode window.crypto memastikan lebih banya entropi dibanding gerakan mouse anda. Menggunakan gerakan mouse bukanlah tidak aman, hanya saja kami (dan banyak peneliti kripto lainnya) percaya pada window.crypto. Selain itu, MyEtherWallet.com dapat digunakan pada perangkat sentuh. Bisa dilihat [percakapan antara redditor yang marah dengan Vitalik Buterin terkait gerakan mouse versus window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) dan ini tautan [window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_id$data, 'HELP_15_Title', '15) Kenapa akun yang baru saja saya buat tidak muncul di explorer blockchain? (seperti: etherchain, etherscan) '), _defineProperty(_id$data, 'HELP_15_Desc_1', 'Account hanya akan muncul di explorer blockchain begitu akun memiliki aktivitas di dalamnya&mdash;misalnya, setelah Anda memindahkan beberapa Ether ke sana. '), _defineProperty(_id$data, 'HELP_16_Title', '16) Bagaimana cara memeriksa saldo akun saya? '), _defineProperty(_id$data, 'HELP_16_Desc_1', 'Anda bisa menggunakan eksplorer blockchain seperti [etherscan.io](https://etherscan.io/). Paste alamat Anda ke dalam search bar dan riwayat transaksi Anda akan ditampilkan. Contohnya, [akun donasi kami](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) dilihat di etherscan.io '), _defineProperty(_id$data, 'HELP_17_Title', '17) Mengapa saldo saya tidak muncul saat saya membuka dompet saya? '), _defineProperty(_id$data, 'HELP_17_Desc_1', 'Hal ini kemungkinan besar karena Anda berada di belakang firewall. API yang kami gunakan untuk mendapatkan saldo dan mengonversi saldo tersebut terkadang diblokir oleh firewall. Anda masih bisa mengirim transaksi, Anda hanya perlu menggunakan metode yang berbeda untuk melihat saldo tersebut, misalnya memakai etherscan.io '), _defineProperty(_id$data, 'HELP_18_Title', '18) Dimana file dompet geth saya? '), _defineProperty(_id$data, 'HELP_19_Title', '19) Dimana file dompet Mist saya? '), _defineProperty(_id$data, 'HELP_19_Desc_1', 'File Mist biasanya tersimpan di lokasi di atas, tapi lebih mudah untuk membuka Mist, dengan memilih "Accounts" di bilah atas/top bar, pilih "Backup", dan pilih "Accounts". Ini akan membuka folder tempat file Anda disimpan. '), _defineProperty(_id$data, 'HELP_20_Title', '20) Dimana file dompet pre-sale saya? '), _defineProperty(_id$data, 'HELP_20_Desc_1', 'Ya di lokasi tempat Anda menyimpannya. ;) Juga semestinya dikirim lewat email, jadi coba check dulu. Cari file dengan nama `"ethereum_wallet_backup.json"` dan pilih file tersebut. File dompet ini akan dienkripsi dengan password yang Anda buat saat melakukan pembelian pre-sale. '), _defineProperty(_id$data, 'HELP_21_Title', '21) Tidak bisakah seseorang mencoba memasukkan data Kunci Privat secara acak dari akun yang ada saldonya, dan kemudian mengirimnya ke alamat mereka sendiri? '), _defineProperty(_id$data, 'HELP_21_Desc_1', 'Jawaban singkatnya: bisa, tapi mencari Kunci Privat sebuah akun yang ada saldonya akan memakan waktu lebih lama dari usia alam semesta...jadi jawabannya adalah...tidak bisa. '), _defineProperty(_id$data, 'HELP_21_Desc_2', 'Jawaban panjang versi ELI5: Ethereum dibuat berdasarkan [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), dan lebih spesifiknya [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) yang sangat banyak digunakan, tidak hanya di Ethereum. Sebagian besar server dilindungi melalui ECC. Bitcoin juga menggunakannya, begitu pula SSH dan TLS dan banyak lagi lainnya. Secara spesifik, Ethereum memakai kunci 256-bit, yang lebih kuat dari 128-bit dan 192-bit, yang juga banyak penggunanya dan masih dianggap aman oleh para ahli. '), _defineProperty(_id$data, 'HELP_21_Desc_3', 'Dalam hal ini Anda memiliki Kunci Privat dan kunci publik. Kunci Privat dapat memperoleh kunci publik, namun kunci publik tidak dapat dikembalikan ke Kunci Privat. Fakta bahwa internet dan penyimpanan rahasia dunia menggunakan kriptografi ini berarti bahwa jika ada cara untuk mendapatkan Kunci Privat dari kunci publik, ether Anda yang hilang merupakan masalah paling tidak prioritas dibanding problematika manusia lainnya. '), _defineProperty(_id$data, 'HELP_21_Desc_4', 'Dengan segala penjelaan tadi, jika ada orang lain yang memiliki Kunci Privat Anda, maka YA mereka memang bisa mengirim ether dari akun Anda. Sama seperti jika seseorang memiliki password email Anda, mereka dapat membaca dan mengirim email Anda, atau password ke rekening bank Anda, mereka dapat melakukan transfer. Anda bisa mendownload Kunci Privat Anda yang versi Keystore yang merupakan Kunci Privat yang dienkripsi dengan kata sandi. Ini seperti memiliki password yang juga dilindungi oleh password lain. '), _defineProperty(_id$data, 'HELP_21_Desc_5', 'Dan YA, secara teori Anda bisa mencoba mengetikkan string dari 64 heksadesimal karakter sampai Anda mendapatkan yang cocok. Bahkan, orang yang cerdik bisa menulis sebuah program untuk mengecek Kunci Privat secara acak dengan sangat cepat. Teknik ini dikenal dengan nama "brute-forcing" atau "mining". Hal ini telah didiskuikan secara panjang lebar dan mendalam. Dengan beberapa server high end, mereka mungkin bisa mengecek lebih dari 1 Juta kunci/detik. Namun, bahkan dengan kecepatan tersebut, biaya menjalankan server tersebut masih jauh lebih tinggi darimanfaatnya. Kemungkinan besar Anda, dan cicit Anda, akan sudah meninggal dunia sebelum mendapatkan Kunci Privat yang cocok. '), _defineProperty(_id$data, 'HELP_21_Desc_6', 'Jika Anda tahu tentang Bitcoin, [ini akan memberikan gambaran:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *Untuk menggambarkan betapa kecil kemungkinannya untuk terjadi: misalkan setiap satoshi dari setiap bitcoin yang akan dihasilkan dikirim ke Kunci Privatnya sendiri yang unik. Kemungkinan bahwa di antara kunci-kunci tersebut terdapat dua yang sesuai dengan alamat yang sama kira-kira satu dari 100 quintillion. '), _defineProperty(_id$data, 'HELP_21_Desc_7', '[Jika Anda perlu yang lebih teknikal:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *Angka-angka ini tidak ada hubungannya dengan teknologi perangkatnya; angka tersebut adalah angka maksimum yang dimungkinkan secara termodinamika. Dan ini menyiratkan bahwa serangan brute force terhadap kunci 256-bit tidaklah dimungkinkan sampai ada komputer yang dibuat dari sesuatu selain materi dan menempati sesuatu selain ruang.. '), _defineProperty(_id$data, 'HELP_21_Desc_8', 'Tentu saja, ini dengan asumsi bahwa kunci dihasilkan dengan cara yang benar-benar acak & dengan entropi yang cukup. Kunci yang dihasilkan di sini memenuhi kriteria itu, seperti juga yang dihasilkan oleh Jaxx dan Mist/geth. Dompet ethereum semuanya cukup bagus. Kunci yang dihasilkan oleh brainwallet tidak, karena otak seseorang tidak mampu menciptakan angka yang benar-benar acak. Memang benar bahwa ada beberapa kekhawatiran mengenai kurangnya entropi atau seed yang tidak dihasilkan secara benar-benar acak yang terjadi di dunia Bitcoin, tapi itu adalah masalah terpisah yang dapat didiskusikan di lain kesempatan. '), _defineProperty(_id$data, 'HELP_SecCX_Title', 'Keamanan - MyEtherWallet CX '), _defineProperty(_id$data, 'HELP_SecCX_Desc_1', 'Dimanakah informasi saya disimpan oleh Chrome Extension ini? '), _defineProperty(_id$data, 'HELP_SecCX_Desc_2', 'Informasi yang dimasukkan ke Chrome Extension ini disimpan melalui [chrome.storage](http://chrome.storage/). - ini adalah tempat yang sama dengan password yang Anda simpan saat menyimpan password di Chrome. '), _defineProperty(_id$data, 'HELP_SecCX_Desc_3', 'Informasi apa saja yang disimpan? '), _defineProperty(_id$data, 'HELP_SecCX_Desc_4', 'Alamat, nickname, Kunci Privat disimpan di chrome.storage. Kunci Privat dienkripsi menggunakan kata sandi yang Anda pakai saat menambahkan dompet. Alamat dompet dan nickname tidak dienkripsi. '), _defineProperty(_id$data, 'HELP_SecCX_Desc_5', 'mengapa alamat dompet dan nickname tidak dienkripsi? '), _defineProperty(_id$data, 'HELP_SecCX_Desc_6', 'Jika kami mengenkripsi item ini, Anda harus memasukkan password setiap kali Anda ingin melihat saldo akun atau melihat nickname. Jiak Anda khawatir, kami sarankan Anda menggunakan MyEtherWallet.com, bukan Chrome Extension ini. '), _defineProperty(_id$data, 'HELP_Sec_Title', 'Keamanan '), _defineProperty(_id$data, 'HELP_Sec_Desc_1', 'Jika salah satu pertanyaan pertama Anda adalah "Mengapa saya harus percaya keapda orang-orang ini?", Ini sikap kehati-hatian yang baik. Mudah-mudahan informasi berikut ini akan membantu meringankan kekhawatiran anda. '), _defineProperty(_id$data, 'HELP_Sec_Desc_2', 'Kami sudah ada sejak 2015. Jika Anda mencari ["myetherwallet" di reddit](https://www.reddit.com/search?q=myetherwallet), Anda bisa melihat banyak orang yang sudah menggunakan layanan kami dan baik-baik saja. '), _defineProperty(_id$data, 'HELP_Sec_Desc_3', 'Kami tidak akan mengambil uang Anda atau mencuri Kunci Privat Anda. Tidak ada kode berbahaya di situs ini. Bahkan, fungsi "BUAT DOMPET/GENERATE WALLET" sepenihnya dilakukan di sisi klien. Ini berarti bahwa semua kode dieksekusi di **komputer Anda** dan tidak pernah disimpan dan dikirim di luar itu. '), _defineProperty(_id$data, 'HELP_Sec_Desc_4', 'Periksa URL ini -- Situs ini dijalankan melalui GitHub dan Anda bisa melihat sorce code nya di sini: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) ke [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_id$data, 'HELP_Sec_Desc_5', 'Untuk membuat dompet, Anda dapat mendownload [source code dan menjalankannya secara lokal](https://github.com/kvhnuke/etherwallet/releases/latest). Lihat #5 di atas. '), _defineProperty(_id$data, 'HELP_Sec_Desc_6', 'Cobalam emmbuat sebuah test dompet. Uji dan periksa serta lihat aktivitas apa saja yang sedang terjadi di jaringan. Cara termudah bagi Anda untuk melakukan hal ini adalah dengan klik kanan pada halamannya dan klik "inspect element". Buka "Network" tab. Buat sebuah Test Dompet. Anda akan buktikan nahwa tidak ada aktivitas jaringan. Anda mungkin melihat sesuatu yang terjadi seperti data:image/gif dan data:image/png. Itu adalah kode QR yang dihasilkan ... di komputer Anda ... oleh komputer Anda. Tidak ada bytes yang ditransfer. '), _defineProperty(_id$data, 'HELP_Sec_Desc_8', 'Jika Anda merasa tidak nyaman menggunakan fasilitas ini, maka janganlah dipakai. Kami membuat program iniuntuk membantu orang untuk membuat dompet dan melakukan transaksi tanpa perlu mendalami cara memakai command line atau menjalankan full node.. Sekali lagi, silakan menghubungi kami jika Anda memiliki masalah dan kami akan merespon selekasnya. Terima kasih! '), _defineProperty(_id$data, 'HELP_FAQ_Title', 'Jawaban-jawaban lain yang bermanfaat terkait Pertanyaan yang sering diajukan '), _defineProperty(_id$data, 'HELP_Contact_Title', 'Cara untuk menghubungi kami'), _id$data);
module.exports = id;
},{}],117:[function(require,module,exports){
// Italian
// Last sync with en.js : commit ff3b9cb53afbdf9936d4655f0a0af210f926daef
'use strict';
var _it$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var it = function it() {};
it.code = 'it';
it.data = (_it$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_it$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_it$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_it$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_it$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_it$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_it$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_it$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_it$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_it$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_it$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_it$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_it$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_it$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_it$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_it$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_it$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_it$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_it$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_it$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_it$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_it$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_it$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_it$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_it$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_it$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_it$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_it$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_it$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_it$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_it$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_it$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_it$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_it$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_it$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_it$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_it$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_it$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_it$data, 'x_CancelReplaceTx', 'Annulla o sostituisci la transazione'), _defineProperty(_it$data, 'x_CancelTx', 'Annulla transazione'), _defineProperty(_it$data, 'x_PasswordDesc', 'Questa password * crittografa * la chiave privata. Non funge da seme per generare nuove chiavi. **Avrai bisogno di questa password e della chiave privata per sbloccare il portafoglio.**'), _defineProperty(_it$data, 'x_ReadMore', 'Altre informazioni'), _defineProperty(_it$data, 'x_ReplaceTx', 'Sostituisci transazione'), _defineProperty(_it$data, 'x_TransHash', 'Hash della transazione'), _defineProperty(_it$data, 'x_TXFee', 'Commissione transazione'), _defineProperty(_it$data, 'x_TxHash', 'Hash transazione'), _defineProperty(_it$data, 'NAV_CheckTxStatus', 'Controlla lo stato della transazione'), _defineProperty(_it$data, 'NAV_TxStatus', 'Stato transazione'), _defineProperty(_it$data, 'tx_Details', 'Dettagli della transazione'), _defineProperty(_it$data, 'tx_Summary', 'Nei periodi di traffico intenso (come durante le ICO) le transazioni possono rimanere in attesa per ore, o anche giorni. Questo strumento cerca di darti la possibilità di trovare e "annullare" / sostituire queste transazioni. ** Non è normalmente possibile farlo. Non dovresti farci affidamento, e funziona solo quando i *pool* delle transazioni sono pieni. [Altre informazioni su questo strumento qui.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_it$data, 'tx_notFound', 'Transazione non trovata'), _defineProperty(_it$data, 'tx_notFound_1', 'Impossibile trovare questa transazione nel *pool* delle transazioni del nodo a cui sei connesso.'), _defineProperty(_it$data, 'tx_notFound_2', 'Se l\'hai appena inviata, attendi 15 secondi e premi di nuovo il pulsante "Controlla lo stato della transazione". '), _defineProperty(_it$data, 'tx_notFound_3', 'Potrebbe trovarsi ancora nel *pool* delle transazioni di un altro nodo, in attesa di essere inclusa in un blocco.'), _defineProperty(_it$data, 'tx_notFound_4', 'Utilizza il menu a discesa in alto a destra e scegli un altro nodo ETH (ad esempio `ETH (Etherscan.io)` o `ETH (Infura.io)` o `ETH (MyEtherWallet)`) e ricontrolla.'), _defineProperty(_it$data, 'tx_foundInPending', 'Transazione in sospeso trovata'), _defineProperty(_it$data, 'tx_foundInPending_1', 'La transazione è stata individuata nel *pool* delle transazioni del nodo a cui sei connesso. '), _defineProperty(_it$data, 'tx_foundInPending_2', 'Al momento è in sospeso (in attesa di essere inclusa in un blocco). '), _defineProperty(_it$data, 'tx_foundInPending_3', 'Forse è possibile "annullare" o sostituire questa transazione. Sblocca il portafoglio qui sotto.'), _defineProperty(_it$data, 'tx_FoundOnChain', 'Transazione trovata'), _defineProperty(_it$data, 'tx_FoundOnChain_1', 'La transazione è stata correttamente inclusa in un blocco e ora si trova sulla *blockchain*.'), _defineProperty(_it$data, 'tx_FoundOnChain_2', '**Se vedi un `( ! )` rosso, un messaggio di errore `BAD INSTRUCTION` o `OUT OF GAS`**, significa che la transazione non è stata correttamente *inviata*. Non puoi annullare o sostituire questa transazione. Puoi però inviarne una nuova. Se hai ricevuto un messaggio di errore "Out of Gas", dovresti raddoppiare il limite gas che avevi indicato in origine.'), _defineProperty(_it$data, 'tx_FoundOnChain_3', '**Se non vedi errori, la transazione è stata inviata correttamente.** I tuoi ETH o i tuoi token sono dove li hai inviati. Se non vedi questi ETH o token nell\'altro portafoglio / nel conto della piattaforma di scambio, e se sono passate più di 24 ore dall\'invio, [contatta quel servizio esterno](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Invia loro il *link* alla transazione e chiedi, cortesemente, di controllare la tua situazione.'), _defineProperty(_it$data, 'GEN_Help_1', 'Usa il tuo'), _defineProperty(_it$data, 'GEN_Help_2', 'per accedere al tuo conto.'), _defineProperty(_it$data, 'GEN_Help_3', 'Il tuo dispositivo * è * il tuo portafoglio.'), _defineProperty(_it$data, 'GEN_Help_4', 'Guide & FAQ'), _defineProperty(_it$data, 'GEN_Help_5', 'Come creare un portafoglio'), _defineProperty(_it$data, 'GEN_Help_6', 'Per iniziare'), _defineProperty(_it$data, 'GEN_Help_7', 'Mantienilo al sicuro · Fai un backup · Non condividerlo con nessuno · Non perderlo · Non si può ripristinare se lo perdi.'), _defineProperty(_it$data, 'GEN_Help_8', 'Non riesci a scaricare il file? '), _defineProperty(_it$data, 'GEN_Help_9', 'Prova ad usare Google Chrome '), _defineProperty(_it$data, 'GEN_Help_10', 'Fai clic col destro e scegli "Salva con nome". Nome file: '), _defineProperty(_it$data, 'GEN_Help_11', 'Non aprire questo file sul tuo computer '), _defineProperty(_it$data, 'GEN_Help_12', 'Usalo per sbloccare il portafoglio tramite MyEtherWallet (o Mist, Geth, Parity e altri client.) '), _defineProperty(_it$data, 'GEN_Help_13', 'Come fare il backup del file Keystore '), _defineProperty(_it$data, 'GEN_Help_14', 'Che cosa sono tutti questi formati? '), _defineProperty(_it$data, 'GEN_Help_15', 'Evitare la perdita &amp; il furto dei tuoi fondi.'), _defineProperty(_it$data, 'GEN_Help_16', 'Che cosa sono tutti questi formati?'), _defineProperty(_it$data, 'GEN_Help_17', 'Perché dovrei farlo?'), _defineProperty(_it$data, 'GEN_Help_18', 'Per avere un backup secondario.'), _defineProperty(_it$data, 'GEN_Help_19', 'Nel caso ti dimenticassi la password.'), _defineProperty(_it$data, 'GEN_Help_20', 'Portafoglio offline'), _defineProperty(_it$data, 'GET_ConfButton', 'Ho capito. Continua.'), _defineProperty(_it$data, 'GEN_Label_5', 'Salva la tua `chiave privata`. '), _defineProperty(_it$data, 'GEN_Unlock', 'Sblocca il portafoglio per vedere l\'indirizzo'), _defineProperty(_it$data, 'GAS_PRICE_Desc', 'Il prezzo gas è la somma che paghi per unità di gas. `Commissione transazione = prezzo gas * limite gas` e si paga ai *miner* perché includano la tua transazione in un blocco. Più alto il prezzo gas = più veloce la transazione, ma più costosa. Di default è `41 GWEI`.'), _defineProperty(_it$data, 'GAS_LIMIT_Desc', 'Il limite gas è la quantità di gas da inviare con la transazione. `Commissione transazione` = prezzo gas * limite gas e si paga ai *miner* perché includano la tua transazione in un blocco. Aumentare questo numero non farà in modo che la tua transazione sia inclusa prima. Invio di ETH = `21000`. Invio di token = ~`200000`.'), _defineProperty(_it$data, 'NONCE_Desc', 'Il *nonce* è il numero di transazioni inviate da un certo indirizzo. Fa in modo che le transazioni siano inviate nel giusto ordine e non più di una volta.'), _defineProperty(_it$data, 'TXFEE_Desc', 'La commissione transazione si paga ai *miner* perché includano la transazione in un blocco. Si calcola come `limite gas` * `prezzo gas`. [Puoi calcolare la conversione GWEI -> ETH qui](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_it$data, 'NAV_AddWallet', 'Aggiungi portafoglio '), _defineProperty(_it$data, 'NAV_BulkGenerate', 'Generazione multipla '), _defineProperty(_it$data, 'NAV_Contact', 'Contatti '), _defineProperty(_it$data, 'NAV_Contracts', 'Contratti '), _defineProperty(_it$data, 'NAV_DeployContract', 'Pubblica contratto '), _defineProperty(_it$data, 'NAV_ENS', 'ENS'), _defineProperty(_it$data, 'NAV_GenerateWallet_alt', 'Nuovo portafoglio '), _defineProperty(_it$data, 'NAV_GenerateWallet', 'Crea nuovo portafoglio '), _defineProperty(_it$data, 'NAV_Help', 'Aiuto '), _defineProperty(_it$data, 'NAV_InteractContract', 'Interagisci con un contratto '), _defineProperty(_it$data, 'NAV_Multisig', 'Multifirma '), _defineProperty(_it$data, 'NAV_MyWallets', 'I miei portafogli '), _defineProperty(_it$data, 'NAV_Offline', 'Invia offline '), _defineProperty(_it$data, 'NAV_SendEther', 'Invia ether e token '), _defineProperty(_it$data, 'NAV_SendTokens', 'Invia token '), _defineProperty(_it$data, 'NAV_SignMsg', 'Firma messaggio '), _defineProperty(_it$data, 'NAV_Swap', 'Scambia '), _defineProperty(_it$data, 'NAV_ViewWallet', 'Informazioni portafoglio '), _defineProperty(_it$data, 'NAV_YourWallets', 'I tuoi portafogli '), _defineProperty(_it$data, 'x_Access', 'Accedi '), _defineProperty(_it$data, 'x_AddessDesc', 'Il tuo indirizzo può anche essere chiamato `Numero di conto` o `Chiave pubblica`. È ciò che condividi con chi ti vuole inviare degli ether o dei token. Individua l\'icona colorata dell\'indirizzo. Assicurati che corrisponda al tuo portafoglio cartaceo e controllala ogni volta che inserisci il tuo indirizzo da qualche parte.'), _defineProperty(_it$data, 'x_Address', 'Il tuo indirizzo '), _defineProperty(_it$data, 'x_Cancel', 'Annulla '), _defineProperty(_it$data, 'x_CSV', 'File CSV (non crittografato) '), _defineProperty(_it$data, 'x_Download', 'Download '), _defineProperty(_it$data, 'x_Json', 'File JSON (non crittografato) '), _defineProperty(_it$data, 'x_JsonDesc', 'Questa è la tua chiave privata in formato JSON non crittografato. Significa che non hai bisogno della password, ma chiunque trovi questo file JSON potrà avere accesso al tuo portafoglio e ai tuoi ether senza password. '), _defineProperty(_it$data, 'x_Keystore', 'File Keystore (UTC / JSON · Consigliato · Crittografato) '), _defineProperty(_it$data, 'x_Keystore2', 'File Keystore (UTC / JSON) '), _defineProperty(_it$data, 'x_KeystoreDesc', 'Questo file Keystore è compatibile con il formato usato da Mist, in modo da poterlo facilmente importare in futuro. È il file consigliato da scaricare e conservare. '), _defineProperty(_it$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_it$data, 'x_Mnemonic', 'Frase mnemonica '), _defineProperty(_it$data, 'x_ParityPhrase', 'Frase di Parity '), _defineProperty(_it$data, 'x_Password', 'Password '), _defineProperty(_it$data, 'x_Print', 'Stampa portafoglio cartaceo '), _defineProperty(_it$data, 'x_PrintDesc', 'Suggerimento Pro: Fai clic su stampa e salvalo come PDF, anche se non hai una stampante! '), _defineProperty(_it$data, 'x_PrintShort', 'Stampa '), _defineProperty(_it$data, 'x_PrivKey', 'Chiave privata (non crittografata) '), _defineProperty(_it$data, 'x_PrivKey2', 'Chiave privata '), _defineProperty(_it$data, 'x_PrivKeyDesc', 'Questa è la versione testuale non crittografata della tua chiave privata, il che significa che non serve una password. Se qualcuno trovasse la tua chiave privata non crittografata potrebbe avere accesso al tuo portafoglio senza una password. Per questa ragione di solito si consigliano le versioni crittografate. '), _defineProperty(_it$data, 'x_Save', 'Salva '), _defineProperty(_it$data, 'x_TXT', 'File TXT (non crittografato) '), _defineProperty(_it$data, 'x_Wallet', 'Portafoglio '), _defineProperty(_it$data, 'MEW_Warning_1', 'Controlla sempre l\'URL prima di accedere al tuo portafoglio o di crearne uno nuovo. Fai attenzione ai siti di phishing! '), _defineProperty(_it$data, 'CX_Warning_1', 'Assicurati di avere **dei backup esterni** di ogni portafoglio salvato qui. Ci sono molte cose che potrebbero causare la perdita dei dati di questa estensione di Chrome, come la disinstallazione e reinstallazione dell\'estensione. Questa estensione è un mezzo per accedere facilmente ai tuoi portafogli, **non** un modo di salvarli al sicuro. '), _defineProperty(_it$data, 'MEW_Tagline', 'Portafoglio ether JavaScript lato client Open Source '), _defineProperty(_it$data, 'CX_Tagline', 'Portafoglio ether JavaScript lato client Open Source (Estensione Chrome) '), _defineProperty(_it$data, 'FOOTER_1', 'Interfaccia gratuita, open source, lato client per generare portafogli Ethereum e altro. Interagisci con la *blockchain* Ethereum facilmente e in modo sicuro. Controlla bene l\'URL ( myetherwallet.com ) prima di sbloccare un portafoglio.'), _defineProperty(_it$data, 'FOOTER_1b', 'Creato da '), _defineProperty(_it$data, 'FOOTER_2', 'Donazioni molto apprezzate: '), _defineProperty(_it$data, 'FOOTER_3', 'Generazione portafogli lato client da parte di '), _defineProperty(_it$data, 'FOOTER_4', 'Dichiarazione di non responsabilità '), _defineProperty(_it$data, 'sidebar_AccountInfo', 'Informazioni conto '), _defineProperty(_it$data, 'sidebar_AccountAddr', 'Indirizzo conto '), _defineProperty(_it$data, 'sidebar_AccountBal', 'Saldo conto '), _defineProperty(_it$data, 'sidebar_TokenBal', 'Saldo token '), _defineProperty(_it$data, 'sidebar_Equiv', 'Valori equivalenti '), _defineProperty(_it$data, 'sidebar_TransHistory', 'Storico transazioni '), _defineProperty(_it$data, 'sidebar_donation', 'MyEtherWallet è un servizio gratuito e open-source votato alla tua privacy e sicurezza. Più donazioni riceviamo, più tempo dedichiamo a creare nuove funzionalità, considerare i tuoi commenti, e darti ciò che vuoi. Siamo solo due persone che provano a cambiare il mondo. Ci aiuti? '), _defineProperty(_it$data, 'sidebar_donate', 'Dona '), _defineProperty(_it$data, 'sidebar_thanks', 'GRAZIE!!! '), _defineProperty(_it$data, 'sidebar_DisplayOnTrezor', 'Visualizza indirizzo sul TREZOR'), _defineProperty(_it$data, 'sidebar_DisplayOnLedger', 'Visualizza indirizzo sul Ledger'), _defineProperty(_it$data, 'decrypt_Access', 'Come vuoi accedere al tuo portafoglio? '), _defineProperty(_it$data, 'decrypt_Title', 'Seleziona il formato della tua chiave privata: '), _defineProperty(_it$data, 'decrypt_Select', 'Seleziona un portafoglio: '), _defineProperty(_it$data, 'ADD_Label_1', 'Cosa vuoi fare? '), _defineProperty(_it$data, 'ADD_Radio_1', 'Genera un nuovo portafoglio '), _defineProperty(_it$data, 'ADD_Radio_2', 'Seleziona il file del tuo portafoglio (Keystore / JSON) '), _defineProperty(_it$data, 'ADD_Radio_2_alt', 'Seleziona il file del tuo portafoglio '), _defineProperty(_it$data, 'ADD_Radio_2_short', 'SELEZIONA FILE PORTAFOGLIO... '), _defineProperty(_it$data, 'ADD_Radio_3', 'Incolla/Inserisci la tua chiave privata '), _defineProperty(_it$data, 'ADD_Radio_4', 'Aggiungi un conto da osservare '), _defineProperty(_it$data, 'ADD_Radio_5', 'Incolla/Inserisci la tua frase mnemonica '), _defineProperty(_it$data, 'ADD_Radio_5_Path', 'Seleziona un percorso di derivazione HD '), _defineProperty(_it$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_it$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_it$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_it$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_it$data, 'ADD_Radio_5_PathCustom', 'altro'), _defineProperty(_it$data, 'ADD_Label_2', 'Crea un nome: '), _defineProperty(_it$data, 'ADD_Label_3', 'Il portafoglio è crittografato. Inserire la password '), _defineProperty(_it$data, 'ADD_Label_4', 'Aggiungi un conto da osservare '), _defineProperty(_it$data, 'ADD_Warning_1', 'Puoi aggiungere qualunque conto da "osservare" nella scheda dei portafogli senza caricare una chiave privata. Ciò ** non ** significa che avrai accesso a quel portafoglio, né che potrai trasferire gli Ether lì contenuti. '), _defineProperty(_it$data, 'ADD_Label_5', 'Inserisci l\'indirizzo '), _defineProperty(_it$data, 'ADD_Label_6', 'Sblocca portafoglio '), _defineProperty(_it$data, 'ADD_Label_6_short', 'Sblocca '), _defineProperty(_it$data, 'ADD_Label_7', 'Aggiungi conto '), _defineProperty(_it$data, 'ADD_Label_8', 'Password (facoltativo): '), _defineProperty(_it$data, 'GEN_desc', 'Se vuoi generare più portafogli, puoi farlo qui '), _defineProperty(_it$data, 'GEN_Label_1', 'Inserisci una password'), _defineProperty(_it$data, 'GEN_Placeholder_1', 'NON dimenticarti di salvarla! '), _defineProperty(_it$data, 'GEN_SuccessMsg', 'Perfetto! Il tuo portafoglio è stato generato. '), _defineProperty(_it$data, 'GEN_Label_2', 'Salva il file `Keystore`. '), _defineProperty(_it$data, 'GEN_Label_3', 'Salva il tuo indirizzo. '), _defineProperty(_it$data, 'GEN_Label_4', 'Stampa il portafoglio cartaceo o un QR code. '), _defineProperty(_it$data, 'BULK_Label_1', 'Numero di portafogli da generare '), _defineProperty(_it$data, 'BULK_Label_2', 'Genera portafogli '), _defineProperty(_it$data, 'BULK_SuccessMsg', 'Perfetto! I tuoi portafogli sono stati generati. '), _defineProperty(_it$data, 'SEND_addr', 'Indirizzo destinatario '), _defineProperty(_it$data, 'SEND_amount', 'Importo da inviare '), _defineProperty(_it$data, 'SEND_amount_short', 'Importo '), _defineProperty(_it$data, 'SEND_custom', 'Aggiungi altro token '), _defineProperty(_it$data, 'SEND_gas', 'Gas '), _defineProperty(_it$data, 'SEND_generate', 'Genera transazione '), _defineProperty(_it$data, 'SEND_raw', 'Transazione grezza '), _defineProperty(_it$data, 'SEND_signed', 'Transazione firmata '), _defineProperty(_it$data, 'SEND_trans', 'Invia transazione '), _defineProperty(_it$data, 'SEND_TransferTotal', 'Invia l\'intero saldo '), _defineProperty(_it$data, 'SENDModal_Title', 'Attenzione! '), _defineProperty(_it$data, 'SENDModal_Content_1', 'Stai per inviare '), _defineProperty(_it$data, 'SENDModal_Content_2', 'all\'indirizzo '), _defineProperty(_it$data, 'SENDModal_Content_3', 'Sei sicuro di volerlo fare? '), _defineProperty(_it$data, 'SENDModal_Content_4', 'NOTA: Se ricevi un errore, molto probabilmente dovrai aggiungere ether al tuo conto per coprire il costo del gas necessario ad inviare i token. Il gas si paga in ether. '), _defineProperty(_it$data, 'SENDModal_No', 'No, tiratemi fuori da qui! '), _defineProperty(_it$data, 'SENDModal_Yes', 'Sì, sono sicuro! Esegui la transazione. '), _defineProperty(_it$data, 'TOKEN_Addr', 'Indirizzo del token contratto'), _defineProperty(_it$data, 'TOKEN_Symbol', 'Simbolo del token '), _defineProperty(_it$data, 'TOKEN_Dec', 'Decimali '), _defineProperty(_it$data, 'TOKEN_show', 'Mostra tutti i token '), _defineProperty(_it$data, 'TOKEN_hide', 'Nascondi token '), _defineProperty(_it$data, 'TRANS_desc', 'Se invece volevi inviare dei token, utilizza la pagina "Invia token". '), _defineProperty(_it$data, 'TRANS_advanced', '+Avanzate: aggiungi dati '), _defineProperty(_it$data, 'TRANS_data', 'Dati '), _defineProperty(_it$data, 'TRANS_gas', 'Limite gas '), _defineProperty(_it$data, 'TRANS_sendInfo', 'Una transazione standard che utilizza 21000 gas costerà 0,000441 ETH. Utilizziamo un prezzo del gas leggermente al di sopra del minimo pari a 0,000000021 ETH per assicurarci che venga elaborata velocemente. Noi non prendiamo commissioni. '), _defineProperty(_it$data, 'OFFLINE_Title', 'Genera & invia una transazione offline '), _defineProperty(_it$data, 'OFFLINE_Desc', 'Per generare transazioni offline sono necessari tre passaggi. Svolgerai i passi 1 e 3 su un computer online, e il passo 2 su un computer offline/*air-gapped*. Questo per assicurarsi che le tue chiavi private non tocchino un dispositivo connesso a Internet. '), _defineProperty(_it$data, 'OFFLLINE_Step1_Title', 'Passo 1: generazione delle informazioni (computer online) '), _defineProperty(_it$data, 'OFFLINE_Step1_Button', 'Genera informazioni '), _defineProperty(_it$data, 'OFFLINE_Step1_Label_1', 'Indirizzo mittente '), _defineProperty(_it$data, 'OFFLINE_Step1_Label_2', 'Nota: Questo è l\'indirizzo MITTENTE, non l\'indirizzo DESTINATARIO. Il *nonce* è generato dal conto di origine. Se stessi usando un computer *air-gapped*, sarebbe l\'indirizzo del conto offline. '), _defineProperty(_it$data, 'OFFLINE_Step2_Title', 'Passo 2: generazione della transazione (computer offline) '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_1', 'Indirizzo destinatario '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_2', 'Valore / importo da inviare '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_3', 'Prezzo gas '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_3b', 'Questo valore è stato mostrato nel passo 1 sul computer online. '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_4', 'Limite gas '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_4b', '21000 è il limite gas predefinito. Quando invii a contratti o aggiungi dati potresti aver bisogno di un valore maggiore. Eventuale gas non utilizzato ti sarà restituito. '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_5b', 'Questo valore è stato mostrato nel passo 1 sul computer online. '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_6', 'Dati '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_6b', 'Facoltativo. I dati sono usati spesso nelle transazioni inviate ai contratti. '), _defineProperty(_it$data, 'OFFLINE_Step2_Label_7', 'Inserisci / seleziona la tua chiave privata o JSON. '), _defineProperty(_it$data, 'OFFLINE_Step3_Title', 'Passo 3: Invia / pubblica la transazione (computer online) '), _defineProperty(_it$data, 'OFFLINE_Step3_Label_1', 'Incolla la transazione firmata dal passo 2 qui e premi il pulsante "INVIA TRANSAZIONE". '), _defineProperty(_it$data, 'MSG_message', 'Messaggio '), _defineProperty(_it$data, 'MSG_date', 'Data '), _defineProperty(_it$data, 'MSG_signature', 'Firma '), _defineProperty(_it$data, 'MSG_verify', 'Verifica messaggio '), _defineProperty(_it$data, 'MSG_info1', 'Inserisci la data corrente per far sì che la firma non possa essere riutilizzata in un altro momento. '), _defineProperty(_it$data, 'MSG_info2', 'Indica il tuo nickname e dove lo usi in modo che qualcun altro non possa usarlo. '), _defineProperty(_it$data, 'MSG_info3', 'Includi una ragione specifica per il messaggio, così che non possa essere riutilizzato per uno scopo diverso. '), _defineProperty(_it$data, 'MYWAL_Nick', 'Nome portafoglio '), _defineProperty(_it$data, 'MYWAL_Address', 'Indirizzo portafoglio '), _defineProperty(_it$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_it$data, 'MYWAL_Edit', 'Modifica '), _defineProperty(_it$data, 'MYWAL_View', 'Mostra '), _defineProperty(_it$data, 'MYWAL_Remove', 'Rimuovi '), _defineProperty(_it$data, 'MYWAL_RemoveWal', 'Rimozione portafoglio: '), _defineProperty(_it$data, 'MYWAL_WatchOnly', 'I tuoi conti osservati '), _defineProperty(_it$data, 'MYWAL_Viewing', 'Dettagli portafoglio '), _defineProperty(_it$data, 'MYWAL_Hide', 'Nascondi informazioni portafoglio '), _defineProperty(_it$data, 'MYWAL_Edit_2', 'Modifica portafoglio '), _defineProperty(_it$data, 'MYWAL_Name', 'Nome portafoglio '), _defineProperty(_it$data, 'MYWAL_Content_1', 'Attenzione! Stai per rimuovere il tuo portafoglio '), _defineProperty(_it$data, 'MYWAL_Content_2', 'Assicurati di aver **salvato la chiave privata e/o il file Keystore e la password** prima di rimuoverlo. '), _defineProperty(_it$data, 'MYWAL_Content_3', 'Se vorrai utilizzare questo portafoglio con MyEtherWallet CX in futuro, dovrai ri-aggiungerlo manualmente tramite la chiave privata/JSON e password. '), _defineProperty(_it$data, 'VIEWWALLET_Subtitle', 'Qui è possibile scaricare diverse versioni delle chiavi private e ristampare il portafoglio cartaceo. Potresti volerlo fare per [importare il tuo conto in Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Se vuoi controllare il tuo saldo, ti consigliamo di utilizzare uno strumento per esplorare la *blockchain* come [etherscan.io](https://etherscan.io/). '), _defineProperty(_it$data, 'VIEWWALLET_Subtitle_Short', 'Qui è possibile scaricare diverse versioni delle chiavi private e ristampare il portafoglio cartaceo. '), _defineProperty(_it$data, 'VIEWWALLET_SuccessMsg', 'Perfetto! Questi sono i dettagli del tuo portafoglio. '), _defineProperty(_it$data, 'VIEWWALLET_ShowPrivKey', '(mostra)'), _defineProperty(_it$data, 'VIEWWALLET_HidePrivKey', '(nascondi)'), _defineProperty(_it$data, 'MNEM_1', 'Seleziona l\'indirizzo col quale vuoi interagire. '), _defineProperty(_it$data, 'MNEM_2', 'Con una singola frase mnemonica puoi avere accesso a un certo numero di portafogli / indirizzi. Seleziona l\'indirizzo con il quale vuoi interagire in questo momento. '), _defineProperty(_it$data, 'MNEM_more', 'Altri indirizzi '), _defineProperty(_it$data, 'MNEM_prev', 'Indirizzi precedenti '), _defineProperty(_it$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_it$data, 'ADD_Ledger_0a', 'Devi accedere a MyEtherWallet tramite una connessione sicura (SSL / HTTPS) per poterti collegare. '), _defineProperty(_it$data, 'ADD_Ledger_0b', 'Riapri MyEtherWallet utilizzando [Chrome](https://www.google.com/chrome/browser/desktop/) o [Opera](https://www.opera.com/) '), _defineProperty(_it$data, 'ADD_Ledger_1', 'Collega il tuo Ledger Wallet '), _defineProperty(_it$data, 'ADD_Ledger_2', 'Apri l\'applicazione Ethereum (o l\'applicazione di un contratto) '), _defineProperty(_it$data, 'ADD_Ledger_2_Exp', 'Apri l\'applicazione Expanse (o l\'applicazione di un contratto) '), _defineProperty(_it$data, 'ADD_Ledger_2_Ubq', 'Apri l\'applicazione Ubiq (o l\'applicazione di un contratto) '), _defineProperty(_it$data, 'ADD_Ledger_3', 'Verifica che il supporto browser sia abilitato nelle impostazioni '), _defineProperty(_it$data, 'ADD_Ledger_4', 'Se non c\'è l\'opzione per il supporto browser nelle impostazioni, verifica di avere un [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_it$data, 'ADD_Ledger_scan', 'Collegati al Ledger Wallet '), _defineProperty(_it$data, 'ADD_MetaMask', 'Collegati a MetaMask '), _defineProperty(_it$data, 'x_Trezor', 'TREZOR '), _defineProperty(_it$data, 'ADD_Trezor_scan', 'Collegati al TREZOR '), _defineProperty(_it$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_it$data, 'ADD_DigitalBitbox_0a', 'Riapri MyEtherWallet su una connessione sicura (SSL) '), _defineProperty(_it$data, 'ADD_DigitalBitbox_0b', 'Riapri MyEtherWallet utilizzando [Chrome](https://www.google.com/chrome/browser/desktop/) o [Opera](https://www.opera.com/) '), _defineProperty(_it$data, 'ADD_DigitalBitbox_scan', 'Collega il tuo Digital Bitbox '), _defineProperty(_it$data, 'CX_error_1', 'Non c\'è nessun portafoglio. Fai clic su ["Aggiungi portafoglio"](/cx-wallet.html#add-wallet) per aggiungerne uno! '), _defineProperty(_it$data, 'CX_quicksend', 'Invio rapido '), _defineProperty(_it$data, 'CONTRACT_Title', 'Indirizzo contratto '), _defineProperty(_it$data, 'CONTRACT_Title_2', 'Seleziona contratto esistente '), _defineProperty(_it$data, 'CONTRACT_Json', 'Interfaccia ABI / JSON '), _defineProperty(_it$data, 'CONTRACT_Interact_Title', 'Leggi da / Scrivi su contratto '), _defineProperty(_it$data, 'CONTRACT_Interact_CTA', 'Seleziona una funzione '), _defineProperty(_it$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_it$data, 'CONTRACT_Read', 'LEGGI '), _defineProperty(_it$data, 'CONTRACT_Write', 'SCRIVI '), _defineProperty(_it$data, 'DEP_generate', 'Genera bytecode '), _defineProperty(_it$data, 'DEP_generated', 'Bytecode generato '), _defineProperty(_it$data, 'DEP_signtx', 'Firma transazione '), _defineProperty(_it$data, 'DEP_interface', 'Interfaccia generata '), _defineProperty(_it$data, 'NODE_Title', 'Configura nodo personalizzato'), _defineProperty(_it$data, 'NODE_Subtitle', 'Per collegarti a un nodo locale...'), _defineProperty(_it$data, 'NODE_Warning', 'Il tuo nodo deve utilizzare HTTPS per potertici collegare da MyEtherWallet.com. Puoi [scaricare il repository di MyEtherWallet ed eseguirlo in locale](https://github.com/kvhnuke/etherwallet/releases/latest) per collegarti ad altri tipi di nodo. Oppure, ottieni un certificato SSL gratuito tramite [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_it$data, 'NODE_Name', 'Nome del nodo'), _defineProperty(_it$data, 'NODE_Port', 'Porta del nodo'), _defineProperty(_it$data, 'NODE_CTA', 'Salva & utilizza il nodo'), _defineProperty(_it$data, 'SWAP_rates', "Tassi correnti "), _defineProperty(_it$data, 'SWAP_init_1', "Voglio scambiare i miei "), _defineProperty(_it$data, 'SWAP_init_2', " per "), _defineProperty(_it$data, 'SWAP_init_CTA', "Facciamolo! "), _defineProperty(_it$data, 'SWAP_information', "Il tuo riepilogo "), _defineProperty(_it$data, 'SWAP_send_amt', "Importo da inviare "), _defineProperty(_it$data, 'SWAP_rec_amt', "Importo da ricevere "), _defineProperty(_it$data, 'SWAP_your_rate', "Il tuo tasso "), _defineProperty(_it$data, 'SWAP_rec_add', "Indirizzo di ricezione "), _defineProperty(_it$data, 'SWAP_start_CTA', "Avvia scambio "), _defineProperty(_it$data, 'SWAP_ref_num', "Il tuo codice di riferimento "), _defineProperty(_it$data, 'SWAP_time', "Tempo rimanente per l\'invio "), _defineProperty(_it$data, 'SWAP_elapsed', "Tempo trascorso dall\'invio "), _defineProperty(_it$data, 'SWAP_progress_1', "Ordine creato "), _defineProperty(_it$data, 'SWAP_progress_2', "In attesa dei tuoi "), _defineProperty(_it$data, 'SWAP_progress_3', "ricevuti! "), _defineProperty(_it$data, 'SWAP_progress_4', "Invio dei tuoi {{orderResult.output.currency}} "), _defineProperty(_it$data, 'SWAP_progress_5', "Ordine completato "), _defineProperty(_it$data, 'SWAP_order_CTA', "Invia "), _defineProperty(_it$data, 'SWAP_unlock', "Sblocca il tuo portafoglio per inviare ETH o token direttamente da questa pagina. "), _defineProperty(_it$data, 'ERROR_0', 'Ti preghiamo di inserire una quantità valida. '), _defineProperty(_it$data, 'ERROR_1', 'La password deve essere di almeno 9 caratteri. Assicurati che sia robusta. '), _defineProperty(_it$data, 'ERROR_2', 'Siamo spiacenti! Non riconosciamo questo tipo di file portafoglio. '), _defineProperty(_it$data, 'ERROR_3', 'Questo non è un file portafoglio valido. '), _defineProperty(_it$data, 'ERROR_4', 'Questa unità non esiste, ti preghiamo di usare una delle seguenti unità '), _defineProperty(_it$data, 'ERROR_5', 'Inserisci un indirizzo valido. '), _defineProperty(_it$data, 'ERROR_6', 'Inserisci una password valida. '), _defineProperty(_it$data, 'ERROR_7', 'Inserisci dei decimali validi. (Deve essere un intero. Prova 0-18.) '), _defineProperty(_it$data, 'ERROR_8', 'Inserisci un limite gas valido. (Deve essere un intero. Prova 21000-4000000.) '), _defineProperty(_it$data, 'ERROR_9', 'Inserisci un valore valido per i dati. (Deve essere una stringa esadecimale.) '), _defineProperty(_it$data, 'ERROR_10', 'Inserisci prezzo valido per il gas. (Deve essere un intero. Prova 20 GWEI / 20000000000 WEI.) '), _defineProperty(_it$data, 'ERROR_11', 'Inserisci un nonce valido. (Deve essere un intero.) '), _defineProperty(_it$data, 'ERROR_12', 'Transazione firmata non valida. '), _defineProperty(_it$data, 'ERROR_13', 'Esiste già un portafoglio con questo nome. '), _defineProperty(_it$data, 'ERROR_14', 'Portafoglio non trovato. '), _defineProperty(_it$data, 'ERROR_15', 'Ops. Sembra che non esista ancora una proposta con questo ID o c\'è un errore nella lettura della proposta. '), _defineProperty(_it$data, 'ERROR_16', 'C\'è già un portafoglio con questo indirizzo fra quelli salvati. Controlla la pagina dei tuoi portafogli. '), _defineProperty(_it$data, 'ERROR_17', 'L\'account dal quale stai provando ad inviare la transazione non ha abbastanza fondi. Se stai inviando token, ti servono 0,01 ETH nel conto per coprire i costi del gas. '), _defineProperty(_it$data, 'ERROR_18', 'Questa transazione consumerebbe tutto il gas. Ciò significa che hai già votato questa proposta o che il periodo di discussione è terminato. '), _defineProperty(_it$data, 'ERROR_19', 'Inserisci un simbolo valido '), _defineProperty(_it$data, 'ERROR_20', 'Non è un token ERC-20 valido. '), _defineProperty(_it$data, 'ERROR_21', 'Impossibile eseguire una stima del gas necessario. Non ci sono abbastanza fondi nel conto, oppure l\'indirizzo del contratto ricevente genererebbe un errore. Puoi inserire il gas manualmente e procedere. Il messaggio di errore al momento dell\'invio potrebbe contenere ulteriori informazioni. '), _defineProperty(_it$data, 'ERROR_22', 'Inserisci un nome di nodo valido '), _defineProperty(_it$data, 'ERROR_23', 'Inserisci un URL valido. Se usi https, l\'URL deve cominciare con https'), _defineProperty(_it$data, 'ERROR_24', 'Inserisci una porta valida '), _defineProperty(_it$data, 'ERROR_25', 'Inserisci un ID catena valido '), _defineProperty(_it$data, 'ERROR_26', 'Inserisci una ABI valida '), _defineProperty(_it$data, 'ERROR_27', 'Importo minimo: 0.01. Importo massimo: '), _defineProperty(_it$data, 'ERROR_28', 'Avrai bisogno del `file Keystore + la password` o della `chiave privata` (prossima pagina) per avere accesso a questo portafoglio in futuro. '), _defineProperty(_it$data, 'ERROR_29', 'Inserisci un nome utente e una password validi '), _defineProperty(_it$data, 'ERROR_30', 'Inserisci un nome valido (almeno 7 caratteri, punteggiatura limitata)'), _defineProperty(_it$data, 'ERROR_31', 'Inserisci una frase segreta valida '), _defineProperty(_it$data, 'ERROR_32', 'Impossibile collegarsi al nodo. Aggiorna la pagina, prova con un altro nodo (angolo in alto a destra), controlla le impostazioni del firewall. Se si tratta di un nodo personalizzato, controlla la configurazione.'), _defineProperty(_it$data, 'ERROR_33', 'L\'indirizzo del portafoglio non corrisponde a quello del proprietario. '), _defineProperty(_it$data, 'ERROR_34', 'Il nome che stai provando a rivelare non combacia con quello che hai inserito. '), _defineProperty(_it$data, 'ERROR_35', 'L\'indirizzo inserito non ha un checksum. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Ulteriori informazioni</a>'), _defineProperty(_it$data, 'ERROR_36', 'Inserisci un hash transazione valido'), _defineProperty(_it$data, 'ERROR_37', 'Inserisci una stringa esadecimale valida (0-9, a-f)'), _defineProperty(_it$data, 'SUCCESS_1', 'Indirizzo valido '), _defineProperty(_it$data, 'SUCCESS_2', 'Portafoglio decodificato correttamente '), _defineProperty(_it$data, 'SUCCESS_3', 'La transazione è stata inviata alla rete. È in attesa di essere inclusa in un blocco e confermata. Durante le ICO, potrebbero volerci 3 ore o più per la conferma. Utilizza i pulsanti Verifica e Controlla qui sotto per informazioni. Hash transazione: '), _defineProperty(_it$data, 'SUCCESS_4', 'Il portafoglio è stato aggiunto correttamente '), _defineProperty(_it$data, 'SUCCESS_5', 'File selezionato '), _defineProperty(_it$data, 'SUCCESS_6', 'Ora sei connesso '), _defineProperty(_it$data, 'SUCCESS_7', 'Firma del messaggio verificata'), _defineProperty(_it$data, 'WARN_Send_Link', 'Sei arrivato qui da un link che ha riempito per te i campi indirizzo, importo, gas, dati o tipo di transazione (modalità di invio). Puoi cambiare queste informazioni prima di inviare. Sblocca il tuo portafoglio per iniziare. '), _defineProperty(_it$data, 'GETH_InvalidSender', 'Mittente non valido '), _defineProperty(_it$data, 'GETH_Nonce', 'Nonce troppo basso '), _defineProperty(_it$data, 'GETH_Cheap', 'Prezzo del gas troppo basso per essere accettato '), _defineProperty(_it$data, 'GETH_Balance', 'Saldo insufficiente '), _defineProperty(_it$data, 'GETH_NonExistentAccount', 'Il conto non esiste o il saldo è insufficiente '), _defineProperty(_it$data, 'GETH_InsufficientFunds', 'Fondi insufficienti per gas * prezzo + valore '), _defineProperty(_it$data, 'GETH_IntrinsicGas', 'Gas intrinseco troppo basso '), _defineProperty(_it$data, 'GETH_GasLimit', 'Eccede il limite gas per il blocco '), _defineProperty(_it$data, 'GETH_NegativeValue', 'Valore negativo '), _defineProperty(_it$data, 'PARITY_AlreadyImported', "È già stata importata una transazione con lo stesso hash."), _defineProperty(_it$data, 'PARITY_Old', "Il nonce della transazione è troppo basso. Prova ad incrementare il nonce."), _defineProperty(_it$data, 'PARITY_TooCheapToReplace', "La commissione per la transazione è troppo bassa. Nella coda c'è un'altra transazione con lo stesso nonce. Prova ad aumentare la commissione o ad incrementare il nonce."), _defineProperty(_it$data, 'PARITY_LimitReached', "Ci sono troppe transazioni nella coda. La tua transazione è stata scartata per il superamento del limite. Prova ad aumentare la commissione."), _defineProperty(_it$data, 'PARITY_InsufficientGasPrice', "La commissione per la transazione è troppo bassa. Non soddisfa la commissione minima del tuo nodo (minima: {}, fornita: {}). Prova ad aumentare la commissione."), _defineProperty(_it$data, 'PARITY_InsufficientBalance', "Fondi insufficienti. L'account dal quale stai provando ad inviare la transazione non ha abbastanza fondi. Richiesti {} ma presenti: {}."), _defineProperty(_it$data, 'PARITY_GasLimitExceeded', "Il costo della transazione eccede il limite gas corrente. Limite: {}, fornito: {}. Prova a ridurre il gas fornito."), _defineProperty(_it$data, 'PARITY_InvalidGasLimit', "Il gas fornito supera il limite."), _defineProperty(_it$data, 'translate_version', '0.3 '), _defineProperty(_it$data, 'Translator_Desc', 'Grazie ai nostri traduttori '), _defineProperty(_it$data, 'TranslatorName_1', '[ugilio](https://www.myetherwallet.com/?gaslimit=21000&to=0x07932bc1c68c8ff188f4225e892178ab6d8c4eaa&value=1.0#send-transaction) '), _defineProperty(_it$data, 'TranslatorAddr_1', '0x07932bc1c68c8ff188f4225e892178ab6d8c4eaa '), _defineProperty(_it$data, 'TranslatorName_2', ''), _defineProperty(_it$data, 'TranslatorAddr_2', ''), _defineProperty(_it$data, 'TranslatorName_3', ''), _defineProperty(_it$data, 'TranslatorAddr_3', ''), _defineProperty(_it$data, 'TranslatorName_4', ''), _defineProperty(_it$data, 'TranslatorAddr_4', ''), _defineProperty(_it$data, 'TranslatorName_5', ''), _defineProperty(_it$data, 'TranslatorAddr_5', ''), _defineProperty(_it$data, 'HELP_Warning', 'Se hai creato un portafoglio -oppure- hai scaricato il repository prima del **31 Dicembre 2015**, controlla i tuoi portafogli e scarica una nuova versione del repository. Fai clic qui per i dettagli. '), _defineProperty(_it$data, 'HELP_Desc', 'Vedi che manca qualcosa? Hai un\'altra domanda? [Mettiti in contatto con noi](mailto:support@myetherwallet.com), e non solo risponderemo alla tua domanda, ma aggiorneremo anche questa pagina in modo che sia più utile ad altri in futuro! '), _defineProperty(_it$data, 'HELP_Remind_Title', 'Qualche promemoria '), _defineProperty(_it$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, e alcune delle librerie Javascript che utilizziamo sono in continuo sviluppo.** Anche se abbiamo testato approfonditamente e persone di tutto il mondo hanno correttamente creato decine di migliaia di portafogli, c\'è sempre la remota possibilità che accada qualcosa di imprevisto che provochi la perdita dei tuoi ETH. Ti preghiamo di non investire più di quello che sei disposto a perdere, e di fare attenzione. Se dovesse capitare qualcosa, ci dispiace, ma **non siamo responsabili per gli ether perduti**. '), _defineProperty(_it$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX non sono "portafogli web". Non stai creando un account né ci stai dando i tuoi ether da custodire. Tutti i dati non lasciano mai il tuo computer/il tuo browser. Quello che facciamo è renderti facile creare, salvare, e accedere alle tue informazioni e interagire con la *blockchain*. '), _defineProperty(_it$data, 'HELP_Remind_Desc_3', 'Se non salvi la tua chiave privata e la password, non c\'è modo di recuperare l\'accesso al tuo portafoglio o ai fondi che contiene. Salvali in molti luoghi fisici diversi e non solo sul tuo computer! '), _defineProperty(_it$data, 'HELP_0_Title', '0) Sono nuovo. Cosa faccio? '), _defineProperty(_it$data, 'HELP_0_Desc_1', 'MyEtherWallet ti dà la possibilità di generare nuovi portafogli in modo da poter conservare i tuoi ether da solo, invece di usare una piattaforma di scambio. Questo processo avviene interamente sul tuo computer, non sui nostri server. Quindi, quando generi un nuovo portafoglio, **sei responsabile del suo salvataggio in maniera sicura**. '), _defineProperty(_it$data, 'HELP_0_Desc_2', 'Crea un nuovo portafoglio. '), _defineProperty(_it$data, 'HELP_0_Desc_3', 'Fai un backup del portafoglio. '), _defineProperty(_it$data, 'HELP_0_Desc_4', 'Verifica di avere accesso a questo nuovo portafoglio e di avere salvato correttamente tutte le informazioni necessarie. '), _defineProperty(_it$data, 'HELP_0_Desc_5', 'Trasferisci degli ether in questo nuovo portafoglio. '), _defineProperty(_it$data, 'HELP_1_Title', '1) Come creo un nuovo portafoglio? '), _defineProperty(_it$data, 'HELP_1_Desc_1', 'Vai alla pagina "Genera portafoglio". '), _defineProperty(_it$data, 'HELP_1_Desc_2', 'Vai alla pagina "Aggiungi portafoglio" e seleziona "Genera un nuovo portafoglio" '), _defineProperty(_it$data, 'HELP_1_Desc_3', 'Inserisci una password robusta. Se pensi di poterla dimenticare, salvala in un posto sicuro. Avrai bisogno di questa password per inviare transazioni. '), _defineProperty(_it$data, 'HELP_1_Desc_4', 'Fai clic su "GENERA PORTAFOGLIO". '), _defineProperty(_it$data, 'HELP_1_Desc_5', 'Il tuo portafoglio è stato appena generato. '), _defineProperty(_it$data, 'HELP_2a_Title', 'Come salvo o faccio il backup del mio portafoglio? '), _defineProperty(_it$data, 'HELP_2a_Desc_1', 'Dovresti sempre fare dei backup esterni in diversi luoghi fisici - come su una penna USB e/o su un pezzo di carta. '), _defineProperty(_it$data, 'HELP_2a_Desc_2', 'Salva l\'indirizzo. Puoi tenerlo per te o condividerlo. In questo modo gli altri possono inviarti degli ether. '), _defineProperty(_it$data, 'HELP_2a_Desc_3', 'Salva delle versioni della chiave privata. Non condividerla con nessuno. La tua chiave privata è necessaria quando vuoi accedere ai tuoi ether per trasferirli! Ci sono 3 tipi di chiave privata: '), _defineProperty(_it$data, 'HELP_2a_Desc_4', 'Metti il tuo indirizzo, le versioni della chiave privata, e la versione PDF del tuo portafoglio cartaceo in una cartella. Salvala sul tuo computer e su una penna USB. '), _defineProperty(_it$data, 'HELP_2a_Desc_5', 'Stampa il portafoglio se hai una stampante. In alternativa, trascrivi la tua chiave privata e l\'indirizzo su un pezzo di carta. Conserva questo foglio in un posto sicuro, separato dal tuo computer e dalla penna USB. '), _defineProperty(_it$data, 'HELP_2a_Desc_6', 'Ricorda, devi evitare la perdita delle chiavi e della password in caso di smarrimento o malfunzionamento del tuo hard disk, penna USB, o pezzo di carta. Devi anche considerare la perdita fisica o il danneggiamento di una intera area (pensa a incendi o inondazioni). '), _defineProperty(_it$data, 'HELP_2b_Title', '2b) Come implemento un portafoglio offline in maniera sicura con MyEtherWallet? '), _defineProperty(_it$data, 'HELP_2b_Desc_1', 'Vai su [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_it$data, 'HELP_2b_Desc_2', 'Fai clic su `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_it$data, 'HELP_2b_Desc_3', 'Sposta il file zip su un computer *air-gapped*. '), _defineProperty(_it$data, 'HELP_2b_Desc_4', 'Decomprimilo e fai doppio clic su `index.html`. '), _defineProperty(_it$data, 'HELP_2b_Desc_5', 'Genera un portafoglio con una password robusta. '), _defineProperty(_it$data, 'HELP_2b_Desc_6', 'Salva l\'indirizzo. Salva delle versioni della chiave privata. Salva la password se potresti non ricordarla per sempre. '), _defineProperty(_it$data, 'HELP_2b_Desc_7', 'Conserva questi fogli / penne USB in diversi luoghi fisici separati. '), _defineProperty(_it$data, 'HELP_2b_Desc_8', 'Vai alla pagina "Informazioni portafoglio" e digita la tua chiave privata / password per assicurarti che siano corrette e per accedere al portafoglio. Controlla che l\'indirizzo che hai trascritto sia lo stesso. '), _defineProperty(_it$data, 'HELP_3_Title', '3) Come verifico di aver accesso al mio nuovo portafoglio? '), _defineProperty(_it$data, 'HELP_3_Desc_1', '**Prima di inviare degli ether al tuo nuovo portafoglio**, dovresti assicurarti di poterci accedere. '), _defineProperty(_it$data, 'HELP_3_Desc_2', 'Vai alla pagina "Informazioni portafoglio". '), _defineProperty(_it$data, 'HELP_3_Desc_3', 'Vai alla pagina "Informazioni portafoglio" su MyEtherWallet.com. '), _defineProperty(_it$data, 'HELP_3_Desc_4', 'Seleziona il file del tuo portafoglio -oppure- la tua chiave privata e sblocca il portafoglio. '), _defineProperty(_it$data, 'HELP_3_Desc_5', 'Se il portafoglio è crittografato, comparirà automaticamente una casella di testo. Inserisci la password. '), _defineProperty(_it$data, 'HELP_3_Desc_6', 'Fai clic sul pulsante "Sblocca". '), _defineProperty(_it$data, 'HELP_3_Desc_7', 'Dovrebbero comparire le informazioni sul tuo portafoglio. Individua l\'indirizzo del tuo conto, accanto all\'icona rotonda e colorata. Questa icona rappresenta visivamente il tuo indirizzo. Assicurati che l\'indirizzo sia quello che hai salvato nel tuo file di testo e che sia presente sul tuo portafoglio cartaceo. '), _defineProperty(_it$data, 'HELP_3_Desc_8', 'Se stai pensando di conservare una grande quantità di ether, ti consigliamo di provare a inviare una piccola somma di ether dal nuovo portafoglio prima di depositarci un grosso importo. Invia 0,001 ether al nuovo portafoglio, accedici, e invia quegli 0,001 ether a un altro indirizzo, e assicurati che tutto funzioni agevolmente. '), _defineProperty(_it$data, 'HELP_4_Title', '4) Come invio degli ether da un portafoglio a un altro? '), _defineProperty(_it$data, 'HELP_4_Desc_1', 'Se stai pensando di spostare una grande quantità di ether, dovresti prima provare ad inviare una piccola somma al tuo portafoglio per assicurarti che tutto vada come previsto. '), _defineProperty(_it$data, 'HELP_4_Desc_2', 'Vai alla pagina "Invia ether e token". '), _defineProperty(_it$data, 'HELP_4_Desc_3', 'Seleziona il file del tuo portafoglio -oppure- la tua chiave privata e sblocca il portafoglio. '), _defineProperty(_it$data, 'HELP_4_Desc_4', 'Se il portafoglio è crittografato, comparirà automaticamente una casella di testo. Inserisci la password. '), _defineProperty(_it$data, 'HELP_4_Desc_5', 'Fai clic sul pulsante "Sblocca". '), _defineProperty(_it$data, 'HELP_4_Desc_6', 'Inserisci l\'indirizzo al quale vuoi inviare nel campo "Indirizzo destinatario:". '), _defineProperty(_it$data, 'HELP_4_Desc_7', 'Inserisci l\'importo che vuoi inviare. Puoi anche fare clic sul link "Invia l\'intero saldo" se desideri trasferire l\'intero saldo. '), _defineProperty(_it$data, 'HELP_4_Desc_9', 'Fai clic su "Genera transazione". '), _defineProperty(_it$data, 'HELP_4_Desc_10', 'Compariranno un paio di ulteriori campi. È perché il tuo browser ha generato la transazione. '), _defineProperty(_it$data, 'HELP_4_Desc_11', 'Fai clic sul pulsante azzurro "Invia transazione" in basso. '), _defineProperty(_it$data, 'HELP_4_Desc_12', 'Comparirà un pop-up. Verifica che l\'importo e l\'indirizzo a cui stai inviando siano corretti. Quindi fai clic sul pulsante "Sì, sono sicuro! Esegui la transazione.". '), _defineProperty(_it$data, 'HELP_4_Desc_13', 'La transazione verrà inviata. Verrà mostrato il codice hash della transazione. Puoi fare clic sul codice hash per visualizzarla sulla *blockchain*. '), _defineProperty(_it$data, 'HELP_4CX_Title', '4) Come invio degli ether utilizzando MyEtherWallet CX? '), _defineProperty(_it$data, 'HELP_4CX_Desc_1', 'Innanzitutto devi aggiungere un portafoglio. Dopo averlo fatto hai 2 opzioni: la funzionalità "Invio rapido" dall\'icona dell\'estensione di Chrome o la pagina "Invia ether e token". '), _defineProperty(_it$data, 'HELP_4CX_Desc_2', 'Invio rapido: '), _defineProperty(_it$data, 'HELP_4CX_Desc_3', 'Fai clic sull\'icona dell\'estensione di Chrome. '), _defineProperty(_it$data, 'HELP_4CX_Desc_4', 'Fai clic sul pulsante "Invio rapido". '), _defineProperty(_it$data, 'HELP_4CX_Desc_5', 'Seleziona il portafoglio dal quale desideri inviare. '), _defineProperty(_it$data, 'HELP_4CX_Desc_6', 'Inserisci l\'indirizzo al quale vuoi inviare nel campo "Indirizzo destinatario:". '), _defineProperty(_it$data, 'HELP_4CX_Desc_7', 'Inserisci l\'importo che vuoi inviare. Puoi anche fare clic sul link "Invia l\'intero saldo" se desideri trasferire l\'intero saldo. '), _defineProperty(_it$data, 'HELP_4CX_Desc_8', 'Fai clic su "Invia transazione". '), _defineProperty(_it$data, 'HELP_4CX_Desc_9', 'Verifica che l\'importo e l\'indirizzo a cui stai inviando siano corretti. '), _defineProperty(_it$data, 'HELP_4CX_Desc_10', 'Inserisci la password del portafoglio. '), _defineProperty(_it$data, 'HELP_4CX_Desc_11', 'Fai clic su "Invia transazione." '), _defineProperty(_it$data, 'HELP_4CX_Desc_12', 'Tramite la pagina "Invia ether e token" '), _defineProperty(_it$data, 'HELP_5_Title', '5) Come faccio ad eseguire MyEtherWallet.com offline/in locale? '), _defineProperty(_it$data, 'HELP_5_Desc_1', 'Puoi eseguire MyEtherWallet.com sul tuo computer invece che dai server di GitHub. Puoi generare un portafoglio completamente offline e inviare transazioni dalla pagina "Invia Offline". '), _defineProperty(_it$data, 'HELP_5_Desc_7', 'MyEtherWallet.com è ora in esecuzione completamente sul tuo computer. '), _defineProperty(_it$data, 'HELP_5_Desc_8', 'In caso tu non abbia molta confidenza, ti serve l\'intera cartella per poter eseguire il sito web, non solo `index.html`. Non toccare né spostare nulla del contenuto della cartella. Se stai conservando un backup del repository MyEtherWallet per il futuro, ti consigliamo di conservare soltanto il file ZIP in modo da assicurarti che i contenuti della cartella rimangano intatti. '), _defineProperty(_it$data, 'HELP_5_Desc_9', 'Dal momento che stiamo costantemente aggiornando MyEtherWallet.com, ti consigliamo di aggiornare periodicamente la tua versione locale del repository. '), _defineProperty(_it$data, 'HELP_5CX_Title', '5) Come posso installare questa estensione dal repository invece che dal Chrome Store? '), _defineProperty(_it$data, 'HELP_5CX_Desc_2', 'Fai clic su `chrome-extension-vX.X.X.X.zip` e decomprimi il file. '), _defineProperty(_it$data, 'HELP_5CX_Desc_3', 'In Google Chrome, fai clic su Impostazioni (dal menu in alto a destra). '), _defineProperty(_it$data, 'HELP_5CX_Desc_4', 'Fai clic su "Estensioni" sulla sinistra. '), _defineProperty(_it$data, 'HELP_5CX_Desc_5', 'Seleziona la casella "Modalità sviluppatore" all\'inizio della pagina. '), _defineProperty(_it$data, 'HELP_5CX_Desc_6', 'Fai clic sul pulsante "Carica estensione non pacchettizzata...". '), _defineProperty(_it$data, 'HELP_5CX_Desc_7', 'Vai alla cartella che hai precedentemente scaricato e decompresso. Fai clic su "Seleziona". '), _defineProperty(_it$data, 'HELP_5CX_Desc_8', 'L\'estensione dovrebbe ora comparire fra le tue estensioni e nella barra delle estensioni di Chrome. '), _defineProperty(_it$data, 'HELP_7_Title', '7) Come invio token e come aggiungo token personalizzati? '), _defineProperty(_it$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) è un ottimo modo di esplorare i token e trovarne i decimali. '), _defineProperty(_it$data, 'HELP_7_Desc_1', 'Vai alla pagina "Invia ether e token". '), _defineProperty(_it$data, 'HELP_7_Desc_2', 'Sblocca il portafoglio. '), _defineProperty(_it$data, 'HELP_7_Desc_3', 'Inserisci l\'indirizzo al quale vuoi inviare nel campo "Indirizzo destinatario:". '), _defineProperty(_it$data, 'HELP_7_Desc_4', 'Inserisci l\'importo che vuoi inviare. '), _defineProperty(_it$data, 'HELP_7_Desc_5', 'Seleziona il token che vuoi inviare. '), _defineProperty(_it$data, 'HELP_7_Desc_6', 'Se non vedi il token nell\'elenco: '), _defineProperty(_it$data, 'HELP_7_Desc_7', 'Fai clic su "Altro". '), _defineProperty(_it$data, 'HELP_7_Desc_8', 'Inserisci l\'indirizzo, il nome, e i decimali del token. Questi valori sono forniti dagli sviluppatori del token e sono necessari anche quando aggiungi il token in Mist per osservarlo. '), _defineProperty(_it$data, 'HELP_7_Desc_9', 'Fai clic su "Salva". '), _defineProperty(_it$data, 'HELP_7_Desc_10', 'Ora puoi inviare il token e anche vederne il saldo nella barra laterale. '), _defineProperty(_it$data, 'HELP_7_Desc_11', 'Fai clic su "Genera transazione". '), _defineProperty(_it$data, 'HELP_7_Desc_12', 'Compariranno un paio di ulteriori campi. È perché il tuo browser ha generato la transazione. '), _defineProperty(_it$data, 'HELP_7_Desc_13', 'Fai clic sul pulsante azzurro "Invia transazione" in basso. '), _defineProperty(_it$data, 'HELP_7_Desc_14', 'Comparirà un pop-up. Verifica che l\'importo e l\'indirizzo a cui stai inviando siano corretti. Quindi fai clic sul pulsante "Sì, sono sicuro! Esegui la transazione.". '), _defineProperty(_it$data, 'HELP_7_Desc_15', 'La transazione verrà inviata. Verrà mostrato il codice hash della transazione. Puoi fare clic sul codice hash per visualizzarla sulla *blockchain*. '), _defineProperty(_it$data, 'HELP_8_Title', '8) Che succede se il vostro sito va giù? '), _defineProperty(_it$data, 'HELP_8_Desc_1', 'MyEtherWallet non è un portafoglio web. Non hai un login e niente viene mai salvato nei nostri server. È semplicemente un\'interfaccia che ti consente di interagire con la *blockchain*. '), _defineProperty(_it$data, 'HELP_8_Desc_2', 'Se MyEtherWallet.com va giù, dovrai trovare un altro modo (come geth o Ethereum Wallet / Mist) per fare quello che facciamo noi. Ma non dovrai "tirare fuori" i tuoi ether da MyEtherWallet perché non si trovano in MyEtherWallet. Sono in qualunque portafoglio tu abbia generato tramite il nostro sito. '), _defineProperty(_it$data, 'HELP_8_Desc_3', 'Ora puoi importare direttamente e molto facilmente in geth / Ethereum Wallet / Mist la tua chiave privata non crittografata e i tuoi file in formato Geth/Mist (crittografati). Vedi la domanda n. 12 qui sotto. '), _defineProperty(_it$data, 'HELP_8_Desc_4', 'Inoltre, la probabilità che tiriamo giù MyEtherWallet è prossima allo zero. Non ci costa praticamente nulla mantenerlo dal momento che non stiamo memorizzando alcuna informazione. Se anche disattivassimo il dominio, è ancora, e sarà sempre, disponibile pubblicamente su [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Puoi scaricare lo ZIP da lì ed eseguirlo in locale. '), _defineProperty(_it$data, 'HELP_8CX_Title', '8) Che succede se MyEtherWallet CX sparisce? '), _defineProperty(_it$data, 'HELP_8CX_Desc_1', 'Innanzitutto, tutti i dati sono salvati sul tuo computer, non sui nostri server. So che può essere disorientante, ma quando utilizzi l\'estensione Chrome NON stai guardando qualcosa che è salvato da qualche parte sui nostri server - è tutto salvato sul tuo computer. '), _defineProperty(_it$data, 'HELP_8CX_Desc_2', 'Detto ciò, è **molto importante** che tu faccia un backup di tutte le informazioni relative a ogni nuovo portafoglio generato con MyEtherWallet CX. In questo modo se succede qualcosa a MyEtherWallet CX or al tuo computer avrai ancora tutte le informazioni necessarie ad accedere ai tuoi ether. Vedi la domanda n. 2a per come salvare i tuoi portafogli. '), _defineProperty(_it$data, 'HELP_8CX_Desc_3', 'Se per qualche ragione MyEtherWallet CX sparisce dal Chrome Store, puoi trovare i sorgenti su Github e caricare l\'estensione manualmente. Vedi la domanda n. 5 qui sopra. '), _defineProperty(_it$data, 'HELP_9_Title', '9) La pagina "Invia ether e token" è offline? '), _defineProperty(_it$data, 'HELP_9_Desc_1', 'No. Ha bisogno di Internet per poter ottenere il prezzo corrente del gas, il *nonce* del tuo conto, e per trasmettere la transazione (cioè per inviarla). Tuttavia, si limita ad inviare la transazione firmata. La tua chiave privata rimane al sicuro con te. Ora abbiamo inserito anche una pagina "Invia offline" così che ti possa assicurare che le tue chiavi private rimangano sempre su un computer offline/*air-gapped*. '), _defineProperty(_it$data, 'HELP_10_Title', '10) Come creo una transazione offline? '), _defineProperty(_it$data, 'HELP_10_Desc_1', 'Vai alla pagina "Invia offline" con il tuo computer online. '), _defineProperty(_it$data, 'HELP_10_Desc_2', 'Inserisci l\'"Indirizzo mittente". Ti preghiamo di notare che questo è l\'indirizzo MITTENTE, non l\'indirizzo DESTINATARIO. Da questo indirizzo si genera il *nonce* e il prezzo del gas. '), _defineProperty(_it$data, 'HELP_10_Desc_3', 'Spostati sul tuo computer offline. Inserisci l\'"INDIRIZZO DESTINATARIO" e l\'"IMPORTO" che desideri inviare. '), _defineProperty(_it$data, 'HELP_10_Desc_4', 'Inserisci il "PREZZO GAS" così come visualizzato sul tuo computer online nel passo n. 1. '), _defineProperty(_it$data, 'HELP_10_Desc_5', 'Inserisci il "NONCE" così come visualizzato sul tuo computer online nel passo n. 1. '), _defineProperty(_it$data, 'HELP_10_Desc_6', 'Il "LIMITE GAS" ha un valore predefinito di 21000. Questo valore è sufficiente per una transazione standard. Se desideri inviare ad un contratto o se includi nella transazione dati aggiuntivi avrai bisogno di aumentare il limite gas. Eventuale gas in eccesso ti sarà restituito. '), _defineProperty(_it$data, 'HELP_10_Desc_7', 'Se lo desideri, inserisci dei dati. Se lo fai, dovrai aumentare il limite gas a un valore superiore al limite predefinito di 21000. Tutti i dati sono in formato HEX. '), _defineProperty(_it$data, 'HELP_10_Desc_8', 'Seleziona il file del tuo portafoglio -oppure- la tua chiave privata e sblocca il portafoglio. '), _defineProperty(_it$data, 'HELP_10_Desc_9', 'Premi il pulsante "GENERA TRANSAZIONE". '), _defineProperty(_it$data, 'HELP_10_Desc_10', 'I campi sotto il pulsante saranno riempiti con la transazione firmata. Copiala e ritorna al tuo computer online. '), _defineProperty(_it$data, 'HELP_10_Desc_11', 'Sul tuo computer online, incolla la transazione firmata nel campo di testo nel passo n. 3 e fai clic su "Invia transazione". In questo modo la transazione verrà trasmessa. '), _defineProperty(_it$data, 'HELP_12_Title', '12) Come faccio a importare un portafoglio creato con MyEtherWallet in geth / Ethereum Wallet / Mist? '), _defineProperty(_it$data, 'HELP_12_Desc_1', 'Con un file JSON Geth/Mist generato da MyEtherWallet v2+.... '), _defineProperty(_it$data, 'HELP_12_Desc_2', 'Vai alla pagina "Informazioni portafoglio". '), _defineProperty(_it$data, 'HELP_12_Desc_3', 'Sblocca il portafoglio usando la tua chiave privata **crittografata** o il file JSON. '), _defineProperty(_it$data, 'HELP_12_Desc_4', 'Vai alla pagina "I miei portafogli". '), _defineProperty(_it$data, 'HELP_12_Desc_5', 'Seleziona il portafoglio che vuoi importare in Mist, fai clic sull\'icona "Mostra", inserisci la password, e accedi al portafoglio. '), _defineProperty(_it$data, 'HELP_12_Desc_6', 'Individua la sezione "File Keystore/JSON (Consigliato · Crittografato · Formato Mist/Geth)". Premi il pulsante "Download" al di sotto. Ora hai il file keystore. '), _defineProperty(_it$data, 'HELP_12_Desc_7', 'Apri l\'applicazione Ethereum Wallet. '), _defineProperty(_it$data, 'HELP_12_Desc_8', 'Nella barra dei menu, vai su "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_it$data, 'HELP_12_Desc_9', 'Si aprirà la tua cartella keystore. Copia il file che hai appena scaricato (`UTC--2016-04-14........`) dentro questa cartella. '), _defineProperty(_it$data, 'HELP_12_Desc_10', 'Il tuo conto dovrebbe comparire immediatamente sotto "Accounts." '), _defineProperty(_it$data, 'HELP_12_Desc_11', 'Con una chiave privata non crittografata... '), _defineProperty(_it$data, 'HELP_12_Desc_12', 'Se non hai già la chiave private non crittografata, vai alla pagina "Informazioni portafoglio". '), _defineProperty(_it$data, 'HELP_12_Desc_13', 'Seleziona il file del tuo portafoglio -oppure- inserisci/incolla la tua chiave privata per sbloccare il portafoglio. '), _defineProperty(_it$data, 'HELP_12_Desc_14', 'Copia la tua chiave privata (non crittografata). '), _defineProperty(_it$data, 'HELP_12_Desc_15', 'Se sei su un Mac: '), _defineProperty(_it$data, 'HELP_12_Desc_15b', 'Se sei su un PC: '), _defineProperty(_it$data, 'HELP_12_Desc_16', 'Apri TextEdit e incolla la chiave privata. '), _defineProperty(_it$data, 'HELP_12_Desc_17', 'Vai sulla barra dei menu e fai clic su "Formato" -> "Converti in formato Solo testo". '), _defineProperty(_it$data, 'HELP_12_Desc_18', 'Salva questo file sulla tua `Scrivania` come `niente_di_speciale_cancellami.txt`. Assicurati che siano selezionati "UTF-8" e "Se non è indicata nessuna estensione, usa .”txt”" nella finestra di salvataggio. '), _defineProperty(_it$data, 'HELP_12_Desc_19', 'Apri il terminale ed esegui il seguente comando: `geth account import ~/Desktop/niente_di_speciale_cancellami.txt` '), _defineProperty(_it$data, 'HELP_12_Desc_20', 'Ti verrà chiesto di creare una nuova password. È la password che userai in geth / Ethereum Wallet / Mist ogni volta che invierai una transazione, quindi non dimenticarla. '), _defineProperty(_it$data, 'HELP_12_Desc_21', 'A importazione conclusa positivamente, cancella `niente_di_speciale_cancellami.txt` '), _defineProperty(_it$data, 'HELP_12_Desc_22', 'Alla prossima apertura dell\'applicazione Ethereum Wallet, il tuo conto sarà mostrato sotto "Accounts". '), _defineProperty(_it$data, 'HELP_12_Desc_23', 'Apri Blocco note e incolla la chiave privata '), _defineProperty(_it$data, 'HELP_12_Desc_24', 'Salva il file come `niente_di_speciale_cancellami.txt` in `C:\\` '), _defineProperty(_it$data, 'HELP_12_Desc_25', 'Esegui il comando `geth account import C:\\niente_di_speciale_cancellami.txt` '), _defineProperty(_it$data, 'HELP_12_Desc_26', 'Ti verrà chiesto di creare una nuova password. È la password che userai in geth / Ethereum Wallet / Mist ogni volta che invierai una transazione, quindi non dimenticarla. '), _defineProperty(_it$data, 'HELP_12_Desc_27', 'A importazione conclusa positivamente, cancella `niente_di_speciale_cancellami.txt` '), _defineProperty(_it$data, 'HELP_12_Desc_28', 'Alla prossima apertura dell\'applicazione Ethereum Wallet, il tuo conto sarà mostrato sotto "Accounts". '), _defineProperty(_it$data, 'HELP_13_Title', '13) Cosa significa "Fondi insufficienti. L\'account dal quale stai provando ad inviare la transazione non ha abbastanza fondi. Richiesti XXXXXXXXXXXXXXXXXXX ma presenti: XXXXXXXXXXXXXXXX."? '), _defineProperty(_it$data, 'HELP_13_Desc_1', 'Significa che non hai abbastanza ether nel tuo conto per coprire il costo del gas. Tutte le transazioni (comprese quelle che riguardano token e contratti) richiedono gas, e il gas si paga in ether. Il numero indicato è l\'importo richiesto per coprire il costo della transazione in wei. Prendi quel numero, dividilo per `1000000000000000000`, e sottrai la quantità di ether che stavi provando ad inviare (se stavi provando ad inviare ether). Il risultato è la somma in ether che devi inviare a quel conto per poter eseguire la transazione. '), _defineProperty(_it$data, 'HELP_14_Title', '14) Certi siti inizializzano il generatore di numeri casuali per la generazione della chiave privata tramite i movimenti del mouse. MyEtherWallet.com non lo fa. La generazione di numeri casuali di MyEtherWallet è sicura? '), _defineProperty(_it$data, 'HELP_14_Desc_1', 'Sebbene usare i movimenti del mouse sia ingegnoso, e comprendiamo perché piaccia, la realtà è che window.crypto assicura maggiore entropia rispetto ai tuoi movimenti del mouse. Non che i movimenti del mouse siano insicuri, è solo che noi (e un sacco di altri critto-esperimenti) crediamo in window.crypto. Oltretutto, MyEtherWallet.com può essere utilizzato su dispositivi touch. Qui c\'è una [conversazione fra un utente di reddit arrabbiato e Vitalik Buterin su movimenti del mouse contro window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) e qui c\'è [la specifica del w3 di window.crypto](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_it$data, 'HELP_15_Title', '15) Perché il conto che ho appena creato non risulta nello strumento per esplorare la *blockchain*? (es: etherchain, etherscan) '), _defineProperty(_it$data, 'HELP_15_Desc_1', 'I conti vengono mostrati in quegli strumenti solamente dopo che c\'è stata un\'attività sul conto in questione&mdash;ad esempio, dopo che ci hai trasferito degli ether. '), _defineProperty(_it$data, 'HELP_16_Title', '16) Come faccio a controllare il saldo del mio conto? '), _defineProperty(_it$data, 'HELP_16_Desc_1', 'Puoi usare uno strumento per l\'esplorazione della *blockchain* come [etherscan.io](https://etherscan.io/). Incolla il tuo indirizzo nella barra di ricerca e vedrai il tuo indirizzo e lo storico delle transazioni. Ad esempio, questo è come si presenta il nostro [conto donazioni](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) su etherscan.io '), _defineProperty(_it$data, 'HELP_17_Title', '17) Perché non viene mostrato il saldo quando sblocco il mio portafoglio? '), _defineProperty(_it$data, 'HELP_17_Desc_1', 'Probabilmente perché sei dietro a un firewall. Le API che utilizziamo per ottenere il saldo e convertirlo sono spesso bloccate dai firewall per qualche ragione. Sarai ancora in grado di inviare transazioni, dovrai solo usare un metodo diverso per vedere il tuo saldo, come etherscan.io '), _defineProperty(_it$data, 'HELP_18_Title', '18) Dov\'è il mio file portafoglio di geth? '), _defineProperty(_it$data, 'HELP_19_Title', '19) Dov\'è il mio file portafoglio di Mist? '), _defineProperty(_it$data, 'HELP_19_Desc_1', 'I file di Mist si trovano di solito nelle posizioni qui sopra, ma è molto più facile aprire Mist, selezionare "Accounts" nella barra dei menu, selezionare "Backup", e selezionare "Accounts". Si aprirà la cartella in cui sono memorizzati i tuoi file. '), _defineProperty(_it$data, 'HELP_20_Title', '20) Dov\'è il mio file portafoglio della prevendita? '), _defineProperty(_it$data, 'HELP_20_Desc_1', 'Dove l\'hai salvato. ;) Ti è anche stato spedito in mail, quindi controllala. Cerca un file chiamato `"ethereum_wallet_backup.json"` e selezionalo. Questo portafoglio sarà crittografato con la password che hai creato durante l\'acquisto della prevendita. '), _defineProperty(_it$data, 'HELP_21_Title', '21) Non basta inserire chiavi private casuali, cercare un saldo, e poi inviarselo al proprio indirizzo? '), _defineProperty(_it$data, 'HELP_21_Desc_1', 'Versione corta: sì, ma trovare un conto con un saldo richiederebbe più tempo dell\'età dell\'universo... quindi no. '), _defineProperty(_it$data, 'HELP_21_Desc_2', 'Versione lunga in termini semplici: Ethereum si basa sulla [Crittografia a chiave pubblica](https://it.wikipedia.org/wiki/Crittografia_a_chiave_pubblica), nello specifico [Crittografia a curva ellittica](https://eprint.iacr.org/2013/734.pdf) (ECC) che è ampiamente utilizzata, non solo in Ethereum. La maggior parte dei server sono protetti tramite ECC. Anche Bitcoin la usa, oltre a SSH e TLS e a un sacco di altra roba. Le chiavi di Ethereum nello specifico sono di 256 bit, che sono più robuste di 128 bit e 192 bit, che sono anch\'esse ampiamente utilizzate e sono tuttora considerate sicure dagli esperti. '), _defineProperty(_it$data, 'HELP_21_Desc_3', 'In tutto ciò tu hai una chiave privata e una chiave pubblica. Dalla chiave privata si può derivare la chiave pubblica, ma dalla chiave pubblica non si può risalire alla chiave privata. Il fatto che Internet e i segreti del mondo usino questa crittografia significa che se ci fosse un modo per ottenere una chiave privata da una chiave pubblica, i tuoi ether persi sarebbero l\'ultimo dei problemi. '), _defineProperty(_it$data, 'HELP_21_Desc_4', 'Ora, detto ciò, SÌ se qualcun altro ha la tua chiave privata allora può effettivamente inviare ether dal tuo conto. Proprio come se qualcuno ha la password della tua mail può leggere e spedire la tua mail, o se ha la password del tuo conto bancario potrebbe fare dei trasferimenti. Potresti scaricare la versione Keystore della tua chiave privata che è la chiave privata crittografata con una password. È come avere una password che è a sua volta protetta da un\'altra password. '), _defineProperty(_it$data, 'HELP_21_Desc_5', 'E SÌ, in teoria potresti semplicemente digitare stringhe di 64 caratteri esadecimali fino a trovarne una che corrisponda. Infatti, persone intelligenti potrebbero scrivere un programma per controllare molto rapidamente chiavi private casuali. Questo procedimento è conosciuto come *"attacco a forza bruta"* o *"mining"* delle chiavi private. Ci hanno pensato molto e a lungo. Con qualche server di altissimo livello potrebbero essere in grado di controllare più di 1 milione di chiavi al secondo. Però nemmeno controllarne così tante al secondo porterebbe all\'accesso in una maniera tale da rendere il costo dell\'utilizzo di quei server vagamente vicino all\'essere proficuo - è più probabile che tu, e i tuoi pronipoti, moriate prima di trovare una corrispondenza. '), _defineProperty(_it$data, 'HELP_21_Desc_6', 'Se sai qualcosa di Bitcoin, [questo ti darà un\'idea:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *"Per illustrare quanto ciò sia improbabile: supponi che ogni satoshi di ogni bitcoin che sarà mai generato sia inviato a una sua chiave privata unica. La probabilità che fra queste chiavi ce ne possano essere due che corrispondano allo stesso indirizzo è circa di uno in 100 trilioni"*. '), _defineProperty(_it$data, 'HELP_21_Desc_7', '[Se preferisci qualcosa di un po\' più tecnico:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *"Questi numeri non hanno niente a che fare con la tecnologia dei dispositivi; sono i massimi che la termodinamica consente. E implicano fortemente che gli attacchi a forza bruta contro le chiavi a 256 bit saranno impraticabili almeno fino a quando i computer non saranno costruiti con qualcosa di diverso dalla materia e non occuperanno qualcosa di diverso dallo spazio."* '), _defineProperty(_it$data, 'HELP_21_Desc_8', 'Certo, tutto ciò assume che le chiavi siano generate in una maniera veramente casuale e con sufficiente entropia. Le chiavi generate qui soddisfano questi criteri, come anche Jaxx e Mist/geth. I portafogli Ethereum sono tutti piuttosto buoni. Le chiavi generate dai *brainwallet* non lo sono, dal momento che il cervello di una persona non è capace di creare un seme veramente casuale. Ci sono stati un numero di altri problemi relativi alla mancanza di entropia o a semi non generati in maniera veramente casuale nel mondo di Bitcoin, ma quella è un\'altra questione di cui non parleremo oggi. '), _defineProperty(_it$data, 'HELP_SecCX_Title', 'Sicurezza - MyEtherWallet CX '), _defineProperty(_it$data, 'HELP_SecCX_Desc_1', 'Dov\'è che questa estensione salva le mie informazioni? '), _defineProperty(_it$data, 'HELP_SecCX_Desc_2', 'Le informazioni che memorizzi in questa estensione di Chrome sono salvate tramite [chrome.storage](http://chrome.storage/). - è lo stesso posto in cui vengono salvate le tue password quando le salvi in Chrome. '), _defineProperty(_it$data, 'HELP_SecCX_Desc_3', 'Che informazioni sono salvate? '), _defineProperty(_it$data, 'HELP_SecCX_Desc_4', 'L\'indirizzo, nome, e la chiave privata sono memorizzati in chrome.storage. La chiave privata è crittografata utilizzando la password che hai impostato quando hai aggiunto il portafoglio. Il nome e l\'indirizzo del portafoglio non sono crittografati. '), _defineProperty(_it$data, 'HELP_SecCX_Desc_5', 'Perché il nome e l\'indirizzo del portafoglio non sono crittografati? '), _defineProperty(_it$data, 'HELP_SecCX_Desc_6', 'Se crittografassimo questi elementi dovresti inserire una password ogni volta in cui volessi vedere il saldo del tuo conto o i nomi dei portafogli. Se ciò ti preoccupa, ti consigliamo di usare MyEtherWallet.com invece di questa estensione di Chrome. '), _defineProperty(_it$data, 'HELP_Sec_Title', 'Sicurezza '), _defineProperty(_it$data, 'HELP_Sec_Desc_1', 'Se una delle prime domande che ti poni è "Perché dovrei fidarmi di questa gente?", è una cosa buona. Quanto segue dovrebbe aiutarti a calmare i tuoi timori. '), _defineProperty(_it$data, 'HELP_Sec_Desc_2', 'Siamo attivi da agosto 2015. Se cerchi ["myetherwallet" su reddit](https://www.reddit.com/search?q=myetherwallet), puoi vedere che molte persone ci utilizzano con grande successo. '), _defineProperty(_it$data, 'HELP_Sec_Desc_3', 'Non prenderemo i tuoi soldi né ruberemo le tue chiavi private. Non c\'è codice malevolo su questo sito. Infatti le pagine "Genera portafoglio" sono completamente lato client. Ciò significa che tutto il codice è eseguito sul ** tuo computer** e non viene mai salvato e trasmesso da nessuna parte. '), _defineProperty(_it$data, 'HELP_Sec_Desc_4', 'Controlla l\'URL -- Questo sito viene servito attraverso GitHub e puoi vederne il codice sorgente qui: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) su [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_it$data, 'HELP_Sec_Desc_5', 'Per la generazione dei portafogli, puoi scaricare il [codice sorgente](https://github.com/kvhnuke/etherwallet/releases/latest) ed eseguirlo in locale. Vedi la domanda 5 qui sopra. '), _defineProperty(_it$data, 'HELP_Sec_Desc_6', 'Genera un portafoglio di prova e controlla che attività di rete sono in corso. Il modo più facile e fare clic destro sulla pagina e scegliere "Analizza elemento". Vai sulla scheda "Rete". Genera un portafoglio di prova. Vedrai che non c\'è attività di rete. Potresti vedere accadere qualcosa che assomiglia a data:image/gif e data:image/png. Sono i QR code che vengono generati...sul tuo computer...dal tuo computer. Non sono stati trasferiti byte. '), _defineProperty(_it$data, 'HELP_Sec_Desc_8', 'Se non ti senti a tuo agio a usare questo strumento, allora certo, non usarlo. Abbiamo creato questo strumento per aiutare la gente a generare portafogli ed eseguire transazioni senza bisogno di usare la riga di comando o far girare un nodo completo. Di nuovo, sentiti libero di contattarci se hai dubbi e ti risponderemo appena possibile. Grazie! '), _defineProperty(_it$data, 'HELP_FAQ_Title', 'Risposte più utili alle domande frequenti (in Inglese) '), _defineProperty(_it$data, 'HELP_Contact_Title', 'Modi per contattarci (in Inglese)'), _it$data);
module.exports = it;
},{}],118:[function(require,module,exports){
// Japanese
'use strict';
var _ja$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ja = function ja() {};
ja.code = 'ja';
ja.data = (_ja$data = {
GEN_Help_0: 'お財布をお持ちですか?', /*Already have a wallet somewhere?*/
GEN_Help_MetaMask: 'とでも簡単です!キーはフィッシングサイトではなく、メタマスク(Metamask)に残っています。すぐ試してください!', /*So easy! Keys stay in MetaMask, not on a phishing site! Try it today.*/
GEN_Warning_1: '**これは絶対に失くさないでください!** なくした場合には二度と戻ってきません。', /***Do not lose it!** It cannot be recovered if you lose it.*/
GEN_Warning_2: '**他人と共有しないでください** 悪意のあるサイトでこのファイルを使うと、あなたの資産を盗られてしまいます。', /***Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.*/
GEN_Warning_3: '**バックアップを作成してください!** いつの日か、億万単位の大金になるものと心得て安全を確保してください。', /***Make a backup!** Secure it like the millions of dollars it may one day be worth.*/
GAS_Price_1: '普通', /*Not So Fast*/
GAS_Price_2: '迅速', /*Fast*/
GAS_Price_3: '超迅速', /*Fast AF*/
CONTRACT_Helper_1: 'マルチシグのアドレスに変えてください', /*Please change the address to your own Multisig Contract Address.*/
CONTRACT_Warning_1: 'まもなく契約が送出されます。', /*You are about to **deploy a contract**.*/
CONTRACT_Warning_2: '次のネットワークに展開されます:', /*It will be deployed on the following network:*/
CONTRACT_Warning_3: 'まもなく契約上の機能が実行されます。', /*You are about to **execute a function on contract**.*/
SEND_Helper_Contract: 'ほとんどの場合、0のままにしてください。', /*In most cases you should leave this as 0.*/
SEND_ViewOnly: '自分のアドレスを指定するだけでは送信できません。お財布を解錠する必要があります。', /*You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.*/
SEND_LoadTokens: 'トークン読込', /*Load Tokens*/
SEND_CustomAddrMsg: '対応するメッセージ', /*A message regarding*/
SWAP_Warning_1: '警告!交換に必要な資金が足りません。', /*Warning! You do not have enough funds to complete this swap.*/
SWAP_Warning_2: '資金を追加するか、別のお財布をお使いください。', /*Please add more funds to your wallet or access a different wallet.*/
X_Advanced: '熟練者限定。', /*Advanced Users Only.*/
X_HelpfulLinks: '役立つリンクとよくある問答集', /*Helpful Links & FAQs*/
X_HelpfulLinks_1: 'お財布の操作方法', /*How to Access your Wallet*/
X_HelpfulLinks_2: '秘密鍵を紛失してしまいした', /*I lost my private key*/
X_HelpfulLinks_3: '秘密鍵が別のアドレスを解錠しました', /*My private key opens a different address*/
X_HelpfulLinks_4: 'MyEtherWalletから、または宛へ移管中', /*Migrating to/from MyEtherWallet*/
X_Network: 'ノード', // aka "node" or "chain" - used in the dropdown in header /*Network*/
X_Network_Custom: 'カスタムネットワークやノードを追加', /*Add Custom Network / Node*/
DOMAIN_Buy: 'ドメインを購入', /*Buy the domain*/
DOMAIN_BuyItNow: 'ドメイン即決価格:', /*Price to buy the domain immediately:*/
DOMAIN_bid: 'ドメインを応札する', /*Bid for the domain*/
DOMAIN_bid_0: 'あなたの応札が現在最高値です。増額して再応札できますが、競売の終了が24時間延長されます。', /*You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.*/
DOMAIN_bid_1: '最低応札額は', /*Bid at least*/
DOMAIN_bid_2: 'が必要です。', /*on the domain.*/
DOMAIN_bid_3: '24時間以内にさらに高額の応札がなければ落札することができます。', /*You will win the domain if no higher bids are placed within the next 24 hours.*/
DOMAIN_bid_4: 'このドメイン名の供託額は', /*Note that the domain has a locked value of*/
DOMAIN_bid_5: 'このドメイン名を開放して受け取ることができる供託額は', /*As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.*/
DOMAIN_Finish_1: 'この競売と無関係です', /*Not related to that auction*/
DOMAIN_Finish_2: 'このアドレスは、落札者、主催者のいずれでもありません。', /*This address is neither the winner nor the seller of the auction.*/
DOMAIN_Finish_3: '競売を終了する', /*Finish the auction*/
DOMAIN_Finish_4: '競売を終了して、落札者にドメインを移管し、主催者に落札金を渡す。', /*Finish the auction to allocate the domain to the winner and the funds to the seller.*/
DOMAIN_Finish_5: 'ドメイン名がDomainsaleに移管されているか確認するために、自分のTXハッシュをクリックしてください。', /*Click your TX hash to see if you successfully transferred the domain to DomainSale.*/
DOMAIN_offer_1: 'お財布が違います', /*Incorrect Wallet*/
DOMAIN_offer_2: 'アンロックされたお財布にこの名前がありません。', /*The wallet you unlocked does not own this name.*/
DOMAIN_offer_3: 'この名前を提供するにはこのアドレスのお財布をアンロック:', /*In order to offer this name, please unlock the wallet with address:*/
DOMAIN_offer_4: '募集価格:', /*Offer For Sale:*/
DOMAIN_offer_5: 'ドメイン名を販売するために、以下のいずれか、あるいは双方の価格を設定してください。ドメイン名の供託金は落札者に、また落札額の10は仲介者に支払われます。', /*Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.*/
DOMAIN_offer_7: '変更後の募集価格:', /*Alter Your Offer for:*/
DOMAIN_offer_8: 'ドメイン名販売募集価格を変更するには、以下のいずれか、あるいは双方を変更してください。ドメイン名の供託金は落札者に、また落札額の10は仲介者に支払われます。', /*Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.*/
DOMAIN_offer_9: '入札価格', /*Buy price*/
DOMAIN_offer_10: 'これはドメイン名を落札するための即決価格です。ゼロの場合には、取引は即座に完了しません。', /*This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.*/
DOMAIN_offer_11: 'これはドメイン名の競売の入札開始価格です。ゼロの場合には、オークションは始まっていません。', /*This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.*/
DOMAIN_offer_12: '自分のドメイン名を競売に出す', /*Offer your domain*/
DOMAIN_offer_13: '販売条件の変更', /*Alter your sale*/
DOMAIN_offer_14: '販売の中止', /*Cancel your sale*/
DOMAIN_offer_15: 'ドメイン名の販売を中止して、そのドメイン名の登録者を自分にもどすことが無料でできます。まだ入札がされていない場合のみ有効です。', /*You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.*/
ENS_Bid_Title: '入札する', /*Place a Bid*/
ENS_Finalize: '終了処理', /*Finalize*/
ENS_Finalize_content: '終了処理を行うと、ドメイン名が落札者に移管されます。落札者には、第二位の入札価格との差額が返却されます。入札が一件だけの場合には、0.01ethとの差額が返却されます。落札者以外の入札も返却されます。', /*Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.*/
ENS_Finalize_content_1: 'まもなく、オークションの最終処理と登録を行います。', /*You are about to finalize the auction & claim the name:*/
ENS_Helper_1: '処理プロセスの概要は?', /*What is the process like?*/
ENS_Helper_2: ') 準備', /*1. Preparation*/
ENS_Helper_3: 'どのアカウント(お財布)を使用するか決めてから、複数のバックアップがあることを確認、あるいは作成してください。', /*Decide which account you wish to own the name & ensure you have multiple backups of that account.*/
ENS_Helper_4: 'そのドメイン名に対して可能な最大の支払ETHを決めてください(自分の<u>Bid Amount</u>)。その口座に、入札に必要な額と0.01ETHのガス消費分が残っていることを確かめてください。', /*Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.*/
ENS_Helper_5: ') 競売の開始と入札', /*2. Start an Auction / Place a Bid*/
ENS_Helper_6: '入札期間は3日間(72時間)です。', /*Bidding period lasts 3 days (72 hours).*/
ENS_Helper_7: '<u>Secret Phrase</u>で保護された<u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>を入力します。', /*You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.*/
ENS_Helper_8: '入札はここから行いますが、ここに表示された情報は入札開示を行うまで秘匿されます。', /*This places your bid, but this information is kept secret until you reveal it.*/
ENS_Helper_9: ') 入札の開示', /*3. Reveal your Bid*/
ENS_Helper_10: '入札を開示しないと、払い戻しができません。', /***If you do not reveal your bid, you will not be refunded.***/
ENS_Helper_11: '開示期間は2日間(48時間)です。', /*Reveal Period lasts 2 days (48 hours).*/
ENS_Helper_12: 'アカウントを解錠してから, <u>Bid Amount</u>, と <u>Secret Phrase</u>を入力してください。', /*You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.*/
ENS_Helper_13: '同一価格での応札では、先に開示された応札が優先されます。', /*In the event that two parties bid exactly the same amount, the first bid revealed will win.*/
ENS_Helper_14: ') 競売を終了する', /*4. Finalize the Auction*/
ENS_Helper_15: 'いったん競売が(五日間、あるいは120時間後に)終了すると、その新しいドメイン名を確定するために、落札者は最終処理を行う必要があります。', /*Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.*/
ENS_Helper_16: '落札者には、その入札額と二番入札との差額が返金されます。', /*The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.*/
ENS_Helper_17: '詳細情報', /*More Information*/
ENS_Helper_18: '登録のための競売は、封印入札方式で、詳細は', /*The auction for this registrar is a blind auction, and is described in*/
ENS_Helper_19: '基本的には応札中に何も開示されません。', /*Basically, no one can see *anything* during the auction.*/
ENS_Helper_20: 'ENS:解説書を読む', /*ENS: Read the Docs*/
ENS_Helper_21: 'イサーリアムネームサービスの改訂日の発表!', /*Announcing the Ethereum Name Service Relaunch Date!*/
ENS_Helper_22: '知識ベース:ENS', /*Knowledge Base: ENS*/
ENS_Helper_23: '開札時の[BAD INSTRUCTION] (Reveal) をデバッグする', /*Debugging a [BAD INSTRUCTION] Reveal*/
ENS_Helper_24: '開札時(Reveal)の障害について、サポート依頼する前に上記をお試しください。申し訳ございません。:(', /*Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(*/
ENS_Reveal_Title: '開札する', /*Reveal your Bid*/
ENS_Start_Title: '競売を始める', /*Start an Auction*/
ENS_WrongAddress_1: '解錠したワレットにドメイン名がありません。', /*The wallet you unlocked does not own the name */
ENS_WrongAddress_2: 'アドレスを指定してお財布を解錠してください。', /*Please unlock the wallet with address */
EOS_01: '**EOSの鍵対の生成**', /* **Generate EOS Key-pair** */
EOS_02: '**EOSの鍵を登録/転写する**', /* **Register / Map your EOS Key** */
EOS_03: '`register`を選択する', /*Select `register`*/
EOS_04: '**EOSの公開鍵**を入力する <--- EOSの公開鍵に注意!', /*Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!*/
EOS_05: '送出ページでEOSの契約に入金', /*Fund EOS Contract on Send Page*/
EOS_06: 'Ether/トークンの送出ページに移動', /*Go to Send Ether & Tokens Page*/
EOS_07: '解錠中のお財布と同じものをここで解錠', /*Unlock same wallet you are unlocking here.*/
EOS_08: '支援する数量を`0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`に送出する', /*Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`*/
EOS_09: 'EOSトークンを請求', /*Claim EOS Tokens*/
EOS_10: '`claimAll`を選択。', /*Select `claimAll`.*/
/* Onboarding */
ONBOARD_welcome_title: 'いらっしゃいませ! MyEtherWallet.com へようこそ!', /*Welcome to MyEtherWallet.com*/
ONBOARD_welcome_content__1: '安全のためにご理解ください🙏 。', /*Please take some time to understand this for your own safety. 🙏*/
ONBOARD_welcome_content__2: 'これらの警告をよくご覧いただきませんと、**資産が盗まれる**ことになります。', /*Your funds will be stolen if you do not heed these warnings.*/
ONBOARD_welcome_content__3: 'わずらわしい説明と重々に承知いたしております。申し訳ございません。', /*We know this click-through stuff is annoying. We are sorry.*/
ONBOARD_welcome_content__4: 'MEWって何?', /*What is MEW*/
ONBOARD_welcome_content__5: 'MyEtherWalletはソースコード公開で、クライアント側にある無料で共用の利用者窓口です。', /*MyEtherWallet is a free, open-source, client-side interface.*/
ONBOARD_welcome_content__6: 'ブロックチェーン上の暗号鍵と暗号資産の管理を直接行うことができます。', /*We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.*/
ONBOARD_welcome_content__7: 'セキュリティの全責任は**自分**に、そして**自分だけ**にあります。', /***You** and **only you** are responsible for your security.*/
ONBOARD_welcome_content__8: 'MEWを騙る詐欺サイトに行って、暗号鍵や、暗号資産を盗られてしまったら、誰も取り返したり凍結することはできません。', /*We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.*/
ONBOARD_bank_title: 'MyEtherWalletは金融機関にあらず ', /*MyEtherWallet is not a Bank*/
ONBOARD_bank_content__1: '取引所などの金融機関に口座を開設すると、その金融機関がシステムの中にあなたの口座を作成します。', /*When you open an account with a bank or exchange, they create an account for you in their system.*/
ONBOARD_bank_content__2: 'その金融機関は口座のパスワード、残高、取引記録や最終的にあなたの財産を含む個人情報を記録管理します。', /*The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.*/
ONBOARD_bank_content__3: 'また、カードが盗難に会った際の払い戻しなど、口座の維持管理に必要な手数料を徴収します。', /*The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.*/
ONBOARD_bank_content__4: 'そのため、送金したり、オンラインで口座の確認をしたり、パスワードや盗難に会ったカードの再発行ができます。', /*The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.*/
ONBOARD_bank_content__5: '金融機関や取引所にある口座では、送金額の上限、送金相手の設定、送金前にどれくらいの時間をかけて相手の疑わしさを調べるか、などを独自に決めています。全て手数料が元になっています。', /*You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.*/
ONBOARD_welcome_title__alt: '前置き', /*Introduction*/
ONBOARD_interface_title: 'MyEtherWalletは、共用の利用者窓口 ', /*MyEtherWallet is an Interface*/
ONBOARD_interface_content__1: 'MyEtherWalletを使って口座を作る時、一対の暗号のための二つの長い数字、すなわち秘密鍵と公開鍵アドレスとが作成されます。', /*When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).*/
ONBOARD_interface_content__2: 'これらの暗号鍵の操作は全て自分のコンピューターのブラウザの中で行われます。', /*The handling of your keys happens entirely on your computer, inside your browser.*/
ONBOARD_interface_content__3: '私たちは、秘密鍵、パスワードや口座情報の送信や保管を一切いたしません。', /*We never transmit, receive or store your private key, password, or other account information.*/
ONBOARD_interface_content__4: '私たちは取引手数料を一切いただきません。', /*We do not charge a transaction fee.*/
ONBOARD_interface_content__5: 'あなたは、私たちの**利用者窓口**でブロックチェーンを**直接**操作しています。', /*You are simply using our **interface** to interact **directly with the blockchain**.*/
ONBOARD_interface_content__6: '公開鍵(アドレス)を相手に教えると、ETHやトークンを受け渡し出来る様になります。👍', /*If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍*/
ONBOARD_interface_content__7: '秘密鍵が誰かの手に渡ると、受け取った相手がその口座を自分のものにします。👎', /*If you send your *private key* to someone, they now have full control of your account. 👎*/
ONBOARD_bank_title__alt: 'MyEtherWalletは金融機関にあらず ', /*MEW isn\'t a Bank*/
ONBOARD_blockchain_title__alt: '一体ブロックチェーンって何? ', /*WTF is a Blockchain?*/
ONBOARD_blockchain_skip: 'もう知ってるんだけど...', /*I already know what a blockchain is...*/
ONBOARD_blockchain_title: 'ちょっと待って、一体ブロックチェーンって何? ', /*Wait, WTF is a Blockchain?*/
ONBOARD_blockchain_content__1: 'ブロックチェーンは、世界共通の巨大な分散型のスプレッドシートのようなものです。', /*The blockchain is like a huge, global, decentralized spreadsheet.*/
ONBOARD_blockchain_content__2: '誰が誰にコインをいくら送ったとか、どの口座にいくら、などの履歴を全て持っています。', /*It keeps track of who sent how many coins to whom, and what the balance of every account is.*/
ONBOARD_blockchain_content__3: '何千もいる特殊なコンピューターを持った人(発掘者)によって記録と管理が行われます。', /*It is stored and maintained by thousands of people (miners) across the globe who have special computers.*/
ONBOARD_blockchain_content__4: 'ブロックチェーンのなかのブロックはMyEtherWallet, MetaMask, Exodus, Mist, Geth, Parityなど至る所で行われている個々の処理や取引で作られています。', /*The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.*/
ONBOARD_blockchain_content__5: 'MyEtherWalletや[etherscan.io](https://etherscan.io)で残高や処理を見た時、見えるのは私たちのシステムの中ではなく、ブロックチェーンにあるデータです。', /*When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.*/
ONBOARD_blockchain_content__6: 'もう一度: **私たちは金融機関ではありません。**', /*Again: **we are not a bank**.*/
ONBOARD_interface_title__alt: 'MEWは共用の利用者窓口 ', /*MEW is an Interface*/
ONBOARD_why_title__alt: 'でも...なんでそれがそんなに大事?', /*But...why does this matter?*/
ONBOARD_why_title: 'なんで全部読ませる訳?', /*Why are you making me read all this?*/
ONBOARD_why_content__1: 'それは私たちに**出来ない**事をわかっていただくためで...', /*Because we need you to understand that we **cannot**...*/
ONBOARD_why_content__2: '口座にアクセスしてあなたに代わって送金すること。', /*Access your account or send your funds for you X.*/
ONBOARD_why_content__3: '秘密鍵の回復または変更。', /*Recover or change your private key.*/
ONBOARD_why_content__4: 'パスワードのリセットまたは回復。', /*Recover or reset your password.*/
ONBOARD_why_content__5: '処理の巻き戻し、取り消しあるいは金額変更。', /*Reverse, cancel, or refund transactions.*/
ONBOARD_why_content__6: '口座の凍結。', /*Freeze accounts.*/
ONBOARD_why_content__7: '**あなた**が、そして**あなただけ**が自分のセキュリテイの全責任を持ちます。', /***You** and **only you** are responsible for your security.*/
ONBOARD_why_content__8: '秘密鍵とパスワードを大事に保管してください。秘密鍵は、ニーモニックフレーズ、キーストアファイル、UTCファイル、JSONファイル、お財布(ワレット)ファイルとも呼ばれることがあります。', /*Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.*/
ONBOARD_why_content__9: 'もし秘密鍵やパスワードを忘れると、誰も回復させることができません。', /*If you lose your private key or password, no one can recover it.*/
ONBOARD_why_content__10: 'もし、あなたが秘密鍵を詐欺サイトで入力すると、**全ての資産**が盗まれてしまいます。' }, _defineProperty(_ja$data, 'ONBOARD_blockchain_title__alt', '一体ブロックチェーンって何? '), _defineProperty(_ja$data, 'ONBOARD_point_title__alt', 'それじゃMEWは何ができるの?'), _defineProperty(_ja$data, 'ONBOARD_whymew_title', 'MyEtherWalletにできないなら、どうすればいいの'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__1', 'それがブロックチェーンによる分散化の**きも**だからです。'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__2', '自分の資産やお金を動かすときに、金融機関、政府や他の誰かを頼る必要が全くありません。'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__3', '自分の資産を守るために、取引所や金融機関のセキュリティを頼る必要もありません。'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__4', 'もし、こういった事には価値がない、と感じるのでしたら、なぜブロックチェーンや仮想通貨に価値があるのかよーく考えて見てください。'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__5', 'もし、お気に召さないようでしたら、[Coinbase](https://www.coinbase.com/) や [Blockchain.info](https://blockchain.info/wallet/#/signup)をお使いください。これらは、より身近なIDとパスワードを使用しています。'), _defineProperty(_ja$data, 'ONBOARD_whymew_content__6', 'もし、少し不安だけれどもMEWを使いたければ、[ハードウェアワレットを入手(英語)](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)'), _defineProperty(_ja$data, 'ONBOARD_why_title__alt', 'でも...どうして?'), _defineProperty(_ja$data, 'ONBOARD_secure_title', '自分自身とその資産の守り方 '), _defineProperty(_ja$data, 'ONBOARD_secure_1_title', 'オンライン詐欺から自分自身を守る方法 '), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__1', 'オンライン詐欺師は、MyEtherWallet、EtherDelta、Paypalやあなたの金融機関のリンクが含まれた個人メッセージを送りつけてきますが、これは偽のサイトです。あなたの情報を盗み、そして資産を盗みます。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__2', '[EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn)または[MetaMask](https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige). のクローム拡張を使って、これらの悪意のサイトを遮断してください。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__3', 'いつも、必ず、「https://www.myetherwallet.com」を確認してください。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__4', 'URLバーに、 `MYETHERWALLET LLC [US]`と緑色で表示されていることを必ず確認してください。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__5', 'メール、Slack、Reddit、Twitterやその他から送られてくるメッセージやリンクを信用しないでください。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__6', '情報を入力する前に、常に直接サイトを参照してから閲覧してください。eメールやメッセージのリンクを押してから情報を入力しないでください。'), _defineProperty(_ja$data, 'ONBOARD_secure_1_content__7', '[AdBlockerを導入](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=ja)し、サーチエンジンの広告(例:グーグル)をクリックしないでください。'), _defineProperty(_ja$data, 'ONBOARD_point_title__alt_2', 'それで要点は?'), _defineProperty(_ja$data, 'ONBOARD_secure_2_title', 'オンライン詐欺から自分自身を守る方法'), _defineProperty(_ja$data, 'ONBOARD_secure_2_content__1', 'これらの人達は、何の見返りもなしにお金をあげる、と言って近づいてきます。'), _defineProperty(_ja$data, 'ONBOARD_secure_2_content__2', 'もし、ありそうにないほど良い話であれば、きっとその通りです。'), _defineProperty(_ja$data, 'ONBOARD_secure_2_content__3', '誰か、あるいは何かのプロジェクトに送金する前に、よくお調べください。サイトやフォーラムの情報をよく確かめてください。慎重に。'), _defineProperty(_ja$data, 'ONBOARD_secure_2_content__4', '理解できなかったり、正しくないと思われる場合には、直接質問してください。'), _defineProperty(_ja$data, 'ONBOARD_secure_2_content__5', '不安や懐疑心、流行遅れになる事の恐怖が常識の範囲を越えないように。もし何かとても緊急だと言われたら、なぜだろう、と自分でもう一度考えてみてください。おそらくそれは、時期を逃してしまう恐怖を煽るものか、十分な下調べをさせないための罠です。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_title__alt', ' くたばれ詐欺師ども'), _defineProperty(_ja$data, 'ONBOARD_secure_3_title', '損失を防ぐ方法 '), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__1', 'もしパスワードや秘密鍵を無くすと、財産を永久に失います。絶対に無くすな。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__2', '秘密鍵やパスワードのバックアップを作成してください。コンピューターに保存したままにしないでください。印刷したり、USBキーに保存してください。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__3', 'その紙やUSBキーを別の場所に保管してください。一つだけのバックアップでは、火事や津波などで、ラップトップコンピューターと共に破壊されてしまいます。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__4', '秘密鍵をDropbox、Google Drive、や他のクラウドストレージに保管しないでください。そのアカウントのセキュリティが損なわれた場合に、資産が盗まれてしまいます。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__5', 'もし、あなたが自分の1週間以上の給料に値する仮想通貨をお持ちであれば、ハードウェア・ワレットを入手してください。言い訳無用です。それだけの価値があります。私が保証します。'), _defineProperty(_ja$data, 'ONBOARD_secure_3_content__6', '[さらに安全確保のためのセキュリティ情報!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_ja$data, 'ONBOARD_secure_2_title__alt_2', '詐欺の撲滅 '), _defineProperty(_ja$data, 'ONBOARD_final_title__alt', 'もうワンクリックで完了です! 🤘'), _defineProperty(_ja$data, 'ONBOARD_final_title', 'オーライ!講義終了!'), _defineProperty(_ja$data, 'ONBOARD_final_subtitle', 'こんな風で申し訳ありません。次はこれです!'), _defineProperty(_ja$data, 'ONBOARD_final_content__1', 'お財布を作る'), _defineProperty(_ja$data, 'ONBOARD_final_content__2', 'ハードウェア・ワレットを手に入れる'), _defineProperty(_ja$data, 'ONBOARD_final_content__3', 'MEWとMetamaskの設定方法'), _defineProperty(_ja$data, 'ONBOARD_final_content__4', 'オフライン/手元でのMEWの使い方'), _defineProperty(_ja$data, 'ONBOARD_final_content__5', 'Ledgerハードウェア・ワレットでの送出方法'), _defineProperty(_ja$data, 'ONBOARD_final_content__6', 'TREZORハードウェア・ワレットでの送出方法'), _defineProperty(_ja$data, 'ONBOARD_final_content__7', 'MetaMaskでの送出方法'), _defineProperty(_ja$data, 'ONBOARD_final_content__8', 'もっと教えて、連絡したい'), _defineProperty(_ja$data, 'ONBOARD_final_content__9', 'もう勘弁、お願い、早く使わせて。'), _defineProperty(_ja$data, 'ONBOARD_resume', '前回スライドを最後までお読みになっていないようです。プロのアドバイス:スライドを全部読みましょう😉'), _defineProperty(_ja$data, 'ADD_DigitalBitbox_0a', 'セキュアコネクションSSL)で再度MyEtherWalletを開いてください。 '), _defineProperty(_ja$data, 'ADD_DigitalBitbox_0b', 'MyEtherWalletを再度「Chrome」(https://www.google.com/chrome/browser/desktop/) あるいは [Opera](https://www.opera.com/)で開いてください。 '), _defineProperty(_ja$data, 'ADD_DigitalBitbox_scan', 'DigitalBitboxに接続する '), _defineProperty(_ja$data, 'ADD_Label_1', 'ご希望の操作方法をお選びください '), _defineProperty(_ja$data, 'ADD_Label_2', 'ニックネームの作成: '), _defineProperty(_ja$data, 'ADD_Label_3', 'お財布が暗号化されています。パスワードを入力してください: '), _defineProperty(_ja$data, 'ADD_Label_4', '監視するアカウントを追加 '), _defineProperty(_ja$data, 'ADD_Label_5', 'アドレスを入力 '), _defineProperty(_ja$data, 'ADD_Label_6', 'お財布をアンロック: '), _defineProperty(_ja$data, 'ADD_Label_6_short', 'アンロック '), _defineProperty(_ja$data, 'ADD_Label_7', 'アカウント追加 '), _defineProperty(_ja$data, 'ADD_Label_8', 'パスワード(任意): '), _defineProperty(_ja$data, 'ADD_Ledger_0a', 'セキュアコネクションSSL)で再度MyEtherWalletを開いてください。 '), _defineProperty(_ja$data, 'ADD_Ledger_0b', 'MyEtherWalletを再度「Chrome」(https://www.google.com/chrome/browser/desktop/) あるいは [Opera](https://www.opera.com/)で開いてください。 '), _defineProperty(_ja$data, 'ADD_Ledger_1', '自分の Ledger Wallet を接続する '), _defineProperty(_ja$data, 'ADD_Ledger_2', 'イサリアムアプリケーション(あるいはコントラクトアプリケーション)を開く 。 '), _defineProperty(_ja$data, 'ADD_Ledger_2_Exp', 'Expanseアプリケーションまたは契約アプリケーションを開きます。'), _defineProperty(_ja$data, 'ADD_Ledger_2_Ubq', 'Ubiqアプリケーションまたは契約アプリケーションを開きます。'), _defineProperty(_ja$data, 'ADD_Ledger_3', '設定中で、ブラウザサポートが有効にされていることを確認してください。 '), _defineProperty(_ja$data, 'ADD_Ledger_4', '設定にブラウザサポートが見つからなければ、[Firmware >1.2]を確認してください。(https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_ja$data, 'ADD_Ledger_scan', 'Ledger Wallet に接続 '), _defineProperty(_ja$data, 'ADD_MetaMask', 'MetaMask に接続 '), _defineProperty(_ja$data, 'ADD_Radio_1', 'お財布の新規作成 '), _defineProperty(_ja$data, 'ADD_Radio_2', 'お財布ファイルの選択 (Keystore / JSON) '), _defineProperty(_ja$data, 'ADD_Radio_2_alt', 'お財布ファイルの選択: '), _defineProperty(_ja$data, 'ADD_Radio_2_short', 'お財布ファイルを選択 '), _defineProperty(_ja$data, 'ADD_Radio_3', '秘密鍵をペースト/タイプ '), _defineProperty(_ja$data, 'ADD_Radio_4', '監視するアカウントを追加 '), _defineProperty(_ja$data, 'ADD_Radio_5', 'ニーモニックを上書き/タイプ '), _defineProperty(_ja$data, 'ADD_Radio_5_Path', 'HD derivation pathを選択 '), _defineProperty(_ja$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_ja$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_ja$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_ja$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_ja$data, 'ADD_Radio_5_PathCustom', 'カスタム'), _defineProperty(_ja$data, 'ADD_Trezor_scan', 'TREZORに接続 '), _defineProperty(_ja$data, 'ADD_Warning_1', '任意のアカウントを監視する目的で、秘密鍵をアップロードせずにお財布タブに追加することできます。これによってお財布の操作や、ETHERの移動が可能になるわけではありません。 '), _defineProperty(_ja$data, 'BULK_Label_1', '作成するお財布の数 '), _defineProperty(_ja$data, 'BULK_Label_2', 'お財布を複数を作成する '), _defineProperty(_ja$data, 'BULK_SuccessMsg', '成功!お財布が作成されました。 '), _defineProperty(_ja$data, 'CONTRACT_ByteCode', 'バイトコード '), _defineProperty(_ja$data, 'CONTRACT_Interact_CTA', '機能を一つ選ぶ '), _defineProperty(_ja$data, 'CONTRACT_Interact_Title', '契約の読込や書込 '), _defineProperty(_ja$data, 'CONTRACT_Json', 'ABI / JSON インターフェース '), _defineProperty(_ja$data, 'CONTRACT_Read', '読み取り '), _defineProperty(_ja$data, 'CONTRACT_Title', '契約アドレス '), _defineProperty(_ja$data, 'CONTRACT_Title_2', '既存の契約を選択 '), _defineProperty(_ja$data, 'CONTRACT_Write', '書き込み '), _defineProperty(_ja$data, 'CX_error_1', 'お財布が保存されていません。["Add Wallet"](/cx-wallet.html#add-wallet)をクリックして追加してください。 '), _defineProperty(_ja$data, 'CX_quicksend', '簡易送信 '), _defineProperty(_ja$data, 'CX_Tagline', 'オープンソース JavaScript クライアントサイド Etherお財布 Chrome Extension '), _defineProperty(_ja$data, 'CX_Warning_1', '必ずここに保管するすべてのお財布の「外部バックアップ」を作成してください。このChrome Extensionでは、再導入などで、データが保存されずの消失することが頻繁に起こります。このエクステンションは容易な操作を提供するのみで、「バックアップ」は行いません。 '), _defineProperty(_ja$data, 'decrypt_Access', 'どの方法でお財布を操作しますか? '), _defineProperty(_ja$data, 'decrypt_Title', '秘密鍵形式の選択: '), _defineProperty(_ja$data, 'decrypt_Select', 'お財布の選択 '), _defineProperty(_ja$data, 'DEP_generate', 'バイトコードを生成する '), _defineProperty(_ja$data, 'DEP_generated', '生成されたバイトコード '), _defineProperty(_ja$data, 'DEP_signtx', 'トランザクションに署名 '), _defineProperty(_ja$data, 'DEP_interface', '生成されたインターフェース '), _defineProperty(_ja$data, 'ERROR_0', '(error_01) 正しい値を入力してください。 (Please enter a valid amount.) '), _defineProperty(_ja$data, 'ERROR_1', '(error_02) パスワードは少なくとも9文字が必要です。強固なパスワードであることをお確かめください。 (Your password must be at least 9 characters. Please ensure it is a strong password.) '), _defineProperty(_ja$data, 'ERROR_2', '(error_03) 申し訳ございませんが、このタイプのお財布ファイルは認識できません。 (Sorry! We don\'t recognize this type of wallet file.) '), _defineProperty(_ja$data, 'ERROR_3', '(error_04) 正しいお財布ファイルではありません。 (This is not a valid wallet file.) '), _defineProperty(_ja$data, 'ERROR_4', '(error_05) この単位は存在しませんので、下記の中からお選びください。 (This unit doesn\'t exists, please use the one of the following units) '), _defineProperty(_ja$data, 'ERROR_5', '(error_06) 無効なアドレスです。 (Please enter a valid address.) '), _defineProperty(_ja$data, 'ERROR_6', '(error_07) 無効なパスワードです。 (Please enter a valid password.) '), _defineProperty(_ja$data, 'ERROR_7', '(error_08) 無効な総量です。 (Must be integer. Try 0-18.) (Please enter valid decimals (Must be an integer. Try 0-18.)) '), _defineProperty(_ja$data, 'ERROR_8', '(error_09) 無効なガスリミットです。 (Must be integer. Try 21000-4000000.) (Please enter a valid gas limit (Must be an integer. Try 21000-4000000.)) '), _defineProperty(_ja$data, 'ERROR_9', '(error_10) 無効なデータです。 (Must be hex.) (Please enter a valid data value (Must be hex.)) '), _defineProperty(_ja$data, 'ERROR_10', '(error_11) 無効なガス総量です。 (Must be integer. Try 20 GWEI / 20000000000 WEI.) (Please enter a valid gas price. (Must be an integer. Try 20 GWEI / 20000000000 WEI.)) '), _defineProperty(_ja$data, 'ERROR_11', '(error_12) 無効な nonce です。 (Must be integer.) (Please enter a valid nonce (Must be an integer.)) '), _defineProperty(_ja$data, 'ERROR_12', '(error_13) 無効な署名のトランザクションです。 (Invalid signed transaction.) '), _defineProperty(_ja$data, 'ERROR_13', '(error_14) 同じニックネームのお財布が既にあります。 (A wallet with this nickname already exists.) '), _defineProperty(_ja$data, 'ERROR_14', '(error_15) お財布が見つかりません。 (Wallet not found.) '), _defineProperty(_ja$data, 'ERROR_15', '(error_16) このIDのプロポーサルは存在しない、あるいは正常に読み込みできません。 (Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal.) '), _defineProperty(_ja$data, 'ERROR_16', '(error_17) 同じアドレスのお財布が既に存在します。お財布のページをご確認ください。 (A wallet with this address already exists in storage. Please check your wallets page.) '), _defineProperty(_ja$data, 'ERROR_17', '(error_18) "ファンドが足りません。 トランザクション送出元のファンドが不足しています。ガスとして使われるために、少なくとも0.01 etherがお財布上に必要です。 (Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)) '), _defineProperty(_ja$data, 'ERROR_18', '(error_19) 全てのガスがこのトランザクションにより消費されます。これは、既に投票を行ったか、あるいはディベート期間が終了したためです。 (All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.) '), _defineProperty(_ja$data, 'ERROR_19', '(error_20) 無効なシンボル (Please enter a valid symbol) '), _defineProperty(_ja$data, 'ERROR_20', '(error_21) は有効なERC-20トークンではありません。もし他のトークンをロード中であれば、このトークンを取り除いてからもう一度試してください。 (Not a valid ERC-20 token) '), _defineProperty(_ja$data, 'ERROR_21', '(error_22) ガス量を推定できません。十分な資金が口座にないか、あるいは受け取り側のコントラクトがエラーになっています。ガス量を変更してから試してください。送出時にはより詳しいエラーメッセージが返ります。 (Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.) '), _defineProperty(_ja$data, 'ERROR_22', '(error_23) 正しいノード名を入力してください (Please enter a valid node name) '), _defineProperty(_ja$data, 'ERROR_23', '(error_24) 正しいURLを入力してください。 HTTPS接続の場合には、ードはHTPPSで接続しなければなりません。 (Please enter a valid URL. If you are on https, your URL must be https) '), _defineProperty(_ja$data, 'ERROR_24', '(error_25) 正しいポートを入力してください (Please enter a valid port.) '), _defineProperty(_ja$data, 'ERROR_25', '(error_26) 正しい chain ID を入力してください (Please enter a valid chain ID.) '), _defineProperty(_ja$data, 'ERROR_26', '(error_27) 正しい ABI を入力してください (Please enter a valid ABI.) '), _defineProperty(_ja$data, 'ERROR_27', '(error_28) 最小値: 0.01. 最大値: (Minimum amount: 0.01. Max amount:) '), _defineProperty(_ja$data, 'ERROR_28', '(error_29) お財布を操作するためには**Keystore/JSONとパスワードか秘密鍵が必要** 保存してから、外部バックアップしてください!ここで保存しないとお財布が使用できなくなります。詳細はヘルプページを参照してください。(https://www.myetherwallet.com/#help) (You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. ) '), _defineProperty(_ja$data, 'ERROR_29', '(error_30) 正しいユーザーとパスワードを入力してください (Please enter a valid user and password.) '), _defineProperty(_ja$data, 'ERROR_30', '(error_31) 正しい ENS名を入力してください (Please enter a valid name (7+ characters, limited punctuation)) '), _defineProperty(_ja$data, 'ERROR_31', '(error_32) 無効な秘密フレーズです (Please enter a valid secret phrase.) '), _defineProperty(_ja$data, 'ERROR_32', '(error_33) ノードに接続できませんでした。ページを再表示したり、別のノード(画面の右上にあります)を試したり,ファイアーウォールの設定を確認してください。 カスタムノードの使用時には、構成設定を確認してください (Could not connect to the node. Refresh your page, try a different node (top-right corner), check your firewall settings. If custom node, check your configs.)。'), _defineProperty(_ja$data, 'ERROR_33', '(error_34) アンロックしたお財布のアドレスがオーナーのアドレスと一致しません (The wallet you have unlocked does not match the owner\'s address.)。'), _defineProperty(_ja$data, 'ERROR_34', '(error_35) 以前に入力したものと異なる名前です。 (The name you are attempting to reveal does not match the name you have entered.) '), _defineProperty(_ja$data, 'ERROR_35', '(error_36) チェックサムが付いていません。 <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> 詳細</a (Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer">What does that mean?</a>)>'), _defineProperty(_ja$data, 'ERROR_36', '(error_37) 正しいトランザクションハッシュを入力してくださ (Please enter a valid TX hash)い'), _defineProperty(_ja$data, 'ERROR_37', '(error_38) 16進数を正しく入力してください (0-9, a-f (Please enter valid hex string. Hex only contains: 0x, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, a, b, c, d, e, f))'), _defineProperty(_ja$data, 'ERROR_38', '(error_39) Offer must have either price or reserve set to more than 0'), _defineProperty(_ja$data, 'ERROR_39', '(error_40) Bid must be more than the specified minimum'), _defineProperty(_ja$data, 'GETH_Balance', '(geth-01) 残高不足 Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_ja$data, 'GETH_Cheap', '(geth-02) ガス価格が低すぎます Gas price too low for acceptance. Try raising the gas price to 21 GWEI via the dropdown in top-right.'), _defineProperty(_ja$data, 'GETH_GasLimit', '(geth-03) ブロックガスリミットを越えています Exceeds block gas limit. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)'), _defineProperty(_ja$data, 'GETH_InsufficientFunds', '(geth-04) ガス*価格+数量に足りません Insufficient balance. Your gas limit * gas price + amount to send exceeds your current balance. Send more ETH to your account or use the "Send Entire Balance" button. If you believe this is in error, try pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)'), _defineProperty(_ja$data, 'GETH_IntrinsicGas', '(geth-05) 基本のガス不足です Intrinsic gas too low. Try raising the gas price to 21 GWEI via the dropdown in top-right or the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again.'), _defineProperty(_ja$data, 'GETH_InvalidSender', '(geth-06) 送出元が無効です Invalid sender.'), _defineProperty(_ja$data, 'GETH_NegativeValue', '(geth-07) 負の値です Negative value.'), _defineProperty(_ja$data, 'GETH_Nonce', '(geth-08) Nonce が足りません This TX\'s [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html) is too low. Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html).'), _defineProperty(_ja$data, 'GETH_NonExistentAccount', '(geth-09) アカウントが存在しない、あるいはその残高不足です Account does not exist or account balance too low'), _defineProperty(_ja$data, 'PARITY_AlreadyImported', "(parity-01) 同じハッシュのトランザクションがすでにインポートされています。 A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ja$data, 'PARITY_GasLimitExceeded', "(parity-02) トランザクションコストがガスリミットを超過しました。 リミット: {}, 現在: {}. ガス供給量を減らして見てください。"), _defineProperty(_ja$data, 'PARITY_InsufficientBalance', "(parity-03) ファンドが足りません。 トランザクション送出元のファンドが不足しています。 必要量 {} で 現在: {}  です。 Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ja$data, 'PARITY_InsufficientGasPrice', "(parity-04) トランザクションフィー不足です。 ノードの最小 fee を満たしていません。 (minimal: {}, got: {}). fee を増やしてください。 There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ja$data, 'PARITY_InvalidGasLimit', "(parity-05) ガス供給量が制限を超過しています。 Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_ja$data, 'PARITY_LimitReached', "(parity-06) キューにあるトランザクションの数が多すぎます。上限を超えたため、対象のトランザクションは除外されています。その fee を増やしてみてください。 There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ja$data, 'PARITY_Old', "(parity-07) トランザクション nonceが小さすぎます。増やしてみてください。 There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_ja$data, 'PARITY_TooCheapToReplace', "(parity-08) トランザクションフィー不足です。同じ nonce のトランザクションが別のキューにあります。fee または nonce を増やしてみてください。 TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_ja$data, 'FOOTER_1', 'イサーリアムお財布の作成とトランザクション実行のためのオープンソース、javascript、 クライアントサイドツール。 '), _defineProperty(_ja$data, 'FOOTER_1b', '制作 '), _defineProperty(_ja$data, 'FOOTER_2', '投げ銭に感謝致します!: '), _defineProperty(_ja$data, 'FOOTER_3', 'クライアントサイドお財布制作 '), _defineProperty(_ja$data, 'FOOTER_4', '免責事項 '), _defineProperty(_ja$data, 'GAS_PRICE_Desc', 'ガス価格は、ガスの一単位にかかるの料金のことです。 「処理料金 = ガス価格 ガスリミット」で算出され、自分の処理をブロックに配置するためにマイナーに支払う手数料です。ガス価格が高いほど処理は早く行われますが、料金は高くなります。デファルトは 「20 GWEI」です。'), _defineProperty(_ja$data, 'GAS_LIMIT_Desc', 'ガスリミットは、その処理のために送出するガスの総量です。「処理料金 = ガス価格 ガスリミット」で算出され、自分の処理をブロックに配置するための料金として支払われます。 この数字を増やしても、自分の処理が早くなることはありません。ETHの送出 = 「21000」、トークンの送出 = ~「200000」が目安になります。'), _defineProperty(_ja$data, 'GEN_desc', '複数のお財布の作成をこのタブで行う事ができます: '), _defineProperty(_ja$data, 'GEN_Help_1', 'この'), _defineProperty(_ja$data, 'GEN_Help_2', 'で自分の口座アドレスにアクセスしてください。'), _defineProperty(_ja$data, 'GEN_Help_3', '自分のデバイスそのものが、自分のお財布です。'), _defineProperty(_ja$data, 'GEN_Help_4', 'ガイドとFAQ'), _defineProperty(_ja$data, 'GEN_Help_5', 'お財布の作り方'), _defineProperty(_ja$data, 'GEN_Help_6', 'ここから始める'), _defineProperty(_ja$data, 'GEN_Help_7', '安全な所で保管してください · バックアップを作成してください · 他の誰にも教えないでください · 絶対になくさないでください · 無くした時には回復する方法はありません。'), _defineProperty(_ja$data, 'GEN_Help_8', 'ファイルをダウンロードしませんでしたか?'), _defineProperty(_ja$data, 'GEN_Help_9', 'Google Chromeをお使いください'), _defineProperty(_ja$data, 'GEN_Help_10', '右クリックしてファイルを保存。ファイル名: '), _defineProperty(_ja$data, 'GEN_Help_11', 'このファイルは自分のコンピューターで開かないでください'), _defineProperty(_ja$data, 'GEN_Help_12', 'MyEtherWalletの上でこれを使って自分のお財布をアンロックしてくださいMist, Geth, Parityや他のお財布クライアントも可'), _defineProperty(_ja$data, 'GEN_Help_13', '自分のキーストアファイルのバックアップ作成方法'), _defineProperty(_ja$data, 'GEN_Help_14', 'これらの方式の違いは?'), _defineProperty(_ja$data, 'GEN_Help_15', '自分の資金の紛失や盗難を防止する。'), _defineProperty(_ja$data, 'GEN_Help_16', 'これらの方式の違いは?'), _defineProperty(_ja$data, 'GEN_Help_17', 'なぜこれらをすべきか?'), _defineProperty(_ja$data, 'GEN_Help_18', '2番目のバックアップ作成のため'), _defineProperty(_ja$data, 'GEN_Help_19', 'パスワードを忘れた場合には'), _defineProperty(_ja$data, 'GEN_Help_20', '隔離された保管場所'), _defineProperty(_ja$data, 'GEN_Label_1', '強固なパスワードを入力(9文字以上) '), _defineProperty(_ja$data, 'GEN_Label_2', 'Keystore/JSON あるいは秘密鍵を保存してください。パスワードを絶対に忘れないようにしてください。 '), _defineProperty(_ja$data, 'GEN_Label_3', 'アドレスを保存してください。 '), _defineProperty(_ja$data, 'GEN_Label_4', '必要であれば、お財布紙情報、あるいはQRコードを印刷してください。 '), _defineProperty(_ja$data, 'GEN_Label_5', '自分の秘密鍵を保存する。'), _defineProperty(_ja$data, 'GEN_Placeholder_1', '必ず保存してください! '), _defineProperty(_ja$data, 'GEN_SuccessMsg', '成功!お財布が作成されました。 '), _defineProperty(_ja$data, 'GEN_Unlock', '自分のアドレスを確認するために、お財布を解錠する'), _defineProperty(_ja$data, 'GET_ConfButton', '理解できました。続けます。'), _defineProperty(_ja$data, 'MEW_Warning_1', 'お財布を操作したり新しいお財布を作成する前に、必ずURLを確認してください。詐欺サイトに御注意ください '), _defineProperty(_ja$data, 'MEW_Tagline', 'オープンソース JavaScript クライアントサイド Etherお財布 '), _defineProperty(_ja$data, 'MNEM_1', '操作したいアドレスを選択してください。 '), _defineProperty(_ja$data, 'MNEM_2', 'HDニーモニックの一つの文節で、複数のお財布やアドレスが操作可能です。操作したいアドレスを選択してください。 '), _defineProperty(_ja$data, 'MNEM_more', 'さらにアドレスを表示 '), _defineProperty(_ja$data, 'MNEM_prev', '前のアドレス表示 '), _defineProperty(_ja$data, 'MSG_message', 'メッセージ '), _defineProperty(_ja$data, 'MSG_date', '日付 '), _defineProperty(_ja$data, 'MSG_signature', '署名 '), _defineProperty(_ja$data, 'MSG_verify', 'メッセージを確認 '), _defineProperty(_ja$data, 'MSG_info1', 'この署名が別の日付で再度使われないようにするために、現時点の日付を入れてください。 '), _defineProperty(_ja$data, 'MSG_info2', '他人に使われないようにするため、あなたのニックネームとそれが使われるところを入れてください。 '), _defineProperty(_ja$data, 'MSG_info3', '異なった目的で使用されないようにするために、利用目的を入れてください。 '), _defineProperty(_ja$data, 'MYWAL_Nick', 'お財布ニックネーム '), _defineProperty(_ja$data, 'MYWAL_Address', 'お財布アドレス '), _defineProperty(_ja$data, 'MYWAL_Bal', '残高 '), _defineProperty(_ja$data, 'MYWAL_Edit', '編集 '), _defineProperty(_ja$data, 'MYWAL_View', '表示 '), _defineProperty(_ja$data, 'MYWAL_Remove', '消去 '), _defineProperty(_ja$data, 'MYWAL_RemoveWal', 'お財布を消去: '), _defineProperty(_ja$data, 'MYWAL_WatchOnly', '監視中のアカウント '), _defineProperty(_ja$data, 'MYWAL_Viewing', 'お財布を表示: '), _defineProperty(_ja$data, 'MYWAL_Hide', 'お財布情報を隠す '), _defineProperty(_ja$data, 'MYWAL_Edit_2', 'お財布を編集: '), _defineProperty(_ja$data, 'MYWAL_Name', 'お財布名 '), _defineProperty(_ja$data, 'MYWAL_Content_1', '警告! お財布を消去しようとしています: '), _defineProperty(_ja$data, 'MYWAL_Content_2', '**秘密鍵と鍵保存ファイル及びパスワード**が保管されているか確認してください。 '), _defineProperty(_ja$data, 'MYWAL_Content_3', 'MyEtherWallet CXでこのお財布を使用するためには、秘密鍵あるいはJSONとパスワードを手動で追加する必要があります。 '), _defineProperty(_ja$data, 'NAV_AddWallet', 'お財布の追加 '), _defineProperty(_ja$data, 'NAV_BulkGenerate', 'バルク作成 '), _defineProperty(_ja$data, 'NAV_CheckTxStatus', '処理状況を確認'), _defineProperty(_ja$data, 'NAV_Contact', '連絡する '), _defineProperty(_ja$data, 'NAV_Contracts', '契約 '), _defineProperty(_ja$data, 'NAV_DeployContract', '契約を展開 '), _defineProperty(_ja$data, 'NAV_DomainSale', 'ドメイン販売'), _defineProperty(_ja$data, 'NAV_ENS', ''), _defineProperty(_ja$data, 'NAV_GenerateWallet_alt', 'お財布の作成 '), _defineProperty(_ja$data, 'NAV_GenerateWallet', 'お財布の作成 '), _defineProperty(_ja$data, 'NAV_Help', 'ヘルプ '), _defineProperty(_ja$data, 'NAV_InteractContract', '契約を操作 '), _defineProperty(_ja$data, 'NAV_Multisig', '多重署名 '), _defineProperty(_ja$data, 'NAV_MyWallets', '自分のお財布 '), _defineProperty(_ja$data, 'NAV_Offline', 'オフライン送出 '), _defineProperty(_ja$data, 'NAV_SendEther', 'Ether/トークンの送出 '), _defineProperty(_ja$data, 'NAV_SendTokens', 'トークン送出 '), _defineProperty(_ja$data, 'NAV_SignMsg', 'メッセージ署名 '), _defineProperty(_ja$data, 'NAV_Swap', '通貨の両替 '), _defineProperty(_ja$data, 'NAV_TxStatus', '処理状況'), _defineProperty(_ja$data, 'NAV_ViewWallet', 'お財布情報を見る '), _defineProperty(_ja$data, 'NAV_YourWallets', '自分のお財布 '), _defineProperty(_ja$data, 'NODE_Title', 'カスタムノードをセットアップ'), _defineProperty(_ja$data, 'NODE_Subtitle', 'ローカルノードに接続するには...'), _defineProperty(_ja$data, 'NODE_Warning', 'MyEtherWallet.com 経由で接続するためには、HTTPSードが必要です。[MyEtherWalletをレポジトリからダウンロードして、手元で走らせ、](https://github.com/kvhnuke/etherwallet/releases/latest)いずれかのノードに接続することもできます。 あるいは、無料のSSL証明書を[LetsEncrypt](https://letsencrypt.org/)から入手してください'), _defineProperty(_ja$data, 'NODE_Name', 'ノード名'), _defineProperty(_ja$data, 'NODE_Port', 'ノードポート'), _defineProperty(_ja$data, 'NODE_CTA', '保存してカスタムノードを使用'), _defineProperty(_ja$data, 'NONCE_Desc', 'このnonceは、指定のアドレスから送出される処理の数です。正しい順番で重複しないように処理を確実にするためのものです。'), _defineProperty(_ja$data, 'OFFLINE_Desc', 'オフライントランザクションの作成は、3ステップで行う事ができます。ステップはオンラインのコンピューター上で行い、ステップは、オフライン、あるいは物理的にネットワークと切断されたコンピューターを用います。これにより、秘密鍵が、インターネットに接続したデバイスと接触する事を避ける事ができます。 '), _defineProperty(_ja$data, 'OFFLINE_Step1_Button', '情報生成 '), _defineProperty(_ja$data, 'OFFLINE_Step1_Label_1', '送出元アドレス: '), _defineProperty(_ja$data, 'OFFLINE_Step1_Label_2', 'ートこれは、送出元アドレスであって、送出先アドレスではありません。操作元アカウントからは「Nonce」が生成されます。切断されたコンピューターを使用する場合に、このアドレスはコールドストレージのアカウントのものになります。 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Title', 'ステップ2: 情報生成 (オフラインコンピューター) '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_1', '送出先アドレス: '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_2', '送出する値/総量 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_3', 'ガス価格 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_3b', 'これは、ステップ1でオンラインコンピューターに表示されたものです。 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_4', 'ガスリミット '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_4b', 'ガスリミットの既定値は21000です。契約や付加データーを送出する場合には、これらの値は 異なるものにする必要があります。使用されなかったガスは全て返却されます。 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_5b', 'これらは、ステップ1でオンラインコンピューターに表示されたものです。 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_6', 'データ '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_6b', 'これは、任意の付加データです。契約に対してトランザクションを送出する際などでよく使われます。 '), _defineProperty(_ja$data, 'OFFLINE_Step2_Label_7', '秘密鍵/JSONの入力/選択 '), _defineProperty(_ja$data, 'OFFLINE_Step3_Title', 'ステップ3: トランザクションの送出/公開(オンラインコンピューター) '), _defineProperty(_ja$data, 'OFFLINE_Step3_Label_1', 'ステップ2で署名されたトランザクションをここにペーストして「トランザクションの送出」ボタンをクリックする。 '), _defineProperty(_ja$data, 'OFFLINE_Title', 'オフライントランザクションを作成し送出 '), _defineProperty(_ja$data, 'OFFLLINE_Step1_Title', 'ステップ1: 情報生成 (オンラインコンピューター) '), _defineProperty(_ja$data, 'SEND_addr', '宛先アドレス: '), _defineProperty(_ja$data, 'SEND_amount', '送出数量: '), _defineProperty(_ja$data, 'SEND_amount_short', '数量 '), _defineProperty(_ja$data, 'SEND_custom', 'カスタムトークンを追加 '), _defineProperty(_ja$data, 'SEND_gas', 'ガス '), _defineProperty(_ja$data, 'SEND_generate', 'トランザクションを生成 '), _defineProperty(_ja$data, 'SEND_raw', '未加工トランザクション '), _defineProperty(_ja$data, 'SEND_signed', '署名済みトランザクション '), _defineProperty(_ja$data, 'SEND_trans', 'トランザクションの送出 '), _defineProperty(_ja$data, 'SEND_TransferTotal', '残高をすべて送出する '), _defineProperty(_ja$data, 'SENDModal_Content_1', '送出準備が '), _defineProperty(_ja$data, 'SENDModal_Content_2', 'について、アドレス '), _defineProperty(_ja$data, 'SENDModal_Content_3', 'に対し完了。本当に送出してよろしいですか? '), _defineProperty(_ja$data, 'SENDModal_Content_4', 'ート最も起こりやすいエラーの原因は、送出のためのガス不足で、その場合には、ETHを追加する必要があります。ガスはETHで支払われます。 '), _defineProperty(_ja$data, 'SENDModal_No', 'いいえ、中断します。 '), _defineProperty(_ja$data, 'SENDModal_Title', '警告! '), _defineProperty(_ja$data, 'SENDModal_Yes', 'はい、確かです。処理を実行します。 '), _defineProperty(_ja$data, 'sidebar_AccountInfo', 'アカウント情報 '), _defineProperty(_ja$data, 'sidebar_AccountAddr', 'アカウントアドレス: '), _defineProperty(_ja$data, 'sidebar_AccountBal', 'アカウント残高 '), _defineProperty(_ja$data, 'sidebar_TokenBal', 'トークン残高 '), _defineProperty(_ja$data, 'sidebar_Equiv', '等価 '), _defineProperty(_ja$data, 'sidebar_TransHistory', 'トランザクション履歴 '), _defineProperty(_ja$data, 'sidebar_donation', 'MyEtherWalletは、プライバシーとセキュリティのための無料のオープンソースサービスです。 寄付が増えることによって、新機能やフィードバックの反映を行い、よりユーザーの皆様のご希望に沿った制作の時間を増やす事が可能になります。私たちは、たった二人で世界を変えようとしています。お手伝いいただけますか? '), _defineProperty(_ja$data, 'sidebar_donate', '寄付する '), _defineProperty(_ja$data, 'sidebar_thanks', '感謝します!!! '), _defineProperty(_ja$data, 'sidebar_DisplayOnTrezor', 'TREZORでアドレスを表示'), _defineProperty(_ja$data, 'sidebar_DisplayOnLedger', 'Ledgerでアドレスを表示'), _defineProperty(_ja$data, 'SUCCESS_1', '有効なアドレス '), _defineProperty(_ja$data, 'SUCCESS_2', 'お財布は正常に暗号解除されました。 '), _defineProperty(_ja$data, 'SUCCESS_3', 'トランザクションはブロックチェイン上に展開されています。ガス不足や契約実行エラーがないことを確認するために、下のボタンをクリックしてトランザクション(TX)を表示してください。 TX Hash: '), _defineProperty(_ja$data, 'SUCCESS_4', 'お財布が追加されました: '), _defineProperty(_ja$data, 'SUCCESS_5', '選択されました: '), _defineProperty(_ja$data, 'SUCCESS_6', '接続完了しました '), _defineProperty(_ja$data, 'SUCCESS_7', 'メッセージの署名が確認されました'), _defineProperty(_ja$data, 'SWAP_rates', "現在のレート "), _defineProperty(_ja$data, 'SWAP_init_1', "両替する "), _defineProperty(_ja$data, 'SWAP_init_2', " を "), _defineProperty(_ja$data, 'SWAP_init_CTA', "次へ "), _defineProperty(_ja$data, 'SWAP_information', "あなたの情報 "), _defineProperty(_ja$data, 'SWAP_send_amt', "送出総額 "), _defineProperty(_ja$data, 'SWAP_rec_amt', "受け取り総額 "), _defineProperty(_ja$data, 'SWAP_your_rate', "変換レート "), _defineProperty(_ja$data, 'SWAP_rec_add', "受け取りアドレス "), _defineProperty(_ja$data, 'SWAP_start_CTA', "交換開始 "), _defineProperty(_ja$data, 'SWAP_ref_num', "参照番号 "), _defineProperty(_ja$data, 'SWAP_time', "送出するまでにあと、 "), _defineProperty(_ja$data, 'SWAP_elapsed', "発注後の経過時間 "), _defineProperty(_ja$data, 'SWAP_progress_1', "注文を開始しました "), _defineProperty(_ja$data, 'SWAP_progress_2', "到着待機中 "), _defineProperty(_ja$data, 'SWAP_progress_3', "ETH受け取り完了 "), _defineProperty(_ja$data, 'SWAP_progress_4', "送出中 {{orderResult.output.currency}} "), _defineProperty(_ja$data, 'SWAP_progress_5', "注文完了 "), _defineProperty(_ja$data, 'SWAP_order_CTA', "お送りいただきたいのは "), _defineProperty(_ja$data, 'SWAP_unlock', "このページから直接ETHあるいはトークンを送出するためには、お財布を解錠してください。"), _defineProperty(_ja$data, 'TOKEN_Addr', 'トークン契約アドレス: '), _defineProperty(_ja$data, 'TOKEN_Symbol', 'トークンシンボル: '), _defineProperty(_ja$data, 'TOKEN_Dec', 'ケタ数: '), _defineProperty(_ja$data, 'TOKEN_show', '全てのトークンを表示 '), _defineProperty(_ja$data, 'TOKEN_hide', 'トークンを隠す '), _defineProperty(_ja$data, 'TRANS_advanced', '+上級:ガスあるいはデータを追加してください '), _defineProperty(_ja$data, 'TRANS_data', 'データ: '), _defineProperty(_ja$data, 'TRANS_desc', 'トークンを送出するには「トークン送出」のタブを選択してください。 '), _defineProperty(_ja$data, 'TRANS_gas', 'ガスリミット: '), _defineProperty(_ja$data, 'TRANS_sendInfo', '21000ガスを使用する標準トランザクションは、0.000441 ETHを消費します。迅速な処理を行うために、若干最小量よりも多めの0.000000021 ETHのガスを使用します。当サービスでは、トランザクション料金は徴収いたしません。 '), _defineProperty(_ja$data, 'translate_version', '0.5'), _defineProperty(_ja$data, 'Translator_Desc', '日本語開発者を支援する: '), _defineProperty(_ja$data, 'TranslatorAddr_1', '0xf991119Eea62Eee1a6fdaA7f621e91A42f325FcE '), _defineProperty(_ja$data, 'TranslatorAddr_2', ''), _defineProperty(_ja$data, 'TranslatorAddr_3', ''), _defineProperty(_ja$data, 'TranslatorAddr_4', ''), _defineProperty(_ja$data, 'TranslatorAddr_5', ''), _defineProperty(_ja$data, 'TranslatorName_1', '[sekisanchi.eth](https://etherscan.io/address/0xf991119eea62eee1a6fdaa7f621e91a42f325fce) '), _defineProperty(_ja$data, 'TranslatorName_2', ''), _defineProperty(_ja$data, 'TranslatorName_3', ''), _defineProperty(_ja$data, 'TranslatorName_4', ''), _defineProperty(_ja$data, 'TranslatorName_5', ''), _defineProperty(_ja$data, 'tx_Details', '処理内容詳細'), _defineProperty(_ja$data, 'tx_foundInPending', '待機中の処理が見つかりました。'), _defineProperty(_ja$data, 'tx_foundInPending_1', 'あなたの処理が、現在接続中のノードの処理待ちプールの中で見つかりました。'), _defineProperty(_ja$data, 'tx_foundInPending_2', '現在待機中です(発掘待ち)。'), _defineProperty(_ja$data, 'tx_foundInPending_3', 'この処理を取り消す、あるいは置き換えることができます。下記のお財布をアンロックしてください。 '), _defineProperty(_ja$data, 'tx_FoundOnChain', '処理が見つかりました'), _defineProperty(_ja$data, 'tx_FoundOnChain_1', 'あなたの待機中の処理は発掘され、ブロックチェーンに配置されました。'), _defineProperty(_ja$data, 'tx_FoundOnChain_2', '**もし赤い `( ! )`, `BAD INSTRUCTION` あるいは `OUT OF GAS` のエラーメッセージを見つけたら**, これは、処理送出に失敗したということです。処理の取り消しや置き換えはできません。代わりに、新しい処理を送出してください。 "Out of Gas" エラーの場合には, ガスリミットをはじめに指定した値の倍にしてください。'), _defineProperty(_ja$data, 'tx_FoundOnChain_3', '**何もエラーメッセージが返ってこなければ、あなたの処理は正しく送出されています。** ETHあるいはトークンは、送ろうとしたあて先の場所にあります。 もし、ETHやトークンが他のお財布や交換所のお財布に見つからず、処理を開始してから時間以上経っていたら、 [そのサービスに連絡](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html)してください。状況を確認してもらうために、自分の処理のリンクをうまく知らせてください。'), _defineProperty(_ja$data, 'tx_notFound', '対象の処理が見つかりません'), _defineProperty(_ja$data, 'tx_notFound_1', 'この処理は、現在接続中の処理プールの中にありませんでした。'), _defineProperty(_ja$data, 'tx_notFound_2', 'もし今、処理を送出した直後であれば、15秒待ってから「処理状況を確認」ボタンを再度押してください。'), _defineProperty(_ja$data, 'tx_notFound_3', '別の処理プールで発掘待ちになっているかもしれません。'), _defineProperty(_ja$data, 'tx_notFound_4', '右上の下展開メニューから、別のノードを選択してください。 (例: `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) から選んで再度確認する。'), _defineProperty(_ja$data, 'tx_Summary', '数日後に処理状況を確認した場合をのぞいて、大量の処理発生時(ICO期間など)には、数時間処理が遅れる場合があります。本ツールは、そのような状況において処理待ちの処理を探し出し取り消す、あるいは更新する機能を提供します。**これは特殊な操作で、処理プールが満杯の場合にのみ有効です。 [このツールに関しては、こちらを参考にしてください。](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_ja$data, 'TXFEE_Desc', 'この処理料金は自分の処理をブロックに配置するためにマイナーに支払われます。「ガスリミット」*「ガス価格」で算出されます。 [GWEI -> ETHの単位変換はこちらです。](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_ja$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_ja$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_ja$data, 'VIEWWALLET_Subtitle', '異なったバージョンの秘密鍵をダウンロードしたり、お財布紙情報を再印刷することができます。[import your account into Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/)する時に必要です。残高をチェックするためには、[etherscan.io](https://etherscan.io/)のようなブロックチェーンエクスプローラーサービスを使う事をおすすめします。 '), _defineProperty(_ja$data, 'VIEWWALLET_Subtitle_Short', '異なったバージョンの秘密鍵をダウンロードしたり、お財布紙情報を再印刷することができます。 '), _defineProperty(_ja$data, 'VIEWWALLET_SuccessMsg', '成功しました! お財布の詳細は以下の通りです。 '), _defineProperty(_ja$data, 'WARN_Send_Link', '自分のアドレス、リンク、ガス、データ、あるいはトランザクションタイプ(送出モード)が指定されたリンクでここに表示されています。 送出前に修正可能です。もう一度行うために、お財布を解錠してください。 '), _defineProperty(_ja$data, 'x_CancelReplaceTx', '処理を中断、あるいは置換'), _defineProperty(_ja$data, 'x_CancelTx', '処理を中断'), _defineProperty(_ja$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_ja$data, 'x_PasswordDesc', 'このパスワードで秘密鍵を**暗号化**します。新しい鍵を作るための元種(seed)ではありません。**このパスワードと(暗号化された)秘密鍵の二つを使って、お財布を解錠します**'), _defineProperty(_ja$data, 'x_ReadMore', 'もっと読む'), _defineProperty(_ja$data, 'x_ReplaceTx', '処理を置き換える'), _defineProperty(_ja$data, 'x_TransHash', '処理ハッシュ'), _defineProperty(_ja$data, 'x_TXFee', '処理料'), _defineProperty(_ja$data, 'x_TxHash', '処理ハッシュ'), _defineProperty(_ja$data, 'x_Access', 'アクセス '), _defineProperty(_ja$data, 'x_AddessDesc', '自分のアドレスは、アカウント番号や公開キーでも知ることができます。誰かとETHやトークンの受け渡しをするために、これらを用います。きれいな色のついたアドレスアイコンを見つけてください。自分のペーパーウォレットや、アドレスを入力する際に、同じアイコンであることをしっかりと確認してください。 これは自分のアカウント番号と公開鍵になります。ETHを送信するために必要な情報です。アイコンは自分のアドレスを識別するものです。 '), _defineProperty(_ja$data, 'x_Address', '自分のアドレス '), _defineProperty(_ja$data, 'x_Cancel', '取り消す '), _defineProperty(_ja$data, 'x_CSV', 'CSV ファイル (未暗号化) '), _defineProperty(_ja$data, 'x_Download', 'ダウンロード '), _defineProperty(_ja$data, 'x_Json', 'JSON ファイル (未暗号化) '), _defineProperty(_ja$data, 'x_JsonDesc', 'これはパスワードが不要な暗号化されていないJSONフォーマットの秘密鍵です。この暗号化されていないJSONフォーマットの秘密鍵を使えば、誰でもパスワードを使わずに自分のお財布とEtherにアクセスできます。 '), _defineProperty(_ja$data, 'x_Keystore', 'Keystore ファイル (UTC / JSON · 推奨 · 暗号化) '), _defineProperty(_ja$data, 'x_Keystore2', 'Keystore ファイル (UTC / JSON) '), _defineProperty(_ja$data, 'x_KeystoreDesc', 'この Keystore / JSON ファイルは、後で容易にインポートするため、Mistで使われているフォーマットと一致させる必要があります。ダウンロードしてバックアップを取ることをおすすめします。 '), _defineProperty(_ja$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_ja$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_ja$data, 'x_Mnemonic', 'ニーモニック文節 '), _defineProperty(_ja$data, 'x_ParityPhrase', 'パリティ文節 '), _defineProperty(_ja$data, 'x_Password', 'パスワード '), _defineProperty(_ja$data, 'x_Print', 'お財布紙情報を印刷 '), _defineProperty(_ja$data, 'x_PrintDesc', 'アドバイス: プリンターが接続されていなくても、「印刷」をクリックしてPDFで保存できます。 '), _defineProperty(_ja$data, 'x_PrintShort', '印刷 '), _defineProperty(_ja$data, 'x_PrivKey', '秘密鍵(未暗号化) '), _defineProperty(_ja$data, 'x_PrivKey2', '秘密鍵 '), _defineProperty(_ja$data, 'x_PrivKeyDesc', 'これはパスワードが不要な暗号化されていない秘密鍵です。この暗号化されていない秘密鍵を使えば、誰でもパスワードなしで自分のお財布を使用できます。従って、暗号化された秘密鍵の利用をおすすめします。 '), _defineProperty(_ja$data, 'x_Save', '保存する '), _defineProperty(_ja$data, 'x_Trezor', 'TREZOR '), _defineProperty(_ja$data, 'x_TXT', 'TXT ファイル (未暗号化) '), _defineProperty(_ja$data, 'x_Wallet', 'お財布 '), _defineProperty(_ja$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_ja$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_ja$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_ja$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_ja$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_ja$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_ja$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_ja$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_ja$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_ja$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_ja$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_ja$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_ja$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_ja$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_ja$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_ja$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_ja$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_ja$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_ja$data, 'HELP_2a_Title', 'お財布の保管やバックアップの方法は? '), _defineProperty(_ja$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_ja$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_ja$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_ja$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_ja$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_ja$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_ja$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_ja$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_ja$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_ja$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_ja$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_ja$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_ja$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_ja$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ja$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ja$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_ja$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_ja$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_ja$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_ja$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_ja$data, 'HELP_4_Desc_2', 'Navigate to the "Ether送出 トークン送出" page. '), _defineProperty(_ja$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ja$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ja$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_ja$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ja$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ja$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_ja$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ja$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ja$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ja$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ja$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_ja$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Ether送出 トークン送出" page. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_ja$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_ja$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_ja$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_ja$data, 'HELP_4CX_Desc_12', 'Using "Ether送出 トークン送出" Page '), _defineProperty(_ja$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_ja$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_ja$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_ja$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_ja$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_ja$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_ja$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_ja$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_ja$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_ja$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_ja$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_ja$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_ja$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_ja$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_ja$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_ja$data, 'HELP_7_Desc_1', 'Navigate to the "Ether送出 トークン送出" page. '), _defineProperty(_ja$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_ja$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ja$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_ja$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_ja$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_ja$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_ja$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_ja$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_ja$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_ja$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_ja$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ja$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ja$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ja$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ja$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_ja$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_ja$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_ja$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_ja$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_ja$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_ja$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_ja$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_ja$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_ja$data, 'HELP_9_Title', '9) Is the "Ether送出 トークン送出" page offline? '), _defineProperty(_ja$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_ja$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_ja$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_ja$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_ja$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_ja$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ja$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ja$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_ja$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_ja$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ja$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_ja$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_ja$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_ja$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_ja$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_ja$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_ja$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_ja$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_ja$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_ja$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_ja$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_ja$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_ja$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_ja$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_ja$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_ja$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_ja$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_ja$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_ja$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_ja$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_ja$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_ja$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_ja$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_ja$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_ja$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ja$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ja$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ja$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_ja$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_ja$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_ja$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ja$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ja$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ja$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_ja$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_ja$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_ja$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_ja$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_ja$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_ja$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_ja$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_ja$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_ja$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_ja$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_ja$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_ja$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_ja$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_ja$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_ja$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_ja$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_ja$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_ja$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_ja$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_ja$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_ja$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_ja$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_ja$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_ja$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_ja$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_ja$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_ja$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_ja$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_ja$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_ja$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_ja$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_ja$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_ja$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_ja$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_ja$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_ja$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_ja$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_ja$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_ja$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_ja$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_ja$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _ja$data);
module.exports = ja;
},{}],119:[function(require,module,exports){
// Korean
'use strict';
var _ko$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ko = function ko() {};
ko.code = 'ko';
ko.data = (_ko$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_ko$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_ko$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_ko$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_ko$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_ko$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_ko$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_ko$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_ko$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_ko$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_ko$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_ko$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_ko$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_ko$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_ko$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_ko$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_ko$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_ko$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_ko$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_ko$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_ko$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_ko$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_ko$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_ko$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_ko$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_ko$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_ko$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_ko$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_ko$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_ko$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_ko$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_ko$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_ko$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_ko$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_ko$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_ko$data, 'x_ReadMore', 'Read More'), _defineProperty(_ko$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_ko$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_ko$data, 'x_TXFee', 'TX Fee'), _defineProperty(_ko$data, 'x_TxHash', 'TX Hash'), _defineProperty(_ko$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_ko$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_ko$data, 'tx_Details', 'Transaction Details'), _defineProperty(_ko$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_ko$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_ko$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_ko$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_ko$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_ko$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_ko$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_ko$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_ko$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_ko$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_ko$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_ko$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_ko$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_ko$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_ko$data, 'GEN_Help_1', 'Use your'), _defineProperty(_ko$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_ko$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_ko$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_ko$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_ko$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_ko$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_ko$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_ko$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_ko$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_ko$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_ko$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_ko$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_ko$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_ko$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_ko$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_ko$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_ko$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_ko$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_ko$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_ko$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_ko$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_ko$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_ko$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_ko$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_ko$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_ko$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_ko$data, 'NAV_AddWallet', '지갑 추가 '), _defineProperty(_ko$data, 'NAV_BulkGenerate', '대량 생성 '), _defineProperty(_ko$data, 'NAV_Contact', '문의하기 '), _defineProperty(_ko$data, 'NAV_Contracts', '컨트랙트 '), _defineProperty(_ko$data, 'NAV_DeployContract', '컨트랙트 배포 '), _defineProperty(_ko$data, 'NAV_ENS', 'ENS'), _defineProperty(_ko$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_ko$data, 'NAV_GenerateWallet', '지갑 생성 '), _defineProperty(_ko$data, 'NAV_Help', '도움말 '), _defineProperty(_ko$data, 'NAV_InteractContract', '컨트랙트 조작 '), _defineProperty(_ko$data, 'NAV_Multisig', '멀티시그 '), _defineProperty(_ko$data, 'NAV_MyWallets', '내 지갑 '), _defineProperty(_ko$data, 'NAV_Offline', '오프라인 전송 '), _defineProperty(_ko$data, 'NAV_SendEther', '이더리움 & 토큰 전송 '), _defineProperty(_ko$data, 'NAV_SendTokens', '토큰 전송 '), _defineProperty(_ko$data, 'NAV_SignMsg', '메세지 서명 '), _defineProperty(_ko$data, 'NAV_Swap', '교환 '), _defineProperty(_ko$data, 'NAV_ViewWallet', '지갑 정보 보기 '), _defineProperty(_ko$data, 'NAV_YourWallets', '내 지갑 '), _defineProperty(_ko$data, 'x_Access', '액세스 '), _defineProperty(_ko$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. 이것은 자신의 계좌 번호와 공개 키입니다. ETH를 전송하기 위해 필요한 정보입니다. 아이콘은 자신의 주소를 식별합니다. '), _defineProperty(_ko$data, 'x_Address', '내 주소 '), _defineProperty(_ko$data, 'x_Cancel', '취소 '), _defineProperty(_ko$data, 'x_CSV', 'CSV 파일 (암호화되지 않음) '), _defineProperty(_ko$data, 'x_Download', '다운로드 '), _defineProperty(_ko$data, 'x_Json', 'JSON 파일 (암호화되지 않음) '), _defineProperty(_ko$data, 'x_JsonDesc', '이것은 암호화되지 않은 JSON 형식의 개인 키입니다. 이 암호화되지 않은 JSON 형식의 개인 키를 사용하면 누구나 암호없이 자신의 지갑과 이더리움에 액세스 할 수 있습니다. '), _defineProperty(_ko$data, 'x_Keystore', 'Keystore 파일 (UTC / JSON · 권장 · 암호화됨) '), _defineProperty(_ko$data, 'x_Keystore2', 'Keystore 파일 (UTC / JSON) '), _defineProperty(_ko$data, 'x_KeystoreDesc', '이 Keystore / JSON 파일은 Mist에서 사용하는 형식과 일치하므로 나중에 쉽게 가져올 수 있습니다. 다운로드하고 백업하는 것을 권장합니다. '), _defineProperty(_ko$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_ko$data, 'x_Mnemonic', 'Mnemonic 문구 '), _defineProperty(_ko$data, 'x_ParityPhrase', 'Parity 문구 '), _defineProperty(_ko$data, 'x_Password', '비밀번호 '), _defineProperty(_ko$data, 'x_Print', '종이 지갑 인쇄 '), _defineProperty(_ko$data, 'x_PrintDesc', '팁: 프린터를 사용하지 않더라도 인쇄를 클릭하여 PDF 파일로 저장할 수 있습니다! '), _defineProperty(_ko$data, 'x_PrintShort', '인쇄 '), _defineProperty(_ko$data, 'x_PrivKey', '개인 키 (암호화되지 않음) '), _defineProperty(_ko$data, 'x_PrivKey2', '개인 키 '), _defineProperty(_ko$data, 'x_PrivKeyDesc', '이것은 암호화되지 않은 개인 키이므로 암호가 필요하지 않습니다. 이 암호화되지 않은 개인 키를 사용하면 누구나 암호 없이 지갑을 사용할 수 있습니다. 따라서 암호화된 개인 키 사용을 권장합니다. '), _defineProperty(_ko$data, 'x_Save', '저장 '), _defineProperty(_ko$data, 'x_TXT', 'TXT 파일 (암호화되지 않음) '), _defineProperty(_ko$data, 'x_Wallet', '지갑 '), _defineProperty(_ko$data, 'CX_Tagline', '오픈 소스 JavaScript 클라이언트 측 이더리움 지갑 Chrome 확장 프로그램 '), _defineProperty(_ko$data, 'CX_Warning_1', '반드시 이곳에 보관하는 모든 지갑은 **외부 백업**을 진행해주세요. 이 Chrome 확장 프로그램에서는 확장 프로그램 제거 및 재설치를 포함하여 데이터가 저장되지 않고 손실되는 경우가 자주 발생합니다. 이 확장 프로그램은 쉬운 조작을 제공할 뿐, **백업**을 제공하지 않습니다. '), _defineProperty(_ko$data, 'MEW_Tagline', '오픈 소스 JavaScript 클라이언트 측 이더리움 지갑 '), _defineProperty(_ko$data, 'MEW_Warning_1', '지갑에 액세스하거나 새 지갑을 생성하기 전 반드시 URL을 확인해주세요. 피싱(사기) 사이트에 주의하세요! '), _defineProperty(_ko$data, 'FOOTER_1', '쉽게 사용할 수 있는 오픈 소스, 클라이언트 측 도구 & 이더리움 네트워크와 안전하게 상호 작용합니다. '), _defineProperty(_ko$data, 'FOOTER_1b', '개발자 '), _defineProperty(_ko$data, 'FOOTER_2', '기부해주셔서 정말 감사합니다. '), _defineProperty(_ko$data, 'FOOTER_3', '클라이언트 측 지갑 생성 '), _defineProperty(_ko$data, 'FOOTER_4', '면책 조항 '), _defineProperty(_ko$data, 'sidebar_AccountInfo', '계정 정보 '), _defineProperty(_ko$data, 'sidebar_AccountAddr', '계정 주소 '), _defineProperty(_ko$data, 'sidebar_AccountBal', '계정 잔액 '), _defineProperty(_ko$data, 'sidebar_TokenBal', '토큰 잔액 '), _defineProperty(_ko$data, 'sidebar_Equiv', '동일한 가치 '), _defineProperty(_ko$data, 'sidebar_TransHistory', '트랜잭션 내역 '), _defineProperty(_ko$data, 'sidebar_donation', 'MyEtherWallet은 개인정보보호와 보안을 위한 무료 오픈 서비스입니다. 기부를 많이 받을수록 우리는 새로운 기능과 다양한 의견을 반영하여 사용자의 희망 사항을 위한 개발 시간을 늘리는 것이 가능해질 수 있습니다. 우리는 단 두명이 세상을 바꾸려 하고 있습니다. 도와주시겠습니까? '), _defineProperty(_ko$data, 'sidebar_donate', '기부 '), _defineProperty(_ko$data, 'sidebar_thanks', '감사합니다!!! '), _defineProperty(_ko$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_ko$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_ko$data, 'decrypt_Access', '지갑 액세스 방법 선택 '), _defineProperty(_ko$data, 'decrypt_Title', '비공개 키의 형식을 선택해주세요. '), _defineProperty(_ko$data, 'decrypt_Select', '지갑 선택 '), _defineProperty(_ko$data, 'MNEM_1', '액세스하고자 하는 주소를 선택해주세요. '), _defineProperty(_ko$data, 'MNEM_2', '하나의 HD Mnemonic 문구에서 여러 가지 지갑/주소를 액세스할 수 있습니다. 액세스하려는 주소를 선택해주세요. '), _defineProperty(_ko$data, 'MNEM_more', '나머지 주소 '), _defineProperty(_ko$data, 'MNEM_prev', '이전 주소 '), _defineProperty(_ko$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_ko$data, 'ADD_Ledger_1', '사용자의 Ledger Wallet를 연결해주세요 '), _defineProperty(_ko$data, 'ADD_Ledger_2', '이더리움 어플리케이션을 실행해주세요 (또는 컨트랙트 어플리케이션) '), _defineProperty(_ko$data, 'ADD_Ledger_2_Exp', 'Expanse 응용 프로그램 (또는 계약 응용 프로그램) 실행'), _defineProperty(_ko$data, 'ADD_Ledger_2_Ubq', 'Ubiq 응용 프로그램 (또는 계약 응용 프로그램) 실행'), _defineProperty(_ko$data, 'ADD_Ledger_3', 'Browser Support가 활성화된 상태인지 확인해주세요 '), _defineProperty(_ko$data, 'ADD_Ledger_4', '설정에서 Browser Support를 확인할 수 없으면, Ledger [Firmware 1.2] (https://www.ledgerwallet.com/apps/manager) 버전이 설치되어 있는지 확인해주세요. '), _defineProperty(_ko$data, 'ADD_Ledger_0a', 'MyEtherWallet을 보안 연결(SSL)로 다시 연결해주세요. '), _defineProperty(_ko$data, 'ADD_Ledger_0b', 'MyEtherWallet을 [Chrome](https://www.google.com/chrome/browser/desktop/) 또는 [Opera](https://www.opera.com/) 브라우저로 다시 열어주세요. '), _defineProperty(_ko$data, 'ADD_Ledger_scan', 'Ledger Wallet 에 연결하기 '), _defineProperty(_ko$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_ko$data, 'x_Trezor', 'TREZOR '), _defineProperty(_ko$data, 'ADD_Trezor_scan', 'TREZOR 에 연결하기 '), _defineProperty(_ko$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_ko$data, 'ADD_DigitalBitbox_0a', 'MyEtherWallet을 보안 연결(SSL)로 다시 연결해주세요. '), _defineProperty(_ko$data, 'ADD_DigitalBitbox_0b', 'MyEtherWallet을 [Chrome](https://www.google.com/chrome/browser/desktop/) 또는 [Opera](https://www.opera.com/) 브라우저로 다시 열어주세요. '), _defineProperty(_ko$data, 'ADD_DigitalBitbox_scan', 'Digital Bitbox 에 연결하기 '), _defineProperty(_ko$data, 'ADD_Label_1', '어떤 걸 진행하시겠습니까? '), _defineProperty(_ko$data, 'ADD_Radio_1', '새로운 지갑 생성 '), _defineProperty(_ko$data, 'ADD_Radio_2', '지갑 파일 선택하기 (Keystone / JSON) '), _defineProperty(_ko$data, 'ADD_Radio_2_alt', '지갑 파일 선택하기 '), _defineProperty(_ko$data, 'ADD_Radio_2_short', '지갑 파일 선택하기... '), _defineProperty(_ko$data, 'ADD_Radio_3', '개인 키를 복사해서 입력해주세요. '), _defineProperty(_ko$data, 'ADD_Radio_4', '모니터링 계좌 추가 '), _defineProperty(_ko$data, 'ADD_Radio_5', 'Mnemonic 붙여넣기/입력 '), _defineProperty(_ko$data, 'ADD_Radio_5_Path', 'HD derivation 경로 선택 '), _defineProperty(_ko$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_ko$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_ko$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_ko$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_ko$data, 'ADD_Radio_5_PathCustom', '커스텀 '), _defineProperty(_ko$data, 'ADD_Label_2', '닉네임 만들기 '), _defineProperty(_ko$data, 'ADD_Label_3', '당신의 지갑은 암호화되었습니다. 비밀번호를 입력해주세요. '), _defineProperty(_ko$data, 'ADD_Label_4', '모니터링 계좌 추가 '), _defineProperty(_ko$data, 'ADD_Warning_1', '지갑 탭은 개인 키를 업로드하지 않고 임의로 모니터링하는 계좌를 추가할 수 있습니다. 이에 따라 지갑의 액세스나 이더리움 전송이 가능하지 않습니다. '), _defineProperty(_ko$data, 'ADD_Label_5', '주소 입력 '), _defineProperty(_ko$data, 'ADD_Label_6', '지갑 잠금 해제 '), _defineProperty(_ko$data, 'ADD_Label_6_short', '잠금 해제 '), _defineProperty(_ko$data, 'ADD_Label_7', '계좌 추가 '), _defineProperty(_ko$data, 'ADD_Label_8', '비밀번호 (선택): '), _defineProperty(_ko$data, 'MYWAL_Nick', '지갑 닉네임 '), _defineProperty(_ko$data, 'MYWAL_Address', '지갑 주소 '), _defineProperty(_ko$data, 'MYWAL_Bal', '잔액 '), _defineProperty(_ko$data, 'MYWAL_Edit', '편집 '), _defineProperty(_ko$data, 'MYWAL_View', '보기 '), _defineProperty(_ko$data, 'MYWAL_Remove', '제거 '), _defineProperty(_ko$data, 'MYWAL_RemoveWal', '지갑 제거 '), _defineProperty(_ko$data, 'MYWAL_WatchOnly', '내 모니터링 전용 계좌 '), _defineProperty(_ko$data, 'MYWAL_Viewing', '지갑 표시 '), _defineProperty(_ko$data, 'MYWAL_Hide', '지갑 정보 숨기기 '), _defineProperty(_ko$data, 'MYWAL_Edit_2', '지갑 수정 '), _defineProperty(_ko$data, 'MYWAL_Name', '지갑 이름 '), _defineProperty(_ko$data, 'MYWAL_Content_1', '경고! 지갑을 제거하려고 합니다. '), _defineProperty(_ko$data, 'MYWAL_Content_2', '제거하기 전 ** 개인 키 및 Keystore 파일, 비밀번호 **가 저장되어 있는지 확인해주세요. '), _defineProperty(_ko$data, 'MYWAL_Content_3', '나중에 이 지갑을 MyEtherWallet CX와 같이 사용하려면, 개인 키/JSON과 비밀번호를 이용하여 수동으로 다시 추가해야 합니다. '), _defineProperty(_ko$data, 'GEN_desc', '만약 여러 개의 지갑을 생성하고 싶다면, 여기서 처리할 수 있습니다. '), _defineProperty(_ko$data, 'GEN_Label_1', '안전한 비밀번호를 입력해주세요 (최소 9 글자) '), _defineProperty(_ko$data, 'GEN_Placeholder_1', '비밀번호를 저장하고 기억하는 것을 잊지 마세요! '), _defineProperty(_ko$data, 'GEN_SuccessMsg', '성공! 당신의 지갑이 생성되었습니다. '), _defineProperty(_ko$data, 'GEN_Label_2', '당신의 지갑 파일을 저장해주세요. 비밀번호를 잃어버리면 안됩니다. '), _defineProperty(_ko$data, 'GEN_Label_3', '지갑 주소를 저장해주세요 '), _defineProperty(_ko$data, 'GEN_Label_4', '선택: 종이 지갑을 인쇄하거나 QR 코드를 저장해주세요. '), _defineProperty(_ko$data, 'BULK_Label_1', '생성할 지갑 개수 '), _defineProperty(_ko$data, 'BULK_Label_2', '지갑 생성하기 '), _defineProperty(_ko$data, 'BULK_SuccessMsg', '성공! 당신의 지갑들이 생성되었습니다. '), _defineProperty(_ko$data, 'SEND_addr', '받는 주소 '), _defineProperty(_ko$data, 'SEND_amount', '보낼 수량 '), _defineProperty(_ko$data, 'SEND_amount_short', '보낼 수량 '), _defineProperty(_ko$data, 'SEND_custom', '커스텀 토큰 추가 '), _defineProperty(_ko$data, 'SEND_gas', '가스 '), _defineProperty(_ko$data, 'SEND_TransferTotal', '잔액 모두 전송하기 '), _defineProperty(_ko$data, 'SEND_generate', '트랜잭션 생성 '), _defineProperty(_ko$data, 'SEND_raw', '초기 트랜잭션 '), _defineProperty(_ko$data, 'SEND_signed', '서명된 트랜잭션 '), _defineProperty(_ko$data, 'SEND_trans', '트랜잭션 전송하기 '), _defineProperty(_ko$data, 'SENDModal_Title', '경고! '), _defineProperty(_ko$data, 'SENDModal_Content_1', '전송할 예정입니다. '), _defineProperty(_ko$data, 'SENDModal_Content_2', '받는 주소 '), _defineProperty(_ko$data, 'SENDModal_Content_3', '정말 전송 하시겠습니까? '), _defineProperty(_ko$data, 'SENDModal_Content_4', '참고: 에러가 발생한다면, 대부분 토큰 전송에 필요한 가스(수수료, 이더리움으로 결제)가 부족한 것입니다. 이더리움을 계좌에 추가해 주세요. '), _defineProperty(_ko$data, 'SENDModal_No', '아니요, 전송을 취소합니다. '), _defineProperty(_ko$data, 'SENDModal_Yes', '네, 맞습니다! 전송합니다. '), _defineProperty(_ko$data, 'TOKEN_Addr', 'Token Contract 주소 '), _defineProperty(_ko$data, 'TOKEN_Symbol', '토큰 기호 '), _defineProperty(_ko$data, 'TOKEN_Dec', '소수 자릿수 '), _defineProperty(_ko$data, 'TOKEN_show', '모든 토큰 보기 '), _defineProperty(_ko$data, 'TOKEN_hide', '토큰 숨기기 '), _defineProperty(_ko$data, 'TRANS_desc', '만약 토큰을 전송하고 싶다면 , "토큰 전송하기" 페이지를 사용해주세요. '), _defineProperty(_ko$data, 'TRANS_warning', '"이더리움만 전송하기" 또는 "이더리움 클래식만 전송하기" 를 사용하여 전송할 때, 몇 가지 서비스는 컨트랙트가 체결되지 않을 수 있습니다. 더보기. '), _defineProperty(_ko$data, 'TRANS_advanced', '+고급: 데이터 추가 '), _defineProperty(_ko$data, 'TRANS_data', '데이터 '), _defineProperty(_ko$data, 'TRANS_gas', '가스 한도 '), _defineProperty(_ko$data, 'TRANS_sendInfo', '21000 가스를 사용하는 표준 트랜잭션은 0.000441 ETH 를 사용합니다. 우리는 최소 가스 가격인 0.000000021 보다 약간 높게 책정하여 전송을 빠르게 합니다. MyEtherWallet은 트랜잭션 수수료를 얻지 않습니다. '), _defineProperty(_ko$data, 'OFFLINE_Title', '오프라인 트랜잭션 생성 & 전송하기 '), _defineProperty(_ko$data, 'OFFLINE_Desc', '오프라인 트랜잭션은 3단계로 이루어 집니다. 1, 3 단계는 온라인 컴퓨터로 진행되고, 2 단계는 오프라인/인터넷이 연결되지 않은 컴퓨터로 진행됩니다. 이러한 단계는 개인 키가 인터넷에 연결된 장치에 도달하지 못하도록 합니다. '), _defineProperty(_ko$data, 'OFFLLINE_Step1_Title', '1 단계 : 정보 생성하기 (온라인 컴퓨터) '), _defineProperty(_ko$data, 'OFFLINE_Step1_Button', '정보 생성 '), _defineProperty(_ko$data, 'OFFLINE_Step1_Label_1', '보내는 주소 '), _defineProperty(_ko$data, 'OFFLINE_Step1_Label_2', '참고: 이것은 받는 주소가 아닌 보내는 주소입니다. Nonce는 원래 계좌에서 생성됩니다. 인터넷에 연결되지 않은 컴퓨터를 사용하는 경우 이 주소는 콜드 스토리지 계좌의 주소가 됩니다. '), _defineProperty(_ko$data, 'OFFLINE_Step2_Title', '2 단계 : 트랜잭션 생성하기 (오프라인 컴퓨터) '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_1', '받는 주소 '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_2', '보낼 금액/총량 '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_3', '가스 가격 '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_3b', '이것은 1단계에서 온라인 컴퓨터에 표시됩니다. '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_4', '가스 한도 '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_4b', '21000 가스는 기본 설정값입니다. 컨트랙트를 전송하거나 데이터를 더할 때, 사용 가스는 다를 수 있습니다. 사용되지 않은 가스는 환급됩니다. '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_5b', '이것은 1단계에서 온라인 컴퓨터에 표시됩니다. '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_6', '데이터 '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_6b', '이것은 선택사항입니다. 데이터는 컨트랙트에 대해 트랜잭션을 전송할 때 자주 사용됩니다. '), _defineProperty(_ko$data, 'OFFLINE_Step2_Label_7', '개인 키 / JSON 입력 또는 선택 '), _defineProperty(_ko$data, 'OFFLINE_Step3_Title', '3 단계 : 전송 또는 트랜잭션 발행 (온라인 컴퓨터) '), _defineProperty(_ko$data, 'OFFLINE_Step3_Label_1', '2단계에서 서명된 트랜잭션를 붙여넣고, "트랜잭션 전송하기" 버튼을 누르세요 '), _defineProperty(_ko$data, 'CONTRACT_Title', '컨트랙트 주소 '), _defineProperty(_ko$data, 'CONTRACT_Title_2', '기존 컨트랙트 선택하기 '), _defineProperty(_ko$data, 'CONTRACT_Json', 'ABI / JSON 인터페이스 '), _defineProperty(_ko$data, 'CONTRACT_Interact_Title', '컨트랙트 읽기/쓰기 '), _defineProperty(_ko$data, 'CONTRACT_Interact_CTA', '함수 선택 '), _defineProperty(_ko$data, 'CONTRACT_ByteCode', 'Byte 코드 '), _defineProperty(_ko$data, 'CONTRACT_Read', '읽기 '), _defineProperty(_ko$data, 'CONTRACT_Write', '쓰기 '), _defineProperty(_ko$data, 'DEP_generate', 'Byte 코드 생성하기 '), _defineProperty(_ko$data, 'DEP_generated', '생성된 Byte 코드 '), _defineProperty(_ko$data, 'DEP_signtx', '서명 트랜잭션 '), _defineProperty(_ko$data, 'DEP_interface', '생성된 인터페이스 '), _defineProperty(_ko$data, 'NODE_Title', '커스텀 노드 설정하기 '), _defineProperty(_ko$data, 'NODE_Subtitle', '로컬 노드에 연결하려면... '), _defineProperty(_ko$data, 'NODE_Warning', 'MyEtherWallet.com을 통해 연결하기 위해서는 HTTPS 노드가 필요합니다. 모든 노드에 연결하려면 [MyEtherWallet 저장소를 다운로드하고 로컬로 실행] (https://github.com/kvhnuke/etherwallet/releases/latest) 할 수 있습니다. 추가로 무료 SSL 인증서를 [LetsEncrypt](https://letsencrypt.org/)에서 받으실 수 있습니다. '), _defineProperty(_ko$data, 'NODE_Name', '노드 명 '), _defineProperty(_ko$data, 'NODE_Port', '노드 포트 '), _defineProperty(_ko$data, 'NODE_CTA', '커스텀 노드 저장 또는 사용 '), _defineProperty(_ko$data, 'SWAP_rates', "현재 시세 "), _defineProperty(_ko$data, 'SWAP_init_1', "환전하실 "), _defineProperty(_ko$data, 'SWAP_init_2', "에서 "), _defineProperty(_ko$data, 'SWAP_init_CTA', "진행합니다! "), _defineProperty(_ko$data, 'SWAP_information', "당신의 정보 "), _defineProperty(_ko$data, 'SWAP_send_amt', "전송량 "), _defineProperty(_ko$data, 'SWAP_rec_amt', "수신량 "), _defineProperty(_ko$data, 'SWAP_your_rate', "당신의 비율 "), _defineProperty(_ko$data, 'SWAP_rec_add', "당신의 받는 주소 "), _defineProperty(_ko$data, 'SWAP_start_CTA', "교환 시작 "), _defineProperty(_ko$data, 'SWAP_ref_num', "참조 번호 "), _defineProperty(_ko$data, 'SWAP_time', "남은 전송 시간 "), _defineProperty(_ko$data, 'SWAP_elapsed', "전송 시간 경과 "), _defineProperty(_ko$data, 'SWAP_progress_1', "주문 개시 "), _defineProperty(_ko$data, 'SWAP_progress_2', "기다리는 중… : "), _defineProperty(_ko$data, 'SWAP_progress_3', "수신 완료! "), _defineProperty(_ko$data, 'SWAP_progress_4', "{{order Result.output,currency}} 전송하는 중 "), _defineProperty(_ko$data, 'SWAP_progress_5', "주문 완료 "), _defineProperty(_ko$data, 'SWAP_order_CTA', "전송해주세요 : "), _defineProperty(_ko$data, 'SWAP_unlock', "ETH 또는 토큰을 이 페이지에서 바로 전송하기 위해 당신의 지갑 비밀번호를 해제해주세요. "), _defineProperty(_ko$data, 'MSG_message', '메세지 '), _defineProperty(_ko$data, 'MSG_date', '날짜 '), _defineProperty(_ko$data, 'MSG_signature', '서명 '), _defineProperty(_ko$data, 'MSG_verify', '메세지 확인 '), _defineProperty(_ko$data, 'MSG_info1', '서명을 다른 날짜에 재사용하지 못하도록 현재의 날짜를 포함해주세요. '), _defineProperty(_ko$data, 'MSG_info2', '타인이 사용하지 못하도록 당신의 닉네임을 포함해주세요 '), _defineProperty(_ko$data, 'MSG_info3', '다른 용도로 사용되는 것을 막으려면 세부적인 내용을 메시지에 포함해주세요. '), _defineProperty(_ko$data, 'VIEWWALLET_Subtitle', '다른 버전의 개인 키를 다운로드하거나 종이 지갑 정보를 다시 인쇄할 수 있습니다. [계좌를 Geth/Mist로 가져오기](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/)를 진행할 때 필요합니다. 잔액을 확인하려면 [etherscan.io](https://etherscan.io/)과 같은 블록체인 조회 서비스를 사용하는 것을 권장합니다. '), _defineProperty(_ko$data, 'VIEWWALLET_Subtitle_Short', '다른 버전의 개인 키를 다운로드하거나 종이 지갑 정보를 다시 인쇄 할 수 있습니다. '), _defineProperty(_ko$data, 'VIEWWALLET_SuccessMsg', '성공했습니다! 지갑의 세부사항은 다음과 같습니다. '), _defineProperty(_ko$data, 'VIEWWALLET_ShowPrivKey', '(보기) '), _defineProperty(_ko$data, 'VIEWWALLET_HidePrivKey', '(숨기기) '), _defineProperty(_ko$data, 'CX_error_1', '저장된 지갑이 없습니다. 지갑을 추가하려면 ["지갑 추가"](/cx-wallet.html#add-wallet) 버튼을 클릭해주세요! '), _defineProperty(_ko$data, 'CX_quicksend', '빠른 전송 '), _defineProperty(_ko$data, 'ERROR_0', '올바른 금액을 입력해주세요. '), _defineProperty(_ko$data, 'ERROR_1', '비밀번호는 최소 9자 이상이어야 합니다. 더 강력한 비밀번호를 입력해주세요. '), _defineProperty(_ko$data, 'ERROR_2', '죄송합니다. 이러한 유형의 지갑 파일은 인식 할 수 없습니다. '), _defineProperty(_ko$data, 'ERROR_3', '올바른 지갑 파일이 아닙니다. '), _defineProperty(_ko$data, 'ERROR_4', '존재하지 않는 단위입니다. 다음과 같은 단위 중 하나를 사용해주세요. '), _defineProperty(_ko$data, 'ERROR_5', '잘못된 주소입니다. '), _defineProperty(_ko$data, 'ERROR_6', '잘못된 비밀번호입니다. '), _defineProperty(_ko$data, 'ERROR_7', '잘못된 수량입니다. (Must be integer. Try 0-18.) '), _defineProperty(_ko$data, 'ERROR_8', '잘못된 가스 한도입니다. (Must be integer. Try 21000-4000000.) '), _defineProperty(_ko$data, 'ERROR_9', '잘못된 데이터입니다. (Must be hex.) '), _defineProperty(_ko$data, 'ERROR_10', '잘못된 가스 수량입니다. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_ko$data, 'ERROR_11', '잘못된 nonce 입니다. (Must be integer.) '), _defineProperty(_ko$data, 'ERROR_12', '잘못된 서명 트랜잭션입니다. '), _defineProperty(_ko$data, 'ERROR_13', '이미 같은 닉네임의 지갑이 존재합니다. '), _defineProperty(_ko$data, 'ERROR_14', '지갑을 찾을 수 없습니다. '), _defineProperty(_ko$data, 'ERROR_15', '이와 같은 ID 요청을 찾을 수 없거나 요청을 읽는 데 실패하였습니다. '), _defineProperty(_ko$data, 'ERROR_16', '같은 주소의 지갑이 이미 존재합니다. 지갑 페이지를 확인해주세요. '), _defineProperty(_ko$data, 'ERROR_17', '자금이 부족합니다. 트랜잭션을 전송하려는 계좌에 충분한 자금이 없습니다. 가스 비용을 지불하기 위해서는 적어도 **0.01ETH**가 필요합니다. ETH을 추가한 뒤 다시 실행해주세요. '), _defineProperty(_ko$data, 'ERROR_18', '모든 가스가 이 트랜잭션을 위해 사용됩니다. 이것은 이미 투표를 진행했거나 토론 기간이 종료되었기 때문입니다. '), _defineProperty(_ko$data, 'ERROR_19', '비정상 기호 '), _defineProperty(_ko$data, 'ERROR_20', '올바른 ERC-20 토큰이 아닙니다 '), _defineProperty(_ko$data, 'ERROR_21', '필요한 가스양을 추정할 수 없습니다. 충분한 자금이 계좌에 없거나 수신 측 컨트랙트에 오류가 있을 수 있습니다. 가스양을 변경한 후 사용해보세요. 전송시 에러 메세지가 반환됩니다. '), _defineProperty(_ko$data, 'ERROR_22', '올바른 노드 이름을 입력해주세요 '), _defineProperty(_ko$data, 'ERROR_23', '올바른 URL을 입력해주세요. HTTPS를 통해서 연결한다면, 노드도 HTTPS에 연결해야합니다. '), _defineProperty(_ko$data, 'ERROR_24', '올바른 포트를 입력해주세요. '), _defineProperty(_ko$data, 'ERROR_25', '올바른 체인 ID를 입력해주세요 '), _defineProperty(_ko$data, 'ERROR_26', '올바른 ABI를 입력해주세요 '), _defineProperty(_ko$data, 'ERROR_27', '최소량: 0.01. 최대량: '), _defineProperty(_ko$data, 'ERROR_28', '지갑에 액세스하기 위해서는 **Keystore 파일과 비밀번호** (또는 개인키)가 필요합니다. 별도로 저장하여 백업해주세요. 만약 그것을 저장하지 않으면 지갑을 복원할 방법이 없습니다. 자세한 내용은 [도움말 페이지](https://www.myetherwallet.com/#help)를 참고해주세요. '), _defineProperty(_ko$data, 'ERROR_29', '올바른 사용자와 패스워드를 입력해주세요 '), _defineProperty(_ko$data, 'ERROR_30', '올바른 ENS 이름을 입력해주세요 '), _defineProperty(_ko$data, 'ERROR_31', '잘못된 비밀 문구입니다. '), _defineProperty(_ko$data, 'ERROR_32', '노드에 연결할 수 없습니다. 새로고침 하거나 도움말을 확인해주세요. '), _defineProperty(_ko$data, 'ERROR_33', '입찰자의 주소와 잠금 해제된 지갑이 일치하지 않습니다. '), _defineProperty(_ko$data, 'ERROR_34', '해당 이름이 문자열의 이름과 일치하지 않습니다. '), _defineProperty(_ko$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_ko$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_ko$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_ko$data, 'SUCCESS_1', '유효한 주소 '), _defineProperty(_ko$data, 'SUCCESS_2', '지갑이 성공적으로 복호화 되었습니다. '), _defineProperty(_ko$data, 'SUCCESS_3', '트랜잭션이 블록체인으로 공개됩니다. 트랜잭션 내역과 가스가 채굴되었는지 확인려면 클릭해주세요. 가스 또는 컨트랙트 실행 오류가 없는지 확인해주세요. TX Hash : '), _defineProperty(_ko$data, 'SUCCESS_4', '지갑이 성공적으로 추가되었습니다. '), _defineProperty(_ko$data, 'SUCCESS_5', '파일이 선택되었습니다. '), _defineProperty(_ko$data, 'SUCCESS_6', '성공적으로 연결되었습니다. '), _defineProperty(_ko$data, 'SUCCESS_7', '메세지 서명이 확인되었습니다. '), _defineProperty(_ko$data, 'WARN_Send_Link', '주소, 값, 가스, 데이터 필드 또는 트랜잭션 유형 (전송 모드)이 링크를 통해 도착했습니다. 전송하기 전에 정보를 변경할 수 있습니다. 시작하려면 지갑을 열어주세요. '), _defineProperty(_ko$data, 'GETH_InvalidSender', '잘못된 전송지입니다. '), _defineProperty(_ko$data, 'GETH_Nonce', 'Nonce가 너무 낮습니다. '), _defineProperty(_ko$data, 'GETH_Cheap', '가스 가격이 너무 낮습니다. '), _defineProperty(_ko$data, 'GETH_Balance', '잔액이 부족합니다. '), _defineProperty(_ko$data, 'GETH_NonExistentAccount', '계좌가 존재 하지 않거나 잔액이 부족합니다. '), _defineProperty(_ko$data, 'GETH_InsufficientFunds', '가스 * 가격 + 수량에 대한 자금이 부족합니다.'), _defineProperty(_ko$data, 'GETH_IntrinsicGas', '기본 가스가 부족합니다. '), _defineProperty(_ko$data, 'GETH_GasLimit', '블록 가스 한도를 초과하였습니다. '), _defineProperty(_ko$data, 'GETH_NegativeValue', '마이너스 값 '), _defineProperty(_ko$data, 'PARITY_AlreadyImported', "이미 동일한 해시를 사용한 트랜잭션을 가져 왔습니다. "), _defineProperty(_ko$data, 'PARITY_Old', "트랜잭션 Nonce가 너무 낮습니다. Nonce를 증가시키십시오. "), _defineProperty(_ko$data, 'PARITY_TooCheapToReplace', "트랜잭션 수수료가 너무 낮습니다. 동일한 nonce를 가진 다른 트랜잭션이 대기열에 있습니다. 수수료를 늘리거나 nonce를 늘려보세요. "), _defineProperty(_ko$data, 'PARITY_LimitReached', "대기열에 트랜잭션이 너무 많습니다. 트랜잭션이 한도를 초과하여 해당 트랜잭션이 제외되었습니다. 수수료를 늘려보세요. "), _defineProperty(_ko$data, 'PARITY_InsufficientGasPrice', "트랜잭션 수수료가 너무 낮습니다. 노드의 최소 수수료 (최소 : {}, 획득 : {})를 충족시키지 못합니다. 수수료를 늘려보세요. "), _defineProperty(_ko$data, 'PARITY_InsufficientBalance', "자금이 부족합니다. 트랜잭션을 전송하려는 계좌에 충분한 자금이 없습니다. 필요량: {}, 현재 : {} wei. "), _defineProperty(_ko$data, 'PARITY_GasLimitExceeded', "트랜잭션 비용이 현재 가스 한도를 초과합니다. 제한 : {}, 획득 : {}. 가스 공급량을 줄이고 다시 시도해보세요. "), _defineProperty(_ko$data, 'PARITY_InvalidGasLimit', "공급 된 가스가 한도를 초과했습니다. "), _defineProperty(_ko$data, 'translate_version', '0.5 '), _defineProperty(_ko$data, 'Translator_Desc', '번역에 기여해주신 분들 '), _defineProperty(_ko$data, 'TranslatorName_1', '[CoinKorea](https://www.myetherwallet.com/?gaslimit=21000&to=0x0080782b9A9A14f7871Bb765eF7041e784D03F00&value=1.0#send-transaction) · [kanghamin](https://www.myetherwallet.com/?gaslimit=21000&to=0x7B12655A5aada0b3c053C7ff5aa444Bd666A0163&value=1.0#send-transaction) · [maa](https://www.myetherwallet.com/?gaslimit=21000&to=0x14036e41ddb2bd408eaf91597e6dc5220f776ae0&value=1.0#send-transaction) '), _defineProperty(_ko$data, 'TranslatorAddr_1', '0x0080782b9A9A14f7871Bb765eF7041e784D03F00 '), _defineProperty(_ko$data, 'TranslatorName_2', '· [Issac](https://www.myetherwallet.com/?gaslimit=21000&to=0x594a7773f4e062ccf644e8f122d5612b5f0db3b2&value=1.0#send-transaction) '), _defineProperty(_ko$data, 'TranslatorAddr_2', '0x594a7773f4e062ccf644e8f122d5612b5f0db3b2 '), _defineProperty(_ko$data, 'TranslatorName_3', '· [coinmaker](https://www.myetherwallet.com/?gaslimit=21000&to=0x80B65285607BAbC4b60a7179A0fa8EB42232b9ad&value=1.0#send-transaction) '), _defineProperty(_ko$data, 'TranslatorAddr_3', '0x80B65285607BAbC4b60a7179A0fa8EB42232b9ad '), _defineProperty(_ko$data, 'TranslatorName_4', '· [csjune](https://www.myetherwallet.com/?gaslimit=21000&to=0xfc465E0545c1024d04ceA2d6D154F20E7C67C66f&value=1.0#send-transaction) '), _defineProperty(_ko$data, 'TranslatorAddr_4', '0xfc465E0545c1024d04ceA2d6D154F20E7C67C66f '), _defineProperty(_ko$data, 'TranslatorName_5', '· [sadfrog](https://www.myetherwallet.com/?gaslimit=21000&to=0x608c96865c3d1364ffc5137e5ac78b57e58714d4&value=1.0#send-transaction) '), _defineProperty(_ko$data, 'TranslatorAddr_5', '0x608c96865c3d1364ffc5137e5ac78b57e58714d4 '), _defineProperty(_ko$data, 'HELP_Warning', '**2015년 3월** 이전에 지갑을 만들었거나 저장소를 다운로드했다면, 지갑 &amp; 저장소의 새 버전을 확인하고 다운로드해주세요. 자세한 내용을 보려면 클릭해주세요. '), _defineProperty(_ko$data, 'HELP_Desc', '잘못된 부분이나 다른 질문이 있으신가요? [우리에게 연락해주세요] (mailto : support@myetherwallet.com), 당신의 질문에 답변하는 것 뿐만 아니라, 향후 사용자들에게 더 유용할 수 있도록 페이지를 업데이트할 것입니다. '), _defineProperty(_ko$data, 'HELP_Remind_Title', '몇 가지 알림 '), _defineProperty(_ko$data, 'HELP_Remind_Desc_1', '**이더리움, MyEtherWallet.com & MyEtherWallet CX, 그리고 우리가 사용하는 JavaScript 라이브러리는 활발하게 개발되고 있습니다. ** 우리가 철저하게 테스트를 진행하여 수만 개의 지갑이 전 세계 사람들에 의해 성공적으로 만들어졌지만 예상치 못한 일이 발생하여 ETH를 잃을 가능성이 항상 존재합니다. 항상 조심해주세요. 만약 무슨 일이 발생한다면, 유감스럽지만 **우리는 잃어버린 이더리움에 대한 책임을 지지 않습니다.** '), _defineProperty(_ko$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com 과 MyEtherWallet CX는 웹 지갑이 아닙니다. 계정을 만들거나 우리에게 당신이 가진 이더리움을 주면 안 됩니다. 모든 데이터는 당신의 컴퓨터와 브라우저에 남아 있을 것입니다. 우리는 당신이 쉽게 당신의 정보를 만들고, 저장하고, 접근하고 블록체인과 상호 작용할 수 있도록 도울 것입니다. '), _defineProperty(_ko$data, 'HELP_Remind_Desc_3', '당신의 개인 키와 암호를 저장하지 않으면, 지갑에 액세스할 수 없게 될 뿐만 아니라, 지갑에 있는 자금에도 접근할 수 없게 됩니다. 개인 키와 암호를 컴퓨터뿐만 아니라 &ndash; 다양한 실제 위치(ex :인쇄, 메모 등...)에도 백업해야 합니다! '), _defineProperty(_ko$data, 'HELP_0_Title', '0) 처음 사용합니다. 뭘 해야 하나요? '), _defineProperty(_ko$data, 'HELP_0_Desc_1', 'MyEtherWallet은 새로운 지갑을 생성할 수 있는 기능을 제공하므로 거래소에 이더리움을 두지 않고 직접 저장할 수 있습니다. 이 과정은 전적으로 당신의 컴퓨터에서 발생하고 우리의 서버에서 발생하지 않습니다. 따라서 새로운 지갑을 만들 때 **안전하게 백업’해야 합니다**. '), _defineProperty(_ko$data, 'HELP_0_Desc_2', '새로운 지갑 생성하기 '), _defineProperty(_ko$data, 'HELP_0_Desc_3', '지갑 백업하기 '), _defineProperty(_ko$data, 'HELP_0_Desc_4', '새로운 지갑에 대한 액세스 권한과 필요한 모든 정보를 올바르게 저장하였는지 확인해주세요. '), _defineProperty(_ko$data, 'HELP_0_Desc_5', '이더리움을 새로운 지갑으로 전송해보세요. '), _defineProperty(_ko$data, 'HELP_1_Title', '1) 새로운 지갑을 어떻게 생성하나요? '), _defineProperty(_ko$data, 'HELP_1_Desc_1', '"지갑 생성" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_1_Desc_2', '"지갑 추가" 페이지로 이동 & "새 지갑 생성"을 선택해주세요. '), _defineProperty(_ko$data, 'HELP_1_Desc_3', '안전을 위하여 강력한 비밀번호를 설정하고 비밀번호 분실을 대비하여 안전하게 백업해주세요. 송금 시에 이 비밀번호가 요구됩니다. '), _defineProperty(_ko$data, 'HELP_1_Desc_4', '"생성하기"를 클릭해주세요. '), _defineProperty(_ko$data, 'HELP_1_Desc_5', '지갑이 생성되었습니다. '), _defineProperty(_ko$data, 'HELP_2a_Title', '어떻게 내 지갑을 저장/백업할 수 있나요? '), _defineProperty(_ko$data, 'HELP_2a_Desc_1', '항상 지갑을 USB 드라이브 또는 메모지와 같은 여러 위치에 백업해두어야 합니다. '), _defineProperty(_ko$data, 'HELP_2a_Desc_2', '주소를 저장해주세요. 주소는 자신만 확인할 수 있도록 보관하거나 다른 사람에게 공유할 수 있습니다. 주소를 공유하면 다른 사람이 해당 주소로 이더리움을 전송할 수 있습니다. '), _defineProperty(_ko$data, 'HELP_2a_Desc_3', '개인 키를 저장해주세요. 절대 타인과 공유하지 마세요. 개인 키는 지갑에 액세스하거나 이더리움을 전송하는 데 필요합니다! 개인 키에는 3가지 유형이 있습니다. '), _defineProperty(_ko$data, 'HELP_2a_Desc_4', '주소, 개인 키 버전 및 종이 지갑의 PDF 파일을 폴더에 보관하고 컴퓨터와 USB 드라이브에 저장하세요. '), _defineProperty(_ko$data, 'HELP_2a_Desc_5', '프린터가 있으면 지갑을 인쇄해주세요. 프린터가 없다면, 개인 키와 지갑 주소를 메모해주세요. 인쇄물 또는 메모를 컴퓨터와 USB와 분리된 안전한 위치에 보관해주세요. '), _defineProperty(_ko$data, 'HELP_2a_Desc_6', '하드 디스크, USB, 종이의 손상을 방지해야 한다는 것을 유념하세요. 또한, 보관 장소의 재난에 대비해주세요. (화재, 홍수 등) '), _defineProperty(_ko$data, 'HELP_2b_Title', '2b) 어떻게 하면 MyEtherWallet을 이용해 안전하게 오프라인, 콜드 스토리지로 자산을 보관할 수 있나요? '), _defineProperty(_ko$data, 'HELP_2b_Desc_1', '다음을 참고 해주세요. [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_ko$data, 'HELP_2b_Desc_2', '"etherwallet-vX.X.X.X.zip" 파일을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_3', 'zip 파일을 인터넷이 연결되지 않은 컴퓨터로 옮깁니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_4', '압축을 푼 후, index.html 을 더블 클릭합니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_5', '강력한 비밀번호와 함께 지갑을 생성합니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_6', '지갑 주소를 저장합니다. 개인 키의 버전들을 저장합니다. 비밀번호를 영원히 기억할 자신이 없다면 저장합니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_7', '인쇄된 지갑과 USB를 여러 장소에 분산하여 보관합니다. '), _defineProperty(_ko$data, 'HELP_2b_Desc_8', '"지갑 정보 보기" 페이지에서 개인 키와 암호가 잘 작동하는지 확인해주세요. 저장해둔 지갑 주소가 동일한지 확인해주세요. '), _defineProperty(_ko$data, 'HELP_3_Title', '3) 새로운 지갑에 대한 액세스 권한을 확인하려면 어떻게 해야 하나요? '), _defineProperty(_ko$data, 'HELP_3_Desc_1', '**새 지갑에 이더리움을 전송하기 전**에 지갑에 접근할 수 있는지 확인해야 합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_2', '"지갑 정보 보기" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_3', 'MyEtherWallet.com 에서 "지갑 정보 보기" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_4', '지갑 파일 선택 또는 개인 키를 사용하여 지갑을 잠금 해제합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_5', '지갑이 암호화되어 있다면, 팝업 창이 열립니다. 비밀번호를 입력합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_6', '"지갑 잠금 해제" 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_7', '지갑 정보가 표시됩니다. 색색의 동그란 아이콘 옆에 있는 지갑 주소를 찾습니다. 아이콘은 지갑 주소를 시각적으로 나타냅니다. 지갑 주소가 지갑을 생성할 때 메모해두었던 주소와 일치하는지 확인해야 합니다. '), _defineProperty(_ko$data, 'HELP_3_Desc_8', '많은 양의 이더리움을 MyEtherWallet 으로 전송하기 전에, 소량의 이더리움을 전송해 보는 것을 권장합니다. 0.001 이더리움을 지갑으로 전송하고, 지갑을 열어 받은 이더리움을 확인하고, 다시 0.001 이더리움을 다른 주소로 전송하여 모든 과정이 잘 작동하는지 확인해주세요. '), _defineProperty(_ko$data, 'HELP_4_Title', '4) 한 지갑에서 다른 지갑으로 이더리움을 어떻게 전송하나요? '), _defineProperty(_ko$data, 'HELP_4_Desc_1', '많은 양의 이더리움을 다른 지갑으로 전송하기 전에 소량의 이더리움을 전송하여 전송이 잘 되는지 확인해주세요. '), _defineProperty(_ko$data, 'HELP_4_Desc_2', '"이더리움 & 토큰 전송하기" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_3', '지갑 파일 또는 개인 키를 사용하여 지갑을 잠금 해제합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_4', '지갑이 암호화되어있다면, 팝업 창이 열립니다. 비밀번호를 입력합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_5', '"지갑 잠금 해제" 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_6', '"받는 주소" 영역에 이더리움을 전송할 주소를 입력합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_7', '전송할 수량을 입력합니다. 모든 잔액을 전송하려면 "모든 잔액 전송" 을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_9', '"트랜잭션 생성하기"를 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_10', '몇 가지 영역이 추가로 나타납니다. 당신의 브라우저에서 트랜잭션을 생성합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_11', '바로 아래에 있는 "트랜잭션 전송하기"를 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_12', '팝업창 열리면, 전송하고자 하는 수량이 정확한지 확인해주세요. 그 후, "네, 맞습니다! 전송합니다." 버튼을 누릅니다. '), _defineProperty(_ko$data, 'HELP_4_Desc_13', '트랜잭션이 제출되고, TXID가 표시 됩니다. TXID를 클릭하여 블록체인에 등록되었는지 확인할 수 있습니다. '), _defineProperty(_ko$data, 'HELP_4CX_Title', '4) 이더리움을 MyEtherWallet CX를 사용하여 전송하는 방법이 궁급합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_1', '우선 지갑을 추가해야 합니다. 그 후에, 2가지 방법이 있습니다. "빠른 전송" 또는 "이더리움 & 토큰 전송" 페이지입니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_2', '빠른 전송 '), _defineProperty(_ko$data, 'HELP_4CX_Desc_3', 'Chrome 확장 프로그램 아이콘을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_4', '‘빠른 전송’ 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_5', '보내는 곳(지갑)을 선택합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_6', '"받는 주소" 영역에 전송한 이더리움을 받게 될 주소를 입력합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_7', '전송할 수량을 입력합니다. 모든 잔액을 전송하려면 "모든 잔액 전송" 을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_8', '"트랜잭션 전송하기"를 클릭합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_9', '받는 주소와 양이 정확한지 확인해주세요. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_10', '지갑 주소를 입력합니다. '), _defineProperty(_ko$data, 'HELP_4CX_Desc_11', '"트랜잭션 전송하기"를 클릭합니다." '), _defineProperty(_ko$data, 'HELP_4CX_Desc_12', '"이더리움 & 토큰 전송하기" 페이지를 사용하는 방법'), _defineProperty(_ko$data, 'HELP_5_Title', '5) MyEtherWallet.com 을 오프라인/로컬에서 사용할 수 있나요? '), _defineProperty(_ko$data, 'HELP_5_Desc_1', 'MyEtherWallet을 GitHub 서버가 아닌 본인의 컴퓨터에서 이용할 수 있습니다. 오프라인 상태에서 지갑을 생성할 수 있으며, "오프라인 트랜잭션" 페이지에서 트랜잭션을 전송할 수 있습니다. '), _defineProperty(_ko$data, 'HELP_5_Desc_7', 'MyEtherWallet.com 은 이제 본인의 컴퓨터에서 구동됩니다. '), _defineProperty(_ko$data, 'HELP_5_Desc_8', '아직 사용이 미숙할 때는, index.html 뿐만 아니라 웹사이트를 가동하는 전체 폴더를 수정하지 말아 주세요. '), _defineProperty(_ko$data, 'HELP_5_Desc_9', '우리는 MyEtherWallet.com을 주기적으로 업데이트하고 있으므로 당신이 정기적으로 저장소의 업데이트된 버전을 사용하는 것을 권장합니다. '), _defineProperty(_ko$data, 'HELP_5CX_Title', '5) Chrome 스토어 대신 저장소에서 이 확장 프로그램을 설치하려면 어떻게 해야 하나요? '), _defineProperty(_ko$data, 'HELP_5CX_Desc_2', '"chrome-extension-vX.X.X.X.zip"을 누르고, 압축을 풀어주세요. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_3', '구글 Chrome에서 설정(우측 상단 메뉴)에 있습니다. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_4', '"확장기능" 버튼을 클릭해주세요. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_5', '페이지 상단에 있는 개발자 모드 버튼에 체크해주세요. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_6', '압축 해제된 확장 프로그램 로드 버튼을 클릭해주세요. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_7', '조금 전 다운로드해서 압축을 푼 폴더로 가서 선택해주세요. '), _defineProperty(_ko$data, 'HELP_5CX_Desc_8', '여기까지 하셨다면 마이이더월렛은 당신의 Chrome 확장 프로그램 창에 나타나서 Chrome 확장 프로그램 바에 생기게 됩니다. '), _defineProperty(_ko$data, 'HELP_7_Title', '7) 어떻게 토큰 전송하기&커스텀 토큰 추가할 수 있나요? '), _defineProperty(_ko$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/)에서 토큰을 탐색하여 토큰의 decimals를 찾을 수 있습니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_1', '이더리움 & 토큰 전송 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_2', '지갑을 잠금 해제 합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_3', '보낼 주소 입력란에 전송하고 싶은 주소를 입력합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_4', '전송하고 싶은 금액을 입력합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_5', '전송하고 싶은 토큰을 선택합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_6', '원하는 토큰이 보이지 않는다면 '), _defineProperty(_ko$data, 'HELP_7_Desc_7', '커스텀’ 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_8', '주소와 이름, 토큰의 decimals를 입력합니다. 이것은 토큰의 개발자에 의해서 제공되고 또한 당신이 Mist에서 "모니터링할 토큰 추가하기"를 할 때 필요합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_9', '‘저장’ 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_10', '이제 토큰을 전송할 수 있게 됐을 뿐만 아니라 사이드 바에서 잔액도 확인하실 수 있습니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_11', '"트랜잭션 생성" 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_12', '2가지 이상의 영역이 나타날 것입니다. 이것이 트랜잭션을 생성하고 있는 것은 당신의 브라우저입니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_13', '그 아래에 있는 파란색 ‘트랜잭션 전송하기’ 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_14', '팝업창이 열리면 보내는 양과 주소가 맞는지 확인해주세요. 그리고 "네 맞습니다! 전송합니다." 버튼을 클릭합니다. '), _defineProperty(_ko$data, 'HELP_7_Desc_15', '트랜잭션이 전송되면 TXID가 나타날 것입니다. 해당 TXID를 클릭하여 블록체인에서 볼 수 있습니다. '), _defineProperty(_ko$data, 'HELP_8_Title', '8) MyEtherWallet 서버가 다운되면 어떻게 되나요? '), _defineProperty(_ko$data, 'HELP_8_Desc_1', 'MyEtherWallet은 웹 지갑이 아닙니다. 서버에는 로그인은 물론 어떠한 것도 저장되지 않습니다. MyEtherWallet은 단지 블록체인에 접근 하게 해주는 도구입니다. '), _defineProperty(_ko$data, 'HELP_8_Desc_2', '만약 MyEtherWallet.com 이 다운된다면, 다른 대안 도구 (geth 또는 Ethereum Wallet / Mist 등)을 사용해야 합니다. MyEtherWallet 에서 이더리움을 꺼내야 할 필요는 없습니다. 이더리움들은 MyEtherWallet.com 을 통해서 생성된 지갑 내에 존재합니다. '), _defineProperty(_ko$data, 'HELP_8_Desc_3', '암호화되지 않은 개인 키와 암호화된 Geth/Mist 형식의 파일은 쉽게 geth / 이더리움 지갑 / Mist에서 불러올 수 있습니다. 아래의 질문 #12를 확인해주세요. '), _defineProperty(_ko$data, 'HELP_8_Desc_4', '또한, MyEtherWallet 이 다운 될 가능성은 희박합니다. 우리는 어떠한 정보도 저장하지 않기 때문에 비용이 들지 않습니다. 도메인이 다운되더라도, 항상 공개적으로 [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages)을 통해 로컬 지갑을 시작할 수 있습니다. ZIP 파일을 다운 받아주세요. '), _defineProperty(_ko$data, 'HELP_8CX_Title', '8) MyEtherWallet CX가 사라지면 어떻게 되나요? '), _defineProperty(_ko$data, 'HELP_8CX_Desc_1', '우선, 모든 정보는 MyEtherWallet 서버가 아닌 사용자의 컴퓨터에 저장됩니다. 오해할 수도 있지만, Chrome 확장 프로그램 화면은 우리의 서버에서 불러온 것이 아닙니다. 전부 사용자의 컴퓨터에 저장 되어있습니다. '), _defineProperty(_ko$data, 'HELP_8CX_Desc_2', '즉, **매우 중요** MyEtherWallet CX 로 새로 만든 지갑 정보는 모두 백업해 두어야 합니다. 만약 컴퓨터에 문제가 생기거나 Chrome 확장 프로그램에 문제가 생겨도 백업해둔 파일로 지갑에 접근할 수 있습니다. #2a에서 지갑을 어떻게 백업 하는 지 확인할 수 있습니다. '), _defineProperty(_ko$data, 'HELP_8CX_Desc_3', '어떤 이유로 MyEtherWallet CX 가 Chrome 스토어에서 사라져도, Github 에서 소스를 다운 받아 수동으로 사용할 수 있습니다. 위의 #5를 확인해주세요. '), _defineProperty(_ko$data, 'HELP_9_Title', '9) "이더리움 & 토큰 전송하기" 페이지는 오프라인인가요? '), _defineProperty(_ko$data, 'HELP_9_Desc_1', '아닙니다. 현재 가스 가격, 본인의 계정 정보, 그리고 트랜잭션 ("전송하기")를 나타내기 위해서는 인터넷이 필요합니다. 그러나 이것은 서명된 트랜잭션만 보냅니다. 개인 키는 안전하게 귀하와 함께 있습니다. 또한, 오프라인 트랜잭션 페이지를 제공하여 개인 키가 항상 오프라인 / 인터넷이 연결되지 않은 컴퓨터에 있는지 확인할 수 있습니다. '), _defineProperty(_ko$data, 'HELP_10_Title', '10) 오프라인 트랜잭션은 어떻게 생성하나요? '), _defineProperty(_ko$data, 'HELP_10_Desc_1', '온라인 컴퓨터에서 "오프라인 트랜잭션" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_2', '"보낸 사람 주소"를 입력하십시오. 이 주소는 TO가 아니라 FROM으로 보내는 주소입니다. 이것은 nonce 및 가스 가격을 생성합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_3', '오프라인 컴퓨터에서, "받는 곳"과 전송하고자 하는 "금액" 을 입력합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_4', '온라인 컴퓨터 1단계에서 표시된 "가스 가격"을 입력합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_5', '온라인 컴퓨터 1단계에서 표시된 "NONCE"를 입력합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_6', '21000 가스는 기본 설정값입니다. 트랜잭션을 전송하거나 데이터를 더할 때, 사용 가스는 다를 수 있습니다. 사용되지 않은 가스는 환급됩니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_7', '가스를 늘리고 싶다면 희망 가스양을 입력해주세요. 기본값인 21000 가스보다 높은 양을 입력해야 합니다. 모든 데이터는 HEX 포맷입니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_8', '지갑을 열기 위해 지갑 파일 또는 개인 키를 선택합니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_9', '"서명된 트랜잭션 생성" 버튼을 클릭해주세요. '), _defineProperty(_ko$data, 'HELP_10_Desc_10', '이 버튼 아래의 데이터 영역은 서명된 트랜잭션으로 채워집니다. 이것을 복사하여 온라인 컴퓨터로 옮깁니다. '), _defineProperty(_ko$data, 'HELP_10_Desc_11', '온라인 컴퓨터에서 3단계의 텍스트 필드에 서명된 트랜잭션을 붙여넣고 전송하기를 클릭해주세요. 그 후에 트랜잭션이 공개됩니다. '), _defineProperty(_ko$data, 'HELP_12_Title', '12) MyEtherWallet으로 만든 지갑을 geth / 이더리움 지갑 / Mist로 가져오려면 어떻게 해야 하나요? '), _defineProperty(_ko$data, 'HELP_12_Desc_1', 'MyEtherWallet v2 +의 Geth / Mist JSON 파일 사용하기… '), _defineProperty(_ko$data, 'HELP_12_Desc_2', '"지갑 정보 보기" 페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_3', '**암호화된** 개인 키 또는 JSON 파일을 사용하여 지갑을 잠금 해제합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_4', '"내 지갑"페이지로 이동합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_5', 'Mist로 가져올 지갑을 선택하고 "보기" 아이콘을 클릭한 다음 비밀번호를 입력하고 지갑에 액세스합니다.'), _defineProperty(_ko$data, 'HELP_12_Desc_6', '"JSON 파일 다운로드 - Geth / Mist 형식 (암호화됨)" 부문을 찾아주세요. 아래의 "다운로드" 버튼을 클릭합니다. 이제 키 저장소 파일이 생겼습니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_7', '이더리움 어플리케이션을 실행합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_8', '메뉴 바에서 "계정들" > "백업" > "계정" 으로 이동합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_9', '그러면 키 저장소 폴더가 열립니다. 방금 다운로드 한 파일 ("UTC - 2016-04-14 ........ /")을 사용자의 keystore 폴더에 복사합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_10', '사용자의 계정이 바로 "계정" 아래에 나타나야합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_11', '사용자의 암호화되지 않은 개인 키를 사용합니다… '), _defineProperty(_ko$data, 'HELP_12_Desc_12', '아직 암호화된 키가 없다면 ‘지갑 세부사항 보기’ 페이지로 갑니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_13', '당신의 지갑 파일을 선택하거나 당신의 개인 키를 입력/붙여넣기 하여 지갑의 잠금을 해제합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_14', '당신의 개인 키를 복사합니다. (암호화되지 않은) '), _defineProperty(_ko$data, 'HELP_12_Desc_15', '맥을 사용하고 있다면 '), _defineProperty(_ko$data, 'HELP_12_Desc_15b', 'PC를 사용하고 있다면 '), _defineProperty(_ko$data, 'HELP_12_Desc_16', 'Text 편집을 열어 개인 키를 붙여넣기 합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_17', '메뉴로 가서 "포맷" -> "일반 텍스트 만들기"를 선택합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_18', '이 파일을 당신 컴퓨터에 "nothing_special_delete_me.txt"같은 제목으로 저장해주세요 저장 대화 상자에 "UTF-8"과 "확장자가 제공되지 않은 경우 .txt 사용"이 표시되어있는지 확인합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_19', '터미널을 열고 다음 커맨드를 실행합니다. "geth account import ~/Desktop/nothing_special_delete_me.txt" '), _defineProperty(_ko$data, 'HELP_12_Desc_20', '실행하면 새 비밀번호를 입력하라는 메시지가 나타납니다. 이것은 트랜잭션을 전송할 때마다 사용할 비밀번호이므로 절대 잃어버리지 말아 주세요. '), _defineProperty(_ko$data, 'HELP_12_Desc_21', '가져오기가 성공하면 "nothing_special_delete_me.txt"를 삭제합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_22', '이후 이더리움 지갑 어플리케이션을 열 면 계정이 "계정" 아래에 표시됩니다.". '), _defineProperty(_ko$data, 'HELP_12_Desc_23', '메모장을 열고 개인 키를 붙여넣습니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_24', '"C :"에 "nothing_special_delete_me.txt"이름으로 파일을 저장합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_25', '"geth 계정 가져오기 C : \\ nothing_special_delete_me.txt" 명령을 실행합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_26', '명령을 실행하면 새 비밀번호를 입력하라는 메시지가 나타납니다. 이것은 트랜잭션을 전송할 때마다 geth / 이더리움 지갑 / Mist에서 사용할 비밀번호이므로 절대 잃어버리지 마십시오. '), _defineProperty(_ko$data, 'HELP_12_Desc_27', '가져오기가 성공하면 "nothing_special_delete_me.txt"를 삭제합니다. '), _defineProperty(_ko$data, 'HELP_12_Desc_28', '다음에 이더리움 지갑 어플리케이션을 열 면 계정이 "계정" 아래에 표시됩니다. '), _defineProperty(_ko$data, 'HELP_13_Title', '13) "잔액 부족. 계좌에 충분한 자금이 없습니다. 필요한 : XXXXXXXXXXXXXXXXXXX 그리고 가지고 있는: XXXXXXXXXXXXXXXXXXX" 는 어떤 의미인가요? '), _defineProperty(_ko$data, 'HELP_13_Desc_1', '이것은 가스 비용을 충당하기 위해 계좌에 이더리움이 부족하다는 의미입니다. 각각의 트랜잭션(토큰 및 컨트랙트 트랜잭션을 포함하여) 가스가 필요하고 그 가스는 이더리움으로 지불됩니다. 표시된 숫자는 Wei에서 트랜잭션의 비용을 충당하기 위해 필요한 금액입니다. 이 숫자를 "1000000000000000000"으로 나눈 다음, 당신이 전송하려고 하는 이더리움의 금액을 제외합니다.(이더리움을 전송하려고 하는 경우) 이렇게 하면 트랜잭션을 만들기 위해 해당 계좌로 전송하는데 필요한 이더리움의 금액을 알 수 있습니다. '), _defineProperty(_ko$data, 'HELP_14_Title', '14) 일부 사이트들은 마우스의 조작을 통해 개인 키 생성을 무작위로 시드 합니다. MyEtherWallet.com은 이 방식을 사용하지 않습니다. MyEtherWallet의 무작위 숫자 생성이 안전할까요? '), _defineProperty(_ko$data, 'HELP_14_Desc_1', '대상을 움직이는 마우스는 영리하게 작동하며 우리는 사람들이 그것을 좋아하는 이유를 이해하지만, 실제 window.crypto는 당신의 마우스 조작보다 더 많은 엔트로피를 보장합니다. 마우스의 조작은 안전하지 못합니다. 우리와 다른 많은 암호 실험들은 window.crypto를 믿습니다. 게다가 MyEtherWallet.com은 터치 장치에서도 이용될 수 있습니다. 여기에 [마우스 조작에 관해 화가 난 Reddit 이용자와 비탈릭의 대화 v.window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm)와 [ window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GloblCrypto)가 있습니다. '), _defineProperty(_ko$data, 'HELP_15_Title', '15) 방금 만든 계정이 블록체인 탐색기에 표시되지 않는 이유는 뭔가요? (예, etherchain, etherscan) '), _defineProperty(_ko$data, 'HELP_15_Desc_1', '계좌는 거래 활동이 있을 경우에만 블록체인 탐색기에 표시됩니다. 예를 들어, 이더리움을 계좌로 이동시키면 계좌가 활성화됩니다. '), _defineProperty(_ko$data, 'HELP_16_Title', '16) 내 계좌의 잔액을 어떻게 확인하나요? '), _defineProperty(_ko$data, 'HELP_16_Desc_1', '[etherscan.io] (https://etherscan.io/) 와 같은 블록체인 탐색기를 사용할 수 있습니다. 주소를 검색 창에 붙여넣으면 주소와 거래 내역이 표시됩니다. 예를 들어, 우리의 [기부 계정]은 (https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) 과 같습니다. '), _defineProperty(_ko$data, 'HELP_17_Title', '17) 내 지갑에서 잔액이 표시되지 않는 이유는 뭔가요? '), _defineProperty(_ko$data, 'HELP_17_Desc_1', '그 이유는 방화벽 때문입니다. 우리가 잔액 정보를 얻고 잔액 정보를 변환하는 데 사용하는 API는 어떤 이유로 든 방화벽에 의해 차단되는 경우가 많습니다. 사용자는 계속해서 트랜잭션을 보낼 수 있습니다. 당신은 단지 잔액을 확인하기 위해 etherscan.io 블록체인 탐색 사이트와 같은 다른 방법을 사용해야 될 수 있습니다. '), _defineProperty(_ko$data, 'HELP_18_Title', '18) 내 geth 지갑 파일이 어디 있나요? '), _defineProperty(_ko$data, 'HELP_19_Title', '19) 내 Mist 지갑 파일이 어디 있나요? '), _defineProperty(_ko$data, 'HELP_19_Desc_1', 'Mist 파일은 일반적으로 위의 파일 위치에서 찾을 수 있지만 Mist를 열려면 맨 위 표시할 줄에서 "계좌"를 선택하고 "백업"을 선택한 다음 "계좌"를 선택하는 것이 훨씬 간단합니다. 그러면 파일이 저장된 폴더가 열립니다. '), _defineProperty(_ko$data, 'HELP_20_Title', '20) 나의 프리세일 지갑 파일이 어디 있나요? '), _defineProperty(_ko$data, 'HELP_20_Desc_1', '당신이 지갑 파일을 어디에 보관했든지 간에 지갑 파일은 당신에게 이메일로도 전송되었습니다. 그곳에서 확인하시면 됩니다. "ethereum_wallet_backup.json"이라고 쓰여있는 파일을 찾아서 그 파일을 선택해주세요. 이 지갑 파일은 당신이 프리 세일 구매할 때 만들었던 비밀번호로 암호화되어 있을 것입니다. '), _defineProperty(_ko$data, 'HELP_21_Title', '21) 혹여나 누군가가 랜덤한 개인 키를 넣어 잔고를 찾아서 자기 주소로 보낼 수도 있나요? '), _defineProperty(_ko$data, 'HELP_21_Desc_1', '짧은 답변 : 가능은 합니다. 하지만 잔고가 있는 계좌를 찾는데 아마 영원한 시간이 걸릴 것입니다. 따라서 불가능하다고 생각하면 될 것 같습니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_2', '길지만, 최대한 쉽게 설명한 답변: 그래서 이더리움은 [공개 키 암호화](https://en.wikipedia.org/wiki/Public-key_cryptograpy) 특히나 [타원곡선 암호화](https://eprint.iacr.org/2013/734.pdf) 를 기반으로 합니다. 대부분의 서버는 ECC를 통해 보호됩니다. 비트코인은 SSH와 TLS 뿐만 아니라 다른 것들도 많이 사용합니다. 이더리움의 키는 128bit와 192bit보다 더 강력한 256bit 키이며, 이것들은 널리 사용되고 있으며 전문가들도 안전하다고 얘기합니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_3', '이곳에는 개인 키와 공개 키가 존재합니다. 개인 키는 공개 키를 생성시킬 수 있지만, 공개 키는 개인 키로 되돌릴 수 없습니다. 인터넷과 세계의 비밀들이 이 암호를 사용하고 있다는 사실은, 공개 키에서 개인 키로 되돌리는 방법이 있다면 이것이 한 사람의 문제가 아니라 모든 사람의 문제가 될 것입니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_4', '만약 누군가가 당신의 개인 키를 소지하고 있다면 당신의 계좌에서 이더리움을 보낼 수 있게 됩니다. 이 얘기는 누군가가 당신의 이메일의 비밀번호를 알고 있다면 당신의 이메일을 읽을 수 있으며, 이메일이나 누군가가 출금할 수 있도록 당신의 은행 계좌 비밀번호를 전송할 수 있다는 것과 마찬가지입니다. 당신은 비밀번호로 암호화된 개인 키인 ‘개인 키의 Keystore 버전’을 다운로드 할 수 있습니다. 이것은 다른 암호로 보호되는 비밀번호를 갖게 되는 것입니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_5', '그리고 이론상 누군가가 당신의 계좌를 찾을 때까지 64개의 16진수 문자열을 대입한다면 당신의 계좌가 도난당할 수도 있습니다. 사실 똑똑한 사람들은 임의의 개인 키를 매우 빠르게 검사할 수 있는 프로그램을 만들 수 있습니다. 이것은 ‘무차별 대입 공격’ 또는 ‘개인 키 마이닝’이라고 알려져 있습니다. 사람들은 이것에 대해 오랫동안 고민해 왔습니다. 2~3개의 초고속 서버로 그들은 초당 100만 개 이상의 키를 검사할 수 있습니다. 그러나 초당 수많은 것들은 검사하는 것조차 이 서버를 운영하는 비용을 감당하는게 무의미한 일이 될 것입니다. 개인 키를 알아내기 위해선 어마어마한 시간이 걸립니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_6', '당신이 비트코인에 대해 이해하고 있는 사람이라면 [이 링크로 앞으로 상황을 예측할 수 있을 것입니다.](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-willpeple) 이것이 어떻게 되는 것인지 설명하자면 : 여태껏 생성된 비트코인의 모든 사토시가 고유한 자체의 개인 키로 전송했다고 가정해봅시다. 두 가지 키가 같은 키에 해당할 확률은 약 100억분의 1입니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_7', '[좀 더 기술적인 것을 원한다면:] (http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *이 숫자는 장치 기술과 아무런 관련이 없습니다. 그것들은 열역학이 허용하는 최대치입니다. 그리고 그것들은 256bit 키에 대한 무차별 대입 공격이 해당 컴퓨터가 다른 물질로 변할 때까지 엄청난 시간이 흘러도 불가능하다는 것을 강하게 암시합니다. '), _defineProperty(_ko$data, 'HELP_21_Desc_8', '물론, 이 모든 개인 키가 정말로 무작위 방식으로 충분한 엔트로피를 갖고 생성된다고 가정합시다. 이곳에서 생성된 키는 Jaxx 와 Mist/geth와 마찬가지로 해당 기준을 충족시킵니다. 이더리움 지갑들은 모두 좋은 지갑들입니다. 사람의 뇌가 정말로 무작위적인 시드를 만들어내지 못하기 때문에 사람에 의해 만들어진 지갑으로 만들어진 키는 썩 좋지 않습니다. 비트코인 세계에서는 정말로 무작위 방식으로 생성되고 있지 않은 엔트로피나 시드가 부족한 것에 관해 수많은 문제가 있었습니다. 하지만 그것은 언젠가 해결이 될 날을 기다릴 수 있는 것은 별개의 문제입니다. '), _defineProperty(_ko$data, 'HELP_SecCX_Title', '보안 - MyEtherWallet CX '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_1', '이 확장 프로그램이 내 정보를 어디에 저장하나요? '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_2', '당신이 Chrome 확장 프로그램에 저장한 정보는 [Chrome.storage](http://chrome.storage/)를 통해 저장됩니다. - 이것은 당신이 Chrome에 비밀번호를 저장한 위치와 같은 위치에 저장됩니다. '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_3', '어떤 정보가 저장되나요? '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_4', '주소, 닉네임, 개인 키가 Chrome 스토리지에 저장됩니다. 개인 키는 지갑을 추가할 때 생성된 비밀번호로 암호화됩니다. 닉네임, 지갑 주소는 암호화되지 않습니다. '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_5', '닉네임과 지갑 주소는 왜 암호화되지 않나요? '), _defineProperty(_ko$data, 'HELP_SecCX_Desc_6', '닉네임과 지갑 주소를 암호화하면 계좌 잔액과 닉네임들을 확인할 때마다 비밀번호를 입력해야 합니다. 보안이 걱정된다면 Chrome 확장 프로그램 대신 MyEtherWallet.com 을 사용해주세요. '), _defineProperty(_ko$data, 'HELP_Sec_Title', '보안 '), _defineProperty(_ko$data, 'HELP_Sec_Desc_1', '당신의 첫 번째 질문이 "이 사람들을 신뢰할 수 있나요?"라는 질문이라면 매우 타당한 질문입니다. 다음 내용이 당신의 질문에 대한 답변이 되기를 바랍니다. '), _defineProperty(_ko$data, 'HELP_Sec_Desc_2', '우리는 2015년 8월부터 운영되어 왔습니다. [www.reddit.com 에서 myetherwallet](https://www.reddit.com/search?q=myetherwalle)을 검색하면 많은 사용자들을 볼 수 있습니다. '), _defineProperty(_ko$data, 'HELP_Sec_Desc_3', '우리는 절대 돈을 빼가거나 개인 키를 훔치지 않습니다. 이 사이트에 악의적인 코드는 없습니다. 실제로 지갑 생성 페이지는 완전하게 클라이언트 측에서 작동합니다. 즉, 모든 코드가 **사용자 컴퓨터**에서 실행되며 절대 다른 곳에 정보가 저장되거나 전송되지 않습니다. '), _defineProperty(_ko$data, 'HELP_Sec_Desc_4', '이 URL을 확인해보세요. -- 이 사이트는 GitHub를 통해 소스가 공개되어 있으며 다음 링크에서 확인하실 수 있습니다. : [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_ko$data, 'HELP_Sec_Desc_5', '지갑을 생성하려면, [소스 코드를 다운로드하여 로컬에서 실행하십시오](https://github.com/kvhnuke/etherwallet/releases/latest). 위의 #5를 참조해주세요 '), _defineProperty(_ko$data, 'HELP_Sec_Desc_6', '테스트 지갑을 생성하고 어떤 네트워크 활동이 진행되는지 확인할 수 있습니다. 가장 쉬운 방법은 페이지를 마우스 오른쪽 버튼을 클릭하여 "요소 검사"를 클릭합니다. "네트워크" 탭으로 이동합니다. 테스트 지갑을 생성하면 네트워크 탭에서 네트워크 활동이 없음을 확인할 수 있습니다. data:image/gif, data:image/png 생성도 역시 네트워크를 사용하지 않는 것을 확인하실 수 있습니다. QR 코드는 컴퓨터에서 생성됩니다. 당신의 컴퓨터에서 아무것도 전송되지 않는 것을 확인하실 수 있습니다. '), _defineProperty(_ko$data, 'HELP_Sec_Desc_8', '이 도구를 사용하는 것이 내키지 않는다면 사용하지 않아도 됩니다. 우리는 사람들이 커맨드 명령을 입력이나 풀 노드를 실행할 필요 없이 지갑을 생성하고 트랜잭션을 생성하는 데 도움이 되었으면 하는 바램으로 이 도구를 제작하였습니다. 다시 말씀드리자면, 이상한 점을 발견하신다면 우리에게 연락해주세요. 가능한 빨리 답변드리겠습니다. 감사합니다! '), _defineProperty(_ko$data, 'HELP_FAQ_Title', '자주 묻는 질문에 대한 도움이 될 답변 '), _defineProperty(_ko$data, 'HELP_Contact_Title', '연락 방법 '), _ko$data);
module.exports = ko;
},{}],120:[function(require,module,exports){
// Dutch
'use strict';
var _nl$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var nl = function nl() {};
nl.code = 'nl';
nl.data = (_nl$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_nl$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_nl$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_nl$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_nl$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_nl$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_nl$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_nl$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_nl$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_nl$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_nl$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_nl$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_nl$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_nl$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_nl$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_nl$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_nl$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_nl$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_nl$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_nl$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_nl$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_nl$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_nl$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_nl$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_nl$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_nl$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_nl$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_nl$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_nl$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_nl$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_nl$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_nl$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_nl$data, 'x_CancelReplaceTx', 'Annuleer of Vervang Transactie'), _defineProperty(_nl$data, 'x_CancelTx', 'Annuleer Transactie'), _defineProperty(_nl$data, 'x_PasswordDesc', 'Dit wachtwoord * versleuteld * je prive sleutel. Dit wachtwoord dient niet als "seed" om je sleutels te genereren. **Je hebt zowel je wachtwoord als je prive sleutel beide nodig om je wallet te openen.**'), _defineProperty(_nl$data, 'x_ReadMore', 'Lees meer'), _defineProperty(_nl$data, 'x_ReplaceTx', 'Vervang Transactie'), _defineProperty(_nl$data, 'x_TransHash', 'Transactie Hash'), _defineProperty(_nl$data, 'x_TXFee', 'TX Vergoeding ("TX Fee")'), _defineProperty(_nl$data, 'x_TxHash', 'TX Hash'), _defineProperty(_nl$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_nl$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_nl$data, 'tx_Details', 'Transactie Details'), _defineProperty(_nl$data, 'tx_Summary', 'Ten tijden van hoog transactie volume (zoals tijdens ICOs) kunnen transacties voor uren, zo niet dagen, "pending" blijven. Deze tool heeft als doel om je de mogelijkheid te geven om deze TXs op te sporen en ze te "annuleren" / vervangen. ** Dit is niet typisch iets wat je kunt doen. Je zou er niet op moeten vertrouwen dat dit werkt & het kan alleen werken als de TX Pools vol zitten. [Lees hier meer over deze tool.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_nl$data, 'tx_notFound', 'Transactie Niet Gevonden'), _defineProperty(_nl$data, 'tx_notFound_1', 'Deze TX werd niet gevonden in de TX Pool van de node waarmee je bent verbonden.'), _defineProperty(_nl$data, 'tx_notFound_2', 'Als je deze transactie zojuist hebt verzonden, wacht dan eerst 15 seconden en druk nogmaals op de "Check TX Status" knop. '), _defineProperty(_nl$data, 'tx_notFound_3', 'De transactie zou nog steeds in de TX Pool van een andere node kunnen zitten, in afwachting om ge-mined te worden.'), _defineProperty(_nl$data, 'tx_notFound_4', 'Gebruik het drop-down menu in de rechterbovenhoek & selecteer een andere ETH node (bijvoobeeld `ETH (Etherscan.io)` of `ETH (Infura.io)` of `ETH (MyEtherWallet)`) en check opnieuw.'), _defineProperty(_nl$data, 'tx_foundInPending', 'Pending Transactie Gevonden'), _defineProperty(_nl$data, 'tx_foundInPending_1', 'Je transactie is gevonden in de TX Pool van de node waarmee je bent verbonden. '), _defineProperty(_nl$data, 'tx_foundInPending_2', 'Je transactie is momenteel "pending" (in afwachting om ge-mined te worden). '), _defineProperty(_nl$data, 'tx_foundInPending_3', 'Er is een kans dat je je transactie kunt "anneleren" of vervangen. Open je wallet hieronder.'), _defineProperty(_nl$data, 'tx_FoundOnChain', 'Transactie Gevonden'), _defineProperty(_nl$data, 'tx_FoundOnChain_1', 'Je transactie was succesvol ge-mined en is in de blockchain opgenomen.'), _defineProperty(_nl$data, 'tx_FoundOnChain_2', '**Als je een rood `( ! )`, een `BAD INSTRUCTION` of een `OUT OF GAS` foutmelding**, betekend dat dat de transactie niet succesvol is *verzonden*. Je kunt deze transactie niet annuleren of vervangen. Verzend in plaats daarvan een nieuwe transactie. Als je een "Out of Gas" foutmelding krijgt, zou je de oorspronkelijke gas limit moeten verdubbelen.'), _defineProperty(_nl$data, 'tx_FoundOnChain_3', '**Als je geen enkele foutmelding ziet is je transactie met succes verzonden.** Je ETH of Tokens zijn waar je ze naar verzonden hebt. Als je je verzonden ETH of Tokens niet gecrediteerd ziet in je andere wallet / exchange account, en het is inmiddels al 24+ uur geleden sinds je de transactie verzonden hebt, neem dan [contact op met die service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Geef ze de *link* naar je transactie en vraag ze op je allerliefste manier om naar je situatie te kijken.'), _defineProperty(_nl$data, 'GEN_Help_1', 'gebruik jouw'), _defineProperty(_nl$data, 'GEN_Help_2', 'om toegang tot je account te verkrijgen.'), _defineProperty(_nl$data, 'GEN_Help_3', 'Jouw device * is * je wallet.'), _defineProperty(_nl$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_nl$data, 'GEN_Help_5', 'Hoe maak je een Wallet'), _defineProperty(_nl$data, 'GEN_Help_6', 'Aan de slag'), _defineProperty(_nl$data, 'GEN_Help_7', 'Bewaar dit veilig · Maak een backup · Deel het met niemand · Raak het niet kwijt · Dit kan niet meer worden hersteld als je het kwijtraakt.'), _defineProperty(_nl$data, 'GEN_Help_8', 'Lukt het downloaden niet? '), _defineProperty(_nl$data, 'GEN_Help_9', 'Probeer het met Google Chrome '), _defineProperty(_nl$data, 'GEN_Help_10', 'Rechtermuisknop & kies opslaan als. Bestandsnaam: '), _defineProperty(_nl$data, 'GEN_Help_11', 'Open dit bestand niet op je computer '), _defineProperty(_nl$data, 'GEN_Help_12', 'Gebruik het enkel om je wallet te openen via MyEtherWallet (of Mist, Geth, Parity en andere wallet clients.) '), _defineProperty(_nl$data, 'GEN_Help_13', 'Hoe maak je een backup van je Keystore bestand '), _defineProperty(_nl$data, 'GEN_Help_14', 'Wat zijn al deze verschillende formaten? '), _defineProperty(_nl$data, 'GEN_Help_15', 'Voorkom verlies &amp; diefstal van je tegoeden.'), _defineProperty(_nl$data, 'GEN_Help_16', 'Wat zijn al deze verschillende formaten?'), _defineProperty(_nl$data, 'GEN_Help_17', 'Waarom zou ik?'), _defineProperty(_nl$data, 'GEN_Help_18', 'Om een tweede extra backup te hebben.'), _defineProperty(_nl$data, 'GEN_Help_19', 'Voor als je ooit je wachtwoord vergeet.'), _defineProperty(_nl$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_nl$data, 'GET_ConfButton', 'Ik begrijp het. Ga door.'), _defineProperty(_nl$data, 'GEN_Label_5', 'Sla je Prive Sleutel op. '), _defineProperty(_nl$data, 'GEN_Unlock', 'Open je wallet om je adres te bekijken'), _defineProperty(_nl$data, 'GAS_PRICE_Desc', 'Gas Prijs is het bedrag dat je betaald per unit gas. `TX vergoeding = gas prijs * gas limiet` & wordt betaald aan de miners om jouw TX in een blok op de blockchain op te nemen. Des te hoger de gas prijs = de sneller je transactie, maar ook duurder. Standaard is `41 GWEI`.'), _defineProperty(_nl$data, 'GAS_LIMIT_Desc', 'Gas limiet is de hoeveelheid gas waarmee je je TX verstuurd. `TX vergoeding = gas prijs * gas limiet` & wordt betaald aan de miners om jouw TX in een blok op de blockchain op te nemen. Het verhogen van dit nummer zorgt er niet voor dat je TX sneller ge-mined zal worden. Verzenden van ETH = `21000`. Verzenden van Tokens = ~`200000`.'), _defineProperty(_nl$data, 'NONCE_Desc', 'De nonce is het aantal transacties die reeds verzonden zijn van een gegeven adres. De nonce verzekert dat transacties in de juiste volgorde worden verzonden en dat een transactie slechts 1 keer geldig is.'), _defineProperty(_nl$data, 'TXFEE_Desc', 'De TX vergoeding (`fee`) wordt betaald aan de miners om jouw TX in een blok op de blockchain op te nemen. De vergoeding is de `gas limiet` * `gas prijs`. [Je kunt hier GWEI -> ETH converteren](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_nl$data, 'NAV_AddWallet', 'Wallet Toevoegen '), _defineProperty(_nl$data, 'NAV_BulkGenerate', 'Bulk Genereren '), _defineProperty(_nl$data, 'NAV_Contact', 'Contact '), _defineProperty(_nl$data, 'NAV_Contracts', 'Contracten '), _defineProperty(_nl$data, 'NAV_DeployContract', 'Publiceer Contract '), _defineProperty(_nl$data, 'NAV_ENS', 'ENS'), _defineProperty(_nl$data, 'NAV_GenerateWallet_alt', 'Nieuw Wallet '), _defineProperty(_nl$data, 'NAV_GenerateWallet', 'Genereer Nieuw Wallet '), _defineProperty(_nl$data, 'NAV_Help', 'Help '), _defineProperty(_nl$data, 'NAV_InteractContract', 'Interactie met Contract '), _defineProperty(_nl$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_nl$data, 'NAV_MyWallets', 'Mijn Wallets '), _defineProperty(_nl$data, 'NAV_Offline', 'Verzend Offline '), _defineProperty(_nl$data, 'NAV_SendEther', 'Verzend Ether & Tokens '), _defineProperty(_nl$data, 'NAV_SendTokens', 'Verzend Tokens '), _defineProperty(_nl$data, 'NAV_SignMsg', 'Onderteken Bericht '), _defineProperty(_nl$data, 'NAV_Swap', 'Omwisselen '), _defineProperty(_nl$data, 'NAV_ViewWallet', 'Bekijk Wallet Info '), _defineProperty(_nl$data, 'NAV_YourWallets', 'Jouw Wallets '), _defineProperty(_nl$data, 'x_Access', 'Verkrijg Toegang '), _defineProperty(_nl$data, 'x_AddessDesc', 'Je Adres wordt ook wel je `Account #` of je Publieke Sleutel ("Public Key") genoemd. Dit is wat je deelt met anderen zodat ze je Ether of Tokens kunnen toesturen. Zie ook je kleurrijke adres icoon. Zorg ervoor dat het matched met je paper wallet & waar dan ook wanneer je je adres ergens invoerd. Dit icoon is een makkelijke manier om je adres te herkennen. '), _defineProperty(_nl$data, 'x_Address', 'Je Adres '), _defineProperty(_nl$data, 'x_Cancel', 'Annuleren '), _defineProperty(_nl$data, 'x_CSV', 'CSV bestand (onversleuteld) '), _defineProperty(_nl$data, 'x_Download', 'Download '), _defineProperty(_nl$data, 'x_Json', 'JSON Bestand (onversleuteld) '), _defineProperty(_nl$data, 'x_JsonDesc', 'Dit is het onversleutelde, JSON formaat van je prive sleutel ("Private Key"). Dit betekend dat je het wachtwoord niet nodig hebt, maar ook dat een ieder die je JSON bestand vind toegang heeft tot je wallet & Ether zonder wachtwoord. '), _defineProperty(_nl$data, 'x_Keystore', 'Keystore Bestand (UTC / JSON · Aangeraden · versleuteld) '), _defineProperty(_nl$data, 'x_Keystore2', 'Keystore Bestand (UTC / JSON) '), _defineProperty(_nl$data, 'x_KeystoreDesc', 'Dit Keystore bestand voldoet aan het formaat zoals gebruikt door Mist waardoor je het gemakkelijk kunt importeren in de toekomst. Dit is de aanbevolen methode voor download en back up. '), _defineProperty(_nl$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_nl$data, 'x_Mnemonic', 'Mnemonic Zin '), _defineProperty(_nl$data, 'x_ParityPhrase', 'Parity herstelzin '), _defineProperty(_nl$data, 'x_Password', 'Wachtwoord '), _defineProperty(_nl$data, 'x_Print', 'Druk je papieren wallet af '), _defineProperty(_nl$data, 'x_PrintDesc', 'ProTip: Klik Afdrukken en sla deze pagina op als PDF, zelfs als je geen printer hebt! '), _defineProperty(_nl$data, 'x_PrintShort', 'Afdrukken '), _defineProperty(_nl$data, 'x_PrivKey', 'Prive Sleutel (onversleuteld) '), _defineProperty(_nl$data, 'x_PrivKey2', 'Prive Sleutel '), _defineProperty(_nl$data, 'x_PrivKeyDesc', 'Dit is een onversleutelde tekst versie van je prive sleutel waarbij geen wachtwoord benodigd is. Mocht iemand deze onversleutelde prive sleutel vinden, kunnen zij zonder wachtwoord bij je account. Om deze reden zijn versleutelde versies aanbevolen. '), _defineProperty(_nl$data, 'x_Save', 'Opslaan '), _defineProperty(_nl$data, 'x_TXT', 'TXT bestand (onversleuteld) '), _defineProperty(_nl$data, 'x_Wallet', 'Wallet '), _defineProperty(_nl$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extensie '), _defineProperty(_nl$data, 'CX_Warning_1', 'Zorg voor **externe backups** van alle wallets die je hier opslaat. Er kunnen diverse dingen gebeuren die ervoor zorgen dat je gegevens in deze Chrome Extensie verloren gaan, inclusief het deinstalleren en installeren van de extensie. Deze extensie is een manier om je wallet gemakkelijk toegankelijk te maken, **geen** manier om ze te backuppen. '), _defineProperty(_nl$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet '), _defineProperty(_nl$data, 'MEW_Warning_1', 'Check altijd de URL voordat je jouw wallet opent of een nieuwe wallet genereert. Pas op voor phishing sites! '), _defineProperty(_nl$data, 'FOOTER_1', 'Een gratis, open source, client-side interface om Ethereum wallets te genereren &amp; meer. Wissel op een gemakkelijke &amp; veilige manier informatie uit met de Ethereum blockchain. Dubbel-check de URL/link ( myetherwallet.com ) alvorens je wallet te openen.'), _defineProperty(_nl$data, 'FOOTER_1b', 'Gemaakt door '), _defineProperty(_nl$data, 'FOOTER_2', 'Donaties worden zeer gewaardeerd: '), _defineProperty(_nl$data, 'FOOTER_3', 'Client-side wallet genereren door '), _defineProperty(_nl$data, 'FOOTER_4', 'Disclaimer '), _defineProperty(_nl$data, 'sidebar_AccountInfo', 'Account Informatie '), _defineProperty(_nl$data, 'sidebar_AccountAddr', 'Account Adres '), _defineProperty(_nl$data, 'sidebar_AccountBal', 'Account Saldo '), _defineProperty(_nl$data, 'sidebar_TokenBal', 'Token Saldo '), _defineProperty(_nl$data, 'sidebar_Equiv', 'Equivalente Waarde '), _defineProperty(_nl$data, 'sidebar_TransHistory', 'Transactie Geschiedenis '), _defineProperty(_nl$data, 'sidebar_donation', 'MyEtherWallet is een gratis, open-source service toegewijd aan jouw privacy en beveiliging. Des te meer donaties we ontvangen, des te meer tijd we zullen spenderen aan nieuwe functies, aan de hand van jouw terugkoppeling, en we je kunnen geven wat jij wilt. Wij zijn slechts twee mensen die de wereld een stukje beter willen maken. Help jij mee? '), _defineProperty(_nl$data, 'sidebar_donate', 'Doneer '), _defineProperty(_nl$data, 'sidebar_thanks', 'BEDANKT!!! '), _defineProperty(_nl$data, 'sidebar_DisplayOnTrezor', 'Toon adres op TREZOR'), _defineProperty(_nl$data, 'sidebar_DisplayOnLedger', 'Toon adres op Ledger'), _defineProperty(_nl$data, 'decrypt_Access', 'Hoe wil je toegang tot je wallet? '), _defineProperty(_nl$data, 'decrypt_Title', 'Selecteer het formaat van je prive sleutel: '), _defineProperty(_nl$data, 'decrypt_Select', 'Selecteer een Wallet: '), _defineProperty(_nl$data, 'MNEM_1', 'Selecteer het adres waarmee je wilt communiceren. '), _defineProperty(_nl$data, 'MNEM_2', 'Met jouw enkele HD mnemonic zin heb je toegang tot meerdere wallets / adressen. Selecteer het adres waarmee je nu wilt communiceren. '), _defineProperty(_nl$data, 'MNEM_more', 'Meer Adressen '), _defineProperty(_nl$data, 'MNEM_prev', 'Vorige Adressen '), _defineProperty(_nl$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_nl$data, 'ADD_Ledger_1', 'Verbind je Ledger Wallet '), _defineProperty(_nl$data, 'ADD_Ledger_2', 'Open de Ethereum applicatie (of een contract applicatie) '), _defineProperty(_nl$data, 'ADD_Ledger_2_Exp', 'Open de Expanse applicatie (of een contract applicatie) '), _defineProperty(_nl$data, 'ADD_Ledger_2_Ubq', 'Open de Ubiq applicatie (of een contract applicatie) '), _defineProperty(_nl$data, 'ADD_Ledger_3', 'Controleer of "Browser Support" is ingeschakeld in je instellingen '), _defineProperty(_nl$data, 'ADD_Ledger_4', 'Als je "Browser Support" niet in je instellingen kunt vinden, controleer dan dat je [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) is '), _defineProperty(_nl$data, 'ADD_Ledger_0a', 'Her-open MyEtherWallet met een veilige (SSL) verbinding '), _defineProperty(_nl$data, 'ADD_Ledger_0b', 'Her-open MyEtherWallet door gebruik te maken van [Chrome](https://www.google.com/chrome/browser/desktop/) of [Opera](https://www.opera.com/) '), _defineProperty(_nl$data, 'ADD_Ledger_scan', 'Verbind met Ledger Wallet '), _defineProperty(_nl$data, 'x_Trezor', 'TREZOR '), _defineProperty(_nl$data, 'ADD_Trezor_scan', 'Verbind met TREZOR '), _defineProperty(_nl$data, 'ADD_MetaMask', 'Verbind met MetaMask '), _defineProperty(_nl$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_nl$data, 'ADD_DigitalBitbox_0a', 'Her-open MyEtherWallet met een veilige (SSL) verbinding '), _defineProperty(_nl$data, 'ADD_DigitalBitbox_0b', 'Her-open MyEtherWallet door gebruik te maken van [Chrome](https://www.google.com/chrome/browser/desktop/) of [Opera](https://www.opera.com/) '), _defineProperty(_nl$data, 'ADD_DigitalBitbox_scan', 'Verbind met Digital Bitbox '), _defineProperty(_nl$data, 'ADD_Label_1', 'Wat wil je doen? '), _defineProperty(_nl$data, 'ADD_Radio_1', 'Genereer nieuwe wallet '), _defineProperty(_nl$data, 'ADD_Radio_2', 'Selecteer je wallet bestand (Keystore / JSON) '), _defineProperty(_nl$data, 'ADD_Radio_2_alt', 'Selecteer je wallet bestand '), _defineProperty(_nl$data, 'ADD_Radio_2_short', 'SELECTEER WALLET BESTAND... '), _defineProperty(_nl$data, 'ADD_Radio_3', 'Plak/Type je prive sleutel '), _defineProperty(_nl$data, 'ADD_Radio_4', 'Voeg een te bekijken account toe '), _defineProperty(_nl$data, 'ADD_Radio_5', 'Plak/type Mnemonic '), _defineProperty(_nl$data, 'ADD_Radio_5_Path', 'Selecteer HD derivation path '), _defineProperty(_nl$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_nl$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_nl$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_nl$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_nl$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_nl$data, 'ADD_Label_2', 'Verzin een Nickname: '), _defineProperty(_nl$data, 'ADD_Label_3', 'Je wallet is versleuteld. Geef je wachtwoord '), _defineProperty(_nl$data, 'ADD_Label_4', 'Voeg een te bekijken account toe '), _defineProperty(_nl$data, 'ADD_Warning_1', 'Je kunt elk account toevoegen als "bekijken" in het wallets tabblad zonder de prive sleutel te uploaden. Dit betekend ** niet ** dat je toegang hebt tot deze wallet, noch dat je er Ether vanuit kunt versturen. '), _defineProperty(_nl$data, 'ADD_Label_5', 'Voer het adres in '), _defineProperty(_nl$data, 'ADD_Label_6', 'Ontsleutel je wallet '), _defineProperty(_nl$data, 'ADD_Label_6_short', 'Ontsleutel '), _defineProperty(_nl$data, 'ADD_Label_7', 'Voeg account toe '), _defineProperty(_nl$data, 'ADD_Label_8', 'Wachtwoord (optioneel): '), _defineProperty(_nl$data, 'MYWAL_Nick', 'Wallet Nickname '), _defineProperty(_nl$data, 'MYWAL_Address', 'Wallet Adres '), _defineProperty(_nl$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_nl$data, 'MYWAL_Edit', 'Bewerken '), _defineProperty(_nl$data, 'MYWAL_View', 'Bekijken '), _defineProperty(_nl$data, 'MYWAL_Remove', 'Verwijderen '), _defineProperty(_nl$data, 'MYWAL_RemoveWal', 'Verwijder Wallet: '), _defineProperty(_nl$data, 'MYWAL_WatchOnly', 'Je Watch-Only Accounts '), _defineProperty(_nl$data, 'MYWAL_Viewing', 'Te Bekijken Wallet '), _defineProperty(_nl$data, 'MYWAL_Hide', 'Verberg Wallet Info '), _defineProperty(_nl$data, 'MYWAL_Edit_2', 'Bewerk Wallet '), _defineProperty(_nl$data, 'MYWAL_Name', 'Wallet Naam '), _defineProperty(_nl$data, 'MYWAL_Content_1', 'Waarschuwing! Je staat op het punt om je wallet te verwijderen '), _defineProperty(_nl$data, 'MYWAL_Content_2', 'Wees er zeker van dat je **de prive sleutel/JSON bestand en het wachtwoord opgeslagen hebt** van deze wallet voordat je het verwijderd. '), _defineProperty(_nl$data, 'MYWAL_Content_3', 'Als je deze wallet in de toekomst nog wilt gebruiken met MyEtherWallet CX, zul je het met de hand moeten toevoegen door gebruik te maken van de prive sleutel/JSON en wachtwoord. '), _defineProperty(_nl$data, 'GEN_desc', 'Als je meerdere wallets wilt genereren, kun je dat hier doen '), _defineProperty(_nl$data, 'GEN_Label_1', 'Voer een sterk wachtwoord in (minimaal 9 karakters) '), _defineProperty(_nl$data, 'GEN_Placeholder_1', 'Vergeet NIET om dit wachtwoord op te slaan! '), _defineProperty(_nl$data, 'GEN_SuccessMsg', 'Gelukt! Je wallet is gegenereerd. '), _defineProperty(_nl$data, 'GEN_Label_2', 'Sla je "Keystore" bestand op.'), _defineProperty(_nl$data, 'GEN_Label_3', 'Sla je adres op. '), _defineProperty(_nl$data, 'GEN_Label_4', 'Optioneel: Druk je papieren wallet af, of bewaar hem als QR code.'), _defineProperty(_nl$data, 'BULK_Label_1', 'Aantal te genereren wallets '), _defineProperty(_nl$data, 'BULK_Label_2', 'Genereer Wallets '), _defineProperty(_nl$data, 'BULK_SuccessMsg', 'Gelukt! Je wallets zijn gegenereerd. '), _defineProperty(_nl$data, 'SEND_addr', 'Aan Adres '), _defineProperty(_nl$data, 'SEND_amount', 'Te verzenden bedrag '), _defineProperty(_nl$data, 'SEND_amount_short', 'Bedrag '), _defineProperty(_nl$data, 'SEND_custom', 'Aangepast Token '), _defineProperty(_nl$data, 'SEND_gas', 'Gas '), _defineProperty(_nl$data, 'SEND_TransferTotal', 'Verzend volledig saldo '), _defineProperty(_nl$data, 'SEND_generate', 'Genereer Transactie '), _defineProperty(_nl$data, 'SEND_raw', 'Raw Transactie '), _defineProperty(_nl$data, 'SEND_signed', 'Gesigneerde Transactie '), _defineProperty(_nl$data, 'SEND_trans', 'Verzend Transactie '), _defineProperty(_nl$data, 'SENDModal_Title', 'Waarschuwing! '), _defineProperty(_nl$data, 'SENDModal_Content_1', 'Je staat op het punt om het volgende bedrag over te maken '), _defineProperty(_nl$data, 'SENDModal_Content_2', 'aan adres '), _defineProperty(_nl$data, 'SENDModal_Content_3', 'Weet je zeker dat je dit wilt doen? '), _defineProperty(_nl$data, 'SENDModal_Content_4', 'OPMERKING: Als je een fout bent tegengekomen, zul je waarschijnlijk ether aan je account moeten toevoegen om de gas kosten voor het verzenden van deze transactie te betalen. Gas wordt betaald in ether. '), _defineProperty(_nl$data, 'SENDModal_No', 'Nee, haal me hier weg! '), _defineProperty(_nl$data, 'SENDModal_Yes', 'Ja, ik weet het zeker! Maak de transactie. '), _defineProperty(_nl$data, 'TOKEN_Addr', 'Token Contract Adres '), _defineProperty(_nl$data, 'TOKEN_Symbol', 'Token Symbool '), _defineProperty(_nl$data, 'TOKEN_Dec', 'Decimalen '), _defineProperty(_nl$data, 'TOKEN_show', 'Toon alle Tokens '), _defineProperty(_nl$data, 'TOKEN_hide', 'Verberg Tokens '), _defineProperty(_nl$data, 'TRANS_desc', 'Als je Tokens wilt versturen, gebruik dan de "Verzend Token" pagina i.p.v. deze pagina. '), _defineProperty(_nl$data, 'TRANS_advanced', '+Geavanceerd: Voeg Data toe '), _defineProperty(_nl$data, 'TRANS_data', 'Data '), _defineProperty(_nl$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_nl$data, 'TRANS_sendInfo', 'Een standaard transactie met 21000 gas zal 0.000441 ETH kosten. Wij gebruiken een iets-boven-minimum gas prijs van 0.000000021 ETH om te garranderen dat de transactie snel uitgevoerd zal worden. Wij zijn niet verantwoordelijk voor je transactie kosten. '), _defineProperty(_nl$data, 'OFFLINE_Title', 'Genereer & Verzend een Offline Transactie '), _defineProperty(_nl$data, 'OFFLINE_Desc', 'Een offline transactie doe je in drie stappen. Stap 1 en 3 doe je op een online computer, terwijl je stap 2 uitvoert op een offline/afgeschermde computer. Dit zorgt ervoor dat je prive sleutel niet in aanraking komt met een met internet verbonden computer. '), _defineProperty(_nl$data, 'OFFLLINE_Step1_Title', 'Stap 1: Genereer Informatie (Online Computer) '), _defineProperty(_nl$data, 'OFFLINE_Step1_Button', 'Genereer Informatie '), _defineProperty(_nl$data, 'OFFLINE_Step1_Label_1', 'Van Adres '), _defineProperty(_nl$data, 'OFFLINE_Step1_Label_2', 'Opmerking: Dit is het VAN adress, niet het AAN adres. De Nonce wordt generenereerd van het oorspronkelijke account. Als je een afgeschermde (airgapped) computer gebruikt, zal dit het adres van het cold-storage account zijn. '), _defineProperty(_nl$data, 'OFFLINE_Step2_Title', 'Stap 2: Genereer Transactie (Offline Computer) '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_1', 'Aan Adres '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_2', 'Waarde / Te Verzenden Bedrag '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_3', 'Gas Prijs '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_3b', 'Dit werd weergegeven in Stap 1 op je online computer. '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_4', 'Gas Limiet '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_4b', '21000 is de standaard gas limiet. Als je (naar) een contract verstuurd of data toevoegd, zou je dit anders moeten instellen. Alle onbenutte gas zal aan je worden teruggestuurd. '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_5b', 'Dit werd weergegeven in Stap 1 op je online computer. '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_6', 'Data '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_6b', 'Dit is optioneel. Data wordt vaak gebruikt als je transacties naar contracten verstuurd. '), _defineProperty(_nl$data, 'OFFLINE_Step2_Label_7', 'Selecteer en geef je Prive Sleutel / JSON in. '), _defineProperty(_nl$data, 'OFFLINE_Step3_Title', 'Stap 3: Verstuur / Publiceer Transactie (Online Computer) '), _defineProperty(_nl$data, 'OFFLINE_Step3_Label_1', 'Plak de gesigneerde transactie van Stap 2 hier en klik de "Verzend Transactie" knop. '), _defineProperty(_nl$data, 'CONTRACT_Title', 'Contract Adres '), _defineProperty(_nl$data, 'CONTRACT_Title_2', 'Selecteer Bestaand Contract '), _defineProperty(_nl$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_nl$data, 'CONTRACT_Interact_Title', 'Lees / Schrijf Contract '), _defineProperty(_nl$data, 'CONTRACT_Interact_CTA', 'Selecteer een functie '), _defineProperty(_nl$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_nl$data, 'CONTRACT_Read', 'LEES '), _defineProperty(_nl$data, 'CONTRACT_Write', 'SCHRIJF '), _defineProperty(_nl$data, 'DEP_generate', 'Genereer Bytecode '), _defineProperty(_nl$data, 'DEP_generated', 'Gegenereerde Bytecode '), _defineProperty(_nl$data, 'DEP_signtx', 'Onderteken Transactie '), _defineProperty(_nl$data, 'DEP_interface', 'Gegenereerde Interface '), _defineProperty(_nl$data, 'NODE_Title', 'Stel je Custom Node in'), _defineProperty(_nl$data, 'NODE_Subtitle', 'Om met een lokale node te verbinden...'), _defineProperty(_nl$data, 'NODE_Warning', 'Je node dient HTTPS te zijn om met MyEtherWallet.com te kunnen verbinden. Je kunt de [MyEtherWallet repo downloaden](https://github.com/kvhnuke/etherwallet/releases/latest) en lokaal uitvoeren en vervolgens met iedere node verbinden. Of, verkrijg een gratis SSL certificaat via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_nl$data, 'NODE_Name', 'Node Naam'), _defineProperty(_nl$data, 'NODE_Port', 'Node Poort'), _defineProperty(_nl$data, 'NODE_CTA', 'Opslaan & Custom Node gebruiken'), _defineProperty(_nl$data, 'SWAP_rates', "Actuele Koersen "), _defineProperty(_nl$data, 'SWAP_init_1', "Ik wil mijn "), _defineProperty(_nl$data, 'SWAP_init_2', " omwisselen voor "), _defineProperty(_nl$data, 'SWAP_init_CTA', "Naar de volgende stap "), _defineProperty(_nl$data, 'SWAP_information', "Je informatie "), _defineProperty(_nl$data, 'SWAP_send_amt', "Te verzenden bedrag "), _defineProperty(_nl$data, 'SWAP_rec_amt', "Te ontvangen bedrag "), _defineProperty(_nl$data, 'SWAP_your_rate', "Je wisselkoers "), _defineProperty(_nl$data, 'SWAP_rec_add', "Je ontvangst Adres "), _defineProperty(_nl$data, 'SWAP_start_CTA', "Start Omwisselen "), _defineProperty(_nl$data, 'SWAP_ref_num', "Je referentie nummer "), _defineProperty(_nl$data, 'SWAP_time', "Resterende tijd om te verzenden "), _defineProperty(_nl$data, 'SWAP_elapsed', "Verstreken tijd sinds verzonden"), _defineProperty(_nl$data, 'SWAP_progress_1', "Bestelling Gestart "), _defineProperty(_nl$data, 'SWAP_progress_2', "Wachten op je "), _defineProperty(_nl$data, 'SWAP_progress_3', "Ontvangen! "), _defineProperty(_nl$data, 'SWAP_progress_4', "Verzenden van je {{orderResult.output.currency}} "), _defineProperty(_nl$data, 'SWAP_progress_5', "Bestelling Voltooid "), _defineProperty(_nl$data, 'SWAP_order_CTA', "Verzend alsjeblieft "), _defineProperty(_nl$data, 'SWAP_unlock', "Open je Wallet op deze pagina om ETH of Tokens direct te verzenden. "), _defineProperty(_nl$data, 'MSG_message', 'Bericht '), _defineProperty(_nl$data, 'MSG_date', 'Datum '), _defineProperty(_nl$data, 'MSG_signature', 'Handtekening '), _defineProperty(_nl$data, 'MSG_verify', 'Verifieer Bericht '), _defineProperty(_nl$data, 'MSG_info1', 'Voeg de huidige datum toe zodat je handtekening niet opnieuw kan worden gebruikt op een andere datum. '), _defineProperty(_nl$data, 'MSG_info2', 'Voeg je nickname toe en waar je deze gebruikt zodat anderen deze niet kunnen gebruiken. '), _defineProperty(_nl$data, 'MSG_info3', 'Geef een specifieke reden op voor de boodschap, zodat deze niet kan worden hergebruikt voor een ander doel. '), _defineProperty(_nl$data, 'VIEWWALLET_Subtitle', 'Hiermee kun je verschillende versies van je prive sleutels downloaden en je papieren wallet opnieuw afdrukken. Je zou dit kunnen doen om [je account in Geth/Mist te importeren](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Als je enkel je saldo wilt raadplegen, adviseren we je om gebruik te maken van een blockchain explorer zoals [etherscan.io](https://etherscan.io/). '), _defineProperty(_nl$data, 'VIEWWALLET_Subtitle_Short', 'Hiermee kun je verschillende versies van je prive sleutels downloaden en je papieren wallet opnieuw afdrukken. '), _defineProperty(_nl$data, 'VIEWWALLET_SuccessMsg', 'Gelukt! Hier zijn je wallet details. '), _defineProperty(_nl$data, 'VIEWWALLET_ShowPrivKey', '(laat zien)'), _defineProperty(_nl$data, 'VIEWWALLET_HidePrivKey', '(verberg)'), _defineProperty(_nl$data, 'CX_error_1', 'Je hebt nog geen enkele wallets opgeslagen. Klik ["Voeg wallet toe"](/cx-wallet.html#add-wallet) om er een toe te voegen! '), _defineProperty(_nl$data, 'CX_quicksend', 'VerzendSnel '), _defineProperty(_nl$data, 'ERROR_0', 'Geef alsjeblieft een geldig bedrag in. '), _defineProperty(_nl$data, 'ERROR_1', 'Je wachtwoord dient minimaal 9 karakters lang te zijn. Zorg voor een sterk wachtwoord. '), _defineProperty(_nl$data, 'ERROR_2', 'Sorry! We herkennen dit type Wallet bestand niet. '), _defineProperty(_nl$data, 'ERROR_3', 'Dit is geen geldig Wallet bestand. '), _defineProperty(_nl$data, 'ERROR_4', 'Deze eenheid bestaat niet, kies alsjeblieft een van de volgende eenheden '), _defineProperty(_nl$data, 'ERROR_5', 'Ongeldig adres. '), _defineProperty(_nl$data, 'ERROR_6', 'Ongeldig wachtwoord. '), _defineProperty(_nl$data, 'ERROR_7', 'Ongeldig bedrag. (Moet een getal zijn. Probeer 0-18.) '), _defineProperty(_nl$data, 'ERROR_8', 'Ongeldige gas limiet. (Moet een getal zijn. Probeer 21000-4000000.) '), _defineProperty(_nl$data, 'ERROR_9', 'Ongeldige data waarde. (Moet hexadecimaal zijn.) '), _defineProperty(_nl$data, 'ERROR_10', 'Ongeldige gas bedrag. (Moet een getal zijn. Probeer 20 GWEI / 20000000000 WEI.) '), _defineProperty(_nl$data, 'ERROR_11', 'Ongeldige nonce. (Moet een getal zijn.) '), _defineProperty(_nl$data, 'ERROR_12', 'Ongeldige gesigneerde transactie. '), _defineProperty(_nl$data, 'ERROR_13', 'Een wallet met deze nickname bestaat reeds. '), _defineProperty(_nl$data, 'ERROR_14', 'Wallet niet gevonden. '), _defineProperty(_nl$data, 'ERROR_15', 'Het ziet er niet naar uit dat een proposal met dit ID bestaat of dat er een fout is opgetreden bij het lezen van dit proposal. '), _defineProperty(_nl$data, 'ERROR_16', 'Een wallet met dit adres bestaat reeds. Check alsjeblileft je wallet pagina. '), _defineProperty(_nl$data, 'ERROR_17', 'Ontoereikend saldo. Het account waarvan je probeert te versturen bevat niet voldoende saldo. Je hebt mininaal 0.01 ether in je account nodig om de in de gas kosten te voorzien. Voeg alsjeblieft wat ether toe en probeer het opnieuw. '), _defineProperty(_nl$data, 'ERROR_18', 'Alle gas zou worden verbruikt op deze transactie. Dit betekend dat je al gestemd hebt op dit proposal of dat de debateerperiode is verstreken. '), _defineProperty(_nl$data, 'ERROR_19', 'Ongeldig symbol '), _defineProperty(_nl$data, 'ERROR_20', 'is geen geldig ERC-20 token. Als andere tokens nog aan het laden zijn, verwijder dan dit token en probeer het opnieuw. '), _defineProperty(_nl$data, 'ERROR_21', 'Kon gas niet inschatten. Er is onvoldoende saldo in het account, of het ontvangende contract adres geeft een fout. Voel je vrij om het gas handmatig in te stellen en door te gaan. De foutmelding bij het verzenden kan informatiever zijn. '), _defineProperty(_nl$data, 'ERROR_22', 'Geef een geldige node naam in '), _defineProperty(_nl$data, 'ERROR_23', 'Voer een geldige url in, als je van https gebruik maakt moet je url met https beginnen '), _defineProperty(_nl$data, 'ERROR_24', 'Voer een geldige poort in '), _defineProperty(_nl$data, 'ERROR_25', 'Voer een geldig chain ID in '), _defineProperty(_nl$data, 'ERROR_26', 'Voer een geldige ABI in '), _defineProperty(_nl$data, 'ERROR_27', 'Minimale hoeveelheid is 0.01 '), _defineProperty(_nl$data, 'ERROR_28', '**Je hebt je Keystore Bestand & wachtwoord of prive sleutel nodig** om toegang tot deze wallet te verkrijgen in de toekomst. Sla het op & maak een externe back-up! Er is geen enkele manier om je wallet te herstellen als je het nu niet opslaat. Lees ook de help pagina (https://www.myetherwallet.com/#help) voor instructies. '), _defineProperty(_nl$data, 'ERROR_29', 'Voer een valide gebruikersnaam en wachtwoord in '), _defineProperty(_nl$data, 'ERROR_30', 'Voer een valide ENS naam in '), _defineProperty(_nl$data, 'ERROR_31', 'Ongeldige geheime zin '), _defineProperty(_nl$data, 'ERROR_32', 'Kon niet met de node verbinden. Ververs de pagina, probeer een andere node (rechterbovenhoek) en/of check je firewall instellingen. Check bij een custom node je configuratie.'), _defineProperty(_nl$data, 'ERROR_33', 'De wallet die je hebt geopend matched niet bij het adres van de eigenaar owner\'s. '), _defineProperty(_nl$data, 'ERROR_34', 'De naam die je probeert de onthullen ("reveal") matched niet met de naam die je hebt ingevoerd. '), _defineProperty(_nl$data, 'ERROR_35', 'Input adres is niet ge-checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Meer info</a>'), _defineProperty(_nl$data, 'ERROR_36', 'Voer een geldige TX hash in'), _defineProperty(_nl$data, 'ERROR_37', 'Voer een geldige hex string in (0-9, a-f)'), _defineProperty(_nl$data, 'SUCCESS_1', 'Geldig adres '), _defineProperty(_nl$data, 'SUCCESS_2', 'Wallet succesvol ontsleuteld '), _defineProperty(_nl$data, 'SUCCESS_3', 'Je TX is naar het netwerk verzonden (ge-broadcast), en is in afwachting om ge-mined en bevestigd te worden. Ten tijden van ICOs, kan het zijn dat het bevestigen ervan 3+ uur duurt. Gebruik de Verify & Check knoppen hieronder on de status te volgen. TX Hash: '), _defineProperty(_nl$data, 'SUCCESS_4', 'Je Wallet is succesvol toegevoegd '), _defineProperty(_nl$data, 'SUCCESS_5', 'Bestand Geselecteerd '), _defineProperty(_nl$data, 'SUCCESS_6', 'Je bent succesvol verbonden '), _defineProperty(_nl$data, 'SUCCESS_7', 'Bericht Ondertekening Geverifieerd'), _defineProperty(_nl$data, 'WARN_Send_Link', 'Je bent hier gekomen via een link waarbij het adres, bedrag, gas of data velden al ingevuld zijn. Indien gewenst kun je elk veld nog aanpassen voor het verzenden. Ontgrendel je wallet on te beginnen. '), _defineProperty(_nl$data, 'GETH_InvalidSender', 'Ongeldige verzender '), _defineProperty(_nl$data, 'GETH_Nonce', 'Nonce te laag '), _defineProperty(_nl$data, 'GETH_Cheap', 'Gas prijs te laag voor acceptatie '), _defineProperty(_nl$data, 'GETH_Balance', 'Ontoereikend saldo '), _defineProperty(_nl$data, 'GETH_NonExistentAccount', 'Account bestaat niet of account saldo te laag '), _defineProperty(_nl$data, 'GETH_InsufficientFunds', 'Ontoereikend saldo voor gas * prijs + waarde '), _defineProperty(_nl$data, 'GETH_IntrinsicGas', 'Intrinsiek gas te laag '), _defineProperty(_nl$data, 'GETH_GasLimit', 'Overstijgt blok gas limiet '), _defineProperty(_nl$data, 'GETH_NegativeValue', 'Negative waarde '), _defineProperty(_nl$data, 'PARITY_AlreadyImported', "(parity-01) Transactie met dezelfde hash was reeds geimporteerd. A transaction with the same hash was already imported. It was probably already broadcast. To avoid duplicate transactions, check your address on [etherscan.io](https://etherscan.io) & wait 10 minutes before attempting to send again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_nl$data, 'PARITY_GasLimitExceeded', "(parity-02) Transactie kosten overstijgen de huidige gas limiet. Limiet: {}, momenteel: {}. Probeer de hoeveelheid gas te verminderen. Transaction cost exceeds current gas limit. Limit: (d+), got: (d+). Please lower the gas limit to 21000 (for sending) or 200000 (for sending tokens or contracts) and try again. [Learn More](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_nl$data, 'PARITY_InsufficientBalance', "(parity-03) Ontoereikend saldo. Het account waarvan je probeert te versturen bevat niet voldoende saldo. Vereist {} en momenteel: {}. Insufficient balance. The account you tried to send transaction from does not have enough funds. If you believe this is in error, try using the 'Send Entire Balance' button, or pressing generate again. Required (d+) and got: (d+). [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_nl$data, 'PARITY_InsufficientGasPrice', "(parity-04) Transactie vergoeding is te laag. Het voldoet niet aan je node's minimale vergoeding (minimaal: {}, momenteel: {}). Probeer je transactie vergoeding te verhogen. There is another transaction with same nonce in the queue, or the transaction fee is too low. Try incrementing the nonce by clicking the Generate button again. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_nl$data, 'PARITY_InvalidGasLimit', "(parity-05) Hoeveelheid gas is boven de limiet. Supplied gas limit is beyond limit. Try lowering the gas limit to 21000. [Learn More.](https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html)"), _defineProperty(_nl$data, 'PARITY_LimitReached', "(parity-06) Er staan te veel transacties in de wachtrij. Je transactie is afgewezen door deze limiet. Probeer je transactie vergoeding te verhogen. There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the gas price. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_nl$data, 'PARITY_Old', "(parity-07) Transactie nonce is te laag. Probeer de nonce te verhogen. There is already a transaction with this [nonce](https://myetherwallet.github.io/knowledge-base/transactions/what-is-nonce.html). Try incrementing the nonce by pressing the Generate button again, or [replace the pending transaction](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)."), _defineProperty(_nl$data, 'PARITY_TooCheapToReplace', "(parity-08) Transactie vergoeding is te laag. Er staat een andere transactie met dezelfde nonce in de wachtrij. Probeer de transactie vergoeding of de nonce te verhogen. TX Fee is too low. It does not satisfy your node's minimal fee (minimal: (d+), got: (d+)). Try increasing the gas price and/or gas limit. [Learn More.](https://myetherwallet.github.io/knowledge-base/transactions/transactions-not-showing-or-pending.html)"), _defineProperty(_nl$data, 'translate_version', '0.5 '), _defineProperty(_nl$data, 'Translator_Desc', 'Bedank onze vertalers '), _defineProperty(_nl$data, 'TranslatorName_1', '[h3ll0fr13nd](https://www.myetherwallet.com/?gaslimit=21000&to=0xB5FbCE123F12347206c881cae73A3046BA1A90bA&value=1.0#send-transaction) '), _defineProperty(_nl$data, 'TranslatorAddr_1', '0xB5FbCE123F12347206c881cae73A3046BA1A90bA '), _defineProperty(_nl$data, 'TranslatorName_2', ''), _defineProperty(_nl$data, 'TranslatorAddr_2', ''), _defineProperty(_nl$data, 'TranslatorName_3', ''), _defineProperty(_nl$data, 'TranslatorAddr_3', ''), _defineProperty(_nl$data, 'TranslatorName_4', ''), _defineProperty(_nl$data, 'TranslatorAddr_4', ''), _defineProperty(_nl$data, 'TranslatorName_5', ''), _defineProperty(_nl$data, 'TranslatorAddr_5', ''), _defineProperty(_nl$data, 'HELP_Warning', 'Als je een wallet aangemaakt hebt -of repo hebt gedownload- voor **31 december 2015**, verifieer dan alsjebieft je wallets en download een nieuwe versie van de repo. Klik voor details. '), _defineProperty(_nl$data, 'HELP_Desc', 'Zie je dat er iets mist? Of heb je een andere vraag? [Neem contact met ons op](mailto:support@myetherwallet.com), en we zullen niet alleen je vraag beantwoorden, maar ook deze help pagina bijwerken zodat deze nog nuttiger wordt voor toekomstige gebruikers! '), _defineProperty(_nl$data, 'HELP_Remind_Title', 'Enkele herinneringen '), _defineProperty(_nl$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, en enkele onderliggende Javascript libraries waar we gebruik van maken zijn onderheving aan active ontwikkeling.** Hoewel we grondig testen & er inmiddels tienduizenden wallets succesvol zijn aangemaakt door mensen over de hele wereld, blijft er altijd een geringe kans dat iets er onverwachts optreedt waardoor je je ether kunt verliezen. Investeer alsjeblieft niet meer dan dat je bereid bent om te verliezen, en wees voorzichtig. Zou er onverhoopt toch iets gebeuren vinden we dat zeer spijtig, echter **zullen wij nooit verantwoordelijk zijn voor de verloren Ether**. '), _defineProperty(_nl$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX zijn geen "web wallets". Je maakt bij ons geen account aan noch geef je ooit je Ether aan ons in bezit. Alle gegevens verlaten nooit je computer/je browser. We helpen je alleen gemakkelijk toegang te verkrijgen tot de blockchain zodat je er informatie in kunt opslaan en kunt uitlezen. '), _defineProperty(_nl$data, 'HELP_Remind_Desc_3', 'Als je je prive sleutel en wachtwoord niet opslaat, is er geen enkele manier om toegang tot je wallet te verkrijgen of het saldo dat het bevat. Maak back-ups en bewaar deze op meerdere fysieke lokaties en dus niet alleen op je eigen computer! '), _defineProperty(_nl$data, 'HELP_0_Title', '0) Ik ben nieuw. Waar begin ik? '), _defineProperty(_nl$data, 'HELP_0_Desc_1', 'MyEtherWallet geeft je de mogelijkheid om nieuwe wallets te genereren zodat je daarin je Ether kunt bewaren in plaat van op een exchange. Dit process vind volledig lokaal plaats, op je eigen computer en niet op onze servers. Daarom **ben je volledig zelf verantwoordelijk voor het veilig opslaan** van je via deze website aangemaakte wallets. '), _defineProperty(_nl$data, 'HELP_0_Desc_2', 'Creer een nieuwe wallet. '), _defineProperty(_nl$data, 'HELP_0_Desc_3', 'Maak een wallet back-up. '), _defineProperty(_nl$data, 'HELP_0_Desc_4', 'Verrifieer dat je toegang hebt tot dit nieuwe wallet en dat je alle noodzakelijke informatie correct hebt opgeslagen. '), _defineProperty(_nl$data, 'HELP_0_Desc_5', 'Verzend Ether naar dit nieuwe wallet. '), _defineProperty(_nl$data, 'HELP_1_Title', '1) Hoe creer ik een nieuw wallet? '), _defineProperty(_nl$data, 'HELP_1_Desc_1', 'Ga naar de "Genereer Wallet" pagina. '), _defineProperty(_nl$data, 'HELP_1_Desc_2', 'Ga naar de "Wallet Toevoegen" pagina & selecteer "Genereer Nieuw Wallet" '), _defineProperty(_nl$data, 'HELP_1_Desc_3', 'Voer een sterk wachtwoord in. Als je denkt dat je het misschien gaat vergeten, bewaar het dan op een veilige plek. Je zult dit wachtwoord nodig hebben om transacties te versturen. '), _defineProperty(_nl$data, 'HELP_1_Desc_4', 'klik "GENENEREER". '), _defineProperty(_nl$data, 'HELP_1_Desc_5', 'Je wallet is nu gegenereerd. '), _defineProperty(_nl$data, 'HELP_2a_Title', 'Hoe bewaar/back-up ik mijn wallet? '), _defineProperty(_nl$data, 'HELP_2a_Desc_1', 'Zorg altijd voor een goede back-up van je wallet op meerdere fysiek verschillende lokaties - bijvoorbeeld op een USB drive en/of op een vel papier. '), _defineProperty(_nl$data, 'HELP_2a_Desc_2', 'Bewaar het adres. Je kunt het voor jezelf bewaren of met anderen delen. Op die manier kunnen anderen ether naar je versturen. '), _defineProperty(_nl$data, 'HELP_2a_Desc_3', 'Bewaar versies van je prive sleutel. Deel deze niet met anderen. Je prive sleutel heb je nodig wanneer je toegang tot je ETH wilt om het te versturen! Er zijn drie soorten prive sleutels: '), _defineProperty(_nl$data, 'HELP_2a_Desc_4', 'Plaats je adres, versies van je prive sleutel, en de PDF versie van je papieren wallet in een map. Bewaar deze op je computer en een USB drive. '), _defineProperty(_nl$data, 'HELP_2a_Desc_5', 'Druk je wallet af als je een printer hebt. Zo niet, schrijf dan je prive sleutel en adres op een vel papier. Bewaar dit op een veilige lokatie, ergens anders dan je computer en de USB drive. '), _defineProperty(_nl$data, 'HELP_2a_Desc_6', 'Houd in gedachte dat je moet voorkomen dan je je sleutels en wachtwoord kwijt raakt door een defect of verlies van je harde schijf, USB drive, of vel papier. Denk ook aan het fysieke verlies / schade van een complete ruimte (denk aan brand of overstroming). '), _defineProperty(_nl$data, 'HELP_2b_Title', '2b) Hoe doe ik veilig / offline / cold storage met MyEtherWallet? '), _defineProperty(_nl$data, 'HELP_2b_Desc_1', 'Ga naar onze github: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_nl$data, 'HELP_2b_Desc_2', 'Klik `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_nl$data, 'HELP_2b_Desc_3', 'Verplaats de zip naar een offline (airgapped) computer. '), _defineProperty(_nl$data, 'HELP_2b_Desc_4', 'Unzip het en dubbel-klik `index.html`. '), _defineProperty(_nl$data, 'HELP_2b_Desc_5', 'Genereer een wallet met een sterk wachtwoord. '), _defineProperty(_nl$data, 'HELP_2b_Desc_6', 'Bewaar het adres. Bewaar versies van de prive sleutel. Bewaar het wachtwoord als je het je niet voor altijd kunt herinneren. '), _defineProperty(_nl$data, 'HELP_2b_Desc_7', 'Bewaar deze papieren / USB drives op verschillende fysiek verschillende lokaties. '), _defineProperty(_nl$data, 'HELP_2b_Desc_8', 'Ga naar de "Bekijk Wallet Info" pagina en voer je prive sleutel / wachtwoord in om zeker te stellen dat ze correct zijn en dat je toegang hebt tot je wallet. Controleer dat het adres wat je opgeschreven hebt gelijk is. '), _defineProperty(_nl$data, 'HELP_3_Title', '3) Hoe verifieer ik dat ik toegang hebt tot mijn nieuwe wallets? '), _defineProperty(_nl$data, 'HELP_3_Desc_1', 'Zorg **voordat je enige Ether naar je wallet verstuurd** dat je controleerd dat je er toegang toe hebt. '), _defineProperty(_nl$data, 'HELP_3_Desc_2', 'Navigeer naar de "Bekijk Wallet Info" pagina. '), _defineProperty(_nl$data, 'HELP_3_Desc_3', 'Navigeer naar de MyEtherWallet.com "Bekijk Wallet Info" pagina. '), _defineProperty(_nl$data, 'HELP_3_Desc_4', 'Selecteer je wallet bestand -of- je prive sleutel en open je wallet. '), _defineProperty(_nl$data, 'HELP_3_Desc_5', 'Als je wallet is versleuteld (encrypted) zal er een automatisch een extra invoerveld verschijnen. Voer je wachtwoord in. '), _defineProperty(_nl$data, 'HELP_3_Desc_6', 'Klik op de "Ontsleutel je Wallet" knop. '), _defineProperty(_nl$data, 'HELP_3_Desc_7', 'Informatie over je wallet zal verschijnen. Zoek je account adres, naast een kleurrijk, cirkelvormig icoon. Dit icoon is een visuele voorstelling van je address. Zorg ervoor dat je zeker weet dat dit adres het adres is wat je opgeslagen hebt in je tekst document en op je papieren wallet. '), _defineProperty(_nl$data, 'HELP_3_Desc_8', 'Als je van plan bent om er een grote hoeveelheid ether op na te houden, raden we je aan om eerst een kleine hoeveelheid ether naar je nieuwe wallet te versturen voordat je er een grotere hoeveelheid ether naar stuurt. Stuur bijvoorbeeld 0.001 ether naar je nieuwe wallet, verkrijg vervolgens toegang tot dit wallet, stuur die zelfde 0.001 ether naar een ander adres, en controleer dat alles soepel verloopt. '), _defineProperty(_nl$data, 'HELP_4_Title', '4) Hoe stuur ik Ether van het ene wallet naar het ander? '), _defineProperty(_nl$data, 'HELP_4_Desc_1', 'Als je van plan ben om een grote hoeveelheid ether te versturen/ontvangen, raden we je aan om eerst te testen met een klein bedrag om er zeker van te zijn dat alles gaat zoals je verwacht. '), _defineProperty(_nl$data, 'HELP_4_Desc_2', 'Navigeer naar de "Verzend Ether en Tokens" pagina. '), _defineProperty(_nl$data, 'HELP_4_Desc_3', 'Selecteer je wallet bestand -of- je prive sleutel en ontgrendel je wallet. '), _defineProperty(_nl$data, 'HELP_4_Desc_4', 'Als je wallet gecodeerd (encrypted) is, zal er automatisch een extra invoer veld verschijnen. Voer je wachtwoord in. '), _defineProperty(_nl$data, 'HELP_4_Desc_5', 'Klik op de "Ontsleutel Wallet" knop. '), _defineProperty(_nl$data, 'HELP_4_Desc_6', 'Voer het adres in waar naar je wilt versturen in het "Aan adres:" veld. '), _defineProperty(_nl$data, 'HELP_4_Desc_7', 'Voer het te verzenden bedrag in. Je kunt ook klikken op de "Verzend volledig saldo" link als je het totaal beschikbare saldo wilt overmaken. '), _defineProperty(_nl$data, 'HELP_4_Desc_9', 'Klik "Genereer Transactie". '), _defineProperty(_nl$data, 'HELP_4_Desc_10', 'Enkele extra nieuwe invoer velden zullen verschijnen. Dit is jouw browser die de transactie genereert. '), _defineProperty(_nl$data, 'HELP_4_Desc_11', 'Klik op de blauwe "Verzend Transactie" knop eronder. '), _defineProperty(_nl$data, 'HELP_4_Desc_12', 'Een pop-up zal verschijnen. Controleer dat het bedrag en het adres waarnaar je gaat verzenden correct zijn. Klik vervolgens op de "Ja, ik weet het zeker! Maak de transactie." knop. '), _defineProperty(_nl$data, 'HELP_4_Desc_13', 'De transactie zal worden verstuurt. Het TX Hash zal worden weergegeven. Je kunt op dit TX Hash klikken om het in de blockchain te bekijken. '), _defineProperty(_nl$data, 'HELP_4CX_Title', '4) Hoe verzend ik Ether met MyEtherWallet CX? '), _defineProperty(_nl$data, 'HELP_4CX_Desc_1', 'Ten eerste heb je een wallet nodig. Zodra je die hebt, heb je 2 opties: De "VerzendSnel" functionaliteit vanuit het Chrome Extensie icoon of de "Verzend Ether en Tokens" pagina. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_2', 'VerzendSnel: '), _defineProperty(_nl$data, 'HELP_4CX_Desc_3', 'Klik op het Chrome Extensie icoon. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_4', 'Klik op de "VerzendSnel" knop. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_5', 'Selecteer het wallet waar vanuit je wilt verzenden. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_6', 'Voer het adres in waar naar je wilt versturen in het "Aan adres:" veld. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_7', 'Voer het te verzenden bedrag in. Je kunt ook klikken op de "Transfer total available balance" link als je het totaal beschikbare saldo wilt overmaken. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_8', 'Klik "Verzend Transactie". '), _defineProperty(_nl$data, 'HELP_4CX_Desc_9', 'Controleer dat het bedrag en het adres waarnaar je gaat verzenden correct zijn. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_10', 'Voer het wachtwoord van je wallet in. '), _defineProperty(_nl$data, 'HELP_4CX_Desc_11', 'Klik "Verzend Transactie." '), _defineProperty(_nl$data, 'HELP_4CX_Desc_12', 'Maak gebruik van de "Verzend Ether en Tokens" Pagina '), _defineProperty(_nl$data, 'HELP_5_Title', '5) Hoe voer ik MyEtherWallet.com offline/lokaal uit? '), _defineProperty(_nl$data, 'HELP_5_Desc_1', 'Je kunt MyEtherWallet.com uitvoeren op je eigen computer in plaats van op de GitHub servers. Je kunt een wallet volledig offline genereren en transacties versturen met behulp van de "Offline Transactie" pagina. '), _defineProperty(_nl$data, 'HELP_5_Desc_7', 'MyEtherWallet.com draait nu volledig op jouw computer. '), _defineProperty(_nl$data, 'HELP_5_Desc_8', 'Voor het geval dat je er niet bekend mee bent: je hebt de volledige map nodig om de site lokaal te draaien, niet alleen het `index.html` bestand. Laat alle bestanden in de map met rust en ga ze niet verplaatsen. Als je een back-up wilt bewaren van de MyEtherWallet repo voor de toekomst, raden we je aan om alleen de ZIP te bewaren zodat je zeker weet dat de inhoud intact blijft. '), _defineProperty(_nl$data, 'HELP_5_Desc_9', 'Gezien we MyEtherWallet.com continu updaten, raden we je aan om regelmatig je opgeslagen versie van de repo bij te werken. '), _defineProperty(_nl$data, 'HELP_5CX_Title', '5) Hoe installeer ik deze extensie vanuit de repo in plaats van de Chrome Store? '), _defineProperty(_nl$data, 'HELP_5CX_Desc_2', 'Klik `chrome-extension-vX.X.X.X.zip`. '), _defineProperty(_nl$data, 'HELP_5CX_Desc_3', 'Ga naar Google Chrome zoek je instellingen op (in het menu in de rechterbovenhoek). '), _defineProperty(_nl$data, 'HELP_5CX_Desc_4', 'Klik "Extensies" aan de linkerkant. '), _defineProperty(_nl$data, 'HELP_5CX_Desc_5', 'Vink de "Ontwikkelaarmodus" aan bovenaan op de pagina. '), _defineProperty(_nl$data, 'HELP_5CX_Desc_6', 'Klik op de "Uitgepakte extensie laden..." knop. '), _defineProperty(_nl$data, 'HELP_5CX_Desc_7', 'Navigeer naar de nu ge-unzipte map die je eerder hebt gedownload. Klik "selecteer". '), _defineProperty(_nl$data, 'HELP_5CX_Desc_8', 'De extensie zou nu moeten verschijnen in je extensies en in je Chrome Extensie balk. '), _defineProperty(_nl$data, 'HELP_7_Title', '7) Hoe verzend ik Tokens & voeg ik alternatieve tokens toe? '), _defineProperty(_nl$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a goede manier om tokens te verkenen en de getallen omtrent het token op te zoeken. '), _defineProperty(_nl$data, 'HELP_7_Desc_1', 'Navigeer naar de "Verzend Token" pagina. '), _defineProperty(_nl$data, 'HELP_7_Desc_2', 'Ontsleutel je wallet. '), _defineProperty(_nl$data, 'HELP_7_Desc_3', 'Voer het adres in waar naar je wilt versturen in het "Aan adres:" veld. '), _defineProperty(_nl$data, 'HELP_7_Desc_4', 'Voer de te verzenden hoeveelheid in. '), _defineProperty(_nl$data, 'HELP_7_Desc_5', 'Selecteer welk token je zou willen verzenden '), _defineProperty(_nl$data, 'HELP_7_Desc_6', 'Als het token niet wordt vermeld: '), _defineProperty(_nl$data, 'HELP_7_Desc_7', 'Klik op "Aangepast". '), _defineProperty(_nl$data, 'HELP_7_Desc_8', 'Voer het adres, naam, en decimalen van het token in. Deze worden verschaft door de ontwikkelaars van het token en zijn tevens benodigd wanneer je een "Add a Watch Token" aan Mist toevoegd. '), _defineProperty(_nl$data, 'HELP_7_Desc_9', 'Klik op "Opslaan". '), _defineProperty(_nl$data, 'HELP_7_Desc_10', 'Je kunt nu dit token verzenden en tevens zul je het saldo kunnen zien in the zijbalk. '), _defineProperty(_nl$data, 'HELP_7_Desc_11', 'Klik "Genereer Transactie". '), _defineProperty(_nl$data, 'HELP_7_Desc_12', 'Enkele extra velden zullen verschijnen. Dit is je browser die de transactie genereert. '), _defineProperty(_nl$data, 'HELP_7_Desc_13', 'Klik op de blauwe "Verzend Transactie" knop eronder. '), _defineProperty(_nl$data, 'HELP_7_Desc_14', 'Een pop-up zal verschijnen. Controleer dat het bedrag en het adres waarnaar je gaat verzenden correct zijn. Klik vervolgens op de "Ja, ik weet het zeker! Maak de transactie." knop. '), _defineProperty(_nl$data, 'HELP_7_Desc_15', 'De transactie zal worden verstuurt. Het TX Hash zal worden weergegeven. Je kunt op dit TX Hash klikken om het in de blockchain te bekijken. '), _defineProperty(_nl$data, 'HELP_8_Title', '8) Wat gebeurd er als deze website stopt? '), _defineProperty(_nl$data, 'HELP_8_Desc_1', 'MyEtherWallet is geen web wallet. Je hoeft niet in te loggen en er zal nooit iets van je op onze servers worden bewaard. Onze website is enkel een interface om toegang te verkrijgen tot de blockchain. '), _defineProperty(_nl$data, 'HELP_8_Desc_2', 'Als MyEtherWallet.com er mee stopt, zul je een andere manier moeten zien te vinden (zoals geth of Ethereum Wallet / Mist) om te doen wat wij doen. Maar wat je niet zult hoeven te doen is je Ether uit MyEtherWallet halen omdat het niet in MyEtherWallet zit. Je Ether zit in in welk wallet dan ook je op onze site hebt gegenereerd. '), _defineProperty(_nl$data, 'HELP_8_Desc_3', 'Je kunt je onversleutelde (unencrypted) prive sleutel en je Geth/Mist Formaat (encrypted) bestanden heel gemakkelijk en direct in geth / Ethereum Wallet / Mist importeren. Zie onderstaande vraag #12. '), _defineProperty(_nl$data, 'HELP_8_Desc_4', 'Daarnaast is de kans dat wij MyEtherWallet offline halen is miniem tot onmogelijk. Het kost ons vrijwel niets om de site in stand te houden omdat we geen informatie opslaan. Als we toch het domijn offline halen, is het ook altijd nog publiekelijk beschikbaar op [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Je kunt daar de ZIP downloaden en het lokaal draaien. '), _defineProperty(_nl$data, 'HELP_8CX_Title', '8) Wat gebeurd er als MyEtherWallet CX verdwijnt? '), _defineProperty(_nl$data, 'HELP_8CX_Desc_1', 'Ten eerste is alle je data op jouw computer opgeslagen, niet op onze servers. We snappen dat het verwarrend kan zijn, maar als je naar de Chrome Extensie kijkt, kijk je NIET naar dingen die ergens op onze servers staan opgeslagen - alles is bewaard op je eigen computer. '), _defineProperty(_nl$data, 'HELP_8CX_Desc_2', 'Dat gezegd hebbende, is het dan ook **erg belangrijk** dat je een back-up maakt van je wallets die met MyEtherWallet CX zijn gegenereerd. Als er iets met MyEtherWallet CX of jouw computer gebeurd blijft op die manier je wallet bewaard, en heb alle noodzakelijke informatie bij de hand om toegang tot je Ether te verkrijgen. Zie vraag #2a om te leren hoe een back-up van je wallet kunt maken. '), _defineProperty(_nl$data, 'HELP_8CX_Desc_3', 'Als om wat voor reden dan ook MyEtherWallet CX verdwijnt van de Chrome Store, kunt je het altijd nog handmatig laden met de broncode van Github. Zie #5 hierboven. '), _defineProperty(_nl$data, 'HELP_9_Title', '9) Is de "Verzend Ether en Tokens" pagina offline? '), _defineProperty(_nl$data, 'HELP_9_Desc_1', 'Nee. De pagina heeft een internet verbinding nodig voor het bepalen van de actuele gas prijs, nonce van je account, en het versturen (broadcasten) van de transactie. Echter, het enige wat verstuurd wordt is je ondertekende transactie. Je prive sleutel blijft veilig bij je. We hebben nu ook een "Offline Transactie" pagina zodat je ervoor kunt zorgen dat je prive sleutels ten alle tijden op een offline/airgapped computer blijven. '), _defineProperty(_nl$data, 'HELP_10_Title', '10) Hoe voer ik een offline transactie uit? '), _defineProperty(_nl$data, 'HELP_10_Desc_1', 'Navigeer naar de "Offline Transactie" pagina met je online computer. '), _defineProperty(_nl$data, 'HELP_10_Desc_2', 'Voer het "Van Adres" in. Let hierbij op dat dit het adres is waar VAN je zal gaan versturen; VAN, en niet AAN. Dit genereert de nonce en gas prijs. '), _defineProperty(_nl$data, 'HELP_10_Desc_3', 'Ga vervolgens naar je offline computer. Voor het "AAN ADRES" en het te verzenden "BEDRAG" in. '), _defineProperty(_nl$data, 'HELP_10_Desc_4', 'Voer de "GAS PRIJS" in zoals werd weergegeven op je online computer in stap #1. '), _defineProperty(_nl$data, 'HELP_10_Desc_5', 'Voer de "NONCE" in zoals werd weergegeven op je online computer in stap #1. '), _defineProperty(_nl$data, 'HELP_10_Desc_6', 'De "GAS LIMIET" heeft een standaard waarde van 21000. Dit zal een standaard transactie dekken. Indien je naar een contract verstuurd of als je extra data aan je transactie wilt toevoegen, zil je de gas limiet moeten verhogen. Al het teveel aan gas zal aan je geretourneerd worden. '), _defineProperty(_nl$data, 'HELP_10_Desc_7', 'Als je dat wenst, kun je extra data invoeren. Als je extra data toevoegd, zul je meer dan de standaard 21000 gas limiet moeten instellen. Alle data is in HEX formaat. '), _defineProperty(_nl$data, 'HELP_10_Desc_8', 'Selecteer je wallet bestand -of- je prive sleutel en ontsleutel je wallet. '), _defineProperty(_nl$data, 'HELP_10_Desc_9', 'Druk op de "GENEREREER ONDERTEKENDE TRANSACTIE" knop. '), _defineProperty(_nl$data, 'HELP_10_Desc_10', 'Het data veld eronder zal worden ingevuld met je ondertekende transactie. Kopier dit veld en neem het mee terug naar je online computer. '), _defineProperty(_nl$data, 'HELP_10_Desc_11', 'Plak de ondertekende transactie op je online computer in het tekst veld van stap #3 em klik send. Dit zal je transactie publiceren op de blockchain (broadcasten). '), _defineProperty(_nl$data, 'HELP_12_Title', '12) Hoe importeer ik een MyEtherWallet wallet in geth / Ethereum Wallet / Mist? '), _defineProperty(_nl$data, 'HELP_12_Desc_1', 'Door gebruik te maken van een Geth/Mist JSON bestand van MyEtherWallet v2+.... '), _defineProperty(_nl$data, 'HELP_12_Desc_2', 'Ga naar de "Bekijk Wallet Info" pagina. '), _defineProperty(_nl$data, 'HELP_12_Desc_3', 'Ontsleutel je wallet met je **versleutelde** prive sleutel of JSON bestand. '), _defineProperty(_nl$data, 'HELP_12_Desc_4', 'Ga naar de "Mijn Wallets" pagina. '), _defineProperty(_nl$data, 'HELP_12_Desc_5', 'Selecteer het wallet dat je wilt importeren in Mist, klik op het "Bekijken" icoon, voer je wachtwoord in, en verkrijg toegang tot je wallet. '), _defineProperty(_nl$data, 'HELP_12_Desc_6', 'Zoek naar de "Download JSON bestand - Geth/Mist Formaat (encrypted)" sectie. Druk op de "Download" knop eronder. Je hebt nu je keystore bestand. '), _defineProperty(_nl$data, 'HELP_12_Desc_7', 'Open de Ethereum Wallet applicatie. '), _defineProperty(_nl$data, 'HELP_12_Desc_8', 'In de menu balk, ga naar "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_nl$data, 'HELP_12_Desc_9', 'Hiermee open je de keystore map. Kopier het bestand wat je zojuist hebt gedownload (`UTC--2016-04-14......../`) naar deze keystore map. '), _defineProperty(_nl$data, 'HELP_12_Desc_10', 'Je account zou nu direct moeten verschijnen onder "Accounts." '), _defineProperty(_nl$data, 'HELP_12_Desc_11', 'Door gebruik te maken van je onversleutelde prive sleutel... '), _defineProperty(_nl$data, 'HELP_12_Desc_12', 'Indien je nog geen onversleutelde (unencrypted) prive sleutel van je wallet hebt, navigeer je naar de "Bekijk Wallet Info" pagina. '), _defineProperty(_nl$data, 'HELP_12_Desc_13', 'Selecteer je wallet bestand -of- voer je prive sleutel in om je wallet te ontsleutelen. '), _defineProperty(_nl$data, 'HELP_12_Desc_14', 'Kopier je prive sleutel (onversleuteld/unencrypted). '), _defineProperty(_nl$data, 'HELP_12_Desc_15', 'Als je op een Mac werkt: '), _defineProperty(_nl$data, 'HELP_12_Desc_15b', 'Als je op een PC werkt: '), _defineProperty(_nl$data, 'HELP_12_Desc_16', 'Open Tekst Editor en plak deze prive sleutel. '), _defineProperty(_nl$data, 'HELP_12_Desc_17', 'Ga naar de menu balk en klik "Formaat" -> "Maak Platte Tekst". '), _defineProperty(_nl$data, 'HELP_12_Desc_18', 'Sla dit bestand op op je bureaublad als `niets_bijzonders_verwijder_mij.txt`. Controleer dat de opties "UTF-8" en "If no extension is provided use .txt" gekozen zijn in het dialog. '), _defineProperty(_nl$data, 'HELP_12_Desc_19', 'Open terminal en voer het volgende commando uit: `geth account import ~/Desktop/niets_bijzonders_verwijder_mij.txt` '), _defineProperty(_nl$data, 'HELP_12_Desc_20', 'Je zal gevraagd worden om een nieuw wachtwoord. Dit is het wachtwoord wat je zult gebruiken in geth / Ethereum Wallet / Mist elke keer als je een transactie verzend, dus zorg dat je dit niet vergeet. '), _defineProperty(_nl$data, 'HELP_12_Desc_21', 'Verwijder het bestand `niets_bijzonders_verwijder_mij.txt` na een geslaagde import. '), _defineProperty(_nl$data, 'HELP_12_Desc_22', 'De volgende keer dat je de Ethereum Wallet applicatie opent, zal je account worden vermeld onder "Accounts". '), _defineProperty(_nl$data, 'HELP_12_Desc_23', 'Open Kladblok (Notepad) & plak de prive seutel '), _defineProperty(_nl$data, 'HELP_12_Desc_24', 'Sla het bestand op als `niets_bijzonders_verwijder_mij.txt` in `C:` '), _defineProperty(_nl$data, 'HELP_12_Desc_25', 'Open de command prompt en voer het volgende commando uit: `geth account import C:\\niets_bijzonders_verwijder_mij.txt` '), _defineProperty(_nl$data, 'HELP_12_Desc_26', 'Je zal gevraagd worden om een nieuw wachtwoord. Dit is het wachtwoord wat je zult gebruiken in geth / Ethereum Wallet / Mist elke keer als je een transactie verzend, dus zorg dat je dit niet vergeet. '), _defineProperty(_nl$data, 'HELP_12_Desc_27', 'Verwijder het bestand `niets_bijzonders_verwijder_mij.txt` na een geslaagde import. '), _defineProperty(_nl$data, 'HELP_12_Desc_28', 'De volgende keer dat je de Ethereum Wallet applicatie opent, zal je account worden vermeld onder "Accounts". '), _defineProperty(_nl$data, 'HELP_13_Title', '13) Wat betekend "Ontoereikend saldo. Het account waarvan je de transactie verstuurd bevat niet voldoende saldo. Vereist XXXXXXXXXXXXXXXXXXX en heeft: XXXXXXXXXXXXXXXX."? '), _defineProperty(_nl$data, 'HELP_13_Desc_1', 'Dit betekend dat je account onvoldoende Ether bevat om de kosten voor het vereiste gas te dekken. Elke transactie (inclusief token en contract transacties) vereisen gas en dit gas wordt betaald in Ether. Het weergegeven nummer is de hoeveelheid die voor de transactie vereist in Wei. Neem dit nummer, deel het door `1000000000000000000`, en trek daarvan de hoeveelheid Ether die je probeerde te verzenden af (als je probeerde Ether te versturen). Dit geeft je de hoeveelheid Ether die je dient te versturen naar het account om de transactie te maken. '), _defineProperty(_nl$data, 'HELP_14_Title', '14) Sommige sites zorgen voor een willekeurigheid (seed) bij het genereren van de prive sleutel via muis bewegingen. MyEtherWallet.com doet dit niet. Is de wikkeleurigheid (random number generation) van MyEtherWallet wel veilig? '), _defineProperty(_nl$data, 'HELP_14_Desc_1', 'Hoewel het bewegen van de muis een slimme truck is en we begrijpen waarom mensen dit een goed idee vinden, is de werkelijkheid dat "window.crypto" een grotere willekeurigheid (hogere entropie) zeker stelt dan je muisbewegingen. De muisbewegingen zijn niet onveilig, echter wij (en enorm veel andere crypto experimenten) geloven in "window.crypto". Bovendien kan MyEtherWallet.com gebruikt worden op touchscreen apparaten. Hier vind je een [conversatie tussen een boze redditor en Vitalik Buterin over de muisbewegingen v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_nl$data, 'HELP_15_Title', '15) Hoe komt het dat het wallet wat ik zojuist heb aangemaakt niet in de blockchain explorer terug te vinden is? (bijvoorbeeld: etherchain, etherscan) '), _defineProperty(_nl$data, 'HELP_15_Desc_1', 'Adresen zullen enkel in een blockchain explorer worden weergegeven zodra er activiteit op een account heeft plaats gevonden. Bijvoorbeeld, zodra je er wat Ether naar toe verzonden hebt. '), _defineProperty(_nl$data, 'HELP_16_Title', '16) Hoe check ik het saldo van mijn account? '), _defineProperty(_nl$data, 'HELP_16_Desc_1', 'Je kunt hiervoor een blockchain explorer gebruiken zoals bijvoorbeeld [etherscan.io](https://etherscan.io/). Plak daar je adres in de zoekbalk en je adres en transactie geschiedenis zullen worden getoond. Bekijk bijvoobeeld hoe ons [donatie account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) eruit ziet op etherscan.io '), _defineProperty(_nl$data, 'HELP_17_Title', '17) Waarom wordt mijn saldo niet weergegeven nadat ik mijn wallet heb ontsleuteld? '), _defineProperty(_nl$data, 'HELP_17_Desc_1', 'Dit wordt zeer waarschijnlijk veroorzaakt door het feit dat je achter een firwall zit. De API waarvan we gebruik maken om je saldo op te halen en te converteren wordt vaak geblokkeerd door firewalls om wat voor reden dan ook. Het is nog steeds mogelijk om transacties te verzenden, je hebt enkel een andere methode nodig om je saldo the checken, zoals bijvoorbeeld etherscan.io '), _defineProperty(_nl$data, 'HELP_18_Title', '18) Waar is mijn Geth wallet bestand? '), _defineProperty(_nl$data, 'HELP_19_Title', '19) Waar is mijn Mist wallet bestand? '), _defineProperty(_nl$data, 'HELP_19_Desc_1', 'Mist bestanden zijn normaliter te vinden op de bovenstaande bestandslocaties, maar het volgende is veel makkelijker: open Mist, selecteer "Accounts" in de top balk, selecteer "Backup", en selecteer "Accounts". Hiermee open je de map waar je bestanden worden bewaard. '), _defineProperty(_nl$data, 'HELP_20_Title', '20) Waar is mijn pre-sale wallet bestand? '), _defineProperty(_nl$data, 'HELP_20_Desc_1', 'Waar jij het opgeslagen hebt. ;) Het was ook naar je gemailed, dus kijk ook daar. Zoek naar het bestand genaamd "ethereum_wallet_backup.json" en selecteer dit bestand. Dit wallet bestand zal versleuteld (encrypted) zijn met een wachtwoord dat je aangemaakt hebt tijdens de aankoop van de pre-sale. '), _defineProperty(_nl$data, 'HELP_21_Title', '21) Kan iedereen niet simpelweg willekeurige prive sleutels invoeren, zoekend naar een saldo, en dit naar hun eigen adres versturen? '), _defineProperty(_nl$data, 'HELP_21_Desc_1', 'De korte versie: ja, echter het vinden van een account met saldo gaat je langer duren dan het universum...dus...nee. '), _defineProperty(_nl$data, 'HELP_21_Desc_2', 'De lange ELI5 versie: Ethereum is gebasserd op [Publieke Sleutel Cryptografie](https://en.wikipedia.org/wiki/Public-key_cryptography), en meer specifiek op [Elliptische curve cryptografie](https://eprint.iacr.org/2013/734.pdf) wat op grote schaal gebruikt wordt, niet alleen in Ethereum. De meeste van onze servers zijn beveiligd via ECC. Bitcoin maakt hier ook gebruik van, net als SSH, TLS en vele andere dingen. De specifieke Ethereum sleutels zijn 256-bit sleutels, welke sterker zijn dan 128-bit en 192-bit, terwijl die ook op grote schaal gebruikt worden en no steeds als veilig worden beschouwd door experts. '), _defineProperty(_nl$data, 'HELP_21_Desc_3', 'Hierbij heb je een prive sleutel en een publieke sleutel. Vanuit de prive sleutel kan de publieke sleutel afgeleid worden, maar de publieke sleutel kan niet terug omgezet worden in de prive sleutel. Het feit dat het internet en s werelds geheimen gebruik maken van deze cryptografie betekend dat indien er een manier is om van publieke sleutel naar prive sleutel te gaan, dat jouw verloren ether wel het minste van een ieders probleem is. '), _defineProperty(_nl$data, 'HELP_21_Desc_4', 'Nu we dat duidelijk hebben: JA, als iemand anders je prive sleutel heeft kunnen ze inderdaad ether vanuit jouw account versturen. Net zoals dat iemand die je wachtwoord van je email heeft, je email kan lezen en sturen, of met het wachtwoord van je bank rekening geld kunnen overmaken. Je zou de Keystore versie van je prive sleutel kunnen downloaden, dat is je prive sleutel die is versleuteld (encrypted) met een wachtwoord. Dit is alsof je een wachtwoord hebt want je vervolgens nog eens beveiligd met een ander wachtwoord. '), _defineProperty(_nl$data, 'HELP_21_Desc_5', 'En JA, in theorie zou je een serie van 64 hexadecimale karakters kunnen intypen tot je er een hebt die matched. Sterker nog, een slim persoon zou een programma kunnen schrijven om heel snel willekeurige prive sleutels te controleren. Dit wordt ook wel "brute-forcing" van prive sleutels genoemd. Mensen hebben hier lang en goed over nagedacht. Met enkele krachtige servers zouden ze misschien wel zon miljoen sleutels per seconde kunnen controleren. Echter, zelfs wanneer er zoveel sleutels per seconde gecontroleed kunnen worden zou de opbrengst ervan niet eens in de buurt komen bij de kosten om de servers te onderhouden - het is waarschijnlijker dat jij, en je achterkleinkinderen, zijn overleden voordat je een match vind. '), _defineProperty(_nl$data, 'HELP_21_Desc_6', 'Als je Bitcoin een beetje kent, [biedt dit een aardig perspectief:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_nl$data, 'HELP_21_Desc_7', '[Als je het iets technischer wilt:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_nl$data, 'HELP_21_Desc_8', 'Uiteraard gaat bovenstaande er vanuit dat de sleutels worden gegenereerd met een volledige willekeur & met afdoende entropie. De sleutels die hier gegenreerd worden voldoen aan dat criterium, net als Jaxx en Mist/geth. De Ethereum wallets zijn allemaal best goed. Sleutels gegenereerd door "brainwallets" doen dit niet, omdat een het brein van een persoon niet capabel is om een werkelijk willekeurige "seed" te maken. Er zijn een heel aantal kwesties geweest met betrekking tot het gebrek entropie en "seeds" die niet in een volledig willekeurige manier waren gemaakt in Bitcoin-land, maar dat is een ander verhaal en kan wachten tot een andere keer. '), _defineProperty(_nl$data, 'HELP_SecCX_Title', 'Beveiliging - MyEtherWallet CX '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_1', 'Waar bewaard deze extentie mijn informatie? '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_2', 'De informatie die je bewaard in deze Chrome Extensie wordt opgeslagen via [chrome.storage](http://chrome.storage/). - dit is dezelfde plek als waar je wachtwoorden staan opgeslagen als je je wachtwoorden bewaard in Chrome. '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_3', 'Welke informatie wordt bewaard? '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_4', 'Het adres, nickname en prive sleutel worden bewaard in chrome.storage. De prive sleutel is versleuteld (encrypted) met het wachtwoord wat je hebt ingesteld toen je je wallet hebt toegevoegd. De nickname en het wallet adres zijn niet versleuteld. '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_5', 'Waarom zijn de nickname en adres niet versleuteld? '), _defineProperty(_nl$data, 'HELP_SecCX_Desc_6', 'Als we deze items zouden versleutelen, zou je iedere keer dat je je saldo of nicknames wilt checken je wachtwoord moeten invoeren. Als je je hierover zorgen maakt, raden we je aan om gebruik te maken van MyEtherWallet.com in plaats van deze Chrome Extensie. '), _defineProperty(_nl$data, 'HELP_Sec_Title', 'Beveiliging '), _defineProperty(_nl$data, 'HELP_Sec_Desc_1', 'Als een van je eerste vragen is: "Waarom zou ik deze mensen moeten vertrouwen?", dan is dat alleen maar goed. Hopelijk zal het volgende je angst verminderen. '), _defineProperty(_nl$data, 'HELP_Sec_Desc_2', 'We zijn up en running sinds augustus 2015. Als je zoekt naar ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), zul je tal van mensen vinden die ons met groot succes gebruiken. '), _defineProperty(_nl$data, 'HELP_Sec_Desc_3', 'We gaan je niet je geld afnemen of je prive sleutel(s) stelen. Onze website bevat geen kwaadaardige code. Sterker nog, de "GENEREER WALLET" paginas zijn volledig client-side. Dit betekend dat alle code wordt uitgevoerd op ** jouw computer** en dat het buiten jouw computer niets bewaard of verstuurd. '), _defineProperty(_nl$data, 'HELP_Sec_Desc_4', 'Controleer de URL -- Deze website draait vanaf GitHub en je kunt de bron code hier vinden: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) naar de domein namen: [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_nl$data, 'HELP_Sec_Desc_5', 'Om wallets te genereren, kun je ook de [source code](https://github.com/kvhnuke/etherwallet/releases/latest) downloaden. Zie #5 hierboven. '), _defineProperty(_nl$data, 'HELP_Sec_Desc_6', 'Doe een test ronde en controleer wat voor netwerk activiteit er plaats vind. De makkelijkste manier om dit te doen is door met de rechtermuisknop op de pagina de klikken en te kiezen voor "inspecteer element". Ga naar het "Netwerk" tab. Genereer een test wallet. Je zult zien dat er geen netwerk activiteit is. Je zou kunnen zien dat er iets gebeurd wat er als volgt uitziet: data:image/gif and data:image/png. Dit zijn de QR codes die worden gegenereerd...op jouw computer...door jouw computer. Er werden geen bytes overgedragen. '), _defineProperty(_nl$data, 'HELP_Sec_Desc_8', 'Als je je niet pettig voelt bij het gebruikt van deze tool, gebruik hem dan vooral niet. We hebben deze tool voor mensen gemaakt als een handige manier om wallets te genereren en transacties te maken zonder dat je in de command prompt hoeft te duiken of een "full node" moet draaien. Nogmaals, voel je vrij om contact met ons op te nemen als je je zorgen maakt en we zullen zo snel mogelijk reageren. Bedankt! '), _defineProperty(_nl$data, 'HELP_FAQ_Title', 'Meer hulpzame antwoorden op veel voorkomende vragen: '), _defineProperty(_nl$data, 'HELP_Contact_Title', 'Manieren om in contact te komen:'), _nl$data);
module.exports = nl;
},{}],121:[function(require,module,exports){
// Norwegian
'use strict';
var _no$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var no = function no() {};
no.code = 'no';
no.data = (_no$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_no$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_no$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_no$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_no$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_no$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_no$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_no$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_no$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_no$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_no$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_no$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_no$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_no$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_no$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_no$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_no$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_no$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_no$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_no$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_no$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_no$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_no$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_no$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_no$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_no$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_no$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_no$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_no$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_no$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_no$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_no$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_no$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_no$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_no$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_no$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_no$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_no$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_no$data, 'x_CancelReplaceTx', 'Kanseller eller erstatt transaksjon'), _defineProperty(_no$data, 'x_CancelTx', 'Kanseller transaksjon'), _defineProperty(_no$data, 'x_PasswordDesc', 'Dette passordet * krypterer * din private nøkkel. Det fungerer ikke som "seed" for å generere nøklene dine. **Du vil trenge dette passordet + din private nøkkel for å låse opp lommeboken din.**'), _defineProperty(_no$data, 'x_ReadMore', 'Les mer'), _defineProperty(_no$data, 'x_ReplaceTx', 'Erstatt transaksjon'), _defineProperty(_no$data, 'x_TransHash', 'Transaksjonens hash'), _defineProperty(_no$data, 'x_TXFee', 'Tr.avgift'), _defineProperty(_no$data, 'x_TxHash', 'Tr.hash'), _defineProperty(_no$data, 'NAV_CheckTxStatus', 'Sjekk transaksjonsstatus'), _defineProperty(_no$data, 'NAV_TxStatus', 'Transaksjonsstatus'), _defineProperty(_no$data, 'tx_Details', 'Transaksjonsdetaljer'), _defineProperty(_no$data, 'tx_Summary', 'I perioder med høy aktivitet (som f.eks. under ICO-er), kan transaksjoner stå på vent i flere timer, og i verste fall i flere dager. Dette verktøyet har som mål å gi deg muligheten til å finne og "avbryte" / erstatte disse transaksjonene. ** Dette er ikke vanligvis noe du kan gjøre. Det bør ikke stoles på, og vil bare kunne fungere når det ligger mange transaksjoner i kø. [Vennligst les mer om dette verktøyet her.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_no$data, 'tx_notFound', 'Transaksjon ikke funnet'), _defineProperty(_no$data, 'tx_notFound_1', 'Denne transaksjonen finnes ikke i transaksjonskøen til noden du er tilkoblet.'), _defineProperty(_no$data, 'tx_notFound_2', 'Hvis du nettopp har sendt transaksjonen, vennligst vent 15 sekunder og trykk "Sjekk transaksjonsstatus"-knappen igjen. '), _defineProperty(_no$data, 'tx_notFound_3', 'Den kan fortsatt befinne seg i transaksjonskøen til en annen node, i påvente av å bli behandlet (inkludert i blokkjeden). '), _defineProperty(_no$data, 'tx_notFound_4', 'Bruk rullegardinmenyen øverst til høyre og velg en annen ETH-node. (f.eks. `ETH (Etherscan.io)` eller `ETH (Infura.io)` eller `ETH (MyEtherWallet)`), og sjekk igjen.'), _defineProperty(_no$data, 'tx_foundInPending', 'Ventende transaksjon funnet'), _defineProperty(_no$data, 'tx_foundInPending_1', 'Din transaksjon ble funnet i transaksjonskøen til noden du er tilkoblet. '), _defineProperty(_no$data, 'tx_foundInPending_2', 'Den står for øyeblikket på vent (på å bli inkludert i blokkjeden). '), _defineProperty(_no$data, 'tx_foundInPending_3', 'Det er en mulighet for at du kan "kansellere" eller erstatte denne transaksjonen. Lås opp lommeboken din nedenfor.'), _defineProperty(_no$data, 'tx_FoundOnChain', 'Transaksjon funnet'), _defineProperty(_no$data, 'tx_FoundOnChain_1', 'Transaksjonen din var vellykket og ligger i blokkkjeden.'), _defineProperty(_no$data, 'tx_FoundOnChain_2', '**Hvis du ser et rødt utropstegn `( ! )` eller `BAD INSTRUCTION` eller `OUT OF GAS` feilmelding**, så betyr dette at transaksjonen ikke var vellykket. Du kan ikke "kansellere" eller erstatte denne transaksjonen. I stedet kan du sende en ny transaksjon. Hvis du fikk en "Out of Gas"-feilmelding, bør du doble gas-grensen som du spesifiserte i utgangspunktet. '), _defineProperty(_no$data, 'tx_FoundOnChain_3', '**Hvis du ikke ser noen feil, var transaksjonen vellykket.** Dine ETH eller Tokens er der du sendte dem. Hvis du ikke ser disse ETH eller Tokens der du sendte dem, og det har gått mer enn 24 timer, vennligst [kontakt vedkommende service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send dem en *lenke* til transaksjonen din og spør dem pent om å se på situasjonen din.'), _defineProperty(_no$data, 'GEN_Help_1', 'Bruk'), _defineProperty(_no$data, 'GEN_Help_2', 'for å få tilgang til kontoen din.'), _defineProperty(_no$data, 'GEN_Help_3', 'Enheten din * er * lommeboken din.'), _defineProperty(_no$data, 'GEN_Help_4', 'Guider & FAQ'), _defineProperty(_no$data, 'GEN_Help_5', 'Hvordan opprette en lommebok'), _defineProperty(_no$data, 'GEN_Help_6', 'Komme i gang'), _defineProperty(_no$data, 'GEN_Help_7', 'Ta godt vare på det · Lag en sikkerhetskopi · Ikke del den med noen · Ikke mist det · Det kan ikke gjenopprettes hvis du mister det.'), _defineProperty(_no$data, 'GEN_Help_8', 'Lastes ikke filen ned? '), _defineProperty(_no$data, 'GEN_Help_9', 'Prøv å bruke Google Chrome '), _defineProperty(_no$data, 'GEN_Help_10', 'Høyreklikk & velg "lagre linken som". Filnavn: '), _defineProperty(_no$data, 'GEN_Help_11', 'Ikke åpne denne filen på datamaskinen din '), _defineProperty(_no$data, 'GEN_Help_12', 'Bruk den sammen med passordet du oppga til å låse opp lommeboken din via MyEtherWallet (eller Mist, Geth, Parity og andre lommebok-klienter.) '), _defineProperty(_no$data, 'GEN_Help_13', 'Hvordan sikkerhetskopiere Keystore-filen '), _defineProperty(_no$data, 'GEN_Help_14', 'Hva er disse ulike formatene? '), _defineProperty(_no$data, 'GEN_Help_15', 'Unngå tap &amp; tyveri av midlene dine.'), _defineProperty(_no$data, 'GEN_Help_16', 'Hva er disse ulike formatene? '), _defineProperty(_no$data, 'GEN_Help_17', 'Hvorfor bør jeg gjøre dette?'), _defineProperty(_no$data, 'GEN_Help_18', 'For å ha en ekstra sikkerhetskopi.'), _defineProperty(_no$data, 'GEN_Help_19', 'I tilfelle du noen gang glemmer passordet ditt.'), _defineProperty(_no$data, 'GEN_Help_20', 'Kald-lagring'), _defineProperty(_no$data, 'GET_ConfButton', 'Jeg forstår. Fortsett. '), _defineProperty(_no$data, 'GEN_Label_5', 'Lagre din `Private Nøkkel`. '), _defineProperty(_no$data, 'GEN_Unlock', 'Lås opp lommeboken for å se adressen. '), _defineProperty(_no$data, 'GAS_PRICE_Desc', 'Gas-pris er beløpet du betaler per gas-enhet. `Transaksjonsavgift = gas-pris * gas-grense` & betales til "utgraverne" for å inkludere transaksjonen din i en blokk. Høyere gas-pris = raskere transaksjon, men dyrere. Standardinnstillingen er `41 GWEI`. '), _defineProperty(_no$data, 'GAS_LIMIT_Desc', 'Gas-grense er mengden gas som sendes med transaksjonen din. `Tr.avg.` = gas-pris * gas-grense & betales til "utgraverne" for å inkludere transaksjonen din i en blokk. Å øke dette tallet vil ikke få gjennom transaksjonen din raskere. Ulike typer transaksjoner krever ulik mengde gas. F.eks. koster det `21000` å sende ETH og ~`200 000` å sende tokens. '), _defineProperty(_no$data, 'NONCE_Desc', '"Nonce" er antall transaksjoner som noensinne har blitt sendt fra en gitt adresse. Det sikrer at transaksjoner sendes i riktig rekkefølge, og ikke mer enn én gang. '), _defineProperty(_no$data, 'TXFEE_Desc', 'Transaksjonsavgiften betales til "utgraverne" for å inkludere transaksjonen din i en blokk. Det er `gas-grense` * `gas-pris`. [Du kan regne om GWEI -> ETH her](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_no$data, 'NAV_AddWallet', 'Legg til lommebok '), _defineProperty(_no$data, 'NAV_BulkGenerate', 'Opprett flere lommebøker '), _defineProperty(_no$data, 'NAV_Contact', 'Kontakt '), _defineProperty(_no$data, 'NAV_Contracts', 'Kontrakt '), _defineProperty(_no$data, 'NAV_DeployContract', 'Utplasser kontrakt '), _defineProperty(_no$data, 'NAV_ENS', 'ENS'), _defineProperty(_no$data, 'NAV_GenerateWallet_alt', 'Ny lommebok '), _defineProperty(_no$data, 'NAV_GenerateWallet', 'Opprett lommebok '), _defineProperty(_no$data, 'NAV_Help', 'Hjelp '), _defineProperty(_no$data, 'NAV_InteractContract', 'Samhandle med Kontrakt '), _defineProperty(_no$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_no$data, 'NAV_MyWallets', 'Mine lommebøker '), _defineProperty(_no$data, 'NAV_Offline', 'Send Offline '), _defineProperty(_no$data, 'NAV_SendEther', 'Send Ether & Tokens '), _defineProperty(_no$data, 'NAV_SendTokens', 'Send Tokens '), _defineProperty(_no$data, 'NAV_SignMsg', 'Signér Melding '), _defineProperty(_no$data, 'NAV_Swap', 'Veksling '), _defineProperty(_no$data, 'NAV_ViewWallet', 'Vis lommebok-info '), _defineProperty(_no$data, 'NAV_YourWallets', 'Dine lommebøker '), _defineProperty(_no$data, 'x_Access', 'Åpne '), _defineProperty(_no$data, 'x_AddessDesc', 'Din `adresse` kalles også for `kontonummer` eller `offentlig nøkkel`. Det er denne du sender til folk så de kan sende deg Ether eller Tokens. Find det fargerike adresse-ikonet. Forsikre deg om at det er likt med ikonet på papir-lommeboken din og ellers hver gang du oppgir adressen din. '), _defineProperty(_no$data, 'x_Address', 'Din adresse '), _defineProperty(_no$data, 'x_Cancel', 'x_Annuler '), _defineProperty(_no$data, 'x_CSV', 'CSV-fil (ukryptert) '), _defineProperty(_no$data, 'x_Download', 'Last ned '), _defineProperty(_no$data, 'x_Json', 'JSON-fil (ukryptert) '), _defineProperty(_no$data, 'x_JsonDesc', 'Dette er det ukrypterte JSON-formatet av din private nøkkel. Dette betyr at du ikke trenger noe passord, men også at den som finner din JSON kan få tilgang til lommeboken din og etherne dine uten passord. '), _defineProperty(_no$data, 'x_Keystore', 'Keystore-fil (UTC / JSON · Anbefalt · Kryptert) '), _defineProperty(_no$data, 'x_Keystore2', 'Keystore-fil (UTC / JSON) '), _defineProperty(_no$data, 'x_KeystoreDesc', 'Denne Keystore-filen samsvarer med formatet som brukes av Mist, så du enkelt kan importere den i fremtiden. Det er den anbefalte filen å laste ned og sikkerhetskopiere. '), _defineProperty(_no$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_no$data, 'x_Mnemonic', 'Mnemonisk Frase '), _defineProperty(_no$data, 'x_ParityPhrase', 'Parity-frase '), _defineProperty(_no$data, 'x_Password', 'Passord '), _defineProperty(_no$data, 'x_Print', 'Skriv ut papirlommebok '), _defineProperty(_no$data, 'x_PrintDesc', 'Profftips: Klikk "skriv ut" og lagre som PDF, selv om du ikke har noen skriver! '), _defineProperty(_no$data, 'x_PrintShort', 'Skriv ut '), _defineProperty(_no$data, 'x_PrivKey', 'Privat nøkkel (ukryptert) '), _defineProperty(_no$data, 'x_PrivKey2', 'Privat nøkkel '), _defineProperty(_no$data, 'x_PrivKeyDesc', 'Dette er den ukrypterte tekstversjonen av den private nøkkelen din, noe som betyr at det ikke er nødvendig med noe passord. Hvis noen skulle få tak i den ukrypterte private nøkkelen din, ville de få tilgang til lommeboken din uten å bruke passord. Derfor er krypterte nøkler vanligvis å anbefale. '), _defineProperty(_no$data, 'x_Save', 'x_Lagre '), _defineProperty(_no$data, 'x_TXT', 'TXT-fil (ukryptert) '), _defineProperty(_no$data, 'x_Wallet', 'Lommebok '), _defineProperty(_no$data, 'MEW_Warning_1', 'Sjekk alltid nettsideadressen før du bruker eller oppretter en lommebok. Pass opp for "phishing"-nettsider! '), _defineProperty(_no$data, 'CX_Warning_1', 'Sørg for at du har **eksterne sikkerhetskopier** av alle lommebøker som du lagrer her. Mye kan hende som vil kunne medføre at du mister informasjonen i denne Chrome-utvidelsen, inkludert avinstallasjon og reinstallasjon av utvidelsen. Denne utvidelsen gir deg enkel tilgang til lommebøkene dine, men er **ikke** en måte å sikkerhetskopiere dem på. '), _defineProperty(_no$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet '), _defineProperty(_no$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension '), _defineProperty(_no$data, 'FOOTER_1', 'Et åpen-kildekode-, javascript-, klient-side-verktøy for å opprette Ethereum-lommebøker & sende transaksjoner. '), _defineProperty(_no$data, 'FOOTER_1b', 'Skapt av '), _defineProperty(_no$data, 'FOOTER_2', 'Donasjoner mottas med takk: '), _defineProperty(_no$data, 'FOOTER_3', 'Klient-side lommebok-oppretting av '), _defineProperty(_no$data, 'FOOTER_4', 'Ansvarsfraskrivelse '), _defineProperty(_no$data, 'sidebar_AccountInfo', 'Kontoinformasjon '), _defineProperty(_no$data, 'sidebar_AccountAddr', 'Kontoadresse '), _defineProperty(_no$data, 'sidebar_AccountBal', 'Saldo på konto '), _defineProperty(_no$data, 'sidebar_TokenBal', 'Token-saldo '), _defineProperty(_no$data, 'sidebar_Equiv', 'Tilsvarende verdier '), _defineProperty(_no$data, 'sidebar_TransHistory', 'Transaksjonshistorikk '), _defineProperty(_no$data, 'sidebar_donation', 'MyEtherWallet er en gratis åpen-kildekode-service som er dedikert til å ivareta ditt personvern og din sikkerhet. Jo flere donasjoner vi får, jo mer tid kan vi bruke til å lage nye funksjoner, lytte til tilbakemeldinger, og gi deg det du ønsker. Vi er bare to personer som prøver å forandre verden. Vil du hjelpe oss? '), _defineProperty(_no$data, 'sidebar_donate', 'Doner '), _defineProperty(_no$data, 'sidebar_thanks', 'TAKK!!! '), _defineProperty(_no$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_no$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_no$data, 'decrypt_Access', 'Hvordan ønsker du å få tilgang til lommeboken din? '), _defineProperty(_no$data, 'decrypt_Title', 'Velg formatet på din private nøkkel: '), _defineProperty(_no$data, 'decrypt_Select', 'Velg en lommebok: '), _defineProperty(_no$data, 'ADD_Label_1', 'Hva ønsker du å gjøre? '), _defineProperty(_no$data, 'ADD_Radio_1', 'Opprett ny lommebok '), _defineProperty(_no$data, 'ADD_Radio_2', 'Velg lommebok-filen din (Keystore / JSON) '), _defineProperty(_no$data, 'ADD_Radio_2_alt', 'Velg lommebok-fil '), _defineProperty(_no$data, 'ADD_Radio_2_short', 'VELG LOMMEBOK-FIL... '), _defineProperty(_no$data, 'ADD_Radio_3', 'Lim/skriv inn din private nøkkel '), _defineProperty(_no$data, 'ADD_Radio_4', 'Legg til en konto for overvåkning '), _defineProperty(_no$data, 'ADD_Radio_5_Path', 'Velg "HD derivation" variant '), _defineProperty(_no$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_no$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_no$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_no$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_no$data, 'ADD_Radio_5_PathCustom', '(tilpasset) '), _defineProperty(_no$data, 'ADD_Radio_5', 'Lim inn/tast din mnemoniske frase '), _defineProperty(_no$data, 'ADD_Label_2', 'Lag et kallenavn: '), _defineProperty(_no$data, 'ADD_Label_3', 'Filen din er kryptert. Vennligst oppgi passordet '), _defineProperty(_no$data, 'ADD_Label_4', 'Legg til en konto for overvåkning '), _defineProperty(_no$data, 'ADD_Warning_1', 'Du kan legge til hvilken som helst konto som du vil overvåke på lommebok-siden uten å laste opp en privat nøkkel. Dette betyr ** ikke ** at du har tilgang til denne lommeboken, eller at du kan overføre ether fra den. '), _defineProperty(_no$data, 'ADD_Label_5', 'Oppgi adressen '), _defineProperty(_no$data, 'ADD_Label_6', 'Lås opp lommeboen din '), _defineProperty(_no$data, 'ADD_Label_6_short', 'Lås opp '), _defineProperty(_no$data, 'ADD_Label_7', 'Legg til konto '), _defineProperty(_no$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_no$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_no$data, 'ADD_Ledger_1', 'Koble til din Ledger Wallet '), _defineProperty(_no$data, 'ADD_Ledger_2', 'Åpne Ethereum-applikasjonen (eller kontraktsapplikasjonen) '), _defineProperty(_no$data, 'ADD_Ledger_2_Exp', 'Åpne Expanse-applikasjonen (eller kontraktsapplikasjonen) '), _defineProperty(_no$data, 'ADD_Ledger_2_Ubq', 'Åpne Ubiq-applikasjonen (eller kontraktsapplikasjonen) '), _defineProperty(_no$data, 'ADD_Ledger_3', 'Sjekk at nettleserstøtte er aktivert i innstillingene. '), _defineProperty(_no$data, 'ADD_Ledger_4', 'Hvis du ikke finner noen nettleserstøtte i innstillingene, sjekk at du har [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_no$data, 'ADD_Ledger_0a', 'Åpne MyEtherWallet på nytt på en sikker (SSL) forbindelse. '), _defineProperty(_no$data, 'ADD_Ledger_0b', 'Åpne MyEtherWallet på nytt med [Chrome](https://www.google.com/chrome/browser/desktop/) eller [Opera](https://www.opera.com/) '), _defineProperty(_no$data, 'ADD_Ledger_scan', 'Koble til Ledger Wallet '), _defineProperty(_no$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_no$data, 'x_Trezor', 'TREZOR '), _defineProperty(_no$data, 'ADD_Trezor_scan', 'Koble til TREZOR '), _defineProperty(_no$data, 'ADD_Trezor_select', 'Dette er en TREZOR seed '), _defineProperty(_no$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_no$data, 'ADD_DigitalBitbox_0a', 'Åpne MyEtherWallet på nytt på en sikker (SSL) forbindelse. '), _defineProperty(_no$data, 'ADD_DigitalBitbox_0b', 'Åpne MyEtherWallet på nytt med [Chrome](https://www.google.com/chrome/browser/desktop/) eller [Opera](https://www.opera.com/) '), _defineProperty(_no$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_no$data, 'GEN_desc', 'Hvis du vil opprette flere lommebøker, kan du gjøre det her '), _defineProperty(_no$data, 'GEN_Label_1', 'Oppgi et sterkt passord (minst 9 tegn) '), _defineProperty(_no$data, 'GEN_Placeholder_1', 'Glem IKKE å ta vare på dette! '), _defineProperty(_no$data, 'GEN_SuccessMsg', 'Suksess! Lommeboken din har blitt opprettet. '), _defineProperty(_no$data, 'GEN_Label_2', 'Lagre din Keystore-fil og/eller private nøkkel. Ikke glem passordet ditt ovenfor. '), _defineProperty(_no$data, 'GEN_Label_3', 'Lagre adressen din. '), _defineProperty(_no$data, 'GEN_Label_4', 'Valgfritt: Skriv ut din papir-lommebok, eller lagre en QR-kode-versjon.'), _defineProperty(_no$data, 'BULK_Label_1', 'Antall lommebøker som skal opprettes '), _defineProperty(_no$data, 'BULK_Label_2', 'Opprett lommebøker '), _defineProperty(_no$data, 'BULK_SuccessMsg', 'Suksess! Lommebøkene dine har blitt opprettet. '), _defineProperty(_no$data, 'SEND_addr', 'Til-adresse '), _defineProperty(_no$data, 'SEND_amount', 'Beløp som skal sendes '), _defineProperty(_no$data, 'SEND_amount_short', 'Beløp '), _defineProperty(_no$data, 'SEND_custom', 'Tilpasning '), _defineProperty(_no$data, 'SEND_gas', 'Gas '), _defineProperty(_no$data, 'SEND_TransferTotal', 'Overfør total tilgjengelig saldo '), _defineProperty(_no$data, 'SEND_generate', 'Generer transaksjon '), _defineProperty(_no$data, 'SEND_raw', 'Rå-transaksjon '), _defineProperty(_no$data, 'SEND_signed', 'Signert transaksjon '), _defineProperty(_no$data, 'SEND_trans', 'Send transaksjon '), _defineProperty(_no$data, 'SEND_custom', 'Legg til Token '), _defineProperty(_no$data, 'SENDModal_Title', 'Advarsel! '), _defineProperty(_no$data, 'SENDModal_Content_1', 'Du er i ferd med å sende '), _defineProperty(_no$data, 'SENDModal_Content_2', 'til adressen '), _defineProperty(_no$data, 'SENDModal_Content_3', 'Er du sikker på at du ønsker å gjøre dette? '), _defineProperty(_no$data, 'SENDModal_Content_4', 'NB: Hvis det oppstår en feil, må du sannsynligvis legge til ether til kontoen din for å dekke "gas"-kostnaden for å sende ether/token. "Gas" betales i ether. '), _defineProperty(_no$data, 'SENDModal_No', 'Nei, få meg ut herfra! '), _defineProperty(_no$data, 'SENDModal_Yes', 'Ja, jeg er sikker! Gjennomfør transaksjonen. '), _defineProperty(_no$data, 'TOKEN_Addr', 'Token Kontraktadresse-Adresse '), _defineProperty(_no$data, 'TOKEN_Symbol', 'Token-symbol '), _defineProperty(_no$data, 'TOKEN_Dec', 'Desimaler '), _defineProperty(_no$data, 'TOKEN_show', 'Vis Alle Tokens '), _defineProperty(_no$data, 'TOKEN_hide', 'Skjul Tokens '), _defineProperty(_no$data, 'TRANS_desc', 'Hvis du ønsker å sende token, vennligst bruk "Send Token"-siden i stedet. '), _defineProperty(_no$data, 'TRANS_warning', 'Hvis du bruker "Kun ETH"- eller "Kun ETC"-funksjonene, sender du via en kontrakt. Noen tjenester har problemer med å akseptere disse transaksjonene. Les mer. '), _defineProperty(_no$data, 'TRANS_advanced', '+Avansert: Legg til data '), _defineProperty(_no$data, 'TRANS_data', 'Data '), _defineProperty(_no$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_no$data, 'TRANS_sendInfo', 'En standard transaksjon som bruker 21000 gas vil koste 0,000441 ETH. Vi bruker en litt-over-minimum gas-pris på 0,000000021 ETH for å sikre at transaksjonen blir raskt behandlet. Vi tar ikke noe transaksjonsgebyr. '), _defineProperty(_no$data, 'TRANSModal_Title', '"Kun ETH"- og "Kun ETC"-transaksjoner '), _defineProperty(_no$data, 'TRANSModal_Content_0', 'En notis om forskjellige transaksjoner og tjenester: '), _defineProperty(_no$data, 'TRANSModal_Content_1', '**ETH (Standardtransaksjon): ** Dette Oppretter en standardtransaksjon direkte fra en adresse ti en annen. Den har standard gas på 21000. Det er sannsynlig at ETH som sendes med denne metoden også vil bli sendt som ETC på ETC-kjeden (hvis kontoen inneholder både ETH og ETC). Dette er anbefalt metode hvis kontoen kun inneholder ETH. '), _defineProperty(_no$data, 'TRANSModal_Content_2', '**Kun ETH: ** Dette sender via [Timon Rapp\'s replay-beskyttelseskontrakt (som anbefalt av VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) slik at du kun sender på **ETH**-kjeden. '), _defineProperty(_no$data, 'TRANSModal_Content_3', '**Kun ETC: ** Dette sender via [Timon Rapp\'s replay-beskyttelseskontrakt (som anbefalt av VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) slik at du kun sender på **ETC**-kjeden. '), _defineProperty(_no$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Send kun via Standard transaksjon. Hvis du sender via "Kun"-kontraktene, vil du måtte ta kontakt med deres kundestøttepersonell for å manuelt legge til saldoen din eller få en tilbakebetaling. [Du kan også prøve Shapeshift sitt "splitte"-verktøy.](https://split.shapeshift.io/) '), _defineProperty(_no$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Ingen kjente problemer. Bruk det som passer. '), _defineProperty(_no$data, 'TRANSModal_Yes', 'Flott, jeg skjønner det nå. '), _defineProperty(_no$data, 'TRANSModal_No', 'Trøste og bære, nå er jeg bare enda mer forvirret. Hjelp meg. '), _defineProperty(_no$data, 'OFFLINE_Title', 'Generer & send offline transaksjon '), _defineProperty(_no$data, 'OFFLINE_Desc', 'Generering av offline-transaksjoner kan utføres i tre steg. Du utfører steg 1 og 3 på en internettilknyttet datamaskin, og steg 2 på en offline/frakoblet datamaskon. Dette sikrer at dine private nøkler ikke kommer i kontakt med en internettilknyttet enhet. '), _defineProperty(_no$data, 'OFFLLINE_Step1_Title', 'Steg 1: Generer informasjon (internettilknyttet datamaskin) '), _defineProperty(_no$data, 'OFFLINE_Step1_Button', 'Generer informasjon '), _defineProperty(_no$data, 'OFFLINE_Step1_Label_1', 'Fra-adresse '), _defineProperty(_no$data, 'OFFLINE_Step1_Label_2', 'NB: Dette er FRA-adressen, ikke TIL-adressen. "Nonce" genereres fra den opprinnelige kontoen. Hvis du bruker en frakoblet datamaskin, vil dette være adressen til "kald-lager"-kontoen (dvs. kontoen som lagres frakoblet internett). '), _defineProperty(_no$data, 'OFFLINE_Step2_Title', 'Steg 2: Generer transaksjon (frakoblet datamaskin) '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_1', 'Til-adresse '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_2', 'Verdi / Beløp å sende '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_3', 'Gas-pris '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_3b', 'Dette kom fram i steg 1 på den internettilknyttede maskinen. '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_4', 'Gas-grense '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_4b', '21000 er standard gas-grense. Når du sender kontrakter eller ekstra data, kan det hende at grensen må settes høyere. Eventuelt ubrukt gas blir returnert til deg. '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_5b', 'Dette kom fram i steg 1 på den internettilknyttede maskinen. '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_6', 'Data '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_6b', 'Dette er valgfritt. Data brukes ofte når du sender transaksjoner til kontrakter. '), _defineProperty(_no$data, 'OFFLINE_Step2_Label_7', 'Skriv inn / Velg din private nøkkel / JSON. '), _defineProperty(_no$data, 'OFFLINE_Step3_Title', 'Steg 3: Send / Publiser transaksjon (internettilknyttet datamaskin) '), _defineProperty(_no$data, 'OFFLINE_Step3_Label_1', 'Overfør (f.eks. via USB-minnepinne) den signerte transaksjonen fra steg 2 og lim den inn her. Trykk så "SEND TRANSAKSJON"-knappen. '), _defineProperty(_no$data, 'MSG_message', 'Melding '), _defineProperty(_no$data, 'MSG_date', 'Dato '), _defineProperty(_no$data, 'MSG_signature', 'Signatur '), _defineProperty(_no$data, 'MSG_verify', 'Verifiser Melding '), _defineProperty(_no$data, 'MSG_info1', 'Inkluder dagens dato slik at signaturen ikke kan brukes på nytt på en annen dato. '), _defineProperty(_no$data, 'MSG_info2', 'Inkluder brukernavnet ditt og hvor du benytter dette navnet slik at ingen andre kan benytte det. '), _defineProperty(_no$data, 'MSG_info3', 'Inkluder en spesifikk grunn for meldingen så den ikke kan brukes på nytt for et annet formål. '), _defineProperty(_no$data, 'MNEM_1', 'Vennligst velg adressen du vil jobbe med. '), _defineProperty(_no$data, 'MNEM_2', 'Din "HD-mnemoniske frase" kan gi deg tilgang til flere lommebøker / adresser. Vennligst velg den adressen du vil jobbe med denne gangen. '), _defineProperty(_no$data, 'MNEM_more', 'Flere Adresser '), _defineProperty(_no$data, 'MNEM_prev', 'Forrige Adresse '), _defineProperty(_no$data, 'NODE_Title', 'Sett opp en alternativ node'), _defineProperty(_no$data, 'NODE_Subtitle', 'For å koble til en lokal node...'), _defineProperty(_no$data, 'NODE_Warning', 'Noden din må være HTTPS for å muliggjøre tilkobling via MyEtherWallet.com. Du kan [laste ned MyEtherWallet-repoet & kjøre det lokalt](https://github.com/kvhnuke/etherwallet/releases/latest) for å koble til en hvilken som helst node. Eller du kan skaffe deg et gratis SSL-sertifikat via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_no$data, 'NODE_Name', 'Nodens navn'), _defineProperty(_no$data, 'NODE_Port', 'Nodens port'), _defineProperty(_no$data, 'NODE_CTA', 'Lagre & bruk alternativ node'), _defineProperty(_no$data, 'CONTRACT_Title', 'Kontraktadresse '), _defineProperty(_no$data, 'CONTRACT_Title_2', 'Velg eksisterende kontrakt '), _defineProperty(_no$data, 'CONTRACT_Json', 'ABI / JSON grensesnitt '), _defineProperty(_no$data, 'CONTRACT_Interact_Title', 'Les fra / Skriv til kontrakt '), _defineProperty(_no$data, 'CONTRACT_Interact_CTA', 'Velg en funksjon '), _defineProperty(_no$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_no$data, 'CONTRACT_Read', 'LES '), _defineProperty(_no$data, 'CONTRACT_Write', 'SKRIV '), _defineProperty(_no$data, 'DEP_generate', 'Generer Bytecode '), _defineProperty(_no$data, 'DEP_generated', 'Generert Bytecode '), _defineProperty(_no$data, 'DEP_signtx', 'Signer transaksjon '), _defineProperty(_no$data, 'DEP_interface', 'Generer grensesnitt '), _defineProperty(_no$data, 'SWAP_rates', "Aktuelle vekslingskurser "), _defineProperty(_no$data, 'SWAP_init_1', "Jeg vil veksle mine "), _defineProperty(_no$data, 'SWAP_init_2', " med "), _defineProperty(_no$data, 'SWAP_init_CTA', "Gjennomfør! "), _defineProperty(_no$data, 'SWAP_information', "Din informasjon "), _defineProperty(_no$data, 'SWAP_send_amt', "Beløp som sendes "), _defineProperty(_no$data, 'SWAP_rec_amt', "Beløp som mottas "), _defineProperty(_no$data, 'SWAP_your_rate', "Din vekslingskurs "), _defineProperty(_no$data, 'SWAP_rec_add', "Din mottakeradresse "), _defineProperty(_no$data, 'SWAP_start_CTA', "Start byttet "), _defineProperty(_no$data, 'SWAP_ref_num', "Ditt referansenummer "), _defineProperty(_no$data, 'SWAP_time', "Gjenstående tid til å sende "), _defineProperty(_no$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_no$data, 'SWAP_progress_1', "Ordre initiert "), _defineProperty(_no$data, 'SWAP_progress_2', "Venter på dine "), _defineProperty(_no$data, 'SWAP_progress_3', "Mottatt! "), _defineProperty(_no$data, 'SWAP_progress_4', "Sender dine {{orderResult.output.currency}} "), _defineProperty(_no$data, 'SWAP_progress_5', "Ordre fullført "), _defineProperty(_no$data, 'SWAP_order_CTA', "Vennligst send "), _defineProperty(_no$data, 'SWAP_unlock', "Lås opp din lommebok for å sende ETH eller Tokens direkte fra denne siden. "), _defineProperty(_no$data, 'MYWAL_Nick', 'Lommebok-kallenavn '), _defineProperty(_no$data, 'MYWAL_Address', 'Lommebok-adresse '), _defineProperty(_no$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_no$data, 'MYWAL_Edit', 'Rediger '), _defineProperty(_no$data, 'MYWAL_View', 'Se på '), _defineProperty(_no$data, 'MYWAL_Remove', 'Fjern '), _defineProperty(_no$data, 'MYWAL_RemoveWal', 'Fjern lommebok: '), _defineProperty(_no$data, 'MYWAL_WatchOnly', 'Dine "bare-se"-kontoer '), _defineProperty(_no$data, 'MYWAL_Viewing', 'Viser lommebok '), _defineProperty(_no$data, 'MYWAL_Hide', 'Skjul lommebok-info '), _defineProperty(_no$data, 'MYWAL_Edit_2', 'Rediger lommebok '), _defineProperty(_no$data, 'MYWAL_Name', 'Lommeboknavn '), _defineProperty(_no$data, 'MYWAL_Content_1', 'Advarsel! Du er i ferd med å fjerne lommeboken din '), _defineProperty(_no$data, 'MYWAL_Content_2', 'Vær sikker på at du har **lagret den private nøkkelen/JSON-filen og passordet** tilknyttet denne lommeboken før du fjerner den. '), _defineProperty(_no$data, 'MYWAL_Content_3', 'Hvis du ønsker å bruke denne lommeboken med din MyEtherWallet Chrome-utvidelse i fremtiden, må du manuelt legge den til igjen ved å bruke den private nøkkelen/JSON og passord. '), _defineProperty(_no$data, 'VIEWWALLET_Subtitle', 'Dette gir deg muligheten til å laste ned ulike versjoner av private nøkler og skrive ut papirlommeboken din på nytt. Du vil kanskje gjøre dette for å [importere kontoen din til Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Hvis du bare ønsker å sjekke saldoen din, anbefaler vi at du bruker en "blockchain explorer" som f.eks. [etherscan.io](https://etherscan.io/). '), _defineProperty(_no$data, 'VIEWWALLET_Subtitle_Short', 'Dette gir deg muligheten til å laste ned ulike versjoner av private nøkler og skrive ut papirlommeboken din på nytt. '), _defineProperty(_no$data, 'VIEWWALLET_SuccessMsg', 'Suksess! Her er detaljene om din lommebok. '), _defineProperty(_no$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_no$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_no$data, 'CX_error_1', 'Du har ennå ikke lagret noen lommebok. Klikk ["Legg til lommebok"](/cx-wallet.html#add-wallet) for å legge til en! '), _defineProperty(_no$data, 'CX_quicksend', 'Send '), _defineProperty(_no$data, 'ERROR_0', 'Vennligst oppgi et gyldig beløp. '), _defineProperty(_no$data, 'ERROR_1', 'Passordet ditt må inneholde minst 9 tegn. Vennligst sørg for at det er et sterkt passord. '), _defineProperty(_no$data, 'ERROR_2', 'Beklager! Vi kjenner ikke igjen denne typen lommebok-fil. '), _defineProperty(_no$data, 'ERROR_3', 'Dette er ikke en gyldig lommebok-fil. '), _defineProperty(_no$data, 'ERROR_4', 'Denne enheten eksisterer ikke, vennligst benytt en av de følgende enhetene '), _defineProperty(_no$data, 'ERROR_5', 'Ugyldig adresse. '), _defineProperty(_no$data, 'ERROR_6', 'Ugyldig passord. '), _defineProperty(_no$data, 'ERROR_7', 'Ugyldig beløp. (Må være heltall. Prøv 0-18.) '), _defineProperty(_no$data, 'ERROR_8', 'Ugyldig gas-grense. (Må være heltall. Prøv 21000-4000000.) '), _defineProperty(_no$data, 'ERROR_9', 'Ugyldig dataverdi. (Må være hex.) '), _defineProperty(_no$data, 'ERROR_10', 'Ugyldig gas-mengde. (Må være heltall. Prøv 20 GWEI / 20000000000 WEI.) '), _defineProperty(_no$data, 'ERROR_11', 'Ugyldig nonce. (Må være heltall.) '), _defineProperty(_no$data, 'ERROR_12', 'Ugyldig signert transaksjon. '), _defineProperty(_no$data, 'ERROR_13', 'En lommebok med dette kallenavnet eksisterer allerede. '), _defineProperty(_no$data, 'ERROR_14', 'Lommebok ikke funnet. '), _defineProperty(_no$data, 'ERROR_15', 'Det ser ikke ut til at et forslag med denne ID-en eksisterer ennå, eller det er en feil ved innlesning av dette forslaget. '), _defineProperty(_no$data, 'ERROR_16', 'En lommebok med denne adressen er allerede lagret. Vennligst sjekk lommebok-siden din. '), _defineProperty(_no$data, 'ERROR_17', 'Utilstrekkelige midler. Kontoen du prøver å sende transaksjon fra har ikke nok midler. Du trenger minst 0,01 ether på kontoen din for å dekke gas-kostnaden. Vennligst legg til litt ether og prøv igjen. '), _defineProperty(_no$data, 'ERROR_18', 'All gas vil bli brukt på denne transaksjonen. Dette betyr at du allerede har stemt på dette forslaget, eller at debatt-perioden er over. '), _defineProperty(_no$data, 'ERROR_19', 'Ugyldig symbol '), _defineProperty(_no$data, 'ERROR_20', 'er ikke en gyldig ERC-20-token. Hvis andre tokens holder på å lastes, vennligst fjern denne token og prøv igjen. '), _defineProperty(_no$data, 'ERROR_21', 'Kunne ikke estimere gas. Det er enten ikke nok midler på kontoen, eller så gir den mottakende kontraktadressen en feilmelding. Prøv å justere gas-mengden manuelt, og fortsett. Feilmeldingen du får når du sender kan være mer informativ. '), _defineProperty(_no$data, 'ERROR_22', 'Vennligst oppgi gyldig nodenavn '), _defineProperty(_no$data, 'ERROR_23', 'Oppgi gyldig URL (internett-adresse), hvis du er på https må URL-en starte med https '), _defineProperty(_no$data, 'ERROR_24', 'Vennligst oppgi gyldig port '), _defineProperty(_no$data, 'ERROR_25', 'Vennligst oppgi gyldig kjede-ID '), _defineProperty(_no$data, 'ERROR_26', 'Vennligst oppgi gyldig ABI '), _defineProperty(_no$data, 'ERROR_27', 'Minimumsbeløp 0.01 '), _defineProperty(_no$data, 'ERROR_28', '**Du trenger din Keystore-fil & passord eller din private nøkkel** for å få tilgang til denne lommeboken i framtiden. Vennligst lagre og sikkerhetskopier den eksternt! Det finnes ingen måte å gjenopprette en lommebok på hvis du ikke lagrer den. Les [hjelpesiden](https://www.myetherwallet.com/#help) for ytterligere instruksjoner (foreløpig kun på engelsk). '), _defineProperty(_no$data, 'ERROR_29', 'Vennligst oppgi gyldig brukernavn og passord '), _defineProperty(_no$data, 'ERROR_30', 'Vennligst oppgi et gyldig ENS-navn '), _defineProperty(_no$data, 'ERROR_31', 'Ugyldig hemmelig frase '), _defineProperty(_no$data, 'ERROR_32', 'Kunne ikke bytte node eller koble til noden du valgte. Last inn siden på nytt, prøv en annen node (øverste høyre hjørnet), sjekk brannmur-innstillingene. Hvis du bruker din egen node, sjekk konfigurasjonen.'), _defineProperty(_no$data, 'ERROR_33', 'Lommeboken du har låst opp stemmer ikke overens med eierens adresse. '), _defineProperty(_no$data, 'ERROR_34', 'Navnet du prøver å avsløre er ikke likt navnet du har tastet inn. '), _defineProperty(_no$data, 'ERROR_35', 'Input-adressen har ingen sjekk-sum. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_no$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_no$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_no$data, 'SUCCESS_1', 'Gyldig adresse '), _defineProperty(_no$data, 'SUCCESS_2', 'Dekrypteringen av lommeboken var vellykket '), _defineProperty(_no$data, 'SUCCESS_3', 'Transaksjonen ble kringkastet til blokkjeden. Klikk for å se transaksjonen din og verifisere at den ble inkludert (mined), og at den ikke ga noen tom-for-gas- eller kontrakt-utførelsesfeil. TX Hash: '), _defineProperty(_no$data, 'SUCCESS_4', 'Lommeboken din ble lagt til '), _defineProperty(_no$data, 'SUCCESS_5', 'Valgt fil '), _defineProperty(_no$data, 'SUCCESS_6', 'Tilkobling ble opprettet '), _defineProperty(_no$data, 'SUCCESS_7', 'Meldingssignatur bekreftet'), _defineProperty(_no$data, 'WARN_Send_Link', 'Du ankom via en lenke hvor adresse, verdi, gas, datafelt og/eller transaksjonstype (sendingsmodus) var ferdigutfylt. Du kan endre denne informasjonen før du sender. Lås opp lommeboken din for å komme i gang. '), _defineProperty(_no$data, 'GETH_InvalidSender', 'Feil på avsender '), _defineProperty(_no$data, 'GETH_Nonce', 'For liten Nonce '), _defineProperty(_no$data, 'GETH_Cheap', 'Gas-pris for lav til å kunne aksepteres '), _defineProperty(_no$data, 'GETH_Balance', 'Utilstrekkelig saldo '), _defineProperty(_no$data, 'GETH_NonExistentAccount', 'Kontoen eksisterer ikke eller saldoen er for lav '), _defineProperty(_no$data, 'GETH_InsufficientFunds', 'Utilstrekkelig med midler for gas * pris + verdi '), _defineProperty(_no$data, 'GETH_IntrinsicGas', 'Gas-egenverdi for lav '), _defineProperty(_no$data, 'GETH_GasLimit', 'Overskrider blokkens gas-grense '), _defineProperty(_no$data, 'GETH_NegativeValue', 'Negativ verdi '), _defineProperty(_no$data, 'PARITY_AlreadyImported', "En transaksjon med samme hash har allerede blitt importert."), _defineProperty(_no$data, 'PARITY_Old', "Transaksjonens nonce er for lav. Prøv å øke nonce gradvis (+1)."), _defineProperty(_no$data, 'PARITY_TooCheapToReplace', "Transaksjonsavgiften er for lav. Det er en annen transaksjon med samme nonce i køen. Prøv å øke avgiften eller øke nonce (+1)."), _defineProperty(_no$data, 'PARITY_LimitReached', "Det er for mange transaksjoner i køen. Transaksjonen din ble derfor droppet. Prøv å øke avgiften."), _defineProperty(_no$data, 'PARITY_InsufficientGasPrice', "Transaksjonsavgiften er for lav. Den tilfredsstiller ikke minimumsavgiften til noden din. (minimum: {}, fått: {}). Prøv å øke avgiften."), _defineProperty(_no$data, 'PARITY_InsufficientBalance', "Utilstrekkelige midler. Kontoen du prøver å sende transaksjon fra har ikke nok midler. Påkrevd {} og fått: {}."), _defineProperty(_no$data, 'PARITY_GasLimitExceeded', "Transaksjonskostnaden overskrider nåværende gas-grense. Grense: {}, fått: {}. Prøv å redusere tilført gas."), _defineProperty(_no$data, 'PARITY_InvalidGasLimit', "Tilført mengde gas er over grensen."), _defineProperty(_no$data, 'translate_version', '0.4 '), _defineProperty(_no$data, 'Translator_Desc', 'Takk til oversetterne våre '), _defineProperty(_no$data, 'TranslatorName_1', '[mrstormlars](https://www.myetherwallet.com/?gaslimit=21000&to=mrstormlars.eth&value=1.0#send-transaction) '), _defineProperty(_no$data, 'TranslatorAddr_1', ''), _defineProperty(_no$data, 'TranslatorName_2', ''), _defineProperty(_no$data, 'TranslatorAddr_2', ''), _defineProperty(_no$data, 'TranslatorName_3', ''), _defineProperty(_no$data, 'TranslatorAddr_3', ''), _defineProperty(_no$data, 'TranslatorName_4', ''), _defineProperty(_no$data, 'TranslatorAddr_4', ''), _defineProperty(_no$data, 'TranslatorName_5', ''), _defineProperty(_no$data, 'TranslatorAddr_5', ''), _defineProperty(_no$data, 'HELP_Warning', 'Hvis du opprettet en lommebok -eller- lastet ned repoet før **31. desember 2015**, vennligst sjekk lommebøkene dine &amp; last ned en ny versjon av repoet. Klikk for detaljer. '), _defineProperty(_no$data, 'HELP_Desc', 'Ser du noe som mangler? Har du flere spørsmål? [Ta kontakt med oss](mailto:support@myetherwallet.com), så vil vi ikke bare besvare spørsmålet ditt, men vi vil også oppdatere denne siden så den blir mer nyttig i framtiden! '), _defineProperty(_no$data, 'HELP_Remind_Title', 'Noen påminnelser '), _defineProperty(_no$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, og noen av de underliggende Javascript-bibliotekene vi benytter er under aktiv utvikling.** Selv om vi har testet grundig, og titusenvis av lommebøker har blitt opprettet uten feil av folk over hele kloden, så er det alltid en liten mulighet for at noe uventet kan skje som kan medføre at dine ETH kan tapes. Vennligst ikke invester mer enn du er villig til å tape, and vær så snill å være forsiktig. Hvis noe skulle skje, er vi lei oss for det, men **vi er ikke ansvarlige for eventuelt tapte etere**. '), _defineProperty(_no$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX er ikke "web wallets" (internettlommebøker). Du oppretter ikke en konto eller gir oss dine ethere for oppbevaring hos oss. Alle data forblir på din PC / i din nettleser. Vi gjør det enkelt for deg å opprette, lagre og få tilgang til din informasjon og samhogle med blokkjeden. '), _defineProperty(_no$data, 'HELP_Remind_Desc_3', 'Hvis du ikke lagrer din private nøkkel & passord, finnes det ingen måte å gjenopprette din lommebok på, eller midlene den inneholder. Sikkerhetskopier dem på flere fysiske lokasjoner &ndash; ikke bare på datamaskinen din! '), _defineProperty(_no$data, 'HELP_0_Title', '0) Jeg er nybegynner. Hva skal jeg gjøre? '), _defineProperty(_no$data, 'HELP_0_Desc_1', 'MyEtherWallet gir deg muligheten til å opprette nye lommebøker slik at du kan lagre etherne dine selv, i stedet for på en børs (hvor du kan kjøpe ether). Denne prosessen skjer helt og holdent på din datamaskin, ikke på våre servere. Derfor, når du oppretter en ny lommebok, **er du ansvarlig for å sikkerhetskopiere den på en forsvarlig måte**. '), _defineProperty(_no$data, 'HELP_0_Desc_2', 'Opprett en ny lommebok. '), _defineProperty(_no$data, 'HELP_0_Desc_3', 'Sikkerhetskopier lommebok. '), _defineProperty(_no$data, 'HELP_0_Desc_4', 'Verifiser at du har tilgang til denne nye lommeboken (f.eks. ved å overføre et ørlite beløp til og fra den nye lommeboken), og at all nødvendig informasjon er lagret og korrekt. '), _defineProperty(_no$data, 'HELP_0_Desc_5', 'Overfør ether til den nye lommeboken. '), _defineProperty(_no$data, 'HELP_1_Title', '1) Hvordan oppretter jeg en ny lommebok? '), _defineProperty(_no$data, 'HELP_1_Desc_1', 'Gå til "Send Ether & Tokens"-siden. '), _defineProperty(_no$data, 'HELP_1_Desc_2', 'Gå til "Legg til lommebok"-siden & velg "Opprett ny lommebok" '), _defineProperty(_no$data, 'HELP_1_Desc_3', 'Oppgi et sterkt passord. Hvis du ikke tror du klarer å huske det, skriv det opp på et sikkert sted. Du kommer til å trenge dette passordet for å sende transaksjoner. '), _defineProperty(_no$data, 'HELP_1_Desc_4', 'Klikk "OPPRETT". '), _defineProperty(_no$data, 'HELP_1_Desc_5', 'Din lommebok har nå blitt opprettet. '), _defineProperty(_no$data, 'HELP_2a_Title', 'Hvordan lagrer/sikkerhetskopierer jeg lommeboken min? '), _defineProperty(_no$data, 'HELP_2a_Desc_1', 'Du bør alltid sikkerhetskopiere lommeboken din eksternt og på flere fysiske lokasjoner - som f.eks. på en USB-disk og/eller på et papirark. '), _defineProperty(_no$data, 'HELP_2a_Desc_2', 'Lagre adressen. Du kan holde den for deg selv eller dele den med andre. På den måten kan andre overføre ether til deg. '), _defineProperty(_no$data, 'HELP_2a_Desc_3', 'Lagre versjoner av den private nøkkelen. Ikke del den med noen andre. Din private nøkkel er nødvendig hvis du vil ha tilgang til (og sende) etheren din! Det er 3 typer private nøkler: '), _defineProperty(_no$data, 'HELP_2a_Desc_4', 'Plasser adressen din, versjoner av den private nøkkelen, og PDF-versjonen av papirlommeboken i en folder. Lagre denne på datamaskinen din og en USB-disk. '), _defineProperty(_no$data, 'HELP_2a_Desc_5', 'Skriv ut lommeboken hvis du har en skriver. Hvis ikke, skriv ned adressen og den private nøkkelen din på et papirark. Lagre dette på et sikkert sted, separat fra datamaskinen og USB-disken. '), _defineProperty(_no$data, 'HELP_2a_Desc_6', 'Husk at du må unngå tap av nøklene og passordet pga. tap av, eller feil på, harddisk, USB-disk eller paperlommebok. Du må også ta i betraktning at det kan oppstå fysisk tap/skade på et helt område (tenk på brann eller flom). '), _defineProperty(_no$data, 'HELP_2b_Title', '2b) Hvordan kan jeg lagre ether sikkert / offline / "kaldt" med MyEtherWallet? '), _defineProperty(_no$data, 'HELP_2b_Desc_1', 'Gå til vår github: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_no$data, 'HELP_2b_Desc_2', 'Klikk `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_no$data, 'HELP_2b_Desc_3', 'Flytt zip-fila til en frakoblet datamaskin. '), _defineProperty(_no$data, 'HELP_2b_Desc_4', 'Pakk ut zip-fila (unzip) og dobbeltklikk `index.html`. '), _defineProperty(_no$data, 'HELP_2b_Desc_5', 'Opprett en lommebok med et sterkt passord. '), _defineProperty(_no$data, 'HELP_2b_Desc_6', 'Lagre adressen. Lagre versjoner av den private nøkkelen. Lagre passordet hvis du ikke tror du klarer å huske det for alltid. '), _defineProperty(_no$data, 'HELP_2b_Desc_7', 'Lagre disse papirene / USB-ene på flere fysisk separate steder. '), _defineProperty(_no$data, 'HELP_2b_Desc_8', 'Gå til "Vis lommebok-info"-siden og oppgi (lim inn) din private nøkkel / passord for å sikre at de er korrekte og gir deg tilgang til lommeboken din. Sjekk at adressen du skrev ned er den samme. '), _defineProperty(_no$data, 'HELP_3_Title', '3) Hvordan verifiserer jeg at jeg har tilgang til den nye lommeboken min? '), _defineProperty(_no$data, 'HELP_3_Desc_1', '**Før du sender ether til din nye lommebok**, bør du forsikre deg om at du har tilgang til den. '), _defineProperty(_no$data, 'HELP_3_Desc_2', 'Naviger til "Vis lommebok-info"-siden. '), _defineProperty(_no$data, 'HELP_3_Desc_3', 'Naviger til MyEtherWallet.com sin "Vis lommebok-info"-side. '), _defineProperty(_no$data, 'HELP_3_Desc_4', 'Velg lommebok-filen din, eller din private nøkkel, og lås opp lommeboken din. '), _defineProperty(_no$data, 'HELP_3_Desc_5', 'Hvis lommeboken er kryptert, vil det automatisk dukke opp en tekstboks. Oppgi passordet. '), _defineProperty(_no$data, 'HELP_3_Desc_6', 'Klikk "Lås opp lommebok"-knappen. '), _defineProperty(_no$data, 'HELP_3_Desc_7', 'Informasjon om lommeboken din skal nå dukke opp. Finn konto-adressen din ved siden av et fargerikt, sirkulært ikon. Dette ikonet er en unik, visuell representasjon av din adresse. Vær sikker på at adressen er den samme adressen som du har lagret i tekstdokumentet og papirlommeboken. '), _defineProperty(_no$data, 'HELP_3_Desc_8', 'Hvis du planlegger å lagre et stort ether-beløp, anbefaler vi at du sender et lite beløp til- og fra den nye lommeboken før du deponerer et stort beløp. Send 0,001 ether til din nye lommebok, åpne lommeboken, send de 0,001 eterne (-minus gas-kostnad) til en annen adresse, og forikre deg om at alt fungerer som det skal. '), _defineProperty(_no$data, 'HELP_4_Title', '4) Hvordan sender jeg ether fra en lommebok til en annen? '), _defineProperty(_no$data, 'HELP_4_Desc_1', 'Hvis du planlegger å flytte et stort ether-beløp, bør du testsende et lite beløp først for å forsikre deg om at alt går som planlagt. '), _defineProperty(_no$data, 'HELP_4_Desc_2', 'Naviger til "Send Ether & Tokens"-siden. '), _defineProperty(_no$data, 'HELP_4_Desc_3', 'Velg lommebok-filen din, eller din private nøkkel, og lås opp lommeboken din. '), _defineProperty(_no$data, 'HELP_4_Desc_4', 'Hvis lommeboken er kryptert, vil det automatisk dukke opp en tekstboks hvor du må oppgi passordet ditt. '), _defineProperty(_no$data, 'HELP_4_Desc_5', 'Klikk på "Lås opp lommebok"-knappen. '), _defineProperty(_no$data, 'HELP_4_Desc_6', 'Oppgi adressen som du ønsker å sende til i "Til adresse:"-feltet. '), _defineProperty(_no$data, 'HELP_4_Desc_7', 'Oppgi beløpet som du ønsker å sende. Du kan også klikke på "Send hele saldoen"-lenken hvis du ønsker å overføre hele saldoen. '), _defineProperty(_no$data, 'HELP_4_Desc_9', 'Klikk "Generer transaksjon". '), _defineProperty(_no$data, 'HELP_4_Desc_10', 'En del felter vil dukke opp. Dette er nettleseren din som genererer transaksjonen. '), _defineProperty(_no$data, 'HELP_4_Desc_11', 'Klikk den blå "Send transaksjon"-knappen nedenfor dette. '), _defineProperty(_no$data, 'HELP_4_Desc_12', 'En pop-up vil dukke opp. Verifiser at beløp og adresse du sender til er korrekt. Klikk så "Ja, jeg er sikker! Gjennomfør transaksjonen."-knappen. '), _defineProperty(_no$data, 'HELP_4_Desc_13', 'Transaksjonen vil bli sendt inn. Transaksjons-ID-en (TX-ID) vil vises. Du kan klikke på TX Hash for å se den på blokkjeden. '), _defineProperty(_no$data, 'HELP_4CX_Title', '4) Hvordan sender jeg ether med MyEtherWallet CX (Chrome-utvidelsen)? '), _defineProperty(_no$data, 'HELP_4CX_Desc_1', 'Først må du legge til en lommebok. Når du har gjort det, har du 2 muligheter: den kjappe "Send"-funksjonaliteten fra Chrome-utvidelsesikonet eller "Send Ether & Tokens"-siden. '), _defineProperty(_no$data, 'HELP_4CX_Desc_2', 'Send: '), _defineProperty(_no$data, 'HELP_4CX_Desc_3', 'Klikk Chrome-utvidelsesikonet. '), _defineProperty(_no$data, 'HELP_4CX_Desc_4', 'Klikk "Send"-knappen. '), _defineProperty(_no$data, 'HELP_4CX_Desc_5', 'Velg lommeboken du ønsker å sende fra. '), _defineProperty(_no$data, 'HELP_4CX_Desc_6', 'Oppgi adressen du ønsker å sende til i "Til adresse:"-feltet. '), _defineProperty(_no$data, 'HELP_4CX_Desc_7', 'Oppgi beløpet du vil sende. Du kan også klikke på "Send hele saldoen"-lenken hvis du vil overføre hele saldoen. '), _defineProperty(_no$data, 'HELP_4CX_Desc_8', 'Klikk "Send transaksjon". '), _defineProperty(_no$data, 'HELP_4CX_Desc_9', 'Verifiser at adressen og beløpet er korrekt. '), _defineProperty(_no$data, 'HELP_4CX_Desc_10', 'Oppgi passordet for lommeboken. '), _defineProperty(_no$data, 'HELP_4CX_Desc_11', 'Klikk "Send transaksjon." '), _defineProperty(_no$data, 'HELP_4CX_Desc_12', 'Bruk "Send Ether & Tokens"-siden '), _defineProperty(_no$data, 'HELP_5_Title', '5) Hvordan kan jeg bruke MyEtherWallet.com offline/lokalt? '), _defineProperty(_no$data, 'HELP_5_Desc_1', 'Du kan bruke MyEtherWallet.com på datamaskinen din i stedet for fra GitHub-serverne. Du kan opprette en lommebok fullstendig frakoblet fra internett, og sende transaksjoner fra "Send offline"-siden. '), _defineProperty(_no$data, 'HELP_5_Desc_7', 'MyEtherWallet.com kjører nå utelukkende på din datamaskin. '), _defineProperty(_no$data, 'HELP_5_Desc_8', 'I tilfelle du ikke er så vant med dette: du må beholde hele mappen for å kunne kjøre nettsiden, ikke bare `index.html`. Ikke rør eller flytt rundt på noe i mappen. Hvis du lagrer en backup av MyEtherWallet-repoet for framtiden, anbefaler vi å kun lagre zip-fila så du kan være sikker på at innholdet i mappen forblir intakt. '), _defineProperty(_no$data, 'HELP_5_Desc_9', 'Siden vi oppdaterer MyEtherWallet.com hele tiden, anbefaler vi at du oppdaterer din lagrede versjon av repoet jevnlig. '), _defineProperty(_no$data, 'HELP_5CX_Title', '5) Hvordan kan jeg installere denne utvidelsen fra repoet i stedet for fra Chrome-butikken? '), _defineProperty(_no$data, 'HELP_5CX_Desc_2', 'Klikk `chrome-extension-vX.X.X.X.zip`. '), _defineProperty(_no$data, 'HELP_5CX_Desc_3', 'Gå til Google Chrome og finn innstillingene i menyen øverst til høyre under "Flere verktøy". '), _defineProperty(_no$data, 'HELP_5CX_Desc_4', 'Clikk "Utvidelser" til venstre. '), _defineProperty(_no$data, 'HELP_5CX_Desc_5', 'Huk av "Utviklermodus"-knappen på toppen av siden. '), _defineProperty(_no$data, 'HELP_5CX_Desc_6', 'Klikk "Last inn upakket utvidelser"-knappen. '), _defineProperty(_no$data, 'HELP_5CX_Desc_7', 'Naviger til den nå utpakkede mappen som du lastet ned tidligere. Clikk "OK". '), _defineProperty(_no$data, 'HELP_5CX_Desc_8', 'Utvidelsen skal nå dukke opp blant utvidelsene dine og i utvidelses-knappelinjen øverst til høyre i nettleseren. '), _defineProperty(_no$data, 'HELP_7_Title', '7) Hvordan sender jeg token & legger til flere typer token? '), _defineProperty(_no$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) er en flott måte å utforske token på, og for å finne informasjon om antall desimaler for en token. '), _defineProperty(_no$data, 'HELP_7_Desc_1', 'Naviger til "Send Ether & Tokens"-siden. '), _defineProperty(_no$data, 'HELP_7_Desc_2', 'Lås opp lommeboken din. '), _defineProperty(_no$data, 'HELP_7_Desc_3', 'Oppgi adressen som du vil sende til i "Til adresse:"-feltet. '), _defineProperty(_no$data, 'HELP_7_Desc_4', 'Oppgi beløpet som du vil sende. '), _defineProperty(_no$data, 'HELP_7_Desc_5', 'Velg hvilken type token du vil sende . '), _defineProperty(_no$data, 'HELP_7_Desc_6', 'Hvis du ikke ser token-typen på listen: '), _defineProperty(_no$data, 'HELP_7_Desc_7', 'Klikk "Tilpasning". '), _defineProperty(_no$data, 'HELP_7_Desc_8', 'Oppgi adressen, navnet, og antall desimaler for token-et. Disse er oppgitt fra utviklerne av token-et og er også nødvendige når du skal "Add a Watch Token" i Mist. '), _defineProperty(_no$data, 'HELP_7_Desc_9', 'Klikk "Lagre". '), _defineProperty(_no$data, 'HELP_7_Desc_10', 'Du kan nå sende denne typen token, samt se saldoen for aktuell token i sidefeltet. '), _defineProperty(_no$data, 'HELP_7_Desc_11', 'Klikk "Generer transaksjon". '), _defineProperty(_no$data, 'HELP_7_Desc_12', 'Noen flere felter vil dukke opp. Dette er nettleseren din som genererer transaksjonen. '), _defineProperty(_no$data, 'HELP_7_Desc_13', 'Klikk den blå "Send transaksjon"-knappen nedenfor dette. '), _defineProperty(_no$data, 'HELP_7_Desc_14', 'En pop-up vil dukke opp. Verifiser at beløp og adresse du sender til er korrekt. Klikk så "Ja, jeg er sikker! Gjennomfør transaksjonen."-knappen. '), _defineProperty(_no$data, 'HELP_7_Desc_15', 'Transaksjonen vil bli sendt inn. Transaksjons-ID-en (TX-ID) vil vises. Du kan klikke på TX Hash for å se den på blokkjeden. '), _defineProperty(_no$data, 'HELP_8_Title', '8) Hva skjer hvis nettsiden går ned? '), _defineProperty(_no$data, 'HELP_8_Desc_1', 'MyEtherWallet er ikke en nett-lommebok (web wallet). Du har ingen innlogging og ingenting blir noensinne lagret på våre servere. Det er ganske enkelt et grensesnitt som tillater deg å samhandle med blokkjeden. '), _defineProperty(_no$data, 'HELP_8_Desc_2', 'Hvis MyEtherWallet.com går ned, må du finne en annen måte (som f.eks. geth eller Ethereum Wallet / Mist) å gjøre det på. Men du vil ikke trenge å "hente" eteren din ut av MyEtherWallet, fordi den ikke befinner seg i MyEtherWallet. Den befinner seg i den lommeboka/kontoen som du opprettet ved hjelp av nettsiden vår. '), _defineProperty(_no$data, 'HELP_8_Desc_3', 'Du kan nå svært enkelt importere din ukrypterte private nøkkel og dine Geth/Mist-format (krypterte) filer direkte inn i geth / Ethereum Wallet / Mist. Se spørsmål #12 nedenfor. '), _defineProperty(_no$data, 'HELP_8_Desc_4', 'I tillegg er sannsynligheten for at vi tar ned MyEtherWallet svært liten. Det koster oss nesten ingenting å opprettholde den siden vi ikke lagrer noen informasjon. Hvis vi tar ned domenet, er det fortsatt, og vil alltid være, offentlig tilgjengelig på [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Du kan laste ned zip-fila der og kjøre den lokalt. '), _defineProperty(_no$data, 'HELP_8CX_Title', '8) Hva skjer hvis MyEtherWallet CX (Chrome-utvidelsen) forsvinner? '), _defineProperty(_no$data, 'HELP_8CX_Desc_1', 'For det første er alle data lagret på din datamaskin, ikke på våre servere. Jeg vet det kan være forvirrende, men når du ser på Chrome-utvidelsen, så ser du IKKE på ting som er lagret på våre servere et eller annet sted - det er alt sammen lagret på din egen datamaskin. '), _defineProperty(_no$data, 'HELP_8CX_Desc_2', 'Når det er sagt, så er det **svært viktig** at du sikkerhetskopierer all din informasjon for alle lommebøkene som du har opprettet med MyEtherWallet CX. På den måten vil du fortsatt ha all nødvendig informasjon for å få tilgang til eteren din selv om noe skulle hende med MyEtherWallet CX eller datamaskinen din. Se spørsmål #2a ang. hvordan du sikkerhetskopierer lommebøkene dine. '), _defineProperty(_no$data, 'HELP_8CX_Desc_3', 'Hvis MyEtherWallet CX av en eller annen grunn skulle forsvinne fra Chrome Store, så kan du finne kildekoden på Github og laste den inn manuelt. Se #5 ovenfor. '), _defineProperty(_no$data, 'HELP_9_Title', '9) Er "Send Ether & Tokens"-siden offline? '), _defineProperty(_no$data, 'HELP_9_Desc_1', 'Nei. Den trenger internett for å kunne skaffe den aktuelle gas-prisen, "nonce" for kontoen din, og for å kunne kringkaste transaksjonen (aka "send"). Imidlertid sender den kun den signerte transaksjonen. Din private nøkkel forblir i sikkerhet hos deg. Vi tilbyr nå også en "Offline transaction"-side slik at du kan forsikre deg om at dine private nøkler til enhver tid kun befinner seg på en offline/frakoblet datamaskin. '), _defineProperty(_no$data, 'HELP_10_Title', '10) Hvordan lager jeg en frakoblet/offline transaksjon? '), _defineProperty(_no$data, 'HELP_10_Desc_1', 'Naviger til "Send Offline"-siden via din internettilknyttede datamaskin. '), _defineProperty(_no$data, 'HELP_10_Desc_2', 'Oppgi "Fra-adressen". Vennligst merk at dette er adressen du sender FRA, ikke TIL. Dette genererer "nonce" og "gas-pris". '), _defineProperty(_no$data, 'HELP_10_Desc_3', 'Gå til den internettfrakoblede datamaskinen. Oppgi "TIL-ADRESSEN" og "BELØPET" du vil sende. '), _defineProperty(_no$data, 'HELP_10_Desc_4', 'Oppgi "GAS-PRISEN" slik den ble vist deg på den tilkoblede datamaskinen i steg #1. '), _defineProperty(_no$data, 'HELP_10_Desc_5', 'Oppgi "NONCE" slik den ble vist deg på den tilkoblede datamaskinen i steg #1. '), _defineProperty(_no$data, 'HELP_10_Desc_6', '"GAS-GRENSE" har en standardverdi på 21000. Dette vil dekke en standardtransaksjon. Hvis du sender til en kontrakt eller inkluderer ekstra data i transaksjonen din, må du øke gas-grensen. Eventuelt overskytende gas blir returnert til deg (fra-kontoen). '), _defineProperty(_no$data, 'HELP_10_Desc_7', 'Oppgi noe data hvis du vil. Hvis du oppgir data, må du inkludere mer enn det som er standard gas-grense (21000). Alle data er i HEX-format. '), _defineProperty(_no$data, 'HELP_10_Desc_8', 'Velg lommebokfilen din, eller din private nøkkel, og lås opp lommeboken din. '), _defineProperty(_no$data, 'HELP_10_Desc_9', 'Trykk på "GENERER SIGNERT TRANSAKSJON"-knappen. '), _defineProperty(_no$data, 'HELP_10_Desc_10', 'Datafeltet under denne knappen vil fylles med din signerte transaksjon. Kopier denne og flytt den tilbake til din tilkoblede datamaskin. '), _defineProperty(_no$data, 'HELP_10_Desc_11', 'Lim inn den signerte transaksjonen i tekstfeltet i steg #3 på den tilkoblede maskinen og klikk "Send Ether & Tokens". Dette vil kringkaste transaksjonen din. '), _defineProperty(_no$data, 'HELP_12_Title', '12) Hvordan kan jeg importere en lommebok opprettet med MyEtherWallet til geth / Ethereum Wallet / Mist? '), _defineProperty(_no$data, 'HELP_12_Desc_1', 'Ved å bruke en Geth/Mist JSON-fil fra MyEtherWallet v2+.... '), _defineProperty(_no$data, 'HELP_12_Desc_2', 'Gå til "Vis lommebok-info"-siden. '), _defineProperty(_no$data, 'HELP_12_Desc_3', 'Lås opp lommeboken din ved hjelp av din **krypterte** private nøkkel eller JSON-fil. '), _defineProperty(_no$data, 'HELP_12_Desc_4', 'Gå til "Mine lommebøker"-siden. '), _defineProperty(_no$data, 'HELP_12_Desc_5', 'Velg lommeboken som du ønsker å importere til Mist, klikk "Vis"-ikonet, oppgi passordet, og få tilgang til lommeboken. '), _defineProperty(_no$data, 'HELP_12_Desc_6', 'Finn "Last ned JSON-fil - Geth/Mist-format (kryptert)"-seksjonen. Trykk "Last ned"-knappen nedenfor. Du har nå fått keystore-filen til lommeboken din. '), _defineProperty(_no$data, 'HELP_12_Desc_7', 'Åpne "Ethereum Wallet"-programmet. '), _defineProperty(_no$data, 'HELP_12_Desc_8', 'I menyfeltet, gå til "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_no$data, 'HELP_12_Desc_9', 'Dette vil åpne keystore-mappen på harddisken din. Kopier filen du nettopp lastet ned (`UTC--2016-04-14......../`) inn i denne keystore-mappen. '), _defineProperty(_no$data, 'HELP_12_Desc_10', 'Kontoen din skal nå umiddelbart dukke opp under "Accounts." '), _defineProperty(_no$data, 'HELP_12_Desc_11', 'Ved å bruke din ukrypterte private nøkkel... '), _defineProperty(_no$data, 'HELP_12_Desc_12', 'Hvis du ikke allerede har den ukrypterte private nøkkelen din, naviger til "Vis lommebok-info"-siden. '), _defineProperty(_no$data, 'HELP_12_Desc_13', 'Velg lommebok-filen din, eller oppgi/lim inn din private nøkkel, for å låse opp lommeboken. '), _defineProperty(_no$data, 'HELP_12_Desc_14', 'Kopier den (ukrypterte) private nøkkelen. '), _defineProperty(_no$data, 'HELP_12_Desc_15', 'Hvis du er på en Mac: '), _defineProperty(_no$data, 'HELP_12_Desc_15b', 'Hvis du er på en PC: '), _defineProperty(_no$data, 'HELP_12_Desc_16', 'Åpne Text Edit og lim inn denne private nøkkelen. '), _defineProperty(_no$data, 'HELP_12_Desc_17', 'Gå til menylinjen og klikk "Format" -> "Make Plain Text". '), _defineProperty(_no$data, 'HELP_12_Desc_18', 'Lagre denne fila på skrivebordet ditt som `ikke_noe_spesielt_slett_meg.txt`. Pass på at det står "UTF-8" og "If no extension is provided use .txt" i lagringsdialogen. '), _defineProperty(_no$data, 'HELP_12_Desc_19', 'Åpne terminalen og kjør følgende kommando: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_no$data, 'HELP_12_Desc_20', 'Du vil bli bedt om å lage et nytt passord. Dette er passordet du vil bruke i geth / Ethereum Wallet / Mist hver gang du skal sende en transaksjon, så ikke glem det. '), _defineProperty(_no$data, 'HELP_12_Desc_21', 'Etter at du har lykkes med å importere kontoen, slett `ikke_noe_spesielt_slett_meg.txt` '), _defineProperty(_no$data, 'HELP_12_Desc_22', 'Neste gangen du åpner "Ethereum Wallet"-programmet, vil kontoen din være listet under "Accounts". '), _defineProperty(_no$data, 'HELP_12_Desc_23', 'Åpne Notisblokk/Notepad & lim inn den private nøkkelen '), _defineProperty(_no$data, 'HELP_12_Desc_24', 'Lagre fila som `ikke_noe_spesielt_slett_meg.txt` på `C:` '), _defineProperty(_no$data, 'HELP_12_Desc_25', 'Kjør ledetekst (Windowstast + "cmd")-kommandoen, `geth account import C:\\ikke_noe_spesielt_slett_meg.txt` '), _defineProperty(_no$data, 'HELP_12_Desc_26', 'Du vil bli bedt om å lage et nytt passord. Dette er passordet du vil bruke i geth / Ethereum Wallet / Mist hver gang du skal sende en transaksjon, så ikke glem det. '), _defineProperty(_no$data, 'HELP_12_Desc_27', 'Etter at du har lykkes med å importere kontoen, slett `ikke_noe_spesielt_slett_meg.txt` '), _defineProperty(_no$data, 'HELP_12_Desc_28', 'Neste gangen du åpner "Ethereum Wallet"-programmet, vil kontoen din være listet under "Accounts". '), _defineProperty(_no$data, 'HELP_13_Title', '13) Hva betyr "Utilstrekkelige midler. Kontoen du prøver å sende transaksjon fra har ikke nok midler. Påkrevd XXXXXXXXXXXXXXXXXXX og fått: XXXXXXXXXXXXXXXX." ? '), _defineProperty(_no$data, 'HELP_13_Desc_1', 'Dette betyr at du ikke har nok Ether på kontoen din til å dekke gas-kostnaden. Hver transaksjon (inkludert token- og kontrakt-transaksjoner) krever gas, og gas betales med Ether. Tallet som vises er beløpet som kreves for å dekke transaksjonskostnaden i Wei (1 ETH = 10^18 Wei). Ta dette tallet, del det på `1000000000000000000`, og trekk fra Ether-beløpet som du prøvde å sende (hvis du prøvde å sende Ether). Dette vil gi deg Ether-beløpet som du mangler på (trenger å sende til) denne kontoen for å gjennomføre transaksjonen. '), _defineProperty(_no$data, 'HELP_14_Title', '14) Noen nettsider randomiserer genereringen av den private nøkkelen via musebevegelser. MyEtherWallet.com gjør ikke dette. Er metoden som MyEtherWallet bruker til å generere tilfeldige tall sikker? '), _defineProperty(_no$data, 'HELP_14_Desc_1', 'Selv om musebevegelses-metoden er smart og vi skjønner hvorfor folk liker den, så er realiteten at window.crypto sikrer mer entropi (tilfeldighet) enn musebevegelser. Musebevegelses-metoden er ikke usikker, men det er bare det at vi (og mange andre kryptoeksperter) har tro på window.crypto. I tillegg kan MyEtherWallet.com også benyttes på fingerstyrte enheter. Her er en [konversasjon mellom en sint redditor og Vitalik Buterin angående musebevegelser versus window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) og her er [window.crypto w3 spesifikasjonen](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_no$data, 'HELP_15_Title', '15) Hvorfor har ikke kontoen jeg nettopp opprettet dukket opp i blokkjede-utforskeren? (ie: etherchain, etherscan) '), _defineProperty(_no$data, 'HELP_15_Desc_1', 'Kontoer vil kun dukke opp i en blokkjede-utforsker når kontoen har hatt aktivitet&mdash;for eksempel, når du har overført Ether til den. '), _defineProperty(_no$data, 'HELP_16_Title', '16) Hvordan kan jeg sjekke saldoen på kontoen min? '), _defineProperty(_no$data, 'HELP_16_Desc_1', 'Du kan bruke en blokkjede-utforsker som [etherscan.io](https://etherscan.io/). Lim inn adressen i søkefeltet og den vil finne fram adressen og transaksjonshistorikken. For eksempel, her ser du hvordan vår [donasjonskonto](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) ser ut på etherscan.io '), _defineProperty(_no$data, 'HELP_17_Title', '17) Hvorfor vises ikke saldoen min når jeg låser opp lommeboken min? '), _defineProperty(_no$data, 'HELP_17_Desc_1', 'Dette er mest sannsynlig fordi du er bak en brannmur. API-en vi bruker for å innhente saldoen blokkeres ofte av brannmurer av ymse årsaker. Du vil fortsatt være i stand til å sende transaksjoner, du må bare bruke en annen metode for å se nevnte saldo, som etherscan.io '), _defineProperty(_no$data, 'HELP_18_Title', '18) Hvor er min geth lommebok-fil '), _defineProperty(_no$data, 'HELP_19_Title', '19) Hvor er min Mist lommebok-fil? '), _defineProperty(_no$data, 'HELP_19_Desc_1', 'Mist-filer lagres typisk i lokasjonene ovenfor, men det er mye enklere å åpne Mist, velge "Accounts" i topp-menylinjen, velge "Backup", og velge "Accounts". Dette vil åpne mappen hvor filene dine er lagret. '), _defineProperty(_no$data, 'HELP_20_Title', '20) Hvor er pre-sale lommebok-filen? '), _defineProperty(_no$data, 'HELP_20_Desc_1', 'Der du lagret den. ;) Den ble også sendt deg på e-post, så sjekk der. Se etter fila som heter `"ethereum_wallet_backup.json"` og velg den fila. Denne fila vil være kryptert med et passord som du opprettet under "pre-sale"-kjøpet. '), _defineProperty(_no$data, 'HELP_21_Title', '21) Kan ikke hvem som helst legge inn tilfeldige private nøkler, sjekke saldoen, og sende Ether til sin egen adresse? '), _defineProperty(_no$data, 'HELP_21_Desc_1', 'Kortversjonen: ja, men å finne en konto som inneholder Ether ville tatt lengre tid enn universets levealder...så...nei. '), _defineProperty(_no$data, 'HELP_21_Desc_2', 'Lang ELI5-versjon: Ethereum er basert på [Offentlig nøkkel-kryptografi](https://en.wikipedia.org/wiki/Public-key_cryptography), og mer spesifikt [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf), som er svært utbredt, ikke bare i Ethereum. De fleste servere er beskyttet via ECC. Bitcoin bruker den samme, likeså SSH og TLS og mange flere. Ethereum-nøklene er 256-bit nøkler, som er sterkere enn 128-bit og 192-bit, som også er mye brukt og fortsatt betraktes som sikre av ekspertene. '), _defineProperty(_no$data, 'HELP_21_Desc_3', 'I denne har du en privat nøkkel og en offentlig nøkkel. Den private nøkkelen kan utlede den offentlige nøkkelen, men den offentlige nøkkelen kan ikke brukes for å finne den private nøkkelen. Det faktum at internett og verdens hemmeligheter bruker denne kryptografien betyr at hvis det blir funnet en måte å gå fra offentlige til private nøkler på, så vil dine tapte Ether være det minste av alles problemer. '), _defineProperty(_no$data, 'HELP_21_Desc_4', 'Når det er sagt, JA, hvis noen andre har din private nøkkel, så kan de såvisst sende ether fra din konto. Akkurat som hvis noen har passordet til e-posten din, så kan de lese og sende din e-post, eller passordet til bankkontoen din, så kan de overføre penger. Du kunne laste ned keystore-versjonen av den private nøkkelen din, som er den private nøkkelen som er kryptert med et passord. Dette blir som å ha et passord som er beskyttet av et annet passord. '), _defineProperty(_no$data, 'HELP_21_Desc_5', 'og JA, i teorien kunne du bare taste inn en streng med 64 hexadesimaltegn helt dil du fant en som passet. Faktisk kunne smarte folk skrive et program som svært hurtig kunne sjekke tilfeldige private nøkler. Dette kalles "brute-forcing" eller "mining" private nøkler. Folk har tenkt lenge og hardt på dette. Med noen få svært gode servere, kunne de kanskje klare å sjekke >1M nøkler/sekund. Likevel, selv når så mange sjekkes per sekund, ville det ikke gi tilgang midler som ville gjøre det i nærheten av å være lønnsomt å kjøre disse serverne. - Det er mer sannsynlig at du, eller dine oldebarn, vil dø før du får en match. '), _defineProperty(_no$data, 'HELP_21_Desc_6', 'Hvis du vet noe om Bitcoin, [dette vil sette det i perspektiv:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *For å illustrere hvor usannsynlig det er: anta at alle satoshi av alle bitcoin som noensinne blir generert ble sendt til hver sin egen unike private nøkkel. Sannsynligheten for at det blant disse nøklene kunne være to som ville korrespondere med samme adresse er ca 1 til 10^20. '), _defineProperty(_no$data, 'HELP_21_Desc_7', '[Hvis du ønsker en mer teknisk forklaring:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *Disse tallene har ikke noe å gjøre med teknologien til enhetene; de er det maksimale som termodynamikken vil tillate. Og de impliserer sterkt at "brute-force"-angrep mot 256-bit nøkler vil være uoppnåelig fram til datamaskiner lages av noe annet enn materie og befinner seg i noe annet enn rom. '), _defineProperty(_no$data, 'HELP_21_Desc_8', 'Selvsagt betinger alt dette at nøkler blir generert på en virkelig tilfeldig måte & med tilstrekkelig entropi. Nøklene som genereres her tilfredsstiller dette kriteriet, det samme gjør Jaxx og Mist/geth. Alle Ethereum-lommebøker er OK. Nøkler som genereres av "brainwallets" er ikke like gode, siden en persons hjerne ikke er i stand til å lage en virkelig tilfeldig "seed". Det har vært noen andre tilfeller av manglende entropi eller "seeds" som ikke er generert på en virkelig tilfeldig måte i Bitcoin-land, men det er en historie som kan vente til en annen dag. '), _defineProperty(_no$data, 'HELP_SecCX_Title', 'Datasikkerhet - MyEtherWallet CX (Chrome-utvidelsen) '), _defineProperty(_no$data, 'HELP_SecCX_Desc_1', 'Hvor lagrer denne utvidelsen informasjonen min? '), _defineProperty(_no$data, 'HELP_SecCX_Desc_2', 'Informasjonen som du lager i denne Chrome-utvidelsen lagres via [chrome.storage](http://chrome.storage/). - dette er samme sted som passordene dine lagres når du lagrer passord i Chrome. '), _defineProperty(_no$data, 'HELP_SecCX_Desc_3', 'Hvilken informasjon lages? '), _defineProperty(_no$data, 'HELP_SecCX_Desc_4', 'Adresser, kallenavn og private nøkler lagres i chrome.storage. Den private nøkkelen er kryptert ved hjelp av passordet du satte da du la til lommeboken. Kallenavn og lommebok-adresser er ikke kryptert. '), _defineProperty(_no$data, 'HELP_SecCX_Desc_5', 'Hvorfor er ikke kallenavn og lommebok-adresser kryptert? '), _defineProperty(_no$data, 'HELP_SecCX_Desc_6', 'Hvis vi skulle kryptere disse, måtte du ha oppgitt et passord hver gang du ønsket å se saldo for kontoene dine eller vise kallenavnene. Hvis dette bekymrer deg, anbefaler vi deg å bruke MyEtherWallet.com i stedet for denne Chrome-utvidelsen. '), _defineProperty(_no$data, 'HELP_Sec_Title', 'Datasikkerhet '), _defineProperty(_no$data, 'HELP_Sec_Desc_1', 'Hvis en av dine første spørsmål er "Hvorfor skulle jeg stole på disse folkene?", så er det en god ting. Forhåpentligvis vil følgende bidra til å lette på frykten din. '), _defineProperty(_no$data, 'HELP_Sec_Desc_2', 'Vi har vært oppe-og-gå siden august 2015. Hvis du søker etter ["myetherwallet" på reddit](https://www.reddit.com/search?q=myetherwallet), så kan du se mange folk som bruker oss med stor suksess. '), _defineProperty(_no$data, 'HELP_Sec_Desc_3', 'Vi kommer ikke til å ta pengene dine eller stjele dine private nøkler. Det er ingen ondsinnet kode på denne siden. Faktisk er "Send Ether & Tokens"-siden fullstendig klient-drevet. Det betyr at all koden blir kjørt på ** din datamaskin ** og det blir aldri lagret eller overført noe sted. '), _defineProperty(_no$data, 'HELP_Sec_Desc_4', 'Sjekk nettsideadressen (URL) -- Denne siden blir drevet gjennom GitHub og du kan se kildekoden her: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) til domenet: [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_no$data, 'HELP_Sec_Desc_5', 'For å generere lommebøker, kan du laste ned [kildekoden](https://github.com/kvhnuke/etherwallet/releases/latest). Se #5 ovenfor. '), _defineProperty(_no$data, 'HELP_Sec_Desc_6', 'Kjør en test og sjekk hvilken nettverksaktivitet som skjer. Den enkleste måten som du kan gjøre dette på er å høyreklikke på siden og klikke "inspiser element". Gå til "Nettverk"-flippen. Generer en test-lommebok. Du vil se at det ikke er noen nettverksaktivitet. Du vil se at noe som ser ut som data:image/gif og data:image/png skjer. Disse er QR-kodene som blir generert...på din datamaskin...av din datamaskin. Ingen bytes ble overført. '), _defineProperty(_no$data, 'HELP_Sec_Desc_8', 'Hvis du ikke er komfortabel med å bruke dette verktøyet, så for all del, ikke bruk det. Vi laget dette verktøyet som et hjelpemiddel for folk som vil opprette lommebøker og utføre transaksjoner uten å måtte dykke ned i kommandolinjeoperasjoner eller kjøre en full node. Igjen, ta gjerne kontakt hvis du har bekymringer og vi vil gi tilbakemelding så snart som mulig. Takk! '), _defineProperty(_no$data, 'HELP_FAQ_Title', 'Flere nyttige svar på hyppige spørsmål '), _defineProperty(_no$data, 'HELP_Contact_Title', 'Måter å ta kontakt på'), _no$data);
module.exports = no;
},{}],122:[function(require,module,exports){
// Polish
'use strict';
var _pl$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var pl = function pl() {};
pl.code = 'pl';
pl.data = (_pl$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_pl$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_pl$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_pl$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_pl$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_pl$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_pl$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_pl$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_pl$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_pl$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_pl$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_pl$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_pl$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_pl$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_pl$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_pl$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_pl$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_pl$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_pl$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_pl$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_pl$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_pl$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_pl$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_pl$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_pl$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_pl$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_pl$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_pl$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_pl$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_pl$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_pl$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_pl$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_pl$data, 'x_CancelReplaceTx', 'Anuluj lub Zastąp Transakcję'), _defineProperty(_pl$data, 'x_CancelTx', 'Anuluj Transakcję'), _defineProperty(_pl$data, 'x_PasswordDesc', 'To hasło * szyfruje * Twój klucz prywatny. To nie jest ziarno (seed) generujące Twoje klucze. **Będziesz potrzebować tego hasła + Twojego klucza prywatnego aby odblokować swój portfel.**'), _defineProperty(_pl$data, 'x_ReadMore', 'Zobacz więcej'), _defineProperty(_pl$data, 'x_ReplaceTx', 'Zastąp Transakcję'), _defineProperty(_pl$data, 'x_TransHash', 'Hash Transakcji'), _defineProperty(_pl$data, 'x_TXFee', 'TX Fee (opłata)'), _defineProperty(_pl$data, 'x_TxHash', 'TX Hash'), _defineProperty(_pl$data, 'NAV_CheckTxStatus', 'Sprawdź Status Transakcji'), _defineProperty(_pl$data, 'NAV_TxStatus', 'Status Transakcji'), _defineProperty(_pl$data, 'tx_Details', 'Szczegóły Transakcji'), _defineProperty(_pl$data, 'tx_Summary', 'Zdarza się (szczególnie podczas ICO), że transakcje są oczekujące przez godziny, a nawet dni. To narzędzie ma na celu umożliwić Ci znalezienie i \"anulowanie\" / zastąpienie tych transakcji. ** To nie jest narzędzie, które można użyć w każdej sytuacji. Nie gwarantuje ono osiągnięcia sukcesu i będzie działać tylko jeśli pule transakcji są pełne. [Więcej informacji tutaj.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_pl$data, 'tx_notFound', 'Transakcja nie została znaleziona'), _defineProperty(_pl$data, 'tx_notFound_1', 'Transakcja nie zostala znaleziona w puli transakcji węzła, do którego jesteś połączony.'), _defineProperty(_pl$data, 'tx_notFound_2', 'Jeśli wysłałeś transakcję przed chwilą, poczekaj 15 sekund i naciśnij przycisk "Sprawdź Status Transakcji" ponownie. '), _defineProperty(_pl$data, 'tx_notFound_3', 'Wciąż może być w puli transakcji innego węzła oczekując na potwierdzenie.'), _defineProperty(_pl$data, 'tx_notFound_4', 'Użyj menu w prawym górnym rogu aby wybrać inny węzeł ETH (np. `ETH (Etherscan.io)` lub `ETH (Infura.io)` lub `ETH (MyEtherWallet)`) i sprawdź ponownie.'), _defineProperty(_pl$data, 'tx_foundInPending', 'Znaleziono oczekującą transakcję'), _defineProperty(_pl$data, 'tx_foundInPending_1', 'Twoja transakcja została znaleziona w puli transakcji węzła, z którym jesteś połączony. '), _defineProperty(_pl$data, 'tx_foundInPending_2', 'Transakcja oczekuje na wydobycie/potwierdzenie. '), _defineProperty(_pl$data, 'tx_foundInPending_3', 'Istnieje szansa \"anulować\" lub zastąpić tę transakcję. Odblokuj swój portfel poniżej.'), _defineProperty(_pl$data, 'tx_FoundOnChain', 'Transakcja została znaleziona'), _defineProperty(_pl$data, 'tx_FoundOnChain_1', 'Twoja transakcja została pomyślnie zrealizowana i pojawiła się na bloku.'), _defineProperty(_pl$data, 'tx_FoundOnChain_2', '**Jeśli zobaczysz czerwony wykrzyknik `( ! )`, `ZŁA INSTRUKCJA` lub `ZABRAKŁO PALIWA` w komunikacie o błędzie**, oznacza to, że transakcji nie udało się wysłać pomyślnie. Nie możesz anulować ani zastąpić tej transakcji. Zamiast tego, wyślij nową transakcję. Jeśli otrzymałeś komunikat o niewystarczającej ilości paliwa, powinieneś podwoić limit gazu.'), _defineProperty(_pl$data, 'tx_FoundOnChain_3', '**Jeśli nie pojawią się żadne komunikaty o błędzie, to Twoja transakcja została pomyślnie wysłana.** Twój ETH lub Tokeny są tam, gdzie zostały wysłane. Jeśli jednak ETH lub Tokeny nie pojawią się tam, gdzie zostały wysłane i minęły ponad 24 godziny od momentu wysłania, [skontaktuj się z którymś z serwisów](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Wyślij im *link* do Twojej transakcji i uprzejmie poproś o zbadanie sytuacji.'), _defineProperty(_pl$data, 'GEN_Help_1', 'Use your'), _defineProperty(_pl$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_pl$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_pl$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_pl$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_pl$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_pl$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_pl$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_pl$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_pl$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_pl$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_pl$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_pl$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_pl$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_pl$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_pl$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_pl$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_pl$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_pl$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_pl$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_pl$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_pl$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_pl$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_pl$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_pl$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_pl$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_pl$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_pl$data, 'NAV_AddWallet', 'Dodaj Portfel '), _defineProperty(_pl$data, 'NAV_BulkGenerate', 'Generuj Hurtowo '), _defineProperty(_pl$data, 'NAV_Contact', 'Kontakt '), _defineProperty(_pl$data, 'NAV_Contracts', 'Kontrakt '), _defineProperty(_pl$data, 'NAV_DeployContract', 'Wyślij Kontrakt '), _defineProperty(_pl$data, 'NAV_ENS', 'ENS'), _defineProperty(_pl$data, 'NAV_GenerateWallet_alt', 'Nowy Portfel '), _defineProperty(_pl$data, 'NAV_GenerateWallet', 'Wygeneruj Portfel '), _defineProperty(_pl$data, 'NAV_Help', 'Pomoc '), _defineProperty(_pl$data, 'NAV_InteractContract', 'Pracuj z Kontraktem '), _defineProperty(_pl$data, 'NAV_Multisig', 'Multi-podpis '), _defineProperty(_pl$data, 'NAV_MyWallets', 'Moje Portfele '), _defineProperty(_pl$data, 'NAV_Offline', 'Wyślij Offline '), _defineProperty(_pl$data, 'NAV_SendEther', 'Wyślij Ether i Tokeny '), _defineProperty(_pl$data, 'NAV_SendTokens', 'Wyślij Tokeny '), _defineProperty(_pl$data, 'NAV_SignMsg', 'Podpisz Wiadomość '), _defineProperty(_pl$data, 'NAV_Swap', 'Giełda '), _defineProperty(_pl$data, 'NAV_ViewWallet', 'Wyświetl informacje o portfelu '), _defineProperty(_pl$data, 'NAV_YourWallets', 'Twoje Portfele '), _defineProperty(_pl$data, 'x_Access', 'Dostęp '), _defineProperty(_pl$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Inaczej "Numer konta" lub "Klucz publiczny". Wysyłasz go innym aby mogli Ci wysłać ether. Ikona umożliwia łatwe rozpoznanie Twojego adresu. '), _defineProperty(_pl$data, 'x_Address', 'Twój Adres '), _defineProperty(_pl$data, 'x_Cancel', 'Anuluj '), _defineProperty(_pl$data, 'x_CSV', 'Plik CSV (nieszyfrowany) '), _defineProperty(_pl$data, 'x_Download', 'Pobierz '), _defineProperty(_pl$data, 'x_Json', 'Plik JSON (nieszyfrowany) '), _defineProperty(_pl$data, 'x_JsonDesc', 'Nieszyfrowany klucz prywatny, plik w formacie JSON. Nie wymaga podania hasła, ale każdy kto zdobędzie ten plik uzyska również pełny dostęp do Twojego portfela i zgromadzonych na nim środków. '), _defineProperty(_pl$data, 'x_Keystore', 'Plik Keystore (UTC / JSON · Zalecany · Szyfrowany) '), _defineProperty(_pl$data, 'x_Keystore2', 'Plik Keystore (UTC / JSON) '), _defineProperty(_pl$data, 'x_KeystoreDesc', 'Ten plik Keystore odpowiada formatowi stosowanemu przez Mist, więc może być w prosty sposób zaimportowany w przyszłości. Jest to zalecana forma pliku do pobrania i przechowywania jako kopii zapasowej. '), _defineProperty(_pl$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_pl$data, 'x_Mnemonic', 'Mnemonik '), _defineProperty(_pl$data, 'x_ParityPhrase', 'Fraza Parity '), _defineProperty(_pl$data, 'x_Password', 'Hasło '), _defineProperty(_pl$data, 'x_Print', 'Drukuj Portfel Papierowy '), _defineProperty(_pl$data, 'x_PrintDesc', 'Wskazówka: Kliknij drukuj i zapisz plik PDF, nawet jeżeli nie posiadasz drukarki! '), _defineProperty(_pl$data, 'x_PrintShort', 'Drukuj '), _defineProperty(_pl$data, 'x_PrivKey', 'Klucz Prywatny (nieszyfrowany) '), _defineProperty(_pl$data, 'x_PrivKey2', 'Klucz Prywatny '), _defineProperty(_pl$data, 'x_PrivKeyDesc', 'Nieszyfrowana, tekstowa wersja Twojego klucza prywatnego, nie wymaga hasła. Jeżeli ktoś zdobędzie nieszyfrowany klucz, będzie mógł uzyskać pełen dostęp do Twojego portfela bez podania hasła. Z tego powodu zaleca się używanie jego szyfrowanej wersji. '), _defineProperty(_pl$data, 'x_Save', 'Zapisz '), _defineProperty(_pl$data, 'x_TXT', 'Plik TXT (nieszyfrowany) '), _defineProperty(_pl$data, 'x_Wallet', 'Portfel '), _defineProperty(_pl$data, 'MEW_Warning_1', 'Zawsze dokładnie sprawdzaj adres URL strony przed jej użyciem. Użycie fałszywej strony może pozbawić cię wszystkich środków! '), _defineProperty(_pl$data, 'CX_Warning_1', 'Upewnij się że posiadasz **zewnętrzne kopie bezpieczeństwa** każdego przechowywanego tu portfela. Może być wiele przyczyn utraty danych przechowywanych w tym rozszerzeniu przeglądarki Chrome, włączając w to odinstalowanie i ponowne zainstalowanie rozszerzenia. To rozszerzenie ma ułatwiać dostęp do Twoich portfeli, a **nie** służyć jako kopia bezpieczeństwa. '), _defineProperty(_pl$data, 'MEW_Tagline', 'Portfel Ethereum - Open Source, JavaScript, Client-Side '), _defineProperty(_pl$data, 'CX_Tagline', 'Portfel Ethereum, Rozszerzenie Chrome - Open Source, JavaScript, Client-Side '), _defineProperty(_pl$data, 'FOOTER_1', 'Narzędzie do generowania portfeli Ethereum i wysyłania transakcji - otwarto-źródłowe, javascrypt\'owe, strony klienta '), _defineProperty(_pl$data, 'FOOTER_1b', 'Twórcy: '), _defineProperty(_pl$data, 'FOOTER_2', 'Darowizny: '), _defineProperty(_pl$data, 'FOOTER_3', 'Generowanie portfeli po stronie klienta przez '), _defineProperty(_pl$data, 'FOOTER_4', 'Wyłączenie odpowiedzialności '), _defineProperty(_pl$data, 'sidebar_AccountInfo', 'Informacje o Koncie '), _defineProperty(_pl$data, 'sidebar_AccountAddr', 'Adres Konta '), _defineProperty(_pl$data, 'sidebar_AccountBal', 'Stan Konta '), _defineProperty(_pl$data, 'sidebar_TokenBal', 'Stan Tokenów '), _defineProperty(_pl$data, 'sidebar_Equiv', 'Ekwiwalent '), _defineProperty(_pl$data, 'sidebar_TransHistory', 'Historia Transakcji '), _defineProperty(_pl$data, 'sidebar_donation', 'MyEtherWallet jest darmową, otwarto-źródłową usługą stworzoną dla Twojej prywatności i bezpieczeństwa. Im więcej darowizn zbierzemy, tym więcej czasu będziemy w stanie poświęcić na dodawanie nowych funkcjonalności, analizowanie informacji zwrotnych oraz spełnianie waszych oczekiwań. Jesteśmy jedynie dwójką ludzi starającą się zmienić świat. Pomóż nam! '), _defineProperty(_pl$data, 'sidebar_donate', 'Prześlij darowiznę '), _defineProperty(_pl$data, 'sidebar_thanks', 'DZIĘKUJEMY!!! '), _defineProperty(_pl$data, 'sidebar_DisplayOnTrezor', 'Wyświetl adres w TREZOR'), _defineProperty(_pl$data, 'sidebar_DisplayOnLedger', 'Wyświetl adres w Ledger'), _defineProperty(_pl$data, 'decrypt_Access', 'Jak chciałbyś uzyskać dostęp do Twojego portfela? '), _defineProperty(_pl$data, 'decrypt_Title', 'Wybierz format Twojego klucza prywatnego: '), _defineProperty(_pl$data, 'decrypt_Select', 'Wybierz Portfel: '), _defineProperty(_pl$data, 'ADD_Label_1', 'Co chciałbyś zrobić? '), _defineProperty(_pl$data, 'ADD_Radio_1', 'Generuj Nowy Portfel '), _defineProperty(_pl$data, 'ADD_Radio_2', 'Wybierz Plik Portfela (Keystore / JSON) '), _defineProperty(_pl$data, 'ADD_Radio_2_alt', 'Wybierz Plik Portfela '), _defineProperty(_pl$data, 'ADD_Radio_2_short', 'WYBIERZ PLIK PORTFELA... '), _defineProperty(_pl$data, 'ADD_Radio_3', 'Wklej/Wpisz Twój Klucz Prywatny '), _defineProperty(_pl$data, 'ADD_Radio_4', 'Dodaj Konto do Obserwacji '), _defineProperty(_pl$data, 'ADD_Radio_5', 'Wklej/Wpisz Swój Mnemonik '), _defineProperty(_pl$data, 'ADD_Radio_5_Path', 'Wybierz ścieżkę portfela HD '), _defineProperty(_pl$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_pl$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_pl$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_pl$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_pl$data, 'ADD_Radio_5_PathCustom', '(Niestandardowy) '), _defineProperty(_pl$data, 'ADD_Label_2', 'Utwórz Nazwę Użytkownika: '), _defineProperty(_pl$data, 'ADD_Label_3', 'Twój portfel jest zaszyfrowany. Podaj hasło '), _defineProperty(_pl$data, 'ADD_Label_4', 'Dodaj Konto do Obserwacji '), _defineProperty(_pl$data, 'ADD_Warning_1', 'Możesz dodać dowolne konto do obserwacji bez podawania jego klucza prywatnego. ** Nie ** oznacza to, że uzyskasz dostęp do tego portfela, nie będziesz mógł również wysyłać z niego środków. '), _defineProperty(_pl$data, 'ADD_Label_5', 'Wpisz Adres '), _defineProperty(_pl$data, 'ADD_Label_6', 'Odblokuj Portfel '), _defineProperty(_pl$data, 'ADD_Label_6_short', 'Odblokuj '), _defineProperty(_pl$data, 'ADD_Label_7', 'Dodaj konto '), _defineProperty(_pl$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_pl$data, 'GEN_desc', 'Jeżeli chcesz wygenerować wiele portfeli możesz to zrobić tu '), _defineProperty(_pl$data, 'GEN_Label_1', 'Wpisz silne hasło (co najmniej 9 znaków) '), _defineProperty(_pl$data, 'GEN_Placeholder_1', 'NIE zapomnij tego hasła! '), _defineProperty(_pl$data, 'GEN_SuccessMsg', 'Sukces! Twój portfel został wygenerowany. '), _defineProperty(_pl$data, 'GEN_Label_2', 'Zapisz Twój plik Keystore lub Klucz Prywatny. Nie zapomnij powyższego hasła. '), _defineProperty(_pl$data, 'GEN_Label_3', 'Zapisz swój adres. '), _defineProperty(_pl$data, 'GEN_Label_4', 'Opcjonalnie: Wydrukuj swój Portfel Papierowy, lub zachowaj obrazek z kodem QR. '), _defineProperty(_pl$data, 'BULK_Label_1', 'Ilość Portfeli do Wygenerowania '), _defineProperty(_pl$data, 'BULK_Label_2', 'Generuj Portfele '), _defineProperty(_pl$data, 'BULK_SuccessMsg', 'Sukces! Twoje portfele zostały wygenerowane. '), _defineProperty(_pl$data, 'SEND_addr', 'Do Adresu '), _defineProperty(_pl$data, 'SEND_amount', 'Kwota do Wysłania '), _defineProperty(_pl$data, 'SEND_amount_short', 'Kwota '), _defineProperty(_pl$data, 'SEND_custom', 'Niestandardowy Token '), _defineProperty(_pl$data, 'SEND_gas', 'Paliwo '), _defineProperty(_pl$data, 'SEND_TransferTotal', 'Wyślij wszystkie środki '), _defineProperty(_pl$data, 'SEND_generate', 'Wygeneruj Transakcję '), _defineProperty(_pl$data, 'SEND_raw', 'Surowa Transakcja '), _defineProperty(_pl$data, 'SEND_signed', 'Podpisana Transakcja '), _defineProperty(_pl$data, 'SEND_trans', 'Wyślij Transakcję '), _defineProperty(_pl$data, 'SENDModal_Title', 'Ostrzeżenie! '), _defineProperty(_pl$data, 'SENDModal_Content_1', 'Wysyłasz '), _defineProperty(_pl$data, 'SENDModal_Content_2', 'do adresu '), _defineProperty(_pl$data, 'SENDModal_Content_3', 'Jesteś pewien, że chcesz to zrobić? '), _defineProperty(_pl$data, 'SENDModal_Content_4', 'NOTKA: Jeśli wystąpi błąd, najprawdopodobniej musisz doładować ether do Twojego konta, na pokrycie kosztów paliwa do wysłania tokenów. Paliwo jest opłacane w ether. '), _defineProperty(_pl$data, 'SENDModal_No', 'Nie, zabierz mnie stąd! '), _defineProperty(_pl$data, 'SENDModal_Yes', 'Tak, jestem pewien! Zatwierdź transakcję. '), _defineProperty(_pl$data, 'TOKEN_Addr', 'Adres Tokenu Kontraktu'), _defineProperty(_pl$data, 'TOKEN_Symbol', 'Symbol Tokenu '), _defineProperty(_pl$data, 'TOKEN_Dec', 'Miejsc po przecinku '), _defineProperty(_pl$data, 'TOKEN_show', 'Pokaż Wszystkie Tokeny '), _defineProperty(_pl$data, 'TOKEN_hide', 'Ukryj Tokeny '), _defineProperty(_pl$data, 'TRANS_desc', 'Jeśli chcesz wysłać Tokeny, użyj zakładki "Wyślij Tokeny". '), _defineProperty(_pl$data, 'TRANS_warning', 'Jeśli używasz funkcji "Tylko ETH" lub "Tylko ETC" wysyłasz przez kontrakt. Niektóre serwisy mają problemy z rozpoznawaniem tego typu transakcji. Czytaj dalej. '), _defineProperty(_pl$data, 'TRANS_advanced', '+Zaawansowane: Dodaj Dane '), _defineProperty(_pl$data, 'TRANS_data', 'Dane '), _defineProperty(_pl$data, 'TRANS_sendInfo', 'Standardowa transakcja, zużywająca 21000 paliwa, będzie kosztować 0.000441 ETH. My używamy ceny paliwa nieco-powyżej-minimum, co odpowiada 0.000000021 ETH aby upewnić się, że zostanie szybko zatwierdzona. Nie pobieramy żadnych dodatkowych opłat. '), _defineProperty(_pl$data, 'TRANS_gas', 'Limit Paliwa '), _defineProperty(_pl$data, 'TRANSModal_Title', 'Transakcje "Tylko ETH" i "Tylko ETC" '), _defineProperty(_pl$data, 'TRANSModal_Content_0', 'Informacje na temat różnych transakcji i różnych odbiorców: '), _defineProperty(_pl$data, 'TRANSModal_Content_1', '**ETH (Standardowa Transakcja): ** generuje standardową transakcję bezpośrednio z jednego adresu do drugiego. Domyślnie spala 21000 paliwa. Prawdopodobnie transakcja ETH zostanie powielona na łańcuchu ETC jeżeli posiadasz obie waluty na tym samym adresie. '), _defineProperty(_pl$data, 'TRANSModal_Content_2', '**Tylko ETH: ** wysyła przez [Kontrakt zapobiegający powielaniu Timon\'a Rapp\'a (zalecany przez VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), który wysyła środki tylko na łańcuchu **ETH**. '), _defineProperty(_pl$data, 'TRANSModal_Content_3', '**Tylko ETC: ** wysyła przez [Kontrakt zapobiegający powielaniu Timon\'a Rapp\'a (zalecany przez VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), który wysyła środki tylko na łańcuchu **ETC**. '), _defineProperty(_pl$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** używaj tylko Transakcji Standardowych. Jeżeli wyślesz z opcją "Tylko...", będziesz musiał skontaktować się z pomocą techniczną usługodawcy w celu manualnego zatwierdzenia środków lub ich zwrotu. Możesz też użyć [narzędzia Shapeshift](https://split.shapeshift.io/) do rozdzielenia środków. '), _defineProperty(_pl$data, 'TRANSModal_Content_5', '**Kraken i Poloniex:** nie są znane żadne utrudnienia. Używaj dowolnie. '), _defineProperty(_pl$data, 'TRANSModal_Yes', 'Super, już rozumiem. '), _defineProperty(_pl$data, 'TRANSModal_No', 'O boziu, strasznie zakręcone. Pomóżcie. '), _defineProperty(_pl$data, 'OFFLINE_Title', 'Generuj i Wyślij Transakcję Offline '), _defineProperty(_pl$data, 'OFFLINE_Desc', 'Wygenerowanie transakcji może zostać wykonane w trzech krokach. Kroki 1 i 3 wykonasz na komputerze z internetem, krok 2 na komputerze bez połączenia z internetem. To gwarantuje, że Twoje klucze prywatne nigdy nie mają styczności z urządzeniem podłączonym do internetu. '), _defineProperty(_pl$data, 'OFFLLINE_Step1_Title', 'Krok 1: Wygeneruj Informacje (Komputer Online) '), _defineProperty(_pl$data, 'OFFLINE_Step1_Button', 'Wygeneruj Informacje '), _defineProperty(_pl$data, 'OFFLINE_Step1_Label_1', 'Od Adresu '), _defineProperty(_pl$data, 'OFFLINE_Step1_Label_2', 'Notka: To jest adres NADAWCY, czyli adres Twojego konta, które starasz sie odizolować od internetu. Wyróżnik jest generowany dla tego konta. '), _defineProperty(_pl$data, 'OFFLINE_Step2_Title', 'Krok 2: Wygeneruj transakcję (Komputer Offline) '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_1', 'Do Adresu '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_2', 'Wartość / Kwota do Wysłania '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_3', 'Cena Paliwa '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_3b', 'To było wyświetlone w Kroku 1 na Komputerze Online. '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_4', 'Limit Paliwa '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_4b', 'Domyślny limit paliwa to 21000. Kiedy wysyłasz kontrakt lub załączasz dane ta wartość może być inna, nie zużyte paliwo zostanie zwrócone na Twoje konto. '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_5', 'Wyróżnik '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_5b', 'To było wyświetlone w Kroku 1 na Komputerze Online. '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_6', 'Dane '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_6b', 'Wartość opcjonalna. Dane są zazwyczaj załączane jeżeli wysyłasz transakcje do kontraktów. '), _defineProperty(_pl$data, 'OFFLINE_Step2_Label_7', 'Wpisz / Wybierz Twój Klucz Prywatny / plik JSON. '), _defineProperty(_pl$data, 'OFFLINE_Step3_Title', 'Krok 3: Wyślij / Opublikuj Transakcję (Komputer Online) '), _defineProperty(_pl$data, 'OFFLINE_Step3_Label_1', 'Wklej tu podpisaną transakcję z Kroku 2 i kliknij przycisk "WYŚLIJ TRANSAKCJĘ". '), _defineProperty(_pl$data, 'MSG_message', 'Wiadomość '), _defineProperty(_pl$data, 'MSG_date', 'Data '), _defineProperty(_pl$data, 'MSG_signature', 'Podpis '), _defineProperty(_pl$data, 'MSG_verify', 'Zweryfikuj Wiadomość '), _defineProperty(_pl$data, 'MSG_info1', 'Załącz aktualną datę, aby podpis nie mógł być ponownie wykorzystany w innym czasie. '), _defineProperty(_pl$data, 'MSG_info2', 'Załącz swój nick i napisz gdzie go wykorzystujesz, aby ktoś inny nie mógł powielić tej wiadomości. '), _defineProperty(_pl$data, 'MSG_info3', 'Opisz powód zamieszczenia wiadomości, aby nikt inny nie mógł jej wykorzystać w innym celu. '), _defineProperty(_pl$data, 'DEP_generate', 'Wygeneruj Kod Bajtowy '), _defineProperty(_pl$data, 'DEP_generated', 'Wygenerowany Kod Bajtowy '), _defineProperty(_pl$data, 'DEP_signtx', 'Podpisz Transakcję '), _defineProperty(_pl$data, 'DEP_interface', 'Wygeneruj Interfejs '), _defineProperty(_pl$data, 'MYWAL_Nick', 'Nazwa Portfela '), _defineProperty(_pl$data, 'MYWAL_Address', 'Adres Portfela '), _defineProperty(_pl$data, 'MYWAL_Bal', 'Środki '), _defineProperty(_pl$data, 'MYWAL_Edit', 'Edytuj '), _defineProperty(_pl$data, 'MYWAL_View', 'Podgląd '), _defineProperty(_pl$data, 'MYWAL_Remove', 'Usuń '), _defineProperty(_pl$data, 'MYWAL_RemoveWal', 'Usuń Portfel: '), _defineProperty(_pl$data, 'MYWAL_WatchOnly', 'Twoje Konta Tylko-do-Podglądu '), _defineProperty(_pl$data, 'MYWAL_Viewing', 'Podgląd Portfela '), _defineProperty(_pl$data, 'MYWAL_Hide', 'Ukryj Dane Portfela '), _defineProperty(_pl$data, 'MYWAL_Edit_2', 'Edytuj Portfel '), _defineProperty(_pl$data, 'MYWAL_Name', 'Nazwa Portfela '), _defineProperty(_pl$data, 'MYWAL_Content_1', 'Uwaga! Zaraz usuniesz swój portfel '), _defineProperty(_pl$data, 'MYWAL_Content_2', 'Upewnij się, że **zapisałeś klucz prywatny/plik Keystore i hasło** powiązane z tym portfelem zanim je usuniesz. '), _defineProperty(_pl$data, 'MYWAL_Content_3', 'Jeśli będziesz chciał w przyszłości używać ten portfel ze swoim MyEtherWallet CX, będziesz musiał go ponownie dodać używając klucza prywatnego/pliku JSON i hasła. '), _defineProperty(_pl$data, 'VIEWWALLET_Subtitle', 'Ta zakładka pozwoli Ci na odczyt kluczy prywatnych, pobranie kopii portfeli oraz wydrukowanie portfeli papierowych. Pobrane za jej pomocą portfele możesz [zaimportować do Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Jeśli chcesz sprawdzić stan Twojego konta, zalecamy użyć eksploratora bloków np. [etherscan.io](https://etherscan.io/). '), _defineProperty(_pl$data, 'VIEWWALLET_Subtitle_Short', 'Ta zakładka pozwala Ci na pobranie różnych typów kluczy prywatnych oraz ponowne wydrukowanie portfeli papierowych. '), _defineProperty(_pl$data, 'VIEWWALLET_SuccessMsg', 'Sukces! Oto dane twojego portfela. '), _defineProperty(_pl$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_pl$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_pl$data, 'MNEM_1', 'Wybierz adres, którego chcesz użyć. '), _defineProperty(_pl$data, 'MNEM_2', 'Jedna grupa słów mnemonicznych ma dostęp do wielu portfeli / adresów. Wybierz adres, do którego chcesz uzyskać dostęp tym razem. '), _defineProperty(_pl$data, 'MNEM_more', 'Więcej Adresów '), _defineProperty(_pl$data, 'MNEM_prev', 'Poprzednie Adresy '), _defineProperty(_pl$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_pl$data, 'ADD_Ledger_1', 'Podłącz swój Ledger Wallet '), _defineProperty(_pl$data, 'ADD_Ledger_2', 'Otwórz aplikację Ethereum (lub aplikację kontraktu) '), _defineProperty(_pl$data, 'ADD_Ledger_2_Exp', 'Otwórz aplikację Expanse (lub aplikację kontraktu) '), _defineProperty(_pl$data, 'ADD_Ledger_2_Ubq', 'Otwórz aplikację Ubiq (lub aplikację kontraktu) '), _defineProperty(_pl$data, 'ADD_Ledger_3', 'Sprawdź czy opcja Obsługa Przeglądarki jest włączona w Ustawieniach '), _defineProperty(_pl$data, 'ADD_Ledger_4', 'Jeżeli w ustawieniach brak jest opcji Obsługa Przeglądarki, sprawdź czy masz [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_pl$data, 'ADD_Ledger_0a', 'Otwórz MyEtherWallet ponownie na bezpiecznym połączeniu (SSL) '), _defineProperty(_pl$data, 'ADD_Ledger_0b', 'Otwórz MyEtherWallet w [Chrome](https://www.google.com/chrome/browser/desktop/) lub [Opera](https://www.opera.com/) '), _defineProperty(_pl$data, 'ADD_Ledger_scan', 'Połącz z Ledger Wallet '), _defineProperty(_pl$data, 'ADD_MetaMask', 'Połącz z MetaMask '), _defineProperty(_pl$data, 'x_Trezor', 'TREZOR '), _defineProperty(_pl$data, 'ADD_Trezor_scan', 'Połącz z TREZOR '), _defineProperty(_pl$data, 'ADD_Trezor_select', 'To jest ziarno (seed) TREZOR'), _defineProperty(_pl$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_pl$data, 'ADD_DigitalBitbox_0a', 'Otwórz MyEtherWallet ponownie na bezpiecznym połączeniu (SSL) '), _defineProperty(_pl$data, 'ADD_DigitalBitbox_0b', 'Otwórz MyEtherWallet w [Chrome](https://www.google.com/chrome/browser/desktop/) lub [Opera](https://www.opera.com/) '), _defineProperty(_pl$data, 'ADD_DigitalBitbox_scan', 'Połącz z Digital Bitbox '), _defineProperty(_pl$data, 'CX_error_1', 'Nie posiadasz żadnych zapisanych portfeli. ["Dodaj Portfel"](/cx-wallet.html#add-wallet)! '), _defineProperty(_pl$data, 'CX_quicksend', 'Wyślij '), _defineProperty(_pl$data, 'NODE_Title', 'Zmień Domyślny Węzeł'), _defineProperty(_pl$data, 'NODE_Subtitle', 'Aby połączyć się z lokalnym węzłem...'), _defineProperty(_pl$data, 'NODE_Warning', 'Twój węzeł musi obsługiwać HTTPS, aby można było się połączyć z nim przez MyEtherWallet.com. Możesz pobrać [repozytorium MyEtherWallet](https://github.com/kvhnuke/etherwallet/releases/latest) i uruchomić lokalnie aby połączyć się z dowolnym węzłem. Możesz też pobrać darmowy certyfikat SSL przez [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_pl$data, 'NODE_Name', 'Nazwa Węzła'), _defineProperty(_pl$data, 'NODE_Port', 'Port Węzła'), _defineProperty(_pl$data, 'NODE_CTA', 'Zapisz i Używaj Węzła'), _defineProperty(_pl$data, 'CONTRACT_Title', 'Adres Kontraktu '), _defineProperty(_pl$data, 'CONTRACT_Title_2', 'Wybierz Istniejący Kontrakt '), _defineProperty(_pl$data, 'CONTRACT_Json', 'Interfejs ABI / JSON '), _defineProperty(_pl$data, 'CONTRACT_Interact_Title', 'Odczytaj / Zapisz Kontrakt '), _defineProperty(_pl$data, 'CONTRACT_Interact_CTA', 'Wybierz funkcję '), _defineProperty(_pl$data, 'CONTRACT_ByteCode', 'Kod Bajtowy '), _defineProperty(_pl$data, 'CONTRACT_Read', 'ODCZYTAJ '), _defineProperty(_pl$data, 'CONTRACT_Write', 'ZAPISZ '), _defineProperty(_pl$data, 'SWAP_rates', "Aktualne Kursy "), _defineProperty(_pl$data, 'SWAP_init_1', "Chcę wymienić "), _defineProperty(_pl$data, 'SWAP_init_2', " na "), _defineProperty(_pl$data, 'SWAP_init_CTA', "Zatwierdź! "), _defineProperty(_pl$data, 'SWAP_information', "Dane transakcji "), _defineProperty(_pl$data, 'SWAP_send_amt', "Kwota zlecenia "), _defineProperty(_pl$data, 'SWAP_rec_amt', "Otrzymasz "), _defineProperty(_pl$data, 'SWAP_your_rate', "Kurs wymiany "), _defineProperty(_pl$data, 'SWAP_rec_add', "Twój Adres Odbiorczy "), _defineProperty(_pl$data, 'SWAP_start_CTA', "Rozpocznij Wymianę "), _defineProperty(_pl$data, 'SWAP_ref_num', "Twój numer referencyjny "), _defineProperty(_pl$data, 'SWAP_time', "Pozostały czas na wysyłkę "), _defineProperty(_pl$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_pl$data, 'SWAP_progress_1', "Zlecenie Rozpoczęte "), _defineProperty(_pl$data, 'SWAP_progress_2', "Oczekiwanie na Twoje "), _defineProperty(_pl$data, 'SWAP_progress_3', "Otrzymano! "), _defineProperty(_pl$data, 'SWAP_progress_4', "Wysyłanie Twoich {{orderResult.output.currency}} "), _defineProperty(_pl$data, 'SWAP_progress_5', "Zlecenie Zakończone "), _defineProperty(_pl$data, 'SWAP_order_CTA', "Wyślij "), _defineProperty(_pl$data, 'SWAP_unlock', "Odblokuj Twój portfel, aby wysłać ETH lub Tokeny wprost z tej strony. "), _defineProperty(_pl$data, 'ERROR_0', 'Wprowadź prawidłową kwotę. '), _defineProperty(_pl$data, 'ERROR_1', 'Twoje hasło musi zawierać co najmniej 9 znaków. Upewnij się, że jest to silne hasło. '), _defineProperty(_pl$data, 'ERROR_2', 'Przykro nam! Nie rozpoznajemy tego formatu pliku portfela. '), _defineProperty(_pl$data, 'ERROR_3', 'To nie jest prawidłowy plik portfela. '), _defineProperty(_pl$data, 'ERROR_4', 'Ta jednostka nie istnieje, użyj jednej z następujących jednostek '), _defineProperty(_pl$data, 'ERROR_5', 'Błędny adres. '), _defineProperty(_pl$data, 'ERROR_6', 'Błędne hasło. '), _defineProperty(_pl$data, 'ERROR_7', 'Błędna wartość. (Must be integer. Try 0-18.) '), _defineProperty(_pl$data, 'ERROR_8', 'Błędny limit paliwa. (Must be integer. Try 21000-4000000.) '), _defineProperty(_pl$data, 'ERROR_9', 'Błędne dane. (Must be hex.) '), _defineProperty(_pl$data, 'ERROR_10', 'Błędna ilość paliwa. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_pl$data, 'ERROR_11', 'Błędny wyróżnik. (Must be integer.) '), _defineProperty(_pl$data, 'ERROR_12', 'Błąd podpisu transakcji. '), _defineProperty(_pl$data, 'ERROR_13', 'Portfel z tą nazwą już istnieje. '), _defineProperty(_pl$data, 'ERROR_14', 'Nie znaleziono portfela. '), _defineProperty(_pl$data, 'ERROR_15', 'Wygląda, że propozycja z tym ID jeszcze nie istnieje, lub wystąpił błąd odczytu tej propozycji. '), _defineProperty(_pl$data, 'ERROR_16', 'Portfel z tym adresem już istnieje w konfiguracji. Sprawdź zakładkę portfeli. '), _defineProperty(_pl$data, 'ERROR_17', 'Niewystarczające środki. Konto, z którego wysyłasz transakcję nie posiada wystarczających funduszy. Musisz mieć **0.01 ETH** na koncie, aby pokryć koszty paliwa. Doładuj konto i spróbuj ponownie. '), _defineProperty(_pl$data, 'ERROR_18', 'Całe paliwo było by zużyte w tej transakcji. Oznacza to, że głosowałeś już w tej propozycji albo minął termin głosowania. '), _defineProperty(_pl$data, 'ERROR_19', 'Nieprawidłowy symbol '), _defineProperty(_pl$data, 'ERROR_20', 'nie jest prawidłowym tokenem ERC-20. Jeśli inne tokeny się ładują, sporóbuj usunąć i dodać ponownie ten token. '), _defineProperty(_pl$data, 'ERROR_21', 'Nie można określić ilości paliwa. Brak wystarczających środków na koncie lub adres docelowego kontraktu zwróciłby błąd. Możesz ręcznie ustawić paliwo przed kontynuacją. Opis błędu po wysłaniu transakcji może dostarczyć więcej informacji. '), _defineProperty(_pl$data, 'ERROR_22', 'Wpisz poprawną nazwę węzła '), _defineProperty(_pl$data, 'ERROR_23', 'Wpisz poprawny adres URL. Jeśli łączysz się przez HTTPS, twój węzeł musi być za HTTPS '), _defineProperty(_pl$data, 'ERROR_24', 'Wpisz prawidłowy port '), _defineProperty(_pl$data, 'ERROR_25', 'Wpisz poprawny ID łańcucha (chain ID) '), _defineProperty(_pl$data, 'ERROR_26', 'Wpisz poprawny ABI ABI '), _defineProperty(_pl$data, 'ERROR_27', 'Minimalna Kwota: 0.01. Maksymalna Kwota: '), _defineProperty(_pl$data, 'ERROR_28', '**Potrzebujesz plik Keystore i hasło, lub Klucz Prywatny** aby uzyskać dostęp do tego portfela w przyszłości. Wykonaj zewnętrzną kopię bezpieczeństwa! Nie ma możliwości odzyskania portfela jeżeli go nie zapiszesz. Wejdź na [stronę pomocy](https://www.myetherwallet.com/#help) po instrukcje. '), _defineProperty(_pl$data, 'ERROR_29', 'Wpisz poprawny login i hasło '), _defineProperty(_pl$data, 'ERROR_30', 'Wpisz poprawną nazwę ENS '), _defineProperty(_pl$data, 'ERROR_31', 'Błędna tajna fraza (secret phrase) '), _defineProperty(_pl$data, 'ERROR_32', 'Nie można połączyć z węzłem. Odśwież stronę, spróbuj inny węzeł (w prawym górnym rogu), sprawdź swoje ustawienia firewall. Jeśli łączysz się z węzłem niestandardowym, sprawdź konfigurację.'), _defineProperty(_pl$data, 'ERROR_33', 'Odblokowany portfel nie zgadza się z adresem właściciela. '), _defineProperty(_pl$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_pl$data, 'ERROR_35', 'Wprowadzony adres nie jest sprawdzony (checksummed). <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> Więcej informacji</a>'), _defineProperty(_pl$data, 'ERROR_36', 'Wprowadź poprawny TX hash'), _defineProperty(_pl$data, 'ERROR_37', 'Wprowadź poprawny ciąg znaków (0-9, a-f)'), _defineProperty(_pl$data, 'SUCCESS_1', 'Prawidłowy adres '), _defineProperty(_pl$data, 'SUCCESS_2', 'Portfel został odszyfrowany '), _defineProperty(_pl$data, 'SUCCESS_3', 'Twoja transakcja została zgłoszona i czeka na potwierdzenie. Podczas ICO może to zająć ponad 3 godziny. Użyj przycisków poniżej żeby sprawdzić status transakcji. TX Hash: '), _defineProperty(_pl$data, 'SUCCESS_4', 'Twój portfel został dodany '), _defineProperty(_pl$data, 'SUCCESS_5', 'Wybrany plik '), _defineProperty(_pl$data, 'SUCCESS_6', 'Uzyskano połączenie: '), _defineProperty(_pl$data, 'SUCCESS_7', 'Zweryfikowano Sygnaturę Wiadomości'), _defineProperty(_pl$data, 'WARN_Send_Link', 'Znalazłeś się tu przez odnośnik, który zawiera wstępnie uzupełniony adres, kwotę, paliwo lub dane transakcji. Możesz zmienić dowolne parametry transakcji zanim ją zatwierdzisz. Odblokuj portfel aby kontynuować. '), _defineProperty(_pl$data, 'GETH_InvalidSender', 'Nieprawidłowy nadawca '), _defineProperty(_pl$data, 'GETH_Nonce', 'Wyróżnik transakcji za niski '), _defineProperty(_pl$data, 'GETH_Cheap', 'Cena paliwa poniżej akceptacji '), _defineProperty(_pl$data, 'GETH_Balance', 'Niewystarczająca ilość środków na koncie '), _defineProperty(_pl$data, 'GETH_NonExistentAccount', 'Konto nie istnieje lub niewystarczająca ilość środków '), _defineProperty(_pl$data, 'GETH_InsufficientFunds', 'Niewystarczająca ilość środków na paliwo * cena + kwota '), _defineProperty(_pl$data, 'GETH_IntrinsicGas', 'Paliwo poniżej ilości obowiązkowej '), _defineProperty(_pl$data, 'GETH_GasLimit', 'Przekroczono limit paliwa na blok '), _defineProperty(_pl$data, 'GETH_NegativeValue', 'Ujemna wartość '), _defineProperty(_pl$data, 'PARITY_AlreadyImported', "Transakcja z takim samym hash'em została już zaimportowana."), _defineProperty(_pl$data, 'PARITY_Old', "Wyróżnik transakcji za niski. Spróbuj zwiększyć wartość wyróżnika."), _defineProperty(_pl$data, 'PARITY_TooCheapToReplace', "Za niska opłata transakcyjna. Inna transakcja z tym samym wyróżnikiem znajduje się już w kolejce. Spróbuj dołączyć wyższą opłatę lub zwiększ wyróżnik transakcji."), _defineProperty(_pl$data, 'PARITY_LimitReached', "Zbyt wiele transakcji w kolejce. Twoja transakcja została odrzucona ze względu na limity. Spróbuj dołączyć wyższą opłatę transakcyjną."), _defineProperty(_pl$data, 'PARITY_InsufficientGasPrice', "Za niska opłata transakcyjna. Opłata jest niższa niż minimalnie wymaga węzeł (minimum: {}, dołączono: {}). Spróbuj dołączyć wyższą opłatę transakcyjną."), _defineProperty(_pl$data, 'PARITY_InsufficientBalance', "Niewystarczające środki. Konto, z którego wysyłasz transakcję nie posiada wystarczających funduszy. Wymaga: {}, otrzymano: {}."), _defineProperty(_pl$data, 'PARITY_GasLimitExceeded', "Koszt transakcji przekracza bieżący limit paliwa. Limit: {}, otrzymano: {}. Spróbuj zmniejszyć ilość paliwa."), _defineProperty(_pl$data, 'PARITY_InvalidGasLimit', "Dostarczone paliwo wykracza ponad limit."), _defineProperty(_pl$data, 'translate_version', '3.0 (0.3) '), _defineProperty(_pl$data, 'Translator_Desc', 'Podziękowania tłumaczom '), _defineProperty(_pl$data, 'TranslatorName_1', '[egzi](?to=0xef39C3C51615B6e52e7D5B743BeaecdDcA822386&value=1.0#send-transaction) '), _defineProperty(_pl$data, 'TranslatorAddr_1', '0xef39C3C51615B6e52e7D5B743BeaecdDcA822386 '), _defineProperty(_pl$data, 'TranslatorName_2', ''), _defineProperty(_pl$data, 'TranslatorAddr_2', ''), _defineProperty(_pl$data, 'TranslatorName_3', ''), _defineProperty(_pl$data, 'TranslatorAddr_3', ''), _defineProperty(_pl$data, 'TranslatorName_4', ''), _defineProperty(_pl$data, 'TranslatorAddr_4', ''), _defineProperty(_pl$data, 'TranslatorName_5', ''), _defineProperty(_pl$data, 'TranslatorAddr_5', ''), _defineProperty(_pl$data, 'HELP_Warning', 'Jeśli wygenerowałeś portfel -lub- ściągnąłeś repozytorium przed **31.12.2015**, sprawdź swoje portfele i ściągnij nową wersję repozytorium. Kliknij po szczegóły. '), _defineProperty(_pl$data, 'HELP_Desc', 'Widzisz jakieś braki? Masz inne pytania? [Skontaktuj się z nami (tylko angielski)](mailto:support@myetherwallet.com), postaramy się odpowiedzieć, pomoże to nam również uaktualnić stronę aby w przyszłości była bardziej pomocna dla innych! '), _defineProperty(_pl$data, 'HELP_Remind_Title', 'W ramach uściślenia '), _defineProperty(_pl$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com i MyEtherWallet CX, jak również niektóre bazowe biblioteki Javascript, których używamy, są wciąż aktywnie rozwijane.** Pomimo tego, że dokładnie testujemy nasze oprogramowanie, pomimo że dziesiątki tysięcy portfeli zostało z powodzeniem wygenerowane przez użytkowników na całym świecie, zawsze istnieje pewne znikome prawdopodobieństwo, że nastąpi coś nieoczekiwanego, co spowoduje utratę Twoich środków. Nie inwestuj więc więcej niż jesteś gotów stracić i bądź ostrożny. Gdyby coś takiego się wydarzyło, będzie nam przykro, ale **nie weźmiemy za to odpowiedzialności**. '), _defineProperty(_pl$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com i MyEtherWallet CX nie są "portfelami internetowymi". Nie tworzysz kont internetowych i nie przekazujesz nam Twoich środków na przechowanie. W żadnym momencie Twoje klucze prywatne nie opuszczają Twojej przeglądarki/komputera. My jedynie ułatwiamy Ci tworzenie, zapisywanie, dostęp do twoich danych i interakcję z siecią Ethereum. '), _defineProperty(_pl$data, 'HELP_Remind_Desc_3', 'Jeśli utracisz swój klucz prywatny lub zapomnisz hasło, nie będzie możliwości odzyskania dostępu do Twojego portfela oraz środków tam zgromadzonych. Wykonaj kopie bezpieczeństwa i przechowuj je w wielu fizycznie niezależnych miejscach, nie tylko na Twoim komputerze! '), _defineProperty(_pl$data, 'HELP_0_Title', '0) Jestem zielony. Od czego mam zacząć? '), _defineProperty(_pl$data, 'HELP_0_Desc_1', 'MyEtherWallet daje Ci możliwość generowania nowych portfeli abyś mógł przechowywać własne środki samodzielnie, nie na portalu wymiany walut. Ten proces odbywa się w całości na Twoim komputerze, nie na naszych serwerach. Z tego powodu, gdy generujesz nowy portfel, **to Ty jesteś odpowiedzialny za jego bezpieczne przechowywanie**. '), _defineProperty(_pl$data, 'HELP_0_Desc_2', 'Wygeneruj nowy portfel. '), _defineProperty(_pl$data, 'HELP_0_Desc_3', 'Wykonaj kopię bezpieczeństwa. '), _defineProperty(_pl$data, 'HELP_0_Desc_4', 'Zweryfikuj, że masz dostęp do właśnie stworzonego portfela oraz że prawidłowo zachowałeś wszystkie niezbędne informacje. '), _defineProperty(_pl$data, 'HELP_0_Desc_5', 'Prześlij środki do nowo utworzonego portfela. '), _defineProperty(_pl$data, 'HELP_1_Title', '1) Jak mam utworzyć nowy portfel? '), _defineProperty(_pl$data, 'HELP_1_Desc_1', 'Przejdź na zakładkę "Wygeneruj Portfel". '), _defineProperty(_pl$data, 'HELP_1_Desc_2', 'Przejdź na zakładkę "Dodaj Portfel" i zaznacz "Generuj Nowy Portfel" '), _defineProperty(_pl$data, 'HELP_1_Desc_3', 'Wpisz silne hasło. Jeśli uważasz, że mógłbyś je zapomnieć, zapisz je w jakimś bezpiecznym miejscu. Będziesz potrzebować tego hasła aby wysyłać transakcje. '), _defineProperty(_pl$data, 'HELP_1_Desc_4', 'Kliknij "GENERUJ". '), _defineProperty(_pl$data, 'HELP_1_Desc_5', 'Twój nowy portfel został właśnie wygenerowany. '), _defineProperty(_pl$data, 'HELP_2a_Title', 'Jak mam zapisać/wykonać kopię mojego portfela? '), _defineProperty(_pl$data, 'HELP_2a_Desc_1', 'Zawsze powinieneś wykonać zewnętrzną kopię bezpieczeństwa w wielu fizycznie niezależnych lokalizacjach - na przykład na nośniku USB i/lub kartce papieru. '), _defineProperty(_pl$data, 'HELP_2a_Desc_2', 'Zapisz swój adres. Możesz zachować go dla siebie lub udostępnić go innym. Inne osoby znając ten adres mogą Ci na niego wysyłać środki. '), _defineProperty(_pl$data, 'HELP_2a_Desc_3', 'Zachowaj klucz prywatny w przynajmniej jednym formacie. Nie udostępniaj go nikomu. Klucz prywatny będzie Ci potrzebny, jeśli będziesz chciał uzyskać dostęp do Twojego portfela i wysyłać z niego środki! Istnieją 3 formaty zapisu kluczy prywatnych: '), _defineProperty(_pl$data, 'HELP_2a_Desc_4', 'Umieść adres portfela, klucz prywatny i PDF z papierową wersją portfela w jednym folderze. Zapisz ten folder na komputerze i na nośniku USB. '), _defineProperty(_pl$data, 'HELP_2a_Desc_5', 'Wydrukuj portfel jeżeli posiadasz drukarkę. Jeżeli nie, zapisz klucz prywatny i adres na kartce papieru. Umieść go w bezpiecznym miejscu oddzielnie od komputera i nośnika USB. '), _defineProperty(_pl$data, 'HELP_2a_Desc_6', 'Pamiętaj, że musisz się zabezpieczyć przed utratą kluczy i hasła z powodu zagubienia, uszkodzenia lub zniszczenia dysku twardego, nośnika USB lub kartki z zapisanymi danymi. Przewiduj również możliwość wystąpienia katastrof obejmujących większe obszary (pożar, powódź). '), _defineProperty(_pl$data, 'HELP_2b_Title', '2b) Jak mogę utworzyć portfel w 100% odizolowany od sieci globalnej (Cold Wallet) wykorzystując MyEtherWallet? '), _defineProperty(_pl$data, 'HELP_2b_Desc_1', 'Wejdź na nasze konto github: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_pl$data, 'HELP_2b_Desc_2', 'Pobierz `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_pl$data, 'HELP_2b_Desc_3', 'Przenieś paczkę zip na odizolowany system. '), _defineProperty(_pl$data, 'HELP_2b_Desc_4', 'Rozpakuj paczkę i kliknij 2-krotnie `index.html`. '), _defineProperty(_pl$data, 'HELP_2b_Desc_5', 'Wygeneruj portfel przy użyciu silnego hasła. '), _defineProperty(_pl$data, 'HELP_2b_Desc_6', 'Zapisz adres. Zapisz klucz prywatny. Zapisz hasło jeżeli nie jesteś w stanie go zapamiętać po wsze czasy. '), _defineProperty(_pl$data, 'HELP_2b_Desc_7', 'Zapisz kopie zapasowe w formie papierowej lub na nośniku USB w wielu fizycznie odseparowanych lokalizacjach. '), _defineProperty(_pl$data, 'HELP_2b_Desc_8', 'Przejdź na zakładkę "Wyświetl informacje o portfelu" wprowadź klucz prywatny / hasło aby upewnić się, że są poprawne i odczytaj swój portfel. Sprawdź czy adres, który zapisałeś zgadza się z wyświetlonym. '), _defineProperty(_pl$data, 'HELP_3_Title', '3) Jak zweryfikować czy mam dostęp do portfela? '), _defineProperty(_pl$data, 'HELP_3_Desc_1', '**Zanim wyślesz jakieś środki do Twojego nowego portfela** powinieneś się upewnić, że masz do niego dostęp. '), _defineProperty(_pl$data, 'HELP_3_Desc_2', 'Przejdź na zakładkę "Wyświetl informacje o portfelu". '), _defineProperty(_pl$data, 'HELP_3_Desc_3', 'Przejdź na zakładkę "Wyświetl informacje o portfelu" na stronie MyEtherWallet.com. '), _defineProperty(_pl$data, 'HELP_3_Desc_4', 'Wybierz Twój plik portfela -lub- klucz prywatny i odblokuj portfel. '), _defineProperty(_pl$data, 'HELP_3_Desc_5', 'Jeżeli portfel jest szyfrowany automatycznie wyświetli się okienko tekstowe. Wpisz w nim hasło. '), _defineProperty(_pl$data, 'HELP_3_Desc_6', 'Kliknij przycisk "Odblokuj Portfel". '), _defineProperty(_pl$data, 'HELP_3_Desc_7', 'Informacje o Twoim portfelu powinny się wyświetlić. Odszukaj adres Twojego portfela obok okrągłej kolorowej ikonki. Ta ikona to wizualna reprezentacja adresu Twojego portfela. Upewnij się, że adres odpowiada adresowi zapisanemu w dokumencie tekstowym i na portfelu papierowym. '), _defineProperty(_pl$data, 'HELP_3_Desc_8', 'Jeśli planujesz trzymać w portfelu jakieś większe sumy, zalecamy w pierwszej kolejności wykonanie kilku testowych transakcji o mniejszej wartości. Prześlij do Twojego nowego portfela 0.001 ether, wejdź do portfela, prześlij te 0.001 ether na inny adres i upewnij się, że wszystko przebiegło jak należy. '), _defineProperty(_pl$data, 'HELP_4_Title', '4) Jak wysłać Ether z jednego portfela na inny? '), _defineProperty(_pl$data, 'HELP_4_Desc_1', 'Jeżeli planujesz przesłać większą sumę środków, najpierw powinieneś wysłać mniejszą kwotę, aby upewnić się, że wszystko przebiegło zgodnie z planem. '), _defineProperty(_pl$data, 'HELP_4_Desc_2', 'Przejdź na zakładkę "Wyślij Ether". '), _defineProperty(_pl$data, 'HELP_4_Desc_3', 'Wybierz Twój plik portfela -lub- wpisz klucz prywatny i odblokuj portfel. '), _defineProperty(_pl$data, 'HELP_4_Desc_4', 'Jeżeli portfel jest szyfrowany, automatycznie wyświetli się okienko tekstowe. Wpisz w nim hasło. '), _defineProperty(_pl$data, 'HELP_4_Desc_5', 'Kliknij przycisk "Odblokuj Portfel". '), _defineProperty(_pl$data, 'HELP_4_Desc_6', 'Wpisz adres, na który chcesz przesłać środki w pole "Do adresu:". '), _defineProperty(_pl$data, 'HELP_4_Desc_7', 'Wpisz kwotę do wysyłania. Możesz też kliknąć "Wyślij wszystkie dostępne środki", jeśli chcesz przesłać całą dostępną kwotę. '), _defineProperty(_pl$data, 'HELP_4_Desc_9', 'Kliknij "Wygeneruj i Podpisz Transakcję". '), _defineProperty(_pl$data, 'HELP_4_Desc_10', 'Pojawi się kilka kolejnych pól. Są to dane transakcji wygenerowane przez Twoją przeglądarkę. '), _defineProperty(_pl$data, 'HELP_4_Desc_11', 'Kliknij niebieski przycisk "Wyślij Transakcję" na dole strony. '), _defineProperty(_pl$data, 'HELP_4_Desc_12', 'Pojawi się okienko z potwierdzeniem. Zweryfikuj czy kwota i adres, na który wysyłasz są prawidłowe. Następnie kliknij "Tak, jestem pewien! Zatwierdź Transakcję.". '), _defineProperty(_pl$data, 'HELP_4_Desc_13', 'Transakcja zostanie wysłana i zostanie wyświetlony TX Hash. Możesz kliknąć TX Hash, aby zobaczyć tą transakcję w eksploratorze bloków. '), _defineProperty(_pl$data, 'HELP_4CX_Title', '4)Jak wysłać Ether używając MyEtherWallet CX? '), _defineProperty(_pl$data, 'HELP_4CX_Desc_1', 'Najpierw musisz dodać portfel. Po dodaniu portfela masz 2 możliwości do wyboru: funkcja "Wyślij" z ikony Rozszerzenia Chrome lub zakładka "Wyślij Ether" ze strony "Moje Portfele". '), _defineProperty(_pl$data, 'HELP_4CX_Desc_2', 'Wyślij: '), _defineProperty(_pl$data, 'HELP_4CX_Desc_3', 'Kliknij ikonę Rozszerzenia Chrome. '), _defineProperty(_pl$data, 'HELP_4CX_Desc_4', 'Kliknij przycisk "Wyślij". '), _defineProperty(_pl$data, 'HELP_4CX_Desc_5', 'Wybierz portfel, z którego chcesz wysłać środki. '), _defineProperty(_pl$data, 'HELP_4CX_Desc_6', 'Wpisz adres, do którego chcesz wysłać środki w pole "Do Adresu:". '), _defineProperty(_pl$data, 'HELP_4CX_Desc_7', 'Wpisz kwotę do wysłania. Możesz również kliknąć "Wyślij wszystkie dostępne środki" jeśli chcesz przesłać całą dostępną kwotę. '), _defineProperty(_pl$data, 'HELP_4CX_Desc_8', 'Kliknij "Wyślij Transakcję". '), _defineProperty(_pl$data, 'HELP_4CX_Desc_9', 'Zweryfikuj czy kwota i adres na który wysyłasz są prawidłowe. '), _defineProperty(_pl$data, 'HELP_4CX_Desc_10', 'Wpisz hasło do tego portfela. '), _defineProperty(_pl$data, 'HELP_4CX_Desc_11', 'Kliknij "Wyślij Transakcję." '), _defineProperty(_pl$data, 'HELP_4CX_Desc_12', 'Używając zakładki "Wyślij Ether" '), _defineProperty(_pl$data, 'HELP_5_Title', '5) Jak uruchomić MyEtherWallet offline/lokalnie? '), _defineProperty(_pl$data, 'HELP_5_Desc_1', 'Możesz uruchomić MyEtherWallet lokalnie ze swojego komputera zamiast z serwerów GitHub\'a. Możesz wygenerować portfel całkowicie offline\'owo i wysyłać transakcje z zakładki "Wyślij offline". '), _defineProperty(_pl$data, 'HELP_5_Desc_7', 'MyEtherWallet działa teraz w całości na Twoim komputerze. '), _defineProperty(_pl$data, 'HELP_5_Desc_8', 'W razie gdybyś nie wiedział, musisz zachować cały folder, aby strona działała prawidłowo, nie tylko `index.html`. Nie ruszaj i nie przenoś nic innego w folderze. Jeżeli zachowujesz kopie repozytorium MyEtherWallet na przyszłość, zalecamy przechowywać je w formie spakowanego pliku ZIP, aby mieć pewność, że jego zawartość się nie zmieniła. '), _defineProperty(_pl$data, 'HELP_5_Desc_9', 'Ponieważ ciągle aktualizujemy MyEtherWallet, zalecamy co jakiś czas aktualizować zapisaną wersję repozytorium. '), _defineProperty(_pl$data, 'HELP_5CX_Title', '5) Jak mogę zainstalować to rozszerzenie z repozytorium, zamiast z Chrome Web Store? '), _defineProperty(_pl$data, 'HELP_5CX_Desc_2', 'Pobierz `chrome-extension-vX.X.X.X.zip`. '), _defineProperty(_pl$data, 'HELP_5CX_Desc_3', 'Wejdź w ustawienia przeglądarki Google Chrome (w menu w górnym prawym rogu). '), _defineProperty(_pl$data, 'HELP_5CX_Desc_4', 'Kliknij "Rozszerzenia" po lewej. '), _defineProperty(_pl$data, 'HELP_5CX_Desc_5', 'Kliknij "Tryb programisty" na górze strony. '), _defineProperty(_pl$data, 'HELP_5CX_Desc_6', 'Kliknij przycisk "Wczytaj rozszerzenie bez pakietu...". '), _defineProperty(_pl$data, 'HELP_5CX_Desc_7', 'Nawiguj do rozpakowanego folderu, który ściągnąłeś wcześniej. Kliknij "OK". '), _defineProperty(_pl$data, 'HELP_5CX_Desc_8', 'Rozszerzenie powinno się pojawić na liście i w pasku rozszerzeń przeglądarki Chrome. '), _defineProperty(_pl$data, 'HELP_7_Title', '7) Jak się wysyła Tokeny i jak tworzyć własne Tokeny? '), _defineProperty(_pl$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) jest świetnym miejscem na przeglądanie tokenów oraz sprawdzenia ich ilości miejsc po przecinku. '), _defineProperty(_pl$data, 'HELP_7_Desc_1', 'Przejdź na zakładkę "Wyślij Ether i Tokeny". '), _defineProperty(_pl$data, 'HELP_7_Desc_2', 'Odblokuj portfel. '), _defineProperty(_pl$data, 'HELP_7_Desc_3', 'Wpisz adres, na który chcesz je przesłać w pole "Do Adresu:". '), _defineProperty(_pl$data, 'HELP_7_Desc_4', 'Wpisz wartość jaką chcesz wysłać. '), _defineProperty(_pl$data, 'HELP_7_Desc_5', 'Wybierz typ tokena, który chcesz wysłać. '), _defineProperty(_pl$data, 'HELP_7_Desc_6', 'Jeśli nie widzisz danego tokena: '), _defineProperty(_pl$data, 'HELP_7_Desc_7', 'Kliknij "Inny". '), _defineProperty(_pl$data, 'HELP_7_Desc_8', 'Wpisz adres, symbol i ilość miejsc po przecinku tokena. Wartości te są podawane przez twórców tokena, są również potrzebne podczas dodawania tokena do obserwowanych w aplikacji Mist. '), _defineProperty(_pl$data, 'HELP_7_Desc_9', 'Kliknij "Zapisz". '), _defineProperty(_pl$data, 'HELP_7_Desc_10', 'Możesz teraz wysyłać ten token, jak również odczytać stan konta dla tokenu w kolumnie obok. '), _defineProperty(_pl$data, 'HELP_7_Desc_11', 'Kliknij "Generuj Transakcję". '), _defineProperty(_pl$data, 'HELP_7_Desc_12', 'Pojawi się kilka kolejnych pól z danymi transakcji wygenerowanymi przez Twoją przeglądarkę. '), _defineProperty(_pl$data, 'HELP_7_Desc_13', 'Kliknij niebieski przycisk "Wyślij Transakcję", który znajduje się niżej. '), _defineProperty(_pl$data, 'HELP_7_Desc_14', 'Wyskoczy okienko. Zweryfikuj czy kwota i adres na który wysyłasz są prawidłowe. Następnie kliknij "Tak, jestem pewien! Zatwierdź transakcję.". '), _defineProperty(_pl$data, 'HELP_7_Desc_15', 'Transakcja zostanie zatwierdzona. TX Hash zostanie wyświetlone. Możesz kliknąć TX Hash aby zobaczyć status transakcji w eksploratorze. '), _defineProperty(_pl$data, 'HELP_8_Title', '8) Co się stanie, jeżeli wasza strona zniknie z sieci? '), _defineProperty(_pl$data, 'HELP_8_Desc_1', 'MyEtherWallet nie jest usługą portfela internetowego. Nie posiadasz loginu i nic nie jest zapisywane na naszych serwerach. To tylko interfejs, który pozwala korzystać z sieci Ethereum. '), _defineProperty(_pl$data, 'HELP_8_Desc_2', 'Jeżeli MyEtherWallet.com zostanie wyłączona, musiałbyś znaleźć inny sposób (jak Ethereum Wallet / Mist) na korzystanie z sieci Ethereum. Nie musiałbyś jednak wypłacić swoich środków z MyEtherWallet, ponieważ one nie znajdują się na MyEtherWallet, a na portfelach, które zostały wygenerowane za pomocą naszej strony. '), _defineProperty(_pl$data, 'HELP_8_Desc_3', 'Możesz w każdej chwili, w bardzo prosty sposób, zaimportować swoje nieszyfrowane klucze prywatne lub szyfrowane pliki w formacie Geth/Mist wprost do geth / Ethereum Wallet / Mist. Zobacz pytanie 12 poniżej. '), _defineProperty(_pl$data, 'HELP_8_Desc_4', 'W dodatku prawdopodobieństwo zamknięcia przez nas strony MyEtherWallet.com jest bliskie zeru. Koszty utrzymania strony są prawie żadne, ponieważ nie przechowujmy żadnych informacji. Jeśli nawet strona zostanie zamknięta, jest ona również i zawsze będzie publicznie dostępna na [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Możesz ściągnąć paczkę ZIP i uruchomić MyEtherWallet lokalnie na własnym komputerze. '), _defineProperty(_pl$data, 'HELP_8CX_Title', '8) Co się stanie jeżeli MyEtherWallet CX zniknie? '), _defineProperty(_pl$data, 'HELP_8CX_Desc_1', 'Po pierwsze, wszystkie dane są zapisane na Twoim komputerze, nie na naszych serwerach. Wiem, że może Ci się to wydawać dziwne, ale kiedy patrzysz na Rozszerzenie Chrome, NIE patrzysz na coś zapisanego gdzieś na naszych serwerach - wszystko to jest na Twoim własnym komputerze. '), _defineProperty(_pl$data, 'HELP_8CX_Desc_2', 'Z tego powodu, jest **niezmiernie ważnym** aby wykonywać kopie bezpieczeństwa wszystkich nowych portfeli wygenerowanych za pomocą MyEtherWallet CX. W ten sposób, jeżeli cokolwiek stanie się MyEtherWallet CX lub Twojemu komputerowi, wciąż będziesz miał wszelkie niezbędne informacje potrzebne aby odzyskać dostęp do Twoich portfeli. Zobacz punkt 2a aby dowiedzieć się jak wykonać kopie bezpieczeństwa. '), _defineProperty(_pl$data, 'HELP_8CX_Desc_3', 'Jeżeli z jakiegoś powodu MyEtherWallet CX zniknie z Chrome Store, możesz wciąż znaleźć kod źródłowy na Github\'ie i załadować manualnie do Chrome. Zobacz pkt. 5 powyżej. '), _defineProperty(_pl$data, 'HELP_9_Title', '9) Czy zakładka "Wyślij Ether" działa offline? '), _defineProperty(_pl$data, 'HELP_9_Desc_1', 'Nie. Potrzebuje dostępu do internetu w celu pobrania aktualnej ceny paliwa, wyróżnika dla konta, oraz rozgłoszenia transakcji (wysłania). Jednakże wysyłana jest jedynie podpisana transakcja, nic więcej. Twój klucz prywatny w żadnym momencie nie opuszcza Twojego komputera. Teraz zapewniamy również funkcję "Wyślij Offline", która umożliwia przechowywanie kluczy prywatnych na komputerze, który fizycznie jest odizolowany od sieci zewnętrznej. '), _defineProperty(_pl$data, 'HELP_10_Title', '10) Jak wykonać transakcję offline (Cold Wallet)? '), _defineProperty(_pl$data, 'HELP_10_Desc_1', 'Przejdź na zakładkę "Wyślij Offline" na komputerze z dostępem do internetu. '), _defineProperty(_pl$data, 'HELP_10_Desc_2', 'Uzupełnij pole "Od Adresu". Zauważ, że jest to adres, z którego wypłacasz środki, nie adres, na który mają trafić. W ten sposób generowany jest wyróżnik i cena paliwa. '), _defineProperty(_pl$data, 'HELP_10_Desc_3', 'Przejdź na komputer bez dostępu do internetu. Uzupełnij pole "Do Adresu" i kwotę do wysłania. '), _defineProperty(_pl$data, 'HELP_10_Desc_4', 'Wpisz cenę paliwa jaka została wyświetlona na komputerze z internetem w kroku pierwszym. '), _defineProperty(_pl$data, 'HELP_10_Desc_5', 'Wpisz wyróżnik jaki został wyświetlony na komputerze z internetem w kroku pierwszym. '), _defineProperty(_pl$data, 'HELP_10_Desc_6', '"Limit Paliwa" ma domyślną wartość 21000. To pokryje koszty standardowej transakcji. Jeżeli będziesz wysyłać transakcję do kontraktu lub będziesz załączać jakieś dane do transakcji, musisz zwiększyć tą wartość. Nadpłata paliwa zostanie zwrócona. '), _defineProperty(_pl$data, 'HELP_10_Desc_7', 'Jeśli chcesz możesz załączyć dane do transakcji. Musisz wtedy jednak zapewnić więcej niż domyślne 21000 limitu paliwa. Dane wpisujemy w formacie HEX. '), _defineProperty(_pl$data, 'HELP_10_Desc_8', 'Wybierz Twój plik portfela -lub- klucz prywatny i odblokuj portfel. '), _defineProperty(_pl$data, 'HELP_10_Desc_9', 'Kliknij przycisk "Wygeneruj Transakcję". '), _defineProperty(_pl$data, 'HELP_10_Desc_10', 'W polu poniżej pojawią się dane podpisanej transakcji. Skopiuj jego zawartość na komputer z dostępem do internetu. '), _defineProperty(_pl$data, 'HELP_10_Desc_11', 'Na komputerze z internetem wklej podpisaną transakcję w pole tekstowe w kroku 3 i kliknij "Wyślij Transakcję". To spowoduje rozgłoszenie transakcji. '), _defineProperty(_pl$data, 'HELP_12_Title', '12) Jak zaimportować portfel utworzony w MyEtherWallet do geth / Ethereum Wallet / Mist? '), _defineProperty(_pl$data, 'HELP_12_Desc_1', 'Używając pliku Keystore Geth/Mist z MyEtherWallet v2+.... '), _defineProperty(_pl$data, 'HELP_12_Desc_2', 'Wejdź na zakładkę "Wyświetl informacje o portfelu". '), _defineProperty(_pl$data, 'HELP_12_Desc_3', 'Odblokuj portfel używając Twojego klucza prywatnego lub pliku portfela. '), _defineProperty(_pl$data, 'HELP_12_Desc_4', 'Wejdź na zakładkę "Moje Portfele". '), _defineProperty(_pl$data, 'HELP_12_Desc_5', 'Zaznacz portfel jaki chcesz zaimportować do Mist, kliknij ikonkę "Podgląd", wpisz hasło i wejdź do podglądu. '), _defineProperty(_pl$data, 'HELP_12_Desc_6', 'Znajdź sekcję "Plik Keystore/JSON (Zalecany · Szyfrowany · Format Mist/Geth)". Kliknij przycisk "Pobierz" pod spodem. W ten sposób uzyskałeś plik Keystore. '), _defineProperty(_pl$data, 'HELP_12_Desc_7', 'Uruchom aplikację Ethereum Wallet. '), _defineProperty(_pl$data, 'HELP_12_Desc_8', 'W menu programu wejdź w: "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_pl$data, 'HELP_12_Desc_9', 'Otworzy się folder z plikami ustawień. Skopiuj pobrany przed chwilą plik portfela (`UTC--2016-04-14......../`) do folderu keystore. '), _defineProperty(_pl$data, 'HELP_12_Desc_10', 'Twój portfel powinien się od razu pojawić na zakładce "Accounts." '), _defineProperty(_pl$data, 'HELP_12_Desc_11', 'Używając nieszyfrowanego klucza prywatnego... '), _defineProperty(_pl$data, 'HELP_12_Desc_12', 'Jeżeli jeszcze nie posiadasz nieszyfrowanego klucza prywatnego, wejdź na zakładkę "Wyświetl informacje o portfelu". '), _defineProperty(_pl$data, 'HELP_12_Desc_13', 'Wybierz swój plik portfela i odblokuj portfel. '), _defineProperty(_pl$data, 'HELP_12_Desc_14', 'Skopiuj "Klucz Prywatny (nieszyfrowany)". '), _defineProperty(_pl$data, 'HELP_12_Desc_15', 'Jeśli pracujesz na Mac\'u: '), _defineProperty(_pl$data, 'HELP_12_Desc_15b', 'Jeśli pracujesz na PC\'cie: '), _defineProperty(_pl$data, 'HELP_12_Desc_16', 'Otwórz Text Edit i wklej do niego skopiowany klucz prywatny. '), _defineProperty(_pl$data, 'HELP_12_Desc_17', 'Wejdź do paska menu i kliknij "Format" -> "Make Plain Text". '), _defineProperty(_pl$data, 'HELP_12_Desc_18', 'Zapisz ten plik na `desktop/` jako `nic_specjalnego_usun_mnie.txt`. Podczas zapisywania ustaw "UTF-8" i "If no extension is provided use .txt". '), _defineProperty(_pl$data, 'HELP_12_Desc_19', 'Otwórz terminal systemowy i uruchom następującą komendę: `geth account import ~/Desktop/nic_specjalnego_usun_mnie.txt` '), _defineProperty(_pl$data, 'HELP_12_Desc_20', 'Zostaniesz zapytany o hasło. To będzie hasło portfela w geth / Ethereum Wallet / Mist, które należy podać przy każdej transakcji, nie zapomnij tego hasła. '), _defineProperty(_pl$data, 'HELP_12_Desc_21', 'Po zaimportowaniu portfela, usuń `nic_specjalnego_usun_mnie.txt` '), _defineProperty(_pl$data, 'HELP_12_Desc_22', 'Po ponownym uruchomieniu aplikacji Ethereum Wallet Twój portfel pojawi się na zakładce "Accounts". '), _defineProperty(_pl$data, 'HELP_12_Desc_23', 'Otwórz Notatnik i wklej klucz prywatny '), _defineProperty(_pl$data, 'HELP_12_Desc_24', 'Zapisz plik notatnika jako `nic_specjalnego_usun_mnie.txt` na `C:\\` '), _defineProperty(_pl$data, 'HELP_12_Desc_25', 'Uruchom wiersz poleceń i wykonaj komendę: `geth account import C:\\nic_specjalnego_usun_mnie.txt` '), _defineProperty(_pl$data, 'HELP_12_Desc_26', 'Zostaniesz zapytany o hasło. To będzie hasło portfela w geth / Ethereum Wallet / Mist, które należy podać przy każdej transakcji, nie zapomnij tego hasła. '), _defineProperty(_pl$data, 'HELP_12_Desc_27', 'Po zaimportowaniu portfela, usuń `nic_specjalnego_usun_mnie.txt` '), _defineProperty(_pl$data, 'HELP_12_Desc_28', 'Po ponownym uruchomieniu aplikacji Ethereum Wallet Twój portfel pojawi się na zakładce "Accounts". '), _defineProperty(_pl$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_pl$data, 'HELP_13_Desc_1', 'Oznacza to, że nie posiadasz wystarczającej ilości Ether na koncie, aby pokryć koszty paliwa. Każda transakcja (przesyłanie tokenów lub interakcja z kontraktem) wymaga paliwa, które jest opłacane w Ether\'ach. Wyświetlona wartość jest ilością potrzebną na pokrycie kosztów transakcji w Wei\'ach. Podziel tą liczbę przez `1000000000000000000` i odejmij wartość Ether, którą chciałeś wysłać (jeśli wysyłałeś Ether). Otrzymasz wartość, jaką musisz przesłać na swoje konto, aby wykonać transakcję.'), _defineProperty(_pl$data, 'HELP_14_Title', '14) Niektóre strony wykorzystują ruchy myszką przy generowaniu klucza prywatnego. MyEtherWallet tego nie robi. Czy generator liczb losowych w MyEtherWallet jest bezpieczny? '), _defineProperty(_pl$data, 'HELP_14_Desc_1', 'Chociaż generowanie liczb losowych przy udziale ruchów myszki jest sprytnie pomyślane i rozumiemy dlaczego ludzie to lubią, to jednak rzeczywistość jest taka, że window.crypto zapewnia większą entropię niż ruchy myszką. Generowanie z ruchów myszki nie jest niebezpieczne, ale my (oraz znaczna liczba innych ekspertów kryptografii) wierzymy w window.crypto. W dodatku MyEtherWallet może być używane na urządzeniach dotykowych. Tutaj można przeczytać [rozmowę rozeźlonego reddit\'ora i Vitalik\'a Buterin\'a odnośnie ruchów myszki kontra window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) a tutaj jest [specyfikacja window.crypto w3](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_pl$data, 'HELP_15_Title', '15) Dlaczego portfel, który właśnie wygenerowałem nie pokazuje się w eksploratorze bloków? (np. etherchain, etherscan) '), _defineProperty(_pl$data, 'HELP_15_Desc_1', 'Adres pojawi się w eksploratorze bloków dopiero jak adres portfela będzie uczestniczył w jakichś transakcjach, np. jak wyślesz do niego jakieś środki. '), _defineProperty(_pl$data, 'HELP_16_Title', '16) Jak sprawdzić stan mojego konta? '), _defineProperty(_pl$data, 'HELP_16_Desc_1', 'Możesz użyć eksploratora bloków jak [etherscan.io](https://etherscan.io/). Wklej swój adres w wyszukiwarkę na stronie eksploratora, pokaże ona stan Twojego konta oraz historię transakcji. Tak na przykład wygląda nasze [konto donacji](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) na etherscan.io. '), _defineProperty(_pl$data, 'HELP_17_Title', '17) Dlaczeg stan mojego konta nie pojawia się, kiedy odblokowuje mój portfel? '), _defineProperty(_pl$data, 'HELP_17_Desc_1', 'Najprawdopodobniej przyczyną tego jest firewall. API, które używamy do odczytu stanu konta oraz jego konwersji jest często blokowane przez firewall z różnych przyczyn. Wciąż możesz wysyłać transakcje, jednak stan konta musisz sprawdzać w inny sposób, np. na [etherscan.io](https://etherscan.io/) '), _defineProperty(_pl$data, 'HELP_18_Title', '18) Gdzie jest plik mojego portfela w geth? '), _defineProperty(_pl$data, 'HELP_19_Title', '19) Gdzie jest plik mojego portfela w Mist? '), _defineProperty(_pl$data, 'HELP_19_Desc_1', 'Pliki programu Mist można znaleźć zazwyczaj w lokalizacjach wymienionych w pkt. 18, ale prościej jest uruchomić Mist, wybrać "Accounts" w górnym pasku, następnie "Backup" i "Accounts". Otworzy się folder, w którym znajdują się wspomniane pliki. '), _defineProperty(_pl$data, 'HELP_20_Title', '20) Gdzie jest mój plik portfela przed-sprzedaży? '), _defineProperty(_pl$data, 'HELP_20_Desc_1', 'Tam gdzie go zapisałeś ;). Był też wysłany mailem, sprawdź również tam. Szukaj pliku `"ethereum_wallet_backup.json"`. Portfel ten będzie zaszyfrowany hasłem jakie podałeś podczas procesu kupna na przed-sprzedaży. '), _defineProperty(_pl$data, 'HELP_21_Title', '21) Czy nie jest tak, że każdy może losowo sprawdzać różne klucze prywatne, a jak znajdzie taki ze środkami możę przelać je na swoje konto? '), _defineProperty(_pl$data, 'HELP_21_Desc_1', 'Krótka odpowiedź: Tak. Jednak znalezienie któregokolwiek ze środkami zajęłoby więcej czasu niż wszechświat istnieje... więc... nie. '), _defineProperty(_pl$data, 'HELP_21_Desc_2', 'Długa wersja (dla przedszkolaka): Ethereum bazuje na [Kryptografii Klucza Publicznego (ECC)](https://pl.wikipedia.org/wiki/Kryptografia_klucza_publicznego), a dokładnie na [Kryptografii Krzywych Eliptycznych](https://eprint.iacr.org/2013/734.pdf) które są bardzo szeroko stosowane, nie tylko w Ethereum. Większość serwerów jest chroniona przez ECC. Kolejne przykłady to Bitcoin, SSH, TLS i wiele innych. Klucze w Ethereum to dokładnie odmiana 256-bitowa, która jest silniejsza niż 128-bitowa i 192-bitowa, które również są wciąż szeroko stosowane oraz uznawane przez ekspertów za bezpieczne. '), _defineProperty(_pl$data, 'HELP_21_Desc_3', 'W tego typu zabezpieczeniu mamy 2 klucze: klucz prywatny i klucz publiczny. Z klucza prywatnego możemy szybko otrzymać klucz publiczny, ale otrzymanie klucza prywatnego z klucza publicznego jest niemożliwe. Biorąc pod uwagę, że cały internet i wszystkie sekrety świata używają tej metody kryptograficznej oznacza, że gdyby istniał sposób na otrzymanie klucza prywatnego z publicznego, to utrata Twoich środków z konta Ethereum byłaby najmniejszym zmartwieniem w świecie. '), _defineProperty(_pl$data, 'HELP_21_Desc_4', 'Idąc dalej, TAK jeżeli ktoś miałby Twój klucz prywatny mógłby z łatwością wypłacić środki z Twojego konta. Tak samo, jak by ktoś miał hasło do Twojego konta pocztowego, mógłby czytać Twoje maile, lub gdyby miał hasło bankowe, mógłby wypłacać z niego pieniądze. Możesz ściągnąć plik Keystore Twojego portfela, który jest kluczem prywatnym zaszyfrowanym hasłem. To jest tak jak by mieć hasło, które jest chronione innym hasłem. '), _defineProperty(_pl$data, 'HELP_21_Desc_5', 'Więc TAK, teoretycznie można by po prostu wpisywać 64 znaki w kodzie szesnastkowym do momentu trafienia na taki, który nie jest pusty. Co więcej zdolni ludzie mogą napisać program, który będzie bardzo szybko, automatycznie sprawdzał kolejne losowe kombinacje kluczy. Taka metoda nazywa się "brute-forcing" lub "mining". Różni ludzie zastanawiali się nad jej zastosowaniem długo i intensywnie. Z pomocą kilku wysokiej klasy serwerów mogliby być w stanie sprawdzać ponad 1 milion kluczy na sekundę. Jednak nawet wtedy koszt utrzymania pracy tych serwerów byłby wiele razy wyższy niż potencjalne zyski ze znalezienia jakichkolwiek środków. Bardziej prawdopodobne byłoby, że pierwsze trafienie nastąpi dopiero po śmierci Twojej i Twoich prawnuków. '), _defineProperty(_pl$data, 'HELP_21_Desc_6', 'Jeśli wiesz coś na temat Bitcoina, [to może dać Ci perspektywę:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *Aby zilustrować jak mało prawdopodobne to jest: załóżmy, że każdy satoshi (najmniejsza część Bitcoina, 0.00000001 BTC), każdego Bitcoina jaki kiedykolwiek będzie istnieć (21 milionów), został wysłany na swój własny unikalny klucz prywatny. Prawdopodobieństwo, że spośród wszystkich tych kluczy 2 odpowiadałyby tym samym adresom jest jak 1 do 100 kwintylionów. '), _defineProperty(_pl$data, 'HELP_21_Desc_7', '[Jeżeli byś chciał coś bardziej technicznego:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *Te liczby nie mają nic wspólnego z technologią na jakiej opiera się urządzenie. Są maksimami na jakie pozwala termodynamika, co silnie sugeruje, że skuteczne ataki brute-force przeciwko 256-bitowym kluczom będą nieosiągalne, dopóki komputery nie będą zbudowane z czegoś innego niż materia i będą zajmować trochę więcej niż wszechświat. '), _defineProperty(_pl$data, 'HELP_21_Desc_8', 'Oczywiście to wszystko ma miejsce przy założeniu, że klucze są generowane w prawdziwie losowy sposób i z wystarczającą entropią. Klucze tu wygenerowane spełniają te kryteria, tak samo jak klucze w Jaxx i Mist/geth. Portfele Ethereum są w większości całkiem niezłe. Z drugiej strony np. klucze wygenerowane przez ludzki umysł nie spełniają tych kryteriów, jako że ludzki umysł nie jest w stanie wygenerować prawdziwie losowego źródła. W otoczeniu Bitcoina w przeszłości pojawiło się kilka problemów związanych z brakiem odpowiedniej entropii lub brakiem pełnej losowości, ale to całkiem inny temat, być może na inny dzień. '), _defineProperty(_pl$data, 'HELP_SecCX_Title', 'Bezpieczeństwo - MyEtherWallet CX '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_1', 'Gdzie są zapisywane informacje przechowywane przez to rozszerzenie? '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_2', 'Informacje przechowywane przez to Rozszerzenie Chrome jest zapisywane przez [chrome.storage](http://chrome.storage/). - w tym samym miejscu są przechowywane hasła zapisywane w przeglądarce Chrome. '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_3', 'Jakie informacje są zapisywane? '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_4', 'Adres, nazwa konta, klucz prywatny są przechowywane w chrome.storage. Klucz prywatny jest zaszyfrowany hasłem jakie podano przy zakładaniu portfela. Nazwa i adres nie są szyfrowane. '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_5', 'Dlaczego adres i nazwa konta nie są szyfrowane? '), _defineProperty(_pl$data, 'HELP_SecCX_Desc_6', 'Jeżeli byśmy zaszyfrowali te informacje, konieczne było by podawanie hasła przy każdym sprawdzeniu stanu konta lub wyświetleniu jego nazwy. Jeśli to Cię niepokoi, możesz użyć MyEherWallet.com zamiast tego Rozszerzenia Chrome. '), _defineProperty(_pl$data, 'HELP_Sec_Title', 'Bezpieczeństwo '), _defineProperty(_pl$data, 'HELP_Sec_Desc_1', 'Jeśli pierwszym pytaniem jakie Ci się nasuwa jest "Dlaczego miałbym zaufać tym gościom?", to prawidłowy odruch. Być może to pozwoli Ci załagodzić obawy: '), _defineProperty(_pl$data, 'HELP_Sec_Desc_2', 'Działamy od sierpnia 2015. Jeśli wyszukasz ["myetherwallet" na reddit](https://www.reddit.com/search?q=myetherwallet), możesz znaleźć wielu ludzi, którzy używają naszego kodu bez najmniejszych problemów. '), _defineProperty(_pl$data, 'HELP_Sec_Desc_3', 'Nie ukradniemy Twoich pieniędzy ani Twoich kluczy prywatnych. Ta strona nie zawiera złośliwego kodu. W zasadzie, zakładka "Generuj Portfel" działa w pełni po stronie klienckiej. Oznacza to, że cały kod jest uruchamiany wyłącznie na **Twoim komputerze**, a jego rezultat nigdzie nie jest zapisywany ani nigdzie przesyłany. '), _defineProperty(_pl$data, 'HELP_Sec_Desc_4', 'Sprawdź adres URL -- Ta strona jest serwowana przez GitHub. Kod źródłowy jest dostępny pod: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Strona jest dostępna pod domenami: [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_pl$data, 'HELP_Sec_Desc_5', 'Do generowania portfeli możesz pobrać [kod źródłowy](https://github.com/kvhnuke/etherwallet/releases/latest). Zobacz punkt 5 powyżej. '), _defineProperty(_pl$data, 'HELP_Sec_Desc_6', 'Wykonaj test i sprawdź jakie połączenia sieciowe są aktywowane. Najprostszą metodą jest kliknięcie prawym przyciskiem myszy na stronie i "Zbadaj". Przejdź na zakładkę "Network". Wygeneruj testowy portfel. Zobaczysz, że nie są aktywowane żadne połączenia. Możesz zobaczyć coś wyglądającego jak data:image/gif i data:image/png. To są kody QR generowane... na Twoim komputerze... przez Twój komputer. Żadne dane nie były transferowane. '), _defineProperty(_pl$data, 'HELP_Sec_Desc_8', 'Jeśli nie czujesz się komfortowo używając tego oprogramowania, bez względu na wszystko, nie używaj go. Stworzyliśmy te narzędzia jako pomoc w generowaniu nowych portfeli i wykonywaniu transakcji bez potrzeby zagłębiania się w linię poleceń lub prowadzenia pełnego węzła. Jeszcze raz, nie krępuj się z nami skontaktować jeżeli masz jakieś wątpliwości. Postaramy się odpowiedzieć tak szybko jak to możliwe. Dzięki! '), _defineProperty(_pl$data, 'HELP_FAQ_Title', 'Więcej Pomocnych Odpowiedzi na Często Zadawane Pytania (tylko angielski) '), _defineProperty(_pl$data, 'HELP_Contact_Title', 'Sposoby Nawiązania Kontaktu (tylko angielski)'), _pl$data);
module.exports = pl;
},{}],123:[function(require,module,exports){
// Portuguese
'use strict';
var _pt$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var pt = function pt() {};
pt.code = 'pt';
pt.data = (_pt$data = {
GEN_Help_0: 'Já possui uma carteira em outro lugar?',
GEN_Help_MetaMask: 'É fácil! Suas chaves ficam no MetaMask, e não num site de phishing! Experimente Hoje.',
GEN_Warning_1: '**Não perca-a!** Ela não pode ser recuperada se você a perder.',
GEN_Warning_2: '**Não compartilhe-a!** Seus fundos serão roubados se você usar este arquivo em um site malicioso/phishing.',
GEN_Warning_3: '**Fáca um Backup!** Mantenha-a segura da mesma forma que os milhões de dólares que ela poderá valer um dia.',
GAS_Price_1: 'Não tão rápido',
GAS_Price_2: 'Rapido',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'Você está prestes a **publicar um contrato**.',
CONTRACT_Warning_2: 'Ele será publicado na seguinte rede:',
CONTRACT_Warning_3: 'Você está prestes a **executar uma função no contrato**.',
SEND_Helper_Contract: 'Na maioria dos casos, você deve deixar isto como 0.',
SEND_ViewOnly: 'Você não pode enviar apenas com seu endereço. Você precisa usar uma das outras opções para desbloquear sua carteira para poder enviar.',
SEND_LoadTokens: 'Carregar Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Atenção! Você não tem fundos suficientes para completar essa troca.',
SWAP_Warning_2: 'Por favor, adicione mais fundos na sua carteira ou acesse uma outra carteira com fundos.',
X_Advanced: 'Para Usuários Avançados.',
X_HelpfulLinks: 'Links úteis & FAQs',
X_HelpfulLinks_1: 'Como Acessar sua Carteira',
X_HelpfulLinks_2: 'Eu perdi minha chave privada',
X_HelpfulLinks_3: 'Minha chave privada abre um endereço diferente',
X_HelpfulLinks_4: 'Migrando para/de MyEtherWallet',
X_Network: 'Rede', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Adicionar Rede/Node customizado',
DOMAIN_Buy: 'Comprar o domínio',
DOMAIN_BuyItNow: 'Preço para comprar imediatamente o domínio:',
DOMAIN_bid: 'Ofertar no domínio',
DOMAIN_bid_0: 'Você está ganhando esta oferta com a maior aposta atualmente. Você pode fazer uma oferta maior se quiser, mas isso irá atrasar o fechamento do leilão por 24 horas.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_pt$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_pt$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_pt$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_pt$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_pt$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_pt$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_pt$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_pt$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_pt$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_pt$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_pt$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_pt$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_pt$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_pt$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_pt$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_pt$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_pt$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_pt$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_pt$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_pt$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_pt$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_pt$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_pt$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_pt$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_pt$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_pt$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_pt$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_pt$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_pt$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_pt$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_pt$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_pt$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_pt$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_pt$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_pt$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_pt$data, 'x_ReadMore', 'Read More'), _defineProperty(_pt$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_pt$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_pt$data, 'x_TXFee', 'TX Fee'), _defineProperty(_pt$data, 'x_TxHash', 'TX Hash'), _defineProperty(_pt$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_pt$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_pt$data, 'tx_Details', 'Transaction Details'), _defineProperty(_pt$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_pt$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_pt$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_pt$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_pt$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_pt$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_pt$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_pt$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_pt$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_pt$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_pt$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_pt$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_pt$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_pt$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_pt$data, 'GEN_Help_1', 'Use your'), _defineProperty(_pt$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_pt$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_pt$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_pt$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_pt$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_pt$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_pt$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_pt$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_pt$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_pt$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_pt$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_pt$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_pt$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_pt$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_pt$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_pt$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_pt$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_pt$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_pt$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_pt$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_pt$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_pt$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_pt$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_pt$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_pt$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_pt$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_pt$data, 'NAV_AddWallet', 'Adicionar Carteira '), _defineProperty(_pt$data, 'NAV_BulkGenerate', 'Gerar Bulk '), _defineProperty(_pt$data, 'NAV_Contact', 'Contato '), _defineProperty(_pt$data, 'NAV_Contracts', 'Contratos '), _defineProperty(_pt$data, 'NAV_DeployContract', 'Implantar Contrato '), _defineProperty(_pt$data, 'NAV_ENS', 'ENS'), _defineProperty(_pt$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_pt$data, 'NAV_GenerateWallet', 'Gerar Carteira '), _defineProperty(_pt$data, 'NAV_Help', 'Ajuda '), _defineProperty(_pt$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_pt$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_pt$data, 'NAV_MyWallets', 'Minhas Carteiras '), _defineProperty(_pt$data, 'NAV_Offline', 'Enviar Offline '), _defineProperty(_pt$data, 'NAV_SendEther', 'Enviar Ether & Tokens '), _defineProperty(_pt$data, 'NAV_SendTokens', 'Enviar Tokens '), _defineProperty(_pt$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_pt$data, 'NAV_Swap', 'Exchange '), _defineProperty(_pt$data, 'NAV_ViewWallet', 'Ver Informação da Carteira '), _defineProperty(_pt$data, 'NAV_YourWallets', 'Suas Carteiras '), _defineProperty(_pt$data, 'x_Access', 'Access '), _defineProperty(_pt$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Você deve saber sua "Conta #" ou sua "Chave Pública". É o que você enviar para que as pessoas possam enviar-lhe ether. Esse ícone é uma maneira fácil de reconhecer o seu endereço. '), _defineProperty(_pt$data, 'x_Address', 'Seu Endereço '), _defineProperty(_pt$data, 'x_Cancel', 'Cancelar '), _defineProperty(_pt$data, 'x_CSV', 'Arquivo CSV (não criptografado) '), _defineProperty(_pt$data, 'x_Download', 'Download '), _defineProperty(_pt$data, 'x_Json', 'Arquivo JSON (não criptografada) '), _defineProperty(_pt$data, 'x_JsonDesc', 'Este é o descriptografado, formato JSON da sua chave privada. Isto significa que você não precisa da senha, mas qualquer um que encontrar o seu JSON pode acessar sua carteira & Éter sem a senha. '), _defineProperty(_pt$data, 'x_Keystore', 'Arquivo de armazenamento de chaves (UTC / JSON · Recomendado · Criptografado) '), _defineProperty(_pt$data, 'x_Keystore2', 'Arquivo de armazenamento de chaves (UTC / JSON) '), _defineProperty(_pt$data, 'x_KeystoreDesc', 'Este arquivo de armazenamento de chaves corresponde ao formato usado pela Mist para que você possa facilmente importá-lo no futuro. É recomendado que o arquivo seja transferido e feito seu backup. '), _defineProperty(_pt$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_pt$data, 'x_Mnemonic', 'Frase Mnemonic '), _defineProperty(_pt$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_pt$data, 'x_Password', 'Senha '), _defineProperty(_pt$data, 'x_Print', 'Imprimir Carteira de Papel '), _defineProperty(_pt$data, 'x_PrintDesc', 'Dica: Clique impressão e salve como PDF, mesmo se você não possui uma impressora! '), _defineProperty(_pt$data, 'x_PrintShort', 'Imprimir '), _defineProperty(_pt$data, 'x_PrivKey', 'Chave Privada (não criptografada) '), _defineProperty(_pt$data, 'x_PrivKey2', 'Chave Privada '), _defineProperty(_pt$data, 'x_PrivKeyDesc', 'Essa é a versão de texto não criptografada da sua chave privada, o que significa que nenhuma senha é necessária. Se alguém encontrar a sua chave privada sem criptografia, eles podem acessar sua carteira sem a senha. Por esta razão, as versões codificadas são tipicamente recomendadas. '), _defineProperty(_pt$data, 'x_Save', 'Salvar '), _defineProperty(_pt$data, 'x_TXT', 'Arquivo TXT (não criptografado) '), _defineProperty(_pt$data, 'x_Wallet', 'Carteira '), _defineProperty(_pt$data, 'MEW_Warning_1', 'Sempre verifique a URL antes de acessar sua carteira ou criar uma nova carteira. Cuidado com os sites de phishing! '), _defineProperty(_pt$data, 'CX_Warning_1', 'Certifique-se de que você tem ** backups externos ** de quaisquer carteiras armazenadas aqui. Muitas coisas podem acontecer que faria com que você perdesse os dados nesta extensão Chrome, incluindo desinstalar e reinstalar a extensão. Esta extensão é uma maneira de acessar facilmente as suas carteiras, ** não ** uma forma de apoiá-los. '), _defineProperty(_pt$data, 'MEW_Tagline', 'Fonte aberta JavaScript para o client-side da Carteira Ether '), _defineProperty(_pt$data, 'CX_Tagline', 'Fonte Aberta JavaScript para o client-side da Carteira Ether para extensão do Chrome '), _defineProperty(_pt$data, 'FOOTER_1', 'Uma fonte aberta, javascript, ferramenta do client-side para gerar Carteiras Ethereum & envio de transações. '), _defineProperty(_pt$data, 'FOOTER_1b', 'Criado por '), _defineProperty(_pt$data, 'FOOTER_2', 'Doações serão muito apreciadas: '), _defineProperty(_pt$data, 'FOOTER_3', 'Carteira Client-side gerada por '), _defineProperty(_pt$data, 'FOOTER_4', 'Aviso Legal '), _defineProperty(_pt$data, 'sidebar_AccountInfo', 'Informações da Conta '), _defineProperty(_pt$data, 'sidebar_AccountAddr', 'Endereço da Conta '), _defineProperty(_pt$data, 'sidebar_AccountBal', 'Saldo da Conta '), _defineProperty(_pt$data, 'sidebar_TokenBal', 'Saldo de Tokens '), _defineProperty(_pt$data, 'sidebar_Equiv', 'Valor Equivalente '), _defineProperty(_pt$data, 'sidebar_TransHistory', 'Histórico de Transações '), _defineProperty(_pt$data, 'sidebar_donation', 'MyEtherWallet é grátis, um serviço de fonte aberta dedicado a sua privacidade e segurança. Quanto mais doações nós recebermos, mais podemos gastar criando novidade, ouvindo seu feedback, e entregando o que você deseja. Somos apenas duas pessoas tentando mudar o mundo. Ajude-nos? '), _defineProperty(_pt$data, 'sidebar_donate', 'De '), _defineProperty(_pt$data, 'sidebar_thanks', 'OBRIGADO!!! '), _defineProperty(_pt$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_pt$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_pt$data, 'decrypt_Access', 'Como você gostaria de acessar sua carteira? '), _defineProperty(_pt$data, 'decrypt_Title', 'Selecione o formato da sua chave privada: '), _defineProperty(_pt$data, 'decrypt_Select', 'Selecione uma Carteira: '), _defineProperty(_pt$data, 'ADD_Label_1', 'O que você gostaria de fazer? '), _defineProperty(_pt$data, 'ADD_Radio_1', 'Gerar Nova Carteira '), _defineProperty(_pt$data, 'ADD_Radio_2', 'Selecione seu arquivo da Carteira (Keystore / JSON) '), _defineProperty(_pt$data, 'ADD_Radio_2_alt', 'Selecione seu arquivo da Carteira '), _defineProperty(_pt$data, 'ADD_Radio_2_short', 'SELECIONE O ARQUIVO DA CARTEIRA... '), _defineProperty(_pt$data, 'ADD_Radio_3', 'Cole/Digite sua Chave Privada '), _defineProperty(_pt$data, 'ADD_Radio_4', 'Adicionar uma conta para ver '), _defineProperty(_pt$data, 'ADD_Radio_5', 'Cole/Digite sua Mnemonic '), _defineProperty(_pt$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_pt$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_pt$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_pt$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_pt$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_pt$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_pt$data, 'ADD_Label_2', 'Crie um Apelido: '), _defineProperty(_pt$data, 'ADD_Label_3', 'Sua carteira é criptografada. Por favor, insira a senha '), _defineProperty(_pt$data, 'ADD_Label_4', 'Adicionar uma conta para ver '), _defineProperty(_pt$data, 'ADD_Warning_1', 'Você pode adicionar qualquer conta para "ver" na tab de carteiras sem fazer o upload da chave privada. Isso significa que você ** não ** tem acesso a essa carteira, nem pode transferir Ether a partir dela. '), _defineProperty(_pt$data, 'ADD_Label_5', 'Insira o Endereço '), _defineProperty(_pt$data, 'ADD_Label_6', 'Desbloqueie sua Carteira '), _defineProperty(_pt$data, 'ADD_Label_6_short', 'Desbloqueie '), _defineProperty(_pt$data, 'ADD_Label_7', 'Adicionar Conta '), _defineProperty(_pt$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_pt$data, 'GEN_desc', 'Se você quer gerar multiplas carteiras. você pode fazer isso aqui '), _defineProperty(_pt$data, 'GEN_Label_1', 'Insira uma senha forte (pelo menos 9 dígitos) '), _defineProperty(_pt$data, 'GEN_Placeholder_1', 'NÃO esqueça de salvar isso! '), _defineProperty(_pt$data, 'GEN_SuccessMsg', 'Sucesso! Sua carteira foi gerada. '), _defineProperty(_pt$data, 'GEN_Label_2', 'Salve seu arquivo de armazenamento de chaves. Não esqueça da sua senha acima. '), _defineProperty(_pt$data, 'GEN_Label_3', 'Salve Seu Enderço. '), _defineProperty(_pt$data, 'GEN_Label_4', 'Opcional: Imprima sua carteira de papel, ou guarde a versão do código QR. '), _defineProperty(_pt$data, 'BULK_Label_1', 'Número de Carteiras a gerar '), _defineProperty(_pt$data, 'BULK_Label_2', 'Gerar Carteiras '), _defineProperty(_pt$data, 'BULK_SuccessMsg', 'Sucesso! Suas carteiras foram geradas. '), _defineProperty(_pt$data, 'SEND_addr', 'Para o Endereço '), _defineProperty(_pt$data, 'SEND_amount', 'Valor a enviar '), _defineProperty(_pt$data, 'SEND_amount_short', 'Valor '), _defineProperty(_pt$data, 'SEND_custom', 'Adicionar token personalizado '), _defineProperty(_pt$data, 'SEND_gas', 'Gás '), _defineProperty(_pt$data, 'SEND_TransferTotal', 'Enviar o Salto Total '), _defineProperty(_pt$data, 'SEND_generate', 'Gerar Transação '), _defineProperty(_pt$data, 'SEND_raw', 'Transação Raw '), _defineProperty(_pt$data, 'SEND_signed', 'Transação Assinada '), _defineProperty(_pt$data, 'SEND_trans', 'Enviar Transação '), _defineProperty(_pt$data, 'SENDModal_Title', 'Cuidado! '), _defineProperty(_pt$data, 'SENDModal_Content_1', 'Você está prestes a enviar '), _defineProperty(_pt$data, 'SENDModal_Content_2', 'para o endereço '), _defineProperty(_pt$data, 'SENDModal_Content_3', 'Você tem certeza que quer fazer isso? '), _defineProperty(_pt$data, 'SENDModal_Content_4', 'NOTA: Se você encontrar um erro, você provavelmente precisará adicionar ether a sua conta para cobrir o custo do gás para o envio de tokens. Gás é pago em ether. '), _defineProperty(_pt$data, 'SENDModal_No', 'Não, me tire daqui! '), _defineProperty(_pt$data, 'SENDModal_Yes', 'Sim, eu tenho certeza! Faça a transação. '), _defineProperty(_pt$data, 'TOKEN_Addr', 'Endereço do Token Contract '), _defineProperty(_pt$data, 'TOKEN_Symbol', 'Símbolo do Token '), _defineProperty(_pt$data, 'TOKEN_Dec', 'Decimais '), _defineProperty(_pt$data, 'TOKEN_show', 'Mostre todos os Tokens '), _defineProperty(_pt$data, 'TOKEN_hide', 'Esconder Tokens '), _defineProperty(_pt$data, 'TRANS_desc', ''), _defineProperty(_pt$data, 'TRANS_warning', 'Se você estiver usando somente "ETH" ou "ETC" Funções que você está enviando através de um contrato. Alguns serviços têm problemas para aceitar essas transações. Leia mais. '), _defineProperty(_pt$data, 'TRANS_advanced', '+Avançado: Adicionar dados '), _defineProperty(_pt$data, 'TRANS_data', 'Dados '), _defineProperty(_pt$data, 'TRANS_gas', 'Gás Limit '), _defineProperty(_pt$data, 'TRANS_sendInfo', 'Uma transação padrão usando 21000 gás irá custar 0.000441 ETH. Nós usamos um preço ligeiramente acima do mínima de gás de 0,000000021 ETH para garantir que ele seja minado rapidamente. Nós não recebemos nenhuma taxa de transação. '), _defineProperty(_pt$data, 'TRANSModal_Title', '"Só ETH" e "Só ETC" Transações '), _defineProperty(_pt$data, 'TRANSModal_Content_0', 'Uma nota sobre diferentes transações e diferentes serviços: '), _defineProperty(_pt$data, 'TRANSModal_Content_1', '**ETH (Transação Padrão): ** Isso gera uma transação padrão diretamente de um endereço para outro. Tem um gás padrão de 21000. É provável que qualquer ETH enviados através deste método serão repetidos para a cadeia ETC.. '), _defineProperty(_pt$data, 'TRANSModal_Content_2', '**Só ETH: ** Isso envia via [Timon Rapp\'s contrato de proteção de repetição (como recomendado pelo VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) para que você só envie na cadeia **ETH**. '), _defineProperty(_pt$data, 'TRANSModal_Content_3', '**Só ETC: ** Isso envia via [Timon Rapp\'s contrato de proteção de repetição (como recomendado pelo VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) para que você só envie na cadeia **ETC**. '), _defineProperty(_pt$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Envia somente via Transação Padrão. Se você enviar via contrato "único", você vai precisar contatar a equipe de suporte para adicionar manualmente o seu balanço ou reembolsá-lo. [Pode tentar Shapeshift\'s ferramenta de "mistura".](https://split.shapeshift.io/) '), _defineProperty(_pt$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Sem problemas conhecidos. Use qualquer um. '), _defineProperty(_pt$data, 'TRANSModal_Yes', 'Legal, agora eu entendi. '), _defineProperty(_pt$data, 'TRANSModal_No', 'Oh Deus, eu fiquei mais confuso. Ajude-me. '), _defineProperty(_pt$data, 'OFFLINE_Title', 'Gere & Envie Transações Offline '), _defineProperty(_pt$data, 'OFFLINE_Desc', 'Gerar transações offline pode ser feita em três passos. Você vai completar os passos 1 e 3 em um computador online, e o passo 2 em um computador offline/airgapped. Isto garante que suas chaves privadas não sejam utilizadas em um dispositivo conectado à internet. '), _defineProperty(_pt$data, 'OFFLLINE_Step1_Title', 'Passo 1: Gerar a Informação (Computador Online) '), _defineProperty(_pt$data, 'OFFLINE_Step1_Button', 'Gerar Informaçoes '), _defineProperty(_pt$data, 'OFFLINE_Step1_Label_1', 'Do Endereço '), _defineProperty(_pt$data, 'OFFLINE_Step1_Label_2', 'Nota: Este é o endereço de partina, não o endereço de destino. O valor aleatório é gerado a partir da conta de origem. Se estiver usando um computador airgapped, seria o endereço da conta de armazenagem a frio. '), _defineProperty(_pt$data, 'OFFLINE_Step2_Title', 'Step 2: Generate Transaction (Offline Computer) '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_1', 'Para o Endereço '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_2', 'Valor / Quantia para Enviar '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_3', 'Preço do Gás '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_3b', 'Isto foi exibido no Passo 1 no seu computador on-line. '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_4', 'Limite de Gás '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_4b', '21000 é o limite de gás padrão. Quando você envia contratos ou adiciona os dados, isso pode ter de ser diferente. Qualquer gás não utilizado será devolvido a você. '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_5b', 'Isto foi exibido no Passo 1 no seu computador on-line. '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_6', 'Dados '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_6b', 'Isto é opcional. Os dados são frequentemente utilizados quando se envia transações com contratos. '), _defineProperty(_pt$data, 'OFFLINE_Step2_Label_7', 'Insira / Selecione sua Chave Privada / JSON. '), _defineProperty(_pt$data, 'OFFLINE_Step3_Title', 'Passo 3: Envia / Publica a Transação (Computador Online) '), _defineProperty(_pt$data, 'OFFLINE_Step3_Label_1', 'Cole a transação assinada do Passo 2 e aperte o botão "ENVIAR TRANSAÇÃO". '), _defineProperty(_pt$data, 'MYWAL_Nick', 'Apelido da Carteira '), _defineProperty(_pt$data, 'MYWAL_Address', 'Endereço da Carteira '), _defineProperty(_pt$data, 'MYWAL_Bal', 'Saldo '), _defineProperty(_pt$data, 'MYWAL_Edit', 'Editar '), _defineProperty(_pt$data, 'MYWAL_View', 'Ver '), _defineProperty(_pt$data, 'MYWAL_Remove', 'Remover '), _defineProperty(_pt$data, 'MYWAL_RemoveWal', 'Remover Carteira: '), _defineProperty(_pt$data, 'MYWAL_WatchOnly', 'Suas contas somente de exibição '), _defineProperty(_pt$data, 'MYWAL_Viewing', 'Exibindo Carteira '), _defineProperty(_pt$data, 'MYWAL_Hide', 'Esconder Info da Carteira '), _defineProperty(_pt$data, 'MYWAL_Edit_2', 'Editar Carteira '), _defineProperty(_pt$data, 'MYWAL_Name', 'Nome da Carteira '), _defineProperty(_pt$data, 'MYWAL_Content_1', 'Cuidado! Você está prestes a remover sua carteira '), _defineProperty(_pt$data, 'MYWAL_Content_2', 'Certifique-se de que **salvou a chave privada e / ou o Arquivo do Keystore e a senha** antes de removê-la. '), _defineProperty(_pt$data, 'MYWAL_Content_3', 'Se pretender utilizar esta carteira com o MyEtherWallet CX no futuro, terá de voltar a adicioná-la manualmente utilizando a chave privada/JSON e a palavra-passe. '), _defineProperty(_pt$data, 'VIEWWALLET_Subtitle', 'This allows you to download different versions of private keys and re-print your paper wallet. You may want to do this in order to [import your account into Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). If you want to check your balance, we recommend using a blockchain explorer like [etherscan.io](https://etherscan.io/). '), _defineProperty(_pt$data, 'VIEWWALLET_Subtitle_Short', 'This allows you to download different versions of private keys and re-print your paper wallet. '), _defineProperty(_pt$data, 'VIEWWALLET_SuccessMsg', 'Success! Here are your wallet details. '), _defineProperty(_pt$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_pt$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_pt$data, 'MNEM_1', 'Por favor, selecione o endereço com o qual você gostaria de interagir. '), _defineProperty(_pt$data, 'MNEM_2', 'Sua frase HD mnemônica única pode acessar uma série de carteiras/endereços. Por favor, selecione o endereço com o qual você gostaria interagir neste momento. '), _defineProperty(_pt$data, 'MNEM_more', 'Mais Endereços '), _defineProperty(_pt$data, 'MNEM_prev', 'Endereço Anterior '), _defineProperty(_pt$data, 'x_Ledger', 'Carteira Ledge '), _defineProperty(_pt$data, 'ADD_Ledger_1', 'Conectar-se a Carteira Ledge '), _defineProperty(_pt$data, 'ADD_Ledger_2', 'Abra a aplicação Ethereum (ou uma aplicação de contrato) '), _defineProperty(_pt$data, 'ADD_Ledger_2_Exp', 'Abra a aplicação Expanse (ou uma aplicação de contrato) '), _defineProperty(_pt$data, 'ADD_Ledger_2_Ubq', 'Abra a aplicação Ubiq (ou uma aplicação de contrato) '), _defineProperty(_pt$data, 'ADD_Ledger_3', 'Verifique se o Suporte do Navegador está habilitado em Configurações '), _defineProperty(_pt$data, 'ADD_Ledger_scan', 'Conectar-se a Ledger Wallet '), _defineProperty(_pt$data, 'ADD_Ledger_4', 'Se nenhum suporte de navegador for encontrado nas configurações, verifique se [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_pt$data, 'ADD_Ledger_0a', 'Re-abra MyEtherWallet em uma conexão (SSL) segura '), _defineProperty(_pt$data, 'ADD_Ledger_0b', 'Re-abra MyEtherWallet usando [Chrome](https://www.google.com/chrome/browser/desktop/) ou [Opera](https://www.opera.com/) '), _defineProperty(_pt$data, 'WARN_Send_Link', 'Você chegou através de um link que tem o endereço, quantidade de gás, ou campos de dados preenchidos para você. Você pode alterar qualquer informação antes de enviar. Desbloqueie sua carteira para começar. '), _defineProperty(_pt$data, 'x_Trezor', 'TREZOR '), _defineProperty(_pt$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_pt$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_pt$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_pt$data, 'ADD_DigitalBitbox_0a', 'Re-abra MyEtherWallet em uma conexão (SSL) segura '), _defineProperty(_pt$data, 'ADD_DigitalBitbox_0b', 'Re-abra MyEtherWallet usando [Chrome](https://www.google.com/chrome/browser/desktop/) ou [Opera](https://www.opera.com/) '), _defineProperty(_pt$data, 'ADD_DigitalBitbox_scan', 'Conectar-se a Digital Bitbox '), _defineProperty(_pt$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_pt$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_pt$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_pt$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_pt$data, 'NODE_Name', 'Node Name'), _defineProperty(_pt$data, 'NODE_Port', 'Node Port'), _defineProperty(_pt$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_pt$data, 'CONTRACT_Title', 'Contract Address '), _defineProperty(_pt$data, 'CONTRACT_Title_2', 'Select Existing Contract '), _defineProperty(_pt$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_pt$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_pt$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_pt$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_pt$data, 'CONTRACT_Read', 'READ '), _defineProperty(_pt$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_pt$data, 'DEP_generate', 'Gerar Bytecode '), _defineProperty(_pt$data, 'DEP_generated', 'Bytecode Gerado '), _defineProperty(_pt$data, 'DEP_signtx', 'Transação Assinada '), _defineProperty(_pt$data, 'DEP_interface', 'Interface Gerada '), _defineProperty(_pt$data, 'SWAP_rates', "Current Rates "), _defineProperty(_pt$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_pt$data, 'SWAP_init_2', " for "), _defineProperty(_pt$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_pt$data, 'SWAP_information', "Your Information "), _defineProperty(_pt$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_pt$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_pt$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_pt$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_pt$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_pt$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_pt$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_pt$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_pt$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_pt$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_pt$data, 'SWAP_progress_3', "Received! "), _defineProperty(_pt$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_pt$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_pt$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_pt$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_pt$data, 'MSG_message', 'Message '), _defineProperty(_pt$data, 'MSG_date', 'Date '), _defineProperty(_pt$data, 'MSG_signature', 'Signature '), _defineProperty(_pt$data, 'MSG_verify', 'Verify Message '), _defineProperty(_pt$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_pt$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_pt$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_pt$data, 'CX_error_1', 'You don\'t have any wallets saved. Click ["Add Wallet"](/cx-wallet.html#add-wallet) to add one! '), _defineProperty(_pt$data, 'CX_quicksend', 'QuickSend '), _defineProperty(_pt$data, 'ERROR_0', 'Please enter a valid amount.'), _defineProperty(_pt$data, 'ERROR_1', 'Your password must be at least 9 characters. Please ensure it is a strong password. '), _defineProperty(_pt$data, 'ERROR_2', 'Sorry! We don\'t recognize this type of wallet file. '), _defineProperty(_pt$data, 'ERROR_3', 'This is not a valid wallet file. '), _defineProperty(_pt$data, 'ERROR_4', 'This unit doesn\'t exists, please use the one of the following units '), _defineProperty(_pt$data, 'ERROR_5', 'Please enter a valid address. '), _defineProperty(_pt$data, 'ERROR_6', 'Please enter a valid password. '), _defineProperty(_pt$data, 'ERROR_7', 'Please enter valid decimals (Must be integer, 0-18). '), _defineProperty(_pt$data, 'ERROR_8', 'Please enter a valid gas limit (Must be integer. Try 21000-4000000). '), _defineProperty(_pt$data, 'ERROR_9', 'Please enter a valid data value (Must be hex). '), _defineProperty(_pt$data, 'ERROR_10', 'Please enter a valid gas price. (Must be integer. Try 20 GWEI (20000000000 WEI)'), _defineProperty(_pt$data, 'ERROR_11', 'Please enter a valid nonce (Must be integer).'), _defineProperty(_pt$data, 'ERROR_12', 'Invalid signed transaction. '), _defineProperty(_pt$data, 'ERROR_13', 'A wallet with this nickname already exists. '), _defineProperty(_pt$data, 'ERROR_14', 'Wallet not found. '), _defineProperty(_pt$data, 'ERROR_15', 'Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. '), _defineProperty(_pt$data, 'ERROR_16', 'A wallet with this address already exists in storage. Please check your wallets page. '), _defineProperty(_pt$data, 'ERROR_17', 'Account you are sending from does not have enough funds. If sending tokens, you must have 0.01 ETH in your account to cover the cost of gas. '), _defineProperty(_pt$data, 'ERROR_18', 'All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_pt$data, 'ERROR_19', 'Please enter a valid symbol'), _defineProperty(_pt$data, 'ERROR_20', 'Não é um token ERC-20 válido '), _defineProperty(_pt$data, 'ERROR_21', 'Não foi possível estimar o gás. Não há fundos suficientes na conta, ou o endereço do contrato de recebimento iria lançar um erro. Sinta-se livre para definir manualmente o gás e prossiga. A mensagem de erro ao enviar pode ser mais informativa. '), _defineProperty(_pt$data, 'ERROR_22', 'Please enter a valid node name'), _defineProperty(_pt$data, 'ERROR_23', 'Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_pt$data, 'ERROR_24', 'Please enter a valid port. '), _defineProperty(_pt$data, 'ERROR_25', 'Please enter a valid chain ID. '), _defineProperty(_pt$data, 'ERROR_26', 'Please enter a valid ABI. '), _defineProperty(_pt$data, 'ERROR_27', 'Minimum amount: 0.01. Max amount: '), _defineProperty(_pt$data, 'ERROR_28', '**Você precisa do seu arquivo de armazenamento de chaves & senha** (ou Chave Privada) para acessar essa carteira no futuro. Por favor, salve e armazene ela externamente! Não há como recuperar uma carteira se você não salvar isso. Leia a [página de ajuda](https://www.myetherwallet.com/#help) para instruções. '), _defineProperty(_pt$data, 'ERROR_29', 'Please enter a valid user and password. '), _defineProperty(_pt$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_pt$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_pt$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_pt$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_pt$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_pt$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_pt$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_pt$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_pt$data, 'SUCCESS_1', 'Valid address '), _defineProperty(_pt$data, 'SUCCESS_2', 'Wallet successfully decrypted '), _defineProperty(_pt$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_pt$data, 'SUCCESS_4', 'Your wallet was successfully added '), _defineProperty(_pt$data, 'SUCCESS_5', 'File Selected '), _defineProperty(_pt$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_pt$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_pt$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_pt$data, 'GETH_InvalidSender', 'Invalid sender '), _defineProperty(_pt$data, 'GETH_Nonce', 'Nonce too low '), _defineProperty(_pt$data, 'GETH_Cheap', 'Gas price too low for acceptance '), _defineProperty(_pt$data, 'GETH_Balance', 'Insufficient balance '), _defineProperty(_pt$data, 'GETH_NonExistentAccount', 'Account does not exist or account balance too low '), _defineProperty(_pt$data, 'GETH_InsufficientFunds', 'Insufficient funds for gas * price + value '), _defineProperty(_pt$data, 'GETH_IntrinsicGas', 'Intrinsic gas too low '), _defineProperty(_pt$data, 'GETH_GasLimit', 'Exceeds block gas limit '), _defineProperty(_pt$data, 'GETH_NegativeValue', 'Negative value '), _defineProperty(_pt$data, 'PARITY_AlreadyImported', "Transaction with the same hash was already imported."), _defineProperty(_pt$data, 'PARITY_Old', "Transaction nonce is too low. Try incrementing the nonce."), _defineProperty(_pt$data, 'PARITY_TooCheapToReplace', "Transaction fee is too low. There is another transaction with same nonce in the queue. Try increasing the fee or incrementing the nonce."), _defineProperty(_pt$data, 'PARITY_LimitReached', "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee."), _defineProperty(_pt$data, 'PARITY_InsufficientGasPrice', "Transaction fee is too low. It does not satisfy your node's minimal fee (minimal: {}, got: {}). Try increasing the fee."), _defineProperty(_pt$data, 'PARITY_InsufficientBalance', "Insufficient funds. Account you try to send transaction from does not have enough funds. Required {} wei and got: {} wei."), _defineProperty(_pt$data, 'PARITY_GasLimitExceeded', "Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas."), _defineProperty(_pt$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_pt$data, 'translate_version', '0.3 '), _defineProperty(_pt$data, 'Translator_Desc', 'Thank you to our translators '), _defineProperty(_pt$data, 'TranslatorName_1', '[ Pedro "ShooterXD" Vieira ](https://www.myetherwallet.com/?gaslimit=21000&to=0x24eB7d82166361A8B69adE6FEA187Cb00FD7c7E1&value=1.0#send-transaction) '), _defineProperty(_pt$data, 'TranslatorAddr_1', ''), _defineProperty(_pt$data, 'TranslatorName_2', '[ Marcos Faria Arruda ](https://www.jusadvisor.com)'), _defineProperty(_pt$data, 'TranslatorAddr_2', 'https://www.jusadvisor.com'), _defineProperty(_pt$data, 'TranslatorName_3', ''), _defineProperty(_pt$data, 'TranslatorAddr_3', ''), _defineProperty(_pt$data, 'TranslatorName_4', ''), _defineProperty(_pt$data, 'TranslatorAddr_4', ''), _defineProperty(_pt$data, 'TranslatorName_5', ''), _defineProperty(_pt$data, 'TranslatorAddr_5', ''), _defineProperty(_pt$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_pt$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_pt$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_pt$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_pt$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_pt$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_pt$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_pt$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_pt$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_pt$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_pt$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_pt$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_pt$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_pt$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_pt$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_pt$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_pt$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_pt$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_pt$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_pt$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_pt$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_pt$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_pt$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_pt$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_pt$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_pt$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_pt$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_pt$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_pt$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_pt$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_pt$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_pt$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_pt$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_pt$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_pt$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_pt$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_pt$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_pt$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_pt$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_pt$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_pt$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_pt$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_pt$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_pt$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_pt$data, 'HELP_4_Desc_2', 'Navigate to the "Enviar Ether & Tokens" page. '), _defineProperty(_pt$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_pt$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_pt$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_pt$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_pt$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_pt$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_pt$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_pt$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_pt$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_pt$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_pt$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_pt$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Enviar Ether & Tokens" page. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_pt$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_pt$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_pt$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_pt$data, 'HELP_4CX_Desc_12', 'Using "Enviar Ether & Tokens" Page '), _defineProperty(_pt$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_pt$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_pt$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_pt$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_pt$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_pt$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_pt$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_pt$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_pt$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_pt$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_pt$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_pt$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_pt$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_pt$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_pt$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_pt$data, 'HELP_7_Desc_1', 'Navigate to the "Enviar Ether & Tokens" page. '), _defineProperty(_pt$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_pt$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_pt$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_pt$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_pt$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_pt$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_pt$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_pt$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_pt$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_pt$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_pt$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_pt$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_pt$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_pt$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_pt$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_pt$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_pt$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_pt$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_pt$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_pt$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_pt$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_pt$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_pt$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_pt$data, 'HELP_9_Title', '9) Is the "Enviar Ether & Tokens" page offline? '), _defineProperty(_pt$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_pt$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_pt$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_pt$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_pt$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_pt$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_pt$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_pt$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_pt$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_pt$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_pt$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_pt$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_pt$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_pt$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_pt$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_pt$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_pt$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_pt$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_pt$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_pt$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_pt$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_pt$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_pt$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_pt$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_pt$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_pt$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_pt$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_pt$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_pt$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_pt$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_pt$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_pt$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_pt$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_pt$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_pt$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_pt$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_pt$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_pt$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_pt$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_pt$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_pt$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_pt$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_pt$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_pt$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_pt$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_pt$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_pt$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_pt$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_pt$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_pt$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_pt$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_pt$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_pt$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_pt$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_pt$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_pt$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_pt$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_pt$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_pt$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_pt$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_pt$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_pt$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_pt$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_pt$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_pt$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_pt$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_pt$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_pt$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_pt$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_pt$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_pt$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_pt$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_pt$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_pt$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_pt$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_pt$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_pt$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_pt$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_pt$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _pt$data);
module.exports = pt;
},{}],124:[function(require,module,exports){
// Russian
'use strict';
var _ru$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ru = function ru() {};
ru.code = 'ru';
ru.data = (_ru$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_ru$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_ru$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_ru$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_ru$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_ru$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_ru$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_ru$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_ru$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_ru$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_ru$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_ru$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_ru$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_ru$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_ru$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_ru$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_ru$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_ru$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_ru$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_ru$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_ru$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_ru$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_ru$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_ru$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_ru$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_ru$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_ru$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_ru$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_ru$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_ru$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_ru$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_ru$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_ru$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_ru$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_ru$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_ru$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_ru$data, 'x_ReadMore', 'Read More'), _defineProperty(_ru$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_ru$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_ru$data, 'x_TXFee', 'TX Fee'), _defineProperty(_ru$data, 'x_TxHash', 'TX Hash'), _defineProperty(_ru$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_ru$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_ru$data, 'tx_Details', 'Transaction Details'), _defineProperty(_ru$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_ru$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_ru$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_ru$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_ru$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_ru$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_ru$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_ru$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_ru$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_ru$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_ru$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_ru$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_ru$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_ru$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_ru$data, 'GEN_Help_1', 'Use your'), _defineProperty(_ru$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_ru$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_ru$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_ru$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_ru$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_ru$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_ru$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_ru$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_ru$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_ru$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_ru$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_ru$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_ru$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_ru$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_ru$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_ru$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_ru$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_ru$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_ru$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_ru$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_ru$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_ru$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_ru$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_ru$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_ru$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_ru$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_ru$data, 'NAV_AddWallet', 'Добавить кошелёк '), _defineProperty(_ru$data, 'NAV_BulkGenerate', 'Создать несколько кошельков '), _defineProperty(_ru$data, 'NAV_Contact', 'Контакты '), _defineProperty(_ru$data, 'NAV_Contracts', 'контракт '), _defineProperty(_ru$data, 'NAV_DeployContract', 'Опубликовать контракт '), _defineProperty(_ru$data, 'NAV_ENS', 'ENS'), _defineProperty(_ru$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_ru$data, 'NAV_GenerateWallet', 'Создать кошелёк '), _defineProperty(_ru$data, 'NAV_Help', 'Справка '), _defineProperty(_ru$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_ru$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_ru$data, 'NAV_MyWallets', 'Мои кошельки '), _defineProperty(_ru$data, 'NAV_Offline', 'Оффлайн-перевод '), _defineProperty(_ru$data, 'NAV_SendEther', 'Перевести эфир (ether) и токены '), _defineProperty(_ru$data, 'NAV_SendTokens', 'Перевести токены '), _defineProperty(_ru$data, 'NAV_SignMsg', 'Подписать сообщение '), _defineProperty(_ru$data, 'NAV_Swap', 'Обмен '), _defineProperty(_ru$data, 'NAV_ViewWallet', 'Информация о кошельке '), _defineProperty(_ru$data, 'NAV_YourWallets', 'Ваши кошельки '), _defineProperty(_ru$data, 'x_Access', 'Подключиться '), _defineProperty(_ru$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Это можно назвать "номер Вашего счёта" или "Ваш открытый ключ". Вы сообщаете этот адрес людям, чтобы они могли отправлять Вам эфир (ether). Картинка позволяет легко опознать Ваш адрес среди других адресов. '), _defineProperty(_ru$data, 'x_Address', 'Ваш адрес '), _defineProperty(_ru$data, 'x_Cancel', 'Отменить '), _defineProperty(_ru$data, 'x_CSV', 'Файл CSV (не зашифрован) '), _defineProperty(_ru$data, 'x_Download', 'Скачать '), _defineProperty(_ru$data, 'x_Json', 'Файл JSON (не зашифрован) '), _defineProperty(_ru$data, 'x_JsonDesc', 'Это Ваш незашифрованный закрытый ключ в формате JSON, для использования которого не требуется воодить пароль. Любой, у кого есть этот файл, может распоряжаться вашим кошельком и эфиром (ether) без ввода пароля. '), _defineProperty(_ru$data, 'x_Keystore', 'Файл Keystore (UTC / JSON · рекомендуется · зашифрован) '), _defineProperty(_ru$data, 'x_Keystore2', 'Файл Keystore (UTC / JSON) '), _defineProperty(_ru$data, 'x_KeystoreDesc', 'Этот файл Keystore использует формат совместимый с Mist. Вы сможете в будущем импортировать его. Рекомендуется скачать этот файл и сделать резервную копию. '), _defineProperty(_ru$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_ru$data, 'x_Mnemonic', 'Кодовая фраза '), _defineProperty(_ru$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_ru$data, 'x_Password', 'Пароль '), _defineProperty(_ru$data, 'x_Print', 'Напечатать бумажный кошелёк '), _defineProperty(_ru$data, 'x_PrintDesc', 'Для профи: Нажмите "Печать" и сохраните это в формате PDF, если у Вас нет принтера! '), _defineProperty(_ru$data, 'x_PrintShort', 'Печать '), _defineProperty(_ru$data, 'x_PrivKey', 'Закрытый ключ (не зашифрован) '), _defineProperty(_ru$data, 'x_PrivKey2', 'Закрытый ключ '), _defineProperty(_ru$data, 'x_PrivKeyDesc', 'Это незашифрованное текстовое представление Вашего закрытого ключа, для использования которого не требуется вводить пароль. Если посторонние узнают Ваш закрытый ключ, они смогут распоряжаться Вашим кошельком без ввода пароля. По этой причине, обычно рекомендуют использовать зашифрованную версию закрытого ключа. '), _defineProperty(_ru$data, 'x_Save', 'Сохранить '), _defineProperty(_ru$data, 'x_TXT', 'Файл TXT (не зашифрован) '), _defineProperty(_ru$data, 'x_Wallet', 'кошелёк '), _defineProperty(_ru$data, 'MEW_Warning_1', 'Всегда проверяйте URL перед тем, как воспользоваться существующим кошельком или создать новый. Опасайтесь поддельных (фишинговых) сайтов! '), _defineProperty(_ru$data, 'CX_Warning_1', 'Всегда имейте **резервную копию** всех кошельков, которые Вы храните здесь. Различные обстоятельства могут привести к тому, что данные, хранимые в этом расширении браузера Chrome, могут быть потеряны, например если Вы удалите или переустановите расширение. Это расширение облегчает использование Ваших кошельков, но оно **не является** надежным местом для их хранения. '), _defineProperty(_ru$data, 'MEW_Tagline', 'Ethereum кошелёк на javascript с открытым исходным кодом '), _defineProperty(_ru$data, 'CX_Tagline', 'Ethereum кошелёк на javascript с открытым исходным кодом в виде расширения для браузера Chrome '), _defineProperty(_ru$data, 'FOOTER_1', 'Написанный на javascript инструмент с открытым исходным кодом для создания Ethereum кошельков и выполнения транзакций. '), _defineProperty(_ru$data, 'FOOTER_1b', 'Авторы: '), _defineProperty(_ru$data, 'FOOTER_2', 'Пожертвования приветствуются: '), _defineProperty(_ru$data, 'FOOTER_3', 'Создание кошелька на стороне клиента от '), _defineProperty(_ru$data, 'FOOTER_4', 'Отказ от ответственности '), _defineProperty(_ru$data, 'sidebar_AccountInfo', 'Информация о счёте '), _defineProperty(_ru$data, 'sidebar_AccountAddr', 'Адрес (номер) счёта '), _defineProperty(_ru$data, 'sidebar_AccountBal', 'Баланс счёта '), _defineProperty(_ru$data, 'sidebar_TokenBal', 'Балансы токенов '), _defineProperty(_ru$data, 'sidebar_Equiv', 'Эквивалентные значения '), _defineProperty(_ru$data, 'sidebar_TransHistory', 'История транзакций '), _defineProperty(_ru$data, 'sidebar_donation', 'MyEtherWallet — это бесплатный сервис с открытым исходным кодом, заботящийся о Вашей безопасности и неприкосновенности Вашей частной жизни. Чем больше пожертвований мы получаем, тем больше времени мы проводим, добавляя новые возможности, прислушиваясь к Вашим пожеланиям и предоставляя Вам то, что Вам необходимо. Мы — всего лишь два человека, пытающиеся изменить Мир. Вы поможете нам? '), _defineProperty(_ru$data, 'sidebar_donate', 'Пожертвовать '), _defineProperty(_ru$data, 'sidebar_thanks', 'СПАСИБО!!! '), _defineProperty(_ru$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_ru$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_ru$data, 'decrypt_Access', 'Каким способом Вы хотите получать доступ к своему кошельку? '), _defineProperty(_ru$data, 'decrypt_Title', 'Выберите формат Вашего закрытого ключа: '), _defineProperty(_ru$data, 'decrypt_Select', 'Выберите кошелёк: '), _defineProperty(_ru$data, 'ADD_Label_1', 'Что Вы хотите сделать? '), _defineProperty(_ru$data, 'ADD_Radio_1', 'Создать новый кошелёк '), _defineProperty(_ru$data, 'ADD_Radio_2', 'Выбрать файл с кошельком (Keystore/JSON) '), _defineProperty(_ru$data, 'ADD_Radio_2_alt', 'Выбрать файл с кошельком '), _defineProperty(_ru$data, 'ADD_Radio_2_short', 'ВЫБРАТЬ ФАЙЛ С КОШЕЛЬКОМ... '), _defineProperty(_ru$data, 'ADD_Radio_3', 'Вставить или ввести Ваш закрытый ключ '), _defineProperty(_ru$data, 'ADD_Radio_4', 'Добавить счёт в список слежения '), _defineProperty(_ru$data, 'ADD_Radio_5', 'Скопируйте или введите кодовую фразу '), _defineProperty(_ru$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_ru$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_ru$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_ru$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_ru$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_ru$data, 'ADD_Radio_5_PathCustom', '(Custom) '), _defineProperty(_ru$data, 'ADD_Label_2', 'Присвоить название: '), _defineProperty(_ru$data, 'ADD_Label_3', 'Ваш кошелёк зашифрован. Пожалуйста, введите пароль '), _defineProperty(_ru$data, 'ADD_Label_4', 'Добавить счёт в список слежения '), _defineProperty(_ru$data, 'ADD_Warning_1', 'Вы можете добавить счёт в "список слежения" на вкладке "кошельки", не загружая закрытый ключ. Добавление счёта в список слежения не означает, что вы имеете доступ к этому счёту, или можете распоряжаться эфиром (ether), лежащим на нём. '), _defineProperty(_ru$data, 'ADD_Label_5', 'Введите адрес '), _defineProperty(_ru$data, 'ADD_Label_6', 'Отпереть кошелёк '), _defineProperty(_ru$data, 'ADD_Label_6_short', 'Отпереть '), _defineProperty(_ru$data, 'ADD_Label_7', 'Добавить счёт '), _defineProperty(_ru$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_ru$data, 'GEN_desc', 'Если Вы хотите создать несколько кошельков, Вы можете сделать это здесь '), _defineProperty(_ru$data, 'GEN_Label_1', 'Введите сложный пароль (не менее 9 символов) '), _defineProperty(_ru$data, 'GEN_Placeholder_1', 'Не забудьте сохранить это! '), _defineProperty(_ru$data, 'GEN_SuccessMsg', 'Поздравляем! Ваш кошелёк успешно создан. '), _defineProperty(_ru$data, 'GEN_Label_2', 'Сохраните Ваш файл Keystore/JSON или закрытый ключ. Не забывайте Ваш пароль! '), _defineProperty(_ru$data, 'GEN_Label_3', 'Сохраните Ваш адрес. '), _defineProperty(_ru$data, 'GEN_Label_4', 'Напечатайте бумажный кошелёк или сохраните QR код. (по желанию) '), _defineProperty(_ru$data, 'BULK_Label_1', 'Сколько кошельков создать '), _defineProperty(_ru$data, 'BULK_Label_2', 'Создать кошельки '), _defineProperty(_ru$data, 'BULK_SuccessMsg', 'Поздравляем! Ваши кошельки успешно созданы. '), _defineProperty(_ru$data, 'SEND_addr', 'Адрес получателя '), _defineProperty(_ru$data, 'SEND_amount', 'Сумма перевода '), _defineProperty(_ru$data, 'SEND_amount_short', 'Сумма '), _defineProperty(_ru$data, 'SEND_custom', 'Другое '), _defineProperty(_ru$data, 'SEND_gas', 'Газ '), _defineProperty(_ru$data, 'SEND_TransferTotal', 'Перевести весь доступный баланс '), _defineProperty(_ru$data, 'SEND_generate', 'Сформировать транзакцию '), _defineProperty(_ru$data, 'SEND_raw', 'Готовая транзакция '), _defineProperty(_ru$data, 'SEND_signed', 'Подписанная транзакция '), _defineProperty(_ru$data, 'SEND_trans', 'Отправить транзакцию '), _defineProperty(_ru$data, 'SENDModal_Title', 'Внимание! '), _defineProperty(_ru$data, 'SENDModal_Content_1', 'Вы собираетесь перевести '), _defineProperty(_ru$data, 'SENDModal_Content_2', 'на адрес '), _defineProperty(_ru$data, 'SENDModal_Content_3', 'Вы уверены, что хотите сделать это? '), _defineProperty(_ru$data, 'SENDModal_Content_4', 'К СВЕДЕНИЮ: Если произошла ошибка, Вам скорее всего надо положить ещё немного эфира (ether) на Ваш счёт, чтобы покрыть расходы на газ при пре переводе токенов. Расходы на газ оплачиваются эфиром (ether). '), _defineProperty(_ru$data, 'SENDModal_No', 'Нет, отменить транзакцию! '), _defineProperty(_ru$data, 'SENDModal_Yes', 'Да, я уверен! Выполнить транзакцию. '), _defineProperty(_ru$data, 'TOKEN_Addr', 'Адрес токена'), _defineProperty(_ru$data, 'TOKEN_Symbol', 'Символ токена '), _defineProperty(_ru$data, 'TOKEN_Dec', 'Дробность (знаков после запятой) '), _defineProperty(_ru$data, 'TRANS_desc', 'Если Вы хотите перевести токены, используйте страницу "Отправить токены". '), _defineProperty(_ru$data, 'TRANS_warning', 'Если Вы используете функции "только ETH" или "только ETC", перевод будет выполнен с помощью контракта. У некоторых сервисов могут возникнуть проблемы с приёмом таких переводов. Уточните этот вопрос. '), _defineProperty(_ru$data, 'TRANS_advanced', '+Дополнительно: добавить данные '), _defineProperty(_ru$data, 'TRANS_data', 'Данные '), _defineProperty(_ru$data, 'TRANS_sendInfo', 'Стандартная транзакция, использующая 21000 газа, будет стоить 0,000441 эфира (ether). Мы указываем цену газа немного выше минимально возможной: 0,000000021 эфира (ether), для того, чтобы ускорить выполнение танзакций. Мы не берём комиссию за выполнение транзакций. '), _defineProperty(_ru$data, 'TRANSModal_Title', 'Транзакции вида "только ETH" и "только ETC" '), _defineProperty(_ru$data, 'TRANSModal_Content_0', 'О видах транзакций и сервисах: '), _defineProperty(_ru$data, 'TRANSModal_Content_1', '**Эфир (ether, обычная транзакция): ** Выполняет обычный перевод напрямую с одного адреса на другой. Используется стандартное количесвто газа: 21000. В большинстве случаев, перевод ETH, выполненный этим способом, можно будет продублировать для ETC. '), _defineProperty(_ru$data, 'TRANSModal_Content_2', '**Только ETH: ** Выполняет перевод через [контракт Тимона Раппа, защищающий от дублирования переводов (рекомендован ВБ)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), поэтому перевод будет выполнен только в **ETH**. '), _defineProperty(_ru$data, 'TRANSModal_Content_3', '**Только ETC: ** Выполняет перевод через [контракт Тимона Раппа, защищающий от дублирования переводов (рекомендован ВБ)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/), поэтому перевод будет выполнен только в **ETC**. '), _defineProperty(_ru$data, 'TRANSModal_Content_4', '**Coinbase и ShapeShift: ** Отправляйте им только обычные транзакции. Если Вы отправите им транзакцию вида "только ...", то Вам придётся обращаться к их службе поддержки, чтобы они вручную пополнили Ваш баланс или вернули бы Вам Ваш эфир (ether). [Вы также можете попробовать использовать инструмент "split" от Shapeshift.](https://split.shapeshift.io/) '), _defineProperty(_ru$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Проблем не выявлено. Можно использовать транзакции любого вида. '), _defineProperty(_ru$data, 'TRANSModal_Yes', 'Спасибо, я всё понял. '), _defineProperty(_ru$data, 'TRANSModal_No', 'Чёрт, теперь я окончательно запутался. Помогите мне. '), _defineProperty(_ru$data, 'OFFLINE_Title', 'Сформировать и отправить оффлайн транзакцию '), _defineProperty(_ru$data, 'OFFLINE_Desc', 'Оффлайн транзакция формируется за тра шага. Вы должны выполнить шаги №1 и №3 на компьютере, подключённом к интернету (на онлайн компьютере), а шаг №2 на компьютере, отсоединённом от сети (на оффлайн компьютере). Это гарантирует, что подключённые к интернет устройства не получат доступа к Вашим закрытым ключам. '), _defineProperty(_ru$data, 'OFFLLINE_Step1_Title', 'Шаг №1: Подготовка информации (онлайн компьютер) '), _defineProperty(_ru$data, 'OFFLINE_Step1_Button', 'Подготовка информации '), _defineProperty(_ru$data, 'OFFLINE_Step1_Label_1', 'Адрес отправителя '), _defineProperty(_ru$data, 'OFFLINE_Step1_Label_2', 'Внимание: Это адрес ОТПРАВИТЕЛЯ, а не адрес получателя. № перевода (nonce) определяется для адреса отправителя. При использовании оффлайн компьютера, физически изолированного от сети, это будет адрес счёта "холодного хранения" (cold-storage). '), _defineProperty(_ru$data, 'OFFLINE_Step2_Title', 'Шаг №2: Формирование транзакции (оффлайн компьютер) '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_1', 'Адрес получателя '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_2', 'Сумма перевода '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_3', 'Цена газа '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_3b', 'Это отображалось на шаге №1 на Вашем онлайн компьютере. '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_4', 'Лимит газа '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_4b', 'Лимит газа по умолчанию: 21000. При использовании контрактов или передаче дополнительных данных может быть необходимо указать другое значение. Неистраченный газ будет Вам возвращён. '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_5', '№ перевода (nonce) '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_5b', 'Это отображалось на шаге №1 на Вашем онлайн компьютере. '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_6', 'Данные '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_6b', 'Это необязательный параметр. Данные обычно указывают при использовании контрактов. '), _defineProperty(_ru$data, 'OFFLINE_Step2_Label_7', 'Выберите или введите ваш закрытый ключ или JSON. '), _defineProperty(_ru$data, 'OFFLINE_Step3_Title', 'Шаг №3: Выполнить транзакцию (онлайн компьютер) '), _defineProperty(_ru$data, 'OFFLINE_Step3_Label_1', 'Вставьте подписанную транзакцию с шага №2 и нажмите кнопку "ВЫПОЛНИТЬ ТРАНЗАКЦИЮ". '), _defineProperty(_ru$data, 'DEP_generate', 'Сформировать байткод '), _defineProperty(_ru$data, 'DEP_generated', 'Сформированный байткод '), _defineProperty(_ru$data, 'DEP_signtx', 'Подписать транзакцию '), _defineProperty(_ru$data, 'DEP_interface', 'Сформированный интерфейс '), _defineProperty(_ru$data, 'MYWAL_Nick', 'Название кошелька '), _defineProperty(_ru$data, 'MYWAL_Address', 'Адрес кошелька '), _defineProperty(_ru$data, 'MYWAL_Bal', 'Баланс '), _defineProperty(_ru$data, 'MYWAL_Edit', 'Редактировать '), _defineProperty(_ru$data, 'MYWAL_View', 'Просмотреть '), _defineProperty(_ru$data, 'MYWAL_Remove', 'Удалить '), _defineProperty(_ru$data, 'MYWAL_RemoveWal', 'Удалить кошелёк: '), _defineProperty(_ru$data, 'MYWAL_WatchOnly', 'Список слежения '), _defineProperty(_ru$data, 'MYWAL_Viewing', 'Просматриваемый кошелёк '), _defineProperty(_ru$data, 'MYWAL_Hide', 'Скрыть информацию о кошельке '), _defineProperty(_ru$data, 'MYWAL_Edit_2', 'Редактировать кошелёк '), _defineProperty(_ru$data, 'MYWAL_Name', 'Имя кошелька '), _defineProperty(_ru$data, 'MYWAL_Content_1', 'Внимание! Вы собираетесь удалить кошелёк '), _defineProperty(_ru$data, 'MYWAL_Content_2', 'Убедитесь, что Вы **сохранили закрытый ключ или файл Keystore / JSON и пароль** от этого кошелька, прежде чем Вы удалите этот кошелёк. '), _defineProperty(_ru$data, 'MYWAL_Content_3', 'Если Вы планируете в будущем использовать этот кошелёк в MyEtherWallet CX, Вам надо будет вручную заново добавить его, указав закрытый ключ или файл JSON и пароль. '), _defineProperty(_ru$data, 'VIEWWALLET_Subtitle', 'Позволяет скачать закрытые ключи в различных форматах, а также повторно напечатать Ваши бумажные кошельки. Вам это понадобится, когда Вы захотите [импортировать Ваши счета в geth или Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Для проверки баланса Ваших счетов мы рекомендуем использовать браузер блокчейна, например [etherscan.io](https://etherscan.io/). '), _defineProperty(_ru$data, 'VIEWWALLET_Subtitle_Short', 'Позволяет Вам скачать Ваши закрытые ключи в различных форматах, а также повторно напечатать Ваши бумажные кошельки. '), _defineProperty(_ru$data, 'VIEWWALLET_SuccessMsg', 'Поздравляем! Вот информация о Вашем кошельке. '), _defineProperty(_ru$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_ru$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_ru$data, 'CX_error_1', 'У Вас нет сохранённых кошельков. Чтобы создать кошелёк, нажмите ["Создать кошелёк"](/cx-wallet.html#add-wallet)! '), _defineProperty(_ru$data, 'CX_quicksend', 'Моментальный перевод '), _defineProperty(_ru$data, 'NODE_Title', 'Настроить собственный узел'), _defineProperty(_ru$data, 'NODE_Subtitle', 'Для подключения к локальному узлу...'), _defineProperty(_ru$data, 'NODE_Warning', 'Ваш узел должен использовать протокол HTTPS, чтобы MyEtherWallet.com мог с ним работать. Вы можете [скачать репозиторий MyEtherWallet & и запустить его локально](https://github.com/kvhnuke/etherwallet/releases/latest) чтобы иметь возможность работать с любыми узлами, или получите бесплатный SSL сертификат на [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_ru$data, 'NODE_Name', 'Имя узла'), _defineProperty(_ru$data, 'NODE_Port', 'Порт узла'), _defineProperty(_ru$data, 'NODE_CTA', 'Сохранить и подключиться к собственному узлу'), _defineProperty(_ru$data, 'CONTRACT_Title', 'Адрес контракта '), _defineProperty(_ru$data, 'CONTRACT_Title_2', 'Выбрать имеющийся контракт '), _defineProperty(_ru$data, 'CONTRACT_Json', 'ABI / JSON интерфейс '), _defineProperty(_ru$data, 'CONTRACT_Interact_Title', 'Прочитать / записать контракт '), _defineProperty(_ru$data, 'CONTRACT_Interact_CTA', 'Выбрать функцию '), _defineProperty(_ru$data, 'CONTRACT_ByteCode', 'Байткод '), _defineProperty(_ru$data, 'CONTRACT_Read', 'ПРОЧИТАТь '), _defineProperty(_ru$data, 'CONTRACT_Write', 'ЗАПИСАТЬ '), _defineProperty(_ru$data, 'SWAP_rates', "Текущие котировки "), _defineProperty(_ru$data, 'SWAP_init_1', "Я хочу обменять мои "), _defineProperty(_ru$data, 'SWAP_init_2', " на "), _defineProperty(_ru$data, 'SWAP_init_CTA', "Поехали! "), _defineProperty(_ru$data, 'SWAP_information', "Информация об операции"), _defineProperty(_ru$data, 'SWAP_send_amt', "Сумма для отправки "), _defineProperty(_ru$data, 'SWAP_rec_amt', "Сумма к получению "), _defineProperty(_ru$data, 'SWAP_your_rate', "Ваш курс "), _defineProperty(_ru$data, 'SWAP_rec_add', "Адрес получателя "), _defineProperty(_ru$data, 'SWAP_start_CTA', "Начать обмен "), _defineProperty(_ru$data, 'SWAP_ref_num', "Идентификатор операции "), _defineProperty(_ru$data, 'SWAP_time', "Время до отправки "), _defineProperty(_ru$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_ru$data, 'SWAP_progress_1', "Заявка выставлена "), _defineProperty(_ru$data, 'SWAP_progress_2', "Ждём получения ваших "), _defineProperty(_ru$data, 'SWAP_progress_3', "Получено! "), _defineProperty(_ru$data, 'SWAP_progress_4', "Отправляем ваши {{orderResult.output.currency}} "), _defineProperty(_ru$data, 'SWAP_progress_5', "Заявка выполнена "), _defineProperty(_ru$data, 'SWAP_order_CTA', "Пожалуйста, отправьте "), _defineProperty(_ru$data, 'SWAP_unlock', "Отоприте ваш кошелёк для отправки ETH или Tokens непосредственно с этой страницы. "), _defineProperty(_ru$data, 'MSG_message', 'Сообщение '), _defineProperty(_ru$data, 'MSG_date', 'Дата '), _defineProperty(_ru$data, 'MSG_signature', 'Подпись '), _defineProperty(_ru$data, 'MSG_verify', 'Проверить сообщение '), _defineProperty(_ru$data, 'MSG_info1', 'Укажите сегдоняшную дату, чтобы подпись не могла быть повторно использована в другой день. '), _defineProperty(_ru$data, 'MSG_info2', 'Укажите ваш псевдоним и то, где вы этот псевдоним используете, чтобы никто другой не смог его использовать. '), _defineProperty(_ru$data, 'MSG_info3', 'Укажите цель отправки сообщения, чтобы оно не могло быть использовно с другой целью. '), _defineProperty(_ru$data, 'MNEM_1', 'Пожалуйста, выберите адрес для выполнения операции. '), _defineProperty(_ru$data, 'MNEM_2', 'Одна кодовая фраза может использоваться для получения доступа к нескольким кошелькам или адресам. Пожалуйста, выберите адрес, который вы хотите использовать в этот раз. '), _defineProperty(_ru$data, 'MNEM_more', 'Следующие адреса '), _defineProperty(_ru$data, 'MNEM_prev', 'Предыдущие адреса '), _defineProperty(_ru$data, 'SEND_custom', 'Добавить свой токен '), _defineProperty(_ru$data, 'TOKEN_hide', 'Спрятать токены '), _defineProperty(_ru$data, 'TOKEN_show', 'Отправить все токены '), _defineProperty(_ru$data, 'TRANS_gas', 'Лимит газа '), _defineProperty(_ru$data, 'WARN_Send_Link', 'Вы попали сюда по ссылке, которая уже содержит в себе адрес, сумму, лимит газа и дополнительные параметры транзакции. ВЫ можете изменить эти данные перед отправкой транзакции. Для начала отоприте ваш кошелёк. '), _defineProperty(_ru$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_ru$data, 'ADD_Ledger_1', 'Присоедините ваш Ledger Wallet '), _defineProperty(_ru$data, 'ADD_Ledger_2', 'Запустите приложение Ethereum (или приложение контракта) '), _defineProperty(_ru$data, 'ADD_Ledger_2_Exp', 'Запустите приложение Expanse (или приложение контракта) '), _defineProperty(_ru$data, 'ADD_Ledger_2_Ubq', 'Запустите приложение Ubiq (или приложение контракта) '), _defineProperty(_ru$data, 'ADD_Ledger_3', 'Убедитесь, что использование из браузера разрешено в настройках '), _defineProperty(_ru$data, 'ADD_Ledger_4', 'Если в настройках нет использования из браузера, убедитесь, что у вас [прошивка версии >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_ru$data, 'ADD_Ledger_0a', 'Перезапустите MyEtherWallet через безопасное (SSL) соединение '), _defineProperty(_ru$data, 'ADD_Ledger_0b', 'Перезапустите MyEtherWallet с браузере [Chrome](https://www.google.com/chrome/browser/desktop/) или [Opera](https://www.opera.com/) '), _defineProperty(_ru$data, 'ADD_Ledger_scan', 'Подключиться к Ledger Wallet '), _defineProperty(_ru$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_ru$data, 'x_Trezor', 'TREZOR '), _defineProperty(_ru$data, 'ADD_Trezor_scan', 'Подключиться к TREZOR '), _defineProperty(_ru$data, 'ADD_Trezor_select', 'Это код восстановления TREZOR '), _defineProperty(_ru$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_ru$data, 'ADD_DigitalBitbox_0a', 'Перезапустите MyEtherWallet через безопасное (SSL) соединение '), _defineProperty(_ru$data, 'ADD_DigitalBitbox_0b', 'Перезапустите MyEtherWallet с браузере [Chrome](https://www.google.com/chrome/browser/desktop/) или [Opera](https://www.opera.com/) '), _defineProperty(_ru$data, 'ADD_DigitalBitbox_scan', 'Подключиться к Digital Bitbox '), _defineProperty(_ru$data, 'ERROR_0', 'Пожалуйста, введите сумму корректно. '), _defineProperty(_ru$data, 'ERROR_1', 'Пароль должен содержать не менее 9 символов. Пожалуйста, используйте сложный пароль. '), _defineProperty(_ru$data, 'ERROR_2', 'К сожалению, мы не смогли определить формат файла кошелька. '), _defineProperty(_ru$data, 'ERROR_3', 'Этот файл не является файлом кошелька. '), _defineProperty(_ru$data, 'ERROR_4', 'Такая единица измерения не существует. Пожалуйста, укажите одну из следующих единиц измерения '), _defineProperty(_ru$data, 'ERROR_5', 'Неправильный адрес. '), _defineProperty(_ru$data, 'ERROR_6', 'Неверный пароль. '), _defineProperty(_ru$data, 'ERROR_7', 'Некорректная сумма. (Must be integer. Try 0-18.) '), _defineProperty(_ru$data, 'ERROR_8', 'Некорректно указан лимит газа. (Must be integer. Try 21000-4000000.) '), _defineProperty(_ru$data, 'ERROR_9', 'Недопустимые данные. (Must be hex.) '), _defineProperty(_ru$data, 'ERROR_10', 'Некорректно указано количество газа. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_ru$data, 'ERROR_11', 'Неверный номер перевода (nonce). (Must be integer.) '), _defineProperty(_ru$data, 'ERROR_12', 'Подписанная транзакция некорректна. '), _defineProperty(_ru$data, 'ERROR_13', 'Кошелёк с таким названием уже существует. '), _defineProperty(_ru$data, 'ERROR_14', 'Кошелёк не найден. '), _defineProperty(_ru$data, 'ERROR_15', 'Предложение с таким идентификатором не существует или при чтении предложения произошла ошибка. '), _defineProperty(_ru$data, 'ERROR_16', 'Кошелёк с таким адресом уже находится в хранилище. Просмотрите в списке кошельков. '), _defineProperty(_ru$data, 'ERROR_17', 'Недостаточно средств. На счёте, с которого вы пытаетесь отправить транзакцию, не хватает средств. Вам необходимо иметь не менее 0.01 эфира (ether) на Вашем счету, чтобы покрыть расходы на газ. Пожалуйста, пложите немного эфира (ether) на счёт и попробуйте снова. '), _defineProperty(_ru$data, 'ERROR_18', 'Транзакция могла бы истратить весь газ. Это значит, что Вы уже голосовали по данному предложению, или период обсуждения данного предложения закончился. '), _defineProperty(_ru$data, 'ERROR_19', 'Неправильный символ '), _defineProperty(_ru$data, 'ERROR_20', 'Not a valid ERC-20 token'), _defineProperty(_ru$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_ru$data, 'ERROR_22', 'Please enter a valid node name'), _defineProperty(_ru$data, 'ERROR_23', 'Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_ru$data, 'ERROR_24', 'Please enter a valid port. '), _defineProperty(_ru$data, 'ERROR_25', 'Please enter a valid chain ID. '), _defineProperty(_ru$data, 'ERROR_26', 'Please enter a valid ABI. '), _defineProperty(_ru$data, 'ERROR_27', 'Minimum amount: 0.01. Maximum Amount: '), _defineProperty(_ru$data, 'ERROR_28', 'В будущем, для доступа к этому кошельку **Вам понадобится либо файл Keystore/JSON вместе с паролем, либо закрытый ключ**. Пожалуйста, сохраните их и сделайте резервную копию! Если Вы потеряете их, то не сможете восстановить доступ к Вашему кошельку. Обратитесь к [справке](https://www.myetherwallet.com/#help) за инструкциями. '), _defineProperty(_ru$data, 'ERROR_29', 'Please enter a valid user and password. '), _defineProperty(_ru$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_ru$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_ru$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_ru$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_ru$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_ru$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_ru$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_ru$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_ru$data, 'SUCCESS_1', 'Адрес указан верно '), _defineProperty(_ru$data, 'SUCCESS_2', 'Кошелёк успешно расшифрован '), _defineProperty(_ru$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_ru$data, 'SUCCESS_4', 'Ваш кошелёк успешно добавлен '), _defineProperty(_ru$data, 'SUCCESS_5', 'Выбранный файл '), _defineProperty(_ru$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_ru$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_ru$data, 'GETH_InvalidSender', 'Неверный адрес отправителя '), _defineProperty(_ru$data, 'GETH_Nonce', 'Номер перевода (nonce) слишком мал '), _defineProperty(_ru$data, 'GETH_Cheap', 'Цена газа слишком низкая '), _defineProperty(_ru$data, 'GETH_Balance', 'Баланс недостаточен '), _defineProperty(_ru$data, 'GETH_NonExistentAccount', 'Счёт не существует или баланс счёта слишком мал '), _defineProperty(_ru$data, 'GETH_InsufficientFunds', 'Недостаточно средств для ГАЗ * ЦЕНА + СУММА '), _defineProperty(_ru$data, 'GETH_IntrinsicGas', 'Недостаточно газа для выполнения транзакции '), _defineProperty(_ru$data, 'GETH_GasLimit', 'Превышен лимит газа на блок '), _defineProperty(_ru$data, 'GETH_NegativeValue', 'Отрицательная сумма '), _defineProperty(_ru$data, 'PARITY_AlreadyImported', "Транзакция с данным хэшем уже импортирована."), _defineProperty(_ru$data, 'PARITY_Old', "Номер перевода (nonce) слишком маленький. Попробуйте увеличить номер перевода (nonce)."), _defineProperty(_ru$data, 'PARITY_TooCheapToReplace', "Комиссия транзакции слишком низкая. В очереди уже есть другая транзакция с таким же номером перевода (nonce). Попробуйте увеличитьразмер комиссии или номер перевода (nonce)."), _defineProperty(_ru$data, 'PARITY_LimitReached', "Слишком много транзакций в очереди. Ваша транзакция была удалена из-за превышения лимита. Попробуйте увеличить размер комиссии."), _defineProperty(_ru$data, 'PARITY_InsufficientGasPrice', "Комиссия транзакции слишком низкая. Она не соответствует минимальному размеру комиссии для вашего узла (минимальная комиссия: {}, ваша комиссия: {}). Попробуйте увеличить размер комиссии."), _defineProperty(_ru$data, 'PARITY_InsufficientBalance', "Недостаточно средств. На счёте, с которого вы пытаетесь отправить транзакцию, не хватает средств. Требуется {}, а имеется только: {}."), _defineProperty(_ru$data, 'PARITY_GasLimitExceeded', "Цена транзакции превышает текущий лимит газа. Лимит: {}, цена: {}. Поробуйте уменьшить отведённое количество газа."), _defineProperty(_ru$data, 'PARITY_InvalidGasLimit', "Отведённое количество газа меньше лимита."), _defineProperty(_ru$data, 'translate_version', '0.3 '), _defineProperty(_ru$data, 'Translator_Desc', 'Спасибо нашим переводчикам '), _defineProperty(_ru$data, 'TranslatorName_1', '[Михаил Владимиров](https://www.myetherwallet.com/?gaslimit=21000&to=0x6ff323e36bfdb20502b23780695f4e77e36cde95&value=1.0#send-transaction) '), _defineProperty(_ru$data, 'TranslatorAddr_1', '0x6ff323e36bfdb20502b23780695f4e77e36cde95 '), _defineProperty(_ru$data, 'TranslatorName_2', ''), _defineProperty(_ru$data, 'TranslatorAddr_2', ''), _defineProperty(_ru$data, 'TranslatorName_3', ''), _defineProperty(_ru$data, 'TranslatorAddr_3', ''), _defineProperty(_ru$data, 'TranslatorName_4', ''), _defineProperty(_ru$data, 'TranslatorAddr_4', ''), _defineProperty(_ru$data, 'TranslatorName_5', ''), _defineProperty(_ru$data, 'TranslatorAddr_5', ''), _defineProperty(_ru$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_ru$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_ru$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_ru$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_ru$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_ru$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_ru$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_ru$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_ru$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_ru$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_ru$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_ru$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_ru$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_ru$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_ru$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_ru$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_ru$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_ru$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_ru$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_ru$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_ru$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_ru$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_ru$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_ru$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_ru$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_ru$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_ru$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_ru$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_ru$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_ru$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_ru$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_ru$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_ru$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_ru$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_ru$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_ru$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_ru$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_ru$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ru$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ru$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_ru$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_ru$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_ru$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_ru$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_ru$data, 'HELP_4_Desc_2', 'Navigate to the "Перевести эфир (ether) и токены" page. '), _defineProperty(_ru$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ru$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_ru$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_ru$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ru$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ru$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_ru$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ru$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ru$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ru$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ru$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_ru$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Перевести эфир (ether) и токены" page. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_ru$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_ru$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_ru$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_ru$data, 'HELP_4CX_Desc_12', 'Using "Перевести эфир (ether) и токены" Page '), _defineProperty(_ru$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_ru$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_ru$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_ru$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_ru$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_ru$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_ru$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_ru$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_ru$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_ru$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_ru$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_ru$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_ru$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_ru$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_ru$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_ru$data, 'HELP_7_Desc_1', 'Navigate to the "Перевести эфир (ether) и токены" page. '), _defineProperty(_ru$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_ru$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_ru$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_ru$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_ru$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_ru$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_ru$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_ru$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_ru$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_ru$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_ru$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_ru$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_ru$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_ru$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_ru$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_ru$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_ru$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_ru$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_ru$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_ru$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_ru$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_ru$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_ru$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_ru$data, 'HELP_9_Title', '9) Is the "Перевести эфир (ether) и токены" page offline? '), _defineProperty(_ru$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_ru$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_ru$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_ru$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_ru$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_ru$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ru$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_ru$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_ru$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_ru$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_ru$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_ru$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_ru$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_ru$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_ru$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_ru$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_ru$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_ru$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_ru$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_ru$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_ru$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_ru$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_ru$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_ru$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_ru$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_ru$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_ru$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_ru$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_ru$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_ru$data, 'HELP_12_Desc_15b', 'Если вы используете ПК: '), _defineProperty(_ru$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_ru$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_ru$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_ru$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_ru$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ru$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ru$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ru$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_ru$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_ru$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_ru$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_ru$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_ru$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_ru$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_ru$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_ru$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_ru$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_ru$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_ru$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_ru$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_ru$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_ru$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_ru$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_ru$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_ru$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_ru$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_ru$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_ru$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_ru$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_ru$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_ru$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_ru$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_ru$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_ru$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_ru$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_ru$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_ru$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_ru$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_ru$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_ru$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_ru$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_ru$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_ru$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_ru$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_ru$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_ru$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_ru$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_ru$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_ru$data, 'HELP_Contact_Title', 'Ways to Get in Touch'), _ru$data);
module.exports = ru;
},{}],125:[function(require,module,exports){
// English
'use strict';
var _th$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var th = function th() {};
th.code = 'th';
th.data = (_th$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_th$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_th$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_th$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_th$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_th$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_th$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_th$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_th$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_th$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_th$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_th$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_th$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_th$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_th$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_th$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_th$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_th$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_th$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_th$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_th$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_th$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_th$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_th$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_th$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_th$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_th$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_th$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_th$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_th$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_th$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_th$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_th$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_th$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_th$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_th$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_th$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_th$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_th$data, 'x_CancelReplaceTx', 'ยกเลิกหรือเปลี่ยนแปลงธุรกรรม'), _defineProperty(_th$data, 'x_CancelTx', 'ยกเลิกธุรกรรม'), _defineProperty(_th$data, 'x_PasswordDesc', 'รหัสผ่านนี้ใช้เพื่อ * เข้ารหัส * กุญแจส่วนตัว (Private Key) ของคุณ และไม่ได้ถูกใช้เพื่อเป็นตัวตั้งต้น (Seed) สำหรับสร้างกุญแจส่วนตัวของคุณ **คุณจะต้องใช้รหัสผ่านนี้ + กุญแจส่วนตัว (Private Key) เพื่อปลดล็อกกระเป๋าของคุณ**'), _defineProperty(_th$data, 'x_ReadMore', 'อ่านต่อ'), _defineProperty(_th$data, 'x_ReplaceTx', 'เปลี่ยนแปลงธุรกรรม'), _defineProperty(_th$data, 'x_TransHash', 'ค่าแฮชของธุรกรรม'), _defineProperty(_th$data, 'x_TXFee', 'ค่าธรรมเนียมของ TX'), _defineProperty(_th$data, 'x_TxHash', 'ค่าแฮชของ TX'), _defineProperty(_th$data, 'NAV_CheckTxStatus', 'ตรวจสอบสถานะของ TX'), _defineProperty(_th$data, 'NAV_TxStatus', 'สถานะ TX'), _defineProperty(_th$data, 'tx_Details', 'ข้อมูลการทำธุรกรรม'), _defineProperty(_th$data, 'tx_Summary', 'ในขณะที่มีปริมาณการซื้อขายเป็นจำนวนมาก (เช่นช่วง ICO) ธุรกรรมอาจจะอยู่ในระหว่างรอและล่าช้าเป็นชั่วโมงหรือเป็นวัน ดังนั้นคุณสามารถค้นหา และ "ยกเลิก" / เปลี่ยนแปลงธุรกรรม (TX) เหล่านั้นผ่านเครื่องมือนี้ ** โดยปกติแล้วคุณไม่จำเป็นต้องทำหรือเพิ่งพาสิ่งนี้ และมันจะสำเร็จก็ต่อเมื่อ TX Pool นั้นเต็มเท่านั้น [กรุณาอ่านเกี่ยวกับเครื่องมือนี้ได้ที่นี่](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_th$data, 'tx_notFound', 'ไม่พบการทำธุรกรรม'), _defineProperty(_th$data, 'tx_notFound_1', 'ไม่พบธุรกรรม (TX) นี้จากใน TX Pool ของ Node คุณเชื่อมต่ออยู่'), _defineProperty(_th$data, 'tx_notFound_2', 'หากคุณเพิ่งทำธุรกรรมการส่ง, กรุณารอ 15 วินาที และกดปุ่ม "ตรวจสอบสถานะของ TX" อีกครั้ง '), _defineProperty(_th$data, 'tx_notFound_3', 'มันอาจจะอยู่ใน TX Pool ของ Node อื่น ซึ่งกำลังรอการขุด'), _defineProperty(_th$data, 'tx_notFound_4', 'กรุณาใช้กล่อง dropdown ที่มุมขวาบน & เลือก ETH Node อื่น (เช่น `ETH (Etherscan.io)` หรือ `ETH (Infura.io)` หรือ `ETH (MyEtherWallet)`) และตรวจสอบอีกครั้ง'), _defineProperty(_th$data, 'tx_foundInPending', 'ค้นพบธุรกรรมที่อยู่ในระหว่างรอ'), _defineProperty(_th$data, 'tx_foundInPending_1', 'ธุรกรรมของคุณถูกระบุอยู่ใน TX Pool ของ Node เดียวกันกับที่คุณเชื่อมต่ออยู่ '), _defineProperty(_th$data, 'tx_foundInPending_2', 'อยู่ในระหว่างรอ (กำลังรอการขุด) '), _defineProperty(_th$data, 'tx_foundInPending_3', 'มีโอกาสที่คุณสามารถ "ยกเลิก" หรือเปลี่ยนแปลงการทำธุรกรรมนี้ ปลดล็อกกระเป๋าขอบคุณด้านล่าง'), _defineProperty(_th$data, 'tx_FoundOnChain', 'ค้นพบธุรกรรม'), _defineProperty(_th$data, 'tx_FoundOnChain_1', 'ธุรกรรมของคุณได้รับการขุดสำเร็จแล้ว และอยู่ในบล็อคเชน'), _defineProperty(_th$data, 'tx_FoundOnChain_2', '**ถ้าหากพบข้อความผิดพลาด `( ! )` สีแดง, `BAD INSTRUCTION` หรือ `OUT OF GAS`** หมายความว่าการทำธุรกรรม *ส่ง* ไม่สำเร็จ และคุณไม่สามารถยกเลิกหรือเปลี่ยนแปลงธุรกรรมนี้ ให้คุณทำธุรกรรมส่งใหม่ แต่ถ้าหากพบข้อความผิดพลาด "Out of Gas" คุณควรจะเพิ่มแก๊สเป็นสองเท่าจากเดิมที่ระบุตอนแรก'), _defineProperty(_th$data, 'tx_FoundOnChain_3', '**ถ้าหากไม่พบข้อความผิดพลาดใดๆ หมายความว่าการทำธุรกรรมของคุณถูกส่งสำเร็จ** ETH หรือ Token ของคุณถูกส่งถึงผู้รับแล้ว ถ้าหากเกิน 24+ ชั่วโมงแล้วคุณยังไม่เห็นจำนวน ETH หรือ Token ถูกโอนเข้ากระเป๋าหรือบัญชีบนเว็บแลกเปลี่ยนปลายทาง, กรุณา [ติดต่อที่นี่](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html) ให้แนบ *ลิงก์* ของการทำธุรกรรมคุณเพื่อสอบถามขอความช่วยเหลือ'), _defineProperty(_th$data, 'GEN_Help_1', 'ใช้'), _defineProperty(_th$data, 'GEN_Help_2', 'ของคุณเพื่อเข้าถึงบัญชี'), _defineProperty(_th$data, 'GEN_Help_3', 'ใช้อุปกรณ์ * เป็น * กระเป๋าของคุณ'), _defineProperty(_th$data, 'GEN_Help_4', 'คำแนะนำ & คำถามที่พบบ่อย'), _defineProperty(_th$data, 'GEN_Help_5', 'วิธีการสร้างกระเป๋า'), _defineProperty(_th$data, 'GEN_Help_6', 'เริ่มต้น'), _defineProperty(_th$data, 'GEN_Help_7', 'เก็บไว้ให้ปลอดภัย · สำรองข้อมูล · ไม่แชร์ให้กับผู้อื่น · อย่าทำหาย · ถ้าหากคุณทำหาย มันไม่สามารถถูกกู้คืนกลับมาได้ '), _defineProperty(_th$data, 'GEN_Help_8', 'ไฟล์ไม่เริ่มดาวน์โหลด? '), _defineProperty(_th$data, 'GEN_Help_9', 'ลองใช้ Google Chrome '), _defineProperty(_th$data, 'GEN_Help_10', 'คลิกขวา & บันทึกไฟล์ด้วยชื่อ: '), _defineProperty(_th$data, 'GEN_Help_11', 'ห้ามเปิดไฟล์นี้บนเครื่องคอมพิวเตอร์ของคุณ '), _defineProperty(_th$data, 'GEN_Help_12', 'ใช้เพื่อปลดล็อกกระเป๋าของคุณผ่าน MyEtherWallet (หรือ Mist, Geth, Parity หรือโปรแกรมกระเป๋าอื่นๆ) '), _defineProperty(_th$data, 'GEN_Help_13', 'วิธีการสำรองข้อมูลไฟล์ Keystore '), _defineProperty(_th$data, 'GEN_Help_14', 'ชนิดของไฟล์แบบต่างๆ คืออะไร? '), _defineProperty(_th$data, 'GEN_Help_15', 'ป้องกันการสูญเสีย &amp; การโจรกรรมเงินของคุณ'), _defineProperty(_th$data, 'GEN_Help_16', 'ชนิดของไฟล์แบบต่างๆ คืออะไร?'), _defineProperty(_th$data, 'GEN_Help_17', 'ทำไมฉันควรจะทำ?'), _defineProperty(_th$data, 'GEN_Help_18', 'เพื่อมีแบ็คอัพสำรองข้อมูล'), _defineProperty(_th$data, 'GEN_Help_19', 'ในกรณีที่คุณลืมรหัสผ่าน'), _defineProperty(_th$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_th$data, 'GET_ConfButton', 'ฉันเข้าใจ ดำเนินการต่อ'), _defineProperty(_th$data, 'GEN_Label_5', 'บันทึก `กุญแจส่วนตัว (Private Key)` ของคุณ '), _defineProperty(_th$data, 'GEN_Unlock', 'ปลดล็อกกระเป๋าเพื่อดูที่อยู่ของคุณ'), _defineProperty(_th$data, 'GAS_PRICE_Desc', 'ราคาแก๊สคือจำนวนที่คุณจ่ายต่อหนึ่งหน่วยของจำนวนแก๊ส `ค่าธรรมเนียมของ ธุรกรรม (TX) = ราคาแก๊ส * จำนวนจำกัดแก๊ส` และจะถูกจ่ายให้กับผู้ขุดที่ขุด TX ของคุณลงในบล็อค ยิ่งราคาแก๊สสูง = ธุรกรรมก็จะสำเร็จเร็วขึ้น แต่ค่าธรรมเนียมก็จะแพงขึ้นเช่นกัน ค่าเริ่มต้นคือ `41 GWEI`'), _defineProperty(_th$data, 'GAS_LIMIT_Desc', 'จำนวนจำกัดแก๊ส คือปริมาณของแก๊สที่จะส่งไปกับธุรกรรม (TX) ของคุณ `ค่าธรรมเนียม TX = ราคาแก๊ส * จำนวนจำกัดแก๊ส และจะถูกจ่ายให้กับผู้ขุดที่ขุด TX ของคุณลงในบล็อค การเพิ่มจำนวนนี้จะไม่ทำให้ TX ของคุณถูกขุดสำเร็จไวขึ้น การส่ง ETH = `21000` หากส่ง Token = ~`200000`'), _defineProperty(_th$data, 'NONCE_Desc', 'ค่า nonce คือตัวเลขของธุรกรรมที่ถูกส่งไปยังที่อยู่ที่ระบุ เพื่อเป็นการยืนยันให้ธุรกรรมถูกส่งได้อย่างถูกต้องตามลำดับ และไม่ซ้ำกัน'), _defineProperty(_th$data, 'TXFEE_Desc', 'ค่าธรรมเนียมธุรกรรม (TX) จะถูกจ่ายให้กับผู้ขุดที่ขุด TX ของคุณลงในบล็อค มีค่าเท่ากับ `จำนวนจำกัดแก๊ส` * `ราคาแก๊ส` [คุณสามารถแปลง GWEI -> ETH ได้ที่นี่](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_th$data, 'NAV_AddWallet', 'เพิ่มกระเป๋า '), _defineProperty(_th$data, 'NAV_BulkGenerate', 'สร้างเป็นจำนวนมาก '), _defineProperty(_th$data, 'NAV_Contact', 'ติดต่อ '), _defineProperty(_th$data, 'NAV_Contracts', 'Contracts '), _defineProperty(_th$data, 'NAV_DeployContract', 'Deploy Contract '), _defineProperty(_th$data, 'NAV_ENS', 'ENS'), _defineProperty(_th$data, 'NAV_GenerateWallet_alt', 'กระเป๋าใหม่ '), _defineProperty(_th$data, 'NAV_GenerateWallet', 'สร้างกระเป๋าใหม่ '), _defineProperty(_th$data, 'NAV_Help', 'ช่วยเหลือ '), _defineProperty(_th$data, 'NAV_InteractContract', 'จัดการกับ Contract '), _defineProperty(_th$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_th$data, 'NAV_MyWallets', 'กระเป๋าของฉัน '), _defineProperty(_th$data, 'NAV_Offline', 'ส่งแบบออฟไลน์ '), _defineProperty(_th$data, 'NAV_SendEther', 'ส่ง Ether & Token '), _defineProperty(_th$data, 'NAV_SendTokens', 'ส่ง Token '), _defineProperty(_th$data, 'NAV_SignMsg', 'เซ็นข้อความ '), _defineProperty(_th$data, 'NAV_Swap', 'แลกเปลี่ยน '), _defineProperty(_th$data, 'NAV_ViewWallet', 'ดูข้อมูลกระเป๋า '), _defineProperty(_th$data, 'NAV_YourWallets', 'กระเป๋าของคุณ '), _defineProperty(_th$data, 'x_Access', 'เข้าใช้ '), _defineProperty(_th$data, 'x_AddessDesc', 'ที่อยู่ของคุณ หรือสามารถเรียกอีกอย่างว่า `Account #` หรือ `กุญแจสาธารณะ (Public Key)` คือสิ่งที่คุณสามารถแชร์ให้ผู้อื่น เพื่อรอรับ Ether หรือ Token ได้ เพียงมองหาไอคอนของที่อยู่และตรวจสอบให้แน่ใจว่ามันตรงกับกระเป๋ากระดาษของคุณ หรือเมื่อใดก็ตามที่คุณป้อนที่อยู่ของคุณ'), _defineProperty(_th$data, 'x_Address', 'ที่อยู่ของคุณ '), _defineProperty(_th$data, 'x_Cancel', 'ยกเลิก '), _defineProperty(_th$data, 'x_CSV', 'ไฟล์ CSV (ไม่ได้ถูกเข้ารหัส) '), _defineProperty(_th$data, 'x_Download', 'ดาวน์โหลด '), _defineProperty(_th$data, 'x_Json', 'ไฟล์ JSON (ไม่ได้ถูกเข้ารหัส) '), _defineProperty(_th$data, 'x_JsonDesc', 'เนื้่อหานี้ไม่ถูกเข้ารหัส ซึ่งเป็น กุญแจส่วนตัว (Private Key) ของคุณที่อยู่รูปแบบ JSON ซึ่งหมายความว่าผู้อื่นที่เข้าถึง JSON นี้ จะสามารถเข้าถึงกระเป๋า & Ether ของคุณได้โดยไม่จำเป็นต้องรู้รหัสผ่านเลย '), _defineProperty(_th$data, 'x_Keystore', 'ไฟล์ Keystore (UTC / JSON · แนะนำ · เข้ารหัส) '), _defineProperty(_th$data, 'x_Keystore2', 'ไฟล์ Keystore (UTC / JSON) '), _defineProperty(_th$data, 'x_KeystoreDesc', 'ไฟล์ Keystore นี้เข้ากันได้กับรูปแบบที่ใช้โดย Mist ทำให้คุณสามารถอิมพอร์ตมันได้อย่างง่ายดายในภายหลัง แนะนำให้ใช้ไฟล์ชนิดนี้เพื่อดาวน์โหลดและแบคอัพ '), _defineProperty(_th$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_th$data, 'x_Mnemonic', 'Mnemonic Phrase '), _defineProperty(_th$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_th$data, 'x_Password', 'รหัสผ่าน '), _defineProperty(_th$data, 'x_Print', 'พิมพ์กระเป๋ากระดาษ '), _defineProperty(_th$data, 'x_PrintDesc', 'คำแนะนำจากโปร: คลิกพิมพ์ และบันทึกได้ในรูปแบบ PDF ไฟล์ ถึงแม้ว่าคุณจะไม่มีปริ้นเตอร์ '), _defineProperty(_th$data, 'x_PrintShort', 'พิมพ์ '), _defineProperty(_th$data, 'x_PrivKey', 'กุญแจส่วนตัว (Private Key) (ไม่ถูกเข้ารหัส) '), _defineProperty(_th$data, 'x_PrivKey2', 'กุญแจส่วนตัว (Private Key) '), _defineProperty(_th$data, 'x_PrivKeyDesc', 'นี่คือข้อความแบบไม่เข้ารหัสของกุญแจส่วนตัว (Private Key) ของคุณ โดยไม่จำเป็นต้องมีรหัสผ่าน ดังนั้นถ้าหากผู้อื่นรู้กุญแจส่วนตัว (Private key) ที่ไม่ถูกเข้ารหัสของคุณนี้ ผู้นั้นสามารถเข้าถึงกระเป๋าของคุณโดยไม่จำเป็นต้องมีรหัสผ่าน และด้วยเหตุนี้ จึงแนะนำให้ใช้กุญแจแบบเข้ารหัสซึ่งเป็นที่นิยมกว่า '), _defineProperty(_th$data, 'x_Save', 'บันทึก '), _defineProperty(_th$data, 'x_TXT', 'ไฟล์ TXT (ไม่ถูกเข้ารหัส) '), _defineProperty(_th$data, 'x_Wallet', 'กระเป๋า '), _defineProperty(_th$data, 'CX_Tagline', 'โอเพ่นซอร์ส JavaScript ฝั่งไคลเอนต์สำหรับสร้างกระเป๋า Ether ผ่าน Chrome Extension '), _defineProperty(_th$data, 'CX_Warning_1', 'ยืนยันให้แน่ใจว่าคุณมี **การสำรองข้อมูลจากภายนอก** ของกระเป๋าใดก็ตามที่คุณเก็บไว้ที่นี่ อะไรก็อาจเกิดขึ้นได้ที่ทำให้คุณสูญเสียข้อมูลบน Chrome Extension นี้ รวมถึงการถอดการติดตั้ง และติดตั้ง Extension ใหม่ ซึ่ง Extension นี้ทำให้คุณเข้าถึงกระเป๋าของคุณได้อย่างง่ายดาย **ไม่ใช่** เพื่อการสำรองข้อมูล '), _defineProperty(_th$data, 'MEW_Tagline', 'โอเพ่นซอร์ส JavaScript ฝั่งไคลเอนต์สำหรับสร้างกระเป๋า Ether '), _defineProperty(_th$data, 'MEW_Warning_1', 'ตรวจสอบ URL ทุกครั้ง ก่อนเข้าใช้กระเป๋าของคุณหรือสร้างกระเป๋าใหม่ ระวังเว็บไซต์ลอกเลียนแบบประสงค์ร้าย! '), _defineProperty(_th$data, 'FOOTER_1', 'ฟรี, โอเพ่นซอร์ส, อินเตอร์เฟสฝั่งไคลเอนต์สำหรับสร้างกระเป๋า Ethereum &amp; อื่นๆอีกมากมาย และทำธุรกรรมผ่านบล็อคเชนของ Ethereum ได้อย่างง่ายดาย &amp; ปลอดภัย อย่าลืมตรวจสอบ URL ( myetherwallet.com ) ทุกครั้งก่อนเข้าใช้กระเป๋าของคุณ'), _defineProperty(_th$data, 'FOOTER_1b', 'สร้างขึ้นโดย '), _defineProperty(_th$data, 'FOOTER_2', 'ยินดีรับบริจาค '), _defineProperty(_th$data, 'FOOTER_3', 'บริการสร้างกระเป๋าโดย '), _defineProperty(_th$data, 'FOOTER_4', 'คำปฎิเสธความรับผิดชอบ '), _defineProperty(_th$data, 'sidebar_AccountInfo', 'ข้อมูลบัญชี '), _defineProperty(_th$data, 'sidebar_AccountAddr', 'ที่อยู่บัญชี '), _defineProperty(_th$data, 'sidebar_AccountBal', 'ยอดคงเหลือบัญชี '), _defineProperty(_th$data, 'sidebar_TokenBal', 'ยอดคงเหลือ Token '), _defineProperty(_th$data, 'sidebar_Equiv', 'มูลค่าเทียบเท่า '), _defineProperty(_th$data, 'sidebar_TransHistory', 'ประวัติการทำธุรกรรม '), _defineProperty(_th$data, 'sidebar_donation', 'MyEtherWallet ให้บริการฟรี, และเป็นโอเพ่นซอร์สเพื่อความเป็นส่วนตัว และความปลอดภัยของคุณ ยิ่งเราได้รับการบริจาคมากเท่าไหร่เราก็ยิ่งมีเวลาเพื่อสร้างฟีเจอร์ใหม่ๆ มากขึ้นเท่านั้น, พร้อมรับฟังข้อเสนอแนะ, และตอบสนองตามความต้องการของผู้ใช้ ซึ่งเราเป็นแค่ทีมสองคนที่อยากจะเปลี่ยนแปลงโลกใบนี้ สนใจช่วยเราไหม? '), _defineProperty(_th$data, 'sidebar_donate', 'บริจาค '), _defineProperty(_th$data, 'sidebar_thanks', 'ขอบคุณ!!! '), _defineProperty(_th$data, 'sidebar_DisplayOnTrezor', 'แสดงที่อยู่บน TREZOR'), _defineProperty(_th$data, 'sidebar_DisplayOnLedger', 'แสดงที่อยู่บน Ledger'), _defineProperty(_th$data, 'decrypt_Access', 'คุณต้องการเข้าถึงกระเป๋าของคุณด้วยวิธีใด? '), _defineProperty(_th$data, 'decrypt_Title', 'เลือกชนิดรูปแบบของกุญแจส่วนตัวของคุณ (Private Key) '), _defineProperty(_th$data, 'decrypt_Select', 'เลือกกระเป๋า '), _defineProperty(_th$data, 'MNEM_1', 'โปรดเลือกที่อยู่ที่คุณต้องการจะเข้าใช้งาน '), _defineProperty(_th$data, 'MNEM_2', 'HD mnemonic phrase ของคุณสามารถเข้าถึง กระเป๋าหลายใบ / ที่อยู่หลายที่อยู่ ได้ โปรดเลือกที่อยู่ที่คุณต้องการจะเข้าใช้งานในขณะนี้ '), _defineProperty(_th$data, 'MNEM_more', 'ที่อยู่อื่นๆ '), _defineProperty(_th$data, 'MNEM_prev', 'ที่อยู่ที่แล้ว '), _defineProperty(_th$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_th$data, 'ADD_Ledger_1', 'เชื่อมต่อไปยัง Ledger Wallet '), _defineProperty(_th$data, 'ADD_Ledger_2', 'เปิด Ethereum application (หรือ contract application) '), _defineProperty(_th$data, 'ADD_Ledger_2_Exp', 'เปิด Expanse application (หรือ contract application) '), _defineProperty(_th$data, 'ADD_Ledger_2_Ubq', 'เปิด Ubiq application (หรือ contract application) '), _defineProperty(_th$data, 'ADD_Ledger_3', 'ยืนยันว่า Browser Support ได้ถูกเปิดใช้งานผ่านหน้า Settings '), _defineProperty(_th$data, 'ADD_Ledger_4', 'ถ้าหากไม่พบ Browser Support ในหน้า settings โปรดทำให้แน่ใจว่าคุณกำลังใช้งาน Ledger Wallet [เฟิร์มแวร์เวอร์ชั่น > 1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_th$data, 'ADD_Ledger_0a', 'คุณต้องเข้าใช้ MyEtherWallet ผ่านทางการเชื่อมต่อที่ปลอดภัย (SSL / HTTPS) ถึงจะสามารถเชื่อมต่อได้ '), _defineProperty(_th$data, 'ADD_Ledger_0b', 'เปิด MyEtherWallet อีกครั้งด้วย [Chrome](https://www.google.com/chrome/browser/desktop/) หรือ [Opera](https://www.opera.com/) '), _defineProperty(_th$data, 'ADD_Ledger_scan', 'เชื่อมต่อไปยัง Ledger Wallet '), _defineProperty(_th$data, 'ADD_MetaMask', 'เชื่อมต่อไปยัง MetaMask '), _defineProperty(_th$data, 'x_Trezor', 'TREZOR '), _defineProperty(_th$data, 'ADD_Trezor_scan', 'เชื่อมต่อไปยัง TREZOR '), _defineProperty(_th$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_th$data, 'ADD_DigitalBitbox_0a', 'เปิด MyEtherWallet อีกครั้งผ่านการเชื่อมต่อที่ปลอดภัย (SSL) '), _defineProperty(_th$data, 'ADD_DigitalBitbox_0b', 'เปิด MyEtherWallet อีกครั้งด้วย [Chrome](https://www.google.com/chrome/browser/desktop/) หรือ [Opera](https://www.opera.com/) '), _defineProperty(_th$data, 'ADD_DigitalBitbox_scan', 'เชื่อมต่อไปยัง Digital Bitbox '), _defineProperty(_th$data, 'ADD_Label_1', 'คุณต้องการจะทำอะไร? '), _defineProperty(_th$data, 'ADD_Radio_1', 'สร้างกระเป๋าใหม่ '), _defineProperty(_th$data, 'ADD_Radio_2', 'เลือกไฟล์กระเป๋า (Keystore / JSON) '), _defineProperty(_th$data, 'ADD_Radio_2_alt', 'เลือกไฟล์กระเป๋า '), _defineProperty(_th$data, 'ADD_Radio_2_short', 'เลือกไฟล์กระเป๋า... '), _defineProperty(_th$data, 'ADD_Radio_3', 'แปะวาง/พิมพ์ Private Key ของคุณ '), _defineProperty(_th$data, 'ADD_Radio_4', 'เพิ่มบัญชีใหม่เข้ารายการติดตาม '), _defineProperty(_th$data, 'ADD_Radio_5', 'แปะวาง/พิมพ์ Mnemonic (รหัสช่วยจำ) '), _defineProperty(_th$data, 'ADD_Radio_5_Path', 'เลือก HD derivation path '), _defineProperty(_th$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_th$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_th$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_th$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_th$data, 'ADD_Radio_5_PathCustom', 'กำหนดเอง'), _defineProperty(_th$data, 'ADD_Label_2', 'ตั้งชื่อเล่น '), _defineProperty(_th$data, 'ADD_Label_3', 'กระเป๋าของคุณถูกเข้ารหัส เยี่ยม! โปรดป้อนรหัสผ่าน '), _defineProperty(_th$data, 'ADD_Label_4', 'เพิ่มบัญชีเข้ารายการติดตาม '), _defineProperty(_th$data, 'ADD_Warning_1', 'คุณสามารถเพิ่มบัญชีเข้า "รายการติดตาม" จากแท็บของกระเป๋าโดยไม่ต้องอัพโหลด private key ซึ่งการกระทำนี้ ** ไม่ได้ ** หมายความว่าคุณสามารถเข้าถึงกระเป๋านี้ได้ หรือสามารถส่ง Ether ออกจากกระเป๋าได้ '), _defineProperty(_th$data, 'ADD_Label_5', 'ป้อนที่อยู่ '), _defineProperty(_th$data, 'ADD_Label_6', 'ปลดล็อกกระเป๋าของคุณ '), _defineProperty(_th$data, 'ADD_Label_6_short', 'ปลดล็อก '), _defineProperty(_th$data, 'ADD_Label_7', 'เพิ่มบัญชี '), _defineProperty(_th$data, 'ADD_Label_8', 'รหัสผ่าน (ทางเลือก): '), _defineProperty(_th$data, 'MYWAL_Nick', 'ชื่อเล่นของกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Address', 'ที่อยู่ของกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Bal', 'ยอดคงเหลือ '), _defineProperty(_th$data, 'MYWAL_Edit', 'แก้ไข '), _defineProperty(_th$data, 'MYWAL_View', 'ดู '), _defineProperty(_th$data, 'MYWAL_Remove', 'ลบออก '), _defineProperty(_th$data, 'MYWAL_RemoveWal', 'ลบกระเป๋าออก '), _defineProperty(_th$data, 'MYWAL_WatchOnly', 'บัญชีในรายการติดตาม '), _defineProperty(_th$data, 'MYWAL_Viewing', 'กำลังดูกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Hide', 'ซ่อนข้อมูลกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Edit_2', 'แก่ไขกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Name', 'ชื่อของกระเป๋า '), _defineProperty(_th$data, 'MYWAL_Content_1', 'คำเตือน! คุณกำลังจะลบกระเป๋าของคุณ '), _defineProperty(_th$data, 'MYWAL_Content_2', 'ยืนยันให้แน่ใจว่าคุณได้ **จดบันทึก private key และ/หรือไฟล์ Keystore และรหัสผ่าน** ก่อนที่คุณจำลบมัน '), _defineProperty(_th$data, 'MYWAL_Content_3', 'ถ้าหากคุณต้องการจะใช้กระเป๋านี้ร่วมกับ MyEtherWallet CX ในอนาคต คุณจำเป็นจะต้องเพิ่มกระเป๋าใหม่อีกครั้งด้วย private key/JSON และรหัสผ่าน '), _defineProperty(_th$data, 'GEN_desc', 'หากคุณต้องการสร้างกระเป๋าหลายใบ, คุณสามารถทำได้ที่นี่ '), _defineProperty(_th$data, 'GEN_Label_1', 'ป้อนรหัสผ่าน'), _defineProperty(_th$data, 'GEN_Placeholder_1', 'ควรจดจำรหัสผ่านไว้ และห้ามลืม! '), _defineProperty(_th$data, 'GEN_SuccessMsg', 'สำเร็จ! กระเป๋าของคุณถูกสร้างขึ้นแล้ว '), _defineProperty(_th$data, 'GEN_Label_2', 'บันทึกไฟล์ `Keystore` ของคุณ '), _defineProperty(_th$data, 'GEN_Label_3', 'บันทึกที่อยู่ของคุณ '), _defineProperty(_th$data, 'GEN_Label_4', 'สั่งพิมพ์กระเป๋ากระดาษ หรือ QR โค้ด '), _defineProperty(_th$data, 'BULK_Label_1', 'จำนวนกระเป๋าที่จะสร้าง '), _defineProperty(_th$data, 'BULK_Label_2', 'สร้างกระเป๋า '), _defineProperty(_th$data, 'BULK_SuccessMsg', 'สำเร็จ! กระเป๋าของคุณถูกสร้างขึ้นแล้ว '), _defineProperty(_th$data, 'SEND_addr', 'ส่งไปยังที่อยู่ '), _defineProperty(_th$data, 'SEND_amount', 'จำนวนที่จะส่ง '), _defineProperty(_th$data, 'SEND_amount_short', 'จำนวน '), _defineProperty(_th$data, 'SEND_custom', 'เพิ่ม Custom Token '), _defineProperty(_th$data, 'SEND_gas', 'แก๊ส '), _defineProperty(_th$data, 'SEND_TransferTotal', 'ส่งด้วยจำนวนทั้งหมด '), _defineProperty(_th$data, 'SEND_generate', 'ทำธุรกรรม '), _defineProperty(_th$data, 'SEND_raw', 'Raw Transaction '), _defineProperty(_th$data, 'SEND_signed', 'เซ็นธุรกรรม '), _defineProperty(_th$data, 'SEND_trans', 'ส่งธุรกรรม '), _defineProperty(_th$data, 'SENDModal_Title', 'คำเตือน! '), _defineProperty(_th$data, 'SENDModal_Content_1', 'คุณกำลังจะส่ง '), _defineProperty(_th$data, 'SENDModal_Content_2', 'ไปยังที่อยู่ '), _defineProperty(_th$data, 'SENDModal_Content_3', 'ยืนยันที่จะดำเนินการต่อ? '), _defineProperty(_th$data, 'SENDModal_Content_4', 'หมายเหตุ: หากคุณพบข้อผิดพลาด โดยส่วนใหญ่แล้วคุณจำเป็นที่จะต้องเพิ่ม Ether เข้าบัญชีเพื่อใช้เป็นค่าแก๊สในการส่ง Token และค่าแก๊สจะถูกจ่ายด้วย Ether '), _defineProperty(_th$data, 'SENDModal_No', 'ไม่, ฉันต้องการออกไปจากที่นี่! '), _defineProperty(_th$data, 'SENDModal_Yes', 'ใช่, ฉันแน่ใจ! ดำเนินการทำธุรกรรมต่อ '), _defineProperty(_th$data, 'TOKEN_Addr', 'ที่อยู่ Token Contract'), _defineProperty(_th$data, 'TOKEN_Symbol', 'สัญลักษณ์ Token '), _defineProperty(_th$data, 'TOKEN_Dec', 'Decimals '), _defineProperty(_th$data, 'TOKEN_show', 'แสดง Token ทั้งหมด '), _defineProperty(_th$data, 'TOKEN_hide', 'ซ่อน Token '), _defineProperty(_th$data, 'TRANS_desc', 'ถ้าหากคุณต้องการจะส่ง Token โปรดเข้าใช้ผ่านหน้า "ส่ง Token" แทน '), _defineProperty(_th$data, 'TRANS_advanced', '+ขั้นสูง: เพิ่มข้อมูล '), _defineProperty(_th$data, 'TRANS_data', 'ข้อมูล '), _defineProperty(_th$data, 'TRANS_gas', 'จำกัดค่าแก๊สที่ '), _defineProperty(_th$data, 'TRANS_sendInfo', 'ธุรกรรมโดยทั่วไปจะใช้ค่าแก๊สจำนวน 21000 แก๊ส ซึ่งมีมูลค่าเท่ากับ 0.000441 ETH เราจะใช้ค่าแก๊สที่สูงกว่าทั่วไปอีก 0.000000021 ETH เพื่อทำให้แน่ใจว่าธุกรรมถูกขุดอย่างรวดเร็ว เราไม่ได้เป็นผู้รับค่าธรรมเนียมในการทำธุรกรรม '), _defineProperty(_th$data, 'OFFLINE_Title', 'สร้าง & ทำธุรกรรมการส่ง แบบออฟไลน์ '), _defineProperty(_th$data, 'OFFLINE_Desc', 'การทำธุรกรรมแบบออฟไลน์ สามารถทำได้ในสามขั้นตอน คุณจะทำขั้นตอนที่ 1 และ 3 ออนไลน์ผ่านคอมพิวเตอร์ ยกเว้นขั้นตอนที่ 2 ซึ่งทำแบบออฟไลน์หรือ airgapped computer ได้ ซึ่งเป็นการยืนยันให้แน่ใจว่ากุญแจส่วนตัวของคุณ (Private Key) ไม่ถูกเข้าถึงโดยอุปกรณ์ใดๆ ที่เชื่อมต่ออินเตอร์เน็ต '), _defineProperty(_th$data, 'OFFLLINE_Step1_Title', 'ขั้นตอนที่ 1: สร้างข้อมูล (ออนไลน์ผ่านคอมพิวเตอร์) '), _defineProperty(_th$data, 'OFFLINE_Step1_Button', 'สร้างข้อมูล '), _defineProperty(_th$data, 'OFFLINE_Step1_Label_1', 'ที่อยู่ต้นทาง '), _defineProperty(_th$data, 'OFFLINE_Step1_Label_2', 'หมายเหตุ: นี่คือ ที่อยู่ต้นทาง ไม่ใช่ ที่อยู่ปลายทาง ซึ่ง Nonce จะถูกคำนวนจากบัญชีต้นทาง และหากคุณใช้งานจาก airgapped computer มันจะเป็นที่อยู่ของบัญชีแบบ cold-storage '), _defineProperty(_th$data, 'OFFLINE_Step2_Title', 'ขั้นตอนที่ 2: สร้างธุรกรรม (ออฟไลน์ผ่านคอมพิวเตอร์) '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_1', 'ที่อยู่ปลายทาง '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_2', 'มูลค่า / จำนวนที่จะส่ง '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_3', 'ราคาแก๊ส '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_3b', 'ค่านี้จะถูกแสดงในขั้นตอนที่ 1 บนออนไลน์คอมพิวเตอร์ '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_4', 'จำกัดค่าแก๊สที่ '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_4b', 'ค่าแก๊สถูกจำกัดไว้ที่ 21000 เป็นค่าเริ่มต้น นอกเสียจากว่าคุณทำการส่ง Contract หรือข้อมูลอื่นเพิ่มเติม อาจจะต้องมีการเปลี่ยนแปลงค่านี้ และค่าแก๊สที่ไม่ได้ใช้จะถูกคืนให้คุณ '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_5b', 'ค่านี้จะถูกแสดงในขั้นตอนที่ขั้นตอนที่ 1 บนออนไลน์คอมพิวเตอร์ '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_6', 'ข้อมูล '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_6b', 'นี่คือตัวเลือกเพิ่มเติม โดยส่วนใหญ่ ข้อมูลจะถูกใช้ก็ต่อเมื่อคุณทำธุรกรรมส่งไปยัง Contract '), _defineProperty(_th$data, 'OFFLINE_Step2_Label_7', 'ป้อน / เลือกกุญแจส่วนตัวของคุณ (Private Key) / JSON '), _defineProperty(_th$data, 'OFFLINE_Step3_Title', 'ขั้นตอนที่ 3: ส่ง / ทำธุรกรรม (ออนไลน์ผ่านคอมพิวเตอร์) '), _defineProperty(_th$data, 'OFFLINE_Step3_Label_1', 'แปะวางธุรกรรมที่ถูกเซ็นต์กำกับแล้วจากขั้นตอนที่ 2 ลงที่นี่ และกดปุ่ม "ส่งธุรกรรม" '), _defineProperty(_th$data, 'CONTRACT_Title', 'ที่อยู่ Contract '), _defineProperty(_th$data, 'CONTRACT_Title_2', 'เลือก Contract ที่มีอยู่แล้ว '), _defineProperty(_th$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_th$data, 'CONTRACT_Interact_Title', 'อ่าน / เขียน Contract '), _defineProperty(_th$data, 'CONTRACT_Interact_CTA', 'เลือก function '), _defineProperty(_th$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_th$data, 'CONTRACT_Read', 'อ่าน '), _defineProperty(_th$data, 'CONTRACT_Write', 'เขียน '), _defineProperty(_th$data, 'DEP_generate', 'สร้าง Bytecode '), _defineProperty(_th$data, 'DEP_generated', 'Bytecode ที่ถูกสร้างขึ้น '), _defineProperty(_th$data, 'DEP_signtx', 'เซ็นกำกับธุรกรรม '), _defineProperty(_th$data, 'DEP_interface', 'Interface ที่ถูกสร้างขึ้น '), _defineProperty(_th$data, 'NODE_Title', 'ติดตั้ง Node แบบกำหนดเอง'), _defineProperty(_th$data, 'NODE_Subtitle', 'เชื่อมต่อไปยัง local node...'), _defineProperty(_th$data, 'NODE_Warning', 'Node ของคุณจะต้องเป็น HTTPS เพื่อที่จะเชื่อมต่อกับ MyEtherWallet.com คุณสามารถ [ดาวน์โหลดซอร์สโค้ดจาก MyEtherWallet repo & รันบนเครื่องคอมพิวเตอร์ของคุณ](https://github.com/kvhnuke/etherwallet/releases/latest) เพื่อเชื่อมต่อกับ Node ใดๆ หรือสร้างใบรับรอง SSL ผ่าน [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_th$data, 'NODE_Name', 'ชื่อ Node'), _defineProperty(_th$data, 'NODE_Port', 'พอร์ตของ Node'), _defineProperty(_th$data, 'NODE_CTA', 'บันทึก & ใช้ Node แบบกำหนดเอง'), _defineProperty(_th$data, 'SWAP_rates', "อัตราแลกเปลี่ยนปัจจุบัน "), _defineProperty(_th$data, 'SWAP_init_1', "ฉันต้องการจะแลกเปลี่ยน "), _defineProperty(_th$data, 'SWAP_init_2', " ของฉันด้วย "), _defineProperty(_th$data, 'SWAP_init_CTA', "ดำเนินการต่อ! "), _defineProperty(_th$data, 'SWAP_information', "ข้อมูลของคุณ "), _defineProperty(_th$data, 'SWAP_send_amt', "จำนวนที่ต้องการส่ง "), _defineProperty(_th$data, 'SWAP_rec_amt', "จำนวนที่ต้องการรับ "), _defineProperty(_th$data, 'SWAP_your_rate', "อัตราแลกเปลี่ยนของคุณ "), _defineProperty(_th$data, 'SWAP_rec_add', "ที่อยู่ที่สำหรับรับ "), _defineProperty(_th$data, 'SWAP_start_CTA', "เริ่มแลกเปลี่ยน "), _defineProperty(_th$data, 'SWAP_ref_num', "หมายเลขอ้างอิง "), _defineProperty(_th$data, 'SWAP_time', "เวลาที่เหลือสำหรับส่ง "), _defineProperty(_th$data, 'SWAP_elapsed', "เวลาที่ผ่านไปตั้งแต่เริ่มส่ง "), _defineProperty(_th$data, 'SWAP_progress_1', "คำสั่งถูกเริ่มดำเนินการ "), _defineProperty(_th$data, 'SWAP_progress_2', "กำลังรอ "), _defineProperty(_th$data, 'SWAP_progress_3', "ได้รับแล้ว! "), _defineProperty(_th$data, 'SWAP_progress_4', "กำลังส่ง {{orderResult.output.currency}} "), _defineProperty(_th$data, 'SWAP_progress_5', "คำสั่งสำเร็จ "), _defineProperty(_th$data, 'SWAP_order_CTA', "กรุณาส่ง "), _defineProperty(_th$data, 'SWAP_unlock', "ปลดล็อกกระเป๋าของคุณเพื่อส่ง ETH หรือ Token ได้โดยตรงจากหน้านี้ "), _defineProperty(_th$data, 'MSG_message', 'ข้อความ '), _defineProperty(_th$data, 'MSG_date', 'วันที่ '), _defineProperty(_th$data, 'MSG_signature', 'ลายเซ็นต์ '), _defineProperty(_th$data, 'MSG_verify', 'ข้อความยืนยัน '), _defineProperty(_th$data, 'MSG_info1', 'ใส่วันที่ปัจจุบัน เพื่อทำให้ลายเซ็นต์ไม่สามารถถูกนำกลับมาใช้ซ้ำได้อีกในวันอื่นๆ '), _defineProperty(_th$data, 'MSG_info2', 'ใส่ชื่อเล่นลงบนตำแหน่งที่ระบุเอง เพื่อป้องกันไม่ให้คนอื่นสามารถใช้มันได้ '), _defineProperty(_th$data, 'MSG_info3', 'ใส่ข้อความแสดงเจตจำนงที่เฉพาะเจาะจง เพื่อป้องกันไม่ให้มันถูกใช้เพื่อเหตุผลอื่น '), _defineProperty(_th$data, 'VIEWWALLET_Subtitle', 'หน้านี้ทำให้คุณสามารถดาวน์โหลดกุญแจส่วนตัว (Private key) ของคุณได้ในรูปแบบต่างๆ และสั่งพิมพ์กระเป๋ากระดาษของคุณใหม่ ซึ่งคุณอาจจะต้องใช้มันเพื่อ [นำเข้าบัญชีของคุณไปยัง Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/) แต่หากคุณแค่ต้องการจะตรวจสอบยอดคงเหลือของคุณ เราแนะนำให้ใชัเว็บ blockchain explorer เช่น [etherscan.io](https://etherscan.io/) '), _defineProperty(_th$data, 'VIEWWALLET_Subtitle_Short', 'หน้านี้ทำให้คุณสามารถดาวน์โหลดกุญแจส่วนตัว (Private key) ของคุณได้ในรูปแบบต่างๆ และสั่งพิมพ์กระเป๋ากระดาษของคุณใหม่ '), _defineProperty(_th$data, 'VIEWWALLET_SuccessMsg', 'สำเร็จ! นี่คือข้อมูลกระเป๋าของคุณ '), _defineProperty(_th$data, 'VIEWWALLET_ShowPrivKey', '(แสดง)'), _defineProperty(_th$data, 'VIEWWALLET_HidePrivKey', '(ซ่อน)'), _defineProperty(_th$data, 'CX_error_1', 'คุณไม่มีกระเป๋าที่บันทึกไว้ คลิก ["เพิ่มกระเป๋า"](/cx-wallet.html#add-wallet) เพื่อเพิ่ม! '), _defineProperty(_th$data, 'CX_quicksend', 'ส่ง '), _defineProperty(_th$data, 'ERROR_0', 'กรุณาใส่จำนวนที่ถูกต้อง'), _defineProperty(_th$data, 'ERROR_1', 'รหัสผ่านของคุณต้องมีอย่างน้อย 9 ตัวอักษร และควรจะเป็นรหัสผ่านที่คาดเดาได้ยาก '), _defineProperty(_th$data, 'ERROR_2', 'ขออภัย! เราไม่รู้จักไฟล์กระเป๋ารูปแบบนี้ '), _defineProperty(_th$data, 'ERROR_3', 'นี่ไม่ใช่ไฟล์กระเป๋าที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_4', 'หน่วยที่ระบุไม่มีอยู่จริง โปรดใช้หน่วยที่อยู่ในรายการต่อไปนี้ '), _defineProperty(_th$data, 'ERROR_5', 'กรุณาใส่ที่อยู่ที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_6', 'กรุณาใส่รหัสผ่านที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_7', 'กรุณาใส่หน่วยทศนิยมให้ถูกต้อง (ต้องเป็นตัวเลข ลอง 0-18) '), _defineProperty(_th$data, 'ERROR_8', 'กรุณาใส่ค่าจำกัดแก๊สให้ถูกต้อง (ต้องเป็นตัวเลข ลอง 21000-4000000) '), _defineProperty(_th$data, 'ERROR_9', 'กรุณาใส่ข้อมูลให้ถูกต้อง (ต้องเป็นเลขฐาน 16) '), _defineProperty(_th$data, 'ERROR_10', 'กรุณาใส่ราคาแก๊สให้ถูกต้อง (ต้องเป็นตัวเลข ลอง 20 GWEI / 20000000000 WEI) '), _defineProperty(_th$data, 'ERROR_11', 'กรุณาใส่ค่า Nonce ให้ถูกต้อง (ต้องเป็นตัวเลข) '), _defineProperty(_th$data, 'ERROR_12', 'ลายเซ็นต์ของธุรกรรมไม่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_13', 'มีกระเป๋าที่ใช้ชื่อเล่นนี้อยู่แล้ว '), _defineProperty(_th$data, 'ERROR_14', 'ไม่พบกระเป๋า '), _defineProperty(_th$data, 'ERROR_15', 'อุ๊บส์ ดูเหมือนจะไม่มีคำร้องขอที่มี ID นี้ หรือมีข้อผิดพลาดในการอ่านคำร้อง '), _defineProperty(_th$data, 'ERROR_16', 'กระเป๋าของที่อยู่นี้มีอยู่แล้วในฐานข้อมูล กรุณาตรวจสอบจากหน้ากระเป๋าของคุณ '), _defineProperty(_th$data, 'ERROR_17', 'มียอดคงเหลือไม่พอในบัญชีที่คุณกำลังจะส่งออก ถ้าหากคุณกำลังจะส่ง Token คุณจะต้องมีอย่างน้อย 0.01 ETH อยู่ในบัญชีของคุณ เพื่อใช้เป็นค่าแก๊ส '), _defineProperty(_th$data, 'ERROR_18', 'แก๊สทั้งหมดจะถูกใช้ในธุรกรรมนี้ ซึ่งหมายความว่าคุณได้ทำการโหวตให้กับคำร้องขอนี้แล้ว หรือช่วงการโหวตได้จบลงแล้ว'), _defineProperty(_th$data, 'ERROR_19', 'กรุณาใส่สัญลักษณ์ให้ถูกต้อง'), _defineProperty(_th$data, 'ERROR_20', 'ไม่ใช่ ERC-20 Token ที่ถูกต้อง'), _defineProperty(_th$data, 'ERROR_21', 'ไม่สามารถประเมินแก๊สได้ เนื่องจากยอดคงเหลือในบัญชีไม่พอหรืออาจมีข้อผิดพลาดจากที่อยู่ของสัญญา (Contract Address) ให้ใส่ค่าแก๊สด้วยตัวคุณเองและดำเนินการต่อ ข้อความที่เกิดจากความผิดพลาดระหว่างการส่งอาจจะมีเนื้อหาละเอียดกว่า'), _defineProperty(_th$data, 'ERROR_22', 'กรุณาใส่ชื่อ Node ให้ถูกต้อง'), _defineProperty(_th$data, 'ERROR_23', 'กรุณาใส่ URL ให้ถูกต้อง ถ้าหากคุณใช้ https อยู่ URL ของคุณควรจะเป็นแบบ https'), _defineProperty(_th$data, 'ERROR_24', 'กรุณาใส่หมายเลขพอร์ตที่ถูกต้อง. '), _defineProperty(_th$data, 'ERROR_25', 'กรุณาใส่ chain ID ที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_26', 'กรุณาใส่ ABI ที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_27', 'จำนวนขั้นต่ำ: 0.01. จำนวนขั้นสูงสุด: '), _defineProperty(_th$data, 'ERROR_28', 'คุณต้องใช้ `ไฟล์ Keystore + รหัสผ่าน` หรือ `กุญแจส่วนตัว (Private Key)` (ในหน้าถัดไป) เพื่อเข้าถึงกระเป๋าของคุณในภายหลัง '), _defineProperty(_th$data, 'ERROR_29', 'กรุณาใส่ชื่อผู้ใช้ และรหัสผ่านที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_30', 'กรุณาใส่ชื่อที่ถูกต้อง (จำนวน 7+ ตัวอักษร, จำกัดเครื่องหมายวรรคตอน) '), _defineProperty(_th$data, 'ERROR_31', 'กรุณาใส่ secret phrase ที่ถูกต้อง '), _defineProperty(_th$data, 'ERROR_32', 'ไม่สามารถเชื่อมต่อไปยัง Node ลองรีเฟรชหน้าใหม่อีกครั้ง, ลองใช้ Node อื่น (มุมขวาบน), หรือตรวจสอบการตั้งค่าไฟวอลล์ของคุณ หรือเช็คค่าการตั้งค่าใน Config ของคุณถ้าหากใช้ Node แบบกำหนดเอง'), _defineProperty(_th$data, 'ERROR_33', 'กระเป๋าที่คุณปลดล็อก มีที่อยู่ไม่ตรงกับที่อยู่ของเจ้าของ '), _defineProperty(_th$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_th$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_th$data, 'ERROR_36', 'กรุณาใส่ TX hash ที่ถูกต้อง'), _defineProperty(_th$data, 'ERROR_37', 'กรุณาใส่เลขฐานสิบหก (0-9, a-f)'), _defineProperty(_th$data, 'SUCCESS_1', 'ที่อยู่ถูกต้อง '), _defineProperty(_th$data, 'SUCCESS_2', 'กระเป๋าถูกถอดรหัสสำเร็จแล้ว '), _defineProperty(_th$data, 'SUCCESS_3', 'TX ของคุณได้ถูกเผยแพร่ไปยังเครือข่ายแล้ว และกำลังรอที่จะถูกขุดและรับการยืนยัน ซึ่งถ้าในช่วง ICOs การยืนยันอาจจะล่าช้าได้ถึง 3+ ชั่วโมง ให้ใช้ปุ่ม ยืนยัน & ตรวจสอบ ด้านล่างนี้ได้, TX Hash: '), _defineProperty(_th$data, 'SUCCESS_4', 'กระเป๋าของคุณถูกเพิ่มเรียบร้อยแล้ว '), _defineProperty(_th$data, 'SUCCESS_5', 'ไฟล์ถูกเลือก '), _defineProperty(_th$data, 'SUCCESS_6', 'การเชื่อมต่อสำเร็จแล้ว '), _defineProperty(_th$data, 'SUCCESS_7', 'ยืนยันลายเซ็นต์ของข้อความแล้ว'), _defineProperty(_th$data, 'WARN_Send_Link', 'คุณเข้าใช้จากลิงก์ที่มีการระบุ ที่อยู่, จำนวนมูลค่า, แก๊ส, รายการข้อมูล, หรือชนิดของการทำธุรกรรม (send mode) ให้คุณล่วงหน้า ซึ่งคุณสามารถเปลี่ยนแปลงข้อมูลได้ก่อนที่จะทำการส่ง ปลดล็อกกระเป๋าของคุณเพื่อเริ่มต้น '), _defineProperty(_th$data, 'GETH_InvalidSender', 'ผู้ส่งไม่ถูกต้อง '), _defineProperty(_th$data, 'GETH_Nonce', 'ค่า Nonce ต่ำเกินไป '), _defineProperty(_th$data, 'GETH_Cheap', 'ราคาแก๊สต่ำเกินกว่าจะรับได้ '), _defineProperty(_th$data, 'GETH_Balance', 'ยอดคงเหลือไม่เพียงพอ '), _defineProperty(_th$data, 'GETH_NonExistentAccount', 'บัญชีนี้ไม่มีอยู่จริง หรือยอดคงเหลือในบัญชีไม่เพียงพอ '), _defineProperty(_th$data, 'GETH_InsufficientFunds', 'ยอดมูลค่าไม่เพียงพอสำหรับ จำนวนแก๊ส * ราคาแก๊ส + จำนวนมูลค่า '), _defineProperty(_th$data, 'GETH_IntrinsicGas', 'จำนวนแก๊สต่ำเกินไป '), _defineProperty(_th$data, 'GETH_GasLimit', 'เกินจำนวนจำกัดของแก๊ส '), _defineProperty(_th$data, 'GETH_NegativeValue', 'จำนวนติดลบ '), _defineProperty(_th$data, 'PARITY_AlreadyImported', "ธุรกรรมที่มีค่าแฮชเดียวกันนี้ได้ถูกนำเข้ามาแล้ว"), _defineProperty(_th$data, 'PARITY_Old', "ค่า nonce ของธุรกรรมต่ำเกินไป ลองเพิ่มค่า nonce"), _defineProperty(_th$data, 'PARITY_TooCheapToReplace', "ค่าธรรมเนียมธุรกรรมต่ำเกินไป หรือมีธุรกรรมอื่นที่มีค่า nonce เท่ากันนี้อยู่ในคิว ให้ลองเพิ่มค่าธรรมเนียม หรือเพิ่มค่า nonce."), _defineProperty(_th$data, 'PARITY_LimitReached', "มีจำนวนธุรกรรมเยอะเกินไปรออยู่ในคิว ธุรกรรมของคุณถูกละทิ้งเนื่องจากมีจำนวนจำกัด ให้ลงเพิ่มค่าธรรมเนียม"), _defineProperty(_th$data, 'PARITY_InsufficientGasPrice', "ค่าธรรมเนียมธุรกรรมต่ำเกินไป ไม่เพียงพอสำหรับค่าธรรมเนียมขั้นต่ำของ Node ของคุณ (ขั้นต่ำ: {}, ค่าที่ใช้: {}) ให้ลงเพิ่มค่าธรรมเนียม"), _defineProperty(_th$data, 'PARITY_InsufficientBalance', "ยอดคงเหลือในบัญชีไม่เพียงพอ ต้องการ {} wei แต่มีเพียง: {} wei"), _defineProperty(_th$data, 'PARITY_GasLimitExceeded', "ค่าธรรมเนียมของธุรกรรมเกินจากค่าจำนวนจำกัดของแก๊ส จำนวนจำกัดแก๊ส: {}, ค่าที่ใช้: {} ลองลดจำนวนแก๊สลง"), _defineProperty(_th$data, 'PARITY_InvalidGasLimit', "จำนวนแก๊สที่ใช้เกินจำนวนจำกัด"), _defineProperty(_th$data, 'translate_version', '0.1 '), _defineProperty(_th$data, 'Translator_Desc', 'ขอบคุณผู้แปลภาษา '), _defineProperty(_th$data, 'TranslatorName_1', '[Tianissimo (Suteepat)](https://www.myetherwallet.com/?gaslimit=21000&to=0x8d0a185C16ADE28bf69Cb38c5e3df605360df40e&value=1.0#send-transaction) '), _defineProperty(_th$data, 'TranslatorAddr_1', '0x8d0a185C16ADE28bf69Cb38c5e3df605360df40e '), _defineProperty(_th$data, 'TranslatorName_2', ' '), _defineProperty(_th$data, 'TranslatorAddr_2', ' '), _defineProperty(_th$data, 'TranslatorName_3', ' '), _defineProperty(_th$data, 'TranslatorAddr_3', ' '), _defineProperty(_th$data, 'TranslatorName_4', ' '), _defineProperty(_th$data, 'TranslatorAddr_4', ' '), _defineProperty(_th$data, 'TranslatorName_5', ' '), _defineProperty(_th$data, 'TranslatorAddr_5', ' '), _defineProperty(_th$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_th$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_th$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_th$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_th$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_th$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_th$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_th$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_th$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_th$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_th$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_th$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_th$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_th$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_th$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_th$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_th$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_th$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_th$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_th$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_th$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_th$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys '), _defineProperty(_th$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_th$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_th$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_th$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_th$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_th$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_th$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_th$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_th$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_th$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_th$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_th$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_th$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_th$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_th$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_th$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_th$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_th$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_th$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_th$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_th$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_th$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_th$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_th$data, 'HELP_4_Desc_2', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_th$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_th$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_th$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_th$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_th$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_th$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_th$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_th$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_th$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_th$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_th$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_th$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Send Ether & Tokens" page. '), _defineProperty(_th$data, 'HELP_4CX_Desc_2', 'QuickSend '), _defineProperty(_th$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_th$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_th$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_th$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_th$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_th$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_th$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_th$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_th$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_th$data, 'HELP_4CX_Desc_12', 'Using "Send Ether & Tokens" Page '), _defineProperty(_th$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_th$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_th$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_th$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_th$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_th$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_th$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_th$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_th$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_th$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_th$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_th$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_th$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_th$data, 'HELP_7_Title', '7) How do I send tokens & add custom tokens? '), _defineProperty(_th$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_th$data, 'HELP_7_Desc_1', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_th$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_th$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_th$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_th$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_th$data, 'HELP_7_Desc_6', 'If you do not see the token listed '), _defineProperty(_th$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_th$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_th$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_th$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_th$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_th$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_th$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_th$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_th$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_th$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_th$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_th$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_th$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_th$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_th$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_th$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_th$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_th$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_th$data, 'HELP_9_Title', '9) Is the "Send Ether & Tokens" page offline? '), _defineProperty(_th$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_th$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_th$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_th$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_th$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_th$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_th$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_th$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_th$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_th$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_th$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_th$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_th$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_th$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_th$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_th$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_th$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_th$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_th$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_th$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_th$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_th$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_th$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_th$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_th$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_th$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_th$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_th$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_th$data, 'HELP_12_Desc_15', 'If you are on a Mac '), _defineProperty(_th$data, 'HELP_12_Desc_15b', 'If you are on a PC '), _defineProperty(_th$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_th$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_th$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_th$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_th$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_th$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_th$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_th$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_th$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_th$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_th$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_th$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_th$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_th$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_th$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_th$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_th$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_th$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_th$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_th$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_th$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_th$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_th$data, 'HELP_17_Desc_1', ' This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_th$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_th$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_th$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_th$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_th$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_th$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_th$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_th$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_th$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_th$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_th$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_th$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_th$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_th$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_th$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_th$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_th$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_th$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_th$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_th$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_th$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_th$data, 'HELP_Sec_Title', 'Security '), _defineProperty(_th$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_th$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_th$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_th$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_th$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_th$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_th$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_th$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_th$data, 'HELP_Contact_Title', 'Ways to Get in Touch '), _th$data);
module.exports = th;
},{}],126:[function(require,module,exports){
// Turkish
'use strict';
var _tr$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var tr = function tr() {};
tr.code = 'tr';
tr.data = (_tr$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_tr$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_tr$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_tr$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_tr$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_tr$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_tr$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_tr$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_tr$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_tr$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_tr$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_tr$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_tr$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_tr$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_tr$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_tr$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_tr$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_tr$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_tr$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_tr$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_tr$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_tr$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_tr$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_tr$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_tr$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_tr$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_tr$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_tr$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_tr$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_tr$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_tr$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_tr$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_tr$data, 'HELP_2a_Title', 'How do I save/backup my wallet? '), _defineProperty(_tr$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_tr$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_tr$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_tr$data, 'x_ReadMore', 'Read More'), _defineProperty(_tr$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_tr$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_tr$data, 'x_TXFee', 'TX Fee'), _defineProperty(_tr$data, 'x_TxHash', 'TX Hash'), _defineProperty(_tr$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_tr$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_tr$data, 'tx_Details', 'Transaction Details'), _defineProperty(_tr$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_tr$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_tr$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_tr$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_tr$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_tr$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_tr$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_tr$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_tr$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_tr$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_tr$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_tr$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_tr$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_tr$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_tr$data, 'GEN_Help_1', 'Use your'), _defineProperty(_tr$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_tr$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_tr$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_tr$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_tr$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_tr$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_tr$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_tr$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_tr$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_tr$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_tr$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_tr$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_tr$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_tr$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_tr$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_tr$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_tr$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_tr$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_tr$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_tr$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_tr$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_tr$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_tr$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_tr$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_tr$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_tr$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_tr$data, 'NAV_AddWallet', 'Cüzdan ekle '), _defineProperty(_tr$data, 'NAV_BulkGenerate', 'Birkaç Cüzdan oluştur '), _defineProperty(_tr$data, 'NAV_Contact', 'Iletişime geç '), _defineProperty(_tr$data, 'NAV_Contracts', 'Sözleşmeler '), _defineProperty(_tr$data, 'NAV_DeployContract', 'Sözleşme kur '), _defineProperty(_tr$data, 'NAV_ENS', 'ENS'), _defineProperty(_tr$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_tr$data, 'NAV_GenerateWallet', 'Cüzdan oluştur '), _defineProperty(_tr$data, 'NAV_Help', 'Yardim et '), _defineProperty(_tr$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_tr$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_tr$data, 'NAV_MyWallets', 'Cüzdanim '), _defineProperty(_tr$data, 'NAV_Offline', 'Offline gönder '), _defineProperty(_tr$data, 'NAV_SendEther', 'Ether ve Tokens gönder '), _defineProperty(_tr$data, 'NAV_SendTokens', 'Tokens gönder '), _defineProperty(_tr$data, 'NAV_SignMsg', 'Mesajı Doğrula '), _defineProperty(_tr$data, 'NAV_Swap', 'Çevir '), _defineProperty(_tr$data, 'NAV_ViewWallet', 'Cüzdan bilgilerni göster '), _defineProperty(_tr$data, 'NAV_YourWallets', 'Cüzdanin '), _defineProperty(_tr$data, 'x_Access', 'Erişim '), _defineProperty(_tr$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Bu "hesap numarası" veya "genel anahtar" dir. Birisi ether göndermek istiyorsa bu adresi kullanmasi gerekir. Ikon adresini kontrol etmek kolay bir yoldur '), _defineProperty(_tr$data, 'x_Address', 'Adresin '), _defineProperty(_tr$data, 'x_Cancel', 'Iptal et '), _defineProperty(_tr$data, 'x_CSV', 'CSV dosya (şifrelenmemis) '), _defineProperty(_tr$data, 'x_Download', 'Indir '), _defineProperty(_tr$data, 'x_Json', 'JSON dosya (şifrelenmemis) '), _defineProperty(_tr$data, 'x_JsonDesc', 'Bu özel anahtarinin sifresiz, JSON formatidir. Demekki parolasiz cüzdanini acabilirsin. Özel anahatarina sahip olan herkez sifresiz cüzdani aca bilir. '), _defineProperty(_tr$data, 'x_Keystore', 'Keystore dosya (UTC / JSON · Tavsiye edilen · şifrelenmiş) '), _defineProperty(_tr$data, 'x_Keystore2', 'Keystore dosya (UTC / JSON) '), _defineProperty(_tr$data, 'x_KeystoreDesc', 'This Keystore file matches the format used by Mist so you can easily import it in the future. It is the recommended file to download and back up. '), _defineProperty(_tr$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_tr$data, 'x_Mnemonic', 'Mnemonic Phrase '), _defineProperty(_tr$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_tr$data, 'x_Password', 'Parola '), _defineProperty(_tr$data, 'x_Print', 'Cüzdanin kağıt versiyonunu yazdir '), _defineProperty(_tr$data, 'x_PrintDesc', 'ProTavsiye: Eğer yazıcınız olmasa bile, "Yazdır" seçeneğini tıklayın ve PDF dosyası olarak kaydedin! '), _defineProperty(_tr$data, 'x_PrintShort', 'Yazdir '), _defineProperty(_tr$data, 'x_PrivKey', 'Özel anahtar (şifrelenmemis) '), _defineProperty(_tr$data, 'x_PrivKey2', 'Özel anahtar '), _defineProperty(_tr$data, 'x_PrivKeyDesc', 'Bu özel anahtarinin şifrelenmemiş metin sürümüdür. Birisi şifrelenmemiş özel anahtarı bulduysa, şifre olmadan cüzdani acabilir. Bu nedenle, şifrelenmiş sürümlerini genellikle tavsiye edilir. '), _defineProperty(_tr$data, 'x_Save', 'Indir '), _defineProperty(_tr$data, 'x_TXT', 'TXT dosya (şifrelenmemis) '), _defineProperty(_tr$data, 'x_Wallet', 'Cüzdan '), _defineProperty(_tr$data, 'MEW_Warning_1', 'Cüzdani acmadan veya yeni bir cüzdan olusturmadan önce her zaman URL\'yi gözden geçirin. Phishing sitelerinden dikkat! '), _defineProperty(_tr$data, 'CX_Warning_1', 'Burda kaydetdigin tüm cüzdanlari **yedeklediginden** emin ol. Make sure you have **external backups** of any wallets you store here. Many things could happen that would cause you to lose the data in this Chrome Extension, including uninstalling and reinstalling the extension. This extension is a way to easily access your wallets, **not** a way to back them up. '), _defineProperty(_tr$data, 'MEW_Tagline', 'Acik kaynak JavaScript Client-Side Ether cüzdani '), _defineProperty(_tr$data, 'CX_Tagline', 'Acik kaynak JavaScript Client-Side Ether cüzdani Chrome Extension '), _defineProperty(_tr$data, 'FOOTER_1', 'Acik kaynak, javascript Client-Side Ethererum cüzdani ve Ether islemleri '), _defineProperty(_tr$data, 'FOOTER_1b', 'tarafından yaratıldı '), _defineProperty(_tr$data, 'FOOTER_2', 'Bağışlar büyük takdirle kabuledilir: '), _defineProperty(_tr$data, 'FOOTER_3', 'Client-side cüzdan olusturma '), _defineProperty(_tr$data, 'FOOTER_4', 'Disclaimer '), _defineProperty(_tr$data, 'sidebar_AccountInfo', 'Hesap bilgiler '), _defineProperty(_tr$data, 'sidebar_AccountAddr', 'Hesap adres '), _defineProperty(_tr$data, 'sidebar_AccountBal', 'Bakiye '), _defineProperty(_tr$data, 'sidebar_TokenBal', 'Token bakiye '), _defineProperty(_tr$data, 'sidebar_Equiv', 'Eşdeğer Değerler '), _defineProperty(_tr$data, 'sidebar_TransHistory', 'Işlem geçmişi '), _defineProperty(_tr$data, 'sidebar_donation', 'MyEtherWallet gizlilik ve güvenlike adanmış ücretsiz ve açık kaynak kodlu bir hizmettir. Ne kadar cok bagis edilirse o kadar cok yeni özellik programlamaya, görüşlerinizi işlemeye yatitim yapabiliriz. Biz sadece dünyayı değiştirmek isteyen iki kişiyiz. Bize yardım edermisin? '), _defineProperty(_tr$data, 'sidebar_donate', 'Bağışta bulun '), _defineProperty(_tr$data, 'sidebar_thanks', 'TEŞEKKÜRLER!!! '), _defineProperty(_tr$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_tr$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_tr$data, 'decrypt_Access', 'Cüzdanını nasıl acmak istersin? '), _defineProperty(_tr$data, 'decrypt_Title', 'Özel anahtarinin formatini sec: '), _defineProperty(_tr$data, 'decrypt_Select', 'Bir cüzdan sec: '), _defineProperty(_tr$data, 'ADD_Label_1', 'Ne yapmak istiyorsunuz? '), _defineProperty(_tr$data, 'ADD_Radio_1', 'Yeni cüzdan olusturun '), _defineProperty(_tr$data, 'ADD_Radio_2', 'Cüzdan dosyayi sec (Keystore / JSON) '), _defineProperty(_tr$data, 'ADD_Radio_2_alt', 'Cüzdan dosyayi sec '), _defineProperty(_tr$data, 'ADD_Radio_2_short', 'CÜZDAN DOSYAYI SEC... '), _defineProperty(_tr$data, 'ADD_Radio_3', 'Özel anahatarini Yaspistir/Yaz '), _defineProperty(_tr$data, 'ADD_Radio_4', 'Izlenecek hesap adresi ekle '), _defineProperty(_tr$data, 'ADD_Radio_5', 'Paste Your Mnemonic '), _defineProperty(_tr$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_tr$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken) '), _defineProperty(_tr$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR) '), _defineProperty(_tr$data, 'ADD_Radio_5_PathAlternative', '(Ledger) '), _defineProperty(_tr$data, 'ADD_Radio_5_PathTrezor', '(TREZOR) '), _defineProperty(_tr$data, 'ADD_Radio_5_PathCustom', '(Custom) '), _defineProperty(_tr$data, 'ADD_Label_2', 'Bir takma isim oluştur '), _defineProperty(_tr$data, 'ADD_Label_3', 'Cüzdan şifrelidir. Parolayi yaz: '), _defineProperty(_tr$data, 'ADD_Label_4', 'Izlenecek hesap adresi ekle '), _defineProperty(_tr$data, 'ADD_Warning_1', 'Özel anahtar yazmadan cüzdan sekmesinde "izlemek" için herhangi bir hesap ekleyebilirsin. Bu demek ** degilki ** cüzdani acabilirsin, veya ondan Ether aktarabilirsin. '), _defineProperty(_tr$data, 'ADD_Label_5', 'Adresi ekle '), _defineProperty(_tr$data, 'ADD_Label_6', 'Cüzdani ac '), _defineProperty(_tr$data, 'ADD_Label_6_short', 'Ac '), _defineProperty(_tr$data, 'ADD_Label_7', 'Hesap ekle '), _defineProperty(_tr$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_tr$data, 'GEN_desc', 'Birden birkac cüzdan olusturmak istiryorsan burdan yapabilirsin '), _defineProperty(_tr$data, 'GEN_Label_1', 'Güçlü bir şifre sec (en az 9 sembol) '), _defineProperty(_tr$data, 'GEN_Placeholder_1', 'Bunu kaydetmeyi unutma! '), _defineProperty(_tr$data, 'GEN_SuccessMsg', 'Başarı! Cüzdan oluşturuldu. '), _defineProperty(_tr$data, 'GEN_Label_2', 'Keystore dosyayi veya özel anahtranini kaydet. Yukarıdaki şifreni unutma. '), _defineProperty(_tr$data, 'GEN_Label_3', 'Adresini kaydet. '), _defineProperty(_tr$data, 'GEN_Label_4', 'Isteye bagli: Cüzdanin kağıt versiyonunu yazdir veya QR code versiyonunu sakla.'), _defineProperty(_tr$data, 'BULK_Label_1', 'Oluşturulacak cüzdan sayısı '), _defineProperty(_tr$data, 'BULK_Label_2', 'Cüzdanlari olustur '), _defineProperty(_tr$data, 'BULK_SuccessMsg', 'Başarı! Cüzdanlarin olusturuldu. '), _defineProperty(_tr$data, 'SEND_addr', 'Bu Adrese gönder '), _defineProperty(_tr$data, 'SEND_amount', 'Gönderilecek miktar '), _defineProperty(_tr$data, 'SEND_amount_short', 'Miktar '), _defineProperty(_tr$data, 'SEND_custom', 'Kullaniciya özel '), _defineProperty(_tr$data, 'SEND_gas', 'Gas '), _defineProperty(_tr$data, 'SEND_TransferTotal', 'Tüm dengeyi gönder '), _defineProperty(_tr$data, 'SEND_generate', 'Generate Transaction '), _defineProperty(_tr$data, 'SEND_raw', 'İşlem oluştur ikili sistem '), _defineProperty(_tr$data, 'SEND_signed', 'Imzali İşlem '), _defineProperty(_tr$data, 'SEND_trans', 'Islemi gönder '), _defineProperty(_tr$data, 'SENDModal_Title', 'Uyarı! '), _defineProperty(_tr$data, 'SEND_custom', 'Özel Token Ekle '), _defineProperty(_tr$data, 'SENDModal_Content_1', 'şu an '), _defineProperty(_tr$data, 'SENDModal_Content_2', 'bu adresse '), _defineProperty(_tr$data, 'SENDModal_Content_3', 'Göndermek üzeresin. Emin misin? '), _defineProperty(_tr$data, 'SENDModal_Content_4', 'NOTE: If you encounter an error, you most likely need to add ether to your account to cover the gas cost of sending tokens. Gas is paid in ether. '), _defineProperty(_tr$data, 'SENDModal_No', 'Hayir, cikar beni burdan! '), _defineProperty(_tr$data, 'SENDModal_Yes', 'Evet, eminim! Islemi tamamla. '), _defineProperty(_tr$data, 'TOKEN_Addr', 'Token Adres '), _defineProperty(_tr$data, 'TOKEN_Symbol', 'Token symbolu '), _defineProperty(_tr$data, 'TOKEN_Dec', 'Ondalık '), _defineProperty(_tr$data, 'TOKEN_show', 'Tüm tokenleri göster '), _defineProperty(_tr$data, 'TOKEN_hide', 'Tokenleri gizle '), _defineProperty(_tr$data, 'TRANS_desc', 'Eğer Token göndermek istiyorsan, bunun yerine "Token Gönder" sayfasını kullan. '), _defineProperty(_tr$data, 'TRANS_warning', '"Yalnızca ETH" ya da "Yalnızca ETC" fonksiyonu kullanıyorsan, bir sözleşme yoluyla gönderiyorsun. Bazı servisler bu işlemleri kabul etmekde sorunları var. Daha fazla oku. '), _defineProperty(_tr$data, 'TRANS_advanced', '+Gelişmiş: Veri ekle '), _defineProperty(_tr$data, 'TRANS_data', 'Veri '), _defineProperty(_tr$data, 'TRANS_gas', 'Gas Limiti '), _defineProperty(_tr$data, 'TRANS_sendInfo', '21000 gaz kullanan standart bir islem 0.000441 ETH ile mal olur. Biz hizli bir sekilde mayinlanmasi için, 0.000000021 ETH\'dan biraz daha yüksek gaz fiyatini kullaniyoruz. Biz herhangi bir islem ücreti almiyoruz. '), _defineProperty(_tr$data, 'TRANSModal_Title', '"Yalnızca ETH" and "Yalnızca ETC" islemler '), _defineProperty(_tr$data, 'TRANSModal_Content_0', 'Farklı işlemler ve farklı hizmetleri hakkında bir not: '), _defineProperty(_tr$data, 'TRANSModal_Content_1', '**ETH (Standart islem): ** Bu standart bir islem baslatir bir hesapten direkt baska bir hesapa. Standart gas 21000\'dir. Bu islemlen gönderileren islem ETC zincirinde\'de yer bulabilir. '), _defineProperty(_tr$data, 'TRANSModal_Content_2', '**Only ETH: ** This sends via [Timon Rapp\'s replay protection contract (as recommended by VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) so that you only send on the **ETH** chain. '), _defineProperty(_tr$data, 'TRANSModal_Content_3', '**Only ETC: ** This sends via [Timon Rapp\'s replay protection contract (as recommended by VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) so that you only send on the **ETC** chain. '), _defineProperty(_tr$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Only send via Standard Transaction. If you send via the "Only" contracts, you will need to reach out to their support staff to manually add your balance or refund you. [You can try Shapeshift\'s "split" tool as well.](https://split.shapeshift.io/) '), _defineProperty(_tr$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** Bilinen sorun yok, ikisinden birini sec '), _defineProperty(_tr$data, 'TRANSModal_Yes', 'Güzel, şimdi anladım. '), _defineProperty(_tr$data, 'TRANSModal_No', 'Aman, kafam daha cok karıştı. Yardım et. '), _defineProperty(_tr$data, 'OFFLINE_Title', 'Olustur & offline islem '), _defineProperty(_tr$data, 'OFFLINE_Desc', 'Offline islemler 3. adimda gerçeklestirir. 1. ve 3. adimi internete bagli olan bir bilgisayarda, 2. adimi offline olan bir bilgisayarda tamamliyorsun. Böyle özel anahtarinin internete bagli olan bir bilgisayara ulasmasini engelnenir. '), _defineProperty(_tr$data, 'OFFLLINE_Step1_Title', 'Adim 1: Bilgileri olustur (Online Bilgisayar) '), _defineProperty(_tr$data, 'OFFLINE_Step1_Button', 'Bilgileri olustur '), _defineProperty(_tr$data, 'OFFLINE_Step1_Label_1', 'Adres\'den '), _defineProperty(_tr$data, 'OFFLINE_Step1_Label_2', 'Nota: This is the FROM address, not the TO address. Nonce is generated from the originating account. If using an airgapped computer, it would be the address of the cold-storage account. '), _defineProperty(_tr$data, 'OFFLINE_Step2_Title', 'Adim 2: Generate Transaction (Offline Computer) '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_1', 'Adrese '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_2', 'Gönderilen miktar '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_3', 'Gas fiyati '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_3b', 'Bu online bilgisayarınızda adım 1\'de gösterilirdi. '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_4', 'Gas limiti '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_4b', '21000 is the default gas limit. When you send contracts or add\'l data, this may need to be different. Any unused gas will be returned to you. '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_5', 'Veri '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_5b', 'Bu online bilgisayarınızda adım 1\'de gösterilir. '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_6', 'Veri '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_6b', 'Bu istege bagli. Data is often used when you send transactions to contracts. '), _defineProperty(_tr$data, 'OFFLINE_Step2_Label_7', 'Enter / Select your Private Key / JSON. '), _defineProperty(_tr$data, 'OFFLINE_Step3_Title', 'Adim 3: Gönder / Islemi duyur (Online Computer) '), _defineProperty(_tr$data, 'OFFLINE_Step3_Label_1', 'Paste the signed transaction from Step 2 here and press the "SEND TRANSACTION" button. '), _defineProperty(_tr$data, 'DEP_generate', 'Bytecode oluştur '), _defineProperty(_tr$data, 'DEP_generated', 'Oluşturulan Bytecode '), _defineProperty(_tr$data, 'DEP_signtx', 'Islmemi Imzala '), _defineProperty(_tr$data, 'DEP_interface', 'Interface oluştur '), _defineProperty(_tr$data, 'MYWAL_Nick', 'Cüzdan nickname '), _defineProperty(_tr$data, 'MYWAL_Address', 'Cüzdan adres '), _defineProperty(_tr$data, 'MYWAL_Bal', 'Bakiye '), _defineProperty(_tr$data, 'MYWAL_Edit', 'Düzenle '), _defineProperty(_tr$data, 'MYWAL_View', 'Göster '), _defineProperty(_tr$data, 'MYWAL_Remove', 'Kaldir '), _defineProperty(_tr$data, 'MYWAL_RemoveWal', 'Cüzdani kaldir: '), _defineProperty(_tr$data, 'MYWAL_WatchOnly', 'Sadece izlenen hesaplar '), _defineProperty(_tr$data, 'MYWAL_Viewing', 'Izlenen Cüzdan '), _defineProperty(_tr$data, 'MYWAL_Hide', 'Cüzdan bilgilerini gizle '), _defineProperty(_tr$data, 'MYWAL_Edit_2', 'Cüzdani düzenle '), _defineProperty(_tr$data, 'MYWAL_Name', 'Cüzdan Ismi '), _defineProperty(_tr$data, 'MYWAL_Content_1', 'Uyarı! Cüzdanını silmek üzeresin '), _defineProperty(_tr$data, 'MYWAL_Content_2', 'Bunu kaldırmadan önce ** özel anahtarıni ve / veya Keystore Dosya ve şifreni ** kaydettiğinden emin ol. '), _defineProperty(_tr$data, 'MYWAL_Content_3', 'If you want to use this wallet with your MyEtherWallet CX in the future, you will need to manually re-add it using the private key/JSON and password. '), _defineProperty(_tr$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_tr$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_tr$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_tr$data, 'NODE_Name', 'Node Name'), _defineProperty(_tr$data, 'NODE_Port', 'Node Port'), _defineProperty(_tr$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_tr$data, 'CONTRACT_Title', 'Sözleşme adresi '), _defineProperty(_tr$data, 'CONTRACT_Title_2', 'Mevcut sözleşmeyi seç '), _defineProperty(_tr$data, 'CONTRACT_Json', 'ABI / JSON arabirimi '), _defineProperty(_tr$data, 'CONTRACT_Interact_Title', 'Sözleşmesi oku / yaz '), _defineProperty(_tr$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_tr$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_tr$data, 'CONTRACT_Read', 'OKU '), _defineProperty(_tr$data, 'CONTRACT_Write', 'YAZ '), _defineProperty(_tr$data, 'SWAP_rates', "Güncel Fiyatlar "), _defineProperty(_tr$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_tr$data, 'SWAP_init_2', " for "), _defineProperty(_tr$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_tr$data, 'SWAP_information', "Bilgilerin "), _defineProperty(_tr$data, 'SWAP_send_amt', "Gönderilecek miktar "), _defineProperty(_tr$data, 'SWAP_rec_amt', "Alınacak miktar "), _defineProperty(_tr$data, 'SWAP_your_rate', "Oran "), _defineProperty(_tr$data, 'SWAP_rec_add', "Alınan Adres "), _defineProperty(_tr$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_tr$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_tr$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_tr$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_tr$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_tr$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_tr$data, 'SWAP_progress_3', "Received! "), _defineProperty(_tr$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_tr$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_tr$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_tr$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_tr$data, 'MSG_message', 'Mesaj '), _defineProperty(_tr$data, 'MSG_date', 'Tarih '), _defineProperty(_tr$data, 'MSG_signature', 'İmza '), _defineProperty(_tr$data, 'MSG_verify', 'Mesajı Doğrula '), _defineProperty(_tr$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_tr$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_tr$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_tr$data, 'MNEM_1', 'Please select the address you would like to interact with. '), _defineProperty(_tr$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_tr$data, 'MNEM_more', 'Daha Fazla Adres '), _defineProperty(_tr$data, 'MNEM_prev', 'Önceki Adresler '), _defineProperty(_tr$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_tr$data, 'ADD_Ledger_1', 'Connect your Ledger Wallet '), _defineProperty(_tr$data, 'ADD_Ledger_2', 'Open the Ethereum application (or a contract application) '), _defineProperty(_tr$data, 'ADD_Ledger_2_Exp', 'Open the Expanse application (or a contract application) '), _defineProperty(_tr$data, 'ADD_Ledger_2_Ubq', 'Open the Ubiq application (or a contract application) '), _defineProperty(_tr$data, 'ADD_Ledger_3', 'Verify that Browser Support is enabled in Settings '), _defineProperty(_tr$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_tr$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_tr$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_tr$data, 'ADD_Ledger_scan', 'Ledger Wallet\'e bağlan '), _defineProperty(_tr$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_tr$data, 'x_Trezor', 'TREZOR '), _defineProperty(_tr$data, 'ADD_Trezor_scan', 'TREZOR\'a bağlan '), _defineProperty(_tr$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_tr$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_tr$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_tr$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_tr$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_tr$data, 'VIEWWALLET_Subtitle', 'This allows you to download different versions of private keys and re-print your paper wallet. You may want to do this in order to [import your account into Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). If you want to check your balance, we recommend using a blockchain explorer like [etherscan.io](https://etherscan.io/). '), _defineProperty(_tr$data, 'VIEWWALLET_Subtitle_Short', 'This allows you to download different versions of private keys and re-print your paper wallet. '), _defineProperty(_tr$data, 'VIEWWALLET_SuccessMsg', 'Success! Here are your wallet details. '), _defineProperty(_tr$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_tr$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_tr$data, 'CX_error_1', 'Su an cüzdan eklenmemis. Cüzdan ekle tikla ["Add Wallet"](/cx-wallet.html#add-wallet) ve bir cüzdan ekle! '), _defineProperty(_tr$data, 'CX_quicksend', 'Gönder '), _defineProperty(_tr$data, 'ERROR_0', 'Geçerli tutar yaz. '), _defineProperty(_tr$data, 'ERROR_1', 'Sifren en az 9 sembol\'dan olusmasi lazim. Güçlü bir parola sectiginden emin ol. '), _defineProperty(_tr$data, 'ERROR_2', 'Sorry! We don\'t recognize this type of wallet file. '), _defineProperty(_tr$data, 'ERROR_3', 'Geçerli bir cüzdan dosyası değil. '), _defineProperty(_tr$data, 'ERROR_4', 'Var olmayan bir birim, bu birimlerden birini kullan lütfen '), _defineProperty(_tr$data, 'ERROR_5', 'Geçersiz adres. '), _defineProperty(_tr$data, 'ERROR_6', 'Geçersiz parola. '), _defineProperty(_tr$data, 'ERROR_7', 'Yetersiz bakiye. (Must be integer. Try 0-18.) '), _defineProperty(_tr$data, 'ERROR_8', 'Geçersiz gas limit. (Must be integer. Try 21000-4000000.) '), _defineProperty(_tr$data, 'ERROR_9', 'Geçersiz data value. (Must be hex.) '), _defineProperty(_tr$data, 'ERROR_10', 'Yetersiz gas. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_tr$data, 'ERROR_11', 'Geçersiz veri. (Must be integer.) '), _defineProperty(_tr$data, 'ERROR_12', 'Geçersiz imzali isleme. '), _defineProperty(_tr$data, 'ERROR_13', 'Secdigin Nickname baska bir cüzdanda kullaniliyor. '), _defineProperty(_tr$data, 'ERROR_14', 'Cüzdan bulunmadi. '), _defineProperty(_tr$data, 'ERROR_15', 'Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. '), _defineProperty(_tr$data, 'ERROR_16', 'Bu adrese sahip bir cüzdan zaten depolama alanında mevcut. Lütfen cüzdan sayfanızı kontrol edin. '), _defineProperty(_tr$data, 'ERROR_17', 'Account you are sending from does not have enough funds. If sending tokens, you must have 0.01 ETH in your account to cover the cost of gas. '), _defineProperty(_tr$data, 'ERROR_18', 'All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_tr$data, 'ERROR_19', 'Geçersiz sembol '), _defineProperty(_tr$data, 'ERROR_20', 'Geçersiz ERC-20 token\'i '), _defineProperty(_tr$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative. '), _defineProperty(_tr$data, 'ERROR_22', 'Please enter valid node name '), _defineProperty(_tr$data, 'ERROR_23', 'Lütfen geçerli URL yaz. If you are connecting via HTTPS, your node must be over HTTPS '), _defineProperty(_tr$data, 'ERROR_24', 'Lütfen geçerli port numarası yaz '), _defineProperty(_tr$data, 'ERROR_25', 'Lütfen geçerli zincir kimliği (ID) yaz '), _defineProperty(_tr$data, 'ERROR_26', 'Lütfen geçerli bir ABI yaz '), _defineProperty(_tr$data, 'ERROR_27', 'Minimum miktar: 0.01. Maximum miktar: '), _defineProperty(_tr$data, 'ERROR_28', 'Ilerde cüzdanini acmak icin **Keystore dosyan ve parolan veya özel anahtarin** lazim olacak. Lütfen kaydet ve dista yedekle! Kaydedilmemiş cüzdanini kurtarmanin hiçbir yolu yoktur. Talimatlar icin yardim [help page](https://www.myetherwallet.com/#help) sayfasini oku '), _defineProperty(_tr$data, 'ERROR_29', 'Lütfen geçerli kullanıcı ve şifreyi yaz '), _defineProperty(_tr$data, 'ERROR_30', 'Lütfen geçerli ENS isim yaz '), _defineProperty(_tr$data, 'ERROR_31', 'Geçersiz gizli cümle (phrase) '), _defineProperty(_tr$data, 'ERROR_32', 'Düğüme bağlanılamadı. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_tr$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_tr$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_tr$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_tr$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_tr$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_tr$data, 'SUCCESS_1', 'Geçerli adres '), _defineProperty(_tr$data, 'SUCCESS_2', 'Cüzdan basariyla desifre edildi '), _defineProperty(_tr$data, 'SUCCESS_3', 'TX blockchain\'e yayınlandı. İşleminizi görmek ve mayınlandığını doğrulamak veya herhangi bir gaz veya sözleşme yürütme hatası bulunmadığını görmek için tıklayın. TX Kimliği: '), _defineProperty(_tr$data, 'SUCCESS_4', 'Cüzdanın başarıyla eklendi '), _defineProperty(_tr$data, 'SUCCESS_5', 'Dosya secildi '), _defineProperty(_tr$data, 'SUCCESS_6', 'Başarıyla bağlandı '), _defineProperty(_tr$data, 'SUCCESS_7', 'Mesaj imzası doğrulandi '), _defineProperty(_tr$data, 'WARN_Send_Link', 'Işlem türü (gönderme modu), adres, miktar, gaz ve veri alanları sizin için doldurulmus olan bir bağlantı\'ile geldiniz. Göndermeden önce herhangi bir bilgiyi değiştirebilirsiniz. Başlamak için cüzdanınızıın. '), _defineProperty(_tr$data, 'GETH_InvalidSender', 'Geçersiz gönderici '), _defineProperty(_tr$data, 'GETH_Nonce', 'Nonce too low '), _defineProperty(_tr$data, 'GETH_Cheap', 'Gas price too low for acceptance '), _defineProperty(_tr$data, 'GETH_Balance', 'Insufficient balance '), _defineProperty(_tr$data, 'GETH_NonExistentAccount', 'Account does not exist or account balance too low '), _defineProperty(_tr$data, 'GETH_InsufficientFunds', 'Insufficient funds for gas * price + value '), _defineProperty(_tr$data, 'GETH_IntrinsicGas', 'Intrinsic gas too low '), _defineProperty(_tr$data, 'GETH_GasLimit', 'Gaz block sınırınııyor '), _defineProperty(_tr$data, 'GETH_NegativeValue', 'Negatif değer '), _defineProperty(_tr$data, 'PARITY_AlreadyImported', "Transaction with the same hash was already imported."), _defineProperty(_tr$data, 'PARITY_Old', "Transaction nonce is too low. Try incrementing the nonce."), _defineProperty(_tr$data, 'PARITY_TooCheapToReplace', "Transaction fee is too low. There is another transaction with same nonce in the queue. Try increasing the fee or incrementing the nonce."), _defineProperty(_tr$data, 'PARITY_LimitReached', "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee."), _defineProperty(_tr$data, 'PARITY_InsufficientGasPrice', "Transaction fee is too low. It does not satisfy your node's minimal fee (minimal: {}, got: {}). Try increasing the fee."), _defineProperty(_tr$data, 'PARITY_InsufficientBalance', "Insufficient funds. Account you try to send transaction from does not have enough funds. Required {} wei and got: {} wei."), _defineProperty(_tr$data, 'PARITY_GasLimitExceeded', "Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas."), _defineProperty(_tr$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_tr$data, 'translate_version', '0.3 '), _defineProperty(_tr$data, 'Translator_Desc', 'Thank you to our translators '), _defineProperty(_tr$data, 'TranslatorName_1', '[ffidan61](https://www.myetherwallet.com/?gaslimit=21000&to=0xF1Fdf8635cc35a084B97905F62a021cAd71fbC21&value=1.0#send-transaction) '), _defineProperty(_tr$data, 'TranslatorAddr_1', '0xF1Fdf8635cc35a084B97905F62a021cAd71fbC21 '), _defineProperty(_tr$data, 'TranslatorName_2', ''), _defineProperty(_tr$data, 'TranslatorAddr_2', ''), _defineProperty(_tr$data, 'TranslatorName_3', ''), _defineProperty(_tr$data, 'TranslatorAddr_3', ''), _defineProperty(_tr$data, 'TranslatorName_4', ''), _defineProperty(_tr$data, 'TranslatorAddr_4', ''), _defineProperty(_tr$data, 'TranslatorName_5', ''), _defineProperty(_tr$data, 'TranslatorAddr_5', ''), _defineProperty(_tr$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_tr$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_tr$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_tr$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_tr$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_tr$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_tr$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_tr$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_tr$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_tr$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_tr$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_tr$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_tr$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_tr$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_tr$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_tr$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_tr$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_tr$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_tr$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_tr$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_tr$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_tr$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_tr$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_tr$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_tr$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_tr$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_tr$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_tr$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_tr$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_tr$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_tr$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_tr$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_tr$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_tr$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_tr$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_tr$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_tr$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_tr$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_tr$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_tr$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_tr$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_tr$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositting a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_tr$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_tr$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_tr$data, 'HELP_4_Desc_2', 'Navigate to the "Ether ve Tokens göndermek" page. '), _defineProperty(_tr$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_tr$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_tr$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_tr$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_tr$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_tr$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_tr$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_tr$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_tr$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_tr$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_tr$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_tr$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Send Ether" page. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_tr$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_tr$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_tr$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_tr$data, 'HELP_4CX_Desc_12', 'Using "Send Ether" Page '), _defineProperty(_tr$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_tr$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generatea a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_tr$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_tr$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_tr$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_tr$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_tr$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_tr$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_tr$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_tr$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_tr$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_tr$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_tr$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_tr$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_tr$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_tr$data, 'HELP_7_Desc_1', 'Navigate to the "Ether ve Tokens göndermeks" page. '), _defineProperty(_tr$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_tr$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_tr$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_tr$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_tr$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_tr$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_tr$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_tr$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_tr$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_tr$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_tr$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_tr$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_tr$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_tr$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_tr$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_tr$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_tr$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_tr$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_tr$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_tr$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_tr$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_tr$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_tr$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_tr$data, 'HELP_9_Title', '9) Is the "Send Ether" page offline? '), _defineProperty(_tr$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_tr$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_tr$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_tr$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_tr$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_tr$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_tr$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_tr$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_tr$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_tr$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_tr$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_tr$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_tr$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click "SEND Ether". This will broadcast your transaction. '), _defineProperty(_tr$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_tr$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_tr$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_tr$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_tr$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_tr$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_tr$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_tr$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_tr$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_tr$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_tr$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_tr$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_tr$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_tr$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_tr$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_tr$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_tr$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_tr$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_tr$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_tr$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_tr$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_tr$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_tr$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_tr$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_tr$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_tr$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_tr$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_tr$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_tr$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_tr$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_tr$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_tr$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_tr$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_tr$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_tr$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_tr$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_tr$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_tr$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your account and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_tr$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_tr$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_tr$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_tr$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_tr$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_tr$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_tr$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_tr$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own account? '), _defineProperty(_tr$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_tr$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_tr$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_tr$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_tr$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_tr$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_tr$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_tr$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_tr$data, 'HELP_SecCX_Title', 'Güvenlik - MyEtherWallet CX '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_tr$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_tr$data, 'HELP_Sec_Title', 'Güvenlik '), _defineProperty(_tr$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_tr$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_tr$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_tr$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_tr$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_tr$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_tr$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_tr$data, 'HELP_FAQ_Title', 'Sık Sorulan Sorulara DaWays to Get in Touchha Yararlı Yanıtlar '), _defineProperty(_tr$data, 'HELP_Contact_Title', 'İletişim Kurma Yolları'), _tr$data);
module.exports = tr;
},{}],127:[function(require,module,exports){
'use strict';
var ca = require('./ca');
var de = require('./de');
var el = require('./el');
var en = require('./en');
var es = require('./es');
var fa = require('./fa');
var fi = require('./fi');
var fr = require('./fr');
var ht = require('./ht');
var hu = require('./hu');
var id = require('./id');
var it = require('./it');
var ja = require('./ja');
var ko = require('./ko');
var nl = require('./nl');
var no = require('./no');
var pl = require('./pl');
var pt = require('./pt');
var ru = require('./ru');
var th = require('./th');
var tr = require('./tr');
var vi = require('./vi');
var zhcn = require('./zhcn');
var zhtw = require('./zhtw');
var translate = function translate($translateProvider) {
$translateProvider.translations(ca.code, translate.marked(ca.data));
$translateProvider.translations(de.code, translate.marked(de.data));
$translateProvider.translations(el.code, translate.marked(el.data));
$translateProvider.translations(en.code, translate.marked(en.data));
$translateProvider.translations(es.code, translate.marked(es.data));
$translateProvider.translations(fa.code, translate.marked(fa.data));
$translateProvider.translations(fi.code, translate.marked(fi.data));
$translateProvider.translations(fr.code, translate.marked(fr.data));
$translateProvider.translations(ht.code, translate.marked(ht.data));
$translateProvider.translations(hu.code, translate.marked(hu.data));
$translateProvider.translations(id.code, translate.marked(id.data));
$translateProvider.translations(it.code, translate.marked(it.data));
$translateProvider.translations(ja.code, translate.marked(ja.data));
$translateProvider.translations(ko.code, translate.marked(ko.data));
$translateProvider.translations(nl.code, translate.marked(nl.data));
$translateProvider.translations(no.code, translate.marked(no.data));
$translateProvider.translations(pl.code, translate.marked(pl.data));
$translateProvider.translations(pt.code, translate.marked(pt.data));
$translateProvider.translations(ru.code, translate.marked(ru.data));
$translateProvider.translations(th.code, translate.marked(th.data));
$translateProvider.translations(tr.code, translate.marked(tr.data));
$translateProvider.translations(vi.code, translate.marked(vi.data));
$translateProvider.translations(zhcn.code, translate.marked(zhcn.data));
$translateProvider.translations(zhtw.code, translate.marked(zhtw.data));
$translateProvider.preferredLanguage('en');
$translateProvider.fallbackLanguage('en');
$translateProvider.useSanitizeValueStrategy(null);
};
translate.marked = function (data) {
var tData = data;
for (var key in tData) {
if (tData.hasOwnProperty(key)) tData[key] = marked(tData[key]);
}return tData;
};
module.exports = translate;
},{"./ca":106,"./de":107,"./el":108,"./en":109,"./es":110,"./fa":111,"./fi":112,"./fr":113,"./ht":114,"./hu":115,"./id":116,"./it":117,"./ja":118,"./ko":119,"./nl":120,"./no":121,"./pl":122,"./pt":123,"./ru":124,"./th":125,"./tr":126,"./vi":128,"./zhcn":129,"./zhtw":130}],128:[function(require,module,exports){
// Vietnamese
'use strict';
var _vi$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var vi = function vi() {};
vi.code = 'vi';
vi.data = (_vi$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: 'Welcome to MyEtherWallet.com',
ONBOARD_welcome_content__1: 'Please take some time to understand this for your own safety. 🙏',
ONBOARD_welcome_content__2: 'Your funds will be stolen if you do not heed these warnings.',
ONBOARD_welcome_content__3: 'We know this click-through stuff is annoying. We are sorry.',
ONBOARD_welcome_content__4: 'What is MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet is a free, open-source, client-side interface.',
ONBOARD_welcome_content__6: 'We allow you to interact directly with the blockchain while remaining in full control of your keys &amp; your funds.',
ONBOARD_welcome_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_welcome_content__8: 'We cannot recover your funds or freeze your account if you visit a phishing site or lose your private key.',
ONBOARD_bank_title: 'MyEtherWallet is not a Bank',
ONBOARD_bank_content__1: 'When you open an account with a bank or exchange, they create an account for you in their system.',
ONBOARD_bank_content__2: 'The bank keeps track of your personal information, account passwords, balances, transactions and ultimately your money.',
ONBOARD_bank_content__3: 'The bank charge fees to manage your account and provide services, like refunding transactions when your card gets stolen.',
ONBOARD_bank_content__4: 'The bank allows you to write a check or charge your debit card to send money, go online to check your balance, reset your password, and get a new debit card if you lose it.',
ONBOARD_bank_content__5: 'You have an account *with the bank or exchange* and they decide how much money you can send, where you can send it, and how long to hold on a suspicious deposit. All for a fee.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet is an Interface',
ONBOARD_interface_content__1: 'When you create an account on MyEtherWallet you are generating a cryptographic set of numbers: your private key and your public key (address).',
ONBOARD_interface_content__2: 'The handling of your keys happens entirely on your computer, inside your browser.',
ONBOARD_interface_content__3: 'We never transmit, receive or store your private key, password, or other account information.',
ONBOARD_interface_content__4: 'We do not charge a transaction fee.',
ONBOARD_interface_content__5: 'You are simply using our **interface** to interact **directly with the blockchain**.',
ONBOARD_interface_content__6: 'If you send your *public key (address)* to someone, they can send you ETH or tokens. 👍',
ONBOARD_interface_content__7: 'If you send your *private key* to someone, they now have full control of your account. 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_vi$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_vi$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_vi$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_vi$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_vi$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_vi$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_vi$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_vi$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_vi$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_vi$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_vi$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_vi$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_vi$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_vi$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_vi$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_vi$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_vi$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_vi$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_vi$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_vi$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_vi$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_vi$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_vi$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_vi$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_vi$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_vi$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_vi$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_vi$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_vi$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_vi$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_vi$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_vi$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_vi$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_vi$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_vi$data, 'x_ReadMore', 'Read More'), _defineProperty(_vi$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_vi$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_vi$data, 'x_TXFee', 'TX Fee'), _defineProperty(_vi$data, 'x_TxHash', 'TX Hash'), _defineProperty(_vi$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_vi$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_vi$data, 'tx_Details', 'Transaction Details'), _defineProperty(_vi$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_vi$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_vi$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_vi$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_vi$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_vi$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_vi$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_vi$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_vi$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_vi$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_vi$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_vi$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_vi$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_vi$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_vi$data, 'GEN_Help_1', 'Use your'), _defineProperty(_vi$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_vi$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_vi$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_vi$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_vi$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_vi$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_vi$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_vi$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_vi$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_vi$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_vi$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_vi$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_vi$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_vi$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_vi$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_vi$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_vi$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_vi$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_vi$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_vi$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_vi$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_vi$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_vi$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_vi$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_vi$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_vi$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_vi$data, 'NAV_AddWallet', 'Thêm Ví '), _defineProperty(_vi$data, 'NAV_BulkGenerate', 'Tạo Nhiều Ví '), _defineProperty(_vi$data, 'NAV_Contact', 'Liên Hệ '), _defineProperty(_vi$data, 'NAV_Contracts', 'Hợp Đồng '), _defineProperty(_vi$data, 'NAV_DeployContract', 'Phát Triển Hợp Đồng '), _defineProperty(_vi$data, 'NAV_ENS', 'ENS'), _defineProperty(_vi$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_vi$data, 'NAV_GenerateWallet', 'Tạo Ví '), _defineProperty(_vi$data, 'NAV_Help', 'Trợ Giúp '), _defineProperty(_vi$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_vi$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_vi$data, 'NAV_MyWallets', 'Ví Của Tôi '), _defineProperty(_vi$data, 'NAV_Offline', 'Giao Dịch Offline '), _defineProperty(_vi$data, 'NAV_SendEther', 'Gửi Ether và Tokens '), _defineProperty(_vi$data, 'NAV_SendTokens', 'Gửi Token '), _defineProperty(_vi$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_vi$data, 'NAV_Swap', 'Swap '), _defineProperty(_vi$data, 'NAV_ViewWallet', 'Thông Tin Ví '), _defineProperty(_vi$data, 'NAV_YourWallets', 'Ví Của Bạn '), _defineProperty(_vi$data, 'x_Access', 'Access '), _defineProperty(_vi$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Bạn có thể xem đây là Địa chỉ ví cá nhân của bạn. Bạn có thể gửi "Địa chỉ ví" này đến người mà bạn muốn nhận ETH từ họ. Biểu tượng bên cạnh giúp việc nhận dạng "Địa chỉ ví" của bạn dễ dàng hơn. '), _defineProperty(_vi$data, 'x_Address', 'Địa Chỉ Của Bạn '), _defineProperty(_vi$data, 'x_Cancel', 'Huỷ '), _defineProperty(_vi$data, 'x_CSV', 'Định Dạng CSV (Không mã hoá) '), _defineProperty(_vi$data, 'x_Download', 'Tải Về Máy '), _defineProperty(_vi$data, 'x_Json', 'Định Dạng JSON (Không mã hoá) '), _defineProperty(_vi$data, 'x_JsonDesc', 'Định Dạng JSON là một tập tin chứa dữ liệu ví chưa được mã hoá của Private Key. Bạn có thể đăng nhập vào ví của bạn bằng việc sử dụng định dạng JSON mà không cần đến mật khẩu. Vì vậy, bất kỳ người nào sở hữu định dạng JSON của bạn thì họ đều có khả năng đăng nhập vào ví của bạn mà không cần đến mật khẩu. '), _defineProperty(_vi$data, 'x_Keystore', 'Định Dạng Keystore (UTC / JSON) (Đã mã hoá. Định Dạng này sử dụng cho Mist) '), _defineProperty(_vi$data, 'x_Keystore2', 'Định Dạng Keystore (UTC / JSON) '), _defineProperty(_vi$data, 'x_KeystoreDesc', 'Định dạng Keystore là tập một tin chứa dữ liệu ví đã được mã hoá của Private Key và sử dụng cho Mist. Do đó bạn có thể dễ dàng bỏ nó vào bên trong Mist và tiếp tục sử dụng ví của bạn. Đây là một tập tin được đề xuất nhằm sao lưu dữ liệu ví cá nhân. '), _defineProperty(_vi$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_vi$data, 'x_Mnemonic', 'Cụm từ dễ nhớ '), _defineProperty(_vi$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_vi$data, 'x_Password', 'Mật Khẩu '), _defineProperty(_vi$data, 'x_Print', 'Tạo Ví Giấy '), _defineProperty(_vi$data, 'x_PrintDesc', 'Mẹo: kích chuột trái vào nút "In Ví" sau đó chọn "Save this as a PDF" đễ lưu nó thành định dạng PDF trên máy tính của bạn nếu bạn không sở hữu máy in cá nhân! '), _defineProperty(_vi$data, 'x_PrintShort', 'In Ví '), _defineProperty(_vi$data, 'x_PrivKey', 'Private Key (Không mã hoá) '), _defineProperty(_vi$data, 'x_PrivKey2', 'Private Key '), _defineProperty(_vi$data, 'x_PrivKeyDesc', 'Đây là một đoạn dữ liệu có định dạng bằng văn bản không bị mã hoá và nó chính là private key của bạn. Nếu người nào sở hữu Private Key của bạn thì họ có thể truy cập vào ví của bạn mà không cần đến mật khẩu. Vì vậy, Chúng tôi khuyên bạn nên dùng phiên bản có định dạng đã được mã hoá. '), _defineProperty(_vi$data, 'x_Save', 'Lưu '), _defineProperty(_vi$data, 'x_TXT', 'Định Dạng TXT (Không mã Hoá) '), _defineProperty(_vi$data, 'x_Wallet', 'Ví '), _defineProperty(_vi$data, 'MEW_Warning_1', 'Chú Ý! kiễm tra cẩn thận URL trước khi bạn muốn đăng nhập vào ví hoặc tạo một ví mới. Cảnh giác cao đối với những trang web lừa đảo! '), _defineProperty(_vi$data, 'CX_Warning_1', 'Hãy chắc chắn rằng bạn đã thực hiện việc sao lưu dữ liệu cho những ví bạn đang sử dụng tại đây. Nhiều khả năng có thể xảy ra sẽ dẩn đến việc mất đi dữ liệu mà bạn lưu tại phần mở rộng của Chrome (bao gồm việc gỡ bỏ cài đặt và cài đặt lại các phần mở rộng). Phần mở rộng này là cách dễ dàng đễ truy cập vào ví của bạn, nhưng nó không phải là nơi đễ bạn sao lưu dữ liệu. '), _defineProperty(_vi$data, 'MEW_Tagline', 'Open Source JavaScript Client-Side Ether Wallet '), _defineProperty(_vi$data, 'CX_Tagline', 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension '), _defineProperty(_vi$data, 'FOOTER_1', 'Free, open-source, client-side interface for generating Ethereum wallets &amp; more. Interact with the Ethereum blockchain easily &amp; securely. Double-check the URL ( myetherwallet.com ) before unlocking your wallet.'), _defineProperty(_vi$data, 'FOOTER_1b', 'Nhà Phát Triển: '), _defineProperty(_vi$data, 'FOOTER_2', 'Quyên Góp & Ủng Hộ Vào "Quỹ Phát Triển" Từ Bạn Là Một Hành Động Đáng Trân Trọng: '), _defineProperty(_vi$data, 'FOOTER_3', 'Client-side wallet generation by '), _defineProperty(_vi$data, 'FOOTER_4', 'Những Điều Cần Lưu Ý '), _defineProperty(_vi$data, 'sidebar_AccountInfo', 'Thông Tin Tài Khoản '), _defineProperty(_vi$data, 'sidebar_AccountAddr', 'Địa Chỉ Tài Khoản '), _defineProperty(_vi$data, 'sidebar_AccountBal', 'Số Dư Tài Khoản '), _defineProperty(_vi$data, 'sidebar_TokenBal', 'Số Dư Token '), _defineProperty(_vi$data, 'sidebar_Equiv', 'Giá Trị Tương Đương '), _defineProperty(_vi$data, 'sidebar_TransHistory', 'Lịch Sử Giao Dịch '), _defineProperty(_vi$data, 'sidebar_donation', 'MyEtherWallet là một ứng dụng miễn phí được xây dựng trên mã nguồn mở nhằm bảo vệ quyền riêng tư và sự bảo mật của người sử dụng. các khoản quyên góp mà chúng tôi nhận được sẽ giúp chúng tôi có cơ hội dành nhiều thơi gian hơn cho việc lắng nghe những phản hồi từ người sử dụng nhằm tạo ra những ứng dụng mới nhằm đáp ứng những mong muốn từ người sử dụng. Chúng tôi hiện tại là hai cá nhân đang cố gắng làm cho thế giới ngày một tốt hơn. Hãy cùng chung giúp chúng tôi '), _defineProperty(_vi$data, 'sidebar_donate', 'Quyên Góp '), _defineProperty(_vi$data, 'sidebar_thanks', 'Xin Chân Thành Cảm Ơn!!! '), _defineProperty(_vi$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_vi$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_vi$data, 'decrypt_Access', 'Làm thế nào đễ truy cập vào ví của bạn? '), _defineProperty(_vi$data, 'decrypt_Title', 'Chọn Loại Định Dạng Private Key Thích Hợp: '), _defineProperty(_vi$data, 'decrypt_Select', 'Chọn ví: '), _defineProperty(_vi$data, 'ADD_Label_1', 'Bạn đang cần làm gì? '), _defineProperty(_vi$data, 'ADD_Radio_1', 'Tạo Ví Mới '), _defineProperty(_vi$data, 'ADD_Radio_2', 'Chọn Tập Tin Ví Của Bạn (Keystore / JSON) '), _defineProperty(_vi$data, 'ADD_Radio_2_alt', 'Chọn Tập Tin Ví Của Bạn '), _defineProperty(_vi$data, 'ADD_Radio_2_short', 'CHỌN TẬP TIN VÍ... '), _defineProperty(_vi$data, 'ADD_Radio_3', 'Dán/Gõ Private Key Ví Của Bạn '), _defineProperty(_vi$data, 'ADD_Radio_4', 'Thêm Tài Khoản đễ Theo Dõi '), _defineProperty(_vi$data, 'ADD_Radio_5', 'Dán/Điền ký tự dễ nhớ của bạn '), _defineProperty(_vi$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_vi$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_vi$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_vi$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_vi$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_vi$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_vi$data, 'ADD_Label_2', 'Tạo Tên Gọi: '), _defineProperty(_vi$data, 'ADD_Label_3', 'Ví của bạn sẽ được giải mã. Xin vui lòng điền mật khẩu '), _defineProperty(_vi$data, 'ADD_Label_4', 'Thêm Tài Khoản đễ Theo Dõi '), _defineProperty(_vi$data, 'ADD_Warning_1', 'Bạn có thể thêm bất kỳ tài khoản nào bạn muốn theo dõi trên ví mà không cần đến Mật khẩu bảo mật. Việc này không có nghĩa là bạn đã truy cập vào bên trong ví. Do đó bạn sẽ không thực hiện được giao dịch tại chức năng này. '), _defineProperty(_vi$data, 'ADD_Label_5', 'Điền Địa Chỉ Ví '), _defineProperty(_vi$data, 'ADD_Label_6', 'Mở Khoá Cho Ví Của Bạn '), _defineProperty(_vi$data, 'ADD_Label_6_short', 'Mở Khoá '), _defineProperty(_vi$data, 'ADD_Label_7', 'Thêm Tài Khoản '), _defineProperty(_vi$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_vi$data, 'GEN_desc', 'Nếu bạn muốn tạo nhiều ví cùng một lúc, bạn có thể thực hiện tại đây '), _defineProperty(_vi$data, 'GEN_Label_1', 'Tạo mật khẩu thật mạnh nhằm bảo mật tài khoản (ít nhất 9 ký tự) '), _defineProperty(_vi$data, 'GEN_Placeholder_1', 'Lưu nó lại một cách cẩn thận! '), _defineProperty(_vi$data, 'GEN_SuccessMsg', 'Ví của bạn đã được tạo thành công. '), _defineProperty(_vi$data, 'GEN_Label_2', 'Lưu lại tập tin chứa định dạng Keystore/JSON hoặc Private Key. Đừng quên mật khẩu mà bạn đã tạo phía trên. '), _defineProperty(_vi$data, 'GEN_Label_3', 'Địa Chỉ Ví (bạn cần lưu lại cho việc sử dụng). '), _defineProperty(_vi$data, 'GEN_Label_4', 'Bạn có thể in ví giấy hoặc lưu giữ mã QR một cách cẩn thận. '), _defineProperty(_vi$data, 'BULK_Label_1', 'Số Lượng Ví Cần Tạo '), _defineProperty(_vi$data, 'BULK_Label_2', 'Tạo Ví '), _defineProperty(_vi$data, 'BULK_SuccessMsg', 'Ví của bạn đã được tạo thành công. '), _defineProperty(_vi$data, 'SEND_addr', 'Địa Chỉ Đến '), _defineProperty(_vi$data, 'SEND_amount', 'Số Lượng Cần Gửi '), _defineProperty(_vi$data, 'SEND_amount_short', 'Số Lượng '), _defineProperty(_vi$data, 'SEND_custom', 'Token được yêu cầu! '), _defineProperty(_vi$data, 'SEND_gas', 'Gas '), _defineProperty(_vi$data, 'SEND_TransferTotal', 'Gửi Hết Số Dư Hiện Có '), _defineProperty(_vi$data, 'SEND_generate', 'Tạo Giao Dịch '), _defineProperty(_vi$data, 'SEND_raw', 'Định Dạng Giao Dịch '), _defineProperty(_vi$data, 'SEND_signed', 'Chữ Ký Giao Dich '), _defineProperty(_vi$data, 'SEND_trans', 'Gửi Đi '), _defineProperty(_vi$data, 'SENDModal_Title', 'Cảnh Báo! '), _defineProperty(_vi$data, 'SENDModal_Content_1', 'Bạn muốn gửi đi '), _defineProperty(_vi$data, 'SENDModal_Content_2', 'Địa chỉ đến '), _defineProperty(_vi$data, 'SENDModal_Content_3', 'Bạn đã chắc chắn muốn thực hiện giao dịch này '), _defineProperty(_vi$data, 'SENDModal_Content_4', 'Lưu Ý: Nếu bạn gặp lỗi, bạn cần phải thêm ether vào tài khoản của bạn để thanh toán chi phí gas của việc gửi Token. Gas được thanh toán bằng ether. '), _defineProperty(_vi$data, 'SENDModal_No', 'Không, Đưa tôi ra khỏi đây! '), _defineProperty(_vi$data, 'SENDModal_Yes', 'Có, Tôi chắc chắn! Hãy thực hiện giao dịch. '), _defineProperty(_vi$data, 'TOKEN_Addr', 'Địa Chỉ Token Contract'), _defineProperty(_vi$data, 'TOKEN_Symbol', 'Ký Hiệu Token '), _defineProperty(_vi$data, 'TOKEN_Dec', 'Phân Số Thập Phân '), _defineProperty(_vi$data, 'TOKEN_show', 'Hiển thị tất cả các loại Tokens '), _defineProperty(_vi$data, 'TOKEN_hide', 'Ẩn Tokens '), _defineProperty(_vi$data, 'TRANS_desc', 'Nếu bạn muốn gửi Token, xin vui lòng sử dụng danh mục "Gửi Token". '), _defineProperty(_vi$data, 'TRANS_warning', 'Nếu bạn sử dụng chức năng "Chỉ ETH" hoặc "Chỉ ETC" trong việc gửi đi thông qua một hợp đồng thông minh. Những dịch vụ có chức năng chấp nhận các giao dịch. Đọc Thêm. '), _defineProperty(_vi$data, 'TRANS_advanced', 'Nâng Cao: Thêm Dữ Liệu '), _defineProperty(_vi$data, 'TRANS_data', 'Dữ Liệu: '), _defineProperty(_vi$data, 'TRANS_gas', 'Gas Limit: '), _defineProperty(_vi$data, 'TRANS_sendInfo', 'Mỗi Giao dịch Phổ Thông sử dụng hết 21000 gas có giá tương đương 0.000441 ETH. Chúng tôi áp dụng giá Gas dành cho một giao dịch cao hơn so với mức tối thiểu là 0.000000021 ETH nhằm đảm bảo một giao dịch được diễn ra nhanh. Chúng tôi hoàn toàn không nhận được khoản tiền phát sinh nào từ phí giao dịch. '), _defineProperty(_vi$data, 'TRANSModal_Title', 'Giao Dịch "Chỉ ETH" Và "Chỉ ETC" '), _defineProperty(_vi$data, 'TRANSModal_Content_0', 'Một số lưu ý về sự khác biệt của từng loại giao dịch và sự khác biệt của từng dịch vụ: '), _defineProperty(_vi$data, 'TRANSModal_Content_1', '**ETH (Giao Dịch Phổ Thông): ** Phương pháp này mặc định rằng nó sẽ tạo giao dịch từ một địa chỉ gửi đến địa chỉ nhận khác và nó sẽ tiêu thụ hết 21000 gas. Theo giả thuyết thì bất kì số ETH gửi đi thông qua phương pháp này sẽ được thực hiện lại tương tự trên chuổi ETC. '), _defineProperty(_vi$data, 'TRANSModal_Content_2', '**Chỉ ETH: ** Phương pháp này sẽ thực hiện giao dịch thông qua [Hợp đồng thông minh nhằm "tránh việc phát lại" được phát triển bởi Timon Rapp (theo lời cảnh báo của VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) vì vậy giao dịch này chỉ được thực hiện trên chuổi **ETH**. '), _defineProperty(_vi$data, 'TRANSModal_Content_3', '**Chỉ ETC: ** Phương pháp này sẽ thực hiện giao dịch thông qua [Hợp đồng thông minh nhằm "tránh việc phát lại" được phát triển bởi Timon Rapp (theo lời cảnh báo của VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) vì vậy giao dịch này chỉ được thực hiện trên chuổi **ETC**. '), _defineProperty(_vi$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** Giao Dịch chỉ được thực hiện thông qua giao dịch phổ thông. Nếu bạn thực hiện thông qua hợp đồng "Chỉ", thì bạn cần phải liên hệ trực tiếp với nhân viên hỗ trợ của họ để họ tự thêm vào hoặc hoàn lại tiền cho bạn. [bạn cũng có thể thử với công cụ "chia tách" của Shapeshift.](https://split.shapeshift.io/) '), _defineProperty(_vi$data, 'TRANSModal_Content_5', '**Kraken & Poloniex:** không có sự cố nào xảy ra khi thực hiện giao dịch. '), _defineProperty(_vi$data, 'TRANSModal_Yes', 'Tuyệt vời, Tôi dã hiểu. '), _defineProperty(_vi$data, 'TRANSModal_No', 'Tôi gặp gặp phải một vài vấn đề khó hiểu.Làm ơn giúp tôi hiểu rõ hơn. '), _defineProperty(_vi$data, 'OFFLINE_Title', 'Tạo và Gửi đối với giao dịch offline '), _defineProperty(_vi$data, 'OFFLINE_Desc', 'Tạo một giao dịch Offline sẽ được thực hiện với 3 bước. bạn sẽ hoàn thành bước 1 và 3 trên cùng 1 máy tính đang trong tình trạng online và thực hiện bước 2 trên một máy tính đang trong tình trạng offline/airgapped. Việc này sẽ đảm bảo Private Key của bạn không có bất cứ một liên kết nào với một thiết bị đang kết nối internet nào khác. '), _defineProperty(_vi$data, 'OFFLLINE_Step1_Title', 'Bước 1: Tạo Thông Tin (Máy tính đang Online) '), _defineProperty(_vi$data, 'OFFLINE_Step1_Button', 'Tạo Thông Tin '), _defineProperty(_vi$data, 'OFFLINE_Step1_Label_1', 'Địa Chỉ Gửi '), _defineProperty(_vi$data, 'OFFLINE_Step1_Label_2', 'Lưu ý: Đây phải là tài khoản gửi, không phải tài khoản đến. Nonce sẽ được tạo ra từ tài khoản có nguồn gốc. Nếu sử dụng máy tính có tình trạng airgapped, thì nó sẽ trở thành địa chỉ của tài khoản lưu trữ lạnh. '), _defineProperty(_vi$data, 'OFFLINE_Step2_Title', 'Bước 2: Tạo Giao Dịch (Máy Tính Đang Offline) '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_1', 'Địa Chỉ Đến '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_2', 'Đơn vị / Tổng số gửi: '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_3', 'Giá Gas '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_3b', 'Điều này đã được hiển thị ở bước 1 trên máy tính trực tuyến của bạn. '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_4', 'Giới hạn Gas '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_4b', '21000 măc định sẽ là số gas giới hạn. khi bạn gửi đi một hợp đồng hoặc thêm dữ liệu, việc này sẽ cần phải làm khác đi. Lượng Gas không được sử dụng sẽ hoàn trả cho bạn. '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_5b', 'Điều này đã được hiển thị ở bước 1 trên máy tính trực tuyến của bạn. '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_6', 'Dữ Liệu '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_6b', 'Đây là phần tùy chọn. Dữ liệu thường được sử dụng khi bạn gửi các giao dịch hợp đồng. '), _defineProperty(_vi$data, 'OFFLINE_Step2_Label_7', 'Nhập / Chọn Private Key / JSON của bạn. '), _defineProperty(_vi$data, 'OFFLINE_Step3_Title', 'Bước 3: Gửi / Làm rõ Giao Dịch (Máy tính đang Online) '), _defineProperty(_vi$data, 'OFFLINE_Step3_Label_1', 'Dán chữ ký Giao Dịch được tạo từ Bước 2 vào đây và chọn nút "Thực hiện Giao Dịch". '), _defineProperty(_vi$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_vi$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_vi$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_vi$data, 'NODE_Name', 'Node Name'), _defineProperty(_vi$data, 'NODE_Port', 'Node Port'), _defineProperty(_vi$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_vi$data, 'CONTRACT_Title', 'Contract Address '), _defineProperty(_vi$data, 'CONTRACT_Title_2', 'Select Existing Contract '), _defineProperty(_vi$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_vi$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_vi$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_vi$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_vi$data, 'CONTRACT_Read', 'READ '), _defineProperty(_vi$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_vi$data, 'SWAP_rates', "Current Rates "), _defineProperty(_vi$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_vi$data, 'SWAP_init_2', " for "), _defineProperty(_vi$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_vi$data, 'SWAP_information', "Your Information "), _defineProperty(_vi$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_vi$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_vi$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_vi$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_vi$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_vi$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_vi$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_vi$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_vi$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_vi$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_vi$data, 'SWAP_progress_3', "Received! "), _defineProperty(_vi$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_vi$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_vi$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_vi$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_vi$data, 'MSG_date', 'Date '), _defineProperty(_vi$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_vi$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_vi$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_vi$data, 'MSG_message', 'Message '), _defineProperty(_vi$data, 'MSG_signature', 'Signature '), _defineProperty(_vi$data, 'MSG_verify', 'Verify Message '), _defineProperty(_vi$data, 'x_Trezor', 'TREZOR '), _defineProperty(_vi$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_vi$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_vi$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_vi$data, 'ADD_Ledger_1', 'Kết Nối Với Ledger Wallet Của Bạn '), _defineProperty(_vi$data, 'ADD_Ledger_2', 'Mở Lên Ứng Dụng Của Ethereum (Hoặc một ứng dụng của Hợp Đồng) '), _defineProperty(_vi$data, 'ADD_Ledger_2_Exp', 'Mở Lên Ứng Dụng Của Expanse (Hoặc một ứng dụng của Hợp Đồng) '), _defineProperty(_vi$data, 'ADD_Ledger_2_Ubq', 'Mở Lên Ứng Dụng Của Ubiq (Hoặc một ứng dụng của Hợp Đồng) '), _defineProperty(_vi$data, 'ADD_Ledger_3', 'Xác nhận lại phần Hổ Trợ dành cho Trình Duyệt đã được kích hoạt trong mục Cài Đặt '), _defineProperty(_vi$data, 'ADD_Ledger_4', 'Nếu mục Hổ Trợ dành cho Trình duyệt không tìm thấy trong mục Cài Đặt, Xác nhận lại bạn đã có [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) hay chưa '), _defineProperty(_vi$data, 'ADD_Ledger_0a', 'Hảy mở lại trang MyEtherWallet trên một kết nối có tính bảo mật (SSL) '), _defineProperty(_vi$data, 'ADD_Ledger_0b', 'Sử dụng [Chrome](https://www.google.com/chrome/browser/desktop/) hoặc [Opera](https://www.opera.com/) Để mở lại trang MyEtherWallet '), _defineProperty(_vi$data, 'ADD_Ledger_scan', 'Kết nối với Ledger Wallet '), _defineProperty(_vi$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_vi$data, 'ADD_Ledger_scan', 'Kết nối với Ledger Nano S '), _defineProperty(_vi$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_vi$data, 'ADD_DigitalBitbox_0a', 'Hảy mở lại trang MyEtherWallet trên một kết nối có tính bảo mật (SSL) '), _defineProperty(_vi$data, 'ADD_DigitalBitbox_0b', 'Sử dụng [Chrome](https://www.google.com/chrome/browser/desktop/) hoặc [Opera](https://www.opera.com/) Để mở lại trang MyEtherWallet '), _defineProperty(_vi$data, 'ADD_DigitalBitbox_scan', 'Kết nối với Digital Bitbox '), _defineProperty(_vi$data, 'DEP_generate', 'Tạo Bytecode '), _defineProperty(_vi$data, 'DEP_generated', 'Bytecode Đã Được Tạo '), _defineProperty(_vi$data, 'DEP_signtx', 'Chữ Ký Giao Dịch '), _defineProperty(_vi$data, 'DEP_interface', 'Đã Tạo Giao Diện '), _defineProperty(_vi$data, 'MYWAL_Nick', 'Tên Gọi Của Ví '), _defineProperty(_vi$data, 'MYWAL_Address', 'Địa Chỉ Ví '), _defineProperty(_vi$data, 'MYWAL_Bal', 'Số Dư '), _defineProperty(_vi$data, 'MYWAL_Edit', 'Chỉnh Sửa '), _defineProperty(_vi$data, 'MYWAL_View', 'Xem '), _defineProperty(_vi$data, 'MYWAL_Remove', 'Gỡ Bỏ '), _defineProperty(_vi$data, 'MYWAL_RemoveWal', 'Gỡ Bỏ Ví: '), _defineProperty(_vi$data, 'MYWAL_WatchOnly', 'Tài khoản theo dõi của bạn '), _defineProperty(_vi$data, 'MYWAL_Viewing', 'Xem Ví '), _defineProperty(_vi$data, 'MYWAL_Hide', 'Ẩn Thông Tin Ví '), _defineProperty(_vi$data, 'MYWAL_Edit_2', 'Chỉnh Sửa Ví '), _defineProperty(_vi$data, 'MYWAL_Name', 'Tên Ví '), _defineProperty(_vi$data, 'MYWAL_Content_1', 'Cảnh Báo! Bạn Muốn gỡ bỏ Ví của bạn '), _defineProperty(_vi$data, 'MYWAL_Content_2', 'Hãy chắc chắn bạn đã **Lưu giữ Private Key hoặc Tập Tin chứa định dạng Keystore và mật khẩu** Trước khi bạn gỡ bỏ nó. '), _defineProperty(_vi$data, 'MYWAL_Content_3', 'Nếu bạn muốn sử dụng địa chỉ Ví này với MyEtherWallet CX trong tương lai, bạn sẽ cần phải tự thêm vào lại bằng cách sử dụng tập tin Private Key / JSON và mật khẩu. '), _defineProperty(_vi$data, 'VIEWWALLET_Subtitle', 'Việc này cho phép bạn tải về các phiên bản khác nhau của Private Key và in lại ví giấy của bạn. Bạn có thể muốn làm điều này để [nhập tài khoản của bạn vào Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). Nếu bạn muốn kiễm tra số dư của bạn, chúng tôi khuyên bạn sử dụng một blockchain explorer như [etherscan.io] (https://etherscan.io/). '), _defineProperty(_vi$data, 'VIEWWALLET_Subtitle_Short', 'Việc này cho phép bạn tải về các phiên bản khác nhau của Private Key và in lại ví giấy của bạn. '), _defineProperty(_vi$data, 'VIEWWALLET_SuccessMsg', 'Đã Thành Công! Đây là thông tin chi tiết về Ví của bạn. '), _defineProperty(_vi$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_vi$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_vi$data, 'MNEM_1', 'Xin vui lòng, Chọn địa chỉ mà bạn muốn tương tác. '), _defineProperty(_vi$data, 'MNEM_2', 'Cụm từ dễ nhớ đó có thể truy nhập vào số địa chỉ Ví của bạn. Vui lòng chọn địa chỉ mà bạn muốn tương tác tại thời điểm này. '), _defineProperty(_vi$data, 'MNEM_more', 'Nhiều địa chỉ '), _defineProperty(_vi$data, 'MNEM_prev', 'Địa chỉ trước đó '), _defineProperty(_vi$data, 'CX_error_1', 'Bạn không có bất kỳ ví nào được lưu lại. Chọn Nút ["Thêm Ví"](/cx-wallet.html#add-wallet) để thêm ví! '), _defineProperty(_vi$data, 'CX_quicksend', 'Gửi Nhanh '), _defineProperty(_vi$data, 'ERROR_0', 'Vui lòng nhập số dư hợp lệ. '), _defineProperty(_vi$data, 'ERROR_1', 'Mật khẩu của bạn phải có ít nhất 9 ký tự. Hãy đảm bảo rằng nó là một mật khẩu mạnh. '), _defineProperty(_vi$data, 'ERROR_2', 'Lấy làm tiếc! Chúng tôi không nhận ra loại Định Dạng từ tập tin ví. '), _defineProperty(_vi$data, 'ERROR_3', 'Đây không phải là một tập tin ví hợp lệ. '), _defineProperty(_vi$data, 'ERROR_4', 'Đơn vị này không tồn tại, xin vui lòng sử dụng một trong những đơn vị sau đây '), _defineProperty(_vi$data, 'ERROR_5', 'Địa chỉ không hợp lệ. '), _defineProperty(_vi$data, 'ERROR_6', 'Mật khẩu không hợp lệ. '), _defineProperty(_vi$data, 'ERROR_7', 'Tổng số không hợp lệ. (Must be integer. Try 0-18.) '), _defineProperty(_vi$data, 'ERROR_8', 'Giới hạn gas không hợp lệ. (Must be integer. Try 21000-4000000.) '), _defineProperty(_vi$data, 'ERROR_9', 'Dữ liệu không hợp lệ. (Must be hex.) '), _defineProperty(_vi$data, 'ERROR_10', 'Tổng số gas không hợp lệ. (Must be integer. Try 20 GWEI / 20000000000 WEI.) '), _defineProperty(_vi$data, 'ERROR_11', 'Nonce không hợp lệ. (Must be integer.) '), _defineProperty(_vi$data, 'ERROR_12', 'Chữ ký giao dịch không hợp lệ. '), _defineProperty(_vi$data, 'ERROR_13', 'Tên gọi này đã được sữ dụng. '), _defineProperty(_vi$data, 'ERROR_14', 'Không tìm thấy Ví. '), _defineProperty(_vi$data, 'ERROR_15', 'Trông có vẻ như một proposal ới số ID này chưa kết thúc hoặc đang có một lỗi xảy ra để đọc được proposal này. '), _defineProperty(_vi$data, 'ERROR_16', 'Đã có một ví với địa chỉ này đang tồn tại trong mục lưu trữ. Vui lòng kiễm tra trang ví của bạn. '), _defineProperty(_vi$data, 'ERROR_17', 'Bạn cần có ít nhất **0.01 ETH** trong tài khoản để thanh toán chi phí gas. Hãy thêm một số ether và thực hiện lại. '), _defineProperty(_vi$data, 'ERROR_18', 'Toàn bộ gas sẽ được sử dụng trong giao dịch này. Việc làm này có nghĩa là bạn đã bỏ phiếu cho đề xuất này hoặc kỳ hạn của cuộc tranh luận đã kết thúc. '), _defineProperty(_vi$data, 'ERROR_19', 'Biểu tượng không hợp lệ '), _defineProperty(_vi$data, 'ERROR_20', 'Không tồn tại trên hệ thống ERC-20 token. Nếu bạn phải chờ lâu. Xin vui lòng thử lại lần nữa!. '), _defineProperty(_vi$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_vi$data, 'ERROR_22', 'Please enter a valid node name'), _defineProperty(_vi$data, 'ERROR_23', 'Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_vi$data, 'ERROR_24', 'Please enter a valid port. '), _defineProperty(_vi$data, 'ERROR_25', 'Please enter a valid chain ID. '), _defineProperty(_vi$data, 'ERROR_26', 'Please enter a valid ABI. '), _defineProperty(_vi$data, 'ERROR_27', 'Minimum amount: 0.01. Max amount: '), _defineProperty(_vi$data, 'ERROR_28', '**Bạn cần sử dụng tập tin chứa định dạng Keystore/JSON cùng với Mật khẩu hoặc Private Key của bạn** cho việc đăng nhập vào ví này trong tương lai. Hãy sao lưu và cất giữ nó cẩn thận tại kho lưu trữ của bạn! Không có cách nào đễ khôi phục Ví của bạn nếu bạn không sao lưu dữ liệu ví lại. Đọc Thêm [trang trợ giúp] (https://www.myetherwallet.com/#help) đễ được hướng dẫn cụ thể. '), _defineProperty(_vi$data, 'ERROR_29', 'Please enter a valid user and password. '), _defineProperty(_vi$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_vi$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_vi$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_vi$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_vi$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_vi$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_vi$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_vi$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_vi$data, 'SUCCESS_1', 'Địa Chỉ Hợp Lệ '), _defineProperty(_vi$data, 'SUCCESS_2', 'Ví đã được giải mã thành công '), _defineProperty(_vi$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_vi$data, 'SUCCESS_4', 'Ví của bạn đã được thêm thành công: '), _defineProperty(_vi$data, 'SUCCESS_5', 'Tập Tin Được Chọn '), _defineProperty(_vi$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_vi$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_vi$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_vi$data, 'GETH_InvalidSender', 'Sai người nhận '), _defineProperty(_vi$data, 'GETH_Nonce', 'Nonce quá thấp '), _defineProperty(_vi$data, 'GETH_Cheap', 'Gas quá thấp '), _defineProperty(_vi$data, 'GETH_Balance', 'Số dư tài khoản không đủ '), _defineProperty(_vi$data, 'GETH_NonExistentAccount', 'Tài khoản không tồn tại hoặc số dư không đủ '), _defineProperty(_vi$data, 'GETH_InsufficientFunds', 'Số dư không đủ thanh toán cho gas * Giá + Giá trị '), _defineProperty(_vi$data, 'GETH_IntrinsicGas', 'Số gas quá thấp '), _defineProperty(_vi$data, 'GETH_GasLimit', 'Số gas vượt mức giới hạn đối với một Block '), _defineProperty(_vi$data, 'GETH_NegativeValue', 'Cảnh báo xấu về lượng gas '), _defineProperty(_vi$data, 'PARITY_AlreadyImported', "Giao dịch có cùng đoạn hash đã được ghi nhận."), _defineProperty(_vi$data, 'PARITY_Old', "Nonce quá thấp để tạo một giao dịch, hãy thử lại bằng cách tăng số nonce."), _defineProperty(_vi$data, 'PARITY_TooCheapToReplace', "Phí giao dịch quá thấp. Đang có một giao dịch khác có cùng số nonce đang bị gián đoạn. Hãy thử lại bằng cách tăng phí giao dịch."), _defineProperty(_vi$data, 'PARITY_LimitReached', "Có quá nhiều giao dịch đang bị gián đoạn. Giao dịch của bạn sẽ bị ngắt nhằm đảm bảo mức giới hạn an toàn. Hãy thử lại bằng cách tăng phí giao dịch."), _defineProperty(_vi$data, 'PARITY_InsufficientGasPrice', "Phí giao dịch quá thấp. Nó không đáp ứng được mức phí tối thiểu dành cho node của bạn (Tối thiểu: {}, bạn có: {}). Hãy thử lại bằng cách tăng phí giao dịch."), _defineProperty(_vi$data, 'PARITY_InsufficientBalance', "Không đủ số dư. Bạn đang cố gắng gửi đi một giao dịch vs số dư bị thiếu. Số dư cần thiết {} và bạn có: {}."), _defineProperty(_vi$data, 'PARITY_GasLimitExceeded', "Phí giao dịch đang vượt quá mức giới hạn gas hiện tại. Giới hạn: {}, bạn có: {}. Hãy thử lại bằng cách giảm bớt số gas."), _defineProperty(_vi$data, 'PARITY_InvalidGasLimit', "Tổng số gas mà bạn sử dụng đang vượt mức giới hạn cho phép."), _defineProperty(_vi$data, 'translate_version', '0.3 '), _defineProperty(_vi$data, 'Translator_Desc', 'Chân Thành Cảm Ơn '), _defineProperty(_vi$data, 'TranslatorName_1', '[Phạm Thế Vũ](https://twitter.com/PhamTheVu3) · '), _defineProperty(_vi$data, 'TranslatorAddr_1', 'https://twitter.com/PhamTheVu3 '), _defineProperty(_vi$data, 'TranslatorName_2', '[và Ethereum Vietnam](https://www.ethereumvn.com) '), _defineProperty(_vi$data, 'TranslatorAddr_2', 'https://www.facebook.com/ethereumvietnam https://www.ethereumvn.com '), _defineProperty(_vi$data, 'TranslatorName_3', ''), _defineProperty(_vi$data, 'TranslatorAddr_3', ''), _defineProperty(_vi$data, 'TranslatorName_4', ''), _defineProperty(_vi$data, 'TranslatorAddr_4', ''), _defineProperty(_vi$data, 'TranslatorName_5', ''), _defineProperty(_vi$data, 'TranslatorAddr_5', ''), _defineProperty(_vi$data, 'HELP_Warning', 'Nếu bạn đã khởi tạo Ví -hoặc- đã tải về máy tập tin có chứa dữ liệu ví trước **Ngày 31 Tháng 12 năm 2015**, xin vui lòng kiễm tra lại dữ liệu Ví; dễ tải về phiên bản mới của tập tin Ví. Chi tiết xem tại. '), _defineProperty(_vi$data, 'HELP_Desc', 'Nếu bạn thấy có gì sai sót và có những câu hỏi nào khác cần được giải đáp. [Xin Liên Lạc Với Chúng Tôi](mailto:support@myetherwallet.com), và chúng tôi sẽ giải đáp những thắc mắc từ bạn, ngoài ra chúng tôi sẽ cập nhật lại trang web nhằm đem lại nhiều tiện lợi nhất có thể cho người sử dụng trong tương lai! '), _defineProperty(_vi$data, 'HELP_Remind_Title', 'Một số lưu ý! '), _defineProperty(_vi$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, và các nền tảng khác từ Javascript libraries mà chúng tôi sử dụng đang được phát triển một cách tích cực.** Mặc dù toàn bộ đã được chúng tôi kiễm tra rất kỹ lưỡng và hàng chục nghìn địa chỉ Ví đã được tạo thành công từ người sử dụng trên toàn cầu, nhưng vẫn có những vấn đề có thể xảy ra làm cho ETH của bạn bị mất đi. Xin vui lòng không nên đầu tư với số tiền nhiều hơn khả năng mà bạn đã cho rằng nó sẽ mất và hãy luôn cẩn thận. Trong trường hợp rủi ro xảy ra, chung tôi rất chân thành xin lỗi. Tuy nhiên **Chúng tôi sẽ không chịu bất cứ một trách nhiệm nào đối với số lượng Ether mà bạn đã bị mất!**. '), _defineProperty(_vi$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX không phải "Ví Web". Vì vậy bạn không tạo tài khoản sau đó gửi số Ether của bạn cho chúng tôi dễ giữ hộ. Toàn bộ Dữ liệu sẽ không bao giờ bị rò rỉ ra khỏi máy tính/trình duyệt của bạn. Chúng tôi xây dựng nó nhằm giúp người sử dụng có thể đễ dàng tạo mới, lưu trữ và truy cập thông tin Ví của bạn và tương tác với Blockchain. '), _defineProperty(_vi$data, 'HELP_Remind_Desc_3', 'Nếu bạn không lưu lại Private key và mật khẩu của bạn, thì sẽ không có bất cứ một cách nào có thể khôi phục lại Ví và tài sản hiện đang chứa trong Ví. Bạn nên sao lưu dữ liệu Ví tại nhiều nơi và những thiết bị lưu trữ khác nhau! '), _defineProperty(_vi$data, 'HELP_0_Title', '0) Tôi mới sử dụng lần đầu tiên. Tôi phải làm gì? '), _defineProperty(_vi$data, 'HELP_0_Desc_1', 'MyEtherWallet giúp bạn có khả năng tạo Ví mới dùng dễ lưu trữ số lượng Ether của ban bởi chính mình, Ví được tạo ra không nằm trên bất cứ một sàn giao dịch nào. Quá trình tạo Ví điễn ra hoàn toàn trên máy tính cá nhân của bạn chứ không phải trên hệ thống máy chủ của chúng tôi. Do đó, khi bạn khởi tạo một Ví mới, **bạn chịu trách nhiệm hoàn toàn về vấn đề sao lưu dữ liệu đối với Ví được tạo**. '), _defineProperty(_vi$data, 'HELP_0_Desc_2', 'Khởi Tạo Một Ví Mới. '), _defineProperty(_vi$data, 'HELP_0_Desc_3', 'Sao Lưu Dữ Liệu Ví. '), _defineProperty(_vi$data, 'HELP_0_Desc_4', 'Xác thực rằng bạn có quyền truy cập vào ví mới này và hãy chắc chắn đã sao lưu tất cả các thông tin cần thiết. '), _defineProperty(_vi$data, 'HELP_0_Desc_5', 'Gửi Ether đến Ví mới này. '), _defineProperty(_vi$data, 'HELP_1_Title', '1) Làm thế nào dễ khởi tạo một Ví mới? '), _defineProperty(_vi$data, 'HELP_1_Desc_1', 'Đi đến trang "Tạo Ví". '), _defineProperty(_vi$data, 'HELP_1_Desc_2', 'Đi đến trang "Thêm Ví" và chọn "Tạo Ví Mới" '), _defineProperty(_vi$data, 'HELP_1_Desc_3', 'Nhập một mật khẩu mạnh. Nếu bạn nghĩ có thể quên mật khẩu thì bạn nên lưu nó lại một nơi nào đó thật an toàn. bạn sẽ cần đến mật khẩu này dễ gửi đi một giao dịch. '), _defineProperty(_vi$data, 'HELP_1_Desc_4', 'Chọn "Tạo Ví". '), _defineProperty(_vi$data, 'HELP_1_Desc_5', 'Ví của bạn sẽ được tạo ngay bây giờ. '), _defineProperty(_vi$data, 'HELP_2a_Title', 'Làm thế nào dễ sao lưu Ví? '), _defineProperty(_vi$data, 'HELP_2a_Desc_1', 'Bạn nên sao lưu tập tin Ví của bạn bên ngoài máy tính và tại nhiều nơi khác nhau - như trên USB hoặc/và một tờ giấy. '), _defineProperty(_vi$data, 'HELP_2a_Desc_2', 'Lưu lại địa chỉ Ví. Bạn có thể giữ nó cho chính mình hoặc chia sẽ nó cho bất cứ ai. Người khác có thể gửi Ether cho bạn thông qua địa chỉ Ví của bạn. '), _defineProperty(_vi$data, 'HELP_2a_Desc_3', 'Private key. Không được chia sẽ Private key cho bất cứ ai. Private key rất cần thiết khi bạn muốn truy cập vào Ví và Gửi đi một lượng Ether! hiện tại có 3 phiên bản lưu trữ dành cho Private Key: '), _defineProperty(_vi$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_vi$data, 'HELP_2a_Desc_5', 'Bạn Có thể in Ví giấy nếu bạn sở hữu máy in. Ngoài ra, bạn có thể ghi lại Private key và địa chỉ Ví của bạn lên một tờ giấy. Hãy Cất giữ chúng tại một nơi an toàn, hãy ngắt kết nối hoàn toàn giữa máy tính và USB của bạn. '), _defineProperty(_vi$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_vi$data, 'HELP_2b_Title', '2b) Làm thế nào dễ bảo mật Ví / offline / lưu trữ lạnh cùng với MyEtherWallet? '), _defineProperty(_vi$data, 'HELP_2b_Desc_1', 'Đến trang github của chúng tôi: [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_vi$data, 'HELP_2b_Desc_2', 'Chọn vào ô `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_vi$data, 'HELP_2b_Desc_3', 'Chuyển tiếp tập tin zip đi đến máy tính airgapped. '), _defineProperty(_vi$data, 'HELP_2b_Desc_4', 'Giải nén tập tin Zip và nhấn kép chuột vào tập tin `index.html`. '), _defineProperty(_vi$data, 'HELP_2b_Desc_5', 'Khởi tạo một Ví cá nhân mới cùng với một mật khẩu mạnh. '), _defineProperty(_vi$data, 'HELP_2b_Desc_6', 'Lưu giữ lại địa chỉ Ví vừa tạo. Lưu giữ lại các định dạng của Private key. Lưu giữ lại mật khẩu của bạn nếu bạn không hoàn toàn nhớ nó mãi mãi. '), _defineProperty(_vi$data, 'HELP_2b_Desc_7', 'Cất giữ tờ giáy mà bạn đã ghi lên / USB tại nhiều nơi riêng biệt. '), _defineProperty(_vi$data, 'HELP_2b_Desc_8', 'đi đến trang "Xem thông tin Ví" và gõ vào Private key của bạn / mật khẩu nhằm đảm bảo rằng nó hoàn toàn chính xác và truy cập vào Ví. kiễm tra lại mật khẩu mà bạn ghi lại trên giấy có giống nhau hay chưa. '), _defineProperty(_vi$data, 'HELP_3_Title', '3) Làm thế nào dễ xác minh và truy cập vào Ví mới được khởi tạo? '), _defineProperty(_vi$data, 'HELP_3_Desc_1', '**Trước khi bạn gửi số lượng Ether vô Ví mới của bạn**, bạn nên chắc chắn rằng bạn đã truy cập vào Ví thành công. '), _defineProperty(_vi$data, 'HELP_3_Desc_2', 'Đi đến trang "Xem Thông Tin Ví". '), _defineProperty(_vi$data, 'HELP_3_Desc_3', 'Bạn hãy đi đến trang MyEtherWallet.com "Xem Thông Tin Ví". '), _defineProperty(_vi$data, 'HELP_3_Desc_4', 'Chọn tập tin định dạng Ví của bạn -hoặc- sử dụng Private key của bạn dễ mở khoá Ví. '), _defineProperty(_vi$data, 'HELP_3_Desc_5', 'Nếu Ví của bạn được mã hoá, ô điền thông tin sẽ tự động báo lại. Nhập mật khẩu. '), _defineProperty(_vi$data, 'HELP_3_Desc_6', 'Chọn vào ô "Mở khoá Ví". '), _defineProperty(_vi$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_vi$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_vi$data, 'HELP_4_Title', '4) Làm thế nào dễ gửi Ether từ Ví này sang Ví khác ? '), _defineProperty(_vi$data, 'HELP_4_Desc_1', 'Nếu như bạn dự định dễ chuyển một số lượng lớn Ether, bạn nên gửi đi một lượng nhỏ đến Ví của bạn dễ thử nghiệm, nhằm xác định chắc chắn tất cả chức năng đều hoạt động đúng như dự định. '), _defineProperty(_vi$data, 'HELP_4_Desc_2', 'Đi đến trang "Gửi Ether và Tokens". '), _defineProperty(_vi$data, 'HELP_4_Desc_3', 'Chọn tập tin Ví -hoặc- Private key của bạn dễ mở khoá cho Ví. '), _defineProperty(_vi$data, 'HELP_4_Desc_4', 'Nếu Ví của bạn đang trong tình trạng mã hoá,ô điền thông tin sẽ tự động báo lại. Nhập mật khẩu. '), _defineProperty(_vi$data, 'HELP_4_Desc_5', 'Chọn vào nút "Mở Khoá Ví". '), _defineProperty(_vi$data, 'HELP_4_Desc_6', 'Điền địa chỉ mà bạn muốn gửi đến tại khung trống "Địa chỉ đến:". '), _defineProperty(_vi$data, 'HELP_4_Desc_7', 'Điền số lượng Ether mà bạn muốn gửi đi.Hoặc bạn có thể chọn vào phần "Gửi toàn bộ số dư" nếu bạn muốn chuyển đi toàn bộ số Ether mà bạn hiện có trong tài khoản. '), _defineProperty(_vi$data, 'HELP_4_Desc_9', 'Chọn vào "Khởi tạo Giao dịch". '), _defineProperty(_vi$data, 'HELP_4_Desc_10', 'Một cửa sổ thông báo sẽ hiện ra. Việc khởi tạo giao dịch này được thực hiện từ trình duyệt của bạn. '), _defineProperty(_vi$data, 'HELP_4_Desc_11', 'Chọn vào nút màu xanh "Gửi giao dịch đi" phía dưới. '), _defineProperty(_vi$data, 'HELP_4_Desc_12', 'Một cửa sổ yêu cầu sẽ xuất hiện. Xác nhận lại số lượng cần gửi và địa chỉ đến. Sau đó chọn vào ô "Có, tôi chắc chắn! Hãy thực hiện giao dịch.". '), _defineProperty(_vi$data, 'HELP_4_Desc_13', 'Giao dịch của bạn sẽ được gửi đi. TX Hash sẽ xuất hiện trên màn hình. Bạn có thể chọn vào TX Hash dễ xem nó trên blockchain. '), _defineProperty(_vi$data, 'HELP_4CX_Title', '4) Làm thế nào dễ gửi đi Ether bằng cách sử dụng MyEtherWallet CX? '), _defineProperty(_vi$data, 'HELP_4CX_Desc_1', 'Trước tiên, bạn cần phải thêm Ví của bạn vào. Sau khi thực hiện xong, Bạn sẽ có 2 lựa chọn: Chức năng "Gửi Nhanh" từ biểu tượng nằm trên thanh công cụ tiện ích của Google Chrome hoặc chọn vào "Gửi Ether và Tokens" dễ đi đến trang trình duyệt. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_2', 'Gửi Nhanh '), _defineProperty(_vi$data, 'HELP_4CX_Desc_3', 'Chọn vào biểu tượng trên thanh tiẹn ích của Google Chrome. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_4', 'Chọn vào ô "Gửi Nhanh". '), _defineProperty(_vi$data, 'HELP_4CX_Desc_5', 'Chọn vào Ví mà bạn muốn dùng dễ gửi. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_6', 'Điền địa chỉ mà bạn muốn gửi đến tại khung trống "Địa chỉ đến:". '), _defineProperty(_vi$data, 'HELP_4CX_Desc_7', 'Điền số lượng Ether mà bạn muốn gửi đi.Hoặc bạn có thể chọn vào phần "Gửi toàn bộ số dư" nếu bạn muốn chuyển đi toàn bộ số Ether mà bạn hiện có trong tài khoản. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_8', 'Chọn vào ô "Thực hiện Giao Dịch". '), _defineProperty(_vi$data, 'HELP_4CX_Desc_9', 'Xác nhận lại số lượng cần gửi và địa chỉ đến. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_10', 'Điền vào mật khẩu của Ví bạn dùng dễ gửi. '), _defineProperty(_vi$data, 'HELP_4CX_Desc_11', 'Chọn vào ô "Gửi giao dịch đi." '), _defineProperty(_vi$data, 'HELP_4CX_Desc_12', 'Sử dụng trang "Gửi Ether và Tokens" '), _defineProperty(_vi$data, 'HELP_5_Title', '5) Làm thế nào dễ kích hoạt MyEtherWallet.com với tính năng offline? '), _defineProperty(_vi$data, 'HELP_5_Desc_1', 'Bạn hãy kích hoạt MyEtherWallet.com trên máy tính của bạn thay thế cho việc chạy trên máy chủ của Github. Bạn có thể khởi tạo Ví mới hoàn toàn trong tình trạng offline và gửi giao dịch đi từ trang "Giao dịch Offline". '), _defineProperty(_vi$data, 'HELP_5_Desc_7', 'MyEtherWallet.com sẽ được chạy hoàn toàn trên máy tính của bạn. '), _defineProperty(_vi$data, 'HELP_5_Desc_8', 'Trong trường hợp bạn chưa quen với việc sử dụng này, bạn cần nên giữ nguyên toàn bộ thư mục và chừa một phần dung lượng vừa đủ để chạy trang web, không chỉ riêng tập tin `index.html`. Không nên thử mở lên hoặc di chuyển bất cứ một tập tin nào trong thư mục. Nếu bạn lưu trữ một bản sao tập tin repo của MyEtherWallet, chúng tôi khuyên bạn nên lưu trữ tập tin nén nhằm chắc chắn các nội dung của thư mục được giữ nguyên. '), _defineProperty(_vi$data, 'HELP_5_Desc_9', 'Cũng như việc chúng tôi liên tục cập nhật MyEtherWallet.com, vì vậy chúng tôi khuyên bạn nên cập nhận định kì cho các tập tin đã Lưu của định dạng repo. '), _defineProperty(_vi$data, 'HELP_5CX_Title', '5) Làm sao dễ chúng tôi có thể cài đặt phần mở rộng từ repo thay vì từ cửa hàng ứng dụng của Chrome? '), _defineProperty(_vi$data, 'HELP_5CX_Desc_2', 'Chọn vào ô `chrome-extension-vX.X.X.X.zip`. '), _defineProperty(_vi$data, 'HELP_5CX_Desc_3', 'Tại trình duyệt Google Chrome và tìm phần cài đặt của nó (Trong mục menu nằm trên góc phải cửa sổ). '), _defineProperty(_vi$data, 'HELP_5CX_Desc_4', 'chọn phần "Extensions" nằm bên trái. '), _defineProperty(_vi$data, 'HELP_5CX_Desc_5', 'kiễm tra lại nút "Developer Mode" nằm trên cùng của trang. '), _defineProperty(_vi$data, 'HELP_5CX_Desc_6', 'Chọn vào ô "Load unpacked extension...". '), _defineProperty(_vi$data, 'HELP_5CX_Desc_7', 'Đưa chuột và chọn vào tập tin mà bạn vừa tải về và giải nén nó trước đó, nhấp vào nút "Select". '), _defineProperty(_vi$data, 'HELP_5CX_Desc_8', 'Ứng dụng mở rộng không nên cho xuất hiện tại mục mở rộng và thanh ứng dụng mở rộng tại Google Chrome. '), _defineProperty(_vi$data, 'HELP_7_Title', '7) Làm thế nào dễ gửi token và thêm Token vào Ví? '), _defineProperty(_vi$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) là cách tốt nhất dễ kiễm tra Token và số Token. '), _defineProperty(_vi$data, 'HELP_7_Desc_1', 'Đi đến trang "Gửi Ether và Tokens". '), _defineProperty(_vi$data, 'HELP_7_Desc_2', 'mở khoá Ví của bạn. '), _defineProperty(_vi$data, 'HELP_7_Desc_3', 'Điền địa chỉ mà bạn cần gửi đến tại ô trống "Địa chỉ đến:" . '), _defineProperty(_vi$data, 'HELP_7_Desc_4', 'Điền số lượng Token mà bạn muốn gửi. '), _defineProperty(_vi$data, 'HELP_7_Desc_5', 'Chọn loại Token mà bạn muốn gửi đi. '), _defineProperty(_vi$data, 'HELP_7_Desc_6', 'Nếu bạn không thấy Token của bạn hiển thị trên trang chúng tôi: '), _defineProperty(_vi$data, 'HELP_7_Desc_7', 'Chọn vào "Custom". '), _defineProperty(_vi$data, 'HELP_7_Desc_8', 'Điền địa chỉ, tên, đơn vị số thập phân của loại Token mà bạn muốn. Chúng được cung cấp bởi các nhà phát triển Token và nó cũng cần thiết khi bạn "thêm vào dễ xem Token" trên Mist. '), _defineProperty(_vi$data, 'HELP_7_Desc_9', 'Chọn "Lưu". '), _defineProperty(_vi$data, 'HELP_7_Desc_10', 'Bạn có thể gửi token cũng như bạn sẽ nhìn thấy số dư của nó nằm ở khung bên cạnh. '), _defineProperty(_vi$data, 'HELP_7_Desc_11', 'Chọn "Khởi tạo giao dịch". '), _defineProperty(_vi$data, 'HELP_7_Desc_12', 'Một thông báo sẽ xuất hiện và xác thực rằng đây là việc khởi tạo giao dịch từ trình duyệt của bạn. '), _defineProperty(_vi$data, 'HELP_7_Desc_13', 'Chọn vào nút màu xanh phía dưới "Gửi giao dịch đi". '), _defineProperty(_vi$data, 'HELP_7_Desc_14', 'Sau đó một thông báo sẽ xuất hiện. Xác thực lại số lượng Ether và địa chỉ đến. sau đó nhấn vào nút "Có, Tôi chắc chắn! Hãy thực hiện giao dịch.". '), _defineProperty(_vi$data, 'HELP_7_Desc_15', 'Giao dịch của bạn sẽ được Thực hiện. TXid sẽ hiển thị cho bạn. Bạn có thể chọn vào TXid và nhìn ấy giao dịch của bạn trên blockchain. '), _defineProperty(_vi$data, 'HELP_8_Title', '8) Những gì sẽ xảy ra nếu trang của chúng tôi bị sập? '), _defineProperty(_vi$data, 'HELP_8_Desc_1', 'MyEtherWallet không phải là Ví online. Bạn không cần phải đăng nhập và không có bất cứ gì được lưu lại trên máy chủ của chúng tôi. Đây chỉ đơn giản là một giao diện cho phép bạn tương tác với blockchain. '), _defineProperty(_vi$data, 'HELP_8_Desc_2', 'Nếu MyEtherWallet.com bị sập, bạn sẽ phải tìm một giải pháp khác (như là geth hoặc Ví Ethereum / Mist) dễ tiếp tục thực hiện giao dịch. Nhưng bạn không cần thiết phải "Mang" Ether của bạn ra khỏi MyEtherWallet bởi vì số Ether đó không nằm trong MyEtherWallet. Bởi vì số Ether đó đang nằm trong Ví Ethereum được khởi tạo thông qua trang của chúng tôi. '), _defineProperty(_vi$data, 'HELP_8_Desc_3', 'Bạn chỉ cần bỏ tập tin chứa định dạng mã hoá Private key của bạn vào và Geth/Mist sẽ tự động giải mã tập tin (mã hoá) trực tiếp bên trong geth / Ví Ethereum / Mist một cách dễ dàng. Xem câu hỏi #12. '), _defineProperty(_vi$data, 'HELP_8_Desc_4', 'Ngoài ra, Khả năng xảy ra vấn đề trang MyEtherWallet bị sập là rất khó. Cũng như việc chúng tôi không lưu trữ lại bất cứ dữ liệu gì vì vậy giá trị của nó sở hữu hoàn toàn bằng không. Nếu chúng tôi buộc phải tháo tên miền này xuống, thì toàn bộ sẽ vẫn còn, tồn tại và công khai trên trang [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). Bạn có thể tải tập tin nén của nó và chạy nó trực tiếp trên máy tính của bạn. '), _defineProperty(_vi$data, 'HELP_8CX_Title', '8) Những gì sẽ xảy ra néu MyEtherWallet CX hoàn toàn biến mất? '), _defineProperty(_vi$data, 'HELP_8CX_Desc_1', 'Trước tiên, Toàn bộ dữ liệu đã được lưu trên máy tính của bạn, Chứ không phải ở máy chủ của chúng tôi. Chúng tôi biết rằng bạn sẽ dễ nhầm lẫn, nhưng khi bạn nhìn vào kho tiện ích của Chrome, bạn sẽ không tìm thấy được những gì hiện đang được lưu trên máy chủ của chúng tôi - Bởi vì toàn bộ đều được lưu trên chính máy tính của bạn. '), _defineProperty(_vi$data, 'HELP_8CX_Desc_2', 'Điều đó cho thấy tầm **quan trọng** đối với việc sao lưu toàn bộ thông tin và dữ liệu Ví mới được khởi tạo từ bạn tại trang MyEtherWallet CX. Và việc sao lưu dữ liệu là cách dự phòng tốt khi những vấn đề xấu có thể xảy ra đối với MyEtherWallet CX hoặc máy tính của bạn, và nó giúp bạn có toàn bộ thông tin cần thiết dễ bạn có thể truy cập vào Ví và quản lý được số Ether của bạn. xem lại phần #2a dễ rõ hơn về cách sao lưu dữ liệu. '), _defineProperty(_vi$data, 'HELP_8CX_Desc_3', 'Nếu vì một lý do bất kì buộc MyEtherWallet CX không tồn tại trên kho tiện ích của Chrome, bạn có thể tìm thấy mã nguồn trên Github và tải về máy của bạn. Xem phần #5 ở trên. '), _defineProperty(_vi$data, 'HELP_9_Title', '9) Có phải trang "Gửi Ether" là trang offline? '), _defineProperty(_vi$data, 'HELP_9_Desc_1', 'Không. Nó cần kết nối internet dễ xác định được giá Gas hiện tại, nonce của tài khoản, và phát tán các dữ liệu dễ xác thực các giao dịch (không "gửi" nó đi). Tuy nhiên, nó chỉ gửi đi khi giao dịch của bạn được ký từ chính bạn. Private key của bạn hoàn toàn an toàn từ bạn. hiện nay, chúng tôi có hỗ trợ thêm chức năng "Giao dịch Offline" dễ bạn có thể đảm bảo Private key của bạn đang trong tình trạng offline/airgapped của máy tính trong bất cứ lúc nào. '), _defineProperty(_vi$data, 'HELP_10_Title', '10) Làm thế nào dễ tạo giao dịch Offline? '), _defineProperty(_vi$data, 'HELP_10_Desc_1', 'Đi đến trang "Giao dịch Offline" thông qua máy tính đang online. '), _defineProperty(_vi$data, 'HELP_10_Desc_2', 'Điền vào "Địa chỉ gửi". Lưu ý, đây là địa chỉ mà bạn dùng dễ gửi, không phải là địa chỉ đến. và nó sẽ khởi tạo nonce và xác định giá Gas hiện tại. '), _defineProperty(_vi$data, 'HELP_10_Desc_3', 'Sau đó, chuyển đến máy tính Offline của bạn. Điền vào "Địa chỉ đến" và "Số cần gửi" mà bạn muốn gửi đi. '), _defineProperty(_vi$data, 'HELP_10_Desc_4', 'Điền vào "Giá Gas" được hiển thị trên máy tính online của bạn ở bước #1. '), _defineProperty(_vi$data, 'HELP_10_Desc_5', 'Điền vào "NONCE" được hiển thị trên máy tính online của bạn ở bước #1. '), _defineProperty(_vi$data, 'HELP_10_Desc_6', 'Sau đó "Giới hạn GAS" sẽ được mặc định với số gas là 21000. Điều này sẽ khởi tạo một giao dịch thông thường. Nếu bạn gửi đi một hợp đồng hoặc bổ sung thêm dữ liệu vối với giao dịch của bạn, bạn cần phải tăng lên số Giới hạn gas và bất kì gas dư thừa sẽ được hoàn trả lại cho bạn. '), _defineProperty(_vi$data, 'HELP_10_Desc_7', 'Nếu bạn muốn, Thêm vào một số dữ liệu. Nếu bạn điền dữ liệu vào, bạn sẽ cần số Giới hạn gas nhiều hơn số 21000 được mạc định ban đầu. Tất cả dữ liệu đều ở định dạng HEX . '), _defineProperty(_vi$data, 'HELP_10_Desc_8', 'Chọn tập tin Ví của bạn -hoặc- Private key của bạn dễ mở khoá Ví. '), _defineProperty(_vi$data, 'HELP_10_Desc_9', 'nhấn vào nút "Khởi tạo Chữ Ký cho giao dịch". '), _defineProperty(_vi$data, 'HELP_10_Desc_10', 'Các trường dữ liệu phía dưới nút này sẽ dùng dễ chứng thực chữ ký cho giao dịch của bạn. Cóp hết đoạn dữ liệu này và chuyển đến máy tính online của bạn. '), _defineProperty(_vi$data, 'HELP_10_Desc_11', 'Trên máy tính online của bạn, bạn hãy dán chữ ký giao dịch vào khung điền văn bản tại bước #3 và chọn nút "Gửi Ether". Việc làm này sẽ phát sóng đi giao dịch của bạn. '), _defineProperty(_vi$data, 'HELP_12_Title', '12) Làm thế nào dễ tôi sử dụng Ví được khởi tạo từ MyEtherWallet trên geth / Ví Ethereum / Mist? '), _defineProperty(_vi$data, 'HELP_12_Desc_1', 'Bạn phải sử dụng tập tin chứa định dạng JSON dành cho Geth/Mist từ MyEtherWallet v2+.... '), _defineProperty(_vi$data, 'HELP_12_Desc_2', 'Đi đến trang "Xem Thông Tin Ví". '), _defineProperty(_vi$data, 'HELP_12_Desc_3', 'Mở khoá Ví và sử dụng định dạng **mã hoá** private key của bạn hoặc tập tin chứa định dạng JSON. '), _defineProperty(_vi$data, 'HELP_12_Desc_4', 'Đi đến trang "Ví Của Tôi". '), _defineProperty(_vi$data, 'HELP_12_Desc_5', 'Chọn Ví mà bạn muốn dùng dễ sử dụng trên Mist, chon vào biểu tượng "Xem", Điền mật khẩu của bạn, và đăng nhập vào Ví của bạn. '), _defineProperty(_vi$data, 'HELP_12_Desc_6', 'Tìm phần "Tải về định dạng JSON - định dạng Geth/Mist (Mã hoá)". Nhấn vào nút "Tải về máy" nằm phía dưới. Bây giờ bạn đã sở hữu định dạng Keystone. '), _defineProperty(_vi$data, 'HELP_12_Desc_7', 'Truy cập Ví trên ứng dụng Ví Ethereum. '), _defineProperty(_vi$data, 'HELP_12_Desc_8', 'Tại thanh Menu, bạn chọn như sau "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_vi$data, 'HELP_12_Desc_9', 'Bạn sẽ mở thư mục keystore của bạn ra. Sao chép tập tin mà bạn đã tải về máy (`UTC--2016-04-14......../`) vào trong thư mục keystone. '), _defineProperty(_vi$data, 'HELP_12_Desc_10', 'Tài khoản của bạn sẽ hiển thị ngay dưới phần "Accounts." '), _defineProperty(_vi$data, 'HELP_12_Desc_11', 'Sử dụng Private key không mã hóa của bạn... '), _defineProperty(_vi$data, 'HELP_12_Desc_12', 'Nếu bạn chưa sở hữu private key không mã hoá , hãy đi đến trang "Xem thông tin Ví". '), _defineProperty(_vi$data, 'HELP_12_Desc_13', 'Chọn tập tin Ví của bạn -hoặc- Private key của bạn dễ mở khoá Ví. '), _defineProperty(_vi$data, 'HELP_12_Desc_14', 'Sao chép Private Key (không mã hoá) của bạn. '), _defineProperty(_vi$data, 'HELP_12_Desc_15', 'Nếu bạn sử dụng máy MAC: '), _defineProperty(_vi$data, 'HELP_12_Desc_15b', 'Nếu bạn sử dụng máy PC: '), _defineProperty(_vi$data, 'HELP_12_Desc_16', 'Mở phần Text Edit và dán private key này vào. '), _defineProperty(_vi$data, 'HELP_12_Desc_17', 'Tại thanh menu bạn hãy chọn "Format" -> "Make Plain Text". '), _defineProperty(_vi$data, 'HELP_12_Desc_18', 'Lưu tập tin này trên `desktop/` của bạn như `nothing_special_delete_me.txt`. chắc chắn rằng nó được khai báo "UTF-8" và " Nếu không có phần mở rộng được cung cấp sử dụng .text" và lưu vào dialog. '), _defineProperty(_vi$data, 'HELP_12_Desc_19', 'Mở terminal và dùng câu lệnh như sau: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_vi$data, 'HELP_12_Desc_20', 'Việc này sẽ yêu cầu bạn thực hiện một mật khẩu mới. Và nó sẽ là mật khẩu mà bạn sử dụng tại geth / Ví Ethereum / Mist . Lưu ý, Bạn phải ghi nhớ mật khẩu này. '), _defineProperty(_vi$data, 'HELP_12_Desc_21', 'Sau khi hoàn thành việc nhập Ví trên ứng dụng, bạn nên xoá tập tin `nothing_special_delete_me.txt` '), _defineProperty(_vi$data, 'HELP_12_Desc_22', 'Trong lần sử dụng ứng dụng Ví Ethereum sau này, Tài khoản của bạn sẽ tự đọng liên kết và hiển thị dưới phần "Accounts". '), _defineProperty(_vi$data, 'HELP_12_Desc_23', 'Mở mục Notepad & dán private key vào '), _defineProperty(_vi$data, 'HELP_12_Desc_24', 'Lưu tập tin lại với tên như sau `nothing_special_delete_me.txt` tại ổ đĩa `C:` '), _defineProperty(_vi$data, 'HELP_12_Desc_25', 'Sử dụng câu lệnh, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_vi$data, 'HELP_12_Desc_26', 'Việc này sẽ yêu cầu bạn thực hiện một mật khẩu mới. Và nó sẽ là mật khẩu mà bạn sử dụng tại geth / Ví Ethereum / Mist . Lưu ý, Bạn phải ghi nhớ mật khẩu này. '), _defineProperty(_vi$data, 'HELP_12_Desc_27', 'Sau khi hoàn thành việc nhập Ví trên ứng dụng, bạn nên xoá tập tin `nothing_special_delete_me.txt` '), _defineProperty(_vi$data, 'HELP_12_Desc_28', 'Trong lần sử dụng ứng dụng Ví Ethereum sau này, Tài khoản của bạn sẽ tự đọng liên kết và hiển thị dưới phần "Accounts". '), _defineProperty(_vi$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_vi$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_vi$data, 'HELP_14_Title', '14) Một số trang khi khởi tạo Private key thông qua việc di chuyển con trỏ chuột máy tính trên màn hình. MyEtherWallet.com không làm theo cách này. Các ký tự Private key được tạo ra trên trang MyEtherWallet một cách an toàn nhất? '), _defineProperty(_vi$data, 'HELP_14_Desc_1', 'Mặc dù chúng tôi hiểu với việc di chuyển chuột xung quanh màn hình như vậy sẽ khá thú vị, nhưng thực tế window.crypto sẽ đảm bảo việc tạo ra những "dữ liệu ngẫu nhiên" hơn đối với việc di chuyển chuột. Việc di chuyển chuột như vậy không phải là không an toàn, nhưng thông qua rất nhiều những thử nghiệm về mật mã khác thì chúng tôi hoàn toàn tin tưởng vào window.crypto. Ngoài ra, MyEtherWallet.com còn được sử dụng trên những thiết bị cảm ứng. Đây là [Cuộc tranh cải tức giận giữa một redditor và Vitalik Buterin Liên quan đến vấn đề Di chuyển con chuột với window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_vi$data, 'HELP_15_Title', '15) Vì sao tài khoản của tôi vừa tạo lại không tồn tại trên Blockchain Explorer? (bao gồm: etherchain, etherscan) '), _defineProperty(_vi$data, 'HELP_15_Desc_1', 'Tài khoản của bạn chỉ tồn tại duy nhất trên một Blockchain Explorer và tài khoản được kích hoạt khi bởi chính nó khi bạn dùng tài khoản đó và chuyển Ether vào tức khắc tài khoản sử dụng sẽ hiển thị trên hệ thống Blockchain Explorer thích hợp. '), _defineProperty(_vi$data, 'HELP_16_Title', '16) Làm thế nào dễ kiễm tra số dư hiện tại của tài khoản? '), _defineProperty(_vi$data, 'HELP_16_Desc_1', 'Bạn có thể sử dụng Blockchain Explorer dễ kiễm tra, Ví dụ: [etherscan.io](https://etherscan.io/). Dán địa chỉ của bạn vào khung tìm kiếm và nó sẽ hiển thị tài khoản của bạn và toạn bộ lịch sữ giao dịch đã thực hiện đối với địa chỉ này. Ví Dụ: Đây là địa chỉ của chúng tôi [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) được trông thấy trên etherscan.io '), _defineProperty(_vi$data, 'HELP_17_Title', '17) Tại sao số dư tài khoản của tôi không hiển thị khi tôi truy cập vào tài khoản? '), _defineProperty(_vi$data, 'HELP_17_Desc_1', 'Vấn đề này rất có thể xảy ra nếu như máy tính của bạn đang kích hoạt tường lửa. Các API mà chúng tôi sử dụng nhằm tải xuống số Dư của hiện có của tài khoản và chuyển đổi số dư thường bị chặn bởi tường lửa bởi bất kì lý do nào. Nhưng bạn vẫn có thể gửi đi các giao dịch và bạn chỉ cần sử dụng một phương pháp khác dễ kiễm tra số dư của bạn hiện tại trước và sau khi giao dịch được thực hiện, ví dụ: etherscan.io '), _defineProperty(_vi$data, 'HELP_18_Title', '18) Tập tin chứa định dạng Geth của ví tôi nằm ở đâu? '), _defineProperty(_vi$data, 'HELP_19_Title', '19) Tập tin chứa dịnh dạng Mist của ví tôi nằm ở đâu? '), _defineProperty(_vi$data, 'HELP_19_Desc_1', 'Tập tin chứa định dạng dành cho Ví mist nằm ở mục the file locations phía trên, nó rất đễ dàng dễ mở Mist, Chọn "Accounts" hàng đầu tiên của thanh công cụ, chọn "Backup", và chọn "Accounts". Nó sẽ mở ra thư mục hiện tại đang lưu trữ tập tin định dạng Ví của bạn. '), _defineProperty(_vi$data, 'HELP_20_Title', '20) Tập tin Pre-sale cho Ví của tôi nằm ở đâu? '), _defineProperty(_vi$data, 'HELP_20_Desc_1', 'Cho dù bạn lưu trữ nó ở đâu. ;) nó cũng đều được gửi đến email của bạn, vì vậy hãy kiễm tra email. Kiếm tập tin mang tên `"ethereum_wallet_backup.json"` và sau đó chọn tập tin này. Tập tin Ví này thường đc mã hoá bởi một mật khẩu khi bạn khởi tạo nó trong lúc bạn thanh toán trong thời gian pre-sale. '), _defineProperty(_vi$data, 'HELP_21_Title', '21) có thể xảy ra trường hợp có một cá nhân nào đó sử dụng ngẫu nhiên một Private key dễ thấy được số dư tài khoản của một người khác và chuyển số Ether đó vào địa chỉ mà cá nhân dó sở hữu hay không? '), _defineProperty(_vi$data, 'HELP_21_Desc_1', 'Đối với phiên bản ngắn: Điều đó có thể xảy ra, nhưng việc chọn ngẫu nhiên dễ nhằm tìm kiếm một tài khoản chứa Ether là một việc làm mất rất nhiều thời gian và cũng có thể mất cả vài chục năm dễ đạt được mục đích đó. bởi vậy trường hợp này được coi là rất khó dễ xảy ra. '), _defineProperty(_vi$data, 'HELP_21_Desc_2', 'Phiên bản dài ELI5: Bởi vậy Ethereum được dựa trên [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), Đặc biệt là [Mật mã đường cong Elliptic](https://eprint.iacr.org/2013/734.pdf) Được sử dụng rất rộng rãi, không chỉ duy nhất ở Ethereum. Hầu hết các Server được bảo vệ thông qua ECC. Bitcoin cũng tương tự, cũng giống như SSH và TLS và rất nhiều thứ khác. Mã khoá của Ethereum cụ thể bao gồm 256-bit ký tự, Đoạn mã đó dài và khó đoán hơn đoạn mã 128-bit và 192-bit, mặc dù 128-bit và 192-bit hiện cũng được dùng khá rộng rãi và vẫn được nhận định là rất bảo mật từ các chuyên gia. '), _defineProperty(_vi$data, 'HELP_21_Desc_3', 'Tại đây bạn đang sở hữu private key và public key. private key có thể dùng thay thế cho public key, nhưng public key không thể dùng nhằm thay thế và dùng dễ phục hồi lại private key. Thực tế trên internet và các dữ liệu cần được bảo mật của thế giới đang sử dụng loại mật mã học này, có nghĩa nếu một cách nào đó nhằm dùng public key dễ phục hồi lại private key, Thì lượng Ether mà bạn bị đánh cắp nó không phải là vấn đề lớn so với nhiều vấn đề mang tính quan trọng rất lớn của những tổ chức tài chính và chính phủ trên toàn cầu. '), _defineProperty(_vi$data, 'HELP_21_Desc_4', 'Hiện tại chỉ khẳng định rằng nếu ai đó sở hữu được Private key của bạn thì thực sự họ mới có khả năng chuyển số Ether trong tài khoản của bạn đi được. Giống như nếu ai đó có được mật khẩu email của bạn, họ có thể đọc và gửi email, hoặc mật khẩu tài khoản ngân hàng của bạn, họ mới có thể đánh cắp tiền của bạn đi được. Bạn có thể tải về định dạng Keystore bởi vì nó là định dạng đã mã hoá dữ liệu từ Private key của bạn cùng với mật khẩu giải mã khác. Trường hợp này giống như hiện tại bạn đang có một mật khẩu A nhưng được bảo vệ bởi một mật khẩu B khác và nó giúp tài khoản của bạn càng khó bị đánh mất hơn. '), _defineProperty(_vi$data, 'HELP_21_Desc_5', 'Vẫn có thẻ xảy ra, theo lý thuyết thì bạn sẽ sử dụng một chuỗi gồn 64 ký tự cho đến khi bạn nhận được một kết quả đúng. Thực tế, một cá nhân thông minh có thể lập trình lên một chương trình rà kết quả đúng với Private key của bạn một cách nhanh chóng. Trường hợp này giống như "brute-forcing" hoặc "mining" private keys. Nhưng viêc làm này vẫn mất rất nhièu thời gian và rất khó. Cùng với một hệ thống Server công nghệ cao, họ có khả năng dò ngẫu nhiên 1 triệu ký tự / giây. Tuy nhiên, Việc kiễm tra ngẩu nghiên này nhằm mang lại quyền đột nhập vào tài khoản của bạn sẽ phải mất một lượng chi phí rất cao đễ duy trì hệ thống Server của họ - và dễ rà soát cho đến khi hoàn toàn chính xác được Private key của bạn thì có lẽ cá nhân đó đã già vì phải mất cả gần trăm năm dễ cho ra kết quả chính xác. '), _defineProperty(_vi$data, 'HELP_21_Desc_6', 'Nếu bạn hiểu toàn bộ về Bitcoin, [Điều này có thể xem qua tại:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *Nhằm làm rõ cho việc: Cho rằng mỗi satoshi của mỗi bitcoin từng được tạo ra đã gửi đến nó những private key được nó sở hữu mà không có trường hợp khác thay thế. Xác xuất dễ có một mã khoá bị trùng lặp tại hai địa chỉ khác nhau là một trong 100 quintillion, bởi vậy được coi là hoàn toàn không thể. '), _defineProperty(_vi$data, 'HELP_21_Desc_7', '[Nếu bạn cần một phương pháp bảo mật cao hơn có thể tham khảo:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *Đối với đoạn mã của Private thì hầu như những công nghệ tiên tiến trên máy tính của bạn chỉ là vô nghĩa, vì khi người nào đó muốn dò ngẫu nhiên nó thì họ không cần thiết phải tấn công vào thiết bị của bạn. Nhưng đối với một mã khoá 265-bit sẽ bất khả thi đối với việc làm trên trừ khi máy tính của họ được xây dựng bởi một cái gì đó khác biệt và cực kì tiên tiến thì mới rà được và cho ra kết quả tốt nhất và trường hợp này sẽ cần rất rất nhiều thời gian và những công nghệ đó có lẽ còn phải mất rất nhiều thời gian trong tương lai dễ nghiên cứu . '), _defineProperty(_vi$data, 'HELP_21_Desc_8', 'Tất cả những giả đinh trên nhằm xác định rõ đoạn mã được tạo ra một cách hoàn toàn ngẫu nhiên. các mã khoá được tạo ra ở đây đáp ứng các tiêu chí, mà có thể tương tích đc với Jaxx và Mist/Geth. Ví Ethereum là tất cả những gì tuyệt vời nhất. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_vi$data, 'HELP_SecCX_Title', 'Bảo mật - MyEtherWallet CX '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_1', 'Những thông tin dữ liệu được kho tiện ích lưu trữ ở đâu? '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_2', 'Các thông tin dữ liệu được lưu trữ tại kho tiện ích của trình duyệt Chrome thông qua [chrome.storage](http://chrome.storage/). - Đây cũng là nơi mà mật khẩu của bạn được lưu trữ khi bạn chọn cài đặt lưu lại mật khẩu ở trình duyệt Chrome. '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_3', 'Những loại thông tin nào sẽ được lưu trữ? '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_4', 'Địa chỉ, tên gọi và Private key sẽ được lưu trữ tại chrome.storage. Private key sẽ được mã hoá và sử dụng mật khẩu mà bạn thiết lập trong lúc bạn đang thực hiện thêm Ví nhưng địa chỉ Ví và tên Ví thì không bị mã hoá. '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_5', 'Vì sao địa chỉ và tên gọi lại không cần thiết mã hoá? '), _defineProperty(_vi$data, 'HELP_SecCX_Desc_6', 'Nếu chúng tôi mã hoá chúng, thì bạn phải điền mật khẩu khi bạn muốn xem số dư hiện tại của tài khoản bạn và xem tên gọi của tài khoản đó. Nếu như bạn cảm thấy đáp ứng nhu cầu bạn đã nêu, Chúng tôi cung cấp thêm lựa chọn khác dành cho bạn đó là MyEtherWallet.com thay vì phải sử dụng Chrome Extension. '), _defineProperty(_vi$data, 'HELP_Sec_Title', 'Bảo Mật '), _defineProperty(_vi$data, 'HELP_Sec_Desc_1', 'Nếu câu hỏi đầu tiên mà bạn đặt ra đó là "Vì sao tôi phải tin vào những người tạo ra trang này?", thì đó là một câu hỏi tốt. Hi vọng rằng những thông tin sau đây sẽ làm giảm bớt sự lo ngại từ phía bạn. '), _defineProperty(_vi$data, 'HELP_Sec_Desc_2', 'Chúng tôi đã bất đầu đưa trang của chúng tôi ra thị trường vào tháng 8 năm 2015. Nếu bạn tìm kiếm trên nguồn ["myetherwallet" tại reddit](https://www.reddit.com/search?q=myetherwallet), bạn sẽ thấy được lượng người hiện tại đang sử dụng và sự thành công của trang myetherwallet. '), _defineProperty(_vi$data, 'HELP_Sec_Desc_3', 'Chúng tôi không dùng trang này nhằm mục đích sử dụng tiền của bạn hoặc đánh cắp các Private key của bạn. Và trên trang của chúng tôi hoàn toàn không xuất hiện mã độc. Trong thực tế tại trang "Tạo Ví" là hoàn toàn được thực hiện từ người sử dụng. Việc này có nghĩa tất cả các đoạn mã và mật khẩu sẽ được thực hiện hoàn toàn trên **Máy tính cá nhân của bạn** và nó hoàn toàn không lưu lại hoặc chuyển đi bất cứ một dữ liệu nào ra khỏi máy tính của bạn. '), _defineProperty(_vi$data, 'HELP_Sec_Desc_4', 'Hãy kiễm tra URL -- Trang của chúng tôi được cung cấp thông qua Github và bạn có thể kiễm tra lại toàn bộ mã nguồn ở đây: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) đến các tên miền: [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_vi$data, 'HELP_Sec_Desc_5', 'Đối với việc khởi tạo Ví, bạn có thể tải về [Mã nguồn](https://github.com/kvhnuke/etherwallet/releases/latest). Xem phần #5 phía trên. '), _defineProperty(_vi$data, 'HELP_Sec_Desc_6', 'Bạn hãy cho chạy thử đễ kiễm tra lại toàn bộ hoạt động của nó. Cách đơn giản nhất đễ bạn kiễm tra là nhấn chuột phải vào trang của chúng tôi vào chọn mục "inspect element". đi đến mục "Network". Khởi tạo thử một Ví. Lúc này bạn sẽ thấy được các hoạt động của hệ thống sẽ diễn ra như thế nào. Bạn sẽ thấy được dữ liệu sau: image/gif và image/png. Nó chính là mã QR đã được khởi tạo...trên máy tính của bạn. Và không có một dung lượng dữ liệu nào được chuyển ra khỏi máy của bạn. '), _defineProperty(_vi$data, 'HELP_Sec_Desc_8', 'Nếu bạn cảm thấy không an tâm khi sử dụng công cụ của chúng tôi, bạn có quyền không sử dụng nó. Chúng tôi tạo ra ứng dụng này nhằm giúp người sử dụng dễ dàng tạo Ví mới và lập giao dịch mà không cần dùng đến những câu lệnh trên Terminal hoặc tải về đầy đủ các node. Một lần nữa xin nhắc lại, bạn hoàn toàn có thể ngưng sử dụng và báo lại với chúng tôi nếu bạn có một mối quan ngại nào đó, chúng tôi sẽ chịu trách nhiệm chỉnh sửa hoặc giải đáp thắc mắc từ nơi bạn một cách sớm nhất có thể. Xin Chân Thành Cảm Ơn! '), _defineProperty(_vi$data, 'HELP_FAQ_Title', 'Lời giãi đáp cho những câu hỏi thường gặp: '), _defineProperty(_vi$data, 'HELP_Contact_Title', 'Những cách đễ liên lạc với chúng tôi:'), _vi$data);
module.exports = vi;
},{}],129:[function(require,module,exports){
// simplified Chinese, zh-CN, 简体中文
'use strict';
var _zhcn$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var zhcn = function zhcn() {};
zhcn.code = 'zhcn';
zhcn.data = (_zhcn$data = {
GEN_Help_0: 'Already have a wallet somewhere?',
GEN_Help_MetaMask: 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.',
GEN_Warning_1: '**Do not lose it!** It cannot be recovered if you lose it.',
GEN_Warning_2: '**Do not share it!** Your funds will be stolen if you use this file on a malicious/phishing site.',
GEN_Warning_3: '**Make a backup!** Secure it like the millions of dollars it may one day be worth.',
GAS_Price_1: 'Not So Fast',
GAS_Price_2: 'Fast',
GAS_Price_3: 'Fast AF',
CONTRACT_Helper_1: 'Please change the address to your own Multisig Contract Address.',
CONTRACT_Warning_1: 'You are about to **deploy a contract**.',
CONTRACT_Warning_2: 'It will be deployed on the following network:',
CONTRACT_Warning_3: 'You are about to **execute a function on contract**.',
SEND_Helper_Contract: 'In most cases you should leave this as 0.',
SEND_ViewOnly: 'You cannot send with only your address. You must use one of the other options to unlock your wallet in order to send.',
SEND_LoadTokens: 'Load Tokens',
SEND_CustomAddrMsg: 'A message regarding',
SWAP_Warning_1: 'Warning! You do not have enough funds to complete this swap.',
SWAP_Warning_2: 'Please add more funds to your wallet or access a different wallet.',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: '欢迎使用 MyEtherWallet.com',
ONBOARD_welcome_content__1: '为了你能安全地使用, 请先认真阅读本指南. 🙏',
ONBOARD_welcome_content__2: '如果你不重视本指引中的警示信息, 那你的资金可能存在被盗的风险.',
ONBOARD_welcome_content__3: '很抱歉, 我们也知道这样的弹窗提示很讨厌.',
ONBOARD_welcome_content__4: '什么是 MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet 是一款免费, 开源的钱包客户端.',
ONBOARD_welcome_content__6: '你可以通过MEW来与区块链网络进行直接交互, 同时完全保留对私钥和资金的完全控制权.',
ONBOARD_welcome_content__7: '**你** 并且 **只有你** 才能能对你的账户安全负责.',
ONBOARD_welcome_content__8: '如果你不幸访问钓鱼网站或者丢失了私钥, 我们没有任何途径可以恢复或者冻结你的账户.',
ONBOARD_bank_title: 'MyEtherWallet 不是银行',
ONBOARD_bank_content__1: '当你在银行或者交易所注册一个账户的时候, 这些机构会在它们内部的系统为你新建一个账户.',
ONBOARD_bank_content__2: '银行会密切跟踪你的个人信息, 记录你的账户密码, 余额, 交易记录并且完全掌控你的资金.',
ONBOARD_bank_content__3: '银行在为你提供服务的同时会收取账户管理及服务费用, 比如帮你追回被盗刷的信用卡消费.',
ONBOARD_bank_content__4: '银行允许你使用支票或者借记卡等预付款消费方式, 以及在线查看你的余额, 重置密码, 以及补办你遗失的借记卡卡片.',
ONBOARD_bank_content__5: '当你使用银行或交易所的账户来交易时, 交易的数额, 转出地址都有可能受到这些机构的限制, 并且还存在审核流程. 带来这些限制的同时还会收取你额外的手续费用.',
ONBOARD_welcome_title__alt: 'Introduction',
ONBOARD_interface_title: 'MyEtherWallet 只是操作接口',
ONBOARD_interface_content__1: '当你在MyEtherWallet创建账户的时候, 实际上只是生成了一对具备密码学意义的数字串: 你账户的私钥和公钥(地址).',
ONBOARD_interface_content__2: '生成这些密钥的整个过程都是发生在你本地电脑的浏览器内部.',
ONBOARD_interface_content__3: '我们绝不会转发, 接收或者保存你的私钥, 密码以及任何账户信息.',
ONBOARD_interface_content__4: '我们绝对不会收取任何手续费用.',
ONBOARD_interface_content__5: '简单来说, 你只是使用本 **操作接口** 来 **直接与区块链网络进行交互**.',
ONBOARD_interface_content__6: '如果你将 *公钥(地址)* 提供给别人, 那么对方就能给你发送ETH或者代币. 👍',
ONBOARD_interface_content__7: '如果你将 *私钥* 提供给别人, 那么对方就完全掌控了你的账户和资金. 👎',
ONBOARD_bank_title__alt: 'MEW 不是银行',
ONBOARD_blockchain_title__alt: '什么是区块链?',
ONBOARD_blockchain_skip: '我已经知道什么是区块链了...',
ONBOARD_blockchain_title: '等等, 什么是区块链?',
ONBOARD_blockchain_content__1: '区块链有点像是一个巨大的, 全球范围并且去中心化的记账簿.',
ONBOARD_blockchain_content__2: '它用来记录一个人给另一个人发送了多少货币, 以及跟踪所有账户的余额.',
ONBOARD_blockchain_content__3: '它是由全球成千上万拥有特殊计算机的人(我们也叫他们矿工)来进行记录和维护的.',
ONBOARD_blockchain_content__4: '区块链中的区块是由许多笔交易记录组成的, 这些交易从与跟MEW类似的操作接口发送出来, 比如MetaMask, Exodus, Mist, Geth, Parity等.',
ONBOARD_blockchain_content__5: '当你使用 MyEtherWallet.com 查看余额, 或者使用 [etherscan.io](https://etherscan.io)查看交易详细信息时, 这些显示的信息都是直接来自区块链网络, 而不是来自MEW的独立系统.',
ONBOARD_blockchain_content__6: '再次申明: **MyEtherWallet不是银行**.',
ONBOARD_interface_title__alt: 'MEW 只是操作接口',
ONBOARD_why_title__alt: '但是为啥呢?',
ONBOARD_why_title: '为什么我需要了解刚才这些信息?',
ONBOARD_why_content__1: '因为我们必须要让您知道我们 **绝对不会**...',
ONBOARD_why_content__2: '访问您的账户或者操作您的资金.',
ONBOARD_why_content__3: '获取或者修改您的私钥.',
ONBOARD_why_content__4: '获取或者修改您的密码.',
ONBOARD_why_content__5: '保留, 取消或者撤回你发起的交易.',
ONBOARD_why_content__6: '冻结账户.',
ONBOARD_why_content__7: '**你** 并且 **只有你** 才能对你的账户安全负责.',
ONBOARD_why_content__8: '请积极地关注你账户私钥和密码的安全, 你的私钥有时也会以助记词(mnemonic phrase), keystore文件, UTC文件, JSON文件, 钱包文件等形式存在.',
ONBOARD_why_content__9: '请记住如果你不慎丢失了你的私钥或者密码, 没有任何人可以恢复它们.',
ONBOARD_why_content__10: '如果你在钓鱼网站录入了你的私钥 ,那么它们会**盗取你所有的资金**.'
}, _defineProperty(_zhcn$data, 'ONBOARD_blockchain_title__alt', '什么是区块链?'), _defineProperty(_zhcn$data, 'ONBOARD_point_title__alt', '那我用MEW还有啥意义?'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_title', '如果MyEtherWallet都不能做前面说的那些事, 那我为啥还要用它?'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__1', '因为匿名才是去中心化和区块链的重点.'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__2', '你的资金交易不再依赖银行或者政府机构.'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__3', '你资金的安全也不再依赖交易所或者银行的安全系统.'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__4', '如果你认为上面的几点不重要, 那你可能需要重新思考下区块链以及加密货币是如何产生价值的. 😉'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__5', '如果你还是觉得用MEW太麻烦, 那你可以考虑用 [Coinbase](https://www.coinbase.com/) 或者 [Blockchain.info](https://blockchain.info/wallet/#/signup). 它们提供类似的使用用户名和密码来登录管理的账户系统.'), _defineProperty(_zhcn$data, 'ONBOARD_whymew_content__6', '如果你担心 MEW 还不够安全, [那就赶紧买个硬件钱包吧](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! 它们能保证你密钥的安全.'), _defineProperty(_zhcn$data, 'ONBOARD_why_title__alt', '但是为啥呢?'), _defineProperty(_zhcn$data, 'ONBOARD_secure_title', '如何保护你的隐私和资金安全'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_title', '如何防范钓鱼网站'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__1', '钓鱼网站的常用伎俩是向你发送一条包含网站链接的信息, 并将这个链接伪装成很像MyEtherWallet, EtherDelta, Paypal或者银行的网站.当用户访问这些钓鱼网站并不慎填写自己的账户信息后, 黑客就能窃取这些信息进而窃取你的资金.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__2', '可以安装 [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) 或者 [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) 或者 [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) 或者 [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) 这几个可以防范钓鱼网站的插件.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__3', '记得每次都要检查 URL 地址: `https://www.myetherwallet.com`.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__4', '正常情况下地址栏左侧会始终显示 `MYETHERWALLET LLC [US]` 字样的绿色字体.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__5', '不要相信或者点击那些在电子邮件, Slack, Reddit, Twitter等地方看到的网页链接.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__6', '养成手动输入地址打开网站的好习惯, 不要通过邮件或者其它途径里链接来打开网站.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_1_content__7', '[安装AdBlocker(广告拦截器)](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) 并且不要点击搜索引擎页面里的广告 (比如 百度).'), _defineProperty(_zhcn$data, 'ONBOARD_point_title__alt_2', '那我用MEW还有啥意义?'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_title', '如何防范网络欺诈'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_content__1', '总有人会设法骗走你的钱.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_content__2', '看上去很美好的事物, 事实却有可能相反.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_content__3', '在决定投资之前充分的做好调查研究, 多查询来自网站或讨论区的多方面信息, 不要轻信.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_content__4', '当遇到问题或者感觉不对劲的时候, 一定要多提问咨询.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_content__5', '不要被急功近利的思维占据了理智, 越是紧急的行情越是要保持冷静的问自己为什么, 因为这很有可能是人为制造的恐慌.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_title__alt', '远离钓鱼网站'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_title', '如何防范自己的资金遭受损失'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__1', '如果你丢失了你的私钥或者密码, 是没有任何方法可以找回来的, 千万不要丢掉它们.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__2', '将你的私钥或者密码做好备份, 最好不要将它们保存在电脑上, 手写或者打印到纸上保存.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__3', '将私钥或密码的备份单独保存到安全的离线环境, 如果它们跟你电脑放在一起的话那么一场大火或者洪水就能轻易的将它们一并摧毁.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__4', '千万不要将私钥存放到在线网盘, 带云同步的相册等在线环境中.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__5', '如果你真正重视你的数字货币, 那你就应该买一个硬件钱包, 你的资产值得用更专业的设备来保护.'), _defineProperty(_zhcn$data, 'ONBOARD_secure_3_content__6', '[点我查看更多安全技巧!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_zhcn$data, 'ONBOARD_secure_2_title__alt_2', '防范网络欺诈'), _defineProperty(_zhcn$data, 'ONBOARD_final_title__alt', '还有一步! 🤘'), _defineProperty(_zhcn$data, 'ONBOARD_final_title', '教程到此完毕!'), _defineProperty(_zhcn$data, 'ONBOARD_final_subtitle', '感谢你认真阅读教程, 你还可以查看更多:'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__1', '创建新钱包'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__2', '购买硬件钱包'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__3', '如何安装 MEW + MetaMask'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__4', '如何离线在本地使用 MEW'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__5', '如何配合 Ledger 硬件钱包使用'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__6', '如何配合 TREZOR 硬件钱包使用'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__7', '如何配合 MetaMask 使用'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__8', '了解更多或联系我们'), _defineProperty(_zhcn$data, 'ONBOARD_final_content__9', '立刻允许我开始操作账户吧.'), _defineProperty(_zhcn$data, 'ONBOARD_resume', '好像你上次还没有读完整个教程. 请仔细阅读每一张卡片上的提示噢 😉'), _defineProperty(_zhcn$data, 'HELP_2a_Title', '如何保存/备份我的钱包? '), _defineProperty(_zhcn$data, 'x_CancelReplaceTx', 'Cancel or Replace Transaction'), _defineProperty(_zhcn$data, 'x_CancelTx', 'Cancel Transaction'), _defineProperty(_zhcn$data, 'x_PasswordDesc', 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**'), _defineProperty(_zhcn$data, 'x_ReadMore', 'Read More'), _defineProperty(_zhcn$data, 'x_ReplaceTx', 'Replace Transaction'), _defineProperty(_zhcn$data, 'x_TransHash', 'Transaction Hash'), _defineProperty(_zhcn$data, 'x_TXFee', 'TX Fee'), _defineProperty(_zhcn$data, 'x_TxHash', 'TX Hash'), _defineProperty(_zhcn$data, 'NAV_CheckTxStatus', 'Check TX Status'), _defineProperty(_zhcn$data, 'NAV_TxStatus', 'TX Status'), _defineProperty(_zhcn$data, 'tx_Details', 'Transaction Details'), _defineProperty(_zhcn$data, 'tx_Summary', 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_zhcn$data, 'tx_notFound', 'Transaction Not Found'), _defineProperty(_zhcn$data, 'tx_notFound_1', 'This TX cannot be found in the TX Pool of the node you are connected to.'), _defineProperty(_zhcn$data, 'tx_notFound_2', 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. '), _defineProperty(_zhcn$data, 'tx_notFound_3', 'It could still be in the TX Pool of a different node, waiting to be mined.'), _defineProperty(_zhcn$data, 'tx_notFound_4', 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.'), _defineProperty(_zhcn$data, 'tx_foundInPending', 'Pending Transaction Found'), _defineProperty(_zhcn$data, 'tx_foundInPending_1', 'Your transaction was located in the TX Pool of the node you are connected to. '), _defineProperty(_zhcn$data, 'tx_foundInPending_2', 'It is currently pending (waiting to be mined). '), _defineProperty(_zhcn$data, 'tx_foundInPending_3', 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.'), _defineProperty(_zhcn$data, 'tx_FoundOnChain', 'Transaction Found'), _defineProperty(_zhcn$data, 'tx_FoundOnChain_1', 'Your transaction was successfully mined and is on the blockchain.'), _defineProperty(_zhcn$data, 'tx_FoundOnChain_2', '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.'), _defineProperty(_zhcn$data, 'tx_FoundOnChain_3', '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). Send them the *link* to your transaction and ask them, nicely, to look into your situation.'), _defineProperty(_zhcn$data, 'GEN_Help_1', 'Use your'), _defineProperty(_zhcn$data, 'GEN_Help_2', 'to access your account.'), _defineProperty(_zhcn$data, 'GEN_Help_3', 'Your device * is * your wallet.'), _defineProperty(_zhcn$data, 'GEN_Help_4', 'Guides & FAQ'), _defineProperty(_zhcn$data, 'GEN_Help_5', 'How to Create a Wallet'), _defineProperty(_zhcn$data, 'GEN_Help_6', 'Getting Started'), _defineProperty(_zhcn$data, 'GEN_Help_7', 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.'), _defineProperty(_zhcn$data, 'GEN_Help_8', 'Not Downloading a File? '), _defineProperty(_zhcn$data, 'GEN_Help_9', 'Try using Google Chrome '), _defineProperty(_zhcn$data, 'GEN_Help_10', 'Right click & save file as. Filename: '), _defineProperty(_zhcn$data, 'GEN_Help_11', 'Don\'t open this file on your computer '), _defineProperty(_zhcn$data, 'GEN_Help_12', 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) '), _defineProperty(_zhcn$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_zhcn$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_zhcn$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_zhcn$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_zhcn$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_zhcn$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_zhcn$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_zhcn$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_zhcn$data, 'GET_ConfButton', 'I understand. Continue.'), _defineProperty(_zhcn$data, 'GEN_Label_5', 'Save Your `Private Key`. '), _defineProperty(_zhcn$data, 'GEN_Unlock', 'Unlock your wallet to see your address'), _defineProperty(_zhcn$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `41 GWEI`.'), _defineProperty(_zhcn$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_zhcn$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_zhcn$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_zhcn$data, 'NAV_AddWallet', '添加钱包 '), _defineProperty(_zhcn$data, 'NAV_BulkGenerate', '批量生成 '), _defineProperty(_zhcn$data, 'NAV_Contact', '联系我们 '), _defineProperty(_zhcn$data, 'NAV_Contracts', '合同 '), _defineProperty(_zhcn$data, 'NAV_DeployContract', '部署合约 '), _defineProperty(_zhcn$data, 'NAV_ENS', 'ENS'), _defineProperty(_zhcn$data, 'NAV_GenerateWallet_alt', 'New Wallet '), _defineProperty(_zhcn$data, 'NAV_GenerateWallet', '生成钱包 '), _defineProperty(_zhcn$data, 'NAV_Help', '帮助 '), _defineProperty(_zhcn$data, 'NAV_InteractContract', 'Interact with Contract '), _defineProperty(_zhcn$data, 'NAV_Multisig', 'Multisig '), _defineProperty(_zhcn$data, 'NAV_MyWallets', '我的钱包 '), _defineProperty(_zhcn$data, 'NAV_Offline', '离线发送 '), _defineProperty(_zhcn$data, 'NAV_SendEther', '发送以太币 / 发送代币 '), _defineProperty(_zhcn$data, 'NAV_SendTokens', 'Send Tokens '), _defineProperty(_zhcn$data, 'NAV_SignMsg', 'Sign Message '), _defineProperty(_zhcn$data, 'NAV_Swap', 'Swap '), _defineProperty(_zhcn$data, 'NAV_ViewWallet', '查看钱包信息 '), _defineProperty(_zhcn$data, 'NAV_YourWallets', '你的钱包 '), _defineProperty(_zhcn$data, 'x_Access', 'Access '), _defineProperty(_zhcn$data, 'x_AddessDesc', 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. 你可以把地址理解为你的“账户”或者“公钥”。你将地址告诉别人,他们就可以向你发送以太币。那个图标有助于判别你的地址。 '), _defineProperty(_zhcn$data, 'x_Address', '你的地址 '), _defineProperty(_zhcn$data, 'x_Cancel', '拒绝 '), _defineProperty(_zhcn$data, 'x_CSV', 'CSV文件未加密 '), _defineProperty(_zhcn$data, 'x_Download', '下载 '), _defineProperty(_zhcn$data, 'x_Json', 'JSON文件未加密 '), _defineProperty(_zhcn$data, 'x_JsonDesc', '这是你的未加密JSON格式的私钥文件。 这意味着你发送交易时不需要密码也意味着拿到你的JSON文件的可以无需密码就可以控制你的钱包和以太币。 '), _defineProperty(_zhcn$data, 'x_Keystore', 'Keystore File (UTC / JSON · 推荐加密的) '), _defineProperty(_zhcn$data, 'x_Keystore2', 'Keystore File (UTC / JSON) '), _defineProperty(_zhcn$data, 'x_KeystoreDesc', '这个Keystore/JSON文件和Mist、Geth使用的钱包文件是一样的所以将来你可以非常容易地导入。 It is the recommended file to download and back up.推荐下载和备份这个文件。 '), _defineProperty(_zhcn$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_zhcn$data, 'x_Mnemonic', 'Mnemonic Phrase '), _defineProperty(_zhcn$data, 'x_ParityPhrase', 'Parity Phrase '), _defineProperty(_zhcn$data, 'x_Password', '密码 '), _defineProperty(_zhcn$data, 'x_Print', '打印纸钱包 '), _defineProperty(_zhcn$data, 'x_PrintDesc', '小技巧点击打印并保存为PDF格式即使你没有打印机。 '), _defineProperty(_zhcn$data, 'x_PrintShort', '打印 '), _defineProperty(_zhcn$data, 'x_PrivKey', '私钥(未加密) '), _defineProperty(_zhcn$data, 'x_PrivKey2', '私钥 '), _defineProperty(_zhcn$data, 'x_PrivKeyDesc', '这是未加密的文本格式私钥文件,这意味发送交易不需要密码。 如果某个人拿到了你的未加密的私钥,他们无需密码就能够控制你的钱包。 出于这个考虑,我们推荐你使用加密的私钥文件。 '), _defineProperty(_zhcn$data, 'x_Save', '保存 '), _defineProperty(_zhcn$data, 'x_TXT', 'TXT文件未加密 '), _defineProperty(_zhcn$data, 'x_Wallet', '钱包 '), _defineProperty(_zhcn$data, 'MEW_Warning_1', '使用或者创建新钱包之前,一定要检查下网址是否正确。小心钓鱼网址! '), _defineProperty(_zhcn$data, 'CX_Warning_1', '确保你备份了保存在这里的所有钱包。 许多事情包括卸载和重装扩展都将使你丢失Chrome扩展中的数据。这个扩展是一种使用钱包的简单方式但不是备份钱包的方式。 '), _defineProperty(_zhcn$data, 'MEW_Tagline', '开源JavaScript客户端以太币钱包 '), _defineProperty(_zhcn$data, 'CX_Tagline', '开源JavaScript客户端以太币钱包Chrome扩展 '), _defineProperty(_zhcn$data, 'FOOTER_1', '一个开源的生成以太坊钱包和发送交易的JavaScript客户端工具 '), _defineProperty(_zhcn$data, 'FOOTER_1b', '创建者 '), _defineProperty(_zhcn$data, 'FOOTER_2', '欢迎捐赠我们: '), _defineProperty(_zhcn$data, 'FOOTER_3', 'Client-side wallet generation by '), _defineProperty(_zhcn$data, 'FOOTER_4', '声明 '), _defineProperty(_zhcn$data, 'sidebar_AccountInfo', '账户信息: '), _defineProperty(_zhcn$data, 'sidebar_AccountAddr', '账户地址: '), _defineProperty(_zhcn$data, 'sidebar_AccountBal', '账户余额: '), _defineProperty(_zhcn$data, 'sidebar_TokenBal', '代币余额: '), _defineProperty(_zhcn$data, 'sidebar_Equiv', '价值: '), _defineProperty(_zhcn$data, 'sidebar_TransHistory', '交易历史: '), _defineProperty(_zhcn$data, 'sidebar_donation', 'MyEtherWallet是保护你的隐私和安全的免费、开源服务。 我们收到的捐赠越多,我们开发新特性、听取你的反馈的时间就越多。我们只是两个尝试改变世界的两个开发者。您能帮助我们吗? '), _defineProperty(_zhcn$data, 'sidebar_donate', '捐赠 '), _defineProperty(_zhcn$data, 'sidebar_thanks', '感谢你!!! '), _defineProperty(_zhcn$data, 'sidebar_DisplayOnTrezor', 'Display address on TREZOR'), _defineProperty(_zhcn$data, 'sidebar_DisplayOnLedger', 'Display address on Ledger'), _defineProperty(_zhcn$data, 'decrypt_Access', '你将怎样使用钱包? '), _defineProperty(_zhcn$data, 'decrypt_Title', '选择你的私钥文件格式: '), _defineProperty(_zhcn$data, 'decrypt_Select', '选择一个钱包: '), _defineProperty(_zhcn$data, 'ADD_Label_1', '你想执行什么操作? '), _defineProperty(_zhcn$data, 'ADD_Radio_1', '生成新钱包 '), _defineProperty(_zhcn$data, 'ADD_Radio_2', '选择你的钱包文件Keystore/JSON '), _defineProperty(_zhcn$data, 'ADD_Radio_2_alt', '选择你的钱包文件: '), _defineProperty(_zhcn$data, 'ADD_Radio_2_short', '选择钱包文件... '), _defineProperty(_zhcn$data, 'ADD_Radio_3', '粘贴/输入你的私钥 '), _defineProperty(_zhcn$data, 'ADD_Radio_4', '添加一个查看账户 '), _defineProperty(_zhcn$data, 'ADD_Radio_5', 'Paste Your Mnemonic '), _defineProperty(_zhcn$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_zhcn$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_zhcn$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_zhcn$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_zhcn$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_zhcn$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_zhcn$data, 'ADD_Label_2', '生成一个钱包昵称: '), _defineProperty(_zhcn$data, 'ADD_Label_3', '你的钱包被加密,请输入密码: '), _defineProperty(_zhcn$data, 'ADD_Label_4', '添加一个查看账户 '), _defineProperty(_zhcn$data, 'ADD_Warning_1', '你可以钱包标签页面添加任何要查看的账户,不需要上传私钥。这不意味着你可以使用钱包和发送以太币。 '), _defineProperty(_zhcn$data, 'ADD_Label_5', '输入地址: '), _defineProperty(_zhcn$data, 'ADD_Label_6', '解锁钱包 '), _defineProperty(_zhcn$data, 'ADD_Label_6_short', '解锁 '), _defineProperty(_zhcn$data, 'ADD_Label_7', '增加账户 '), _defineProperty(_zhcn$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_zhcn$data, 'GEN_desc', '如果你想生成多个钱包,你可以在这里进行: '), _defineProperty(_zhcn$data, 'GEN_Label_1', '输入一个强密码至少9位 '), _defineProperty(_zhcn$data, 'GEN_Placeholder_1', '不要忘记保存! '), _defineProperty(_zhcn$data, 'GEN_SuccessMsg', '成功!你的钱包已经生成。 '), _defineProperty(_zhcn$data, 'GEN_Label_2', '保存你的Keystore或者私钥。不要忘记你的密码。 '), _defineProperty(_zhcn$data, 'GEN_Label_3', '保存你的地址。 '), _defineProperty(_zhcn$data, 'GEN_Label_4', '打印你的纸钱包,或者存储二维码。(可选) '), _defineProperty(_zhcn$data, 'BULK_Label_1', '打算生成的钱包数量 '), _defineProperty(_zhcn$data, 'BULK_Label_2', '生成钱包 '), _defineProperty(_zhcn$data, 'BULK_SuccessMsg', '成功!你的钱包生成好了。 '), _defineProperty(_zhcn$data, 'SEND_addr', '发送至地址: '), _defineProperty(_zhcn$data, 'SEND_amount', '转账数额: '), _defineProperty(_zhcn$data, 'SEND_amount_short', '数额 '), _defineProperty(_zhcn$data, 'SEND_custom', 'Custom '), _defineProperty(_zhcn$data, 'SEND_gas', 'Gas '), _defineProperty(_zhcn$data, 'SEND_TransferTotal', '发送所有余额 '), _defineProperty(_zhcn$data, 'SEND_generate', '生成交易 '), _defineProperty(_zhcn$data, 'SEND_raw', '未生效交易 '), _defineProperty(_zhcn$data, 'SEND_signed', '签名交易 '), _defineProperty(_zhcn$data, 'SEND_trans', '发送交易 '), _defineProperty(_zhcn$data, 'SEND_custom', 'Add Custom Token '), _defineProperty(_zhcn$data, 'SENDModal_Title', '警告! '), _defineProperty(_zhcn$data, 'SENDModal_Content_1', '你将发送 '), _defineProperty(_zhcn$data, 'SENDModal_Content_2', '到地址 '), _defineProperty(_zhcn$data, 'SENDModal_Content_3', '你确定这样做吗? '), _defineProperty(_zhcn$data, 'SENDModal_Content_4', '注意如果你遇到错误你最有可能向你的账户添加以太币用以支付发送代币所需的gas。 Gas is paid in ether.Gas用以太币支付。 '), _defineProperty(_zhcn$data, 'SENDModal_No', '不,离开这里。 '), _defineProperty(_zhcn$data, 'SENDModal_Yes', '是的,我确定!发送交易。 '), _defineProperty(_zhcn$data, 'TOKEN_Addr', '地址 Token Contract '), _defineProperty(_zhcn$data, 'TOKEN_Symbol', '代币符号 '), _defineProperty(_zhcn$data, 'TOKEN_Dec', '小数点位数 '), _defineProperty(_zhcn$data, 'TOKEN_hide', 'Hide Tokens '), _defineProperty(_zhcn$data, 'TOKEN_show', 'Show All Tokens '), _defineProperty(_zhcn$data, 'TRANS_desc', '如果你想发送代币,请使用“发送代币”页面。 '), _defineProperty(_zhcn$data, 'TRANS_warning', '如果你使用“只发送ETH”或则“只发送ETC”功能那么你是通过合约发送交易。 一些服务(例如交易所充值)接收这些交易时会遇到问题。阅读更多内容。 '), _defineProperty(_zhcn$data, 'TRANS_advanced', '高级功能增加更多Gas或者数据 '), _defineProperty(_zhcn$data, 'TRANS_data', '数据: '), _defineProperty(_zhcn$data, 'TRANS_gas', 'Gas Limit '), _defineProperty(_zhcn$data, 'TRANS_sendInfo', '一笔标准交易需要21000gas花费0.000441以太币。我们将gas价格设为0.000000021以太币,略高于最低价格,以保证交易被快速打包。我们不收取交易费用。 '), _defineProperty(_zhcn$data, 'TRANSModal_Title', '“只发送ETH”和“只发送ETC”交易 '), _defineProperty(_zhcn$data, 'TRANSModal_Content_0', '注意不同的交易和不同的服务: '), _defineProperty(_zhcn$data, 'TRANSModal_Content_1', '**发送ETH标准交易** 这将生成一个默认交易直接从一个地址发送到另一个地址。它的默认gas是21000。 用这种方式发送ETH可能会在ETC链上重放。 '), _defineProperty(_zhcn$data, 'TRANSModal_Content_2', '**只发送ETH** 这是通过[Timon Rapp的重放保护合约VB推荐](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) 所以你只会在ETH链上发送交易。 '), _defineProperty(_zhcn$data, 'TRANSModal_Content_3', '**只发送ETC** 这是通过[Timon Rapp的重放保护合约VB推荐](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) 所以你只会在ETH链上发送交易。 '), _defineProperty(_zhcn$data, 'TRANSModal_Content_4', '**Coinbase & ShapeShift: ** 通过标准交易只发送ETH或者ETC。如果你通过“只发送ETH或者ETC”合约发送交易你需要联系他们的客服让他们手动增加你的余额或者返币给你。 [你也可以尝试Shapeshift的”分割“工具。](https://split.shapeshift.io/) '), _defineProperty(_zhcn$data, 'TRANSModal_Content_5', '**Kraken、Poloniex交易所**向这两个交易所地址发送没币有遇到问题。可以使用。 '), _defineProperty(_zhcn$data, 'TRANSModal_Yes', '我理解了。 '), _defineProperty(_zhcn$data, 'TRANSModal_No', '我更加糊涂了,请帮助我。 '), _defineProperty(_zhcn$data, 'OFFLINE_Title', '生成、发送离线交易 '), _defineProperty(_zhcn$data, 'OFFLINE_Desc', '生成离线交易需要3个步骤。步骤1和步骤3在连网的电脑上完成步骤2在离线电脑上完成。这确保了你的私钥不会接触到联网设备。 '), _defineProperty(_zhcn$data, 'OFFLLINE_Step1_Title', '步骤1生成信息联网电脑 '), _defineProperty(_zhcn$data, 'OFFLINE_Step1_Button', '生成信息 '), _defineProperty(_zhcn$data, 'OFFLINE_Step1_Label_1', '发自地址: '), _defineProperty(_zhcn$data, 'OFFLINE_Step1_Label_2', '注意:这是发自地址,不是发往地址。 Nonce是从起始账户生成的。如果使用一台隔离电脑它就是冷存储的账户地址。 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Title', '步骤2生成交易离线电脑 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_1', '发往地址: '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_2', '发送数额 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_3', 'Gas价格 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_3b', '在你的连网电脑的第1步骤中显示了。 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_4', 'Gas限制 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_4b', '21000是默认的gas限制。当你发送合约或者添加数据时gas限制可能会不同。没使用的gas将返回给你。 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_5b', '在你的连网电脑的第1步中显示了。 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_6', '数据 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_6b', '这是可选项。当你向合约发送交易时,往往需要用到数据。 '), _defineProperty(_zhcn$data, 'OFFLINE_Step2_Label_7', '输入/选择你的私钥文件/JSON '), _defineProperty(_zhcn$data, 'OFFLINE_Step3_Title', '步骤3发送/公开交易(连网电脑) '), _defineProperty(_zhcn$data, 'OFFLINE_Step3_Label_1', '将步骤2的签名交易粘贴到这里点击“发送交易”按钮。 '), _defineProperty(_zhcn$data, 'DEP_generate', '生成字节码 '), _defineProperty(_zhcn$data, 'DEP_generated', '生成字节码 '), _defineProperty(_zhcn$data, 'DEP_signtx', '签名交易 '), _defineProperty(_zhcn$data, 'DEP_interface', '生成界面 '), _defineProperty(_zhcn$data, 'MYWAL_Nick', '钱包昵称 '), _defineProperty(_zhcn$data, 'MYWAL_Address', '钱包地址 '), _defineProperty(_zhcn$data, 'MYWAL_Bal', '余额 '), _defineProperty(_zhcn$data, 'MYWAL_Edit', '编辑 '), _defineProperty(_zhcn$data, 'MYWAL_View', '查看 '), _defineProperty(_zhcn$data, 'MYWAL_Remove', '移除 '), _defineProperty(_zhcn$data, 'MYWAL_RemoveWal', '移除钱包: '), _defineProperty(_zhcn$data, 'MYWAL_WatchOnly', '你的只可查看账户 '), _defineProperty(_zhcn$data, 'MYWAL_Viewing', '查看钱包: '), _defineProperty(_zhcn$data, 'MYWAL_Hide', '隐藏钱包信息 '), _defineProperty(_zhcn$data, 'MYWAL_Edit_2', '编辑钱包: '), _defineProperty(_zhcn$data, 'MYWAL_Name', '钱包名字 '), _defineProperty(_zhcn$data, 'MYWAL_Content_1', '警告!你将移除你的钱包: '), _defineProperty(_zhcn$data, 'MYWAL_Content_2', '确保在移除以前你已经保存了私钥和Keystore文件并记住了密码。 '), _defineProperty(_zhcn$data, 'MYWAL_Content_3', '如果你想将来在MyEtherWallet插件中使用该钱包你需要手动添加私钥/JSON文件和密码。 '), _defineProperty(_zhcn$data, 'VIEWWALLET_Subtitle', '这允许你下载不同格式的私钥和重新打印你的纸钱包。为了将[你的账户导入到Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/),你可能需要这个操作。如果你想查看你的余额,我们推荐使用区块浏览器,例如[etherscan.io](https://etherscan.io/)。 '), _defineProperty(_zhcn$data, 'VIEWWALLET_Subtitle_Short', '这允许你下载不同格式的私钥和重新打印你的纸钱包。 '), _defineProperty(_zhcn$data, 'VIEWWALLET_SuccessMsg', '成功!这是你的钱包细节! '), _defineProperty(_zhcn$data, 'VIEWWALLET_ShowPrivKey', '(show)'), _defineProperty(_zhcn$data, 'VIEWWALLET_HidePrivKey', '(hide)'), _defineProperty(_zhcn$data, 'CX_error_1', '你没有已保存的钱包。点击["添加钱包"](/cx-wallet.html#add-wallet),添加一个钱包。 '), _defineProperty(_zhcn$data, 'CX_quicksend', '快速发送 '), _defineProperty(_zhcn$data, 'NODE_Title', 'Set Up Your Custom Node'), _defineProperty(_zhcn$data, 'NODE_Subtitle', 'To connect to a local node...'), _defineProperty(_zhcn$data, 'NODE_Warning', 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)'), _defineProperty(_zhcn$data, 'NODE_Name', 'Node Name'), _defineProperty(_zhcn$data, 'NODE_Port', 'Node Port'), _defineProperty(_zhcn$data, 'NODE_CTA', 'Save & Use Custom Node'), _defineProperty(_zhcn$data, 'CONTRACT_Title', 'Contract Address '), _defineProperty(_zhcn$data, 'CONTRACT_Title_2', 'Select Existing Contract '), _defineProperty(_zhcn$data, 'CONTRACT_Json', 'ABI / JSON Interface '), _defineProperty(_zhcn$data, 'CONTRACT_Interact_Title', 'Read / Write Contract '), _defineProperty(_zhcn$data, 'CONTRACT_Interact_CTA', 'Select a function '), _defineProperty(_zhcn$data, 'CONTRACT_ByteCode', 'Byte Code '), _defineProperty(_zhcn$data, 'CONTRACT_Read', 'READ '), _defineProperty(_zhcn$data, 'CONTRACT_Write', 'WRITE '), _defineProperty(_zhcn$data, 'SWAP_rates', "Current Rates "), _defineProperty(_zhcn$data, 'SWAP_init_1', "I want to swap my "), _defineProperty(_zhcn$data, 'SWAP_init_2', " for "), _defineProperty(_zhcn$data, 'SWAP_init_CTA', "Let's do this! "), _defineProperty(_zhcn$data, 'SWAP_information', "Your Information "), _defineProperty(_zhcn$data, 'SWAP_send_amt', "Amount to send "), _defineProperty(_zhcn$data, 'SWAP_rec_amt', "Amount to receive "), _defineProperty(_zhcn$data, 'SWAP_your_rate', "Your rate "), _defineProperty(_zhcn$data, 'SWAP_rec_add', "Your Receiving Address "), _defineProperty(_zhcn$data, 'SWAP_start_CTA', "Start Swap "), _defineProperty(_zhcn$data, 'SWAP_ref_num', "Your reference number "), _defineProperty(_zhcn$data, 'SWAP_time', "Time remaining to send "), _defineProperty(_zhcn$data, 'SWAP_elapsed', "Time elapsed since sent "), _defineProperty(_zhcn$data, 'SWAP_progress_1', "Order Initiated "), _defineProperty(_zhcn$data, 'SWAP_progress_2', "Waiting for your "), _defineProperty(_zhcn$data, 'SWAP_progress_3', "Received! "), _defineProperty(_zhcn$data, 'SWAP_progress_4', "Sending your {{orderResult.output.currency}} "), _defineProperty(_zhcn$data, 'SWAP_progress_5', "Order Complete "), _defineProperty(_zhcn$data, 'SWAP_order_CTA', "Please send "), _defineProperty(_zhcn$data, 'SWAP_unlock', "Unlock your wallet to send ETH or Tokens directly from this page. "), _defineProperty(_zhcn$data, 'MSG_message', 'Message '), _defineProperty(_zhcn$data, 'MSG_date', 'Date '), _defineProperty(_zhcn$data, 'MSG_signature', 'Signature '), _defineProperty(_zhcn$data, 'MSG_verify', 'Verify Message '), _defineProperty(_zhcn$data, 'MSG_info1', 'Include the current date so the signature cannot be reused on a different date. '), _defineProperty(_zhcn$data, 'MSG_info2', 'Include your nickname and where you use the nickname so someone else cannot use it. '), _defineProperty(_zhcn$data, 'MSG_info3', 'Include a specific reason for the message so it cannot be reused for a different purpose. '), _defineProperty(_zhcn$data, 'MNEM_1', 'Please select the address you would like to interact with. '), _defineProperty(_zhcn$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_zhcn$data, 'MNEM_more', 'More Addresses '), _defineProperty(_zhcn$data, 'MNEM_prev', 'Previous Addresses '), _defineProperty(_zhcn$data, 'x_Ledger', 'Ledger Wallet '), _defineProperty(_zhcn$data, 'ADD_Ledger_1', 'Connect your Ledger Wallet '), _defineProperty(_zhcn$data, 'ADD_Ledger_2', 'Open the Ethereum application (or a contract application) '), _defineProperty(_zhcn$data, 'ADD_Ledger_2_Exp', 'Open the Expanse application (or a contract application) '), _defineProperty(_zhcn$data, 'ADD_Ledger_2_Ubq', 'Open the Ubiq application (or a contract application) '), _defineProperty(_zhcn$data, 'ADD_Ledger_3', 'Verify that Browser Support is enabled in Settings '), _defineProperty(_zhcn$data, 'ADD_Ledger_4', 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) '), _defineProperty(_zhcn$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_zhcn$data, 'ADD_Ledger_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_zhcn$data, 'ADD_Ledger_scan', 'Connect to Ledger Wallet '), _defineProperty(_zhcn$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_zhcn$data, 'x_Trezor', 'TREZOR '), _defineProperty(_zhcn$data, 'ADD_Trezor_scan', 'Connect to TREZOR '), _defineProperty(_zhcn$data, 'ADD_Trezor_select', 'This is a TREZOR seed '), _defineProperty(_zhcn$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_zhcn$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_zhcn$data, 'ADD_DigitalBitbox_0b', 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) '), _defineProperty(_zhcn$data, 'ADD_DigitalBitbox_scan', 'Connect your Digital Bitbox '), _defineProperty(_zhcn$data, 'ERROR_0', '请输入有效数额。 '), _defineProperty(_zhcn$data, 'ERROR_1', '你的密码至少需要设置为9位。请确保密码足够强。 '), _defineProperty(_zhcn$data, 'ERROR_2', '抱歉!我们不能识别这种类型的钱包文件。 '), _defineProperty(_zhcn$data, 'ERROR_3', '这不是一个有效的钱包文件。 '), _defineProperty(_zhcn$data, 'ERROR_4', 'This unit doesn\'t exists, please use the one of the following units 这个单位不存在,请用下面给出的单位 '), _defineProperty(_zhcn$data, 'ERROR_5', '无效地址。 '), _defineProperty(_zhcn$data, 'ERROR_6', '无效密码。 '), _defineProperty(_zhcn$data, 'ERROR_7', '无效数额。(Must be integer. Try 0-18.) '), _defineProperty(_zhcn$data, 'ERROR_8', '无效gas上限。(Must be integer. Try 21000-4000000.) '), _defineProperty(_zhcn$data, 'ERROR_9', '无效数据值。(Must be hex.) '), _defineProperty(_zhcn$data, 'ERROR_10', '无效gas数额。(Must be integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_zhcn$data, 'ERROR_11', '无效nonce。(Must be integer.)'), _defineProperty(_zhcn$data, 'ERROR_12', '无效签名交易。 '), _defineProperty(_zhcn$data, 'ERROR_13', '已经有一个钱包使用该昵称。 '), _defineProperty(_zhcn$data, 'ERROR_14', '找不到钱包。 '), _defineProperty(_zhcn$data, 'ERROR_15', '看起来这个提议不存在或者读取这个提议时出现错误。 '), _defineProperty(_zhcn$data, 'ERROR_16', '这个地址钱包已经存在于存储中。请查看你的钱包页面。 '), _defineProperty(_zhcn$data, 'ERROR_17', '你的账户需要至少0.01以太币已支付gas费用。请添加一些以太币再次尝试。 '), _defineProperty(_zhcn$data, 'ERROR_18', '所有的gas将用于这笔交易。 这意味着你已经对这个提议进行投票或者辩论期已经结束。 '), _defineProperty(_zhcn$data, 'ERROR_19', '无效符号 '), _defineProperty(_zhcn$data, 'ERROR_20', 'Not a valid ERC-20 token'), _defineProperty(_zhcn$data, 'ERROR_21', 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.'), _defineProperty(_zhcn$data, 'ERROR_22', 'Please enter a valid node name'), _defineProperty(_zhcn$data, 'ERROR_23', 'Please enter a valid URL. If you are on https, your URL must be https'), _defineProperty(_zhcn$data, 'ERROR_24', 'Please enter a valid port. '), _defineProperty(_zhcn$data, 'ERROR_25', 'Please enter a valid chain ID. '), _defineProperty(_zhcn$data, 'ERROR_26', 'Please enter a valid ABI. '), _defineProperty(_zhcn$data, 'ERROR_27', 'Minimum amount: 0.01. Max amount: '), _defineProperty(_zhcn$data, 'ERROR_28', '将来使用钱包时你需要Keystore文件或者私钥。 请做好保存和备份。 如果你没有保存,没有办法恢复钱包。 请阅读[帮助页面](https://www.myetherwallet.com/#help),获得更多信息。 '), _defineProperty(_zhcn$data, 'ERROR_29', 'Please enter a valid user and password. '), _defineProperty(_zhcn$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_zhcn$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_zhcn$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_zhcn$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_zhcn$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_zhcn$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_zhcn$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_zhcn$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_zhcn$data, 'SUCCESS_1', '有效地址 '), _defineProperty(_zhcn$data, 'SUCCESS_2', '钱包解密成功 '), _defineProperty(_zhcn$data, 'SUCCESS_3', 'Your TX has been broadcast to the network. This does not mean it has been mined & sent. During times of extreme volume, it may take 3+ hours to send. 1) Check your TX below. 2) If it is pending for hours or disappears, use the Check TX Status Page to replace. 3) Use [ETH Gas Station](https://ethgasstation.info/) to see what gas price is optimal. 4) Save your TX Hash in case you need it later: '), _defineProperty(_zhcn$data, 'SUCCESS_4', '成功添加你的钱包: '), _defineProperty(_zhcn$data, 'SUCCESS_5', '选择的文件: '), _defineProperty(_zhcn$data, 'SUCCESS_6', 'You are successfully connected '), _defineProperty(_zhcn$data, 'SUCCESS_7', 'Message Signature Verified'), _defineProperty(_zhcn$data, 'WARN_Send_Link', 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. '), _defineProperty(_zhcn$data, 'GETH_InvalidSender', '无效发送者 '), _defineProperty(_zhcn$data, 'GETH_Nonce', 'Nonce太低 '), _defineProperty(_zhcn$data, 'GETH_Cheap', 'Gas价格太低不被接受 '), _defineProperty(_zhcn$data, 'GETH_Balance', '余额不足 '), _defineProperty(_zhcn$data, 'GETH_NonExistentAccount', '账户不存在或者账户余额太低 '), _defineProperty(_zhcn$data, 'GETH_InsufficientFunds', '余额不足,余额低于 gas * price + 发送数额 '), _defineProperty(_zhcn$data, 'GETH_IntrinsicGas', '固有gas太低 '), _defineProperty(_zhcn$data, 'GETH_GasLimit', '超过区块gas上限 '), _defineProperty(_zhcn$data, 'GETH_NegativeValue', '负值 '), _defineProperty(_zhcn$data, 'PARITY_AlreadyImported', "Transaction with the same hash was already imported."), _defineProperty(_zhcn$data, 'PARITY_Old', "Transaction nonce is too low. Try incrementing the nonce."), _defineProperty(_zhcn$data, 'PARITY_TooCheapToReplace', "Transaction fee is too low. There is another transaction with same nonce in the queue. Try increasing the fee or incrementing the nonce."), _defineProperty(_zhcn$data, 'PARITY_LimitReached', "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee."), _defineProperty(_zhcn$data, 'PARITY_InsufficientGasPrice', "Transaction fee is too low. It does not satisfy your node's minimal fee (minimal: {}, got: {}). Try increasing the fee."), _defineProperty(_zhcn$data, 'PARITY_InsufficientBalance', "Insufficient funds. Account you try to send transaction from does not have enough funds. Required {} wei and got: {} wei."), _defineProperty(_zhcn$data, 'PARITY_GasLimitExceeded', "Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas."), _defineProperty(_zhcn$data, 'PARITY_InvalidGasLimit', "Supplied gas is beyond limit."), _defineProperty(_zhcn$data, 'translate_version', '0.3 '), _defineProperty(_zhcn$data, 'Translator_Desc', '感谢中文译者: '), _defineProperty(_zhcn$data, 'TranslatorName_1', '[ Shaoping@ethfans.org (少平)]((https://www.myetherwallet.com/?gaslimit=21000&to=0x4dF5698B1B0195FC44Fe1D2d6037CE33F215c740&value=1.0#send-transaction)) '), _defineProperty(_zhcn$data, 'TranslatorAddr_1', '0x4dF5698B1B0195FC44Fe1D2d6037CE33F215c740 '), _defineProperty(_zhcn$data, 'TranslatorName_2', '[ Wenham@coinwallet.shop (文翰) ]((https://www.myetherwallet.com/?gaslimit=21000&to=0x0D2dC3fD9463a7CeBE5f1b946c2D7cF5c3e82127&value=0.1#send-transaction))'), _defineProperty(_zhcn$data, 'TranslatorAddr_2', '0x0D2dC3fD9463a7CeBE5f1b946c2D7cF5c3e82127'), _defineProperty(_zhcn$data, 'TranslatorName_3', ''), _defineProperty(_zhcn$data, 'TranslatorAddr_3', ''), _defineProperty(_zhcn$data, 'TranslatorName_4', ''), _defineProperty(_zhcn$data, 'TranslatorAddr_4', ''), _defineProperty(_zhcn$data, 'TranslatorName_5', ''), _defineProperty(_zhcn$data, 'TranslatorAddr_5', ''), _defineProperty(_zhcn$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_zhcn$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_zhcn$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_zhcn$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_zhcn$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_zhcn$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_zhcn$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_zhcn$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_zhcn$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_zhcn$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_zhcn$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_zhcn$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_zhcn$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_zhcn$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_zhcn$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_zhcn$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_zhcn$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_zhcn$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_zhcn$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_zhcn$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_zhcn$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_zhcn$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_zhcn$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_zhcn$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.01 ether to your new wallet, access that wallet, send that 0.01 ether to another address, and ensure everything works smoothly. '), _defineProperty(_zhcn$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_zhcn$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_2', 'Navigate to the "发送以太币 / 发送代币" page. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_zhcn$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_zhcn$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_zhcn$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "发送以太币 / 发送代币" page. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_2', 'QuickSend: '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_zhcn$data, 'HELP_4CX_Desc_12', 'Using "发送以太币 / 发送代币" Page '), _defineProperty(_zhcn$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_zhcn$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_zhcn$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_zhcn$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_zhcn$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_zhcn$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_zhcn$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_zhcn$data, 'HELP_7_Title', '7) How do I send Tokens & add custom tokens? '), _defineProperty(_zhcn$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_1', 'Navigate to the "发送以太币 / 发送代币" page. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_6', 'If you do not see the token listed: '), _defineProperty(_zhcn$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_zhcn$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_zhcn$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_zhcn$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_zhcn$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_zhcn$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_zhcn$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_zhcn$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_zhcn$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_zhcn$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_zhcn$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_zhcn$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_zhcn$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_zhcn$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_zhcn$data, 'HELP_9_Title', '9) Is the "发送以太币 / 发送代币" page offline? '), _defineProperty(_zhcn$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_zhcn$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_zhcn$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_zhcn$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_zhcn$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_zhcn$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_zhcn$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_zhcn$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_zhcn$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_zhcn$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_zhcn$data, 'HELP_12_Desc_15', 'If you are on a Mac: '), _defineProperty(_zhcn$data, 'HELP_12_Desc_15b', 'If you are on a PC: '), _defineProperty(_zhcn$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_zhcn$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_zhcn$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_zhcn$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_zhcn$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_zhcn$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_zhcn$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_zhcn$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_zhcn$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_zhcn$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_zhcn$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_zhcn$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_zhcn$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_zhcn$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_zhcn$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_zhcn$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_zhcn$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_zhcn$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_zhcn$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_zhcn$data, 'HELP_17_Desc_1', 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_zhcn$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_zhcn$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_zhcn$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_zhcn$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_zhcn$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_zhcn$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_zhcn$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_zhcn$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_zhcn$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_zhcn$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_zhcn$data, 'HELP_Sec_Title', 'Security安全 '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_zhcn$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_zhcn$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions 常见问题的更多有用回答 '), _defineProperty(_zhcn$data, 'HELP_Contact_Title', 'Ways to Get in Touch 联系方式'), _zhcn$data);
module.exports = zhcn;
},{}],130:[function(require,module,exports){
// Traditional Chinese 繁體中文 - zh-tw.js
'use strict';
var _zhtw$data;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var zhtw = function zhtw() {};
zhtw.code = 'zhtw';
zhtw.data = (_zhtw$data = {
GEN_Help_0: '已經有錢包了?',
GEN_Help_MetaMask: '簡單! 私鑰存在MetaMask而不是釣魚網站 今天就試試看。',
GEN_Warning_1: '**不要弄丟它!** 如果遺失了將無法回復。',
GEN_Warning_2: '**不要分享它!** 如果你將它交給惡意或釣魚網站,你的資產將被偷走。',
GEN_Warning_3: '**備份它!** 保管好它,把它想成你的百萬資產。',
GAS_Price_1: '不用太快',
GAS_Price_2: '快',
GAS_Price_3: '非常快',
CONTRACT_Helper_1: '請將地址更換成你自己的Multisig合約地址。',
CONTRACT_Warning_1: '你將要**部署合約**.',
CONTRACT_Warning_2: '它將被部署於此網路:',
CONTRACT_Warning_3: '你將要**執行一個合約上的函數**.',
SEND_Helper_Contract: '大部分的情況下此欄位應為0。',
SEND_ViewOnly: '你不能只提供地址。 你必須要下列其中一個方法解鎖你的錢包。',
SEND_LoadTokens: '載入代幣',
SEND_CustomAddrMsg: '訊息關於',
SWAP_Warning_1: '警告! 你沒有足夠的資產來進行swap。',
SWAP_Warning_2: '請提供更多資產或使用其他錢包。',
X_Advanced: 'Advanced Users Only.',
X_HelpfulLinks: 'Helpful Links & FAQs',
X_HelpfulLinks_1: 'How to Access your Wallet',
X_HelpfulLinks_2: 'I lost my private key',
X_HelpfulLinks_3: 'My private key opens a different address',
X_HelpfulLinks_4: 'Migrating to/from MyEtherWallet',
X_Network: 'Network', // aka "node" or "chain" - used in the dropdown in header
X_Network_Custom: 'Add Custom Network / Node',
DOMAIN_Buy: 'Buy the domain',
DOMAIN_BuyItNow: 'Price to buy the domain immediately:',
DOMAIN_bid: 'Bid for the domain',
DOMAIN_bid_0: 'You are currently winning this auction with the highest bid. You can bid higher if you want, but it will delay the close of the auction for 24 hours.',
DOMAIN_bid_1: 'Bid at least',
DOMAIN_bid_2: 'on the domain.',
DOMAIN_bid_3: 'You will win the domain if no higher bids are placed within the next 24 hours.',
DOMAIN_bid_4: 'Note that the domain has a locked value of',
DOMAIN_bid_5: 'As part of the sale you will receive the deed with this value but cannot claim it unless you release the name.',
DOMAIN_Finish_1: 'Not related to that auction',
DOMAIN_Finish_2: 'This address is neither the winner nor the seller of the auction.',
DOMAIN_Finish_3: 'Finish the auction',
DOMAIN_Finish_4: 'Finish the auction to allocate the domain to the winner and the funds to the seller.',
DOMAIN_Finish_5: 'Click your TX hash to see if you successfully transferred the domain to DomainSale.',
DOMAIN_offer_4: 'Offer For Sale:',
DOMAIN_offer_5: 'Set either of both of the prices below to offer your domain for sale. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_7: 'Alter Your Offer for:',
DOMAIN_offer_8: 'Change either of both of the prices below to alter your domain sale offer. Remember that any funds you have locked in the domain\'s deed will go to the buyer and 10% of the funds when sold goes to referrers.',
DOMAIN_offer_9: 'Buy price',
DOMAIN_offer_10: 'This is the price at which someone can buy the domain immediately. 0 means that the domain cannot be purchased immediately.',
DOMAIN_offer_11: 'This is the price at which someone can start an auction for the domain. 0 means that the domain will not be available for auction.',
DOMAIN_offer_12: 'Offer your domain',
DOMAIN_offer_13: 'Alter your sale',
DOMAIN_offer_14: 'Cancel your sale',
DOMAIN_offer_15: 'You can cancel your domain sale, which will return the domain to you with no charge. This is only available before any bids have been received for the domain.',
ENS_WrongAddress_1: 'The wallet you unlocked does not own the name ',
ENS_WrongAddress_2: 'Please unlock the wallet with address ',
ENS_Finalize: 'Finalize',
ENS_Finalize_content: 'Finalizing this name assigns the ENS name to the winning bidder. The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH. Any non-winners will also be refunded.',
ENS_Finalize_content_1: 'You are about to finalize the auction & claim the name:',
ENS_Helper_1: 'What is the process like?',
ENS_Helper_2: '1) Preparation',
ENS_Helper_3: 'Decide which account you wish to own the name & ensure you have multiple backups of that account.',
ENS_Helper_4: 'Decide the maximum amount of ETH you are willing to pay for the name (your <u>Bid Amount</u>). Ensure that account has enough to cover your bid + 0.01 ETH for gas.',
ENS_Helper_5: '2) Start an Auction / Place a Bid',
ENS_Helper_6: 'Bidding period lasts 3 days (72 hours).',
ENS_Helper_7: 'You will enter the <u>name</u>, <u>Actual Bid Amount</u>, <u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>.',
ENS_Helper_8: 'This places your bid, but this information is kept secret until you reveal it.',
ENS_Helper_9: '3) Reveal your Bid',
ENS_Helper_10: '**If you do not reveal your bid, you will not be refunded.**',
ENS_Helper_11: 'Reveal Period lasts 2 days (48 hours).',
ENS_Helper_12: 'You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.',
ENS_Helper_13: 'In the event that two parties bid exactly the same amount, the first bid revealed will win.',
ENS_Helper_14: '4) Finalize the Auction',
ENS_Helper_15: 'Once the auction has ended (after 5 days / 120 hours), the winner needs to finalize the auction in order to claim their new name.',
ENS_Helper_16: 'The winner will be refunded the difference between their bid and the next-highest bid. If you are the only bidder, you will refunded all but 0.01 ETH.',
ENS_Helper_17: 'More Information',
ENS_Helper_18: 'The auction for this registrar is a blind auction, and is described in',
ENS_Helper_19: 'Basically, no one can see *anything* during the auction.',
ENS_Helper_20: 'ENS: Read the Docs',
ENS_Helper_21: 'Announcing the Ethereum Name Service Relaunch Date!',
ENS_Helper_22: 'Knowledge Base: ENS',
ENS_Helper_23: 'Debugging a [BAD INSTRUCTION] Reveal',
ENS_Helper_24: 'Please try the above before relying on support for reveal issues as we are severely backlogged on support tickets. We\'re so sorry. :(',
EOS_01: '**Generate EOS Key-pair**',
EOS_02: '**Register / Map your EOS Key**',
EOS_03: 'Select `register`',
EOS_04: 'Enter your **EOS Public Key** <--- CAREFUL! EOS PUBLIC KEY!',
EOS_05: 'Fund EOS Contract on Send Page',
EOS_06: 'Go to Send Ether & Tokens Page',
EOS_07: 'Unlock same wallet you are unlocking here.',
EOS_08: 'Send Amount you want to Contribute to `0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf`',
EOS_09: 'Claim EOS Tokens',
EOS_10: 'Select `claimAll`.',
/* Onboarding */
ONBOARD_welcome_title: '歡迎來到 MyEtherWallet.com',
ONBOARD_welcome_content__1: '請花點時間來了解如何保護自己的資產。 🙏',
ONBOARD_welcome_content__2: '你的資產將被偷走,如果你不謹記這些警告。',
ONBOARD_welcome_content__3: '我們知道一直點開這些頁面很麻煩。我們向你道歉。',
ONBOARD_welcome_content__4: '什麼是MEW? ',
ONBOARD_welcome_content__5: 'MyEtherWallet 是一個免費、開源、運行於用戶端的介面。',
ONBOARD_welcome_content__6: '我們允許你直接和區塊鏈互動,同時讓你完全掌握自己私鑰和資產。',
ONBOARD_welcome_content__7: '**你** 而且 **只有你** 得負責保護你的資產安全。',
ONBOARD_welcome_content__8: '如果你造訪了釣魚網站或遺失了你的私鑰,我們將無法復原或凍結你的資產。',
ONBOARD_bank_title: 'MyEtherWallet 不是一間銀行',
ONBOARD_bank_content__1: '當你在銀行或交易所開了一個帳戶,他們會在他們的系統上建立你的帳戶。',
ONBOARD_bank_content__2: '銀行會保管你的個人資料、帳戶密碼、帳戶餘額、交易明細和你的資產。',
ONBOARD_bank_content__3: '銀行會向你收取費用來管理你的帳戶並提供服務,如:當你的信用卡遺失時,退回費用給你。',
ONBOARD_bank_content__4: '銀行允許你開立支票或使用你的金融卡來傳送金錢、在線上確認你的帳戶餘額、重設你的密碼,並在你遺失金融卡時補發給你。',
ONBOARD_bank_content__5: '你在*銀行或交易所*開立帳戶,他們決定你可以轉帳的金額大小、你得在哪裡轉帳,並在異常轉帳發生時凍結帳戶多久。每一項服務都向你收取費用。',
ONBOARD_welcome_title__alt: '介紹',
ONBOARD_interface_title: 'MyEtherWallet 是一個介面',
ONBOARD_interface_content__1: '當你在 MyEtherWallet 建立一個帳戶,你是在產生一串密碼數列:你的私鑰和你的公鑰 (地址)。',
ONBOARD_interface_content__2: '整個過程發生在你的電腦上、你的瀏覽器裡。',
ONBOARD_interface_content__3: '我們永遠不會傳出、接收或儲存你的私鑰、密碼或其他帳戶資料。',
ONBOARD_interface_content__4: '我們不收取交易費用。',
ONBOARD_interface_content__5: '你只是在用我們的 **介面** 直接和區塊鏈互動。',
ONBOARD_interface_content__6: '如果你把你的 *公鑰 (地址)* 給其他人, 他們可以傳送乙太幣或代幣給你。 👍',
ONBOARD_interface_content__7: '如過你把你的 *私鑰* 給其他人, 他們將完全控制你的帳戶。 👎',
ONBOARD_bank_title__alt: 'MEW isn\'t a Bank',
ONBOARD_blockchain_title__alt: 'WTF is a Blockchain?',
ONBOARD_blockchain_skip: 'I already know what a blockchain is...',
ONBOARD_blockchain_title: 'Wait, WTF is a Blockchain?',
ONBOARD_blockchain_content__1: 'The blockchain is like a huge, global, decentralized spreadsheet.',
ONBOARD_blockchain_content__2: 'It keeps track of who sent how many coins to whom, and what the balance of every account is.',
ONBOARD_blockchain_content__3: 'It is stored and maintained by thousands of people (miners) across the globe who have special computers.',
ONBOARD_blockchain_content__4: 'The blocks in the blockchain are made up of all the individual transactions sent from MyEtherWallet, MetaMask, Exodus, Mist, Geth, Parity, and everywhere else.',
ONBOARD_blockchain_content__5: 'When you see your balance on MyEtherWallet.com or view your transactions on [etherscan.io](https://etherscan.io), you are seeing data on the blockchain, not in our personal systems.',
ONBOARD_blockchain_content__6: 'Again: **we are not a bank**.',
ONBOARD_interface_title__alt: 'MEW is an Interface',
ONBOARD_why_title__alt: 'But...why does this matter?',
ONBOARD_why_title: 'Why are you making me read all this?',
ONBOARD_why_content__1: 'Because we need you to understand that we **cannot**...',
ONBOARD_why_content__2: 'Access your account or send your funds for you X.',
ONBOARD_why_content__3: 'Recover or change your private key.',
ONBOARD_why_content__4: 'Recover or reset your password.',
ONBOARD_why_content__5: 'Reverse, cancel, or refund transactions.',
ONBOARD_why_content__6: 'Freeze accounts.',
ONBOARD_why_content__7: '**You** and **only you** are responsible for your security.',
ONBOARD_why_content__8: 'Be diligent to keep your private key and password safe. Your private key is sometimes called your mnemonic phrase, keystore file, UTC file, JSON file, wallet file.',
ONBOARD_why_content__9: 'If you lose your private key or password, no one can recover it.',
ONBOARD_why_content__10: 'If you enter your private key on a phishing website, you will have **all your funds taken**.'
}, _defineProperty(_zhtw$data, 'ONBOARD_blockchain_title__alt', 'WTF is a Blockchain?'), _defineProperty(_zhtw$data, 'ONBOARD_point_title__alt', 'What\'s the Point of MEW then?'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_title', 'If MyEtherWallet can\'t do those things, what\'s the point?'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__1', 'Because that is the point of decentralization and the blockchain.'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__2', 'You don\'t have to rely on your bank, government, or anyone else when you want to move your funds.'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__3', 'You don\'t have to rely on the security of an exchange or bank to keep your funds safe.'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__4', 'If you don\'t find these things valuable, ask yourself why you think the blockchain and cryptocurrencies are valuable. 😉'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__5', 'If you don\'t like the sound of this, consider using [Coinbase](https://www.coinbase.com/) or [Blockchain.info](https://blockchain.info/wallet/#/signup). They have more familiar accounts with usernames & passwords.'), _defineProperty(_zhtw$data, 'ONBOARD_whymew_content__6', 'If you are scared but want to use MEW, [get a hardware wallet](https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html)! These keep your keys secure.'), _defineProperty(_zhtw$data, 'ONBOARD_why_title__alt', 'But...why?'), _defineProperty(_zhtw$data, 'ONBOARD_secure_title', 'How To Protect Yourself & Your Funds'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_title', 'How To Protect Yourself from Phishers'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__1', 'Phishers send you a message with a link to a website that looks just like MyEtherWallet, EtherDelta, Paypal, or your bank, but is not the real website. They steal your information and then steal your money.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__2', 'Install [EAL](https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn) or [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) or [Cryptonite by Metacert](https://chrome.google.com/webstore/detail/cryptonite-by-metacert/keghdcpemohlojlglbiegihkljkgnige) or the [MyEtherWallet Chrome Extension](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm) to block malicious websites.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__3', 'Always check the URL: `https://www.myetherwallet.com`.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__4', 'Always make sure the URL bar has `MYETHERWALLET LLC [US]` in green.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__5', 'Do not trust messages or links sent to you randomly via email, Slack, Reddit, Twitter, etc.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__6', 'Always navigate directly to a site before you enter information. Do not enter information after clicking a link from a message or email.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_1_content__7', '[Install an AdBlocker](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en) and do not click ads on your search engine (e.g. Google).'), _defineProperty(_zhtw$data, 'ONBOARD_point_title__alt_2', 'What\'s the point?'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_title', 'How To Protect Yourself from Scams'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_content__1', 'People will try to get you to give them money in return for nothing.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_content__2', 'If it is too good to be true, it probably is.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_content__3', 'Research before sending money to someone or some project. Look for information on a variety of websites and forums. Be wary.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_content__4', 'Ask questions when you don\'t understand something or it doesn\'t seem right.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_content__5', 'Don\'t let fear, FUD, or FOMO win over common sense. If something is very urgent, ask yourself "why?". It may be to create FOMO or prevent you from doing research.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_title__alt', 'Phuck Phishers'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_title', 'How To Protect Yourself from Loss'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__1', 'If you lose your private key or password, it is gone forever. Don\'t lose it.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__2', 'Make a backup of your private key and password. Do NOT just store it on your computer. Print it out on a piece of paper or save it to a USB drive.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__3', 'Store this paper or USB drive in a different physical location. A backup is not useful if it is destroyed by a fire or flood along with your laptop.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__4', 'Do not store your private key in Dropbox, Google Drive, or other cloud storage. If that account is compromised, your funds will be stolen.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__5', 'If you have more than 1-week\'s worth of pay worth of cryptocurrency, get a hardware wallet. No excuses. It\'s worth it. I promise.'), _defineProperty(_zhtw$data, 'ONBOARD_secure_3_content__6', '[Even more Security Tips!](https://myetherwallet.github.io/knowledge-base/getting-started/protecting-yourself-and-your-funds.html)'), _defineProperty(_zhtw$data, 'ONBOARD_secure_2_title__alt_2', 'Screw Scams'), _defineProperty(_zhtw$data, 'ONBOARD_final_title__alt', 'One more click & you\'re done! 🤘'), _defineProperty(_zhtw$data, 'ONBOARD_final_title', 'Alright, I\'m done lecturing you!'), _defineProperty(_zhtw$data, 'ONBOARD_final_subtitle', 'Sorry for being like this. Onwards!'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__1', 'Create a wallet'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__2', 'Get a hardware wallet'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__3', 'How to Set up MEW + MetaMask'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__4', 'How to Run MEW Offline / Locally'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__5', 'How to Send via Ledger hardware wallet'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__6', 'How to Send via TREZOR hardware wallet'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__7', 'How to Send via MetaMask'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__8', 'Learn More or Contact Us'), _defineProperty(_zhtw$data, 'ONBOARD_final_content__9', 'OMG, please just let me send FFS.'), _defineProperty(_zhtw$data, 'ONBOARD_resume', 'It looks like you didn\'t finish reading through these slides last time. ProTip: Finish reading through the slides 😉'), _defineProperty(_zhtw$data, 'HELP_2a_Title', '我要怎麼儲存/備份錢包? '), _defineProperty(_zhtw$data, 'x_CancelReplaceTx', '取消或取代交易'), _defineProperty(_zhtw$data, 'x_CancelTx', '取消交易'), _defineProperty(_zhtw$data, 'x_PasswordDesc', '這組密碼用來 * 加密 * 你的錢包。 並非用來作為產生金鑰的種子。 **你需要這組密碼以及你的金鑰才能解鎖錢包。**'), _defineProperty(_zhtw$data, 'x_ReadMore', '繼續閱讀'), _defineProperty(_zhtw$data, 'x_ReplaceTx', '取代交易'), _defineProperty(_zhtw$data, 'x_TransHash', '交易雜湊值'), _defineProperty(_zhtw$data, 'x_TXFee', '交易手續費'), _defineProperty(_zhtw$data, 'x_TxHash', '交易雜湊值'), _defineProperty(_zhtw$data, 'NAV_CheckTxStatus', '檢查交易狀態'), _defineProperty(_zhtw$data, 'NAV_TxStatus', '交易狀態'), _defineProperty(_zhtw$data, 'tx_Details', '交易細節'), _defineProperty(_zhtw$data, 'tx_Summary', '當乙太網路流量大時(例如有ICO進行中),你的交易可能需要等待數小時甚至數天。 此工具將讓你 "取消" 或替換等待中的交易。 ** 這通常是不被允許的。 請不要過度依賴此工具,因為這些操作只有在交易池滿載時有用. [請閱讀關於此工具的說明。](https://myetherwallet.github.io/knowledge-base/transactions/check-status-of-ethereum-transaction.html)**'), _defineProperty(_zhtw$data, 'tx_notFound', '查無交易'), _defineProperty(_zhtw$data, 'tx_notFound_1', '無法在你所連接的節點之交易池找到這筆交易。'), _defineProperty(_zhtw$data, 'tx_notFound_2', '如果你才剛送出交易,請等待 15 秒鐘後再按下 "檢查交易狀態" 按鈕。 '), _defineProperty(_zhtw$data, 'tx_notFound_3', '這筆交易可能仍在在其他節點的交易池中等待被確認。'), _defineProperty(_zhtw$data, 'tx_notFound_4', '請用右上角的下拉式選單來選取其他 ETH 節點 (例如: `ETH (Etherscan.io)` 、 `ETH (Infura.io)` 或 `ETH (MyEtherWallet)`) 並再檢查一次。'), _defineProperty(_zhtw$data, 'tx_foundInPending', '找到等待中的交易'), _defineProperty(_zhtw$data, 'tx_foundInPending_1', '你的交易存在於你所連接的節點交易池中。 '), _defineProperty(_zhtw$data, 'tx_foundInPending_2', '此筆交易正在等待中 (等待確認). '), _defineProperty(_zhtw$data, 'tx_foundInPending_3', '你有機會 "取消" 或取代這筆交易。 請在底下解鎖錢包。'), _defineProperty(_zhtw$data, 'tx_FoundOnChain', '找到交易'), _defineProperty(_zhtw$data, 'tx_FoundOnChain_1', '你的交易已經成功被確認且存在於區塊鏈上。'), _defineProperty(_zhtw$data, 'tx_FoundOnChain_2', '**你如果看到紅色的 `( ! )` 、 `BAD INSTRUCTION` 或 `OUT OF GAS` 的錯誤訊息**,這表示該筆交易並沒有被成功的 *送出*。你不能取消或替換這筆交易,你必須重新送出一筆交易。如果你看到 "Out of Gas" 錯誤你得使用之前gas總量的兩倍。'), _defineProperty(_zhtw$data, 'tx_FoundOnChain_3', '**如果你沒有看到任何錯誤,你的交易已被成功送出。** 你的乙太幣或代幣已經在目的地錢包。如果你沒有看到你的乙太幣或代幣出現在目的地錢包 / 交易所帳戶而且你已經等待超過24小時[請連絡該服務提供者](https://myetherwallet.github.io/knowledge-base/diving-deeper/ethereum-list-of-support-and-communities.html). 給他們你的交易紀錄 *連結* ,並且友善地請他們處裡你遇到的問題。'), _defineProperty(_zhtw$data, 'GEN_Help_1', '使用你的'), _defineProperty(_zhtw$data, 'GEN_Help_2', '來存取你的帳戶。 '), _defineProperty(_zhtw$data, 'GEN_Help_3', '你的裝置 * 就是 * 你的錢包。'), _defineProperty(_zhtw$data, 'GEN_Help_4', '指南 & 問與答'), _defineProperty(_zhtw$data, 'GEN_Help_5', '如何建立錢包'), _defineProperty(_zhtw$data, 'GEN_Help_6', '入門'), _defineProperty(_zhtw$data, 'GEN_Help_7', '保管好 · 備份它 · 不要分享給任何人 · 不要遺失 · 遺失後將無法找回。'), _defineProperty(_zhtw$data, 'GEN_Help_8', '不要下載檔案嗎? '), _defineProperty(_zhtw$data, 'GEN_Help_9', '改用 Google Chrome 看看 '), _defineProperty(_zhtw$data, 'GEN_Help_10', '按下右鍵並另存為 檔案名稱: '), _defineProperty(_zhtw$data, 'GEN_Help_11', '不要在你的電腦上開啟此檔案 '), _defineProperty(_zhtw$data, 'GEN_Help_12', '用它在 MyEtherWallet (或Mist、Geth、Parity和其他錢包) 來解鎖你的錢包 '), _defineProperty(_zhtw$data, 'GEN_Help_13', 'How to Back Up Your Keystore File '), _defineProperty(_zhtw$data, 'GEN_Help_14', 'What are these Different Formats? '), _defineProperty(_zhtw$data, 'GEN_Help_15', 'Preventing loss &amp; theft of your funds.'), _defineProperty(_zhtw$data, 'GEN_Help_16', 'What are these Different Formats?'), _defineProperty(_zhtw$data, 'GEN_Help_17', 'Why Should I?'), _defineProperty(_zhtw$data, 'GEN_Help_18', 'To have a secondary backup.'), _defineProperty(_zhtw$data, 'GEN_Help_19', 'In case you ever forget your password.'), _defineProperty(_zhtw$data, 'GEN_Help_20', 'Cold Storage'), _defineProperty(_zhtw$data, 'GET_ConfButton', '我了解,請繼續。'), _defineProperty(_zhtw$data, 'GEN_Label_5', '保存 `私鑰`. '), _defineProperty(_zhtw$data, 'GEN_Unlock', '解鎖你的錢包來查看地址'), _defineProperty(_zhtw$data, 'GAS_PRICE_Desc', 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `10 GWEI`.'), _defineProperty(_zhtw$data, 'GAS_LIMIT_Desc', 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.'), _defineProperty(_zhtw$data, 'NONCE_Desc', 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.'), _defineProperty(_zhtw$data, 'TXFEE_Desc', 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)'), _defineProperty(_zhtw$data, 'NAV_AddWallet', '新增錢包 '), _defineProperty(_zhtw$data, 'NAV_BulkGenerate', '批量產生 '), _defineProperty(_zhtw$data, 'NAV_Contact', '聯繫我們 '), _defineProperty(_zhtw$data, 'NAV_Contracts', '合約 '), _defineProperty(_zhtw$data, 'NAV_DeployContract', '部署合約 '), _defineProperty(_zhtw$data, 'NAV_ENS', 'ENS'), _defineProperty(_zhtw$data, 'NAV_GenerateWallet_alt', '建立新錢包 '), _defineProperty(_zhtw$data, 'NAV_GenerateWallet', '產生錢包 '), _defineProperty(_zhtw$data, 'NAV_Help', '求助 '), _defineProperty(_zhtw$data, 'NAV_InteractContract', '和合約互動 '), _defineProperty(_zhtw$data, 'NAV_Multisig', '多重簽署 '), _defineProperty(_zhtw$data, 'NAV_MyWallets', '我的錢包 '), _defineProperty(_zhtw$data, 'NAV_Offline', '離線發送 '), _defineProperty(_zhtw$data, 'NAV_SendEther', '發送乙太幣 / 代幣 '), _defineProperty(_zhtw$data, 'NAV_SendTokens', '發送代幣 '), _defineProperty(_zhtw$data, 'NAV_SignMsg', '對訊息做簽名 '), _defineProperty(_zhtw$data, 'NAV_Swap', 'Swap '), _defineProperty(_zhtw$data, 'NAV_ViewWallet', '查看錢包 '), _defineProperty(_zhtw$data, 'NAV_YourWallets', '你的錢包 '), _defineProperty(_zhtw$data, 'x_Access', '存取合約 '), _defineProperty(_zhtw$data, 'x_AddessDesc', '你可以把地址當作是你的"帳號"或者"公鑰"。將地址告訴他人,他人就能發送乙太幣或代幣給你。找到漂亮的地址圖標,確定該圖標符合你的紙錢包和所有你輸入地址的地方。 '), _defineProperty(_zhtw$data, 'x_Address', '你的地址 '), _defineProperty(_zhtw$data, 'x_Cancel', '取消 '), _defineProperty(_zhtw$data, 'x_CSV', 'CSV 檔 (未加密) '), _defineProperty(_zhtw$data, 'x_Download', '下載 '), _defineProperty(_zhtw$data, 'x_Json', 'JSON 檔 (未加密) '), _defineProperty(_zhtw$data, 'x_JsonDesc', '這是未加密的JSON格式私鑰檔。這表示你不需要密碼就可以控制錢包但任何持有此JSON文件的人也都無須密碼便能控制你的錢包和乙太幣。 '), _defineProperty(_zhtw$data, 'x_Keystore', 'Keystore 檔 (UTC / JSON · 推薦 · 經過加密) '), _defineProperty(_zhtw$data, 'x_Keystore2', 'Keystore 檔 (UTC / JSON) '), _defineProperty(_zhtw$data, 'x_KeystoreDesc', '此Keystore檔和Mist錢包相容因此你可以輕鬆地匯入錢包。我們推薦你下載並備份此檔案。 '), _defineProperty(_zhtw$data, 'x_MetaMask', 'MetaMask / Mist '), _defineProperty(_zhtw$data, 'x_Mnemonic', '助憶口令 '), _defineProperty(_zhtw$data, 'x_ParityPhrase', 'Parity口令 '), _defineProperty(_zhtw$data, 'x_Password', '密碼 '), _defineProperty(_zhtw$data, 'x_Print', '列印紙錢包 '), _defineProperty(_zhtw$data, 'x_PrintDesc', '小技巧: 按下列印並保存為PDF檔儘管你沒有印表機 '), _defineProperty(_zhtw$data, 'x_PrintShort', '列印 '), _defineProperty(_zhtw$data, 'x_PrivKey', '私鑰 (未加密) '), _defineProperty(_zhtw$data, 'x_PrivKey2', '私鑰 '), _defineProperty(_zhtw$data, 'x_PrivKeyDesc', '這是你未加密的私鑰,這表示你不需要密碼就可以控制錢包。如果有人取得此私鑰,他們也無須密碼便能可以控制你的錢包。因此,我們推薦加密過的私鑰檔。 '), _defineProperty(_zhtw$data, 'x_Save', '保存 '), _defineProperty(_zhtw$data, 'x_TXT', 'TXT 檔 (未加密) '), _defineProperty(_zhtw$data, 'x_Wallet', '錢包 '), _defineProperty(_zhtw$data, 'CX_Tagline', '開源的JavaScript客戶端乙太錢包Chrome擴充功能 '), _defineProperty(_zhtw$data, 'CX_Warning_1', '確保你存在這裡的所有錢包皆有**額外的備份**。導致此擴充功能資料喪失的可能很多,這包括移除和重新安裝此擴充功能。此擴充功能讓你輕鬆操作錢包,而**不是**備份錢包。 '), _defineProperty(_zhtw$data, 'MEW_Tagline', '開源的JavaScript客戶端乙太錢包 '), _defineProperty(_zhtw$data, 'MEW_Warning_1', '每次存取和產生錢包時都要檢查上方的網址。小心釣魚網站! '), _defineProperty(_zhtw$data, 'FOOTER_1', '讓你輕鬆、安全地和乙太坊互動的開源客戶端工具。 '), _defineProperty(_zhtw$data, 'FOOTER_1b', '開發者 '), _defineProperty(_zhtw$data, 'FOOTER_2', '歡迎捐贈給我們 '), _defineProperty(_zhtw$data, 'FOOTER_3', 'Client-side wallet generation by '), _defineProperty(_zhtw$data, 'FOOTER_4', '免責聲明 '), _defineProperty(_zhtw$data, 'sidebar_AccountInfo', '帳戶資訊 '), _defineProperty(_zhtw$data, 'sidebar_AccountAddr', '帳戶地址 '), _defineProperty(_zhtw$data, 'sidebar_AccountBal', '帳戶餘額 '), _defineProperty(_zhtw$data, 'sidebar_TokenBal', '代幣餘額 '), _defineProperty(_zhtw$data, 'sidebar_Equiv', '價值 '), _defineProperty(_zhtw$data, 'sidebar_TransHistory', '交易歷史 '), _defineProperty(_zhtw$data, 'sidebar_donation', 'MyEtherWallet是注重你的隱私和安全的免費、開源服務。如果有更多捐贈我們就能花更多時間開發新功能、聽取你的建議並且滿足你的需要。我們只是兩個想要改變世界的人。幫助我們 '), _defineProperty(_zhtw$data, 'sidebar_donate', '捐贈 '), _defineProperty(_zhtw$data, 'sidebar_thanks', '謝謝你!!! '), _defineProperty(_zhtw$data, 'sidebar_DisplayOnTrezor', '顯示 TREZOR 上的地址'), _defineProperty(_zhtw$data, 'sidebar_DisplayOnLedger', '顯示 Ledger 上的地址'), _defineProperty(_zhtw$data, 'decrypt_Access', '你想要如何存取你的錢包? '), _defineProperty(_zhtw$data, 'decrypt_Title', '選擇你的私鑰格式 '), _defineProperty(_zhtw$data, 'decrypt_Select', '選擇一個錢包 '), _defineProperty(_zhtw$data, 'MNEM_1', '選擇你要互動的地址。 '), _defineProperty(_zhtw$data, 'MNEM_2', 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. '), _defineProperty(_zhtw$data, 'MNEM_more', '更多地址 '), _defineProperty(_zhtw$data, 'MNEM_prev', '之前的地址 '), _defineProperty(_zhtw$data, 'x_Ledger', 'Ledger Wallet 錢包'), _defineProperty(_zhtw$data, 'ADD_Ledger_0a', 'Please use MyEtherWallet on a secure (SSL / HTTPS) connection to connect. '), _defineProperty(_zhtw$data, 'ADD_Ledger_1', '連接至你的 Ledger Wallet '), _defineProperty(_zhtw$data, 'ADD_Ledger_2', '開啟基於以太坊開發的應用程式(或一個寫成合約的應用程式) '), _defineProperty(_zhtw$data, 'ADD_Ledger_2_Exp', '開打開基於Expanse或合同書面申請開發的應用程序 '), _defineProperty(_zhtw$data, 'ADD_Ledger_2_Ubq', '開打開基於Ubiq或合同書面申請開發的應用程序 '), _defineProperty(_zhtw$data, 'ADD_Ledger_3', '確認已經開啟設定選項中的瀏覽器支援選項'), _defineProperty(_zhtw$data, 'ADD_Ledger_4', '如果在設定選項中找不到瀏覽器支援選項,請確認你的韌體版本新於[1.2版](https://www.ledgerwallet.com/apps/manager)'), _defineProperty(_zhtw$data, 'ADD_Ledger_0b', '以 [Chrome](https://www.google.com/chrome/browser/desktop/) 或 [Opera](https://www.opera.com/) 瀏覽器重新開啟MyEtherWallet'), _defineProperty(_zhtw$data, 'ADD_Ledger_scan', '連接至 Ledger Wallet '), _defineProperty(_zhtw$data, 'ADD_MetaMask', 'Connect to MetaMask '), _defineProperty(_zhtw$data, 'x_Trezor', 'TREZOR 錢包 '), _defineProperty(_zhtw$data, 'ADD_Trezor_scan', '連接至 TREZOR '), _defineProperty(_zhtw$data, 'x_DigitalBitbox', 'Digital Bitbox '), _defineProperty(_zhtw$data, 'ADD_DigitalBitbox_0a', 'Re-open MyEtherWallet on a secure (SSL) connection '), _defineProperty(_zhtw$data, 'ADD_DigitalBitbox_0b', '以 [Chrome](https://www.google.com/chrome/browser/desktop/) 或 [Opera](https://www.opera.com/) 瀏覽器重新開啟MyEtherWallet'), _defineProperty(_zhtw$data, 'ADD_DigitalBitbox_scan', '連接至 Digital Bitbox '), _defineProperty(_zhtw$data, 'ADD_Label_1', '你想要做什麼? '), _defineProperty(_zhtw$data, 'ADD_Radio_1', '產生新錢包 '), _defineProperty(_zhtw$data, 'ADD_Radio_2', '選擇你的錢包檔 (Keystore / JSON) '), _defineProperty(_zhtw$data, 'ADD_Radio_2_alt', '選擇你的錢包檔 '), _defineProperty(_zhtw$data, 'ADD_Radio_2_short', '選擇錢包檔... '), _defineProperty(_zhtw$data, 'ADD_Radio_3', '貼上/輸入 你的私鑰 '), _defineProperty(_zhtw$data, 'ADD_Radio_4', '監視一個帳戶 '), _defineProperty(_zhtw$data, 'ADD_Radio_5', '貼上/輸入 你的助憶口令 '), _defineProperty(_zhtw$data, 'ADD_Radio_5_Path', 'Select HD derivation path '), _defineProperty(_zhtw$data, 'ADD_Radio_5_woTrezor', '(Jaxx, Metamask, Exodus, imToken)'), _defineProperty(_zhtw$data, 'ADD_Radio_5_withTrezor', '(Jaxx, Metamask, Exodus, imToken, TREZOR)'), _defineProperty(_zhtw$data, 'ADD_Radio_5_PathAlternative', '(Ledger)'), _defineProperty(_zhtw$data, 'ADD_Radio_5_PathTrezor', '(TREZOR)'), _defineProperty(_zhtw$data, 'ADD_Radio_5_PathCustom', 'Custom'), _defineProperty(_zhtw$data, 'ADD_Label_2', '新增一個暱稱 '), _defineProperty(_zhtw$data, 'ADD_Label_3', '你的錢包經過加密。請輸入密碼。 '), _defineProperty(_zhtw$data, 'ADD_Label_4', '監視一個帳戶 '), _defineProperty(_zhtw$data, 'ADD_Warning_1', '你可以在錢包頁面監視任何帳戶,而且不需要匯入該帳戶的私鑰。這並不表示你能存取該帳戶或透過該帳戶傳送乙太幣。 '), _defineProperty(_zhtw$data, 'ADD_Label_5', '輸入地址 '), _defineProperty(_zhtw$data, 'ADD_Label_6', '解鎖你的錢包 '), _defineProperty(_zhtw$data, 'ADD_Label_6_short', '解鎖 '), _defineProperty(_zhtw$data, 'ADD_Label_7', '新增帳戶 '), _defineProperty(_zhtw$data, 'ADD_Label_8', 'Password (optional): '), _defineProperty(_zhtw$data, 'MYWAL_Nick', '錢包暱稱 '), _defineProperty(_zhtw$data, 'MYWAL_Address', '錢包地址 '), _defineProperty(_zhtw$data, 'MYWAL_Bal', '餘額 '), _defineProperty(_zhtw$data, 'MYWAL_Edit', '編輯 '), _defineProperty(_zhtw$data, 'MYWAL_View', '檢視 '), _defineProperty(_zhtw$data, 'MYWAL_Remove', '移除 '), _defineProperty(_zhtw$data, 'MYWAL_RemoveWal', '移除錢包 '), _defineProperty(_zhtw$data, 'MYWAL_WatchOnly', '你正在監視的錢包 '), _defineProperty(_zhtw$data, 'MYWAL_Viewing', '查看錢包 '), _defineProperty(_zhtw$data, 'MYWAL_Hide', '隱藏錢包資訊 '), _defineProperty(_zhtw$data, 'MYWAL_Edit_2', '編輯錢包 '), _defineProperty(_zhtw$data, 'MYWAL_Name', '錢包名字 '), _defineProperty(_zhtw$data, 'MYWAL_Content_1', '警告! 你即將移除你的錢包 '), _defineProperty(_zhtw$data, 'MYWAL_Content_2', '確保你在移除錢包前,已經**保存了私鑰和Keystore檔並記住了密碼**。 '), _defineProperty(_zhtw$data, 'MYWAL_Content_3', '如果你在未來還想在MyEtherWallet擴充功能上操作此錢包你必須使用私鑰或JSON檔和密碼來重新新增它。 '), _defineProperty(_zhtw$data, 'GEN_desc', '你可以在這裡新增多個錢包 '), _defineProperty(_zhtw$data, 'GEN_Label_1', '輸入一個夠安全的密碼(至少九個字元) '), _defineProperty(_zhtw$data, 'GEN_Placeholder_1', '別忘記將密碼記下! '), _defineProperty(_zhtw$data, 'GEN_SuccessMsg', '成功! 你的錢包已被產生。 '), _defineProperty(_zhtw$data, 'GEN_Label_2', '存下你的Keystore檔。 別忘記上方的密碼。 '), _defineProperty(_zhtw$data, 'GEN_Label_3', '記下你的地址。 '), _defineProperty(_zhtw$data, 'GEN_Label_4', '印出你的紙錢包或存下QR碼版本的資料。可選的 '), _defineProperty(_zhtw$data, 'BULK_Label_1', '要產生的錢包數量 '), _defineProperty(_zhtw$data, 'BULK_Label_2', '產生多個錢包 '), _defineProperty(_zhtw$data, 'BULK_SuccessMsg', '成功! 你的所有錢包皆已被產生。 '), _defineProperty(_zhtw$data, 'SEND_addr', '給地址 '), _defineProperty(_zhtw$data, 'SEND_amount', '要發送的數量 '), _defineProperty(_zhtw$data, 'SEND_amount_short', '數量 '), _defineProperty(_zhtw$data, 'SEND_custom', '新增其他代幣 '), _defineProperty(_zhtw$data, 'SEND_gas', 'Gas '), _defineProperty(_zhtw$data, 'SEND_TransferTotal', '送出所有餘額 '), _defineProperty(_zhtw$data, 'SEND_generate', '產生交易訊息 '), _defineProperty(_zhtw$data, 'SEND_raw', '交易訊息 '), _defineProperty(_zhtw$data, 'SEND_signed', '已簽署的交易訊息 '), _defineProperty(_zhtw$data, 'SEND_trans', '送出交易 '), _defineProperty(_zhtw$data, 'SENDModal_Title', '注意! '), _defineProperty(_zhtw$data, 'SENDModal_Content_1', '你將要送出 '), _defineProperty(_zhtw$data, 'SENDModal_Content_2', '到 '), _defineProperty(_zhtw$data, 'SENDModal_Content_3', '確定要繼續嗎? '), _defineProperty(_zhtw$data, 'SENDModal_Content_4', '提醒如果你遇到了問題解決方法通常是傳入乙太幣到帳戶中來支付交易所需的gas。Gas由乙太幣支付。 '), _defineProperty(_zhtw$data, 'SENDModal_No', '不,帶我離開這裡! '), _defineProperty(_zhtw$data, 'SENDModal_Yes', '好,我確定!進行交易。 '), _defineProperty(_zhtw$data, 'TOKEN_Addr', '地址 Token '), _defineProperty(_zhtw$data, 'TOKEN_Symbol', '代幣縮寫 '), _defineProperty(_zhtw$data, 'TOKEN_Dec', '小數點 '), _defineProperty(_zhtw$data, 'TOKEN_show', '顯示所有代幣 '), _defineProperty(_zhtw$data, 'TOKEN_hide', '隱藏代幣 '), _defineProperty(_zhtw$data, 'TRANS_desc', '如果你是要傳送代幣(Token),請使用“傳送代幣”功能'), _defineProperty(_zhtw$data, 'TRANS_warning', '"Only ETH" 或 "Only ETC" 功能是透過一個合約來傳送,並非單純的轉錢。有些服務可能沒辦法接受這兩種功能。 了解更多。Functions you are sending via a contract. Some services have issues accepting these transactions. Read more. '), _defineProperty(_zhtw$data, 'TRANS_advanced', '進階功能為交易新增Data'), _defineProperty(_zhtw$data, 'TRANS_data', '交易的Data '), _defineProperty(_zhtw$data, 'TRANS_gas', 'Gas 總量 '), _defineProperty(_zhtw$data, 'TRANS_sendInfo', '我們使用比平均手續費略高的gas價格每單位0.000000021 ETH確保交易能快速被確認。我們並不收取任何手續費。'), _defineProperty(_zhtw$data, 'OFFLINE_Title', '以離線的方式製作交易'), _defineProperty(_zhtw$data, 'OFFLINE_Desc', '離線製作交易的方式包含三步驟。步驟一及三需要使用連網裝置,步驟二則使用離線的電腦以確保你的私鑰不會被連網裝置存取。'), _defineProperty(_zhtw$data, 'OFFLLINE_Step1_Title', '步驟一: 產生交易相關訊息(在連網裝置上) '), _defineProperty(_zhtw$data, 'OFFLINE_Step1_Button', '產生交易相關訊息 '), _defineProperty(_zhtw$data, 'OFFLINE_Step1_Label_1', '交易發起方的地址 '), _defineProperty(_zhtw$data, 'OFFLINE_Step1_Label_2', '注意: 這是交易發起方的地址不是交易接受方的地址。Nonce值是看交易發起方來決定。如果是使用離線裝置則這個地址是離線儲存裝置的帳號地址。 '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Title', '步驟二: 製作交易(在離線裝置上) '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_1', '交易接收方的地址 '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_2', '送給交易接收方的金額'), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_3', '每單位gas的費用'), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_3b', '這會顯示於你步驟一連網裝置上。'), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_4', 'Gas 總量 '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_4b', '21000 是預設的gas總量單純轉錢。如果你是要執行合約則會不一樣。多給的gas如果沒有用完會退還給你。'), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_5', 'Nonce '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_5b', '這會顯示於你步驟一連網裝置上。'), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_6', '交易的Data '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_6b', '並非必需的Data通常只有在你執行合約的時候才需要。 '), _defineProperty(_zhtw$data, 'OFFLINE_Step2_Label_7', '輸入/選擇 你的私鑰/JSON檔。 '), _defineProperty(_zhtw$data, 'OFFLINE_Step3_Title', '步驟三: 送出交易(在連網裝置上) '), _defineProperty(_zhtw$data, 'OFFLINE_Step3_Label_1', '將步驟二經過簽名的交易複製並貼上到這,最後按下送出交易的按鈕。'), _defineProperty(_zhtw$data, 'CONTRACT_Title', '合約地址 '), _defineProperty(_zhtw$data, 'CONTRACT_Title_2', '選擇已經存在的合約 '), _defineProperty(_zhtw$data, 'CONTRACT_Json', '合約的 ABI / JSON 介面 '), _defineProperty(_zhtw$data, 'CONTRACT_Interact_Title', '讀取/寫入 合約'), _defineProperty(_zhtw$data, 'CONTRACT_Interact_CTA', '選擇一個動作'), _defineProperty(_zhtw$data, 'CONTRACT_ByteCode', '合約的程式碼 '), _defineProperty(_zhtw$data, 'CONTRACT_Read', '讀取 '), _defineProperty(_zhtw$data, 'CONTRACT_Write', '寫入 '), _defineProperty(_zhtw$data, 'DEP_generate', '產生程式碼 '), _defineProperty(_zhtw$data, 'DEP_generated', '已產生的程式碼 '), _defineProperty(_zhtw$data, 'DEP_signtx', '對交易做簽名 '), _defineProperty(_zhtw$data, 'DEP_interface', '已產生的合約介面 '), _defineProperty(_zhtw$data, 'NODE_Title', '設定你的客製節點'), _defineProperty(_zhtw$data, 'NODE_Subtitle', '連線至一個區域/私人節點...'), _defineProperty(_zhtw$data, 'NODE_Warning', '你的節點必須使用HTTPS安全連線的方式才能夠由 MyEtherWallet.com 連接到它。 你可以下載 [MyEtherWallet repo](https://github.com/kvhnuke/etherwallet/releases/latest) 並建立起一個你的節點來連接至其他的節點。或著從 [LetsEncrypt](https://letsencrypt.org/) 獲取免費的SSL憑證'), _defineProperty(_zhtw$data, 'NODE_Name', '節點名稱'), _defineProperty(_zhtw$data, 'NODE_Port', '節點連線的端口號碼'), _defineProperty(_zhtw$data, 'NODE_CTA', '儲存設定並使用客製節點'), _defineProperty(_zhtw$data, 'SWAP_rates', "目前的匯率 "), _defineProperty(_zhtw$data, 'SWAP_init_1', "我想要用我的 "), _defineProperty(_zhtw$data, 'SWAP_init_2', " 換 "), _defineProperty(_zhtw$data, 'SWAP_init_CTA', "下一步 "), _defineProperty(_zhtw$data, 'SWAP_information', "你的相關資料 "), _defineProperty(_zhtw$data, 'SWAP_send_amt', "送出多少金額 "), _defineProperty(_zhtw$data, 'SWAP_rec_amt', "收入多少金額 "), _defineProperty(_zhtw$data, 'SWAP_your_rate', "你的匯率 "), _defineProperty(_zhtw$data, 'SWAP_rec_add', "你收錢的地址 "), _defineProperty(_zhtw$data, 'SWAP_start_CTA', "開始交換 "), _defineProperty(_zhtw$data, 'SWAP_ref_num', "你的交易編號 "), _defineProperty(_zhtw$data, 'SWAP_time', "剩餘多少時間可送出交易 "), _defineProperty(_zhtw$data, 'SWAP_elapsed', "送出交易後已經經過了 "), _defineProperty(_zhtw$data, 'SWAP_progress_1', "訂單已產生 "), _defineProperty(_zhtw$data, 'SWAP_progress_2', "正在等待你的 "), _defineProperty(_zhtw$data, 'SWAP_progress_3', "收到了! "), _defineProperty(_zhtw$data, 'SWAP_progress_4', "正在傳送你的 {{orderResult.output.currency}} "), _defineProperty(_zhtw$data, 'SWAP_progress_5', "訂單完成 "), _defineProperty(_zhtw$data, 'SWAP_order_CTA', "請傳送 "), _defineProperty(_zhtw$data, 'SWAP_unlock', "解鎖你的錢包來從這個頁面轉錢或轉代幣 "), _defineProperty(_zhtw$data, 'MSG_message', '訊息 '), _defineProperty(_zhtw$data, 'MSG_date', '日期 '), _defineProperty(_zhtw$data, 'MSG_signature', '簽名 '), _defineProperty(_zhtw$data, 'MSG_verify', '驗證訊息 '), _defineProperty(_zhtw$data, 'MSG_info1', '填入當前時間來避免簽名在其他不同時間被重複利用。 '), _defineProperty(_zhtw$data, 'MSG_info2', '填入你的暱稱及你使用該暱稱的場合來避免其他人使用'), _defineProperty(_zhtw$data, 'MSG_info3', '填入這個訊息的源由來避免被用在其他目的。 '), _defineProperty(_zhtw$data, 'VIEWWALLET_Subtitle', '這可以讓你下載不同版本的私鑰並且重新印製出你的紙錢包。你可能會需要這個功能來將你的帳戶[讀入Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/)。 如果你想要檢查你的帳號餘額,我們建議你使用區塊鏈瀏覽網頁像是[etherscan.io](https://etherscan.io/)。 '), _defineProperty(_zhtw$data, 'VIEWWALLET_Subtitle_Short', '這可以讓你下載不同版本的私鑰並且重新印製出你的紙錢包。 '), _defineProperty(_zhtw$data, 'VIEWWALLET_SuccessMsg', '成功!這些是你的錢包內容。 '), _defineProperty(_zhtw$data, 'VIEWWALLET_ShowPrivKey', '(顯示)'), _defineProperty(_zhtw$data, 'VIEWWALLET_HidePrivKey', '(隱藏)'), _defineProperty(_zhtw$data, 'CX_error_1', '你沒有儲存過任何錢包。點擊 ["新增錢包"](/cx-wallet.html#add-wallet) 來新增一個錢包! '), _defineProperty(_zhtw$data, 'CX_quicksend', '傳送 '), _defineProperty(_zhtw$data, 'ERROR_0', '請輸入有效的數量。 '), _defineProperty(_zhtw$data, 'ERROR_1', '你的密碼至少需要9個字元。請確保你的密碼強度夠強。 '), _defineProperty(_zhtw$data, 'ERROR_2', '抱歉,我們無法識別這個錢包檔案。 '), _defineProperty(_zhtw$data, 'ERROR_3', '這不是一個有效的錢包檔案。 '), _defineProperty(_zhtw$data, 'ERROR_4', '這個單位並不存在,請使用以下的單位 '), _defineProperty(_zhtw$data, 'ERROR_5', '無效的地址。 '), _defineProperty(_zhtw$data, 'ERROR_6', '無效的密碼。 '), _defineProperty(_zhtw$data, 'ERROR_7', '無效的數量。(Must be integer. Try 0-18.) '), _defineProperty(_zhtw$data, 'ERROR_8', '無效的gas上限。(Must be integer. Try 21000-4000000.) '), _defineProperty(_zhtw$data, 'ERROR_9', '無效的data。(Must be hex.) '), _defineProperty(_zhtw$data, 'ERROR_10', '無效的gas數量。(Must be integer. Try 20 GWEI / 20000000000 WEI.)'), _defineProperty(_zhtw$data, 'ERROR_11', '無效的nonce值。(Must be integer.)'), _defineProperty(_zhtw$data, 'ERROR_12', '無效的已簽名交易。 '), _defineProperty(_zhtw$data, 'ERROR_13', '已經有一個使用相同暱稱的錢包存在。 '), _defineProperty(_zhtw$data, 'ERROR_14', '找不到錢包。 '), _defineProperty(_zhtw$data, 'ERROR_15', 'It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. '), _defineProperty(_zhtw$data, 'ERROR_16', '儲存裝置中已經有一個包含這個地址的錢包存在。 請見錢包頁面。 '), _defineProperty(_zhtw$data, 'ERROR_17', '你帳戶中必須有至少 **0.01 ETH** 來支付gas的成本。 請增加一些 ETH 並重試。 '), _defineProperty(_zhtw$data, 'ERROR_18', 'All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.'), _defineProperty(_zhtw$data, 'ERROR_19', '無效的符號 '), _defineProperty(_zhtw$data, 'ERROR_20', '並不是一個有效的 ERC-20 代幣 '), _defineProperty(_zhtw$data, 'ERROR_21', '無法估計花費的gas。 這個帳戶沒有足夠餘額,或是接收的合約丟出錯誤訊息。 你可以自己手動設定gas並執行。 傳送後的錯誤訊息可能會提供更多訊息。 '), _defineProperty(_zhtw$data, 'ERROR_22', '請輸入有效的節點名稱'), _defineProperty(_zhtw$data, 'ERROR_23', '輸入有效的url如果你使用https請確保url也是使用https。 '), _defineProperty(_zhtw$data, 'ERROR_24', '請輸入有效的連線端口號碼 '), _defineProperty(_zhtw$data, 'ERROR_25', '請輸入有效的鏈ID'), _defineProperty(_zhtw$data, 'ERROR_26', '請輸入有效的ABI '), _defineProperty(_zhtw$data, 'ERROR_27', '最少數量 0.01 及最大'), _defineProperty(_zhtw$data, 'ERROR_28', '**以後你會需要密碼和Keystore檔案** (或私鑰)來存取你的錢包。請儲存並備份在額外的地方!如果沒有儲存你是沒有機會找回這個錢包的。 詳見[幫助頁面](https://www.myetherwallet.com/#help)來獲取更多資訊。 '), _defineProperty(_zhtw$data, 'ERROR_29', '請輸入有效的使用者及密碼 '), _defineProperty(_zhtw$data, 'ERROR_30', 'Please enter a valid name (7+ characters, limited punctuation) '), _defineProperty(_zhtw$data, 'ERROR_31', 'Please enter a valid secret phrase. '), _defineProperty(_zhtw$data, 'ERROR_32', 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.'), _defineProperty(_zhtw$data, 'ERROR_33', 'The wallet you have unlocked does not match the owner\'s address. '), _defineProperty(_zhtw$data, 'ERROR_34', 'The name you are attempting to reveal does not match the name you have entered. '), _defineProperty(_zhtw$data, 'ERROR_35', 'Input address is not checksummed. <a href="https://myetherwallet.github.io/knowledge-base/addresses/not-checksummed-shows-when-i-enter-an-address.html" target="_blank" rel="noopener noreferrer"> More info</a>'), _defineProperty(_zhtw$data, 'ERROR_36', 'Enter valid TX hash'), _defineProperty(_zhtw$data, 'ERROR_37', 'Enter valid hex string (0-9, a-f)'), _defineProperty(_zhtw$data, 'SUCCESS_1', '有效的地址 '), _defineProperty(_zhtw$data, 'SUCCESS_2', '成功解密錢包 '), _defineProperty(_zhtw$data, 'SUCCESS_3', '你的交易已被發布到網路上。這並不表示該交易已被確認或完成。遇到區塊鏈網路流量極大時,你可能需要超過三個小時才能完成交易 1) 在下面確認你的交易狀態。 2) 如果該交易已經等待(pending)數小時或消失,使用 檢查交易狀態 頁面來替換它。 3) 使用 [ETH加油站](https://ethgasstation.info/) 來確認最佳的Gas價格。 4) 存下該筆交易的雜湊值,你可能需要它: '), _defineProperty(_zhtw$data, 'SUCCESS_4', '成功新增你的錢包 '), _defineProperty(_zhtw$data, 'SUCCESS_5', '已選擇檔案 '), _defineProperty(_zhtw$data, 'SUCCESS_6', '你已經成功連上 '), _defineProperty(_zhtw$data, 'SUCCESS_7', '訊息簽章驗證成功'), _defineProperty(_zhtw$data, 'WARN_Send_Link', '你藉由一條連結到達此頁面且該連結已幫你將地址、金額、gas和data欄位或交易類別(傳送模式)填好。 送出前你可以自由更改其中的值。 首先先解鎖你的錢包。 '), _defineProperty(_zhtw$data, 'GETH_InvalidSender', '無效的傳送者 '), _defineProperty(_zhtw$data, 'GETH_Nonce', 'Nonce值太低 '), _defineProperty(_zhtw$data, 'GETH_Cheap', 'Gas價格太低以致不會被礦工接受 '), _defineProperty(_zhtw$data, 'GETH_Balance', '餘額不足 '), _defineProperty(_zhtw$data, 'GETH_NonExistentAccount', '帳戶不存在或是帳戶餘額不足 '), _defineProperty(_zhtw$data, 'GETH_InsufficientFunds', '提供的金額不足以支付gas成本的錢加上你要轉的錢 '), _defineProperty(_zhtw$data, 'GETH_IntrinsicGas', '提供的gas量不足 '), _defineProperty(_zhtw$data, 'GETH_GasLimit', 'gas量超過每單位區塊的gas上限 '), _defineProperty(_zhtw$data, 'GETH_NegativeValue', '負數的值 '), _defineProperty(_zhtw$data, 'PARITY_AlreadyImported', "已經有輸入一筆有同樣雜湊值的交易了。"), _defineProperty(_zhtw$data, 'PARITY_Old', "交易的nonce值太低。請增加nonce值。"), _defineProperty(_zhtw$data, 'PARITY_TooCheapToReplace', "交易手續費太低。已經有另外一筆有同樣nonce值的交易被加入排程。 請增加交易費用來取代該筆交易或增加nonce值來接續在該筆交易之後。"), _defineProperty(_zhtw$data, 'PARITY_LimitReached', "目前排程中有太多交易。你的交易因為超過排程容量上限而被拒絕。請增加交易手續費。"), _defineProperty(_zhtw$data, 'PARITY_InsufficientGasPrice', "交易手續費太低。達不到你節點所要求的最低手續費(最低: {}, 收到: {}). 請增加交易手續費。"), _defineProperty(_zhtw$data, 'PARITY_InsufficientBalance', "提供金額不足。你嘗試送出交易的帳戶並沒有足夠的金額。 需要 {} wei 但只有: {} wei."), _defineProperty(_zhtw$data, 'PARITY_GasLimitExceeded', "交易提供的gas量超過每單位的區塊gas上限 上限: {}, 收到: {}. 請減少提供的gas量。"), _defineProperty(_zhtw$data, 'PARITY_InvalidGasLimit', "提供的gas量超過上限。"), _defineProperty(_zhtw$data, 'translate_version', '0.5 '), _defineProperty(_zhtw$data, 'Translator_Desc', '譯者: '), _defineProperty(_zhtw$data, 'TranslatorName_1', 'Dymnz '), _defineProperty(_zhtw$data, 'TranslatorAddr_1', '0x0065F744bCb5393aA538cfb0688CBb0Ae0bFa741 '), _defineProperty(_zhtw$data, 'TranslatorName_2', 'NIC'), _defineProperty(_zhtw$data, 'TranslatorAddr_2', ' '), _defineProperty(_zhtw$data, 'TranslatorName_3', 'frankurcrazy '), _defineProperty(_zhtw$data, 'TranslatorAddr_3', '0xaf7c8edca9c241faf8f3f4a496da9479310e5fe9 '), _defineProperty(_zhtw$data, 'TranslatorName_4', ' '), _defineProperty(_zhtw$data, 'TranslatorAddr_4', ' '), _defineProperty(_zhtw$data, 'TranslatorName_5', ' '), _defineProperty(_zhtw$data, 'TranslatorAddr_5', ' '), _defineProperty(_zhtw$data, 'HELP_Warning', 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets &amp; download a new version of the repo. Click for details. '), _defineProperty(_zhtw$data, 'HELP_Desc', 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! '), _defineProperty(_zhtw$data, 'HELP_Remind_Title', 'Some reminders '), _defineProperty(_zhtw$data, 'HELP_Remind_Desc_1', '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. '), _defineProperty(_zhtw$data, 'HELP_Remind_Desc_2', 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. '), _defineProperty(_zhtw$data, 'HELP_Remind_Desc_3', 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations &ndash; not just on your computer! '), _defineProperty(_zhtw$data, 'HELP_0_Title', '0) I\'m new. What do I do? '), _defineProperty(_zhtw$data, 'HELP_0_Desc_1', 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. '), _defineProperty(_zhtw$data, 'HELP_0_Desc_2', 'Create a new wallet. '), _defineProperty(_zhtw$data, 'HELP_0_Desc_3', 'Back the wallet up. '), _defineProperty(_zhtw$data, 'HELP_0_Desc_4', 'Verify you have access to this new wallet and have correctly saved all necessary information. '), _defineProperty(_zhtw$data, 'HELP_0_Desc_5', 'Transfer Ether to this new wallet. '), _defineProperty(_zhtw$data, 'HELP_1_Title', '1) How do I create a new wallet? '), _defineProperty(_zhtw$data, 'HELP_1_Desc_1', 'Go to the "Generate Wallet" page. '), _defineProperty(_zhtw$data, 'HELP_1_Desc_2', 'Go to the "Add Wallet" page & select "Generate New Wallet" '), _defineProperty(_zhtw$data, 'HELP_1_Desc_3', 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. '), _defineProperty(_zhtw$data, 'HELP_1_Desc_4', 'Click "GENERATE". '), _defineProperty(_zhtw$data, 'HELP_1_Desc_5', 'Your wallet has now been generated. '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_1', 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_2', 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_3', 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_4', 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_5', 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. '), _defineProperty(_zhtw$data, 'HELP_2a_Desc_6', 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). '), _defineProperty(_zhtw$data, 'HELP_2b_Title', '2b) How do I safely / offline / cold storage with MyEtherWallet? '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_1', 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_2', 'Click on `etherwallet-vX.X.X.X.zip`. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_3', 'Move zip to an airgapped computer. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_4', 'Unzip it and double-click `index.html`. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_5', 'Generate a wallet with a strong password. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_6', 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_7', 'Store these papers / USBs in multiple physically separate locations. '), _defineProperty(_zhtw$data, 'HELP_2b_Desc_8', 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. '), _defineProperty(_zhtw$data, 'HELP_3_Title', '3) How do I verify I have access to my new wallet? '), _defineProperty(_zhtw$data, 'HELP_3_Desc_1', '**Before you send any Ether to your new wallet**, you should ensure you have access to it. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_2', 'Navigate to the "View Wallet Info" page. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_3', 'Navigate to the MyEtherWallet.com "View Wallet Info" page. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_4', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_5', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_6', 'Click the "Unlock Wallet" button. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_7', 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. '), _defineProperty(_zhtw$data, 'HELP_3_Desc_8', 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. '), _defineProperty(_zhtw$data, 'HELP_4_Title', '4) How do I send Ether from one wallet to another? '), _defineProperty(_zhtw$data, 'HELP_4_Desc_1', 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_2', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_3', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_4', 'If the wallet is encrypted, a text box will automatically appear. Enter the password. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_5', 'Click the "Unlock Wallet" button. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_9', 'Click "Generate Transaction". '), _defineProperty(_zhtw$data, 'HELP_4_Desc_10', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_11', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_12', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_zhtw$data, 'HELP_4_Desc_13', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_zhtw$data, 'HELP_4CX_Title', '4) How do I send Ether using MyEtherWallet CX? '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_1', 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Send Ether & Tokens" page. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_2', 'QuickSend '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_3', 'Click the Chrome Extension Icon. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_4', 'Click the "QuickSend" button. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_5', 'Select the wallet you wish to send from. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_6', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_7', 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_8', 'Click "Send Transaction". '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_9', 'Verify the address and the amount you are sending is correct. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_10', 'Enter the password for that wallet. '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_11', 'Click "Send Transaction." '), _defineProperty(_zhtw$data, 'HELP_4CX_Desc_12', 'Using "Send Ether & Tokens" Page '), _defineProperty(_zhtw$data, 'HELP_5_Title', '5) How do I run MyEtherWallet.com offline/locally? '), _defineProperty(_zhtw$data, 'HELP_5_Desc_1', 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. '), _defineProperty(_zhtw$data, 'HELP_5_Desc_7', 'MyEtherWallet.com is now running entirely on your computer. '), _defineProperty(_zhtw$data, 'HELP_5_Desc_8', 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. '), _defineProperty(_zhtw$data, 'HELP_5_Desc_9', 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. '), _defineProperty(_zhtw$data, 'HELP_5CX_Title', '5) How can I install this extension from the repo instead of the Chrome Store? '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_2', 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_3', 'Go to Google Chrome and find you settings (in the menu in the upper right). '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_4', 'Click "Extensions" on the left. '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_5', 'Check the "Developer Mode" button at the top of that page. '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_6', 'Click the "Load unpacked extension..." button. '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_7', 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". '), _defineProperty(_zhtw$data, 'HELP_5CX_Desc_8', 'The extension should now show up in your extensions and in your Chrome Extension bar. '), _defineProperty(_zhtw$data, 'HELP_7_Title', '7) How do I send tokens & add custom tokens? '), _defineProperty(_zhtw$data, 'HELP_7_Desc_0', '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_1', 'Navigate to the "Send Ether & Tokens" page. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_2', 'Unlock your wallet. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_3', 'Enter the address you would like to send to in the "To Address:" field. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_4', 'Enter the amount you would like to send. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_5', 'Select which token you would like to send. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_6', 'If you do not see the token listed '), _defineProperty(_zhtw$data, 'HELP_7_Desc_7', 'Click "Custom". '), _defineProperty(_zhtw$data, 'HELP_7_Desc_8', 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_9', 'Click "Save". '), _defineProperty(_zhtw$data, 'HELP_7_Desc_10', 'You can now send that token as well as see it\'s balance in the sidebar. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_11', 'Click "Generate Transaction". '), _defineProperty(_zhtw$data, 'HELP_7_Desc_12', 'A couple more fields will appear. This is your browser generating the transaction. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_13', 'Click the blue "Send Transaction" button below that. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_14', 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. '), _defineProperty(_zhtw$data, 'HELP_7_Desc_15', 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. '), _defineProperty(_zhtw$data, 'HELP_8_Title', '8) What happens if your site goes down? '), _defineProperty(_zhtw$data, 'HELP_8_Desc_1', 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. '), _defineProperty(_zhtw$data, 'HELP_8_Desc_2', 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. '), _defineProperty(_zhtw$data, 'HELP_8_Desc_3', 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. '), _defineProperty(_zhtw$data, 'HELP_8_Desc_4', 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. '), _defineProperty(_zhtw$data, 'HELP_8CX_Title', '8) What happens if MyEtherWallet CX disappears? '), _defineProperty(_zhtw$data, 'HELP_8CX_Desc_1', 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. '), _defineProperty(_zhtw$data, 'HELP_8CX_Desc_2', 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. '), _defineProperty(_zhtw$data, 'HELP_8CX_Desc_3', 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. '), _defineProperty(_zhtw$data, 'HELP_9_Title', '9) Is the "Send Ether & Tokens" page offline? '), _defineProperty(_zhtw$data, 'HELP_9_Desc_1', 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. '), _defineProperty(_zhtw$data, 'HELP_10_Title', '10) How do I make an offline transaction? '), _defineProperty(_zhtw$data, 'HELP_10_Desc_1', 'Navigate to the "Offline Transaction" page via your online computer. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_2', 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_3', 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_4', 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_5', 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_6', 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_7', 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_8', 'Select your wallet file -or- your private key and unlock your wallet. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_9', 'Press the "GENERATE SIGNED TRANSACTION" button. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_10', 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. '), _defineProperty(_zhtw$data, 'HELP_10_Desc_11', 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. '), _defineProperty(_zhtw$data, 'HELP_12_Title', '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? '), _defineProperty(_zhtw$data, 'HELP_12_Desc_1', 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... '), _defineProperty(_zhtw$data, 'HELP_12_Desc_2', 'Go to the "View Wallet Info" page. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_3', 'Unlock your wallet using your **encrypted** private key or JSON file. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_4', 'Go to the "My Wallets" page. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_5', 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_6', 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_7', 'Open the Ethereum Wallet application. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_8', 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" '), _defineProperty(_zhtw$data, 'HELP_12_Desc_9', 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_10', 'Your account should show up immediately under "Accounts." '), _defineProperty(_zhtw$data, 'HELP_12_Desc_11', 'Using your unencrypted private key... '), _defineProperty(_zhtw$data, 'HELP_12_Desc_12', 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_13', 'Select your wallet file -or- enter/paste your private key to unlock your wallet. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_14', 'Copy Your Private Key (unencrypted). '), _defineProperty(_zhtw$data, 'HELP_12_Desc_15', 'If you are on a Mac '), _defineProperty(_zhtw$data, 'HELP_12_Desc_15b', 'If you are on a PC '), _defineProperty(_zhtw$data, 'HELP_12_Desc_16', 'Open Text Edit and paste this private key. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_17', 'Go to the menu bar and click "Format" -> "Make Plain Text". '), _defineProperty(_zhtw$data, 'HELP_12_Desc_18', 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_19', 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` '), _defineProperty(_zhtw$data, 'HELP_12_Desc_20', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_21', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_zhtw$data, 'HELP_12_Desc_22', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_zhtw$data, 'HELP_12_Desc_23', 'Open Notepad & paste the private key '), _defineProperty(_zhtw$data, 'HELP_12_Desc_24', 'Save the file as `nothing_special_delete_me.txt` at `C:` '), _defineProperty(_zhtw$data, 'HELP_12_Desc_25', 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` '), _defineProperty(_zhtw$data, 'HELP_12_Desc_26', 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. '), _defineProperty(_zhtw$data, 'HELP_12_Desc_27', 'After successful import, delete `nothing_special_delete_me.txt` '), _defineProperty(_zhtw$data, 'HELP_12_Desc_28', 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". '), _defineProperty(_zhtw$data, 'HELP_13_Title', '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? '), _defineProperty(_zhtw$data, 'HELP_13_Desc_1', 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. '), _defineProperty(_zhtw$data, 'HELP_14_Title', '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? '), _defineProperty(_zhtw$data, 'HELP_14_Desc_1', 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). '), _defineProperty(_zhtw$data, 'HELP_15_Title', '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) '), _defineProperty(_zhtw$data, 'HELP_15_Desc_1', 'Accounts will only show up in a blockchain explorer once the account has activity on it&mdash;for example, once you have transferred some Ether to it. '), _defineProperty(_zhtw$data, 'HELP_16_Title', '16) How do I check the balance of my account? '), _defineProperty(_zhtw$data, 'HELP_16_Desc_1', 'You can use a blockchain explorer like [etherscan.io](https://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](https://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io '), _defineProperty(_zhtw$data, 'HELP_17_Title', '17) Why isn\'t my balance showing up when I unlock my wallet? '), _defineProperty(_zhtw$data, 'HELP_17_Desc_1', ' This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io '), _defineProperty(_zhtw$data, 'HELP_18_Title', '18) Where is my geth wallet file? '), _defineProperty(_zhtw$data, 'HELP_19_Title', '19) Where is my Mist wallet file? '), _defineProperty(_zhtw$data, 'HELP_19_Desc_1', 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. '), _defineProperty(_zhtw$data, 'HELP_20_Title', '20) Where is my pre-sale wallet file? '), _defineProperty(_zhtw$data, 'HELP_20_Desc_1', 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. '), _defineProperty(_zhtw$data, 'HELP_21_Title', '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? '), _defineProperty(_zhtw$data, 'HELP_21_Desc_1', 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_2', 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_3', 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the worlds secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyones problems. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_4', 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_5', 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_6', 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_7', '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. '), _defineProperty(_zhtw$data, 'HELP_21_Desc_8', 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. '), _defineProperty(_zhtw$data, 'HELP_SecCX_Title', 'Security - MyEtherWallet CX '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_1', 'Where is this extension saving my information? '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_2', 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_3', 'What information is saved? '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_4', 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_5', 'Why aren\'t the nickname and wallet address encrypted? '), _defineProperty(_zhtw$data, 'HELP_SecCX_Desc_6', 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. '), _defineProperty(_zhtw$data, 'HELP_Sec_Title', '安全性 '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_1', 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_2', 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_3', 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_4', 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_5', 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_6', 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. '), _defineProperty(_zhtw$data, 'HELP_Sec_Desc_8', 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! '), _defineProperty(_zhtw$data, 'HELP_FAQ_Title', 'More Helpful Answers to Frequent Questions '), _defineProperty(_zhtw$data, 'HELP_Contact_Title', 'Ways to Get in Touch '), _zhtw$data);
module.exports = zhtw;
},{}],131:[function(require,module,exports){
(function (Buffer){
'use strict';
var uiFuncs = function uiFuncs() {};
uiFuncs.getTxData = function ($scope) {
return {
to: $scope.tx.to,
value: $scope.tx.value,
unit: $scope.tx.unit,
gasLimit: $scope.tx.gasLimit,
data: $scope.tx.data,
from: $scope.wallet.getAddressString(),
privKey: $scope.wallet.privKey ? $scope.wallet.getPrivateKeyString() : '',
path: $scope.wallet.getPath(),
hwType: $scope.wallet.getHWType(),
hwTransport: $scope.wallet.getHWTransport()
};
};
uiFuncs.isTxDataValid = function (txData) {
if (txData.to != "0xCONTRACT" && !ethFuncs.validateEtherAddress(txData.to)) throw globalFuncs.errorMsgs[5];else if (!globalFuncs.isNumeric(txData.value) || parseFloat(txData.value) < 0) throw globalFuncs.errorMsgs[0];else if (!globalFuncs.isNumeric(txData.gasLimit) || parseFloat(txData.gasLimit) <= 0) throw globalFuncs.errorMsgs[8];else if (!ethFuncs.validateHexString(txData.data)) throw globalFuncs.errorMsgs[9];
if (txData.to == "0xCONTRACT") txData.to = '';
};
uiFuncs.signTxTrezor = function (rawTx, txData, callback) {
var localCallback = function localCallback(result) {
if (!result.success) {
if (callback !== undefined) {
callback({
isError: true,
error: result.error
});
}
return;
}
rawTx.v = "0x" + ethFuncs.decimalToHex(result.v);
rawTx.r = "0x" + result.r;
rawTx.s = "0x" + result.s;
var eTx = new ethUtil.Tx(rawTx);
rawTx.rawTx = JSON.stringify(rawTx);
rawTx.signedTx = '0x' + eTx.serialize().toString('hex');
rawTx.isError = false;
if (callback !== undefined) callback(rawTx);
};
TrezorConnect.signEthereumTx(txData.path, ethFuncs.getNakedAddress(rawTx.nonce), ethFuncs.getNakedAddress(rawTx.gasPrice), ethFuncs.getNakedAddress(rawTx.gasLimit), ethFuncs.getNakedAddress(rawTx.to), ethFuncs.getNakedAddress(rawTx.value), ethFuncs.getNakedAddress(rawTx.data), rawTx.chainId, localCallback);
};
uiFuncs.signTxLedger = function (app, eTx, rawTx, txData, old, callback) {
eTx.raw[6] = Buffer.from([rawTx.chainId]);
eTx.raw[7] = eTx.raw[8] = 0;
var toHash = old ? eTx.raw.slice(0, 6) : eTx.raw;
var txToSign = ethUtil.rlp.encode(toHash);
var localCallback = function localCallback(result, error) {
if (typeof error != "undefined") {
error = error.errorCode ? u2f.getErrorByCode(error.errorCode) : error;
if (callback !== undefined) callback({
isError: true,
error: error
});
return;
}
rawTx.v = "0x" + result['v'];
rawTx.r = "0x" + result['r'];
rawTx.s = "0x" + result['s'];
eTx = new ethUtil.Tx(rawTx);
rawTx.rawTx = JSON.stringify(rawTx);
rawTx.signedTx = '0x' + eTx.serialize().toString('hex');
rawTx.isError = false;
if (callback !== undefined) callback(rawTx);
};
app.signTransaction(txData.path, txToSign.toString('hex'), localCallback);
};
uiFuncs.signTxDigitalBitbox = function (eTx, rawTx, txData, callback) {
var localCallback = function localCallback(result, error) {
if (typeof error != "undefined") {
error = error.errorCode ? u2f.getErrorByCode(error.errorCode) : error;
if (callback !== undefined) callback({
isError: true,
error: error
});
return;
}
uiFuncs.notifier.info("The transaction was signed but not sent. Click the blue 'Send Transaction' button to continue.");
rawTx.v = ethFuncs.sanitizeHex(result['v']);
rawTx.r = ethFuncs.sanitizeHex(result['r']);
rawTx.s = ethFuncs.sanitizeHex(result['s']);
var eTx_ = new ethUtil.Tx(rawTx);
rawTx.rawTx = JSON.stringify(rawTx);
rawTx.signedTx = ethFuncs.sanitizeHex(eTx_.serialize().toString('hex'));
rawTx.isError = false;
if (callback !== undefined) callback(rawTx);
};
uiFuncs.notifier.info("Touch the LED for 3 seconds to sign the transaction. Or tap the LED to cancel.");
var app = new DigitalBitboxEth(txData.hwTransport, '');
app.signTransaction(txData.path, eTx, localCallback);
};
uiFuncs.trezorUnlockCallback = function (txData, callback) {
TrezorConnect.open(function (error) {
if (error) {
if (callback !== undefined) callback({
isError: true,
error: error
});
} else {
txData.trezorUnlocked = true;
uiFuncs.generateTx(txData, callback);
}
});
};
uiFuncs.generateTx = function (txData, callback) {
if (typeof txData.hwType != "undefined" && txData.hwType == "trezor" && !txData.trezorUnlocked) {
uiFuncs.trezorUnlockCallback(txData, callback);
return;
}
try {
uiFuncs.isTxDataValid(txData);
var genTxWithInfo = function genTxWithInfo(data) {
var rawTx = {
nonce: ethFuncs.sanitizeHex(data.nonce),
gasPrice: data.isOffline ? ethFuncs.sanitizeHex(data.gasprice) : ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice)),
gasLimit: ethFuncs.sanitizeHex(ethFuncs.decimalToHex(txData.gasLimit)),
to: ethFuncs.sanitizeHex(txData.to),
value: ethFuncs.sanitizeHex(ethFuncs.decimalToHex(etherUnits.toWei(txData.value, txData.unit))),
data: ethFuncs.sanitizeHex(txData.data)
};
if (ajaxReq.eip155) rawTx.chainId = ajaxReq.chainId;
var eTx = new ethUtil.Tx(rawTx);
if (typeof txData.hwType != "undefined" && txData.hwType == "ledger") {
var app = new ledgerEth(txData.hwTransport);
var EIP155Supported = false;
var localCallback = function localCallback(result, error) {
if (typeof error != "undefined") {
if (callback !== undefined) callback({
isError: true,
error: error
});
return;
}
var splitVersion = result['version'].split('.');
if (parseInt(splitVersion[0]) > 1) {
EIP155Supported = true;
} else if (parseInt(splitVersion[1]) > 0) {
EIP155Supported = true;
} else if (parseInt(splitVersion[2]) > 2) {
EIP155Supported = true;
}
uiFuncs.signTxLedger(app, eTx, rawTx, txData, !EIP155Supported, callback);
};
app.getAppConfiguration(localCallback);
} else if (typeof txData.hwType != "undefined" && txData.hwType == "trezor") {
uiFuncs.signTxTrezor(rawTx, txData, callback);
} else if (typeof txData.hwType != "undefined" && txData.hwType == "web3") {
// for web3, we dont actually sign it here
// instead we put the final params in the "signedTx" field and
// wait for the confirmation dialogue / sendTx method
var txParams = Object.assign({ from: txData.from }, rawTx);
rawTx.rawTx = JSON.stringify(rawTx);
rawTx.signedTx = JSON.stringify(txParams);
rawTx.isError = false;
callback(rawTx);
} else if (typeof txData.hwType != "undefined" && txData.hwType == "digitalBitbox") {
uiFuncs.signTxDigitalBitbox(eTx, rawTx, txData, callback);
} else {
eTx.sign(new Buffer(txData.privKey, 'hex'));
rawTx.rawTx = JSON.stringify(rawTx);
rawTx.signedTx = '0x' + eTx.serialize().toString('hex');
rawTx.isError = false;
if (callback !== undefined) callback(rawTx);
}
};
if (txData.nonce || txData.gasPrice) {
var data = {
nonce: txData.nonce,
gasprice: txData.gasPrice
};
data.isOffline = txData.isOffline ? txData.isOffline : false;
genTxWithInfo(data);
} else {
ajaxReq.getTransactionData(txData.from, function (data) {
if (data.error && callback !== undefined) {
callback({
isError: true,
error: e
});
} else {
data = data.data;
data.isOffline = txData.isOffline ? txData.isOffline : false;
genTxWithInfo(data);
}
});
}
} catch (e) {
if (callback !== undefined) callback({
isError: true,
error: e
});
}
};
uiFuncs.sendTx = function (signedTx, callback) {
// check for web3 late signed tx
if (signedTx.slice(0, 2) !== '0x') {
var txParams = JSON.parse(signedTx);
window.web3.eth.sendTransaction(txParams, function (err, txHash) {
if (err) {
return callback({
isError: true,
error: err.stack
});
}
callback({ data: txHash });
});
return;
}
ajaxReq.sendRawTx(signedTx, function (data) {
var resp = {};
if (data.error) {
resp = {
isError: true,
error: data.msg
};
} else {
resp = {
isError: false,
data: data.data
};
}
if (callback !== undefined) callback(resp);
});
};
uiFuncs.transferAllBalance = function (fromAdd, gasLimit, callback) {
try {
ajaxReq.getTransactionData(fromAdd, function (data) {
if (data.error) throw data.msg;
data = data.data;
var gasPrice = new BigNumber(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice))).times(gasLimit);
var maxVal = new BigNumber(data.balance).minus(gasPrice);
maxVal = etherUnits.toEther(maxVal, 'wei') < 0 ? 0 : etherUnits.toEther(maxVal, 'wei');
if (callback !== undefined) callback({
isError: false,
unit: "ether",
value: maxVal
});
});
} catch (e) {
if (callback !== undefined) callback({
isError: true,
error: e
});
}
};
uiFuncs.notifier = {
alerts: {},
warning: function warning(msg) {
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5000;
this.addAlert("warning", msg, duration);
},
info: function info(msg) {
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5000;
this.addAlert("info", msg, duration);
},
danger: function danger(msg) {
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 7000;
msg = msg.message ? msg.message : msg;
// Danger messages can be translated based on the type of node
msg = globalFuncs.getEthNodeMsg(msg);
this.addAlert("danger", msg, duration);
},
success: function success(msg) {
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5000;
this.addAlert("success", msg, duration);
},
addAlert: function addAlert(type, msg, duration) {
if (duration == undefined) duration = 7000;
// Save all messages by unique id for removal
var id = Date.now();
alert = this.buildAlert(id, type, msg);
this.alerts[id] = alert;
var that = this;
if (duration > 0) {
// Support permanent messages
setTimeout(alert.close, duration);
}
if (!this.scope.$$phase) this.scope.$apply();
},
buildAlert: function buildAlert(id, type, msg) {
var that = this;
return {
show: true,
type: type,
message: msg,
close: function close() {
delete that.alerts[id];
if (!that.scope.$$phase) that.scope.$apply();
}
};
}
};
module.exports = uiFuncs;
}).call(this,require("buffer").Buffer)
},{"buffer":201}],132:[function(require,module,exports){
'use strict';
var validator = function validator() {};
validator.isValidAddress = function (address) {
if (address && address == "0x0000000000000000000000000000000000000000") return false;
if (address) return ethFuncs.validateEtherAddress(address);
return false;
};
validator.isChecksumAddress = function (address) {
return ethFuncs.isChecksumAddress(address);
};
validator.isValidENSorEtherAddress = function (address) {
return validator.isValidAddress(address) || validator.isValidENSAddress(address);
};
validator.isValidENSName = function (str) {
try {
return str.length > 6 && ens.normalise(str) != '' && str.substring(0, 2) != '0x';
} catch (e) {
return false;
}
};
validator.isValidTxHash = function (txHash) {
return txHash.substring(0, 2) == "0x" && txHash.length == 66 && this.isValidHex(txHash);
};
validator.isValidENSAddress = function (address) {
address = ens.normalise(address);
return address.lastIndexOf(".") != -1;
};
validator.isValidBTCAddress = function (address) {
return ethUtil.WAValidator.validate(address, 'BTC');
};
validator.isPositiveNumber = function (value) {
return globalFuncs.isNumeric(value) && parseFloat(value) >= 0;
};
validator.isValidHex = function (hex) {
return ethFuncs.validateHexString(hex);
};
validator.isValidPrivKey = function (privkeyLen) {
return privkeyLen == 64 || privkeyLen == 66 || privkeyLen == 128 || privkeyLen == 132;
};
validator.isValidMnemonic = function (mnemonic) {
return hd.bip39.validateMnemonic(mnemonic);
};
validator.isPasswordLenValid = function (pass, len) {
if (pass === 'undefined' || pass == null) return false;
return pass.length > len;
};
validator.isAlphaNumeric = function (value) {
return globalFuncs.isAlphaNumeric(value);
};
validator.isAlphaNumericSpace = function (value) {
if (!value) return false;
return globalFuncs.isAlphaNumeric(value.replace(/ /g, ''));
};
validator.isJSON = function (json) {
return ethUtil.solidityUtils.isJson(json);
};
validator.isValidURL = function (str) {
var pattern = new RegExp('^(https?:\\/\\/)' + // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
'(\\#[-a-z\\d_]*)?$', 'i'); // fragment locator
return pattern.test(str);
};
module.exports = validator;
},{}],133:[function(require,module,exports){
'use strict';
var Wallet = require('./myetherwallet.js');
var Web3Wallet = function Web3Wallet(addressBuffer) {
Wallet.call(this);
this.addressBuffer = addressBuffer;
this.type = "web3";
this.hwType = "web3";
};
// subclass Wallet
Web3Wallet.super_ = Wallet;
Web3Wallet.prototype = Object.create(Wallet.prototype);
Web3Wallet.prototype.getAddress = function () {
return this.addressBuffer;
};
// Web3Wallet.prototype.getPath = function() {
// throw new Error('Web3Wallet - method not supported')
// }
// Web3Wallet.prototype.getHWType = function() {
// throw new Error('Web3Wallet - method not supported')
// }
// Web3Wallet.prototype.getHWTransport = function() {
// throw new Error('Web3Wallet - method not supported')
// }
Web3Wallet.prototype.getPrivateKey = function () {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.getPrivateKeyString = function () {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.getPublicKey = function () {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.getPublicKeyString = function () {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.toV3 = function (password, opts) {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.toJSON = function () {
throw new Error('Web3Wallet - method not supported');
};
Web3Wallet.prototype.toV3String = function (password, opts) {
return JSON.stringify(this.toV3(password, opts));
};
Web3Wallet.prototype.getV3Filename = function (timestamp) {
var ts = timestamp ? new Date(timestamp) : new Date();
return ['UTC--', ts.toJSON().replace(/:/g, '-'), '--', this.getAddress().toString('hex')].join('');
};
module.exports = Web3Wallet;
},{"./myetherwallet.js":62}],134:[function(require,module,exports){
'use strict';
/**
* @license AngularJS v1.6.8
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
(function (window, angular) {
'use strict';
var ELEMENT_NODE = 1;
var COMMENT_NODE = 8;
var ADD_CLASS_SUFFIX = '-add';
var REMOVE_CLASS_SUFFIX = '-remove';
var EVENT_CLASS_PREFIX = 'ng-';
var ACTIVE_CLASS_SUFFIX = '-active';
var PREPARE_CLASS_SUFFIX = '-prepare';
var NG_ANIMATE_CLASSNAME = 'ng-animate';
var NG_ANIMATE_CHILDREN_DATA = '$$ngAnimateChildren';
// Detect proper transitionend/animationend event names.
var CSS_PREFIX = '',
TRANSITION_PROP,
TRANSITIONEND_EVENT,
ANIMATION_PROP,
ANIMATIONEND_EVENT;
// If unprefixed events are not supported but webkit-prefixed are, use the latter.
// Otherwise, just use W3C names, browsers not supporting them at all will just ignore them.
// Note: Chrome implements `window.onwebkitanimationend` and doesn't implement `window.onanimationend`
// but at the same time dispatches the `animationend` event and not `webkitAnimationEnd`.
// Register both events in case `window.onanimationend` is not supported because of that,
// do the same for `transitionend` as Safari is likely to exhibit similar behavior.
// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit
// therefore there is no reason to test anymore for other vendor prefixes:
// http://caniuse.com/#search=transition
if (window.ontransitionend === undefined && window.onwebkittransitionend !== undefined) {
CSS_PREFIX = '-webkit-';
TRANSITION_PROP = 'WebkitTransition';
TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';
} else {
TRANSITION_PROP = 'transition';
TRANSITIONEND_EVENT = 'transitionend';
}
if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) {
CSS_PREFIX = '-webkit-';
ANIMATION_PROP = 'WebkitAnimation';
ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';
} else {
ANIMATION_PROP = 'animation';
ANIMATIONEND_EVENT = 'animationend';
}
var DURATION_KEY = 'Duration';
var PROPERTY_KEY = 'Property';
var DELAY_KEY = 'Delay';
var TIMING_KEY = 'TimingFunction';
var ANIMATION_ITERATION_COUNT_KEY = 'IterationCount';
var ANIMATION_PLAYSTATE_KEY = 'PlayState';
var SAFE_FAST_FORWARD_DURATION_VALUE = 9999;
var ANIMATION_DELAY_PROP = ANIMATION_PROP + DELAY_KEY;
var ANIMATION_DURATION_PROP = ANIMATION_PROP + DURATION_KEY;
var TRANSITION_DELAY_PROP = TRANSITION_PROP + DELAY_KEY;
var TRANSITION_DURATION_PROP = TRANSITION_PROP + DURATION_KEY;
var ngMinErr = angular.$$minErr('ng');
function assertArg(arg, name, reason) {
if (!arg) {
throw ngMinErr('areq', 'Argument \'{0}\' is {1}', name || '?', reason || 'required');
}
return arg;
}
function mergeClasses(a, b) {
if (!a && !b) return '';
if (!a) return b;
if (!b) return a;
if (isArray(a)) a = a.join(' ');
if (isArray(b)) b = b.join(' ');
return a + ' ' + b;
}
function packageStyles(options) {
var styles = {};
if (options && (options.to || options.from)) {
styles.to = options.to;
styles.from = options.from;
}
return styles;
}
function pendClasses(classes, fix, isPrefix) {
var className = '';
classes = isArray(classes) ? classes : classes && isString(classes) && classes.length ? classes.split(/\s+/) : [];
forEach(classes, function (klass, i) {
if (klass && klass.length > 0) {
className += i > 0 ? ' ' : '';
className += isPrefix ? fix + klass : klass + fix;
}
});
return className;
}
function removeFromArray(arr, val) {
var index = arr.indexOf(val);
if (val >= 0) {
arr.splice(index, 1);
}
}
function stripCommentsFromElement(element) {
if (element instanceof jqLite) {
switch (element.length) {
case 0:
return element;
case 1:
// there is no point of stripping anything if the element
// is the only element within the jqLite wrapper.
// (it's important that we retain the element instance.)
if (element[0].nodeType === ELEMENT_NODE) {
return element;
}
break;
default:
return jqLite(extractElementNode(element));
}
}
if (element.nodeType === ELEMENT_NODE) {
return jqLite(element);
}
}
function extractElementNode(element) {
if (!element[0]) return element;
for (var i = 0; i < element.length; i++) {
var elm = element[i];
if (elm.nodeType === ELEMENT_NODE) {
return elm;
}
}
}
function $$addClass($$jqLite, element, className) {
forEach(element, function (elm) {
$$jqLite.addClass(elm, className);
});
}
function $$removeClass($$jqLite, element, className) {
forEach(element, function (elm) {
$$jqLite.removeClass(elm, className);
});
}
function applyAnimationClassesFactory($$jqLite) {
return function (element, options) {
if (options.addClass) {
$$addClass($$jqLite, element, options.addClass);
options.addClass = null;
}
if (options.removeClass) {
$$removeClass($$jqLite, element, options.removeClass);
options.removeClass = null;
}
};
}
function prepareAnimationOptions(options) {
options = options || {};
if (!options.$$prepared) {
var domOperation = options.domOperation || noop;
options.domOperation = function () {
options.$$domOperationFired = true;
domOperation();
domOperation = noop;
};
options.$$prepared = true;
}
return options;
}
function applyAnimationStyles(element, options) {
applyAnimationFromStyles(element, options);
applyAnimationToStyles(element, options);
}
function applyAnimationFromStyles(element, options) {
if (options.from) {
element.css(options.from);
options.from = null;
}
}
function applyAnimationToStyles(element, options) {
if (options.to) {
element.css(options.to);
options.to = null;
}
}
function mergeAnimationDetails(element, oldAnimation, newAnimation) {
var target = oldAnimation.options || {};
var newOptions = newAnimation.options || {};
var toAdd = (target.addClass || '') + ' ' + (newOptions.addClass || '');
var toRemove = (target.removeClass || '') + ' ' + (newOptions.removeClass || '');
var classes = resolveElementClasses(element.attr('class'), toAdd, toRemove);
if (newOptions.preparationClasses) {
target.preparationClasses = concatWithSpace(newOptions.preparationClasses, target.preparationClasses);
delete newOptions.preparationClasses;
}
// noop is basically when there is no callback; otherwise something has been set
var realDomOperation = target.domOperation !== noop ? target.domOperation : null;
extend(target, newOptions);
// TODO(matsko or sreeramu): proper fix is to maintain all animation callback in array and call at last,but now only leave has the callback so no issue with this.
if (realDomOperation) {
target.domOperation = realDomOperation;
}
if (classes.addClass) {
target.addClass = classes.addClass;
} else {
target.addClass = null;
}
if (classes.removeClass) {
target.removeClass = classes.removeClass;
} else {
target.removeClass = null;
}
oldAnimation.addClass = target.addClass;
oldAnimation.removeClass = target.removeClass;
return target;
}
function resolveElementClasses(existing, toAdd, toRemove) {
var ADD_CLASS = 1;
var REMOVE_CLASS = -1;
var flags = {};
existing = splitClassesToLookup(existing);
toAdd = splitClassesToLookup(toAdd);
forEach(toAdd, function (value, key) {
flags[key] = ADD_CLASS;
});
toRemove = splitClassesToLookup(toRemove);
forEach(toRemove, function (value, key) {
flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS;
});
var classes = {
addClass: '',
removeClass: ''
};
forEach(flags, function (val, klass) {
var prop, allow;
if (val === ADD_CLASS) {
prop = 'addClass';
allow = !existing[klass] || existing[klass + REMOVE_CLASS_SUFFIX];
} else if (val === REMOVE_CLASS) {
prop = 'removeClass';
allow = existing[klass] || existing[klass + ADD_CLASS_SUFFIX];
}
if (allow) {
if (classes[prop].length) {
classes[prop] += ' ';
}
classes[prop] += klass;
}
});
function splitClassesToLookup(classes) {
if (isString(classes)) {
classes = classes.split(' ');
}
var obj = {};
forEach(classes, function (klass) {
// sometimes the split leaves empty string values
// incase extra spaces were applied to the options
if (klass.length) {
obj[klass] = true;
}
});
return obj;
}
return classes;
}
function getDomNode(element) {
return element instanceof jqLite ? element[0] : element;
}
function applyGeneratedPreparationClasses(element, event, options) {
var classes = '';
if (event) {
classes = pendClasses(event, EVENT_CLASS_PREFIX, true);
}
if (options.addClass) {
classes = concatWithSpace(classes, pendClasses(options.addClass, ADD_CLASS_SUFFIX));
}
if (options.removeClass) {
classes = concatWithSpace(classes, pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX));
}
if (classes.length) {
options.preparationClasses = classes;
element.addClass(classes);
}
}
function clearGeneratedClasses(element, options) {
if (options.preparationClasses) {
element.removeClass(options.preparationClasses);
options.preparationClasses = null;
}
if (options.activeClasses) {
element.removeClass(options.activeClasses);
options.activeClasses = null;
}
}
function blockTransitions(node, duration) {
// we use a negative delay value since it performs blocking
// yet it doesn't kill any existing transitions running on the
// same element which makes this safe for class-based animations
var value = duration ? '-' + duration + 's' : '';
applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]);
return [TRANSITION_DELAY_PROP, value];
}
function blockKeyframeAnimations(node, applyBlock) {
var value = applyBlock ? 'paused' : '';
var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY;
applyInlineStyle(node, [key, value]);
return [key, value];
}
function applyInlineStyle(node, styleTuple) {
var prop = styleTuple[0];
var value = styleTuple[1];
node.style[prop] = value;
}
function concatWithSpace(a, b) {
if (!a) return b;
if (!b) return a;
return a + ' ' + b;
}
var $$rAFSchedulerFactory = ['$$rAF', function ($$rAF) {
var queue, cancelFn;
function scheduler(tasks) {
// we make a copy since RAFScheduler mutates the state
// of the passed in array variable and this would be difficult
// to track down on the outside code
queue = queue.concat(tasks);
nextTick();
}
queue = scheduler.queue = [];
/* waitUntilQuiet does two things:
* 1. It will run the FINAL `fn` value only when an uncanceled RAF has passed through
* 2. It will delay the next wave of tasks from running until the quiet `fn` has run.
*
* The motivation here is that animation code can request more time from the scheduler
* before the next wave runs. This allows for certain DOM properties such as classes to
* be resolved in time for the next animation to run.
*/
scheduler.waitUntilQuiet = function (fn) {
if (cancelFn) cancelFn();
cancelFn = $$rAF(function () {
cancelFn = null;
fn();
nextTick();
});
};
return scheduler;
function nextTick() {
if (!queue.length) return;
var items = queue.shift();
for (var i = 0; i < items.length; i++) {
items[i]();
}
if (!cancelFn) {
$$rAF(function () {
if (!cancelFn) nextTick();
});
}
}
}];
/**
* @ngdoc directive
* @name ngAnimateChildren
* @restrict AE
* @element ANY
*
* @description
*
* ngAnimateChildren allows you to specify that children of this element should animate even if any
* of the children's parents are currently animating. By default, when an element has an active `enter`, `leave`, or `move`
* (structural) animation, child elements that also have an active structural animation are not animated.
*
* Note that even if `ngAnimateChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation).
*
*
* @param {string} ngAnimateChildren If the value is empty, `true` or `on`,
* then child animations are allowed. If the value is `false`, child animations are not allowed.
*
* @example
* <example module="ngAnimateChildren" name="ngAnimateChildren" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-controller="MainController as main">
<label>Show container? <input type="checkbox" ng-model="main.enterElement" /></label>
<label>Animate children? <input type="checkbox" ng-model="main.animateChildren" /></label>
<hr>
<div ng-animate-children="{{main.animateChildren}}">
<div ng-if="main.enterElement" class="container">
List of items:
<div ng-repeat="item in [0, 1, 2, 3]" class="item">Item {{item}}</div>
</div>
</div>
</div>
</file>
<file name="animations.css">
.container.ng-enter,
.container.ng-leave {
transition: all ease 1.5s;
}
.container.ng-enter,
.container.ng-leave-active {
opacity: 0;
}
.container.ng-leave,
.container.ng-enter-active {
opacity: 1;
}
.item {
background: firebrick;
color: #FFF;
margin-bottom: 10px;
}
.item.ng-enter,
.item.ng-leave {
transition: transform 1.5s ease;
}
.item.ng-enter {
transform: translateX(50px);
}
.item.ng-enter-active {
transform: translateX(0);
}
</file>
<file name="script.js">
angular.module('ngAnimateChildren', ['ngAnimate'])
.controller('MainController', function MainController() {
this.animateChildren = false;
this.enterElement = false;
});
</file>
</example>
*/
var $$AnimateChildrenDirective = ['$interpolate', function ($interpolate) {
return {
link: function link(scope, element, attrs) {
var val = attrs.ngAnimateChildren;
if (isString(val) && val.length === 0) {
//empty attribute
element.data(NG_ANIMATE_CHILDREN_DATA, true);
} else {
// Interpolate and set the value, so that it is available to
// animations that run right after compilation
setData($interpolate(val)(scope));
attrs.$observe('ngAnimateChildren', setData);
}
function setData(value) {
value = value === 'on' || value === 'true';
element.data(NG_ANIMATE_CHILDREN_DATA, value);
}
}
};
}];
/* exported $AnimateCssProvider */
var ANIMATE_TIMER_KEY = '$$animateCss';
/**
* @ngdoc service
* @name $animateCss
* @kind object
*
* @description
* The `$animateCss` service is a useful utility to trigger customized CSS-based transitions/keyframes
* from a JavaScript-based animation or directly from a directive. The purpose of `$animateCss` is NOT
* to side-step how `$animate` and ngAnimate work, but the goal is to allow pre-existing animations or
* directives to create more complex animations that can be purely driven using CSS code.
*
* Note that only browsers that support CSS transitions and/or keyframe animations are capable of
* rendering animations triggered via `$animateCss` (bad news for IE9 and lower).
*
* ## General Use
* Once again, `$animateCss` is designed to be used inside of a registered JavaScript animation that
* is powered by ngAnimate. It is possible to use `$animateCss` directly inside of a directive, however,
* any automatic control over cancelling animations and/or preventing animations from being run on
* child elements will not be handled by Angular. For this to work as expected, please use `$animate` to
* trigger the animation and then setup a JavaScript animation that injects `$animateCss` to trigger
* the CSS animation.
*
* The example below shows how we can create a folding animation on an element using `ng-if`:
*
* ```html
* <!-- notice the `fold-animation` CSS class -->
* <div ng-if="onOff" class="fold-animation">
* This element will go BOOM
* </div>
* <button ng-click="onOff=true">Fold In</button>
* ```
*
* Now we create the **JavaScript animation** that will trigger the CSS transition:
*
* ```js
* ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) {
* return {
* enter: function(element, doneFn) {
* var height = element[0].offsetHeight;
* return $animateCss(element, {
* from: { height:'0px' },
* to: { height:height + 'px' },
* duration: 1 // one second
* });
* }
* }
* }]);
* ```
*
* ## More Advanced Uses
*
* `$animateCss` is the underlying code that ngAnimate uses to power **CSS-based animations** behind the scenes. Therefore CSS hooks
* like `.ng-EVENT`, `.ng-EVENT-active`, `.ng-EVENT-stagger` are all features that can be triggered using `$animateCss` via JavaScript code.
*
* This also means that just about any combination of adding classes, removing classes, setting styles, dynamically setting a keyframe animation,
* applying a hardcoded duration or delay value, changing the animation easing or applying a stagger animation are all options that work with
* `$animateCss`. The service itself is smart enough to figure out the combination of options and examine the element styling properties in order
* to provide a working animation that will run in CSS.
*
* The example below showcases a more advanced version of the `.fold-animation` from the example above:
*
* ```js
* ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) {
* return {
* enter: function(element, doneFn) {
* var height = element[0].offsetHeight;
* return $animateCss(element, {
* addClass: 'red large-text pulse-twice',
* easing: 'ease-out',
* from: { height:'0px' },
* to: { height:height + 'px' },
* duration: 1 // one second
* });
* }
* }
* }]);
* ```
*
* Since we're adding/removing CSS classes then the CSS transition will also pick those up:
*
* ```css
* /&#42; since a hardcoded duration value of 1 was provided in the JavaScript animation code,
* the CSS classes below will be transitioned despite them being defined as regular CSS classes &#42;/
* .red { background:red; }
* .large-text { font-size:20px; }
*
* /&#42; we can also use a keyframe animation and $animateCss will make it work alongside the transition &#42;/
* .pulse-twice {
* animation: 0.5s pulse linear 2;
* -webkit-animation: 0.5s pulse linear 2;
* }
*
* @keyframes pulse {
* from { transform: scale(0.5); }
* to { transform: scale(1.5); }
* }
*
* @-webkit-keyframes pulse {
* from { -webkit-transform: scale(0.5); }
* to { -webkit-transform: scale(1.5); }
* }
* ```
*
* Given this complex combination of CSS classes, styles and options, `$animateCss` will figure everything out and make the animation happen.
*
* ## How the Options are handled
*
* `$animateCss` is very versatile and intelligent when it comes to figuring out what configurations to apply to the element to ensure the animation
* works with the options provided. Say for example we were adding a class that contained a keyframe value and we wanted to also animate some inline
* styles using the `from` and `to` properties.
*
* ```js
* var animator = $animateCss(element, {
* from: { background:'red' },
* to: { background:'blue' }
* });
* animator.start();
* ```
*
* ```css
* .rotating-animation {
* animation:0.5s rotate linear;
* -webkit-animation:0.5s rotate linear;
* }
*
* @keyframes rotate {
* from { transform: rotate(0deg); }
* to { transform: rotate(360deg); }
* }
*
* @-webkit-keyframes rotate {
* from { -webkit-transform: rotate(0deg); }
* to { -webkit-transform: rotate(360deg); }
* }
* ```
*
* The missing pieces here are that we do not have a transition set (within the CSS code nor within the `$animateCss` options) and the duration of the animation is
* going to be detected from what the keyframe styles on the CSS class are. In this event, `$animateCss` will automatically create an inline transition
* style matching the duration detected from the keyframe style (which is present in the CSS class that is being added) and then prepare both the transition
* and keyframe animations to run in parallel on the element. Then when the animation is underway the provided `from` and `to` CSS styles will be applied
* and spread across the transition and keyframe animation.
*
* ## What is returned
*
* `$animateCss` works in two stages: a preparation phase and an animation phase. Therefore when `$animateCss` is first called it will NOT actually
* start the animation. All that is going on here is that the element is being prepared for the animation (which means that the generated CSS classes are
* added and removed on the element). Once `$animateCss` is called it will return an object with the following properties:
*
* ```js
* var animator = $animateCss(element, { ... });
* ```
*
* Now what do the contents of our `animator` variable look like:
*
* ```js
* {
* // starts the animation
* start: Function,
*
* // ends (aborts) the animation
* end: Function
* }
* ```
*
* To actually start the animation we need to run `animation.start()` which will then return a promise that we can hook into to detect when the animation ends.
* If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and styles may have been
* applied to the element during the preparation phase). Note that all other properties such as duration, delay, transitions and keyframes are just properties
* and that changing them will not reconfigure the parameters of the animation.
*
* ### runner.done() vs runner.then()
* It is documented that `animation.start()` will return a promise object and this is true, however, there is also an additional method available on the
* runner called `.done(callbackFn)`. The done method works the same as `.finally(callbackFn)`, however, it does **not trigger a digest to occur**.
* Therefore, for performance reasons, it's always best to use `runner.done(callback)` instead of `runner.then()`, `runner.catch()` or `runner.finally()`
* unless you really need a digest to kick off afterwards.
*
* Keep in mind that, to make this easier, ngAnimate has tweaked the JS animations API to recognize when a runner instance is returned from $animateCss
* (so there is no need to call `runner.done(doneFn)` inside of your JavaScript animation code).
* Check the {@link ngAnimate.$animateCss#usage animation code above} to see how this works.
*
* @param {DOMElement} element the element that will be animated
* @param {object} options the animation-related options that will be applied during the animation
*
* * `event` - The DOM event (e.g. enter, leave, move). When used, a generated CSS class of `ng-EVENT` and `ng-EVENT-active` will be applied
* to the element during the animation. Multiple events can be provided when spaces are used as a separator. (Note that this will not perform any DOM operation.)
* * `structural` - Indicates that the `ng-` prefix will be added to the event class. Setting to `false` or omitting will turn `ng-EVENT` and
* `ng-EVENT-active` in `EVENT` and `EVENT-active`. Unused if `event` is omitted.
* * `easing` - The CSS easing value that will be applied to the transition or keyframe animation (or both).
* * `transitionStyle` - The raw CSS transition style that will be used (e.g. `1s linear all`).
* * `keyframeStyle` - The raw CSS keyframe animation style that will be used (e.g. `1s my_animation linear`).
* * `from` - The starting CSS styles (a key/value object) that will be applied at the start of the animation.
* * `to` - The ending CSS styles (a key/value object) that will be applied across the animation via a CSS transition.
* * `addClass` - A space separated list of CSS classes that will be added to the element and spread across the animation.
* * `removeClass` - A space separated list of CSS classes that will be removed from the element and spread across the animation.
* * `duration` - A number value representing the total duration of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `0`
* is provided then the animation will be skipped entirely.
* * `delay` - A number value representing the total delay of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `true` is
* used then whatever delay value is detected from the CSS classes will be mirrored on the elements styles (e.g. by setting delay true then the style value
* of the element will be `transition-delay: DETECTED_VALUE`). Using `true` is useful when you want the CSS classes and inline styles to all share the same
* CSS delay value.
* * `stagger` - A numeric time value representing the delay between successively animated elements
* ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.})
* * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a
* `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`)
* * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occurring on the classes being added and removed.)
* * `cleanupStyles` - Whether or not the provided `from` and `to` styles will be removed once
* the animation is closed. This is useful for when the styles are used purely for the sake of
* the animation and do not have a lasting visual effect on the element (e.g. a collapse and open animation).
* By default this value is set to `false`.
*
* @return {object} an object with start and end methods and details about the animation.
*
* * `start` - The method to start the animation. This will return a `Promise` when called.
* * `end` - This method will cancel the animation and remove all applied CSS classes and styles.
*/
var ONE_SECOND = 1000;
var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
var CLOSING_TIME_BUFFER = 1.5;
var DETECT_CSS_PROPERTIES = {
transitionDuration: TRANSITION_DURATION_PROP,
transitionDelay: TRANSITION_DELAY_PROP,
transitionProperty: TRANSITION_PROP + PROPERTY_KEY,
animationDuration: ANIMATION_DURATION_PROP,
animationDelay: ANIMATION_DELAY_PROP,
animationIterationCount: ANIMATION_PROP + ANIMATION_ITERATION_COUNT_KEY
};
var DETECT_STAGGER_CSS_PROPERTIES = {
transitionDuration: TRANSITION_DURATION_PROP,
transitionDelay: TRANSITION_DELAY_PROP,
animationDuration: ANIMATION_DURATION_PROP,
animationDelay: ANIMATION_DELAY_PROP
};
function getCssKeyframeDurationStyle(duration) {
return [ANIMATION_DURATION_PROP, duration + 's'];
}
function getCssDelayStyle(delay, isKeyframeAnimation) {
var prop = isKeyframeAnimation ? ANIMATION_DELAY_PROP : TRANSITION_DELAY_PROP;
return [prop, delay + 's'];
}
function computeCssStyles($window, element, properties) {
var styles = Object.create(null);
var detectedStyles = $window.getComputedStyle(element) || {};
forEach(properties, function (formalStyleName, actualStyleName) {
var val = detectedStyles[formalStyleName];
if (val) {
var c = val.charAt(0);
// only numerical-based values have a negative sign or digit as the first value
if (c === '-' || c === '+' || c >= 0) {
val = parseMaxTime(val);
}
// by setting this to null in the event that the delay is not set or is set directly as 0
// then we can still allow for negative values to be used later on and not mistake this
// value for being greater than any other negative value.
if (val === 0) {
val = null;
}
styles[actualStyleName] = val;
}
});
return styles;
}
function parseMaxTime(str) {
var maxValue = 0;
var values = str.split(/\s*,\s*/);
forEach(values, function (value) {
// it's always safe to consider only second values and omit `ms` values since
// getComputedStyle will always handle the conversion for us
if (value.charAt(value.length - 1) === 's') {
value = value.substring(0, value.length - 1);
}
value = parseFloat(value) || 0;
maxValue = maxValue ? Math.max(value, maxValue) : value;
});
return maxValue;
}
function truthyTimingValue(val) {
return val === 0 || val != null;
}
function getCssTransitionDurationStyle(duration, applyOnlyDuration) {
var style = TRANSITION_PROP;
var value = duration + 's';
if (applyOnlyDuration) {
style += DURATION_KEY;
} else {
value += ' linear all';
}
return [style, value];
}
function createLocalCacheLookup() {
var cache = Object.create(null);
return {
flush: function flush() {
cache = Object.create(null);
},
count: function count(key) {
var entry = cache[key];
return entry ? entry.total : 0;
},
get: function get(key) {
var entry = cache[key];
return entry && entry.value;
},
put: function put(key, value) {
if (!cache[key]) {
cache[key] = { total: 1, value: value };
} else {
cache[key].total++;
}
}
};
}
// we do not reassign an already present style value since
// if we detect the style property value again we may be
// detecting styles that were added via the `from` styles.
// We make use of `isDefined` here since an empty string
// or null value (which is what getPropertyValue will return
// for a non-existing style) will still be marked as a valid
// value for the style (a falsy value implies that the style
// is to be removed at the end of the animation). If we had a simple
// "OR" statement then it would not be enough to catch that.
function registerRestorableStyles(backup, node, properties) {
forEach(properties, function (prop) {
backup[prop] = isDefined(backup[prop]) ? backup[prop] : node.style.getPropertyValue(prop);
});
}
var $AnimateCssProvider = ['$animateProvider', /** @this */function ($animateProvider) {
var gcsLookup = createLocalCacheLookup();
var gcsStaggerLookup = createLocalCacheLookup();
this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue', function ($window, $$jqLite, $$AnimateRunner, $timeout, $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) {
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
var parentCounter = 0;
function gcsHashFn(node, extraClasses) {
var KEY = '$$ngAnimateParentKey';
var parentNode = node.parentNode;
var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter);
return parentID + '-' + node.getAttribute('class') + '-' + extraClasses;
}
function computeCachedCssStyles(node, className, cacheKey, properties) {
var timings = gcsLookup.get(cacheKey);
if (!timings) {
timings = computeCssStyles($window, node, properties);
if (timings.animationIterationCount === 'infinite') {
timings.animationIterationCount = 1;
}
}
// we keep putting this in multiple times even though the value and the cacheKey are the same
// because we're keeping an internal tally of how many duplicate animations are detected.
gcsLookup.put(cacheKey, timings);
return timings;
}
function computeCachedCssStaggerStyles(node, className, cacheKey, properties) {
var stagger;
// if we have one or more existing matches of matching elements
// containing the same parent + CSS styles (which is how cacheKey works)
// then staggering is possible
if (gcsLookup.count(cacheKey) > 0) {
stagger = gcsStaggerLookup.get(cacheKey);
if (!stagger) {
var staggerClassName = pendClasses(className, '-stagger');
$$jqLite.addClass(node, staggerClassName);
stagger = computeCssStyles($window, node, properties);
// force the conversion of a null value to zero incase not set
stagger.animationDuration = Math.max(stagger.animationDuration, 0);
stagger.transitionDuration = Math.max(stagger.transitionDuration, 0);
$$jqLite.removeClass(node, staggerClassName);
gcsStaggerLookup.put(cacheKey, stagger);
}
}
return stagger || {};
}
var rafWaitQueue = [];
function waitUntilQuiet(callback) {
rafWaitQueue.push(callback);
$$rAFScheduler.waitUntilQuiet(function () {
gcsLookup.flush();
gcsStaggerLookup.flush();
// DO NOT REMOVE THIS LINE OR REFACTOR OUT THE `pageWidth` variable.
// PLEASE EXAMINE THE `$$forceReflow` service to understand why.
var pageWidth = $$forceReflow();
// we use a for loop to ensure that if the queue is changed
// during this looping then it will consider new requests
for (var i = 0; i < rafWaitQueue.length; i++) {
rafWaitQueue[i](pageWidth);
}
rafWaitQueue.length = 0;
});
}
function computeTimings(node, className, cacheKey) {
var timings = computeCachedCssStyles(node, className, cacheKey, DETECT_CSS_PROPERTIES);
var aD = timings.animationDelay;
var tD = timings.transitionDelay;
timings.maxDelay = aD && tD ? Math.max(aD, tD) : aD || tD;
timings.maxDuration = Math.max(timings.animationDuration * timings.animationIterationCount, timings.transitionDuration);
return timings;
}
return function init(element, initialOptions) {
// all of the animation functions should create
// a copy of the options data, however, if a
// parent service has already created a copy then
// we should stick to using that
var options = initialOptions || {};
if (!options.$$prepared) {
options = prepareAnimationOptions(copy(options));
}
var restoreStyles = {};
var node = getDomNode(element);
if (!node || !node.parentNode || !$$animateQueue.enabled()) {
return closeAndReturnNoopAnimator();
}
var temporaryStyles = [];
var classes = element.attr('class');
var styles = packageStyles(options);
var animationClosed;
var animationPaused;
var animationCompleted;
var runner;
var runnerHost;
var maxDelay;
var maxDelayTime;
var maxDuration;
var maxDurationTime;
var startTime;
var events = [];
if (options.duration === 0 || !$sniffer.animations && !$sniffer.transitions) {
return closeAndReturnNoopAnimator();
}
var method = options.event && isArray(options.event) ? options.event.join(' ') : options.event;
var isStructural = method && options.structural;
var structuralClassName = '';
var addRemoveClassName = '';
if (isStructural) {
structuralClassName = pendClasses(method, EVENT_CLASS_PREFIX, true);
} else if (method) {
structuralClassName = method;
}
if (options.addClass) {
addRemoveClassName += pendClasses(options.addClass, ADD_CLASS_SUFFIX);
}
if (options.removeClass) {
if (addRemoveClassName.length) {
addRemoveClassName += ' ';
}
addRemoveClassName += pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX);
}
// there may be a situation where a structural animation is combined together
// with CSS classes that need to resolve before the animation is computed.
// However this means that there is no explicit CSS code to block the animation
// from happening (by setting 0s none in the class name). If this is the case
// we need to apply the classes before the first rAF so we know to continue if
// there actually is a detected transition or keyframe animation
if (options.applyClassesEarly && addRemoveClassName.length) {
applyAnimationClasses(element, options);
}
var preparationClasses = [structuralClassName, addRemoveClassName].join(' ').trim();
var fullClassName = classes + ' ' + preparationClasses;
var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX);
var hasToStyles = styles.to && Object.keys(styles.to).length > 0;
var containsKeyframeAnimation = (options.keyframeStyle || '').length > 0;
// there is no way we can trigger an animation if no styles and
// no classes are being applied which would then trigger a transition,
// unless there a is raw keyframe value that is applied to the element.
if (!containsKeyframeAnimation && !hasToStyles && !preparationClasses) {
return closeAndReturnNoopAnimator();
}
var cacheKey, stagger;
if (options.stagger > 0) {
var staggerVal = parseFloat(options.stagger);
stagger = {
transitionDelay: staggerVal,
animationDelay: staggerVal,
transitionDuration: 0,
animationDuration: 0
};
} else {
cacheKey = gcsHashFn(node, fullClassName);
stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES);
}
if (!options.$$skipPreparationClasses) {
$$jqLite.addClass(element, preparationClasses);
}
var applyOnlyDuration;
if (options.transitionStyle) {
var transitionStyle = [TRANSITION_PROP, options.transitionStyle];
applyInlineStyle(node, transitionStyle);
temporaryStyles.push(transitionStyle);
}
if (options.duration >= 0) {
applyOnlyDuration = node.style[TRANSITION_PROP].length > 0;
var durationStyle = getCssTransitionDurationStyle(options.duration, applyOnlyDuration);
// we set the duration so that it will be picked up by getComputedStyle later
applyInlineStyle(node, durationStyle);
temporaryStyles.push(durationStyle);
}
if (options.keyframeStyle) {
var keyframeStyle = [ANIMATION_PROP, options.keyframeStyle];
applyInlineStyle(node, keyframeStyle);
temporaryStyles.push(keyframeStyle);
}
var itemIndex = stagger ? options.staggerIndex >= 0 ? options.staggerIndex : gcsLookup.count(cacheKey) : 0;
var isFirst = itemIndex === 0;
// this is a pre-emptive way of forcing the setup classes to be added and applied INSTANTLY
// without causing any combination of transitions to kick in. By adding a negative delay value
// it forces the setup class' transition to end immediately. We later then remove the negative
// transition delay to allow for the transition to naturally do it's thing. The beauty here is
// that if there is no transition defined then nothing will happen and this will also allow
// other transitions to be stacked on top of each other without any chopping them out.
if (isFirst && !options.skipBlocking) {
blockTransitions(node, SAFE_FAST_FORWARD_DURATION_VALUE);
}
var timings = computeTimings(node, fullClassName, cacheKey);
var relativeDelay = timings.maxDelay;
maxDelay = Math.max(relativeDelay, 0);
maxDuration = timings.maxDuration;
var flags = {};
flags.hasTransitions = timings.transitionDuration > 0;
flags.hasAnimations = timings.animationDuration > 0;
flags.hasTransitionAll = flags.hasTransitions && timings.transitionProperty === 'all';
flags.applyTransitionDuration = hasToStyles && (flags.hasTransitions && !flags.hasTransitionAll || flags.hasAnimations && !flags.hasTransitions);
flags.applyAnimationDuration = options.duration && flags.hasAnimations;
flags.applyTransitionDelay = truthyTimingValue(options.delay) && (flags.applyTransitionDuration || flags.hasTransitions);
flags.applyAnimationDelay = truthyTimingValue(options.delay) && flags.hasAnimations;
flags.recalculateTimingStyles = addRemoveClassName.length > 0;
if (flags.applyTransitionDuration || flags.applyAnimationDuration) {
maxDuration = options.duration ? parseFloat(options.duration) : maxDuration;
if (flags.applyTransitionDuration) {
flags.hasTransitions = true;
timings.transitionDuration = maxDuration;
applyOnlyDuration = node.style[TRANSITION_PROP + PROPERTY_KEY].length > 0;
temporaryStyles.push(getCssTransitionDurationStyle(maxDuration, applyOnlyDuration));
}
if (flags.applyAnimationDuration) {
flags.hasAnimations = true;
timings.animationDuration = maxDuration;
temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration));
}
}
if (maxDuration === 0 && !flags.recalculateTimingStyles) {
return closeAndReturnNoopAnimator();
}
if (options.delay != null) {
var delayStyle;
if (typeof options.delay !== 'boolean') {
delayStyle = parseFloat(options.delay);
// number in options.delay means we have to recalculate the delay for the closing timeout
maxDelay = Math.max(delayStyle, 0);
}
if (flags.applyTransitionDelay) {
temporaryStyles.push(getCssDelayStyle(delayStyle));
}
if (flags.applyAnimationDelay) {
temporaryStyles.push(getCssDelayStyle(delayStyle, true));
}
}
// we need to recalculate the delay value since we used a pre-emptive negative
// delay value and the delay value is required for the final event checking. This
// property will ensure that this will happen after the RAF phase has passed.
if (options.duration == null && timings.transitionDuration > 0) {
flags.recalculateTimingStyles = flags.recalculateTimingStyles || isFirst;
}
maxDelayTime = maxDelay * ONE_SECOND;
maxDurationTime = maxDuration * ONE_SECOND;
if (!options.skipBlocking) {
flags.blockTransition = timings.transitionDuration > 0;
flags.blockKeyframeAnimation = timings.animationDuration > 0 && stagger.animationDelay > 0 && stagger.animationDuration === 0;
}
if (options.from) {
if (options.cleanupStyles) {
registerRestorableStyles(restoreStyles, node, Object.keys(options.from));
}
applyAnimationFromStyles(element, options);
}
if (flags.blockTransition || flags.blockKeyframeAnimation) {
applyBlocking(maxDuration);
} else if (!options.skipBlocking) {
blockTransitions(node, false);
}
// TODO(matsko): for 1.5 change this code to have an animator object for better debugging
return {
$$willAnimate: true,
end: endFn,
start: function start() {
if (animationClosed) return;
runnerHost = {
end: endFn,
cancel: cancelFn,
resume: null, //this will be set during the start() phase
pause: null
};
runner = new $$AnimateRunner(runnerHost);
waitUntilQuiet(_start);
// we don't have access to pause/resume the animation
// since it hasn't run yet. AnimateRunner will therefore
// set noop functions for resume and pause and they will
// later be overridden once the animation is triggered
return runner;
}
};
function endFn() {
close();
}
function cancelFn() {
close(true);
}
function close(rejected) {
// if the promise has been called already then we shouldn't close
// the animation again
if (animationClosed || animationCompleted && animationPaused) return;
animationClosed = true;
animationPaused = false;
if (!options.$$skipPreparationClasses) {
$$jqLite.removeClass(element, preparationClasses);
}
$$jqLite.removeClass(element, activeClasses);
blockKeyframeAnimations(node, false);
blockTransitions(node, false);
forEach(temporaryStyles, function (entry) {
// There is only one way to remove inline style properties entirely from elements.
// By using `removeProperty` this works, but we need to convert camel-cased CSS
// styles down to hyphenated values.
node.style[entry[0]] = '';
});
applyAnimationClasses(element, options);
applyAnimationStyles(element, options);
if (Object.keys(restoreStyles).length) {
forEach(restoreStyles, function (value, prop) {
if (value) {
node.style.setProperty(prop, value);
} else {
node.style.removeProperty(prop);
}
});
}
// the reason why we have this option is to allow a synchronous closing callback
// that is fired as SOON as the animation ends (when the CSS is removed) or if
// the animation never takes off at all. A good example is a leave animation since
// the element must be removed just after the animation is over or else the element
// will appear on screen for one animation frame causing an overbearing flicker.
if (options.onDone) {
options.onDone();
}
if (events && events.length) {
// Remove the transitionend / animationend listener(s)
element.off(events.join(' '), onAnimationProgress);
}
//Cancel the fallback closing timeout and remove the timer data
var animationTimerData = element.data(ANIMATE_TIMER_KEY);
if (animationTimerData) {
$timeout.cancel(animationTimerData[0].timer);
element.removeData(ANIMATE_TIMER_KEY);
}
// if the preparation function fails then the promise is not setup
if (runner) {
runner.complete(!rejected);
}
}
function applyBlocking(duration) {
if (flags.blockTransition) {
blockTransitions(node, duration);
}
if (flags.blockKeyframeAnimation) {
blockKeyframeAnimations(node, !!duration);
}
}
function closeAndReturnNoopAnimator() {
runner = new $$AnimateRunner({
end: endFn,
cancel: cancelFn
});
// should flush the cache animation
waitUntilQuiet(noop);
close();
return {
$$willAnimate: false,
start: function start() {
return runner;
},
end: endFn
};
}
function onAnimationProgress(event) {
event.stopPropagation();
var ev = event.originalEvent || event;
if (ev.target !== node) {
// Since TransitionEvent / AnimationEvent bubble up,
// we have to ignore events by finished child animations
return;
}
// we now always use `Date.now()` due to the recent changes with
// event.timeStamp in Firefox, Webkit and Chrome (see #13494 for more info)
var timeStamp = ev.$manualTimeStamp || Date.now();
/* Firefox (or possibly just Gecko) likes to not round values up
* when a ms measurement is used for the animation */
var elapsedTime = parseFloat(ev.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES));
/* $manualTimeStamp is a mocked timeStamp value which is set
* within browserTrigger(). This is only here so that tests can
* mock animations properly. Real events fallback to event.timeStamp,
* or, if they don't, then a timeStamp is automatically created for them.
* We're checking to see if the timeStamp surpasses the expected delay,
* but we're using elapsedTime instead of the timeStamp on the 2nd
* pre-condition since animationPauseds sometimes close off early */
if (Math.max(timeStamp - startTime, 0) >= maxDelayTime && elapsedTime >= maxDuration) {
// we set this flag to ensure that if the transition is paused then, when resumed,
// the animation will automatically close itself since transitions cannot be paused.
animationCompleted = true;
close();
}
}
function _start() {
if (animationClosed) return;
if (!node.parentNode) {
close();
return;
}
// even though we only pause keyframe animations here the pause flag
// will still happen when transitions are used. Only the transition will
// not be paused since that is not possible. If the animation ends when
// paused then it will not complete until unpaused or cancelled.
var playPause = function playPause(playAnimation) {
if (!animationCompleted) {
animationPaused = !playAnimation;
if (timings.animationDuration) {
var value = blockKeyframeAnimations(node, animationPaused);
if (animationPaused) {
temporaryStyles.push(value);
} else {
removeFromArray(temporaryStyles, value);
}
}
} else if (animationPaused && playAnimation) {
animationPaused = false;
close();
}
};
// checking the stagger duration prevents an accidentally cascade of the CSS delay style
// being inherited from the parent. If the transition duration is zero then we can safely
// rely that the delay value is an intentional stagger delay style.
var maxStagger = itemIndex > 0 && (timings.transitionDuration && stagger.transitionDuration === 0 || timings.animationDuration && stagger.animationDuration === 0) && Math.max(stagger.animationDelay, stagger.transitionDelay);
if (maxStagger) {
$timeout(triggerAnimationStart, Math.floor(maxStagger * itemIndex * ONE_SECOND), false);
} else {
triggerAnimationStart();
}
// this will decorate the existing promise runner with pause/resume methods
runnerHost.resume = function () {
playPause(true);
};
runnerHost.pause = function () {
playPause(false);
};
function triggerAnimationStart() {
// just incase a stagger animation kicks in when the animation
// itself was cancelled entirely
if (animationClosed) return;
applyBlocking(false);
forEach(temporaryStyles, function (entry) {
var key = entry[0];
var value = entry[1];
node.style[key] = value;
});
applyAnimationClasses(element, options);
$$jqLite.addClass(element, activeClasses);
if (flags.recalculateTimingStyles) {
fullClassName = node.getAttribute('class') + ' ' + preparationClasses;
cacheKey = gcsHashFn(node, fullClassName);
timings = computeTimings(node, fullClassName, cacheKey);
relativeDelay = timings.maxDelay;
maxDelay = Math.max(relativeDelay, 0);
maxDuration = timings.maxDuration;
if (maxDuration === 0) {
close();
return;
}
flags.hasTransitions = timings.transitionDuration > 0;
flags.hasAnimations = timings.animationDuration > 0;
}
if (flags.applyAnimationDelay) {
relativeDelay = typeof options.delay !== 'boolean' && truthyTimingValue(options.delay) ? parseFloat(options.delay) : relativeDelay;
maxDelay = Math.max(relativeDelay, 0);
timings.animationDelay = relativeDelay;
delayStyle = getCssDelayStyle(relativeDelay, true);
temporaryStyles.push(delayStyle);
node.style[delayStyle[0]] = delayStyle[1];
}
maxDelayTime = maxDelay * ONE_SECOND;
maxDurationTime = maxDuration * ONE_SECOND;
if (options.easing) {
var easeProp,
easeVal = options.easing;
if (flags.hasTransitions) {
easeProp = TRANSITION_PROP + TIMING_KEY;
temporaryStyles.push([easeProp, easeVal]);
node.style[easeProp] = easeVal;
}
if (flags.hasAnimations) {
easeProp = ANIMATION_PROP + TIMING_KEY;
temporaryStyles.push([easeProp, easeVal]);
node.style[easeProp] = easeVal;
}
}
if (timings.transitionDuration) {
events.push(TRANSITIONEND_EVENT);
}
if (timings.animationDuration) {
events.push(ANIMATIONEND_EVENT);
}
startTime = Date.now();
var timerTime = maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime;
var endTime = startTime + timerTime;
var animationsData = element.data(ANIMATE_TIMER_KEY) || [];
var setupFallbackTimer = true;
if (animationsData.length) {
var currentTimerData = animationsData[0];
setupFallbackTimer = endTime > currentTimerData.expectedEndTime;
if (setupFallbackTimer) {
$timeout.cancel(currentTimerData.timer);
} else {
animationsData.push(close);
}
}
if (setupFallbackTimer) {
var timer = $timeout(onAnimationExpired, timerTime, false);
animationsData[0] = {
timer: timer,
expectedEndTime: endTime
};
animationsData.push(close);
element.data(ANIMATE_TIMER_KEY, animationsData);
}
if (events.length) {
element.on(events.join(' '), onAnimationProgress);
}
if (options.to) {
if (options.cleanupStyles) {
registerRestorableStyles(restoreStyles, node, Object.keys(options.to));
}
applyAnimationToStyles(element, options);
}
}
function onAnimationExpired() {
var animationsData = element.data(ANIMATE_TIMER_KEY);
// this will be false in the event that the element was
// removed from the DOM (via a leave animation or something
// similar)
if (animationsData) {
for (var i = 1; i < animationsData.length; i++) {
animationsData[i]();
}
element.removeData(ANIMATE_TIMER_KEY);
}
}
}
};
}];
}];
var $$AnimateCssDriverProvider = ['$$animationProvider', /** @this */function ($$animationProvider) {
$$animationProvider.drivers.push('$$animateCssDriver');
var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim';
var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor';
var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out';
var NG_IN_ANCHOR_CLASS_NAME = 'ng-anchor-in';
function isDocumentFragment(node) {
return node.parentNode && node.parentNode.nodeType === 11;
}
this.$get = ['$animateCss', '$rootScope', '$$AnimateRunner', '$rootElement', '$sniffer', '$$jqLite', '$document', function ($animateCss, $rootScope, $$AnimateRunner, $rootElement, $sniffer, $$jqLite, $document) {
// only browsers that support these properties can render animations
if (!$sniffer.animations && !$sniffer.transitions) return noop;
var bodyNode = $document[0].body;
var rootNode = getDomNode($rootElement);
var rootBodyElement = jqLite(
// this is to avoid using something that exists outside of the body
// we also special case the doc fragment case because our unit test code
// appends the $rootElement to the body after the app has been bootstrapped
isDocumentFragment(rootNode) || bodyNode.contains(rootNode) ? rootNode : bodyNode);
return function initDriverFn(animationDetails) {
return animationDetails.from && animationDetails.to ? prepareFromToAnchorAnimation(animationDetails.from, animationDetails.to, animationDetails.classes, animationDetails.anchors) : prepareRegularAnimation(animationDetails);
};
function filterCssClasses(classes) {
//remove all the `ng-` stuff
return classes.replace(/\bng-\S+\b/g, '');
}
function getUniqueValues(a, b) {
if (isString(a)) a = a.split(' ');
if (isString(b)) b = b.split(' ');
return a.filter(function (val) {
return b.indexOf(val) === -1;
}).join(' ');
}
function prepareAnchoredAnimation(classes, outAnchor, inAnchor) {
var clone = jqLite(getDomNode(outAnchor).cloneNode(true));
var startingClasses = filterCssClasses(getClassVal(clone));
outAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);
inAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);
clone.addClass(NG_ANIMATE_ANCHOR_CLASS_NAME);
rootBodyElement.append(clone);
var animatorIn,
animatorOut = prepareOutAnimation();
// the user may not end up using the `out` animation and
// only making use of the `in` animation or vice-versa.
// In either case we should allow this and not assume the
// animation is over unless both animations are not used.
if (!animatorOut) {
animatorIn = prepareInAnimation();
if (!animatorIn) {
return end();
}
}
var startingAnimator = animatorOut || animatorIn;
return {
start: function start() {
var runner;
var currentAnimation = startingAnimator.start();
currentAnimation.done(function () {
currentAnimation = null;
if (!animatorIn) {
animatorIn = prepareInAnimation();
if (animatorIn) {
currentAnimation = animatorIn.start();
currentAnimation.done(function () {
currentAnimation = null;
end();
runner.complete();
});
return currentAnimation;
}
}
// in the event that there is no `in` animation
end();
runner.complete();
});
runner = new $$AnimateRunner({
end: endFn,
cancel: endFn
});
return runner;
function endFn() {
if (currentAnimation) {
currentAnimation.end();
}
}
}
};
function calculateAnchorStyles(anchor) {
var styles = {};
var coords = getDomNode(anchor).getBoundingClientRect();
// we iterate directly since safari messes up and doesn't return
// all the keys for the coords object when iterated
forEach(['width', 'height', 'top', 'left'], function (key) {
var value = coords[key];
switch (key) {
case 'top':
value += bodyNode.scrollTop;
break;
case 'left':
value += bodyNode.scrollLeft;
break;
}
styles[key] = Math.floor(value) + 'px';
});
return styles;
}
function prepareOutAnimation() {
var animator = $animateCss(clone, {
addClass: NG_OUT_ANCHOR_CLASS_NAME,
delay: true,
from: calculateAnchorStyles(outAnchor)
});
// read the comment within `prepareRegularAnimation` to understand
// why this check is necessary
return animator.$$willAnimate ? animator : null;
}
function getClassVal(element) {
return element.attr('class') || '';
}
function prepareInAnimation() {
var endingClasses = filterCssClasses(getClassVal(inAnchor));
var toAdd = getUniqueValues(endingClasses, startingClasses);
var toRemove = getUniqueValues(startingClasses, endingClasses);
var animator = $animateCss(clone, {
to: calculateAnchorStyles(inAnchor),
addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
delay: true
});
// read the comment within `prepareRegularAnimation` to understand
// why this check is necessary
return animator.$$willAnimate ? animator : null;
}
function end() {
clone.remove();
outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME);
inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME);
}
}
function prepareFromToAnchorAnimation(from, to, classes, anchors) {
var fromAnimation = prepareRegularAnimation(from, noop);
var toAnimation = prepareRegularAnimation(to, noop);
var anchorAnimations = [];
forEach(anchors, function (anchor) {
var outElement = anchor['out'];
var inElement = anchor['in'];
var animator = prepareAnchoredAnimation(classes, outElement, inElement);
if (animator) {
anchorAnimations.push(animator);
}
});
// no point in doing anything when there are no elements to animate
if (!fromAnimation && !toAnimation && anchorAnimations.length === 0) return;
return {
start: function start() {
var animationRunners = [];
if (fromAnimation) {
animationRunners.push(fromAnimation.start());
}
if (toAnimation) {
animationRunners.push(toAnimation.start());
}
forEach(anchorAnimations, function (animation) {
animationRunners.push(animation.start());
});
var runner = new $$AnimateRunner({
end: endFn,
cancel: endFn // CSS-driven animations cannot be cancelled, only ended
});
$$AnimateRunner.all(animationRunners, function (status) {
runner.complete(status);
});
return runner;
function endFn() {
forEach(animationRunners, function (runner) {
runner.end();
});
}
}
};
}
function prepareRegularAnimation(animationDetails) {
var element = animationDetails.element;
var options = animationDetails.options || {};
if (animationDetails.structural) {
options.event = animationDetails.event;
options.structural = true;
options.applyClassesEarly = true;
// we special case the leave animation since we want to ensure that
// the element is removed as soon as the animation is over. Otherwise
// a flicker might appear or the element may not be removed at all
if (animationDetails.event === 'leave') {
options.onDone = options.domOperation;
}
}
// We assign the preparationClasses as the actual animation event since
// the internals of $animateCss will just suffix the event token values
// with `-active` to trigger the animation.
if (options.preparationClasses) {
options.event = concatWithSpace(options.event, options.preparationClasses);
}
var animator = $animateCss(element, options);
// the driver lookup code inside of $$animation attempts to spawn a
// driver one by one until a driver returns a.$$willAnimate animator object.
// $animateCss will always return an object, however, it will pass in
// a flag as a hint as to whether an animation was detected or not
return animator.$$willAnimate ? animator : null;
}
}];
}];
// TODO(matsko): use caching here to speed things up for detection
// TODO(matsko): add documentation
// by the time...
var $$AnimateJsProvider = ['$animateProvider', /** @this */function ($animateProvider) {
this.$get = ['$injector', '$$AnimateRunner', '$$jqLite', function ($injector, $$AnimateRunner, $$jqLite) {
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
// $animateJs(element, 'enter');
return function (element, event, classes, options) {
var animationClosed = false;
// the `classes` argument is optional and if it is not used
// then the classes will be resolved from the element's className
// property as well as options.addClass/options.removeClass.
if (arguments.length === 3 && isObject(classes)) {
options = classes;
classes = null;
}
options = prepareAnimationOptions(options);
if (!classes) {
classes = element.attr('class') || '';
if (options.addClass) {
classes += ' ' + options.addClass;
}
if (options.removeClass) {
classes += ' ' + options.removeClass;
}
}
var classesToAdd = options.addClass;
var classesToRemove = options.removeClass;
// the lookupAnimations function returns a series of animation objects that are
// matched up with one or more of the CSS classes. These animation objects are
// defined via the module.animation factory function. If nothing is detected then
// we don't return anything which then makes $animation query the next driver.
var animations = lookupAnimations(classes);
var before, after;
if (animations.length) {
var afterFn, beforeFn;
if (event === 'leave') {
beforeFn = 'leave';
afterFn = 'afterLeave'; // TODO(matsko): get rid of this
} else {
beforeFn = 'before' + event.charAt(0).toUpperCase() + event.substr(1);
afterFn = event;
}
if (event !== 'enter' && event !== 'move') {
before = packageAnimations(element, event, options, animations, beforeFn);
}
after = packageAnimations(element, event, options, animations, afterFn);
}
// no matching animations
if (!before && !after) return;
function applyOptions() {
options.domOperation();
applyAnimationClasses(element, options);
}
function close() {
animationClosed = true;
applyOptions();
applyAnimationStyles(element, options);
}
var runner;
return {
$$willAnimate: true,
end: function end() {
if (runner) {
runner.end();
} else {
close();
runner = new $$AnimateRunner();
runner.complete(true);
}
return runner;
},
start: function start() {
if (runner) {
return runner;
}
runner = new $$AnimateRunner();
var closeActiveAnimations;
var chain = [];
if (before) {
chain.push(function (fn) {
closeActiveAnimations = before(fn);
});
}
if (chain.length) {
chain.push(function (fn) {
applyOptions();
fn(true);
});
} else {
applyOptions();
}
if (after) {
chain.push(function (fn) {
closeActiveAnimations = after(fn);
});
}
runner.setHost({
end: function end() {
endAnimations();
},
cancel: function cancel() {
endAnimations(true);
}
});
$$AnimateRunner.chain(chain, onComplete);
return runner;
function onComplete(success) {
close(success);
runner.complete(success);
}
function endAnimations(cancelled) {
if (!animationClosed) {
(closeActiveAnimations || noop)(cancelled);
onComplete(cancelled);
}
}
}
};
function executeAnimationFn(fn, element, event, options, onDone) {
var args;
switch (event) {
case 'animate':
args = [element, options.from, options.to, onDone];
break;
case 'setClass':
args = [element, classesToAdd, classesToRemove, onDone];
break;
case 'addClass':
args = [element, classesToAdd, onDone];
break;
case 'removeClass':
args = [element, classesToRemove, onDone];
break;
default:
args = [element, onDone];
break;
}
args.push(options);
var value = fn.apply(fn, args);
if (value) {
if (isFunction(value.start)) {
value = value.start();
}
if (value instanceof $$AnimateRunner) {
value.done(onDone);
} else if (isFunction(value)) {
// optional onEnd / onCancel callback
return value;
}
}
return noop;
}
function groupEventedAnimations(element, event, options, animations, fnName) {
var operations = [];
forEach(animations, function (ani) {
var animation = ani[fnName];
if (!animation) return;
// note that all of these animations will run in parallel
operations.push(function () {
var runner;
var endProgressCb;
var resolved = false;
var onAnimationComplete = function onAnimationComplete(rejected) {
if (!resolved) {
resolved = true;
(endProgressCb || noop)(rejected);
runner.complete(!rejected);
}
};
runner = new $$AnimateRunner({
end: function end() {
onAnimationComplete();
},
cancel: function cancel() {
onAnimationComplete(true);
}
});
endProgressCb = executeAnimationFn(animation, element, event, options, function (result) {
var cancelled = result === false;
onAnimationComplete(cancelled);
});
return runner;
});
});
return operations;
}
function packageAnimations(element, event, options, animations, fnName) {
var operations = groupEventedAnimations(element, event, options, animations, fnName);
if (operations.length === 0) {
var a, b;
if (fnName === 'beforeSetClass') {
a = groupEventedAnimations(element, 'removeClass', options, animations, 'beforeRemoveClass');
b = groupEventedAnimations(element, 'addClass', options, animations, 'beforeAddClass');
} else if (fnName === 'setClass') {
a = groupEventedAnimations(element, 'removeClass', options, animations, 'removeClass');
b = groupEventedAnimations(element, 'addClass', options, animations, 'addClass');
}
if (a) {
operations = operations.concat(a);
}
if (b) {
operations = operations.concat(b);
}
}
if (operations.length === 0) return;
// TODO(matsko): add documentation
return function startAnimation(callback) {
var runners = [];
if (operations.length) {
forEach(operations, function (animateFn) {
runners.push(animateFn());
});
}
if (runners.length) {
$$AnimateRunner.all(runners, callback);
} else {
callback();
}
return function endFn(reject) {
forEach(runners, function (runner) {
if (reject) {
runner.cancel();
} else {
runner.end();
}
});
};
};
}
};
function lookupAnimations(classes) {
classes = isArray(classes) ? classes : classes.split(' ');
var matches = [],
flagMap = {};
for (var i = 0; i < classes.length; i++) {
var klass = classes[i],
animationFactory = $animateProvider.$$registeredAnimations[klass];
if (animationFactory && !flagMap[klass]) {
matches.push($injector.get(animationFactory));
flagMap[klass] = true;
}
}
return matches;
}
}];
}];
var $$AnimateJsDriverProvider = ['$$animationProvider', /** @this */function ($$animationProvider) {
$$animationProvider.drivers.push('$$animateJsDriver');
this.$get = ['$$animateJs', '$$AnimateRunner', function ($$animateJs, $$AnimateRunner) {
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
var fromAnimation = prepareAnimation(animationDetails.from);
var toAnimation = prepareAnimation(animationDetails.to);
if (!fromAnimation && !toAnimation) return;
return {
start: function start() {
var animationRunners = [];
if (fromAnimation) {
animationRunners.push(fromAnimation.start());
}
if (toAnimation) {
animationRunners.push(toAnimation.start());
}
$$AnimateRunner.all(animationRunners, done);
var runner = new $$AnimateRunner({
end: endFnFactory(),
cancel: endFnFactory()
});
return runner;
function endFnFactory() {
return function () {
forEach(animationRunners, function (runner) {
// at this point we cannot cancel animations for groups just yet. 1.5+
runner.end();
});
};
}
function done(status) {
runner.complete(status);
}
}
};
} else {
return prepareAnimation(animationDetails);
}
};
function prepareAnimation(animationDetails) {
// TODO(matsko): make sure to check for grouped animations and delegate down to normal animations
var element = animationDetails.element;
var event = animationDetails.event;
var options = animationDetails.options;
var classes = animationDetails.classes;
return $$animateJs(element, event, classes, options);
}
}];
}];
var NG_ANIMATE_ATTR_NAME = 'data-ng-animate';
var NG_ANIMATE_PIN_DATA = '$ngAnimatePin';
var $$AnimateQueueProvider = ['$animateProvider', /** @this */function ($animateProvider) {
var PRE_DIGEST_STATE = 1;
var RUNNING_STATE = 2;
var ONE_SPACE = ' ';
var rules = this.rules = {
skip: [],
cancel: [],
join: []
};
function makeTruthyCssClassMap(classString) {
if (!classString) {
return null;
}
var keys = classString.split(ONE_SPACE);
var map = Object.create(null);
forEach(keys, function (key) {
map[key] = true;
});
return map;
}
function hasMatchingClasses(newClassString, currentClassString) {
if (newClassString && currentClassString) {
var currentClassMap = makeTruthyCssClassMap(currentClassString);
return newClassString.split(ONE_SPACE).some(function (className) {
return currentClassMap[className];
});
}
}
function isAllowed(ruleType, currentAnimation, previousAnimation) {
return rules[ruleType].some(function (fn) {
return fn(currentAnimation, previousAnimation);
});
}
function hasAnimationClasses(animation, and) {
var a = (animation.addClass || '').length > 0;
var b = (animation.removeClass || '').length > 0;
return and ? a && b : a || b;
}
rules.join.push(function (newAnimation, currentAnimation) {
// if the new animation is class-based then we can just tack that on
return !newAnimation.structural && hasAnimationClasses(newAnimation);
});
rules.skip.push(function (newAnimation, currentAnimation) {
// there is no need to animate anything if no classes are being added and
// there is no structural animation that will be triggered
return !newAnimation.structural && !hasAnimationClasses(newAnimation);
});
rules.skip.push(function (newAnimation, currentAnimation) {
// why should we trigger a new structural animation if the element will
// be removed from the DOM anyway?
return currentAnimation.event === 'leave' && newAnimation.structural;
});
rules.skip.push(function (newAnimation, currentAnimation) {
// if there is an ongoing current animation then don't even bother running the class-based animation
return currentAnimation.structural && currentAnimation.state === RUNNING_STATE && !newAnimation.structural;
});
rules.cancel.push(function (newAnimation, currentAnimation) {
// there can never be two structural animations running at the same time
return currentAnimation.structural && newAnimation.structural;
});
rules.cancel.push(function (newAnimation, currentAnimation) {
// if the previous animation is already running, but the new animation will
// be triggered, but the new animation is structural
return currentAnimation.state === RUNNING_STATE && newAnimation.structural;
});
rules.cancel.push(function (newAnimation, currentAnimation) {
// cancel the animation if classes added / removed in both animation cancel each other out,
// but only if the current animation isn't structural
if (currentAnimation.structural) return false;
var nA = newAnimation.addClass;
var nR = newAnimation.removeClass;
var cA = currentAnimation.addClass;
var cR = currentAnimation.removeClass;
// early detection to save the global CPU shortage :)
if (isUndefined(nA) && isUndefined(nR) || isUndefined(cA) && isUndefined(cR)) {
return false;
}
return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA);
});
this.$get = ['$$rAF', '$rootScope', '$rootElement', '$document', '$$Map', '$$animation', '$$AnimateRunner', '$templateRequest', '$$jqLite', '$$forceReflow', '$$isDocumentHidden', function ($$rAF, $rootScope, $rootElement, $document, $$Map, $$animation, $$AnimateRunner, $templateRequest, $$jqLite, $$forceReflow, $$isDocumentHidden) {
var activeAnimationsLookup = new $$Map();
var disabledElementsLookup = new $$Map();
var animationsEnabled = null;
function postDigestTaskFactory() {
var postDigestCalled = false;
return function (fn) {
// we only issue a call to postDigest before
// it has first passed. This prevents any callbacks
// from not firing once the animation has completed
// since it will be out of the digest cycle.
if (postDigestCalled) {
fn();
} else {
$rootScope.$$postDigest(function () {
postDigestCalled = true;
fn();
});
}
};
}
// Wait until all directive and route-related templates are downloaded and
// compiled. The $templateRequest.totalPendingRequests variable keeps track of
// all of the remote templates being currently downloaded. If there are no
// templates currently downloading then the watcher will still fire anyway.
var deregisterWatch = $rootScope.$watch(function () {
return $templateRequest.totalPendingRequests === 0;
}, function (isEmpty) {
if (!isEmpty) return;
deregisterWatch();
// Now that all templates have been downloaded, $animate will wait until
// the post digest queue is empty before enabling animations. By having two
// calls to $postDigest calls we can ensure that the flag is enabled at the
// very end of the post digest queue. Since all of the animations in $animate
// use $postDigest, it's important that the code below executes at the end.
// This basically means that the page is fully downloaded and compiled before
// any animations are triggered.
$rootScope.$$postDigest(function () {
$rootScope.$$postDigest(function () {
// we check for null directly in the event that the application already called
// .enabled() with whatever arguments that it provided it with
if (animationsEnabled === null) {
animationsEnabled = true;
}
});
});
});
var callbackRegistry = Object.create(null);
// remember that the `customFilter`/`classNameFilter` are set during the
// provider/config stage therefore we can optimize here and setup helper functions
var customFilter = $animateProvider.customFilter();
var classNameFilter = $animateProvider.classNameFilter();
var returnTrue = function returnTrue() {
return true;
};
var isAnimatableByFilter = customFilter || returnTrue;
var isAnimatableClassName = !classNameFilter ? returnTrue : function (node, options) {
var className = [node.getAttribute('class'), options.addClass, options.removeClass].join(' ');
return classNameFilter.test(className);
};
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
function normalizeAnimationDetails(element, animation) {
return mergeAnimationDetails(element, animation, {});
}
// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
var contains = window.Node.prototype.contains || /** @this */function (arg) {
// eslint-disable-next-line no-bitwise
return this === arg || !!(this.compareDocumentPosition(arg) & 16);
};
function findCallbacks(targetParentNode, targetNode, event) {
var matches = [];
var entries = callbackRegistry[event];
if (entries) {
forEach(entries, function (entry) {
if (contains.call(entry.node, targetNode)) {
matches.push(entry.callback);
} else if (event === 'leave' && contains.call(entry.node, targetParentNode)) {
matches.push(entry.callback);
}
});
}
return matches;
}
function filterFromRegistry(list, matchContainer, matchCallback) {
var containerNode = extractElementNode(matchContainer);
return list.filter(function (entry) {
var isMatch = entry.node === containerNode && (!matchCallback || entry.callback === matchCallback);
return !isMatch;
});
}
function cleanupEventListeners(phase, node) {
if (phase === 'close' && !node.parentNode) {
// If the element is not attached to a parentNode, it has been removed by
// the domOperation, and we can safely remove the event callbacks
$animate.off(node);
}
}
var $animate = {
on: function on(event, container, callback) {
var node = extractElementNode(container);
callbackRegistry[event] = callbackRegistry[event] || [];
callbackRegistry[event].push({
node: node,
callback: callback
});
// Remove the callback when the element is removed from the DOM
jqLite(container).on('$destroy', function () {
var animationDetails = activeAnimationsLookup.get(node);
if (!animationDetails) {
// If there's an animation ongoing, the callback calling code will remove
// the event listeners. If we'd remove here, the callbacks would be removed
// before the animation ends
$animate.off(event, container, callback);
}
});
},
off: function off(event, container, callback) {
if (arguments.length === 1 && !isString(arguments[0])) {
container = arguments[0];
for (var eventType in callbackRegistry) {
callbackRegistry[eventType] = filterFromRegistry(callbackRegistry[eventType], container);
}
return;
}
var entries = callbackRegistry[event];
if (!entries) return;
callbackRegistry[event] = arguments.length === 1 ? null : filterFromRegistry(entries, container, callback);
},
pin: function pin(element, parentElement) {
assertArg(isElement(element), 'element', 'not an element');
assertArg(isElement(parentElement), 'parentElement', 'not an element');
element.data(NG_ANIMATE_PIN_DATA, parentElement);
},
push: function push(element, event, options, domOperation) {
options = options || {};
options.domOperation = domOperation;
return queueAnimation(element, event, options);
},
// this method has four signatures:
// () - global getter
// (bool) - global setter
// (element) - element getter
// (element, bool) - element setter<F37>
enabled: function enabled(element, bool) {
var argCount = arguments.length;
if (argCount === 0) {
// () - Global getter
bool = !!animationsEnabled;
} else {
var hasElement = isElement(element);
if (!hasElement) {
// (bool) - Global setter
bool = animationsEnabled = !!element;
} else {
var node = getDomNode(element);
if (argCount === 1) {
// (element) - Element getter
bool = !disabledElementsLookup.get(node);
} else {
// (element, bool) - Element setter
disabledElementsLookup.set(node, !bool);
}
}
}
return bool;
}
};
return $animate;
function queueAnimation(originalElement, event, initialOptions) {
// we always make a copy of the options since
// there should never be any side effects on
// the input data when running `$animateCss`.
var options = copy(initialOptions);
var element = stripCommentsFromElement(originalElement);
var node = getDomNode(element);
var parentNode = node && node.parentNode;
options = prepareAnimationOptions(options);
// we create a fake runner with a working promise.
// These methods will become available after the digest has passed
var runner = new $$AnimateRunner();
// this is used to trigger callbacks in postDigest mode
var runInNextPostDigestOrNow = postDigestTaskFactory();
if (isArray(options.addClass)) {
options.addClass = options.addClass.join(' ');
}
if (options.addClass && !isString(options.addClass)) {
options.addClass = null;
}
if (isArray(options.removeClass)) {
options.removeClass = options.removeClass.join(' ');
}
if (options.removeClass && !isString(options.removeClass)) {
options.removeClass = null;
}
if (options.from && !isObject(options.from)) {
options.from = null;
}
if (options.to && !isObject(options.to)) {
options.to = null;
}
// If animations are hard-disabled for the whole application there is no need to continue.
// There are also situations where a directive issues an animation for a jqLite wrapper that
// contains only comment nodes. In this case, there is no way we can perform an animation.
if (!animationsEnabled || !node || !isAnimatableByFilter(node, event, initialOptions) || !isAnimatableClassName(node, options)) {
close();
return runner;
}
var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0;
var documentHidden = $$isDocumentHidden();
// This is a hard disable of all animations the element itself, therefore there is no need to
// continue further past this point if not enabled
// Animations are also disabled if the document is currently hidden (page is not visible
// to the user), because browsers slow down or do not flush calls to requestAnimationFrame
var skipAnimations = documentHidden || disabledElementsLookup.get(node);
var existingAnimation = !skipAnimations && activeAnimationsLookup.get(node) || {};
var hasExistingAnimation = !!existingAnimation.state;
// there is no point in traversing the same collection of parent ancestors if a followup
// animation will be run on the same element that already did all that checking work
if (!skipAnimations && (!hasExistingAnimation || existingAnimation.state !== PRE_DIGEST_STATE)) {
skipAnimations = !areAnimationsAllowed(node, parentNode, event);
}
if (skipAnimations) {
// Callbacks should fire even if the document is hidden (regression fix for issue #14120)
if (documentHidden) notifyProgress(runner, event, 'start');
close();
if (documentHidden) notifyProgress(runner, event, 'close');
return runner;
}
if (isStructural) {
closeChildAnimations(node);
}
var newAnimation = {
structural: isStructural,
element: element,
event: event,
addClass: options.addClass,
removeClass: options.removeClass,
close: close,
options: options,
runner: runner
};
if (hasExistingAnimation) {
var skipAnimationFlag = isAllowed('skip', newAnimation, existingAnimation);
if (skipAnimationFlag) {
if (existingAnimation.state === RUNNING_STATE) {
close();
return runner;
} else {
mergeAnimationDetails(element, existingAnimation, newAnimation);
return existingAnimation.runner;
}
}
var cancelAnimationFlag = isAllowed('cancel', newAnimation, existingAnimation);
if (cancelAnimationFlag) {
if (existingAnimation.state === RUNNING_STATE) {
// this will end the animation right away and it is safe
// to do so since the animation is already running and the
// runner callback code will run in async
existingAnimation.runner.end();
} else if (existingAnimation.structural) {
// this means that the animation is queued into a digest, but
// hasn't started yet. Therefore it is safe to run the close
// method which will call the runner methods in async.
existingAnimation.close();
} else {
// this will merge the new animation options into existing animation options
mergeAnimationDetails(element, existingAnimation, newAnimation);
return existingAnimation.runner;
}
} else {
// a joined animation means that this animation will take over the existing one
// so an example would involve a leave animation taking over an enter. Then when
// the postDigest kicks in the enter will be ignored.
var joinAnimationFlag = isAllowed('join', newAnimation, existingAnimation);
if (joinAnimationFlag) {
if (existingAnimation.state === RUNNING_STATE) {
normalizeAnimationDetails(element, newAnimation);
} else {
applyGeneratedPreparationClasses(element, isStructural ? event : null, options);
event = newAnimation.event = existingAnimation.event;
options = mergeAnimationDetails(element, existingAnimation, newAnimation);
//we return the same runner since only the option values of this animation will
//be fed into the `existingAnimation`.
return existingAnimation.runner;
}
}
}
} else {
// normalization in this case means that it removes redundant CSS classes that
// already exist (addClass) or do not exist (removeClass) on the element
normalizeAnimationDetails(element, newAnimation);
}
// when the options are merged and cleaned up we may end up not having to do
// an animation at all, therefore we should check this before issuing a post
// digest callback. Structural animations will always run no matter what.
var isValidAnimation = newAnimation.structural;
if (!isValidAnimation) {
// animate (from/to) can be quickly checked first, otherwise we check if any classes are present
isValidAnimation = newAnimation.event === 'animate' && Object.keys(newAnimation.options.to || {}).length > 0 || hasAnimationClasses(newAnimation);
}
if (!isValidAnimation) {
close();
clearElementAnimationState(node);
return runner;
}
// the counter keeps track of cancelled animations
var counter = (existingAnimation.counter || 0) + 1;
newAnimation.counter = counter;
markElementAnimationState(node, PRE_DIGEST_STATE, newAnimation);
$rootScope.$$postDigest(function () {
// It is possible that the DOM nodes inside `originalElement` have been replaced. This can
// happen if the animated element is a transcluded clone and also has a `templateUrl`
// directive on it. Therefore, we must recreate `element` in order to interact with the
// actual DOM nodes.
// Note: We still need to use the old `node` for certain things, such as looking up in
// HashMaps where it was used as the key.
element = stripCommentsFromElement(originalElement);
var animationDetails = activeAnimationsLookup.get(node);
var animationCancelled = !animationDetails;
animationDetails = animationDetails || {};
// if addClass/removeClass is called before something like enter then the
// registered parent element may not be present. The code below will ensure
// that a final value for parent element is obtained
var parentElement = element.parent() || [];
// animate/structural/class-based animations all have requirements. Otherwise there
// is no point in performing an animation. The parent node must also be set.
var isValidAnimation = parentElement.length > 0 && (animationDetails.event === 'animate' || animationDetails.structural || hasAnimationClasses(animationDetails));
// this means that the previous animation was cancelled
// even if the follow-up animation is the same event
if (animationCancelled || animationDetails.counter !== counter || !isValidAnimation) {
// if another animation did not take over then we need
// to make sure that the domOperation and options are
// handled accordingly
if (animationCancelled) {
applyAnimationClasses(element, options);
applyAnimationStyles(element, options);
}
// if the event changed from something like enter to leave then we do
// it, otherwise if it's the same then the end result will be the same too
if (animationCancelled || isStructural && animationDetails.event !== event) {
options.domOperation();
runner.end();
}
// in the event that the element animation was not cancelled or a follow-up animation
// isn't allowed to animate from here then we need to clear the state of the element
// so that any future animations won't read the expired animation data.
if (!isValidAnimation) {
clearElementAnimationState(node);
}
return;
}
// this combined multiple class to addClass / removeClass into a setClass event
// so long as a structural event did not take over the animation
event = !animationDetails.structural && hasAnimationClasses(animationDetails, true) ? 'setClass' : animationDetails.event;
markElementAnimationState(node, RUNNING_STATE);
var realRunner = $$animation(element, event, animationDetails.options);
// this will update the runner's flow-control events based on
// the `realRunner` object.
runner.setHost(realRunner);
notifyProgress(runner, event, 'start', {});
realRunner.done(function (status) {
close(!status);
var animationDetails = activeAnimationsLookup.get(node);
if (animationDetails && animationDetails.counter === counter) {
clearElementAnimationState(node);
}
notifyProgress(runner, event, 'close', {});
});
});
return runner;
function notifyProgress(runner, event, phase, data) {
runInNextPostDigestOrNow(function () {
var callbacks = findCallbacks(parentNode, node, event);
if (callbacks.length) {
// do not optimize this call here to RAF because
// we don't know how heavy the callback code here will
// be and if this code is buffered then this can
// lead to a performance regression.
$$rAF(function () {
forEach(callbacks, function (callback) {
callback(element, phase, data);
});
cleanupEventListeners(phase, node);
});
} else {
cleanupEventListeners(phase, node);
}
});
runner.progress(event, phase, data);
}
function close(reject) {
clearGeneratedClasses(element, options);
applyAnimationClasses(element, options);
applyAnimationStyles(element, options);
options.domOperation();
runner.complete(!reject);
}
}
function closeChildAnimations(node) {
var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
forEach(children, function (child) {
var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME), 10);
var animationDetails = activeAnimationsLookup.get(child);
if (animationDetails) {
switch (state) {
case RUNNING_STATE:
animationDetails.runner.end();
/* falls through */
case PRE_DIGEST_STATE:
activeAnimationsLookup.delete(child);
break;
}
}
});
}
function clearElementAnimationState(node) {
node.removeAttribute(NG_ANIMATE_ATTR_NAME);
activeAnimationsLookup.delete(node);
}
/**
* This fn returns false if any of the following is true:
* a) animations on any parent element are disabled, and animations on the element aren't explicitly allowed
* b) a parent element has an ongoing structural animation, and animateChildren is false
* c) the element is not a child of the body
* d) the element is not a child of the $rootElement
*/
function areAnimationsAllowed(node, parentNode, event) {
var bodyNode = $document[0].body;
var rootNode = getDomNode($rootElement);
var bodyNodeDetected = node === bodyNode || node.nodeName === 'HTML';
var rootNodeDetected = node === rootNode;
var parentAnimationDetected = false;
var elementDisabled = disabledElementsLookup.get(node);
var animateChildren;
var parentHost = jqLite.data(node, NG_ANIMATE_PIN_DATA);
if (parentHost) {
parentNode = getDomNode(parentHost);
}
while (parentNode) {
if (!rootNodeDetected) {
// angular doesn't want to attempt to animate elements outside of the application
// therefore we need to ensure that the rootElement is an ancestor of the current element
rootNodeDetected = parentNode === rootNode;
}
if (parentNode.nodeType !== ELEMENT_NODE) {
// no point in inspecting the #document element
break;
}
var details = activeAnimationsLookup.get(parentNode) || {};
// either an enter, leave or move animation will commence
// therefore we can't allow any animations to take place
// but if a parent animation is class-based then that's ok
if (!parentAnimationDetected) {
var parentNodeDisabled = disabledElementsLookup.get(parentNode);
if (parentNodeDisabled === true && elementDisabled !== false) {
// disable animations if the user hasn't explicitly enabled animations on the
// current element
elementDisabled = true;
// element is disabled via parent element, no need to check anything else
break;
} else if (parentNodeDisabled === false) {
elementDisabled = false;
}
parentAnimationDetected = details.structural;
}
if (isUndefined(animateChildren) || animateChildren === true) {
var value = jqLite.data(parentNode, NG_ANIMATE_CHILDREN_DATA);
if (isDefined(value)) {
animateChildren = value;
}
}
// there is no need to continue traversing at this point
if (parentAnimationDetected && animateChildren === false) break;
if (!bodyNodeDetected) {
// we also need to ensure that the element is or will be a part of the body element
// otherwise it is pointless to even issue an animation to be rendered
bodyNodeDetected = parentNode === bodyNode;
}
if (bodyNodeDetected && rootNodeDetected) {
// If both body and root have been found, any other checks are pointless,
// as no animation data should live outside the application
break;
}
if (!rootNodeDetected) {
// If `rootNode` is not detected, check if `parentNode` is pinned to another element
parentHost = jqLite.data(parentNode, NG_ANIMATE_PIN_DATA);
if (parentHost) {
// The pin target element becomes the next parent element
parentNode = getDomNode(parentHost);
continue;
}
}
parentNode = parentNode.parentNode;
}
var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true;
return allowAnimation && rootNodeDetected && bodyNodeDetected;
}
function markElementAnimationState(node, state, details) {
details = details || {};
details.state = state;
node.setAttribute(NG_ANIMATE_ATTR_NAME, state);
var oldValue = activeAnimationsLookup.get(node);
var newValue = oldValue ? extend(oldValue, details) : details;
activeAnimationsLookup.set(node, newValue);
}
}];
}];
/* exported $$AnimationProvider */
var $$AnimationProvider = ['$animateProvider', /** @this */function ($animateProvider) {
var NG_ANIMATE_REF_ATTR = 'ng-animate-ref';
var drivers = this.drivers = [];
var RUNNER_STORAGE_KEY = '$$animationRunner';
function setRunner(element, runner) {
element.data(RUNNER_STORAGE_KEY, runner);
}
function removeRunner(element) {
element.removeData(RUNNER_STORAGE_KEY);
}
function getRunner(element) {
return element.data(RUNNER_STORAGE_KEY);
}
this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$Map', '$$rAFScheduler', function ($$jqLite, $rootScope, $injector, $$AnimateRunner, $$Map, $$rAFScheduler) {
var animationQueue = [];
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
function sortAnimations(animations) {
var tree = { children: [] };
var i,
lookup = new $$Map();
// this is done first beforehand so that the map
// is filled with a list of the elements that will be animated
for (i = 0; i < animations.length; i++) {
var animation = animations[i];
lookup.set(animation.domNode, animations[i] = {
domNode: animation.domNode,
fn: animation.fn,
children: []
});
}
for (i = 0; i < animations.length; i++) {
processNode(animations[i]);
}
return flatten(tree);
function processNode(entry) {
if (entry.processed) return entry;
entry.processed = true;
var elementNode = entry.domNode;
var parentNode = elementNode.parentNode;
lookup.set(elementNode, entry);
var parentEntry;
while (parentNode) {
parentEntry = lookup.get(parentNode);
if (parentEntry) {
if (!parentEntry.processed) {
parentEntry = processNode(parentEntry);
}
break;
}
parentNode = parentNode.parentNode;
}
(parentEntry || tree).children.push(entry);
return entry;
}
function flatten(tree) {
var result = [];
var queue = [];
var i;
for (i = 0; i < tree.children.length; i++) {
queue.push(tree.children[i]);
}
var remainingLevelEntries = queue.length;
var nextLevelEntries = 0;
var row = [];
for (i = 0; i < queue.length; i++) {
var entry = queue[i];
if (remainingLevelEntries <= 0) {
remainingLevelEntries = nextLevelEntries;
nextLevelEntries = 0;
result.push(row);
row = [];
}
row.push(entry.fn);
entry.children.forEach(function (childEntry) {
nextLevelEntries++;
queue.push(childEntry);
});
remainingLevelEntries--;
}
if (row.length) {
result.push(row);
}
return result;
}
}
// TODO(matsko): document the signature in a better way
return function (element, event, options) {
options = prepareAnimationOptions(options);
var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0;
// there is no animation at the current moment, however
// these runner methods will get later updated with the
// methods leading into the driver's end/cancel methods
// for now they just stop the animation from starting
var runner = new $$AnimateRunner({
end: function end() {
close();
},
cancel: function cancel() {
close(true);
}
});
if (!drivers.length) {
close();
return runner;
}
setRunner(element, runner);
var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass));
var tempClasses = options.tempClasses;
if (tempClasses) {
classes += ' ' + tempClasses;
options.tempClasses = null;
}
var prepareClassName;
if (isStructural) {
prepareClassName = 'ng-' + event + PREPARE_CLASS_SUFFIX;
$$jqLite.addClass(element, prepareClassName);
}
animationQueue.push({
// this data is used by the postDigest code and passed into
// the driver step function
element: element,
classes: classes,
event: event,
structural: isStructural,
options: options,
beforeStart: beforeStart,
close: close
});
element.on('$destroy', handleDestroyedElement);
// we only want there to be one function called within the post digest
// block. This way we can group animations for all the animations that
// were apart of the same postDigest flush call.
if (animationQueue.length > 1) return runner;
$rootScope.$$postDigest(function () {
var animations = [];
forEach(animationQueue, function (entry) {
// the element was destroyed early on which removed the runner
// form its storage. This means we can't animate this element
// at all and it already has been closed due to destruction.
if (getRunner(entry.element)) {
animations.push(entry);
} else {
entry.close();
}
});
// now any future animations will be in another postDigest
animationQueue.length = 0;
var groupedAnimations = groupAnimations(animations);
var toBeSortedAnimations = [];
forEach(groupedAnimations, function (animationEntry) {
toBeSortedAnimations.push({
domNode: getDomNode(animationEntry.from ? animationEntry.from.element : animationEntry.element),
fn: function triggerAnimationStart() {
// it's important that we apply the `ng-animate` CSS class and the
// temporary classes before we do any driver invoking since these
// CSS classes may be required for proper CSS detection.
animationEntry.beforeStart();
var startAnimationFn,
closeFn = animationEntry.close;
// in the event that the element was removed before the digest runs or
// during the RAF sequencing then we should not trigger the animation.
var targetElement = animationEntry.anchors ? animationEntry.from.element || animationEntry.to.element : animationEntry.element;
if (getRunner(targetElement)) {
var operation = invokeFirstDriver(animationEntry);
if (operation) {
startAnimationFn = operation.start;
}
}
if (!startAnimationFn) {
closeFn();
} else {
var animationRunner = startAnimationFn();
animationRunner.done(function (status) {
closeFn(!status);
});
updateAnimationRunners(animationEntry, animationRunner);
}
}
});
});
// we need to sort each of the animations in order of parent to child
// relationships. This ensures that the child classes are applied at the
// right time.
$$rAFScheduler(sortAnimations(toBeSortedAnimations));
});
return runner;
// TODO(matsko): change to reference nodes
function getAnchorNodes(node) {
var SELECTOR = '[' + NG_ANIMATE_REF_ATTR + ']';
var items = node.hasAttribute(NG_ANIMATE_REF_ATTR) ? [node] : node.querySelectorAll(SELECTOR);
var anchors = [];
forEach(items, function (node) {
var attr = node.getAttribute(NG_ANIMATE_REF_ATTR);
if (attr && attr.length) {
anchors.push(node);
}
});
return anchors;
}
function groupAnimations(animations) {
var preparedAnimations = [];
var refLookup = {};
forEach(animations, function (animation, index) {
var element = animation.element;
var node = getDomNode(element);
var event = animation.event;
var enterOrMove = ['enter', 'move'].indexOf(event) >= 0;
var anchorNodes = animation.structural ? getAnchorNodes(node) : [];
if (anchorNodes.length) {
var direction = enterOrMove ? 'to' : 'from';
forEach(anchorNodes, function (anchor) {
var key = anchor.getAttribute(NG_ANIMATE_REF_ATTR);
refLookup[key] = refLookup[key] || {};
refLookup[key][direction] = {
animationID: index,
element: jqLite(anchor)
};
});
} else {
preparedAnimations.push(animation);
}
});
var usedIndicesLookup = {};
var anchorGroups = {};
forEach(refLookup, function (operations, key) {
var from = operations.from;
var to = operations.to;
if (!from || !to) {
// only one of these is set therefore we can't have an
// anchor animation since all three pieces are required
var index = from ? from.animationID : to.animationID;
var indexKey = index.toString();
if (!usedIndicesLookup[indexKey]) {
usedIndicesLookup[indexKey] = true;
preparedAnimations.push(animations[index]);
}
return;
}
var fromAnimation = animations[from.animationID];
var toAnimation = animations[to.animationID];
var lookupKey = from.animationID.toString();
if (!anchorGroups[lookupKey]) {
var group = anchorGroups[lookupKey] = {
structural: true,
beforeStart: function beforeStart() {
fromAnimation.beforeStart();
toAnimation.beforeStart();
},
close: function close() {
fromAnimation.close();
toAnimation.close();
},
classes: cssClassesIntersection(fromAnimation.classes, toAnimation.classes),
from: fromAnimation,
to: toAnimation,
anchors: [] // TODO(matsko): change to reference nodes
};
// the anchor animations require that the from and to elements both have at least
// one shared CSS class which effectively marries the two elements together to use
// the same animation driver and to properly sequence the anchor animation.
if (group.classes.length) {
preparedAnimations.push(group);
} else {
preparedAnimations.push(fromAnimation);
preparedAnimations.push(toAnimation);
}
}
anchorGroups[lookupKey].anchors.push({
'out': from.element, 'in': to.element
});
});
return preparedAnimations;
}
function cssClassesIntersection(a, b) {
a = a.split(' ');
b = b.split(' ');
var matches = [];
for (var i = 0; i < a.length; i++) {
var aa = a[i];
if (aa.substring(0, 3) === 'ng-') continue;
for (var j = 0; j < b.length; j++) {
if (aa === b[j]) {
matches.push(aa);
break;
}
}
}
return matches.join(' ');
}
function invokeFirstDriver(animationDetails) {
// we loop in reverse order since the more general drivers (like CSS and JS)
// may attempt more elements, but custom drivers are more particular
for (var i = drivers.length - 1; i >= 0; i--) {
var driverName = drivers[i];
var factory = $injector.get(driverName);
var driver = factory(animationDetails);
if (driver) {
return driver;
}
}
}
function beforeStart() {
element.addClass(NG_ANIMATE_CLASSNAME);
if (tempClasses) {
$$jqLite.addClass(element, tempClasses);
}
if (prepareClassName) {
$$jqLite.removeClass(element, prepareClassName);
prepareClassName = null;
}
}
function updateAnimationRunners(animation, newRunner) {
if (animation.from && animation.to) {
update(animation.from.element);
update(animation.to.element);
} else {
update(animation.element);
}
function update(element) {
var runner = getRunner(element);
if (runner) runner.setHost(newRunner);
}
}
function handleDestroyedElement() {
var runner = getRunner(element);
if (runner && (event !== 'leave' || !options.$$domOperationFired)) {
runner.end();
}
}
function close(rejected) {
element.off('$destroy', handleDestroyedElement);
removeRunner(element);
applyAnimationClasses(element, options);
applyAnimationStyles(element, options);
options.domOperation();
if (tempClasses) {
$$jqLite.removeClass(element, tempClasses);
}
element.removeClass(NG_ANIMATE_CLASSNAME);
runner.complete(!rejected);
}
};
}];
}];
/**
* @ngdoc directive
* @name ngAnimateSwap
* @restrict A
* @scope
*
* @description
*
* ngAnimateSwap is a animation-oriented directive that allows for the container to
* be removed and entered in whenever the associated expression changes. A
* common usecase for this directive is a rotating banner or slider component which
* contains one image being present at a time. When the active image changes
* then the old image will perform a `leave` animation and the new element
* will be inserted via an `enter` animation.
*
* @animations
* | Animation | Occurs |
* |----------------------------------|--------------------------------------|
* | {@link ng.$animate#enter enter} | when the new element is inserted to the DOM |
* | {@link ng.$animate#leave leave} | when the old element is removed from the DOM |
*
* @example
* <example name="ngAnimateSwap-directive" module="ngAnimateSwapExample"
* deps="angular-animate.js"
* animations="true" fixBase="true">
* <file name="index.html">
* <div class="container" ng-controller="AppCtrl">
* <div ng-animate-swap="number" class="cell swap-animation" ng-class="colorClass(number)">
* {{ number }}
* </div>
* </div>
* </file>
* <file name="script.js">
* angular.module('ngAnimateSwapExample', ['ngAnimate'])
* .controller('AppCtrl', ['$scope', '$interval', function($scope, $interval) {
* $scope.number = 0;
* $interval(function() {
* $scope.number++;
* }, 1000);
*
* var colors = ['red','blue','green','yellow','orange'];
* $scope.colorClass = function(number) {
* return colors[number % colors.length];
* };
* }]);
* </file>
* <file name="animations.css">
* .container {
* height:250px;
* width:250px;
* position:relative;
* overflow:hidden;
* border:2px solid black;
* }
* .container .cell {
* font-size:150px;
* text-align:center;
* line-height:250px;
* position:absolute;
* top:0;
* left:0;
* right:0;
* border-bottom:2px solid black;
* }
* .swap-animation.ng-enter, .swap-animation.ng-leave {
* transition:0.5s linear all;
* }
* .swap-animation.ng-enter {
* top:-250px;
* }
* .swap-animation.ng-enter-active {
* top:0px;
* }
* .swap-animation.ng-leave {
* top:0px;
* }
* .swap-animation.ng-leave-active {
* top:250px;
* }
* .red { background:red; }
* .green { background:green; }
* .blue { background:blue; }
* .yellow { background:yellow; }
* .orange { background:orange; }
* </file>
* </example>
*/
var ngAnimateSwapDirective = ['$animate', '$rootScope', function ($animate, $rootScope) {
return {
restrict: 'A',
transclude: 'element',
terminal: true,
priority: 600, // we use 600 here to ensure that the directive is caught before others
link: function link(scope, $element, attrs, ctrl, $transclude) {
var previousElement, previousScope;
scope.$watchCollection(attrs.ngAnimateSwap || attrs['for'], function (value) {
if (previousElement) {
$animate.leave(previousElement);
}
if (previousScope) {
previousScope.$destroy();
previousScope = null;
}
if (value || value === 0) {
previousScope = scope.$new();
$transclude(previousScope, function (element) {
previousElement = element;
$animate.enter(element, null, $element);
});
}
});
}
};
}];
/**
* @ngdoc module
* @name ngAnimate
* @description
*
* The `ngAnimate` module provides support for CSS-based animations (keyframes and transitions) as well as JavaScript-based animations via
* callback hooks. Animations are not enabled by default, however, by including `ngAnimate` the animation hooks are enabled for an Angular app.
*
* ## Usage
* Simply put, there are two ways to make use of animations when ngAnimate is used: by using **CSS** and **JavaScript**. The former works purely based
* using CSS (by using matching CSS selectors/styles) and the latter triggers animations that are registered via `module.animation()`. For
* both CSS and JS animations the sole requirement is to have a matching `CSS class` that exists both in the registered animation and within
* the HTML element that the animation will be triggered on.
*
* ## Directive Support
* The following directives are "animation aware":
*
* | Directive | Supported Animations |
* |----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
* | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move |
* | {@link ngRoute.directive:ngView#animations ngView} | enter and leave |
* | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
* | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
* | {@link ng.directive:ngIf#animations ngIf} | enter and leave |
* | {@link ng.directive:ngClass#animations ngClass} | add and remove (the CSS class(es) present) |
* | {@link ng.directive:ngShow#animations ngShow} & {@link ng.directive:ngHide#animations ngHide} | add and remove (the ng-hide class value) |
* | {@link ng.directive:form#animations form} & {@link ng.directive:ngModel#animations ngModel} | add and remove (dirty, pristine, valid, invalid & all other validations) |
* | {@link module:ngMessages#animations ngMessages} | add and remove (ng-active & ng-inactive) |
* | {@link module:ngMessages#animations ngMessage} | enter and leave |
*
* (More information can be found by visiting each the documentation associated with each directive.)
*
* ## CSS-based Animations
*
* CSS-based animations with ngAnimate are unique since they require no JavaScript code at all. By using a CSS class that we reference between our HTML
* and CSS code we can create an animation that will be picked up by Angular when an underlying directive performs an operation.
*
* The example below shows how an `enter` animation can be made possible on an element using `ng-if`:
*
* ```html
* <div ng-if="bool" class="fade">
* Fade me in out
* </div>
* <button ng-click="bool=true">Fade In!</button>
* <button ng-click="bool=false">Fade Out!</button>
* ```
*
* Notice the CSS class **fade**? We can now create the CSS transition code that references this class:
*
* ```css
* /&#42; The starting CSS styles for the enter animation &#42;/
* .fade.ng-enter {
* transition:0.5s linear all;
* opacity:0;
* }
*
* /&#42; The finishing CSS styles for the enter animation &#42;/
* .fade.ng-enter.ng-enter-active {
* opacity:1;
* }
* ```
*
* The key thing to remember here is that, depending on the animation event (which each of the directives above trigger depending on what's going on) two
* generated CSS classes will be applied to the element; in the example above we have `.ng-enter` and `.ng-enter-active`. For CSS transitions, the transition
* code **must** be defined within the starting CSS class (in this case `.ng-enter`). The destination class is what the transition will animate towards.
*
* If for example we wanted to create animations for `leave` and `move` (ngRepeat triggers move) then we can do so using the same CSS naming conventions:
*
* ```css
* /&#42; now the element will fade out before it is removed from the DOM &#42;/
* .fade.ng-leave {
* transition:0.5s linear all;
* opacity:1;
* }
* .fade.ng-leave.ng-leave-active {
* opacity:0;
* }
* ```
*
* We can also make use of **CSS Keyframes** by referencing the keyframe animation within the starting CSS class:
*
* ```css
* /&#42; there is no need to define anything inside of the destination
* CSS class since the keyframe will take charge of the animation &#42;/
* .fade.ng-leave {
* animation: my_fade_animation 0.5s linear;
* -webkit-animation: my_fade_animation 0.5s linear;
* }
*
* @keyframes my_fade_animation {
* from { opacity:1; }
* to { opacity:0; }
* }
*
* @-webkit-keyframes my_fade_animation {
* from { opacity:1; }
* to { opacity:0; }
* }
* ```
*
* Feel free also mix transitions and keyframes together as well as any other CSS classes on the same element.
*
* ### CSS Class-based Animations
*
* Class-based animations (animations that are triggered via `ngClass`, `ngShow`, `ngHide` and some other directives) have a slightly different
* naming convention. Class-based animations are basic enough that a standard transition or keyframe can be referenced on the class being added
* and removed.
*
* For example if we wanted to do a CSS animation for `ngHide` then we place an animation on the `.ng-hide` CSS class:
*
* ```html
* <div ng-show="bool" class="fade">
* Show and hide me
* </div>
* <button ng-click="bool=!bool">Toggle</button>
*
* <style>
* .fade.ng-hide {
* transition:0.5s linear all;
* opacity:0;
* }
* </style>
* ```
*
* All that is going on here with ngShow/ngHide behind the scenes is the `.ng-hide` class is added/removed (when the hidden state is valid). Since
* ngShow and ngHide are animation aware then we can match up a transition and ngAnimate handles the rest.
*
* In addition the addition and removal of the CSS class, ngAnimate also provides two helper methods that we can use to further decorate the animation
* with CSS styles.
*
* ```html
* <div ng-class="{on:onOff}" class="highlight">
* Highlight this box
* </div>
* <button ng-click="onOff=!onOff">Toggle</button>
*
* <style>
* .highlight {
* transition:0.5s linear all;
* }
* .highlight.on-add {
* background:white;
* }
* .highlight.on {
* background:yellow;
* }
* .highlight.on-remove {
* background:black;
* }
* </style>
* ```
*
* We can also make use of CSS keyframes by placing them within the CSS classes.
*
*
* ### CSS Staggering Animations
* A Staggering animation is a collection of animations that are issued with a slight delay in between each successive operation resulting in a
* curtain-like effect. The ngAnimate module (versions >=1.2) supports staggering animations and the stagger effect can be
* performed by creating a **ng-EVENT-stagger** CSS class and attaching that class to the base CSS class used for
* the animation. The style property expected within the stagger class can either be a **transition-delay** or an
* **animation-delay** property (or both if your animation contains both transitions and keyframe animations).
*
* ```css
* .my-animation.ng-enter {
* /&#42; standard transition code &#42;/
* transition: 1s linear all;
* opacity:0;
* }
* .my-animation.ng-enter-stagger {
* /&#42; this will have a 100ms delay between each successive leave animation &#42;/
* transition-delay: 0.1s;
*
* /&#42; As of 1.4.4, this must always be set: it signals ngAnimate
* to not accidentally inherit a delay property from another CSS class &#42;/
* transition-duration: 0s;
*
* /&#42; if you are using animations instead of transitions you should configure as follows:
* animation-delay: 0.1s;
* animation-duration: 0s; &#42;/
* }
* .my-animation.ng-enter.ng-enter-active {
* /&#42; standard transition styles &#42;/
* opacity:1;
* }
* ```
*
* Staggering animations work by default in ngRepeat (so long as the CSS class is defined). Outside of ngRepeat, to use staggering animations
* on your own, they can be triggered by firing multiple calls to the same event on $animate. However, the restrictions surrounding this
* are that each of the elements must have the same CSS className value as well as the same parent element. A stagger operation
* will also be reset if one or more animation frames have passed since the multiple calls to `$animate` were fired.
*
* The following code will issue the **ng-leave-stagger** event on the element provided:
*
* ```js
* var kids = parent.children();
*
* $animate.leave(kids[0]); //stagger index=0
* $animate.leave(kids[1]); //stagger index=1
* $animate.leave(kids[2]); //stagger index=2
* $animate.leave(kids[3]); //stagger index=3
* $animate.leave(kids[4]); //stagger index=4
*
* window.requestAnimationFrame(function() {
* //stagger has reset itself
* $animate.leave(kids[5]); //stagger index=0
* $animate.leave(kids[6]); //stagger index=1
*
* $scope.$digest();
* });
* ```
*
* Stagger animations are currently only supported within CSS-defined animations.
*
* ### The `ng-animate` CSS class
*
* When ngAnimate is animating an element it will apply the `ng-animate` CSS class to the element for the duration of the animation.
* This is a temporary CSS class and it will be removed once the animation is over (for both JavaScript and CSS-based animations).
*
* Therefore, animations can be applied to an element using this temporary class directly via CSS.
*
* ```css
* .zipper.ng-animate {
* transition:0.5s linear all;
* }
* .zipper.ng-enter {
* opacity:0;
* }
* .zipper.ng-enter.ng-enter-active {
* opacity:1;
* }
* .zipper.ng-leave {
* opacity:1;
* }
* .zipper.ng-leave.ng-leave-active {
* opacity:0;
* }
* ```
*
* (Note that the `ng-animate` CSS class is reserved and it cannot be applied on an element directly since ngAnimate will always remove
* the CSS class once an animation has completed.)
*
*
* ### The `ng-[event]-prepare` class
*
* This is a special class that can be used to prevent unwanted flickering / flash of content before
* the actual animation starts. The class is added as soon as an animation is initialized, but removed
* before the actual animation starts (after waiting for a $digest).
* It is also only added for *structural* animations (`enter`, `move`, and `leave`).
*
* In practice, flickering can appear when nesting elements with structural animations such as `ngIf`
* into elements that have class-based animations such as `ngClass`.
*
* ```html
* <div ng-class="{red: myProp}">
* <div ng-class="{blue: myProp}">
* <div class="message" ng-if="myProp"></div>
* </div>
* </div>
* ```
*
* It is possible that during the `enter` animation, the `.message` div will be briefly visible before it starts animating.
* In that case, you can add styles to the CSS that make sure the element stays hidden before the animation starts:
*
* ```css
* .message.ng-enter-prepare {
* opacity: 0;
* }
*
* ```
*
* ## JavaScript-based Animations
*
* ngAnimate also allows for animations to be consumed by JavaScript code. The approach is similar to CSS-based animations (where there is a shared
* CSS class that is referenced in our HTML code) but in addition we need to register the JavaScript animation on the module. By making use of the
* `module.animation()` module function we can register the animation.
*
* Let's see an example of a enter/leave animation using `ngRepeat`:
*
* ```html
* <div ng-repeat="item in items" class="slide">
* {{ item }}
* </div>
* ```
*
* See the **slide** CSS class? Let's use that class to define an animation that we'll structure in our module code by using `module.animation`:
*
* ```js
* myModule.animation('.slide', [function() {
* return {
* // make note that other events (like addClass/removeClass)
* // have different function input parameters
* enter: function(element, doneFn) {
* jQuery(element).fadeIn(1000, doneFn);
*
* // remember to call doneFn so that angular
* // knows that the animation has concluded
* },
*
* move: function(element, doneFn) {
* jQuery(element).fadeIn(1000, doneFn);
* },
*
* leave: function(element, doneFn) {
* jQuery(element).fadeOut(1000, doneFn);
* }
* }
* }]);
* ```
*
* The nice thing about JS-based animations is that we can inject other services and make use of advanced animation libraries such as
* greensock.js and velocity.js.
*
* If our animation code class-based (meaning that something like `ngClass`, `ngHide` and `ngShow` triggers it) then we can still define
* our animations inside of the same registered animation, however, the function input arguments are a bit different:
*
* ```html
* <div ng-class="color" class="colorful">
* this box is moody
* </div>
* <button ng-click="color='red'">Change to red</button>
* <button ng-click="color='blue'">Change to blue</button>
* <button ng-click="color='green'">Change to green</button>
* ```
*
* ```js
* myModule.animation('.colorful', [function() {
* return {
* addClass: function(element, className, doneFn) {
* // do some cool animation and call the doneFn
* },
* removeClass: function(element, className, doneFn) {
* // do some cool animation and call the doneFn
* },
* setClass: function(element, addedClass, removedClass, doneFn) {
* // do some cool animation and call the doneFn
* }
* }
* }]);
* ```
*
* ## CSS + JS Animations Together
*
* AngularJS 1.4 and higher has taken steps to make the amalgamation of CSS and JS animations more flexible. However, unlike earlier versions of Angular,
* defining CSS and JS animations to work off of the same CSS class will not work anymore. Therefore the example below will only result in **JS animations taking
* charge of the animation**:
*
* ```html
* <div ng-if="bool" class="slide">
* Slide in and out
* </div>
* ```
*
* ```js
* myModule.animation('.slide', [function() {
* return {
* enter: function(element, doneFn) {
* jQuery(element).slideIn(1000, doneFn);
* }
* }
* }]);
* ```
*
* ```css
* .slide.ng-enter {
* transition:0.5s linear all;
* transform:translateY(-100px);
* }
* .slide.ng-enter.ng-enter-active {
* transform:translateY(0);
* }
* ```
*
* Does this mean that CSS and JS animations cannot be used together? Do JS-based animations always have higher priority? We can make up for the
* lack of CSS animations by using the `$animateCss` service to trigger our own tweaked-out, CSS-based animations directly from
* our own JS-based animation code:
*
* ```js
* myModule.animation('.slide', ['$animateCss', function($animateCss) {
* return {
* enter: function(element) {
* // this will trigger `.slide.ng-enter` and `.slide.ng-enter-active`.
* return $animateCss(element, {
* event: 'enter',
* structural: true
* });
* }
* }
* }]);
* ```
*
* The nice thing here is that we can save bandwidth by sticking to our CSS-based animation code and we don't need to rely on a 3rd-party animation framework.
*
* The `$animateCss` service is very powerful since we can feed in all kinds of extra properties that will be evaluated and fed into a CSS transition or
* keyframe animation. For example if we wanted to animate the height of an element while adding and removing classes then we can do so by providing that
* data into `$animateCss` directly:
*
* ```js
* myModule.animation('.slide', ['$animateCss', function($animateCss) {
* return {
* enter: function(element) {
* return $animateCss(element, {
* event: 'enter',
* structural: true,
* addClass: 'maroon-setting',
* from: { height:0 },
* to: { height: 200 }
* });
* }
* }
* }]);
* ```
*
* Now we can fill in the rest via our transition CSS code:
*
* ```css
* /&#42; the transition tells ngAnimate to make the animation happen &#42;/
* .slide.ng-enter { transition:0.5s linear all; }
*
* /&#42; this extra CSS class will be absorbed into the transition
* since the $animateCss code is adding the class &#42;/
* .maroon-setting { background:red; }
* ```
*
* And `$animateCss` will figure out the rest. Just make sure to have the `done()` callback fire the `doneFn` function to signal when the animation is over.
*
* To learn more about what's possible be sure to visit the {@link ngAnimate.$animateCss $animateCss service}.
*
* ## Animation Anchoring (via `ng-animate-ref`)
*
* ngAnimate in AngularJS 1.4 comes packed with the ability to cross-animate elements between
* structural areas of an application (like views) by pairing up elements using an attribute
* called `ng-animate-ref`.
*
* Let's say for example we have two views that are managed by `ng-view` and we want to show
* that there is a relationship between two components situated in within these views. By using the
* `ng-animate-ref` attribute we can identify that the two components are paired together and we
* can then attach an animation, which is triggered when the view changes.
*
* Say for example we have the following template code:
*
* ```html
* <!-- index.html -->
* <div ng-view class="view-animation">
* </div>
*
* <!-- home.html -->
* <a href="#/banner-page">
* <img src="./banner.jpg" class="banner" ng-animate-ref="banner">
* </a>
*
* <!-- banner-page.html -->
* <img src="./banner.jpg" class="banner" ng-animate-ref="banner">
* ```
*
* Now, when the view changes (once the link is clicked), ngAnimate will examine the
* HTML contents to see if there is a match reference between any components in the view
* that is leaving and the view that is entering. It will scan both the view which is being
* removed (leave) and inserted (enter) to see if there are any paired DOM elements that
* contain a matching ref value.
*
* The two images match since they share the same ref value. ngAnimate will now create a
* transport element (which is a clone of the first image element) and it will then attempt
* to animate to the position of the second image element in the next view. For the animation to
* work a special CSS class called `ng-anchor` will be added to the transported element.
*
* We can now attach a transition onto the `.banner.ng-anchor` CSS class and then
* ngAnimate will handle the entire transition for us as well as the addition and removal of
* any changes of CSS classes between the elements:
*
* ```css
* .banner.ng-anchor {
* /&#42; this animation will last for 1 second since there are
* two phases to the animation (an `in` and an `out` phase) &#42;/
* transition:0.5s linear all;
* }
* ```
*
* We also **must** include animations for the views that are being entered and removed
* (otherwise anchoring wouldn't be possible since the new view would be inserted right away).
*
* ```css
* .view-animation.ng-enter, .view-animation.ng-leave {
* transition:0.5s linear all;
* position:fixed;
* left:0;
* top:0;
* width:100%;
* }
* .view-animation.ng-enter {
* transform:translateX(100%);
* }
* .view-animation.ng-leave,
* .view-animation.ng-enter.ng-enter-active {
* transform:translateX(0%);
* }
* .view-animation.ng-leave.ng-leave-active {
* transform:translateX(-100%);
* }
* ```
*
* Now we can jump back to the anchor animation. When the animation happens, there are two stages that occur:
* an `out` and an `in` stage. The `out` stage happens first and that is when the element is animated away
* from its origin. Once that animation is over then the `in` stage occurs which animates the
* element to its destination. The reason why there are two animations is to give enough time
* for the enter animation on the new element to be ready.
*
* The example above sets up a transition for both the in and out phases, but we can also target the out or
* in phases directly via `ng-anchor-out` and `ng-anchor-in`.
*
* ```css
* .banner.ng-anchor-out {
* transition: 0.5s linear all;
*
* /&#42; the scale will be applied during the out animation,
* but will be animated away when the in animation runs &#42;/
* transform: scale(1.2);
* }
*
* .banner.ng-anchor-in {
* transition: 1s linear all;
* }
* ```
*
*
*
*
* ### Anchoring Demo
*
<example module="anchoringExample"
name="anchoringExample"
id="anchoringExample"
deps="angular-animate.js;angular-route.js"
animations="true">
<file name="index.html">
<a href="#!/">Home</a>
<hr />
<div class="view-container">
<div ng-view class="view"></div>
</div>
</file>
<file name="script.js">
angular.module('anchoringExample', ['ngAnimate', 'ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'home.html',
controller: 'HomeController as home'
});
$routeProvider.when('/profile/:id', {
templateUrl: 'profile.html',
controller: 'ProfileController as profile'
});
}])
.run(['$rootScope', function($rootScope) {
$rootScope.records = [
{ id: 1, title: 'Miss Beulah Roob' },
{ id: 2, title: 'Trent Morissette' },
{ id: 3, title: 'Miss Ava Pouros' },
{ id: 4, title: 'Rod Pouros' },
{ id: 5, title: 'Abdul Rice' },
{ id: 6, title: 'Laurie Rutherford Sr.' },
{ id: 7, title: 'Nakia McLaughlin' },
{ id: 8, title: 'Jordon Blanda DVM' },
{ id: 9, title: 'Rhoda Hand' },
{ id: 10, title: 'Alexandrea Sauer' }
];
}])
.controller('HomeController', [function() {
//empty
}])
.controller('ProfileController', ['$rootScope', '$routeParams',
function ProfileController($rootScope, $routeParams) {
var index = parseInt($routeParams.id, 10);
var record = $rootScope.records[index - 1];
this.title = record.title;
this.id = record.id;
}]);
</file>
<file name="home.html">
<h2>Welcome to the home page</h1>
<p>Please click on an element</p>
<a class="record"
ng-href="#!/profile/{{ record.id }}"
ng-animate-ref="{{ record.id }}"
ng-repeat="record in records">
{{ record.title }}
</a>
</file>
<file name="profile.html">
<div class="profile record" ng-animate-ref="{{ profile.id }}">
{{ profile.title }}
</div>
</file>
<file name="animations.css">
.record {
display:block;
font-size:20px;
}
.profile {
background:black;
color:white;
font-size:100px;
}
.view-container {
position:relative;
}
.view-container > .view.ng-animate {
position:absolute;
top:0;
left:0;
width:100%;
min-height:500px;
}
.view.ng-enter, .view.ng-leave,
.record.ng-anchor {
transition:0.5s linear all;
}
.view.ng-enter {
transform:translateX(100%);
}
.view.ng-enter.ng-enter-active, .view.ng-leave {
transform:translateX(0%);
}
.view.ng-leave.ng-leave-active {
transform:translateX(-100%);
}
.record.ng-anchor-out {
background:red;
}
</file>
</example>
*
* ### How is the element transported?
*
* When an anchor animation occurs, ngAnimate will clone the starting element and position it exactly where the starting
* element is located on screen via absolute positioning. The cloned element will be placed inside of the root element
* of the application (where ng-app was defined) and all of the CSS classes of the starting element will be applied. The
* element will then animate into the `out` and `in` animations and will eventually reach the coordinates and match
* the dimensions of the destination element. During the entire animation a CSS class of `.ng-animate-shim` will be applied
* to both the starting and destination elements in order to hide them from being visible (the CSS styling for the class
* is: `visibility:hidden`). Once the anchor reaches its destination then it will be removed and the destination element
* will become visible since the shim class will be removed.
*
* ### How is the morphing handled?
*
* CSS Anchoring relies on transitions and keyframes and the internal code is intelligent enough to figure out
* what CSS classes differ between the starting element and the destination element. These different CSS classes
* will be added/removed on the anchor element and a transition will be applied (the transition that is provided
* in the anchor class). Long story short, ngAnimate will figure out what classes to add and remove which will
* make the transition of the element as smooth and automatic as possible. Be sure to use simple CSS classes that
* do not rely on DOM nesting structure so that the anchor element appears the same as the starting element (since
* the cloned element is placed inside of root element which is likely close to the body element).
*
* Note that if the root element is on the `<html>` element then the cloned node will be placed inside of body.
*
*
* ## Using $animate in your directive code
*
* So far we've explored how to feed in animations into an Angular application, but how do we trigger animations within our own directives in our application?
* By injecting the `$animate` service into our directive code, we can trigger structural and class-based hooks which can then be consumed by animations. Let's
* imagine we have a greeting box that shows and hides itself when the data changes
*
* ```html
* <greeting-box active="onOrOff">Hi there</greeting-box>
* ```
*
* ```js
* ngModule.directive('greetingBox', ['$animate', function($animate) {
* return function(scope, element, attrs) {
* attrs.$observe('active', function(value) {
* value ? $animate.addClass(element, 'on') : $animate.removeClass(element, 'on');
* });
* });
* }]);
* ```
*
* Now the `on` CSS class is added and removed on the greeting box component. Now if we add a CSS class on top of the greeting box element
* in our HTML code then we can trigger a CSS or JS animation to happen.
*
* ```css
* /&#42; normally we would create a CSS class to reference on the element &#42;/
* greeting-box.on { transition:0.5s linear all; background:green; color:white; }
* ```
*
* The `$animate` service contains a variety of other methods like `enter`, `leave`, `animate` and `setClass`. To learn more about what's
* possible be sure to visit the {@link ng.$animate $animate service API page}.
*
*
* ## Callbacks and Promises
*
* When `$animate` is called it returns a promise that can be used to capture when the animation has ended. Therefore if we were to trigger
* an animation (within our directive code) then we can continue performing directive and scope related activities after the animation has
* ended by chaining onto the returned promise that animation method returns.
*
* ```js
* // somewhere within the depths of the directive
* $animate.enter(element, parent).then(function() {
* //the animation has completed
* });
* ```
*
* (Note that earlier versions of Angular prior to v1.4 required the promise code to be wrapped using `$scope.$apply(...)`. This is not the case
* anymore.)
*
* In addition to the animation promise, we can also make use of animation-related callbacks within our directives and controller code by registering
* an event listener using the `$animate` service. Let's say for example that an animation was triggered on our view
* routing controller to hook into that:
*
* ```js
* ngModule.controller('HomePageController', ['$animate', function($animate) {
* $animate.on('enter', ngViewElement, function(element) {
* // the animation for this route has completed
* }]);
* }])
* ```
*
* (Note that you will need to trigger a digest within the callback to get angular to notice any scope-related changes.)
*/
var copy;
var extend;
var forEach;
var isArray;
var isDefined;
var isElement;
var isFunction;
var isObject;
var isString;
var isUndefined;
var jqLite;
var noop;
/**
* @ngdoc service
* @name $animate
* @kind object
*
* @description
* The ngAnimate `$animate` service documentation is the same for the core `$animate` service.
*
* Click here {@link ng.$animate to learn more about animations with `$animate`}.
*/
angular.module('ngAnimate', [], function initAngularHelpers() {
// Access helpers from angular core.
// Do it inside a `config` block to ensure `window.angular` is available.
noop = angular.noop;
copy = angular.copy;
extend = angular.extend;
jqLite = angular.element;
forEach = angular.forEach;
isArray = angular.isArray;
isString = angular.isString;
isObject = angular.isObject;
isUndefined = angular.isUndefined;
isDefined = angular.isDefined;
isFunction = angular.isFunction;
isElement = angular.isElement;
}).info({ angularVersion: '1.6.8' }).directive('ngAnimateSwap', ngAnimateSwapDirective).directive('ngAnimateChildren', $$AnimateChildrenDirective).factory('$$rAFScheduler', $$rAFSchedulerFactory).provider('$$animateQueue', $$AnimateQueueProvider).provider('$$animation', $$AnimationProvider).provider('$animateCss', $AnimateCssProvider).provider('$$animateCssDriver', $$AnimateCssDriverProvider).provider('$$animateJs', $$AnimateJsProvider).provider('$$animateJsDriver', $$AnimateJsDriverProvider);
})(window, window.angular);
},{}],135:[function(require,module,exports){
'use strict';
require('./angular-animate');
module.exports = 'ngAnimate';
},{"./angular-animate":134}],136:[function(require,module,exports){
'use strict';
/**
* @license AngularJS v1.6.8
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
(function (window, angular) {
'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying *
* this file is required. *
* *
* Does the change somehow allow for arbitrary javascript to be executed? *
* Or allows for someone to change the prototype of built-in objects? *
* Or gives undesired access to variables likes document or window? *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var $sanitizeMinErr = angular.$$minErr('$sanitize');
var bind;
var extend;
var forEach;
var isDefined;
var lowercase;
var noop;
var nodeContains;
var htmlParser;
var htmlSanitizeWriter;
/**
* @ngdoc module
* @name ngSanitize
* @description
*
* The `ngSanitize` module provides functionality to sanitize HTML.
*
* See {@link ngSanitize.$sanitize `$sanitize`} for usage.
*/
/**
* @ngdoc service
* @name $sanitize
* @kind function
*
* @description
* Sanitizes an html string by stripping all potentially dangerous tokens.
*
* The input is sanitized by parsing the HTML into tokens. All safe tokens (from a whitelist) are
* then serialized back to properly escaped html string. This means that no unsafe input can make
* it into the returned string.
*
* The whitelist for URL sanitization of attribute values is configured using the functions
* `aHrefSanitizationWhitelist` and `imgSrcSanitizationWhitelist` of {@link ng.$compileProvider
* `$compileProvider`}.
*
* The input may also contain SVG markup if this is enabled via {@link $sanitizeProvider}.
*
* @param {string} html HTML input.
* @returns {string} Sanitized HTML.
*
* @example
<example module="sanitizeExample" deps="angular-sanitize.js" name="sanitize-service">
<file name="index.html">
<script>
angular.module('sanitizeExample', ['ngSanitize'])
.controller('ExampleController', ['$scope', '$sce', function($scope, $sce) {
$scope.snippet =
'<p style="color:blue">an html\n' +
'<em onmouseover="this.textContent=\'PWN3D!\'">click here</em>\n' +
'snippet</p>';
$scope.deliberatelyTrustDangerousSnippet = function() {
return $sce.trustAsHtml($scope.snippet);
};
}]);
</script>
<div ng-controller="ExampleController">
Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
<table>
<tr>
<td>Directive</td>
<td>How</td>
<td>Source</td>
<td>Rendered</td>
</tr>
<tr id="bind-html-with-sanitize">
<td>ng-bind-html</td>
<td>Automatically uses $sanitize</td>
<td><pre>&lt;div ng-bind-html="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
<td><div ng-bind-html="snippet"></div></td>
</tr>
<tr id="bind-html-with-trust">
<td>ng-bind-html</td>
<td>Bypass $sanitize by explicitly trusting the dangerous value</td>
<td>
<pre>&lt;div ng-bind-html="deliberatelyTrustDangerousSnippet()"&gt;
&lt;/div&gt;</pre>
</td>
<td><div ng-bind-html="deliberatelyTrustDangerousSnippet()"></div></td>
</tr>
<tr id="bind-default">
<td>ng-bind</td>
<td>Automatically escapes</td>
<td><pre>&lt;div ng-bind="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
<td><div ng-bind="snippet"></div></td>
</tr>
</table>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should sanitize the html snippet by default', function() {
expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')).
toBe('<p>an html\n<em>click here</em>\nsnippet</p>');
});
it('should inline raw snippet if bound to a trusted value', function() {
expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).
toBe("<p style=\"color:blue\">an html\n" +
"<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" +
"snippet</p>");
});
it('should escape snippet without any filter', function() {
expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).
toBe("&lt;p style=\"color:blue\"&gt;an html\n" +
"&lt;em onmouseover=\"this.textContent='PWN3D!'\"&gt;click here&lt;/em&gt;\n" +
"snippet&lt;/p&gt;");
});
it('should update', function() {
element(by.model('snippet')).clear();
element(by.model('snippet')).sendKeys('new <b onclick="alert(1)">text</b>');
expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')).
toBe('new <b>text</b>');
expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe(
'new <b onclick="alert(1)">text</b>');
expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe(
"new &lt;b onclick=\"alert(1)\"&gt;text&lt;/b&gt;");
});
</file>
</example>
*/
/**
* @ngdoc provider
* @name $sanitizeProvider
* @this
*
* @description
* Creates and configures {@link $sanitize} instance.
*/
function $SanitizeProvider() {
var svgEnabled = false;
this.$get = ['$$sanitizeUri', function ($$sanitizeUri) {
if (svgEnabled) {
extend(validElements, svgElements);
}
return function (html) {
var buf = [];
htmlParser(html, htmlSanitizeWriter(buf, function (uri, isImage) {
return !/^unsafe:/.test($$sanitizeUri(uri, isImage));
}));
return buf.join('');
};
}];
/**
* @ngdoc method
* @name $sanitizeProvider#enableSvg
* @kind function
*
* @description
* Enables a subset of svg to be supported by the sanitizer.
*
* <div class="alert alert-warning">
* <p>By enabling this setting without taking other precautions, you might expose your
* application to click-hijacking attacks. In these attacks, sanitized svg elements could be positioned
* outside of the containing element and be rendered over other elements on the page (e.g. a login
* link). Such behavior can then result in phishing incidents.</p>
*
* <p>To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg
* tags within the sanitized content:</p>
*
* <br>
*
* <pre><code>
* .rootOfTheIncludedContent svg {
* overflow: hidden !important;
* }
* </code></pre>
* </div>
*
* @param {boolean=} flag Enable or disable SVG support in the sanitizer.
* @returns {boolean|ng.$sanitizeProvider} Returns the currently configured value if called
* without an argument or self for chaining otherwise.
*/
this.enableSvg = function (enableSvg) {
if (isDefined(enableSvg)) {
svgEnabled = enableSvg;
return this;
} else {
return svgEnabled;
}
};
//////////////////////////////////////////////////////////////////////////////////////////////////
// Private stuff
//////////////////////////////////////////////////////////////////////////////////////////////////
bind = angular.bind;
extend = angular.extend;
forEach = angular.forEach;
isDefined = angular.isDefined;
lowercase = angular.lowercase;
noop = angular.noop;
htmlParser = htmlParserImpl;
htmlSanitizeWriter = htmlSanitizeWriterImpl;
nodeContains = window.Node.prototype.contains || /** @this */function (arg) {
// eslint-disable-next-line no-bitwise
return !!(this.compareDocumentPosition(arg) & 16);
};
// Regular Expressions for parsing tags and attributes
var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
// Match everything outside of normal chars and " (quote character)
NON_ALPHANUMERIC_REGEXP = /([^#-~ |!])/g;
// Good source of info about elements and attributes
// http://dev.w3.org/html5/spec/Overview.html#semantics
// http://simon.html5.org/html-elements
// Safe Void Elements - HTML5
// http://dev.w3.org/html5/spec/Overview.html#void-elements
var voidElements = toMap('area,br,col,hr,img,wbr');
// Elements that you can, intentionally, leave open (and which close themselves)
// http://dev.w3.org/html5/spec/Overview.html#optional-tags
var optionalEndTagBlockElements = toMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'),
optionalEndTagInlineElements = toMap('rp,rt'),
optionalEndTagElements = extend({}, optionalEndTagInlineElements, optionalEndTagBlockElements);
// Safe Block Elements - HTML5
var blockElements = extend({}, optionalEndTagBlockElements, toMap('address,article,' + 'aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul'));
// Inline Elements - HTML5
var inlineElements = extend({}, optionalEndTagInlineElements, toMap('a,abbr,acronym,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,' + 'samp,small,span,strike,strong,sub,sup,time,tt,u,var'));
// SVG Elements
// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements
// Note: the elements animate,animateColor,animateMotion,animateTransform,set are intentionally omitted.
// They can potentially allow for arbitrary javascript to be executed. See #11290
var svgElements = toMap('circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,' + 'hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,' + 'radialGradient,rect,stop,svg,switch,text,title,tspan');
// Blocked Elements (will be stripped)
var blockedElements = toMap('script,style');
var validElements = extend({}, voidElements, blockElements, inlineElements, optionalEndTagElements);
//Attributes that have href and hence need to be sanitized
var uriAttrs = toMap('background,cite,href,longdesc,src,xlink:href');
var htmlAttrs = toMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,' + 'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,' + 'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,' + 'scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,' + 'valign,value,vspace,width');
// SVG attributes (without "id" and "name" attributes)
// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes
var svgAttrs = toMap('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' + 'baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,' + 'cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,' + 'font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,' + 'height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,' + 'marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,' + 'max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,' + 'path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,' + 'requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,' + 'stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,' + 'stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,' + 'stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,' + 'underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,' + 'width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,' + 'xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan', true);
var validAttrs = extend({}, uriAttrs, svgAttrs, htmlAttrs);
function toMap(str, lowercaseKeys) {
var obj = {},
items = str.split(','),
i;
for (i = 0; i < items.length; i++) {
obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true;
}
return obj;
}
/**
* Create an inert document that contains the dirty HTML that needs sanitizing
* Depending upon browser support we use one of three strategies for doing this.
* Support: Safari 10.x -> XHR strategy
* Support: Firefox -> DomParser strategy
*/
var getInertBodyElement /* function(html: string): HTMLBodyElement */ = function (window, document) {
var inertDocument;
if (document && document.implementation) {
inertDocument = document.implementation.createHTMLDocument('inert');
} else {
throw $sanitizeMinErr('noinert', 'Can\'t create an inert html document');
}
var inertBodyElement = (inertDocument.documentElement || inertDocument.getDocumentElement()).querySelector('body');
// Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element
inertBodyElement.innerHTML = '<svg><g onload="this.parentNode.remove()"></g></svg>';
if (!inertBodyElement.querySelector('svg')) {
return getInertBodyElement_XHR;
} else {
// Check for the Firefox bug - which prevents the inner img JS from being sanitized
inertBodyElement.innerHTML = '<svg><p><style><img src="</style><img src=x onerror=alert(1)//">';
if (inertBodyElement.querySelector('svg img')) {
return getInertBodyElement_DOMParser;
} else {
return getInertBodyElement_InertDocument;
}
}
function getInertBodyElement_XHR(html) {
// We add this dummy element to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag.
html = '<remove></remove>' + html;
try {
html = encodeURI(html);
} catch (e) {
return undefined;
}
var xhr = new window.XMLHttpRequest();
xhr.responseType = 'document';
xhr.open('GET', 'data:text/html;charset=utf-8,' + html, false);
xhr.send(null);
var body = xhr.response.body;
body.firstChild.remove();
return body;
}
function getInertBodyElement_DOMParser(html) {
// We add this dummy element to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag.
html = '<remove></remove>' + html;
try {
var body = new window.DOMParser().parseFromString(html, 'text/html').body;
body.firstChild.remove();
return body;
} catch (e) {
return undefined;
}
}
function getInertBodyElement_InertDocument(html) {
inertBodyElement.innerHTML = html;
// Support: IE 9-11 only
// strip custom-namespaced attributes on IE<=11
if (document.documentMode) {
stripCustomNsAttrs(inertBodyElement);
}
return inertBodyElement;
}
}(window, window.document);
/**
* @example
* htmlParser(htmlString, {
* start: function(tag, attrs) {},
* end: function(tag) {},
* chars: function(text) {},
* comment: function(text) {}
* });
*
* @param {string} html string
* @param {object} handler
*/
function htmlParserImpl(html, handler) {
if (html === null || html === undefined) {
html = '';
} else if (typeof html !== 'string') {
html = '' + html;
}
var inertBodyElement = getInertBodyElement(html);
if (!inertBodyElement) return '';
//mXSS protection
var mXSSAttempts = 5;
do {
if (mXSSAttempts === 0) {
throw $sanitizeMinErr('uinput', 'Failed to sanitize html because the input is unstable');
}
mXSSAttempts--;
// trigger mXSS if it is going to happen by reading and writing the innerHTML
html = inertBodyElement.innerHTML;
inertBodyElement = getInertBodyElement(html);
} while (html !== inertBodyElement.innerHTML);
var node = inertBodyElement.firstChild;
while (node) {
switch (node.nodeType) {
case 1:
// ELEMENT_NODE
handler.start(node.nodeName.toLowerCase(), attrToMap(node.attributes));
break;
case 3:
// TEXT NODE
handler.chars(node.textContent);
break;
}
var nextNode;
if (!(nextNode = node.firstChild)) {
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}
nextNode = getNonDescendant('nextSibling', node);
if (!nextNode) {
while (nextNode == null) {
node = getNonDescendant('parentNode', node);
if (node === inertBodyElement) break;
nextNode = getNonDescendant('nextSibling', node);
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}
}
}
}
node = nextNode;
}
while (node = inertBodyElement.firstChild) {
inertBodyElement.removeChild(node);
}
}
function attrToMap(attrs) {
var map = {};
for (var i = 0, ii = attrs.length; i < ii; i++) {
var attr = attrs[i];
map[attr.name] = attr.value;
}
return map;
}
/**
* Escapes all potentially dangerous characters, so that the
* resulting string can be safely inserted into attribute or
* element text.
* @param value
* @returns {string} escaped text
*/
function encodeEntities(value) {
return value.replace(/&/g, '&amp;').replace(SURROGATE_PAIR_REGEXP, function (value) {
var hi = value.charCodeAt(0);
var low = value.charCodeAt(1);
return '&#' + ((hi - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000) + ';';
}).replace(NON_ALPHANUMERIC_REGEXP, function (value) {
return '&#' + value.charCodeAt(0) + ';';
}).replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
/**
* create an HTML/XML writer which writes to buffer
* @param {Array} buf use buf.join('') to get out sanitized html string
* @returns {object} in the form of {
* start: function(tag, attrs) {},
* end: function(tag) {},
* chars: function(text) {},
* comment: function(text) {}
* }
*/
function htmlSanitizeWriterImpl(buf, uriValidator) {
var ignoreCurrentElement = false;
var out = bind(buf, buf.push);
return {
start: function start(tag, attrs) {
tag = lowercase(tag);
if (!ignoreCurrentElement && blockedElements[tag]) {
ignoreCurrentElement = tag;
}
if (!ignoreCurrentElement && validElements[tag] === true) {
out('<');
out(tag);
forEach(attrs, function (value, key) {
var lkey = lowercase(key);
var isImage = tag === 'img' && lkey === 'src' || lkey === 'background';
if (validAttrs[lkey] === true && (uriAttrs[lkey] !== true || uriValidator(value, isImage))) {
out(' ');
out(key);
out('="');
out(encodeEntities(value));
out('"');
}
});
out('>');
}
},
end: function end(tag) {
tag = lowercase(tag);
if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) {
out('</');
out(tag);
out('>');
}
// eslint-disable-next-line eqeqeq
if (tag == ignoreCurrentElement) {
ignoreCurrentElement = false;
}
},
chars: function chars(_chars) {
if (!ignoreCurrentElement) {
out(encodeEntities(_chars));
}
}
};
}
/**
* When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1' attribute to declare
* ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo'). This is undesirable since we don't want
* to allow any of these custom attributes. This method strips them all.
*
* @param node Root element to process
*/
function stripCustomNsAttrs(node) {
while (node) {
if (node.nodeType === window.Node.ELEMENT_NODE) {
var attrs = node.attributes;
for (var i = 0, l = attrs.length; i < l; i++) {
var attrNode = attrs[i];
var attrName = attrNode.name.toLowerCase();
if (attrName === 'xmlns:ns1' || attrName.lastIndexOf('ns1:', 0) === 0) {
node.removeAttributeNode(attrNode);
i--;
l--;
}
}
}
var nextNode = node.firstChild;
if (nextNode) {
stripCustomNsAttrs(nextNode);
}
node = getNonDescendant('nextSibling', node);
}
}
function getNonDescendant(propName, node) {
// An element is clobbered if its `propName` property points to one of its descendants
var nextNode = node[propName];
if (nextNode && nodeContains.call(node, nextNode)) {
throw $sanitizeMinErr('elclob', 'Failed to sanitize html because the element is clobbered: {0}', node.outerHTML || node.outerText);
}
return nextNode;
}
}
function sanitizeText(chars) {
var buf = [];
var writer = htmlSanitizeWriter(buf, noop);
writer.chars(chars);
return buf.join('');
}
// define ngSanitize module and register $sanitize service
angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider).info({ angularVersion: '1.6.8' });
/**
* @ngdoc filter
* @name linky
* @kind function
*
* @description
* Finds links in text input and turns them into html links. Supports `http/https/ftp/sftp/mailto` and
* plain email address links.
*
* Requires the {@link ngSanitize `ngSanitize`} module to be installed.
*
* @param {string} text Input text.
* @param {string} [target] Window (`_blank|_self|_parent|_top`) or named frame to open links in.
* @param {object|function(url)} [attributes] Add custom attributes to the link element.
*
* Can be one of:
*
* - `object`: A map of attributes
* - `function`: Takes the url as a parameter and returns a map of attributes
*
* If the map of attributes contains a value for `target`, it overrides the value of
* the target parameter.
*
*
* @returns {string} Html-linkified and {@link $sanitize sanitized} text.
*
* @usage
<span ng-bind-html="linky_expression | linky"></span>
*
* @example
<example module="linkyExample" deps="angular-sanitize.js" name="linky-filter">
<file name="index.html">
<div ng-controller="ExampleController">
Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
<table>
<tr>
<th>Filter</th>
<th>Source</th>
<th>Rendered</th>
</tr>
<tr id="linky-filter">
<td>linky filter</td>
<td>
<pre>&lt;div ng-bind-html="snippet | linky"&gt;<br>&lt;/div&gt;</pre>
</td>
<td>
<div ng-bind-html="snippet | linky"></div>
</td>
</tr>
<tr id="linky-target">
<td>linky target</td>
<td>
<pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_blank'"&gt;<br>&lt;/div&gt;</pre>
</td>
<td>
<div ng-bind-html="snippetWithSingleURL | linky:'_blank'"></div>
</td>
</tr>
<tr id="linky-custom-attributes">
<td>linky custom attributes</td>
<td>
<pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"&gt;<br>&lt;/div&gt;</pre>
</td>
<td>
<div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"></div>
</td>
</tr>
<tr id="escaped-html">
<td>no filter</td>
<td><pre>&lt;div ng-bind="snippet"&gt;<br>&lt;/div&gt;</pre></td>
<td><div ng-bind="snippet"></div></td>
</tr>
</table>
</file>
<file name="script.js">
angular.module('linkyExample', ['ngSanitize'])
.controller('ExampleController', ['$scope', function($scope) {
$scope.snippet =
'Pretty text with some links:\n' +
'http://angularjs.org/,\n' +
'mailto:us@somewhere.org,\n' +
'another@somewhere.org,\n' +
'and one more: ftp://127.0.0.1/.';
$scope.snippetWithSingleURL = 'http://angularjs.org/';
}]);
</file>
<file name="protractor.js" type="protractor">
it('should linkify the snippet with urls', function() {
expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
toBe('Pretty text with some links: http://angularjs.org/, us@somewhere.org, ' +
'another@somewhere.org, and one more: ftp://127.0.0.1/.');
expect(element.all(by.css('#linky-filter a')).count()).toEqual(4);
});
it('should not linkify snippet without the linky filter', function() {
expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText()).
toBe('Pretty text with some links: http://angularjs.org/, mailto:us@somewhere.org, ' +
'another@somewhere.org, and one more: ftp://127.0.0.1/.');
expect(element.all(by.css('#escaped-html a')).count()).toEqual(0);
});
it('should update', function() {
element(by.model('snippet')).clear();
element(by.model('snippet')).sendKeys('new http://link.');
expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
toBe('new http://link.');
expect(element.all(by.css('#linky-filter a')).count()).toEqual(1);
expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText())
.toBe('new http://link.');
});
it('should work with the target property', function() {
expect(element(by.id('linky-target')).
element(by.binding("snippetWithSingleURL | linky:'_blank'")).getText()).
toBe('http://angularjs.org/');
expect(element(by.css('#linky-target a')).getAttribute('target')).toEqual('_blank');
});
it('should optionally add custom attributes', function() {
expect(element(by.id('linky-custom-attributes')).
element(by.binding("snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}")).getText()).
toBe('http://angularjs.org/');
expect(element(by.css('#linky-custom-attributes a')).getAttribute('rel')).toEqual('nofollow');
});
</file>
</example>
*/
angular.module('ngSanitize').filter('linky', ['$sanitize', function ($sanitize) {
var LINKY_URL_REGEXP = /((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
MAILTO_REGEXP = /^mailto:/i;
var linkyMinErr = angular.$$minErr('linky');
var isDefined = angular.isDefined;
var isFunction = angular.isFunction;
var isObject = angular.isObject;
var isString = angular.isString;
return function (text, target, attributes) {
if (text == null || text === '') return text;
if (!isString(text)) throw linkyMinErr('notstring', 'Expected string but received: {0}', text);
var attributesFn = isFunction(attributes) ? attributes : isObject(attributes) ? function getAttributesObject() {
return attributes;
} : function getEmptyAttributesObject() {
return {};
};
var match;
var raw = text;
var html = [];
var url;
var i;
while (match = raw.match(LINKY_URL_REGEXP)) {
// We can not end in these as they are sometimes found at the end of the sentence
url = match[0];
// if we did not match ftp/http/www/mailto then assume mailto
if (!match[2] && !match[4]) {
url = (match[3] ? 'http://' : 'mailto:') + url;
}
i = match.index;
addText(raw.substr(0, i));
addLink(url, match[0].replace(MAILTO_REGEXP, ''));
raw = raw.substring(i + match[0].length);
}
addText(raw);
return $sanitize(html.join(''));
function addText(text) {
if (!text) {
return;
}
html.push(sanitizeText(text));
}
function addLink(url, text) {
var key,
linkAttributes = attributesFn(url);
html.push('<a ');
for (key in linkAttributes) {
html.push(key + '="' + linkAttributes[key] + '" ');
}
if (isDefined(target) && !('target' in linkAttributes)) {
html.push('target="', target, '" ');
}
html.push('href="', url.replace(/"/g, '&quot;'), '">');
addText(text);
html.push('</a>');
}
};
}]);
})(window, window.angular);
},{}],137:[function(require,module,exports){
'use strict';
require('./angular-sanitize');
module.exports = 'ngSanitize';
},{"./angular-sanitize":136}],138:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*!
* angular-translate - v2.17.0 - 2017-12-21
*
* Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define([], function () {
return factory();
});
} else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
factory();
}
})(undefined, function () {
$translateMissingTranslationHandlerLog.$inject = ['$log'];
angular.module('pascalprecht.translate')
/**
* @ngdoc object
* @name pascalprecht.translate.$translateMissingTranslationHandlerLog
* @requires $log
*
* @description
* Uses angular's `$log` service to give a warning when trying to translate a
* translation id which doesn't exist.
*
* @returns {function} Handler function
*/
.factory('$translateMissingTranslationHandlerLog', $translateMissingTranslationHandlerLog);
function $translateMissingTranslationHandlerLog($log) {
'use strict';
return function (translationId) {
$log.warn('Translation for ' + translationId + ' doesn\'t exist');
};
}
$translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog';
return 'pascalprecht.translate';
});
},{}],139:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*!
* angular-translate - v2.17.0 - 2017-12-21
*
* Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define([], function () {
return factory();
});
} else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
factory();
}
})(undefined, function () {
/**
* @ngdoc overview
* @name pascalprecht.translate
*
* @description
* The main module which holds everything together.
*/
runTranslate.$inject = ['$translate'];
$translate.$inject = ['$STORAGE_KEY', '$windowProvider', '$translateSanitizationProvider', 'pascalprechtTranslateOverrider'];
$translateDefaultInterpolation.$inject = ['$interpolate', '$translateSanitization'];
translateDirective.$inject = ['$translate', '$interpolate', '$compile', '$parse', '$rootScope'];
translateAttrDirective.$inject = ['$translate', '$rootScope'];
translateCloakDirective.$inject = ['$translate', '$rootScope'];
translateFilterFactory.$inject = ['$parse', '$translate'];
$translationCache.$inject = ['$cacheFactory'];
angular.module('pascalprecht.translate', ['ng']).run(runTranslate);
function runTranslate($translate) {
'use strict';
var key = $translate.storageKey(),
storage = $translate.storage();
var fallbackFromIncorrectStorageValue = function fallbackFromIncorrectStorageValue() {
var preferred = $translate.preferredLanguage();
if (angular.isString(preferred)) {
$translate.use(preferred);
// $translate.use() will also remember the language.
// So, we don't need to call storage.put() here.
} else {
storage.put(key, $translate.use());
}
};
fallbackFromIncorrectStorageValue.displayName = 'fallbackFromIncorrectStorageValue';
if (storage) {
if (!storage.get(key)) {
fallbackFromIncorrectStorageValue();
} else {
$translate.use(storage.get(key))['catch'](fallbackFromIncorrectStorageValue);
}
} else if (angular.isString($translate.preferredLanguage())) {
$translate.use($translate.preferredLanguage());
}
}
runTranslate.displayName = 'runTranslate';
/**
* @ngdoc object
* @name pascalprecht.translate.$translateSanitizationProvider
*
* @description
*
* Configurations for $translateSanitization
*/
angular.module('pascalprecht.translate').provider('$translateSanitization', $translateSanitizationProvider);
function $translateSanitizationProvider() {
'use strict';
var $sanitize,
$sce,
currentStrategy = null,
// TODO change to either 'sanitize', 'escape' or ['sanitize', 'escapeParameters'] in 3.0.
hasConfiguredStrategy = false,
hasShownNoStrategyConfiguredWarning = false,
strategies;
/**
* Definition of a sanitization strategy function
* @callback StrategyFunction
* @param {string|object} value - value to be sanitized (either a string or an interpolated value map)
* @param {string} mode - either 'text' for a string (translation) or 'params' for the interpolated params
* @return {string|object}
*/
/**
* @ngdoc property
* @name strategies
* @propertyOf pascalprecht.translate.$translateSanitizationProvider
*
* @description
* Following strategies are built-in:
* <dl>
* <dt>sanitize</dt>
* <dd>Sanitizes HTML in the translation text using $sanitize</dd>
* <dt>escape</dt>
* <dd>Escapes HTML in the translation</dd>
* <dt>sanitizeParameters</dt>
* <dd>Sanitizes HTML in the values of the interpolation parameters using $sanitize</dd>
* <dt>escapeParameters</dt>
* <dd>Escapes HTML in the values of the interpolation parameters</dd>
* <dt>escaped</dt>
* <dd>Support legacy strategy name 'escaped' for backwards compatibility (will be removed in 3.0)</dd>
* </dl>
*
*/
strategies = {
sanitize: function sanitize(value, mode /*, context*/) {
if (mode === 'text') {
value = htmlSanitizeValue(value);
}
return value;
},
escape: function escape(value, mode /*, context*/) {
if (mode === 'text') {
value = htmlEscapeValue(value);
}
return value;
},
sanitizeParameters: function sanitizeParameters(value, mode /*, context*/) {
if (mode === 'params') {
value = mapInterpolationParameters(value, htmlSanitizeValue);
}
return value;
},
escapeParameters: function escapeParameters(value, mode /*, context*/) {
if (mode === 'params') {
value = mapInterpolationParameters(value, htmlEscapeValue);
}
return value;
},
sce: function sce(value, mode, context) {
if (mode === 'text') {
value = htmlTrustValue(value);
} else if (mode === 'params') {
if (context !== 'filter') {
// do html escape in filter context #1101
value = mapInterpolationParameters(value, htmlEscapeValue);
}
}
return value;
},
sceParameters: function sceParameters(value, mode /*, context*/) {
if (mode === 'params') {
value = mapInterpolationParameters(value, htmlTrustValue);
}
return value;
}
};
// Support legacy strategy name 'escaped' for backwards compatibility.
// TODO should be removed in 3.0
strategies.escaped = strategies.escapeParameters;
/**
* @ngdoc function
* @name pascalprecht.translate.$translateSanitizationProvider#addStrategy
* @methodOf pascalprecht.translate.$translateSanitizationProvider
*
* @description
* Adds a sanitization strategy to the list of known strategies.
*
* @param {string} strategyName - unique key for a strategy
* @param {StrategyFunction} strategyFunction - strategy function
* @returns {object} this
*/
this.addStrategy = function (strategyName, strategyFunction) {
strategies[strategyName] = strategyFunction;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateSanitizationProvider#removeStrategy
* @methodOf pascalprecht.translate.$translateSanitizationProvider
*
* @description
* Removes a sanitization strategy from the list of known strategies.
*
* @param {string} strategyName - unique key for a strategy
* @returns {object} this
*/
this.removeStrategy = function (strategyName) {
delete strategies[strategyName];
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateSanitizationProvider#useStrategy
* @methodOf pascalprecht.translate.$translateSanitizationProvider
*
* @description
* Selects a sanitization strategy. When an array is provided the strategies will be executed in order.
*
* @param {string|StrategyFunction|array} strategy The sanitization strategy / strategies which should be used. Either a name of an existing strategy, a custom strategy function, or an array consisting of multiple names and / or custom functions.
* @returns {object} this
*/
this.useStrategy = function (strategy) {
hasConfiguredStrategy = true;
currentStrategy = strategy;
return this;
};
/**
* @ngdoc object
* @name pascalprecht.translate.$translateSanitization
* @requires $injector
* @requires $log
*
* @description
* Sanitizes interpolation parameters and translated texts.
*
*/
this.$get = ['$injector', '$log', function ($injector, $log) {
var cachedStrategyMap = {};
var applyStrategies = function applyStrategies(value, mode, context, selectedStrategies) {
angular.forEach(selectedStrategies, function (selectedStrategy) {
if (angular.isFunction(selectedStrategy)) {
value = selectedStrategy(value, mode, context);
} else if (angular.isFunction(strategies[selectedStrategy])) {
value = strategies[selectedStrategy](value, mode, context);
} else if (angular.isString(strategies[selectedStrategy])) {
if (!cachedStrategyMap[strategies[selectedStrategy]]) {
try {
cachedStrategyMap[strategies[selectedStrategy]] = $injector.get(strategies[selectedStrategy]);
} catch (e) {
cachedStrategyMap[strategies[selectedStrategy]] = function () {};
throw new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \'' + selectedStrategy + '\'');
}
}
value = cachedStrategyMap[strategies[selectedStrategy]](value, mode, context);
} else {
throw new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \'' + selectedStrategy + '\'');
}
});
return value;
};
// TODO: should be removed in 3.0
var showNoStrategyConfiguredWarning = function showNoStrategyConfiguredWarning() {
if (!hasConfiguredStrategy && !hasShownNoStrategyConfiguredWarning) {
$log.warn('pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details.');
hasShownNoStrategyConfiguredWarning = true;
}
};
if ($injector.has('$sanitize')) {
$sanitize = $injector.get('$sanitize');
}
if ($injector.has('$sce')) {
$sce = $injector.get('$sce');
}
return {
/**
* @ngdoc function
* @name pascalprecht.translate.$translateSanitization#useStrategy
* @methodOf pascalprecht.translate.$translateSanitization
*
* @description
* Selects a sanitization strategy. When an array is provided the strategies will be executed in order.
*
* @param {string|StrategyFunction|array} strategy The sanitization strategy / strategies which should be used. Either a name of an existing strategy, a custom strategy function, or an array consisting of multiple names and / or custom functions.
*/
useStrategy: function (self) {
return function (strategy) {
self.useStrategy(strategy);
};
}(this),
/**
* @ngdoc function
* @name pascalprecht.translate.$translateSanitization#sanitize
* @methodOf pascalprecht.translate.$translateSanitization
*
* @description
* Sanitizes a value.
*
* @param {string|object} value The value which should be sanitized.
* @param {string} mode The current sanitization mode, either 'params' or 'text'.
* @param {string|StrategyFunction|array} [strategy] Optional custom strategy which should be used instead of the currently selected strategy.
* @param {string} [context] The context of this call: filter, service. Default is service
* @returns {string|object} sanitized value
*/
sanitize: function sanitize(value, mode, strategy, context) {
if (!currentStrategy) {
showNoStrategyConfiguredWarning();
}
if (!strategy && strategy !== null) {
strategy = currentStrategy;
}
if (!strategy) {
return value;
}
if (!context) {
context = 'service';
}
var selectedStrategies = angular.isArray(strategy) ? strategy : [strategy];
return applyStrategies(value, mode, context, selectedStrategies);
}
};
}];
var htmlEscapeValue = function htmlEscapeValue(value) {
var element = angular.element('<div></div>');
element.text(value); // not chainable, see #1044
return element.html();
};
var htmlSanitizeValue = function htmlSanitizeValue(value) {
if (!$sanitize) {
throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as \'escape\'.');
}
return $sanitize(value);
};
var htmlTrustValue = function htmlTrustValue(value) {
if (!$sce) {
throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.');
}
return $sce.trustAsHtml(value);
};
var mapInterpolationParameters = function mapInterpolationParameters(value, iteratee, stack) {
if (angular.isDate(value)) {
return value;
} else if (angular.isObject(value)) {
var result = angular.isArray(value) ? [] : {};
if (!stack) {
stack = [];
} else {
if (stack.indexOf(value) > -1) {
throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object');
}
}
stack.push(value);
angular.forEach(value, function (propertyValue, propertyKey) {
/* Skipping function properties. */
if (angular.isFunction(propertyValue)) {
return;
}
result[propertyKey] = mapInterpolationParameters(propertyValue, iteratee, stack);
});
stack.splice(-1, 1); // remove last
return result;
} else if (angular.isNumber(value)) {
return value;
} else if (value === true || value === false) {
return value;
} else if (!angular.isUndefined(value) && value !== null) {
return iteratee(value);
} else {
return value;
}
};
}
/**
* @ngdoc object
* @name pascalprecht.translate.$translateProvider
* @description
*
* $translateProvider allows developers to register translation-tables, asynchronous loaders
* and similar to configure translation behavior directly inside of a module.
*
*/
angular.module('pascalprecht.translate').constant('pascalprechtTranslateOverrider', {}).provider('$translate', $translate);
function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider, pascalprechtTranslateOverrider) {
'use strict';
var $translationTable = {},
$preferredLanguage,
$availableLanguageKeys = [],
$languageKeyAliases,
$fallbackLanguage,
$fallbackWasString,
$uses,
$nextLang,
$storageFactory,
$storageKey = $STORAGE_KEY,
$storagePrefix,
$missingTranslationHandlerFactory,
$interpolationFactory,
$interpolatorFactories = [],
$loaderFactory,
$cloakClassName = 'translate-cloak',
$loaderOptions,
$notFoundIndicatorLeft,
$notFoundIndicatorRight,
$postCompilingEnabled = false,
$forceAsyncReloadEnabled = false,
$nestedObjectDelimeter = '.',
$isReady = false,
$keepContent = false,
loaderCache,
directivePriority = 0,
statefulFilter = true,
postProcessFn,
uniformLanguageTagResolver = 'default',
languageTagResolver = {
'default': function _default(tag) {
return (tag || '').split('-').join('_');
},
java: function java(tag) {
var temp = (tag || '').split('-').join('_');
var parts = temp.split('_');
return parts.length > 1 ? parts[0].toLowerCase() + '_' + parts[1].toUpperCase() : temp;
},
bcp47: function bcp47(tag) {
var temp = (tag || '').split('_').join('-');
var parts = temp.split('-');
switch (parts.length) {
case 1:
// language only
parts[0] = parts[0].toLowerCase();
break;
case 2:
// language-script or language-region
parts[0] = parts[0].toLowerCase();
if (parts[1].length === 4) {
// parts[1] is script
parts[1] = parts[1].charAt(0).toUpperCase() + parts[1].slice(1).toLowerCase();
} else {
// parts[1] is region
parts[1] = parts[1].toUpperCase();
}
break;
case 3:
// language-script-region
parts[0] = parts[0].toLowerCase();
parts[1] = parts[1].charAt(0).toUpperCase() + parts[1].slice(1).toLowerCase();
parts[2] = parts[2].toUpperCase();
break;
default:
return temp;
}
return parts.join('-');
},
'iso639-1': function iso6391(tag) {
var temp = (tag || '').split('_').join('-');
var parts = temp.split('-');
return parts[0].toLowerCase();
}
};
var version = '2.17.0';
// tries to determine the browsers language
var getFirstBrowserLanguage = function getFirstBrowserLanguage() {
// internal purpose only
if (angular.isFunction(pascalprechtTranslateOverrider.getLocale)) {
return pascalprechtTranslateOverrider.getLocale();
}
var nav = $windowProvider.$get().navigator,
browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'],
i,
language;
// support for HTML 5.1 "navigator.languages"
if (angular.isArray(nav.languages)) {
for (i = 0; i < nav.languages.length; i++) {
language = nav.languages[i];
if (language && language.length) {
return language;
}
}
}
// support for other well known properties in browsers
for (i = 0; i < browserLanguagePropertyKeys.length; i++) {
language = nav[browserLanguagePropertyKeys[i]];
if (language && language.length) {
return language;
}
}
return null;
};
getFirstBrowserLanguage.displayName = 'angular-translate/service: getFirstBrowserLanguage';
// tries to determine the browsers locale
var getLocale = function getLocale() {
var locale = getFirstBrowserLanguage() || '';
if (languageTagResolver[uniformLanguageTagResolver]) {
locale = languageTagResolver[uniformLanguageTagResolver](locale);
}
return locale;
};
getLocale.displayName = 'angular-translate/service: getLocale';
/**
* @name indexOf
* @private
*
* @description
* indexOf polyfill. Kinda sorta.
*
* @param {array} array Array to search in.
* @param {string} searchElement Element to search for.
*
* @returns {int} Index of search element.
*/
var indexOf = function indexOf(array, searchElement) {
for (var i = 0, len = array.length; i < len; i++) {
if (array[i] === searchElement) {
return i;
}
}
return -1;
};
/**
* @name trim
* @private
*
* @description
* trim polyfill
*
* @returns {string} The string stripped of whitespace from both ends
*/
var trim = function trim() {
return this.toString().replace(/^\s+|\s+$/g, '');
};
/**
* @name lowercase
* @private
*
* @description
* Return the lowercase string only if the type is string
*
* @returns {string} The string all in lowercase
*/
var lowercase = function lowercase(string) {
return angular.isString(string) ? string.toLowerCase() : string;
};
var negotiateLocale = function negotiateLocale(preferred) {
if (!preferred) {
return;
}
var avail = [],
locale = lowercase(preferred),
i = 0,
n = $availableLanguageKeys.length;
for (; i < n; i++) {
avail.push(lowercase($availableLanguageKeys[i]));
}
// Check for an exact match in our list of available keys
i = indexOf(avail, locale);
if (i > -1) {
return $availableLanguageKeys[i];
}
if ($languageKeyAliases) {
var alias;
for (var langKeyAlias in $languageKeyAliases) {
if ($languageKeyAliases.hasOwnProperty(langKeyAlias)) {
var hasWildcardKey = false;
var hasExactKey = Object.prototype.hasOwnProperty.call($languageKeyAliases, langKeyAlias) && lowercase(langKeyAlias) === lowercase(preferred);
if (langKeyAlias.slice(-1) === '*') {
hasWildcardKey = lowercase(langKeyAlias.slice(0, -1)) === lowercase(preferred.slice(0, langKeyAlias.length - 1));
}
if (hasExactKey || hasWildcardKey) {
alias = $languageKeyAliases[langKeyAlias];
if (indexOf(avail, lowercase(alias)) > -1) {
return alias;
}
}
}
}
}
// Check for a language code without region
var parts = preferred.split('_');
if (parts.length > 1 && indexOf(avail, lowercase(parts[0])) > -1) {
return parts[0];
}
// If everything fails, return undefined.
return;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#translations
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Registers a new translation table for specific language key.
*
* To register a translation table for specific language, pass a defined language
* key as first parameter.
*
* <pre>
* // register translation table for language: 'de_DE'
* $translateProvider.translations('de_DE', {
* 'GREETING': 'Hallo Welt!'
* });
*
* // register another one
* $translateProvider.translations('en_US', {
* 'GREETING': 'Hello world!'
* });
* </pre>
*
* When registering multiple translation tables for for the same language key,
* the actual translation table gets extended. This allows you to define module
* specific translation which only get added, once a specific module is loaded in
* your app.
*
* Invoking this method with no arguments returns the translation table which was
* registered with no language key. Invoking it with a language key returns the
* related translation table.
*
* @param {string} langKey A language key.
* @param {object} translationTable A plain old JavaScript object that represents a translation table.
*
*/
var translations = function translations(langKey, translationTable) {
if (!langKey && !translationTable) {
return $translationTable;
}
if (langKey && !translationTable) {
if (angular.isString(langKey)) {
return $translationTable[langKey];
}
} else {
if (!angular.isObject($translationTable[langKey])) {
$translationTable[langKey] = {};
}
angular.extend($translationTable[langKey], flatObject(translationTable));
}
return this;
};
this.translations = translations;
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#cloakClassName
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
*
* Let's you change the class name for `translate-cloak` directive.
* Default class name is `translate-cloak`.
*
* @param {string} name translate-cloak class name
*/
this.cloakClassName = function (name) {
if (!name) {
return $cloakClassName;
}
$cloakClassName = name;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#nestedObjectDelimeter
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
*
* Let's you change the delimiter for namespaced translations.
* Default delimiter is `.`.
*
* @param {string} delimiter namespace separator
*/
this.nestedObjectDelimeter = function (delimiter) {
if (!delimiter) {
return $nestedObjectDelimeter;
}
$nestedObjectDelimeter = delimiter;
return this;
};
/**
* @name flatObject
* @private
*
* @description
* Flats an object. This function is used to flatten given translation data with
* namespaces, so they are later accessible via dot notation.
*/
var flatObject = function flatObject(data, path, result, prevKey) {
var key, keyWithPath, keyWithShortPath, val;
if (!path) {
path = [];
}
if (!result) {
result = {};
}
for (key in data) {
if (!Object.prototype.hasOwnProperty.call(data, key)) {
continue;
}
val = data[key];
if (angular.isObject(val)) {
flatObject(val, path.concat(key), result, key);
} else {
keyWithPath = path.length ? '' + path.join($nestedObjectDelimeter) + $nestedObjectDelimeter + key : key;
if (path.length && key === prevKey) {
// Create shortcut path (foo.bar == foo.bar.bar)
keyWithShortPath = '' + path.join($nestedObjectDelimeter);
// Link it to original path
result[keyWithShortPath] = '@:' + keyWithPath;
}
result[keyWithPath] = val;
}
}
return result;
};
flatObject.displayName = 'flatObject';
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#addInterpolation
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Adds interpolation services to angular-translate, so it can manage them.
*
* @param {object} factory Interpolation service factory
*/
this.addInterpolation = function (factory) {
$interpolatorFactories.push(factory);
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useMessageFormatInterpolation
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use interpolation functionality of messageformat.js.
* This is useful when having high level pluralization and gender selection.
*/
this.useMessageFormatInterpolation = function () {
return this.useInterpolation('$translateMessageFormatInterpolation');
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useInterpolation
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate which interpolation style to use as default, application-wide.
* Simply pass a factory/service name. The interpolation service has to implement
* the correct interface.
*
* @param {string} factory Interpolation service name.
*/
this.useInterpolation = function (factory) {
$interpolationFactory = factory;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useSanitizeStrategy
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Simply sets a sanitation strategy type.
*
* @param {string} value Strategy type.
*/
this.useSanitizeValueStrategy = function (value) {
$translateSanitizationProvider.useStrategy(value);
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#preferredLanguage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells the module which of the registered translation tables to use for translation
* at initial startup by passing a language key. Similar to `$translateProvider#use`
* only that it says which language to **prefer**.
* It is recommended to call this after {@link pascalprecht.translate.$translate#fallbackLanguage fallbackLanguage()}.
*
* @param {string} langKey A language key.
*/
this.preferredLanguage = function (langKey) {
if (langKey) {
setupPreferredLanguage(langKey);
return this;
}
return $preferredLanguage;
};
var setupPreferredLanguage = function setupPreferredLanguage(langKey) {
if (langKey) {
$preferredLanguage = langKey;
}
return $preferredLanguage;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#translationNotFoundIndicator
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Sets an indicator which is used when a translation isn't found. E.g. when
* setting the indicator as 'X' and one tries to translate a translation id
* called `NOT_FOUND`, this will result in `X NOT_FOUND X`.
*
* Internally this methods sets a left indicator and a right indicator using
* `$translateProvider.translationNotFoundIndicatorLeft()` and
* `$translateProvider.translationNotFoundIndicatorRight()`.
*
* **Note**: These methods automatically add a whitespace between the indicators
* and the translation id.
*
* @param {string} indicator An indicator, could be any string.
*/
this.translationNotFoundIndicator = function (indicator) {
this.translationNotFoundIndicatorLeft(indicator);
this.translationNotFoundIndicatorRight(indicator);
return this;
};
/**
* ngdoc function
* @name pascalprecht.translate.$translateProvider#translationNotFoundIndicatorLeft
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Sets an indicator which is used when a translation isn't found left to the
* translation id.
*
* @param {string} indicator An indicator.
*/
this.translationNotFoundIndicatorLeft = function (indicator) {
if (!indicator) {
return $notFoundIndicatorLeft;
}
$notFoundIndicatorLeft = indicator;
return this;
};
/**
* ngdoc function
* @name pascalprecht.translate.$translateProvider#translationNotFoundIndicatorLeft
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Sets an indicator which is used when a translation isn't found right to the
* translation id.
*
* @param {string} indicator An indicator.
*/
this.translationNotFoundIndicatorRight = function (indicator) {
if (!indicator) {
return $notFoundIndicatorRight;
}
$notFoundIndicatorRight = indicator;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#fallbackLanguage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells the module which of the registered translation tables to use when missing translations
* at initial startup by passing a language key. Similar to `$translateProvider#use`
* only that it says which language to **fallback**.
*
* @param {string||array} langKey A language key.
*
*/
this.fallbackLanguage = function (langKey) {
fallbackStack(langKey);
return this;
};
var fallbackStack = function fallbackStack(langKey) {
if (langKey) {
if (angular.isString(langKey)) {
$fallbackWasString = true;
$fallbackLanguage = [langKey];
} else if (angular.isArray(langKey)) {
$fallbackWasString = false;
$fallbackLanguage = langKey;
}
if (angular.isString($preferredLanguage) && indexOf($fallbackLanguage, $preferredLanguage) < 0) {
$fallbackLanguage.push($preferredLanguage);
}
return this;
} else {
if ($fallbackWasString) {
return $fallbackLanguage[0];
} else {
return $fallbackLanguage;
}
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#use
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Set which translation table to use for translation by given language key. When
* trying to 'use' a language which isn't provided, it'll throw an error.
*
* You actually don't have to use this method since `$translateProvider#preferredLanguage`
* does the job too.
*
* @param {string} langKey A language key.
*/
this.use = function (langKey) {
if (langKey) {
if (!$translationTable[langKey] && !$loaderFactory) {
// only throw an error, when not loading translation data asynchronously
throw new Error('$translateProvider couldn\'t find translationTable for langKey: \'' + langKey + '\'');
}
$uses = langKey;
return this;
}
return $uses;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#resolveClientLocale
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* This returns the current browser/client's language key. The result is processed with the configured uniform tag resolver.
*
* @returns {string} the current client/browser language key
*/
this.resolveClientLocale = function () {
return getLocale();
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#storageKey
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells the module which key must represent the choosed language by a user in the storage.
*
* @param {string} key A key for the storage.
*/
var storageKey = function storageKey(key) {
if (!key) {
if ($storagePrefix) {
return $storagePrefix + $storageKey;
}
return $storageKey;
}
$storageKey = key;
return this;
};
this.storageKey = storageKey;
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useUrlLoader
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use `$translateUrlLoader` extension service as loader.
*
* @param {string} url Url
* @param {Object=} options Optional configuration object
*/
this.useUrlLoader = function (url, options) {
return this.useLoader('$translateUrlLoader', angular.extend({ url: url }, options));
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useStaticFilesLoader
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use `$translateStaticFilesLoader` extension service as loader.
*
* @param {Object=} options Optional configuration object
*/
this.useStaticFilesLoader = function (options) {
return this.useLoader('$translateStaticFilesLoader', options);
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useLoader
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use any other service as loader.
*
* @param {string} loaderFactory Factory name to use
* @param {Object=} options Optional configuration object
*/
this.useLoader = function (loaderFactory, options) {
$loaderFactory = loaderFactory;
$loaderOptions = options || {};
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useLocalStorage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use `$translateLocalStorage` service as storage layer.
*
*/
this.useLocalStorage = function () {
return this.useStorage('$translateLocalStorage');
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useCookieStorage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use `$translateCookieStorage` service as storage layer.
*/
this.useCookieStorage = function () {
return this.useStorage('$translateCookieStorage');
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useStorage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use custom service as storage layer.
*/
this.useStorage = function (storageFactory) {
$storageFactory = storageFactory;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#storagePrefix
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Sets prefix for storage key.
*
* @param {string} prefix Storage key prefix
*/
this.storagePrefix = function (prefix) {
if (!prefix) {
return prefix;
}
$storagePrefix = prefix;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useMissingTranslationHandlerLog
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to use built-in log handler when trying to translate
* a translation Id which doesn't exist.
*
* This is actually a shortcut method for `useMissingTranslationHandler()`.
*
*/
this.useMissingTranslationHandlerLog = function () {
return this.useMissingTranslationHandler('$translateMissingTranslationHandlerLog');
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useMissingTranslationHandler
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Expects a factory name which later gets instantiated with `$injector`.
* This method can be used to tell angular-translate to use a custom
* missingTranslationHandler. Just build a factory which returns a function
* and expects a translation id as argument.
*
* Example:
* <pre>
* app.config(function ($translateProvider) {
* $translateProvider.useMissingTranslationHandler('customHandler');
* });
*
* app.factory('customHandler', function (dep1, dep2) {
* return function (translationId) {
* // something with translationId and dep1 and dep2
* };
* });
* </pre>
*
* @param {string} factory Factory name
*/
this.useMissingTranslationHandler = function (factory) {
$missingTranslationHandlerFactory = factory;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#usePostCompiling
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* If post compiling is enabled, all translated values will be processed
* again with AngularJS' $compile.
*
* Example:
* <pre>
* app.config(function ($translateProvider) {
* $translateProvider.usePostCompiling(true);
* });
* </pre>
*
* @param {string} factory Factory name
*/
this.usePostCompiling = function (value) {
$postCompilingEnabled = !!value;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#forceAsyncReload
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* If force async reload is enabled, async loader will always be called
* even if $translationTable already contains the language key, adding
* possible new entries to the $translationTable.
*
* Example:
* <pre>
* app.config(function ($translateProvider) {
* $translateProvider.forceAsyncReload(true);
* });
* </pre>
*
* @param {boolean} value - valid values are true or false
*/
this.forceAsyncReload = function (value) {
$forceAsyncReloadEnabled = !!value;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#uniformLanguageTag
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate which language tag should be used as a result when determining
* the current browser language.
*
* This setting must be set before invoking {@link pascalprecht.translate.$translateProvider#methods_determinePreferredLanguage determinePreferredLanguage()}.
*
* <pre>
* $translateProvider
* .uniformLanguageTag('bcp47')
* .determinePreferredLanguage()
* </pre>
*
* The resolver currently supports:
* * default
* (traditionally: hyphens will be converted into underscores, i.e. en-US => en_US)
* en-US => en_US
* en_US => en_US
* en-us => en_us
* * java
* like default, but the second part will be always in uppercase
* en-US => en_US
* en_US => en_US
* en-us => en_US
* * BCP 47 (RFC 4646 & 4647)
* EN => en
* en-US => en-US
* en_US => en-US
* en-us => en-US
* sr-latn => sr-Latn
* sr-latn-rs => sr-Latn-RS
*
* See also:
* * http://en.wikipedia.org/wiki/IETF_language_tag
* * http://www.w3.org/International/core/langtags/
* * http://tools.ietf.org/html/bcp47
*
* @param {string|object} options - options (or standard)
* @param {string} options.standard - valid values are 'default', 'bcp47', 'java'
*/
this.uniformLanguageTag = function (options) {
if (!options) {
options = {};
} else if (angular.isString(options)) {
options = {
standard: options
};
}
uniformLanguageTagResolver = options.standard;
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#determinePreferredLanguage
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Tells angular-translate to try to determine on its own which language key
* to set as preferred language. When `fn` is given, angular-translate uses it
* to determine a language key, otherwise it uses the built-in `getLocale()`
* method.
*
* The `getLocale()` returns a language key in the format `[lang]_[country]` or
* `[lang]` depending on what the browser provides.
*
* Use this method at your own risk, since not all browsers return a valid
* locale (see {@link pascalprecht.translate.$translateProvider#methods_uniformLanguageTag uniformLanguageTag()}).
*
* @param {Function=} fn Function to determine a browser's locale
*/
this.determinePreferredLanguage = function (fn) {
var locale = fn && angular.isFunction(fn) ? fn() : getLocale();
if (!$availableLanguageKeys.length) {
$preferredLanguage = locale;
} else {
$preferredLanguage = negotiateLocale(locale) || locale;
}
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#registerAvailableLanguageKeys
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Registers a set of language keys the app will work with. Use this method in
* combination with
* {@link pascalprecht.translate.$translateProvider#determinePreferredLanguage determinePreferredLanguage}.
* When available languages keys are registered, angular-translate
* tries to find the best fitting language key depending on the browsers locale,
* considering your language key convention.
*
* @param {object} languageKeys Array of language keys the your app will use
* @param {object=} aliases Alias map.
*/
this.registerAvailableLanguageKeys = function (languageKeys, aliases) {
if (languageKeys) {
$availableLanguageKeys = languageKeys;
if (aliases) {
$languageKeyAliases = aliases;
}
return this;
}
return $availableLanguageKeys;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#useLoaderCache
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Registers a cache for internal $http based loaders.
* {@link pascalprecht.translate.$translationCache $translationCache}.
* When false the cache will be disabled (default). When true or undefined
* the cache will be a default (see $cacheFactory). When an object it will
* be treat as a cache object itself: the usage is $http({cache: cache})
*
* @param {object} cache boolean, string or cache-object
*/
this.useLoaderCache = function (cache) {
if (cache === false) {
// disable cache
loaderCache = undefined;
} else if (cache === true) {
// enable cache using AJS defaults
loaderCache = true;
} else if (typeof cache === 'undefined') {
// enable cache using default
loaderCache = '$translationCache';
} else if (cache) {
// enable cache using given one (see $cacheFactory)
loaderCache = cache;
}
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#directivePriority
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Sets the default priority of the translate directive. The standard value is `0`.
* Calling this function without an argument will return the current value.
*
* @param {number} priority for the translate-directive
*/
this.directivePriority = function (priority) {
if (priority === undefined) {
// getter
return directivePriority;
} else {
// setter with chaining
directivePriority = priority;
return this;
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#statefulFilter
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* Since AngularJS 1.3, filters which are not stateless (depending at the scope)
* have to explicit define this behavior.
* Sets whether the translate filter should be stateful or stateless. The standard value is `true`
* meaning being stateful.
* Calling this function without an argument will return the current value.
*
* @param {boolean} state - defines the state of the filter
*/
this.statefulFilter = function (state) {
if (state === undefined) {
// getter
return statefulFilter;
} else {
// setter with chaining
statefulFilter = state;
return this;
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#postProcess
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* The post processor will be intercept right after the translation result. It can modify the result.
*
* @param {object} fn Function or service name (string) to be called after the translation value has been set / resolved. The function itself will enrich every value being processed and then continue the normal resolver process
*/
this.postProcess = function (fn) {
if (fn) {
postProcessFn = fn;
} else {
postProcessFn = undefined;
}
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateProvider#keepContent
* @methodOf pascalprecht.translate.$translateProvider
*
* @description
* If keepContent is set to true than translate directive will always use innerHTML
* as a default translation
*
* Example:
* <pre>
* app.config(function ($translateProvider) {
* $translateProvider.keepContent(true);
* });
* </pre>
*
* @param {boolean} value - valid values are true or false
*/
this.keepContent = function (value) {
$keepContent = !!value;
return this;
};
/**
* @ngdoc object
* @name pascalprecht.translate.$translate
* @requires $interpolate
* @requires $log
* @requires $rootScope
* @requires $q
*
* @description
* The `$translate` service is the actual core of angular-translate. It expects a translation id
* and optional interpolate parameters to translate contents.
*
* <pre>
* $translate('HEADLINE_TEXT').then(function (translation) {
* $scope.translatedText = translation;
* });
* </pre>
*
* @param {string|array} translationId A token which represents a translation id
* This can be optionally an array of translation ids which
* results that the function returns an object where each key
* is the translation id and the value the translation.
* @param {object=} [interpolateParams={}] An object hash for dynamic values
* @param {string=} [interpolationId=undefined] The id of the interpolation to use (use default unless set via useInterpolation())
* @param {string=} [defaultTranslationText=undefined] the optional default translation text that is written as
* as default text in case it is not found in any configured language
* @param {string=} [forceLanguage=false] A language to be used instead of the current language
* @param {string=} [sanitizeStrategy=undefined] force sanitize strategy for this call instead of using the configured one (use default unless set)
* @returns {object} promise
*/
this.$get = ['$log', '$injector', '$rootScope', '$q', function ($log, $injector, $rootScope, $q) {
var Storage,
defaultInterpolator = $injector.get($interpolationFactory || '$translateDefaultInterpolation'),
pendingLoader = false,
interpolatorHashMap = {},
langPromises = {},
fallbackIndex,
startFallbackIteration;
var $translate = function $translate(translationId, interpolateParams, interpolationId, defaultTranslationText, forceLanguage, sanitizeStrategy) {
if (!$uses && $preferredLanguage) {
$uses = $preferredLanguage;
}
var uses = forceLanguage && forceLanguage !== $uses ? // we don't want to re-negotiate $uses
negotiateLocale(forceLanguage) || forceLanguage : $uses;
// Check forceLanguage is present
if (forceLanguage) {
loadTranslationsIfMissing(forceLanguage);
}
// Duck detection: If the first argument is an array, a bunch of translations was requested.
// The result is an object.
if (angular.isArray(translationId)) {
// Inspired by Q.allSettled by Kris Kowal
// https://github.com/kriskowal/q/blob/b0fa72980717dc202ffc3cbf03b936e10ebbb9d7/q.js#L1553-1563
// This transforms all promises regardless resolved or rejected
var translateAll = function translateAll(translationIds) {
var results = {}; // storing the actual results
var promises = []; // promises to wait for
// Wraps the promise a) being always resolved and b) storing the link id->value
var translate = function translate(translationId) {
var deferred = $q.defer();
var regardless = function regardless(value) {
results[translationId] = value;
deferred.resolve([translationId, value]);
};
// we don't care whether the promise was resolved or rejected; just store the values
$translate(translationId, interpolateParams, interpolationId, defaultTranslationText, forceLanguage, sanitizeStrategy).then(regardless, regardless);
return deferred.promise;
};
for (var i = 0, c = translationIds.length; i < c; i++) {
promises.push(translate(translationIds[i]));
}
// wait for all (including storing to results)
return $q.all(promises).then(function () {
// return the results
return results;
});
};
return translateAll(translationId);
}
var deferred = $q.defer();
// trim off any whitespace
if (translationId) {
translationId = trim.apply(translationId);
}
var promiseToWaitFor = function () {
var promise = langPromises[uses] || langPromises[$preferredLanguage];
fallbackIndex = 0;
if ($storageFactory && !promise) {
// looks like there's no pending promise for $preferredLanguage or
// $uses. Maybe there's one pending for a language that comes from
// storage.
var langKey = Storage.get($storageKey);
promise = langPromises[langKey];
if ($fallbackLanguage && $fallbackLanguage.length) {
var index = indexOf($fallbackLanguage, langKey);
// maybe the language from storage is also defined as fallback language
// we increase the fallback language index to not search in that language
// as fallback, since it's probably the first used language
// in that case the index starts after the first element
fallbackIndex = index === 0 ? 1 : 0;
// but we can make sure to ALWAYS fallback to preferred language at least
if (indexOf($fallbackLanguage, $preferredLanguage) < 0) {
$fallbackLanguage.push($preferredLanguage);
}
}
}
return promise;
}();
if (!promiseToWaitFor) {
// no promise to wait for? okay. Then there's no loader registered
// nor is a one pending for language that comes from storage.
// We can just translate.
determineTranslation(translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy).then(deferred.resolve, deferred.reject);
} else {
var promiseResolved = function promiseResolved() {
// $uses may have changed while waiting
if (!forceLanguage) {
uses = $uses;
}
determineTranslation(translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy).then(deferred.resolve, deferred.reject);
};
promiseResolved.displayName = 'promiseResolved';
promiseToWaitFor['finally'](promiseResolved)['catch'](angular.noop); // we don't care about errors here, already handled
}
return deferred.promise;
};
/**
* @name applyNotFoundIndicators
* @private
*
* @description
* Applies not fount indicators to given translation id, if needed.
* This function gets only executed, if a translation id doesn't exist,
* which is why a translation id is expected as argument.
*
* @param {string} translationId Translation id.
* @returns {string} Same as given translation id but applied with not found
* indicators.
*/
var applyNotFoundIndicators = function applyNotFoundIndicators(translationId) {
// applying notFoundIndicators
if ($notFoundIndicatorLeft) {
translationId = [$notFoundIndicatorLeft, translationId].join(' ');
}
if ($notFoundIndicatorRight) {
translationId = [translationId, $notFoundIndicatorRight].join(' ');
}
return translationId;
};
/**
* @name useLanguage
* @private
*
* @description
* Makes actual use of a language by setting a given language key as used
* language and informs registered interpolators to also use the given
* key as locale.
*
* @param {string} key Locale key.
*/
var useLanguage = function useLanguage(key) {
$uses = key;
// make sure to store new language key before triggering success event
if ($storageFactory) {
Storage.put($translate.storageKey(), $uses);
}
$rootScope.$emit('$translateChangeSuccess', { language: key });
// inform default interpolator
defaultInterpolator.setLocale($uses);
var eachInterpolator = function eachInterpolator(interpolator, id) {
interpolatorHashMap[id].setLocale($uses);
};
eachInterpolator.displayName = 'eachInterpolatorLocaleSetter';
// inform all others too!
angular.forEach(interpolatorHashMap, eachInterpolator);
$rootScope.$emit('$translateChangeEnd', { language: key });
};
/**
* @name loadAsync
* @private
*
* @description
* Kicks off registered async loader using `$injector` and applies existing
* loader options. When resolved, it updates translation tables accordingly
* or rejects with given language key.
*
* @param {string} key Language key.
* @return {Promise} A promise.
*/
var loadAsync = function loadAsync(key) {
if (!key) {
throw 'No language key specified for loading.';
}
var deferred = $q.defer();
$rootScope.$emit('$translateLoadingStart', { language: key });
pendingLoader = true;
var cache = loaderCache;
if (typeof cache === 'string') {
// getting on-demand instance of loader
cache = $injector.get(cache);
}
var loaderOptions = angular.extend({}, $loaderOptions, {
key: key,
$http: angular.extend({}, {
cache: cache
}, $loaderOptions.$http)
});
var onLoaderSuccess = function onLoaderSuccess(data) {
var translationTable = {};
$rootScope.$emit('$translateLoadingSuccess', { language: key });
if (angular.isArray(data)) {
angular.forEach(data, function (table) {
angular.extend(translationTable, flatObject(table));
});
} else {
angular.extend(translationTable, flatObject(data));
}
pendingLoader = false;
deferred.resolve({
key: key,
table: translationTable
});
$rootScope.$emit('$translateLoadingEnd', { language: key });
};
onLoaderSuccess.displayName = 'onLoaderSuccess';
var onLoaderError = function onLoaderError(key) {
$rootScope.$emit('$translateLoadingError', { language: key });
deferred.reject(key);
$rootScope.$emit('$translateLoadingEnd', { language: key });
};
onLoaderError.displayName = 'onLoaderError';
$injector.get($loaderFactory)(loaderOptions).then(onLoaderSuccess, onLoaderError);
return deferred.promise;
};
if ($storageFactory) {
Storage = $injector.get($storageFactory);
if (!Storage.get || !Storage.put) {
throw new Error('Couldn\'t use storage \'' + $storageFactory + '\', missing get() or put() method!');
}
}
// if we have additional interpolations that were added via
// $translateProvider.addInterpolation(), we have to map'em
if ($interpolatorFactories.length) {
var eachInterpolationFactory = function eachInterpolationFactory(interpolatorFactory) {
var interpolator = $injector.get(interpolatorFactory);
// setting initial locale for each interpolation service
interpolator.setLocale($preferredLanguage || $uses);
// make'em recognizable through id
interpolatorHashMap[interpolator.getInterpolationIdentifier()] = interpolator;
};
eachInterpolationFactory.displayName = 'interpolationFactoryAdder';
angular.forEach($interpolatorFactories, eachInterpolationFactory);
}
/**
* @name getTranslationTable
* @private
*
* @description
* Returns a promise that resolves to the translation table
* or is rejected if an error occurred.
*
* @param langKey
* @returns {Q.promise}
*/
var getTranslationTable = function getTranslationTable(langKey) {
var deferred = $q.defer();
if (Object.prototype.hasOwnProperty.call($translationTable, langKey)) {
deferred.resolve($translationTable[langKey]);
} else if (langPromises[langKey]) {
var onResolve = function onResolve(data) {
translations(data.key, data.table);
deferred.resolve(data.table);
};
onResolve.displayName = 'translationTableResolver';
langPromises[langKey].then(onResolve, deferred.reject);
} else {
deferred.reject();
}
return deferred.promise;
};
/**
* @name getFallbackTranslation
* @private
*
* @description
* Returns a promise that will resolve to the translation
* or be rejected if no translation was found for the language.
* This function is currently only used for fallback language translation.
*
* @param langKey The language to translate to.
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param sanitizeStrategy
* @returns {Q.promise}
*/
var getFallbackTranslation = function getFallbackTranslation(langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy) {
var deferred = $q.defer();
var onResolve = function onResolve(translationTable) {
if (Object.prototype.hasOwnProperty.call(translationTable, translationId) && translationTable[translationId] !== null) {
Interpolator.setLocale(langKey);
var translation = translationTable[translationId];
if (translation.substr(0, 2) === '@:') {
getFallbackTranslation(langKey, translation.substr(2), interpolateParams, Interpolator, sanitizeStrategy).then(deferred.resolve, deferred.reject);
} else {
var interpolatedValue = Interpolator.interpolate(translationTable[translationId], interpolateParams, 'service', sanitizeStrategy, translationId);
interpolatedValue = applyPostProcessing(translationId, translationTable[translationId], interpolatedValue, interpolateParams, langKey);
deferred.resolve(interpolatedValue);
}
Interpolator.setLocale($uses);
} else {
deferred.reject();
}
};
onResolve.displayName = 'fallbackTranslationResolver';
getTranslationTable(langKey).then(onResolve, deferred.reject);
return deferred.promise;
};
/**
* @name getFallbackTranslationInstant
* @private
*
* @description
* Returns a translation
* This function is currently only used for fallback language translation.
*
* @param langKey The language to translate to.
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param sanitizeStrategy sanitize strategy override
*
* @returns {string} translation
*/
var getFallbackTranslationInstant = function getFallbackTranslationInstant(langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy) {
var result,
translationTable = $translationTable[langKey];
if (translationTable && Object.prototype.hasOwnProperty.call(translationTable, translationId) && translationTable[translationId] !== null) {
Interpolator.setLocale(langKey);
result = Interpolator.interpolate(translationTable[translationId], interpolateParams, 'filter', sanitizeStrategy, translationId);
result = applyPostProcessing(translationId, translationTable[translationId], result, interpolateParams, langKey, sanitizeStrategy);
// workaround for TrustedValueHolderType
if (!angular.isString(result) && angular.isFunction(result.$$unwrapTrustedValue)) {
var result2 = result.$$unwrapTrustedValue();
if (result2.substr(0, 2) === '@:') {
return getFallbackTranslationInstant(langKey, result2.substr(2), interpolateParams, Interpolator, sanitizeStrategy);
}
} else if (result.substr(0, 2) === '@:') {
return getFallbackTranslationInstant(langKey, result.substr(2), interpolateParams, Interpolator, sanitizeStrategy);
}
Interpolator.setLocale($uses);
}
return result;
};
/**
* @name translateByHandler
* @private
*
* Translate by missing translation handler.
*
* @param translationId
* @param interpolateParams
* @param defaultTranslationText
* @param sanitizeStrategy sanitize strategy override
*
* @returns translation created by $missingTranslationHandler or translationId is $missingTranslationHandler is
* absent
*/
var translateByHandler = function translateByHandler(translationId, interpolateParams, defaultTranslationText, sanitizeStrategy) {
// If we have a handler factory - we might also call it here to determine if it provides
// a default text for a translationid that can't be found anywhere in our tables
if ($missingTranslationHandlerFactory) {
return $injector.get($missingTranslationHandlerFactory)(translationId, $uses, interpolateParams, defaultTranslationText, sanitizeStrategy);
} else {
return translationId;
}
};
/**
* @name resolveForFallbackLanguage
* @private
*
* Recursive helper function for fallbackTranslation that will sequentially look
* for a translation in the fallbackLanguages starting with fallbackLanguageIndex.
*
* @param fallbackLanguageIndex
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param defaultTranslationText
* @param sanitizeStrategy
* @returns {Q.promise} Promise that will resolve to the translation.
*/
var resolveForFallbackLanguage = function resolveForFallbackLanguage(fallbackLanguageIndex, translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) {
var deferred = $q.defer();
if (fallbackLanguageIndex < $fallbackLanguage.length) {
var langKey = $fallbackLanguage[fallbackLanguageIndex];
getFallbackTranslation(langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy).then(function (data) {
deferred.resolve(data);
}, function () {
// Look in the next fallback language for a translation.
// It delays the resolving by passing another promise to resolve.
return resolveForFallbackLanguage(fallbackLanguageIndex + 1, translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy).then(deferred.resolve, deferred.reject);
});
} else {
// No translation found in any fallback language
// if a default translation text is set in the directive, then return this as a result
if (defaultTranslationText) {
deferred.resolve(defaultTranslationText);
} else {
var missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, defaultTranslationText);
// if no default translation is set and an error handler is defined, send it to the handler
// and then return the result if it isn't undefined
if ($missingTranslationHandlerFactory && missingTranslationHandlerTranslation) {
deferred.resolve(missingTranslationHandlerTranslation);
} else {
deferred.reject(applyNotFoundIndicators(translationId));
}
}
}
return deferred.promise;
};
/**
* @name resolveForFallbackLanguageInstant
* @private
*
* Recursive helper function for fallbackTranslation that will sequentially look
* for a translation in the fallbackLanguages starting with fallbackLanguageIndex.
*
* @param fallbackLanguageIndex
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param sanitizeStrategy
* @returns {string} translation
*/
var resolveForFallbackLanguageInstant = function resolveForFallbackLanguageInstant(fallbackLanguageIndex, translationId, interpolateParams, Interpolator, sanitizeStrategy) {
var result;
if (fallbackLanguageIndex < $fallbackLanguage.length) {
var langKey = $fallbackLanguage[fallbackLanguageIndex];
result = getFallbackTranslationInstant(langKey, translationId, interpolateParams, Interpolator, sanitizeStrategy);
if (!result && result !== '') {
result = resolveForFallbackLanguageInstant(fallbackLanguageIndex + 1, translationId, interpolateParams, Interpolator);
}
}
return result;
};
/**
* Translates with the usage of the fallback languages.
*
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param defaultTranslationText
* @param sanitizeStrategy
* @returns {Q.promise} Promise, that resolves to the translation.
*/
var fallbackTranslation = function fallbackTranslation(translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy) {
// Start with the fallbackLanguage with index 0
return resolveForFallbackLanguage(startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex, translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy);
};
/**
* Translates with the usage of the fallback languages.
*
* @param translationId
* @param interpolateParams
* @param Interpolator
* @param sanitizeStrategy
* @returns {String} translation
*/
var fallbackTranslationInstant = function fallbackTranslationInstant(translationId, interpolateParams, Interpolator, sanitizeStrategy) {
// Start with the fallbackLanguage with index 0
return resolveForFallbackLanguageInstant(startFallbackIteration > 0 ? startFallbackIteration : fallbackIndex, translationId, interpolateParams, Interpolator, sanitizeStrategy);
};
var determineTranslation = function determineTranslation(translationId, interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy) {
var deferred = $q.defer();
var table = uses ? $translationTable[uses] : $translationTable,
Interpolator = interpolationId ? interpolatorHashMap[interpolationId] : defaultInterpolator;
// if the translation id exists, we can just interpolate it
if (table && Object.prototype.hasOwnProperty.call(table, translationId) && table[translationId] !== null) {
var translation = table[translationId];
// If using link, rerun $translate with linked translationId and return it
if (translation.substr(0, 2) === '@:') {
$translate(translation.substr(2), interpolateParams, interpolationId, defaultTranslationText, uses, sanitizeStrategy).then(deferred.resolve, deferred.reject);
} else {
//
var resolvedTranslation = Interpolator.interpolate(translation, interpolateParams, 'service', sanitizeStrategy, translationId);
resolvedTranslation = applyPostProcessing(translationId, translation, resolvedTranslation, interpolateParams, uses);
deferred.resolve(resolvedTranslation);
}
} else {
var missingTranslationHandlerTranslation;
// for logging purposes only (as in $translateMissingTranslationHandlerLog), value is not returned to promise
if ($missingTranslationHandlerFactory && !pendingLoader) {
missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, defaultTranslationText);
}
// since we couldn't translate the inital requested translation id,
// we try it now with one or more fallback languages, if fallback language(s) is
// configured.
if (uses && $fallbackLanguage && $fallbackLanguage.length) {
fallbackTranslation(translationId, interpolateParams, Interpolator, defaultTranslationText, sanitizeStrategy).then(function (translation) {
deferred.resolve(translation);
}, function (_translationId) {
deferred.reject(applyNotFoundIndicators(_translationId));
});
} else if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) {
// looks like the requested translation id doesn't exists.
// Now, if there is a registered handler for missing translations and no
// asyncLoader is pending, we execute the handler
if (defaultTranslationText) {
deferred.resolve(defaultTranslationText);
} else {
deferred.resolve(missingTranslationHandlerTranslation);
}
} else {
if (defaultTranslationText) {
deferred.resolve(defaultTranslationText);
} else {
deferred.reject(applyNotFoundIndicators(translationId));
}
}
}
return deferred.promise;
};
var determineTranslationInstant = function determineTranslationInstant(translationId, interpolateParams, interpolationId, uses, sanitizeStrategy) {
var result,
table = uses ? $translationTable[uses] : $translationTable,
Interpolator = defaultInterpolator;
// if the interpolation id exists use custom interpolator
if (interpolatorHashMap && Object.prototype.hasOwnProperty.call(interpolatorHashMap, interpolationId)) {
Interpolator = interpolatorHashMap[interpolationId];
}
// if the translation id exists, we can just interpolate it
if (table && Object.prototype.hasOwnProperty.call(table, translationId) && table[translationId] !== null) {
var translation = table[translationId];
// If using link, rerun $translate with linked translationId and return it
if (translation.substr(0, 2) === '@:') {
result = determineTranslationInstant(translation.substr(2), interpolateParams, interpolationId, uses, sanitizeStrategy);
} else {
result = Interpolator.interpolate(translation, interpolateParams, 'filter', sanitizeStrategy, translationId);
result = applyPostProcessing(translationId, translation, result, interpolateParams, uses, sanitizeStrategy);
}
} else {
var missingTranslationHandlerTranslation;
// for logging purposes only (as in $translateMissingTranslationHandlerLog), value is not returned to promise
if ($missingTranslationHandlerFactory && !pendingLoader) {
missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, sanitizeStrategy);
}
// since we couldn't translate the inital requested translation id,
// we try it now with one or more fallback languages, if fallback language(s) is
// configured.
if (uses && $fallbackLanguage && $fallbackLanguage.length) {
fallbackIndex = 0;
result = fallbackTranslationInstant(translationId, interpolateParams, Interpolator, sanitizeStrategy);
} else if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) {
// looks like the requested translation id doesn't exists.
// Now, if there is a registered handler for missing translations and no
// asyncLoader is pending, we execute the handler
result = missingTranslationHandlerTranslation;
} else {
result = applyNotFoundIndicators(translationId);
}
}
return result;
};
var clearNextLangAndPromise = function clearNextLangAndPromise(key) {
if ($nextLang === key) {
$nextLang = undefined;
}
langPromises[key] = undefined;
};
var applyPostProcessing = function applyPostProcessing(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy) {
var fn = postProcessFn;
if (fn) {
if (typeof fn === 'string') {
// getting on-demand instance
fn = $injector.get(fn);
}
if (fn) {
return fn(translationId, translation, resolvedTranslation, interpolateParams, uses, sanitizeStrategy);
}
}
return resolvedTranslation;
};
var loadTranslationsIfMissing = function loadTranslationsIfMissing(key) {
if (!$translationTable[key] && $loaderFactory && !langPromises[key]) {
langPromises[key] = loadAsync(key).then(function (translation) {
translations(translation.key, translation.table);
return translation;
});
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#preferredLanguage
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the language key for the preferred language.
*
* @param {string} langKey language String or Array to be used as preferredLanguage (changing at runtime)
*
* @return {string} preferred language key
*/
$translate.preferredLanguage = function (langKey) {
if (langKey) {
setupPreferredLanguage(langKey);
}
return $preferredLanguage;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#cloakClassName
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the configured class name for `translate-cloak` directive.
*
* @return {string} cloakClassName
*/
$translate.cloakClassName = function () {
return $cloakClassName;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#nestedObjectDelimeter
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the configured delimiter for nested namespaces.
*
* @return {string} nestedObjectDelimeter
*/
$translate.nestedObjectDelimeter = function () {
return $nestedObjectDelimeter;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#fallbackLanguage
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the language key for the fallback languages or sets a new fallback stack.
* It is recommended to call this before {@link pascalprecht.translate.$translateProvider#preferredLanguage preferredLanguage()}.
*
* @param {string=} langKey language String or Array of fallback languages to be used (to change stack at runtime)
*
* @return {string||array} fallback language key
*/
$translate.fallbackLanguage = function (langKey) {
if (langKey !== undefined && langKey !== null) {
fallbackStack(langKey);
// as we might have an async loader initiated and a new translation language might have been defined
// we need to add the promise to the stack also. So - iterate.
if ($loaderFactory) {
if ($fallbackLanguage && $fallbackLanguage.length) {
for (var i = 0, len = $fallbackLanguage.length; i < len; i++) {
if (!langPromises[$fallbackLanguage[i]]) {
langPromises[$fallbackLanguage[i]] = loadAsync($fallbackLanguage[i]);
}
}
}
}
$translate.use($translate.use());
}
if ($fallbackWasString) {
return $fallbackLanguage[0];
} else {
return $fallbackLanguage;
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#useFallbackLanguage
* @methodOf pascalprecht.translate.$translate
*
* @description
* Sets the first key of the fallback language stack to be used for translation.
* Therefore all languages in the fallback array BEFORE this key will be skipped!
*
* @param {string=} langKey Contains the langKey the iteration shall start with. Set to false if you want to
* get back to the whole stack
*/
$translate.useFallbackLanguage = function (langKey) {
if (langKey !== undefined && langKey !== null) {
if (!langKey) {
startFallbackIteration = 0;
} else {
var langKeyPosition = indexOf($fallbackLanguage, langKey);
if (langKeyPosition > -1) {
startFallbackIteration = langKeyPosition;
}
}
}
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#proposedLanguage
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the language key of language that is currently loaded asynchronously.
*
* @return {string} language key
*/
$translate.proposedLanguage = function () {
return $nextLang;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#storage
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns registered storage.
*
* @return {object} Storage
*/
$translate.storage = function () {
return Storage;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#negotiateLocale
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns a language key based on available languages and language aliases. If a
* language key cannot be resolved, returns undefined.
*
* If no or a falsy key is given, returns undefined.
*
* @param {string} [key] Language key
* @return {string|undefined} Language key or undefined if no language key is found.
*/
$translate.negotiateLocale = negotiateLocale;
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#use
* @methodOf pascalprecht.translate.$translate
*
* @description
* Tells angular-translate which language to use by given language key. This method is
* used to change language at runtime. It also takes care of storing the language
* key in a configured store to let your app remember the choosed language.
*
* When trying to 'use' a language which isn't available it tries to load it
* asynchronously with registered loaders.
*
* Returns promise object with loaded language file data or string of the currently used language.
*
* If no or a falsy key is given it returns the currently used language key.
* The returned string will be ```undefined``` if setting up $translate hasn't finished.
* @example
* $translate.use("en_US").then(function(data){
* $scope.text = $translate("HELLO");
* });
*
* @param {string=} key Language key
* @return {object|string} Promise with loaded language data or the language key if a falsy param was given.
*/
$translate.use = function (key) {
if (!key) {
return $uses;
}
var deferred = $q.defer();
deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection"
$rootScope.$emit('$translateChangeStart', { language: key });
// Try to get the aliased language key
var aliasedKey = negotiateLocale(key);
// Ensure only registered language keys will be loaded
if ($availableLanguageKeys.length > 0 && !aliasedKey) {
return $q.reject(key);
}
if (aliasedKey) {
key = aliasedKey;
}
// if there isn't a translation table for the language we've requested,
// we load it asynchronously
$nextLang = key;
if (($forceAsyncReloadEnabled || !$translationTable[key]) && $loaderFactory && !langPromises[key]) {
langPromises[key] = loadAsync(key).then(function (translation) {
translations(translation.key, translation.table);
deferred.resolve(translation.key);
if ($nextLang === key) {
useLanguage(translation.key);
}
return translation;
}, function (key) {
$rootScope.$emit('$translateChangeError', { language: key });
deferred.reject(key);
$rootScope.$emit('$translateChangeEnd', { language: key });
return $q.reject(key);
});
langPromises[key]['finally'](function () {
clearNextLangAndPromise(key);
})['catch'](angular.noop); // we don't care about errors (clearing)
} else if (langPromises[key]) {
// we are already loading this asynchronously
// resolve our new deferred when the old langPromise is resolved
langPromises[key].then(function (translation) {
if ($nextLang === translation.key) {
useLanguage(translation.key);
}
deferred.resolve(translation.key);
return translation;
}, function (key) {
// find first available fallback language if that request has failed
if (!$uses && $fallbackLanguage && $fallbackLanguage.length > 0 && $fallbackLanguage[0] !== key) {
return $translate.use($fallbackLanguage[0]).then(deferred.resolve, deferred.reject);
} else {
return deferred.reject(key);
}
});
} else {
deferred.resolve(key);
useLanguage(key);
}
return deferred.promise;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#resolveClientLocale
* @methodOf pascalprecht.translate.$translate
*
* @description
* This returns the current browser/client's language key. The result is processed with the configured uniform tag resolver.
*
* @returns {string} the current client/browser language key
*/
$translate.resolveClientLocale = function () {
return getLocale();
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#storageKey
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the key for the storage.
*
* @return {string} storage key
*/
$translate.storageKey = function () {
return storageKey();
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#isPostCompilingEnabled
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns whether post compiling is enabled or not
*
* @return {bool} storage key
*/
$translate.isPostCompilingEnabled = function () {
return $postCompilingEnabled;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#isForceAsyncReloadEnabled
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns whether force async reload is enabled or not
*
* @return {boolean} forceAsyncReload value
*/
$translate.isForceAsyncReloadEnabled = function () {
return $forceAsyncReloadEnabled;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#isKeepContent
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns whether keepContent or not
*
* @return {boolean} keepContent value
*/
$translate.isKeepContent = function () {
return $keepContent;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#refresh
* @methodOf pascalprecht.translate.$translate
*
* @description
* Refreshes a translation table pointed by the given langKey. If langKey is not specified,
* the module will drop all existent translation tables and load new version of those which
* are currently in use.
*
* Refresh means that the module will drop target translation table and try to load it again.
*
* In case there are no loaders registered the refresh() method will throw an Error.
*
* If the module is able to refresh translation tables refresh() method will broadcast
* $translateRefreshStart and $translateRefreshEnd events.
*
* @example
* // this will drop all currently existent translation tables and reload those which are
* // currently in use
* $translate.refresh();
* // this will refresh a translation table for the en_US language
* $translate.refresh('en_US');
*
* @param {string} langKey A language key of the table, which has to be refreshed
*
* @return {promise} Promise, which will be resolved in case a translation tables refreshing
* process is finished successfully, and reject if not.
*/
$translate.refresh = function (langKey) {
if (!$loaderFactory) {
throw new Error('Couldn\'t refresh translation table, no loader registered!');
}
$rootScope.$emit('$translateRefreshStart', { language: langKey });
var deferred = $q.defer(),
updatedLanguages = {};
//private helper
function loadNewData(languageKey) {
var promise = loadAsync(languageKey);
//update the load promise cache for this language
langPromises[languageKey] = promise;
//register a data handler for the promise
promise.then(function (data) {
//clear the cache for this language
$translationTable[languageKey] = {};
//add the new data for this language
translations(languageKey, data.table);
//track that we updated this language
updatedLanguages[languageKey] = true;
},
//handle rejection to appease the $q validation
angular.noop);
return promise;
}
//set up post-processing
deferred.promise.then(function () {
for (var key in $translationTable) {
if ($translationTable.hasOwnProperty(key)) {
//delete cache entries that were not updated
if (!(key in updatedLanguages)) {
delete $translationTable[key];
}
}
}
if ($uses) {
useLanguage($uses);
}
},
//handle rejection to appease the $q validation
angular.noop)['finally'](function () {
$rootScope.$emit('$translateRefreshEnd', { language: langKey });
});
if (!langKey) {
// if there's no language key specified we refresh ALL THE THINGS!
var languagesToReload = $fallbackLanguage && $fallbackLanguage.slice() || [];
if ($uses && languagesToReload.indexOf($uses) === -1) {
languagesToReload.push($uses);
}
$q.all(languagesToReload.map(loadNewData)).then(deferred.resolve, deferred.reject);
} else if ($translationTable[langKey]) {
//just refresh the specified language cache
loadNewData(langKey).then(deferred.resolve, deferred.reject);
} else {
deferred.reject();
}
return deferred.promise;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#instant
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns a translation instantly from the internal state of loaded translation. All rules
* regarding the current language, the preferred language of even fallback languages will be
* used except any promise handling. If a language was not found, an asynchronous loading
* will be invoked in the background.
*
* @param {string|array} translationId A token which represents a translation id
* This can be optionally an array of translation ids which
* results that the function's promise returns an object where
* each key is the translation id and the value the translation.
* @param {object=} [interpolateParams={}] Params
* @param {string=} [interpolationId=undefined] The id of the interpolation to use (use default unless set via useInterpolation())
* @param {string=} [forceLanguage=false] A language to be used instead of the current language
* @param {string=} [sanitizeStrategy=undefined] force sanitize strategy for this call instead of using the configured one (use default unless set)
*
* @return {string|object} translation
*/
$translate.instant = function (translationId, interpolateParams, interpolationId, forceLanguage, sanitizeStrategy) {
// we don't want to re-negotiate $uses
var uses = forceLanguage && forceLanguage !== $uses ? // we don't want to re-negotiate $uses
negotiateLocale(forceLanguage) || forceLanguage : $uses;
// Detect undefined and null values to shorten the execution and prevent exceptions
if (translationId === null || angular.isUndefined(translationId)) {
return translationId;
}
// Check forceLanguage is present
if (forceLanguage) {
loadTranslationsIfMissing(forceLanguage);
}
// Duck detection: If the first argument is an array, a bunch of translations was requested.
// The result is an object.
if (angular.isArray(translationId)) {
var results = {};
for (var i = 0, c = translationId.length; i < c; i++) {
results[translationId[i]] = $translate.instant(translationId[i], interpolateParams, interpolationId, forceLanguage, sanitizeStrategy);
}
return results;
}
// We discarded unacceptable values. So we just need to verify if translationId is empty String
if (angular.isString(translationId) && translationId.length < 1) {
return translationId;
}
// trim off any whitespace
if (translationId) {
translationId = trim.apply(translationId);
}
var result,
possibleLangKeys = [];
if ($preferredLanguage) {
possibleLangKeys.push($preferredLanguage);
}
if (uses) {
possibleLangKeys.push(uses);
}
if ($fallbackLanguage && $fallbackLanguage.length) {
possibleLangKeys = possibleLangKeys.concat($fallbackLanguage);
}
for (var j = 0, d = possibleLangKeys.length; j < d; j++) {
var possibleLangKey = possibleLangKeys[j];
if ($translationTable[possibleLangKey]) {
if (typeof $translationTable[possibleLangKey][translationId] !== 'undefined') {
result = determineTranslationInstant(translationId, interpolateParams, interpolationId, uses, sanitizeStrategy);
}
}
if (typeof result !== 'undefined') {
break;
}
}
if (!result && result !== '') {
if ($notFoundIndicatorLeft || $notFoundIndicatorRight) {
result = applyNotFoundIndicators(translationId);
} else {
// Return translation of default interpolator if not found anything.
result = defaultInterpolator.interpolate(translationId, interpolateParams, 'filter', sanitizeStrategy);
// looks like the requested translation id doesn't exists.
// Now, if there is a registered handler for missing translations and no
// asyncLoader is pending, we execute the handler
var missingTranslationHandlerTranslation;
if ($missingTranslationHandlerFactory && !pendingLoader) {
missingTranslationHandlerTranslation = translateByHandler(translationId, interpolateParams, sanitizeStrategy);
}
if ($missingTranslationHandlerFactory && !pendingLoader && missingTranslationHandlerTranslation) {
result = missingTranslationHandlerTranslation;
}
}
}
return result;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#versionInfo
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the current version information for the angular-translate library
*
* @return {string} angular-translate version
*/
$translate.versionInfo = function () {
return version;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#loaderCache
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns the defined loaderCache.
*
* @return {boolean|string|object} current value of loaderCache
*/
$translate.loaderCache = function () {
return loaderCache;
};
// internal purpose only
$translate.directivePriority = function () {
return directivePriority;
};
// internal purpose only
$translate.statefulFilter = function () {
return statefulFilter;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#isReady
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns whether the service is "ready" to translate (i.e. loading 1st language).
*
* See also {@link pascalprecht.translate.$translate#methods_onReady onReady()}.
*
* @return {boolean} current value of ready
*/
$translate.isReady = function () {
return $isReady;
};
var $onReadyDeferred = $q.defer();
$onReadyDeferred.promise.then(function () {
$isReady = true;
});
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#onReady
* @methodOf pascalprecht.translate.$translate
*
* @description
* Calls the function provided or resolved the returned promise after the service is "ready" to translate (i.e. loading 1st language).
*
* See also {@link pascalprecht.translate.$translate#methods_isReady isReady()}.
*
* @param {Function=} fn Function to invoke when service is ready
* @return {object} Promise resolved when service is ready
*/
$translate.onReady = function (fn) {
var deferred = $q.defer();
if (angular.isFunction(fn)) {
deferred.promise.then(fn);
}
if ($isReady) {
deferred.resolve();
} else {
$onReadyDeferred.promise.then(deferred.resolve);
}
return deferred.promise;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#getAvailableLanguageKeys
* @methodOf pascalprecht.translate.$translate
*
* @description
* This function simply returns the registered language keys being defined before in the config phase
* With this, an application can use the array to provide a language selection dropdown or similar
* without any additional effort
*
* @returns {object} returns the list of possibly registered language keys and mapping or null if not defined
*/
$translate.getAvailableLanguageKeys = function () {
if ($availableLanguageKeys.length > 0) {
return $availableLanguageKeys;
}
return null;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translate#getTranslationTable
* @methodOf pascalprecht.translate.$translate
*
* @description
* Returns translation table by the given language key.
*
* Unless a language is provided it returns a translation table of the current one.
* Note: If translation dictionary is currently downloading or in progress
* it will return null.
*
* @param {string} langKey A token which represents a translation id
*
* @return {object} a copy of angular-translate $translationTable
*/
$translate.getTranslationTable = function (langKey) {
langKey = langKey || $translate.use();
if (langKey && $translationTable[langKey]) {
return angular.copy($translationTable[langKey]);
}
return null;
};
// Whenever $translateReady is being fired, this will ensure the state of $isReady
var globalOnReadyListener = $rootScope.$on('$translateReady', function () {
$onReadyDeferred.resolve();
globalOnReadyListener(); // one time only
globalOnReadyListener = null;
});
var globalOnChangeListener = $rootScope.$on('$translateChangeEnd', function () {
$onReadyDeferred.resolve();
globalOnChangeListener(); // one time only
globalOnChangeListener = null;
});
if ($loaderFactory) {
// If at least one async loader is defined and there are no
// (default) translations available we should try to load them.
if (angular.equals($translationTable, {})) {
if ($translate.use()) {
$translate.use($translate.use());
}
}
// Also, if there are any fallback language registered, we start
// loading them asynchronously as soon as we can.
if ($fallbackLanguage && $fallbackLanguage.length) {
var processAsyncResult = function processAsyncResult(translation) {
translations(translation.key, translation.table);
$rootScope.$emit('$translateChangeEnd', { language: translation.key });
return translation;
};
for (var i = 0, len = $fallbackLanguage.length; i < len; i++) {
var fallbackLanguageId = $fallbackLanguage[i];
if ($forceAsyncReloadEnabled || !$translationTable[fallbackLanguageId]) {
langPromises[fallbackLanguageId] = loadAsync(fallbackLanguageId).then(processAsyncResult);
}
}
}
} else {
$rootScope.$emit('$translateReady', { language: $translate.use() });
}
return $translate;
}];
}
$translate.displayName = 'displayName';
/**
* @ngdoc object
* @name pascalprecht.translate.$translateDefaultInterpolation
* @requires $interpolate
*
* @description
* Uses angular's `$interpolate` services to interpolate strings against some values.
*
* Be aware to configure a proper sanitization strategy.
*
* See also:
* * {@link pascalprecht.translate.$translateSanitization}
*
* @return {object} $translateDefaultInterpolation Interpolator service
*/
angular.module('pascalprecht.translate').factory('$translateDefaultInterpolation', $translateDefaultInterpolation);
function $translateDefaultInterpolation($interpolate, $translateSanitization) {
'use strict';
var $translateInterpolator = {},
$locale,
$identifier = 'default';
/**
* @ngdoc function
* @name pascalprecht.translate.$translateDefaultInterpolation#setLocale
* @methodOf pascalprecht.translate.$translateDefaultInterpolation
*
* @description
* Sets current locale (this is currently not use in this interpolation).
*
* @param {string} locale Language key or locale.
*/
$translateInterpolator.setLocale = function (locale) {
$locale = locale;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateDefaultInterpolation#getInterpolationIdentifier
* @methodOf pascalprecht.translate.$translateDefaultInterpolation
*
* @description
* Returns an identifier for this interpolation service.
*
* @returns {string} $identifier
*/
$translateInterpolator.getInterpolationIdentifier = function () {
return $identifier;
};
/**
* @deprecated will be removed in 3.0
* @see {@link pascalprecht.translate.$translateSanitization}
*/
$translateInterpolator.useSanitizeValueStrategy = function (value) {
$translateSanitization.useStrategy(value);
return this;
};
/**
* @ngdoc function
* @name pascalprecht.translate.$translateDefaultInterpolation#interpolate
* @methodOf pascalprecht.translate.$translateDefaultInterpolation
*
* @description
* Interpolates given value agains given interpolate params using angulars
* `$interpolate` service.
*
* Since AngularJS 1.5, `value` must not be a string but can be anything input.
*
* @param {string} value translation
* @param {object} [interpolationParams={}] interpolation params
* @param {string} [context=undefined] current context (filter, directive, service)
* @param {string} [sanitizeStrategy=undefined] sanitize strategy (use default unless set)
* @param {string} translationId current translationId
*
* @returns {string} interpolated string
*/
$translateInterpolator.interpolate = function (value, interpolationParams, context, sanitizeStrategy, translationId) {
// jshint ignore:line
interpolationParams = interpolationParams || {};
interpolationParams = $translateSanitization.sanitize(interpolationParams, 'params', sanitizeStrategy, context);
var interpolatedText;
if (angular.isNumber(value)) {
// numbers are safe
interpolatedText = '' + value;
} else if (angular.isString(value)) {
// strings must be interpolated (that's the job here)
interpolatedText = $interpolate(value)(interpolationParams);
interpolatedText = $translateSanitization.sanitize(interpolatedText, 'text', sanitizeStrategy, context);
} else {
// neither a number or a string, cant interpolate => empty string
interpolatedText = '';
}
return interpolatedText;
};
return $translateInterpolator;
}
$translateDefaultInterpolation.displayName = '$translateDefaultInterpolation';
angular.module('pascalprecht.translate').constant('$STORAGE_KEY', 'NG_TRANSLATE_LANG_KEY');
angular.module('pascalprecht.translate')
/**
* @ngdoc directive
* @name pascalprecht.translate.directive:translate
* @requires $interpolate,
* @requires $compile,
* @requires $parse,
* @requires $rootScope
* @restrict AE
*
* @description
* Translates given translation id either through attribute or DOM content.
* Internally it uses $translate service to translate the translation id. It possible to
* pass an optional `translate-values` object literal as string into translation id.
*
* @param {string=} translate Translation id which could be either string or interpolated string.
* @param {string=} translate-values Values to pass into translation id. Can be passed as object literal string or interpolated object.
* @param {string=} translate-attr-ATTR translate Translation id and put it into ATTR attribute.
* @param {string=} translate-default will be used unless translation was successful
* @param {string=} translate-sanitize-strategy defines locally sanitize strategy
* @param {boolean=} translate-compile (default true if present) defines locally activation of {@link pascalprecht.translate.$translateProvider#methods_usePostCompiling}
* @param {boolean=} translate-keep-content (default true if present) defines that in case a KEY could not be translated, that the existing content is left in the innerHTML}
*
* @example
<example module="ngView">
<file name="index.html">
<div ng-controller="TranslateCtrl">
<pre translate="TRANSLATION_ID"></pre>
<pre translate>TRANSLATION_ID</pre>
<pre translate translate-attr-title="TRANSLATION_ID"></pre>
<pre translate="{{translationId}}"></pre>
<pre translate>{{translationId}}</pre>
<pre translate="WITH_VALUES" translate-values="{value: 5}"></pre>
<pre translate translate-values="{value: 5}">WITH_VALUES</pre>
<pre translate="WITH_VALUES" translate-values="{{values}}"></pre>
<pre translate translate-values="{{values}}">WITH_VALUES</pre>
<pre translate translate-attr-title="WITH_VALUES" translate-values="{{values}}"></pre>
<pre translate="WITH_CAMEL_CASE_KEY" translate-value-camel-case-key="Hi"></pre>
</div>
</file>
<file name="script.js">
angular.module('ngView', ['pascalprecht.translate'])
.config(function ($translateProvider) {
$translateProvider.translations('en',{
'TRANSLATION_ID': 'Hello there!',
'WITH_VALUES': 'The following value is dynamic: {{value}}',
'WITH_CAMEL_CASE_KEY': 'The interpolation key is camel cased: {{camelCaseKey}}'
}).preferredLanguage('en');
});
angular.module('ngView').controller('TranslateCtrl', function ($scope) {
$scope.translationId = 'TRANSLATION_ID';
$scope.values = {
value: 78
};
});
</file>
<file name="scenario.js">
it('should translate', function () {
inject(function ($rootScope, $compile) {
$rootScope.translationId = 'TRANSLATION_ID';
element = $compile('<p translate="TRANSLATION_ID"></p>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello there!');
element = $compile('<p translate="{{translationId}}"></p>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello there!');
element = $compile('<p translate>TRANSLATION_ID</p>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello there!');
element = $compile('<p translate>{{translationId}}</p>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello there!');
element = $compile('<p translate translate-attr-title="TRANSLATION_ID"></p>')($rootScope);
$rootScope.$digest();
expect(element.attr('title')).toBe('Hello there!');
element = $compile('<p translate="WITH_CAMEL_CASE_KEY" translate-value-camel-case-key="Hello"></p>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('The interpolation key is camel cased: Hello');
});
});
</file>
</example>
*/
.directive('translate', translateDirective);
function translateDirective($translate, $interpolate, $compile, $parse, $rootScope) {
'use strict';
/**
* @name trim
* @private
*
* @description
* trim polyfill
*
* @returns {string} The string stripped of whitespace from both ends
*/
var trim = function trim() {
return this.toString().replace(/^\s+|\s+$/g, '');
};
/**
* @name lowercase
* @private
*
* @description
* Return the lowercase string only if the type is string
*
* @returns {string} The string all in lowercase
*/
var lowercase = function lowercase(string) {
return angular.isString(string) ? string.toLowerCase() : string;
};
return {
restrict: 'AE',
scope: true,
priority: $translate.directivePriority(),
compile: function compile(tElement, tAttr) {
var translateValuesExist = tAttr.translateValues ? tAttr.translateValues : undefined;
var translateInterpolation = tAttr.translateInterpolation ? tAttr.translateInterpolation : undefined;
var translateSanitizeStrategyExist = tAttr.translateSanitizeStrategy ? tAttr.translateSanitizeStrategy : undefined;
var translateValueExist = tElement[0].outerHTML.match(/translate-value-+/i);
var interpolateRegExp = '^(.*)(' + $interpolate.startSymbol() + '.*' + $interpolate.endSymbol() + ')(.*)',
watcherRegExp = '^(.*)' + $interpolate.startSymbol() + '(.*)' + $interpolate.endSymbol() + '(.*)';
return function linkFn(scope, iElement, iAttr) {
scope.interpolateParams = {};
scope.preText = '';
scope.postText = '';
scope.translateNamespace = getTranslateNamespace(scope);
var translationIds = {};
var initInterpolationParams = function initInterpolationParams(interpolateParams, iAttr, tAttr) {
// initial setup
if (iAttr.translateValues) {
angular.extend(interpolateParams, $parse(iAttr.translateValues)(scope.$parent));
}
// initially fetch all attributes if existing and fill the params
if (translateValueExist) {
for (var attr in tAttr) {
if (Object.prototype.hasOwnProperty.call(iAttr, attr) && attr.substr(0, 14) === 'translateValue' && attr !== 'translateValues') {
var attributeName = lowercase(attr.substr(14, 1)) + attr.substr(15);
interpolateParams[attributeName] = tAttr[attr];
}
}
}
};
// Ensures any change of the attribute "translate" containing the id will
// be re-stored to the scope's "translationId".
// If the attribute has no content, the element's text value (white spaces trimmed off) will be used.
var observeElementTranslation = function observeElementTranslation(translationId) {
// Remove any old watcher
if (angular.isFunction(observeElementTranslation._unwatchOld)) {
observeElementTranslation._unwatchOld();
observeElementTranslation._unwatchOld = undefined;
}
if (angular.equals(translationId, '') || !angular.isDefined(translationId)) {
var iElementText = trim.apply(iElement.text());
// Resolve translation id by inner html if required
var interpolateMatches = iElementText.match(interpolateRegExp);
// Interpolate translation id if required
if (angular.isArray(interpolateMatches)) {
scope.preText = interpolateMatches[1];
scope.postText = interpolateMatches[3];
translationIds.translate = $interpolate(interpolateMatches[2])(scope.$parent);
var watcherMatches = iElementText.match(watcherRegExp);
if (angular.isArray(watcherMatches) && watcherMatches[2] && watcherMatches[2].length) {
observeElementTranslation._unwatchOld = scope.$watch(watcherMatches[2], function (newValue) {
translationIds.translate = newValue;
updateTranslations();
});
}
} else {
// do not assigne the translation id if it is empty.
translationIds.translate = !iElementText ? undefined : iElementText;
}
} else {
translationIds.translate = translationId;
}
updateTranslations();
};
var observeAttributeTranslation = function observeAttributeTranslation(translateAttr) {
iAttr.$observe(translateAttr, function (translationId) {
translationIds[translateAttr] = translationId;
updateTranslations();
});
};
// initial setup with values
initInterpolationParams(scope.interpolateParams, iAttr, tAttr);
var firstAttributeChangedEvent = true;
iAttr.$observe('translate', function (translationId) {
if (typeof translationId === 'undefined') {
// case of element "<translate>xyz</translate>"
observeElementTranslation('');
} else {
// case of regular attribute
if (translationId !== '' || !firstAttributeChangedEvent) {
translationIds.translate = translationId;
updateTranslations();
}
}
firstAttributeChangedEvent = false;
});
for (var translateAttr in iAttr) {
if (iAttr.hasOwnProperty(translateAttr) && translateAttr.substr(0, 13) === 'translateAttr' && translateAttr.length > 13) {
observeAttributeTranslation(translateAttr);
}
}
iAttr.$observe('translateDefault', function (value) {
scope.defaultText = value;
updateTranslations();
});
if (translateSanitizeStrategyExist) {
iAttr.$observe('translateSanitizeStrategy', function (value) {
scope.sanitizeStrategy = $parse(value)(scope.$parent);
updateTranslations();
});
}
if (translateValuesExist) {
iAttr.$observe('translateValues', function (interpolateParams) {
if (interpolateParams) {
scope.$parent.$watch(function () {
angular.extend(scope.interpolateParams, $parse(interpolateParams)(scope.$parent));
});
}
});
}
if (translateValueExist) {
var observeValueAttribute = function observeValueAttribute(attrName) {
iAttr.$observe(attrName, function (value) {
var attributeName = lowercase(attrName.substr(14, 1)) + attrName.substr(15);
scope.interpolateParams[attributeName] = value;
});
};
for (var attr in iAttr) {
if (Object.prototype.hasOwnProperty.call(iAttr, attr) && attr.substr(0, 14) === 'translateValue' && attr !== 'translateValues') {
observeValueAttribute(attr);
}
}
}
// Master update function
var updateTranslations = function updateTranslations() {
for (var key in translationIds) {
if (translationIds.hasOwnProperty(key) && translationIds[key] !== undefined) {
updateTranslation(key, translationIds[key], scope, scope.interpolateParams, scope.defaultText, scope.translateNamespace);
}
}
};
// Put translation processing function outside loop
var updateTranslation = function updateTranslation(translateAttr, translationId, scope, interpolateParams, defaultTranslationText, translateNamespace) {
if (translationId) {
// if translation id starts with '.' and translateNamespace given, prepend namespace
if (translateNamespace && translationId.charAt(0) === '.') {
translationId = translateNamespace + translationId;
}
$translate(translationId, interpolateParams, translateInterpolation, defaultTranslationText, scope.translateLanguage, scope.sanitizeStrategy).then(function (translation) {
applyTranslation(translation, scope, true, translateAttr);
}, function (translationId) {
applyTranslation(translationId, scope, false, translateAttr);
});
} else {
// as an empty string cannot be translated, we can solve this using successful=false
applyTranslation(translationId, scope, false, translateAttr);
}
};
var applyTranslation = function applyTranslation(value, scope, successful, translateAttr) {
if (!successful) {
if (typeof scope.defaultText !== 'undefined') {
value = scope.defaultText;
}
}
if (translateAttr === 'translate') {
// default translate into innerHTML
if (successful || !successful && !$translate.isKeepContent() && typeof iAttr.translateKeepContent === 'undefined') {
iElement.empty().append(scope.preText + value + scope.postText);
}
var globallyEnabled = $translate.isPostCompilingEnabled();
var locallyDefined = typeof tAttr.translateCompile !== 'undefined';
var locallyEnabled = locallyDefined && tAttr.translateCompile !== 'false';
if (globallyEnabled && !locallyDefined || locallyEnabled) {
$compile(iElement.contents())(scope);
}
} else {
// translate attribute
var attributeName = iAttr.$attr[translateAttr];
if (attributeName.substr(0, 5) === 'data-') {
// ensure html5 data prefix is stripped
attributeName = attributeName.substr(5);
}
attributeName = attributeName.substr(15);
iElement.attr(attributeName, value);
}
};
if (translateValuesExist || translateValueExist || iAttr.translateDefault) {
scope.$watch('interpolateParams', updateTranslations, true);
}
// Replaced watcher on translateLanguage with event listener
scope.$on('translateLanguageChanged', updateTranslations);
// Ensures the text will be refreshed after the current language was changed
// w/ $translate.use(...)
var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations);
// ensure translation will be looked up at least one
if (iElement.text().length) {
if (iAttr.translate) {
observeElementTranslation(iAttr.translate);
} else {
observeElementTranslation('');
}
} else if (iAttr.translate) {
// ensure attribute will be not skipped
observeElementTranslation(iAttr.translate);
}
updateTranslations();
scope.$on('$destroy', unbind);
};
}
};
}
/**
* Returns the scope's namespace.
* @private
* @param scope
* @returns {string}
*/
function getTranslateNamespace(scope) {
'use strict';
if (scope.translateNamespace) {
return scope.translateNamespace;
}
if (scope.$parent) {
return getTranslateNamespace(scope.$parent);
}
}
translateDirective.displayName = 'translateDirective';
angular.module('pascalprecht.translate')
/**
* @ngdoc directive
* @name pascalprecht.translate.directive:translate-attr
* @restrict A
*
* @description
* Translates attributes like translate-attr-ATTR, but with an object like ng-class.
* Internally it uses `translate` service to translate translation id. It possible to
* pass an optional `translate-values` object literal as string into translation id.
*
* @param {string=} translate-attr Object literal mapping attributes to translation ids.
* @param {string=} translate-values Values to pass into the translation ids. Can be passed as object literal string.
* @param {string=} translate-sanitize-strategy defines locally sanitize strategy
*
* @example
<example module="ngView">
<file name="index.html">
<div ng-controller="TranslateCtrl">
<input translate-attr="{ placeholder: translationId, title: 'WITH_VALUES' }" translate-values="{value: 5}" />
</div>
</file>
<file name="script.js">
angular.module('ngView', ['pascalprecht.translate'])
.config(function ($translateProvider) {
$translateProvider.translations('en',{
'TRANSLATION_ID': 'Hello there!',
'WITH_VALUES': 'The following value is dynamic: {{value}}',
}).preferredLanguage('en');
});
angular.module('ngView').controller('TranslateCtrl', function ($scope) {
$scope.translationId = 'TRANSLATION_ID';
$scope.values = {
value: 78
};
});
</file>
<file name="scenario.js">
it('should translate', function () {
inject(function ($rootScope, $compile) {
$rootScope.translationId = 'TRANSLATION_ID';
element = $compile('<input translate-attr="{ placeholder: translationId, title: 'WITH_VALUES' }" translate-values="{ value: 5 }" />')($rootScope);
$rootScope.$digest();
expect(element.attr('placeholder)).toBe('Hello there!');
expect(element.attr('title)).toBe('The following value is dynamic: 5');
});
});
</file>
</example>
*/
.directive('translateAttr', translateAttrDirective);
function translateAttrDirective($translate, $rootScope) {
'use strict';
return {
restrict: 'A',
priority: $translate.directivePriority(),
link: function linkFn(scope, element, attr) {
var translateAttr,
translateValues,
translateSanitizeStrategy,
previousAttributes = {};
// Main update translations function
var updateTranslations = function updateTranslations() {
angular.forEach(translateAttr, function (translationId, attributeName) {
if (!translationId) {
return;
}
previousAttributes[attributeName] = true;
// if translation id starts with '.' and translateNamespace given, prepend namespace
if (scope.translateNamespace && translationId.charAt(0) === '.') {
translationId = scope.translateNamespace + translationId;
}
$translate(translationId, translateValues, attr.translateInterpolation, undefined, scope.translateLanguage, translateSanitizeStrategy).then(function (translation) {
element.attr(attributeName, translation);
}, function (translationId) {
element.attr(attributeName, translationId);
});
});
// Removing unused attributes that were previously used
angular.forEach(previousAttributes, function (flag, attributeName) {
if (!translateAttr[attributeName]) {
element.removeAttr(attributeName);
delete previousAttributes[attributeName];
}
});
};
// Watch for attribute changes
watchAttribute(scope, attr.translateAttr, function (newValue) {
translateAttr = newValue;
}, updateTranslations);
// Watch for value changes
watchAttribute(scope, attr.translateValues, function (newValue) {
translateValues = newValue;
}, updateTranslations);
// Watch for sanitize strategy changes
watchAttribute(scope, attr.translateSanitizeStrategy, function (newValue) {
translateSanitizeStrategy = newValue;
}, updateTranslations);
if (attr.translateValues) {
scope.$watch(attr.translateValues, updateTranslations, true);
}
// Replaced watcher on translateLanguage with event listener
scope.$on('translateLanguageChanged', updateTranslations);
// Ensures the text will be refreshed after the current language was changed
// w/ $translate.use(...)
var unbind = $rootScope.$on('$translateChangeSuccess', updateTranslations);
updateTranslations();
scope.$on('$destroy', unbind);
}
};
}
function watchAttribute(scope, attribute, valueCallback, changeCallback) {
'use strict';
if (!attribute) {
return;
}
if (attribute.substr(0, 2) === '::') {
attribute = attribute.substr(2);
} else {
scope.$watch(attribute, function (newValue) {
valueCallback(newValue);
changeCallback();
}, true);
}
valueCallback(scope.$eval(attribute));
}
translateAttrDirective.displayName = 'translateAttrDirective';
angular.module('pascalprecht.translate')
/**
* @ngdoc directive
* @name pascalprecht.translate.directive:translateCloak
* @requires $translate
* @restrict A
*
* $description
* Adds a `translate-cloak` class name to the given element where this directive
* is applied initially and removes it, once a loader has finished loading.
*
* This directive can be used to prevent initial flickering when loading translation
* data asynchronously.
*
* The class name is defined in
* {@link pascalprecht.translate.$translateProvider#cloakClassName $translate.cloakClassName()}.
*
* @param {string=} translate-cloak If a translationId is provided, it will be used for showing
* or hiding the cloak. Basically it relies on the translation
* resolve.
*/
.directive('translateCloak', translateCloakDirective);
function translateCloakDirective($translate, $rootScope) {
'use strict';
return {
compile: function compile(tElement) {
var applyCloak = function applyCloak(element) {
element.addClass($translate.cloakClassName());
},
removeCloak = function removeCloak(element) {
element.removeClass($translate.cloakClassName());
};
applyCloak(tElement);
return function linkFn(scope, iElement, iAttr) {
//Create bound functions that incorporate the active DOM element.
var iRemoveCloak = removeCloak.bind(this, iElement),
iApplyCloak = applyCloak.bind(this, iElement);
if (iAttr.translateCloak && iAttr.translateCloak.length) {
// Register a watcher for the defined translation allowing a fine tuned cloak
iAttr.$observe('translateCloak', function (translationId) {
$translate(translationId).then(iRemoveCloak, iApplyCloak);
});
$rootScope.$on('$translateChangeSuccess', function () {
$translate(iAttr.translateCloak).then(iRemoveCloak, iApplyCloak);
});
} else {
$translate.onReady(iRemoveCloak);
}
};
}
};
}
translateCloakDirective.displayName = 'translateCloakDirective';
angular.module('pascalprecht.translate')
/**
* @ngdoc directive
* @name pascalprecht.translate.directive:translateNamespace
* @restrict A
*
* @description
* Translates given translation id either through attribute or DOM content.
* Internally it uses `translate` filter to translate translation id. It possible to
* pass an optional `translate-values` object literal as string into translation id.
*
* @param {string=} translate namespace name which could be either string or interpolated string.
*
* @example
<example module="ngView">
<file name="index.html">
<div translate-namespace="CONTENT">
<div>
<h1 translate>.HEADERS.TITLE</h1>
<h1 translate>.HEADERS.WELCOME</h1>
</div>
<div translate-namespace=".HEADERS">
<h1 translate>.TITLE</h1>
<h1 translate>.WELCOME</h1>
</div>
</div>
</file>
<file name="script.js">
angular.module('ngView', ['pascalprecht.translate'])
.config(function ($translateProvider) {
$translateProvider.translations('en',{
'TRANSLATION_ID': 'Hello there!',
'CONTENT': {
'HEADERS': {
TITLE: 'Title'
}
},
'CONTENT.HEADERS.WELCOME': 'Welcome'
}).preferredLanguage('en');
});
</file>
</example>
*/
.directive('translateNamespace', translateNamespaceDirective);
function translateNamespaceDirective() {
'use strict';
return {
restrict: 'A',
scope: true,
compile: function compile() {
return {
pre: function pre(scope, iElement, iAttrs) {
scope.translateNamespace = getTranslateNamespace(scope);
if (scope.translateNamespace && iAttrs.translateNamespace.charAt(0) === '.') {
scope.translateNamespace += iAttrs.translateNamespace;
} else {
scope.translateNamespace = iAttrs.translateNamespace;
}
}
};
}
};
}
/**
* Returns the scope's namespace.
* @private
* @param scope
* @returns {string}
*/
function getTranslateNamespace(scope) {
'use strict';
if (scope.translateNamespace) {
return scope.translateNamespace;
}
if (scope.$parent) {
return getTranslateNamespace(scope.$parent);
}
}
translateNamespaceDirective.displayName = 'translateNamespaceDirective';
angular.module('pascalprecht.translate')
/**
* @ngdoc directive
* @name pascalprecht.translate.directive:translateLanguage
* @restrict A
*
* @description
* Forces the language to the directives in the underlying scope.
*
* @param {string=} translate language that will be negotiated.
*
* @example
<example module="ngView">
<file name="index.html">
<div>
<div>
<h1 translate>HELLO</h1>
</div>
<div translate-language="de">
<h1 translate>HELLO</h1>
</div>
</div>
</file>
<file name="script.js">
angular.module('ngView', ['pascalprecht.translate'])
.config(function ($translateProvider) {
$translateProvider
.translations('en',{
'HELLO': 'Hello world!'
})
.translations('de',{
'HELLO': 'Hallo Welt!'
})
.preferredLanguage('en');
});
</file>
</example>
*/
.directive('translateLanguage', translateLanguageDirective);
function translateLanguageDirective() {
'use strict';
return {
restrict: 'A',
scope: true,
compile: function compile() {
return function linkFn(scope, iElement, iAttrs) {
iAttrs.$observe('translateLanguage', function (newTranslateLanguage) {
scope.translateLanguage = newTranslateLanguage;
});
scope.$watch('translateLanguage', function () {
scope.$broadcast('translateLanguageChanged');
});
};
}
};
}
translateLanguageDirective.displayName = 'translateLanguageDirective';
angular.module('pascalprecht.translate')
/**
* @ngdoc filter
* @name pascalprecht.translate.filter:translate
* @requires $parse
* @requires pascalprecht.translate.$translate
* @function
*
* @description
* Uses `$translate` service to translate contents. Accepts interpolate parameters
* to pass dynamized values though translation.
*
* @param {string} translationId A translation id to be translated.
* @param {*=} interpolateParams Optional object literal (as hash or string) to pass values into translation.
*
* @returns {string} Translated text.
*
* @example
<example module="ngView">
<file name="index.html">
<div ng-controller="TranslateCtrl">
<pre>{{ 'TRANSLATION_ID' | translate }}</pre>
<pre>{{ translationId | translate }}</pre>
<pre>{{ 'WITH_VALUES' | translate:'{value: 5}' }}</pre>
<pre>{{ 'WITH_VALUES' | translate:values }}</pre>
</div>
</file>
<file name="script.js">
angular.module('ngView', ['pascalprecht.translate'])
.config(function ($translateProvider) {
$translateProvider.translations('en', {
'TRANSLATION_ID': 'Hello there!',
'WITH_VALUES': 'The following value is dynamic: {{value}}'
});
$translateProvider.preferredLanguage('en');
});
angular.module('ngView').controller('TranslateCtrl', function ($scope) {
$scope.translationId = 'TRANSLATION_ID';
$scope.values = {
value: 78
};
});
</file>
</example>
*/
.filter('translate', translateFilterFactory);
function translateFilterFactory($parse, $translate) {
'use strict';
var translateFilter = function translateFilter(translationId, interpolateParams, interpolation, forceLanguage) {
if (!angular.isObject(interpolateParams)) {
var ctx = this || {
'__SCOPE_IS_NOT_AVAILABLE': 'More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f'
};
interpolateParams = $parse(interpolateParams)(ctx);
}
return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage);
};
if ($translate.statefulFilter()) {
translateFilter.$stateful = true;
}
return translateFilter;
}
translateFilterFactory.displayName = 'translateFilterFactory';
angular.module('pascalprecht.translate')
/**
* @ngdoc object
* @name pascalprecht.translate.$translationCache
* @requires $cacheFactory
*
* @description
* The first time a translation table is used, it is loaded in the translation cache for quick retrieval. You
* can load translation tables directly into the cache by consuming the
* `$translationCache` service directly.
*
* @return {object} $cacheFactory object.
*/
.factory('$translationCache', $translationCache);
function $translationCache($cacheFactory) {
'use strict';
return $cacheFactory('translations');
}
$translationCache.displayName = '$translationCache';
return 'pascalprecht.translate';
});
},{}],140:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**
* @license AngularJS v1.6.8
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
(function (window) {
'use strict';
/* exported
minErrConfig,
errorHandlingConfig,
isValidObjectMaxDepth
*/
var minErrConfig = {
objectMaxDepth: 5
};
/**
* @ngdoc function
* @name angular.errorHandlingConfig
* @module ng
* @kind function
*
* @description
* Configure several aspects of error handling in AngularJS if used as a setter or return the
* current configuration if used as a getter. The following options are supported:
*
* - **objectMaxDepth**: The maximum depth to which objects are traversed when stringified for error messages.
*
* Omitted or undefined options will leave the corresponding configuration values unchanged.
*
* @param {Object=} config - The configuration object. May only contain the options that need to be
* updated. Supported keys:
*
* * `objectMaxDepth` **{Number}** - The max depth for stringifying objects. Setting to a
* non-positive or non-numeric value, removes the max depth limit.
* Default: 5
*/
function errorHandlingConfig(config) {
if (isObject(config)) {
if (isDefined(config.objectMaxDepth)) {
minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN;
}
} else {
return minErrConfig;
}
}
/**
* @private
* @param {Number} maxDepth
* @return {boolean}
*/
function isValidObjectMaxDepth(maxDepth) {
return isNumber(maxDepth) && maxDepth > 0;
}
/**
* @description
*
* This object provides a utility for producing rich Error messages within
* Angular. It can be called as follows:
*
* var exampleMinErr = minErr('example');
* throw exampleMinErr('one', 'This {0} is {1}', foo, bar);
*
* The above creates an instance of minErr in the example namespace. The
* resulting error will have a namespaced error code of example.one. The
* resulting error will replace {0} with the value of foo, and {1} with the
* value of bar. The object is not restricted in the number of arguments it can
* take.
*
* If fewer arguments are specified than necessary for interpolation, the extra
* interpolation markers will be preserved in the final string.
*
* Since data will be parsed statically during a build step, some restrictions
* are applied with respect to how minErr instances are created and called.
* Instances should have names of the form namespaceMinErr for a minErr created
* using minErr('namespace') . Error codes, namespaces and template strings
* should all be static strings, not variables or general expressions.
*
* @param {string} module The namespace to use for the new minErr instance.
* @param {function} ErrorConstructor Custom error constructor to be instantiated when returning
* error from returned function, for cases when a particular type of error is useful.
* @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance
*/
function minErr(module, ErrorConstructor) {
ErrorConstructor = ErrorConstructor || Error;
return function () {
var code = arguments[0],
template = arguments[1],
message = '[' + (module ? module + ':' : '') + code + '] ',
templateArgs = sliceArgs(arguments, 2).map(function (arg) {
return toDebugString(arg, minErrConfig.objectMaxDepth);
}),
paramPrefix,
i;
message += template.replace(/\{\d+\}/g, function (match) {
var index = +match.slice(1, -1);
if (index < templateArgs.length) {
return templateArgs[index];
}
return match;
});
message += '\nhttp://errors.angularjs.org/1.6.8/' + (module ? module + '/' : '') + code;
for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]);
}
return new ErrorConstructor(message);
};
}
/* We need to tell ESLint what variables are being exported */
/* exported
angular,
msie,
jqLite,
jQuery,
slice,
splice,
push,
toString,
minErrConfig,
errorHandlingConfig,
isValidObjectMaxDepth,
ngMinErr,
angularModule,
uid,
REGEX_STRING_REGEXP,
VALIDITY_STATE_PROPERTY,
lowercase,
uppercase,
manualLowercase,
manualUppercase,
nodeName_,
isArrayLike,
forEach,
forEachSorted,
reverseParams,
nextUid,
setHashKey,
extend,
toInt,
inherit,
merge,
noop,
identity,
valueFn,
isUndefined,
isDefined,
isObject,
isBlankObject,
isString,
isNumber,
isNumberNaN,
isDate,
isError,
isArray,
isFunction,
isRegExp,
isWindow,
isScope,
isFile,
isFormData,
isBlob,
isBoolean,
isPromiseLike,
trim,
escapeForRegexp,
isElement,
makeMap,
includes,
arrayRemove,
copy,
simpleCompare,
equals,
csp,
jq,
concat,
sliceArgs,
bind,
toJsonReplacer,
toJson,
fromJson,
convertTimezoneToLocal,
timezoneToOffset,
startingTag,
tryDecodeURIComponent,
parseKeyValue,
toKeyValue,
encodeUriSegment,
encodeUriQuery,
angularInit,
bootstrap,
getTestability,
snake_case,
bindJQuery,
assertArg,
assertArgFn,
assertNotHasOwnProperty,
getter,
getBlockNodes,
hasOwnProperty,
createMap,
stringify,
NODE_TYPE_ELEMENT,
NODE_TYPE_ATTRIBUTE,
NODE_TYPE_TEXT,
NODE_TYPE_COMMENT,
NODE_TYPE_DOCUMENT,
NODE_TYPE_DOCUMENT_FRAGMENT
*/
////////////////////////////////////
/**
* @ngdoc module
* @name ng
* @module ng
* @installation
* @description
*
* The ng module is loaded by default when an AngularJS application is started. The module itself
* contains the essential components for an AngularJS application to function. The table below
* lists a high level breakdown of each of the services/factories, filters, directives and testing
* components available within this core module.
*
*/
var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
// The name of a form control's ValidityState property.
// This is used so that it's possible for internal tests to create mock ValidityStates.
var VALIDITY_STATE_PROPERTY = 'validity';
var hasOwnProperty = Object.prototype.hasOwnProperty;
/**
* @ngdoc function
* @name angular.lowercase
* @module ng
* @kind function
*
* @deprecated
* sinceVersion="1.5.0"
* removeVersion="1.7.0"
* Use [String.prototype.toLowerCase](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase) instead.
*
* @description Converts the specified string to lowercase.
* @param {string} string String to be converted to lowercase.
* @returns {string} Lowercased string.
*/
var lowercase = function lowercase(string) {
return isString(string) ? string.toLowerCase() : string;
};
/**
* @ngdoc function
* @name angular.uppercase
* @module ng
* @kind function
*
* @deprecated
* sinceVersion="1.5.0"
* removeVersion="1.7.0"
* Use [String.prototype.toUpperCase](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase) instead.
*
* @description Converts the specified string to uppercase.
* @param {string} string String to be converted to uppercase.
* @returns {string} Uppercased string.
*/
var uppercase = function uppercase(string) {
return isString(string) ? string.toUpperCase() : string;
};
var manualLowercase = function manualLowercase(s) {
/* eslint-disable no-bitwise */
return isString(s) ? s.replace(/[A-Z]/g, function (ch) {
return String.fromCharCode(ch.charCodeAt(0) | 32);
}) : s;
/* eslint-enable */
};
var manualUppercase = function manualUppercase(s) {
/* eslint-disable no-bitwise */
return isString(s) ? s.replace(/[a-z]/g, function (ch) {
return String.fromCharCode(ch.charCodeAt(0) & ~32);
}) : s;
/* eslint-enable */
};
// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods
// with correct but slower alternatives. See https://github.com/angular/angular.js/issues/11387
if ('i' !== 'I'.toLowerCase()) {
lowercase = manualLowercase;
uppercase = manualUppercase;
}
var msie,
// holds major version number for IE, or NaN if UA is not IE.
jqLite,
// delay binding since jQuery could be loaded after us.
jQuery,
// delay binding
slice = [].slice,
splice = [].splice,
push = [].push,
toString = Object.prototype.toString,
getPrototypeOf = Object.getPrototypeOf,
ngMinErr = minErr('ng'),
/** @name angular */
angular = window.angular || (window.angular = {}),
angularModule,
uid = 0;
// Support: IE 9-11 only
/**
* documentMode is an IE-only property
* http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
*/
msie = window.document.documentMode;
/**
* @private
* @param {*} obj
* @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,
* String ...)
*/
function isArrayLike(obj) {
// `null`, `undefined` and `window` are not array-like
if (obj == null || isWindow(obj)) return false;
// arrays, strings and jQuery/jqLite objects are array like
// * jqLite is either the jQuery or jqLite constructor function
// * we have to check the existence of jqLite first as this method is called
// via the forEach method when constructing the jqLite object in the first place
if (isArray(obj) || isString(obj) || jqLite && obj instanceof jqLite) return true;
// Support: iOS 8.2 (not reproducible in simulator)
// "length" in obj used to prevent JIT error (gh-11508)
var length = 'length' in Object(obj) && obj.length;
// NodeList objects (with `item` method) and
// other objects with suitable length characteristics are array-like
return isNumber(length) && (length >= 0 && (length - 1 in obj || obj instanceof Array) || typeof obj.item === 'function');
}
/**
* @ngdoc function
* @name angular.forEach
* @module ng
* @kind function
*
* @description
* Invokes the `iterator` function once for each item in `obj` collection, which can be either an
* object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
* is the value of an object property or an array element, `key` is the object property key or
* array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.
*
* It is worth noting that `.forEach` does not iterate over inherited properties because it filters
* using the `hasOwnProperty` method.
*
* Unlike ES262's
* [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),
* providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just
* return the value provided.
*
```js
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key) {
this.push(key + ': ' + value);
}, log);
expect(log).toEqual(['name: misko', 'gender: male']);
```
*
* @param {Object|Array} obj Object to iterate over.
* @param {Function} iterator Iterator function.
* @param {Object=} context Object to become context (`this`) for the iterator function.
* @returns {Object|Array} Reference to `obj`.
*/
function forEach(obj, iterator, context) {
var key, length;
if (obj) {
if (isFunction(obj)) {
for (key in obj) {
if (key !== 'prototype' && key !== 'length' && key !== 'name' && obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key, obj);
}
}
} else if (isArray(obj) || isArrayLike(obj)) {
var isPrimitive = (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object';
for (key = 0, length = obj.length; key < length; key++) {
if (isPrimitive || key in obj) {
iterator.call(context, obj[key], key, obj);
}
}
} else if (obj.forEach && obj.forEach !== forEach) {
obj.forEach(iterator, context, obj);
} else if (isBlankObject(obj)) {
// createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
for (key in obj) {
iterator.call(context, obj[key], key, obj);
}
} else if (typeof obj.hasOwnProperty === 'function') {
// Slow path for objects inheriting Object.prototype, hasOwnProperty check needed
for (key in obj) {
if (obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key, obj);
}
}
} else {
// Slow path for objects which do not have a method `hasOwnProperty`
for (key in obj) {
if (hasOwnProperty.call(obj, key)) {
iterator.call(context, obj[key], key, obj);
}
}
}
}
return obj;
}
function forEachSorted(obj, iterator, context) {
var keys = Object.keys(obj).sort();
for (var i = 0; i < keys.length; i++) {
iterator.call(context, obj[keys[i]], keys[i]);
}
return keys;
}
/**
* when using forEach the params are value, key, but it is often useful to have key, value.
* @param {function(string, *)} iteratorFn
* @returns {function(*, string)}
*/
function reverseParams(iteratorFn) {
return function (value, key) {
iteratorFn(key, value);
};
}
/**
* A consistent way of creating unique IDs in angular.
*
* Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before
* we hit number precision issues in JavaScript.
*
* Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M
*
* @returns {number} an unique alpha-numeric string
*/
function nextUid() {
return ++uid;
}
/**
* Set or clear the hashkey for an object.
* @param obj object
* @param h the hashkey (!truthy to delete the hashkey)
*/
function setHashKey(obj, h) {
if (h) {
obj.$$hashKey = h;
} else {
delete obj.$$hashKey;
}
}
function baseExtend(dst, objs, deep) {
var h = dst.$$hashKey;
for (var i = 0, ii = objs.length; i < ii; ++i) {
var obj = objs[i];
if (!isObject(obj) && !isFunction(obj)) continue;
var keys = Object.keys(obj);
for (var j = 0, jj = keys.length; j < jj; j++) {
var key = keys[j];
var src = obj[key];
if (deep && isObject(src)) {
if (isDate(src)) {
dst[key] = new Date(src.valueOf());
} else if (isRegExp(src)) {
dst[key] = new RegExp(src);
} else if (src.nodeName) {
dst[key] = src.cloneNode(true);
} else if (isElement(src)) {
dst[key] = src.clone();
} else {
if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};
baseExtend(dst[key], [src], true);
}
} else {
dst[key] = src;
}
}
}
setHashKey(dst, h);
return dst;
}
/**
* @ngdoc function
* @name angular.extend
* @module ng
* @kind function
*
* @description
* Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
* by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.
*
* **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use
* {@link angular.merge} for this.
*
* @param {Object} dst Destination object.
* @param {...Object} src Source object(s).
* @returns {Object} Reference to `dst`.
*/
function extend(dst) {
return baseExtend(dst, slice.call(arguments, 1), false);
}
/**
* @ngdoc function
* @name angular.merge
* @module ng
* @kind function
*
* @description
* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.
*
* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source
* objects, performing a deep copy.
*
* @deprecated
* sinceVersion="1.6.5"
* This function is deprecated, but will not be removed in the 1.x lifecycle.
* There are edge cases (see {@link angular.merge#known-issues known issues}) that are not
* supported by this function. We suggest
* using [lodash's merge()](https://lodash.com/docs/4.17.4#merge) instead.
*
* @knownIssue
* This is a list of (known) object types that are not handled correctly by this function:
* - [`Blob`](https://developer.mozilla.org/docs/Web/API/Blob)
* - [`MediaStream`](https://developer.mozilla.org/docs/Web/API/MediaStream)
* - [`CanvasGradient`](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
* - AngularJS {@link $rootScope.Scope scopes};
*
* @param {Object} dst Destination object.
* @param {...Object} src Source object(s).
* @returns {Object} Reference to `dst`.
*/
function merge(dst) {
return baseExtend(dst, slice.call(arguments, 1), true);
}
function toInt(str) {
return parseInt(str, 10);
}
var isNumberNaN = Number.isNaN || function isNumberNaN(num) {
// eslint-disable-next-line no-self-compare
return num !== num;
};
function inherit(parent, extra) {
return extend(Object.create(parent), extra);
}
/**
* @ngdoc function
* @name angular.noop
* @module ng
* @kind function
*
* @description
* A function that performs no operations. This function can be useful when writing code in the
* functional style.
```js
function foo(callback) {
var result = calculateResult();
(callback || angular.noop)(result);
}
```
*/
function noop() {}
noop.$inject = [];
/**
* @ngdoc function
* @name angular.identity
* @module ng
* @kind function
*
* @description
* A function that returns its first argument. This function is useful when writing code in the
* functional style.
*
```js
function transformer(transformationFn, value) {
return (transformationFn || angular.identity)(value);
};
// E.g.
function getResult(fn, input) {
return (fn || angular.identity)(input);
};
getResult(function(n) { return n * 2; }, 21); // returns 42
getResult(null, 21); // returns 21
getResult(undefined, 21); // returns 21
```
*
* @param {*} value to be returned.
* @returns {*} the value passed in.
*/
function identity($) {
return $;
}
identity.$inject = [];
function valueFn(value) {
return function valueRef() {
return value;
};
}
function hasCustomToString(obj) {
return isFunction(obj.toString) && obj.toString !== toString;
}
/**
* @ngdoc function
* @name angular.isUndefined
* @module ng
* @kind function
*
* @description
* Determines if a reference is undefined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is undefined.
*/
function isUndefined(value) {
return typeof value === 'undefined';
}
/**
* @ngdoc function
* @name angular.isDefined
* @module ng
* @kind function
*
* @description
* Determines if a reference is defined.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is defined.
*/
function isDefined(value) {
return typeof value !== 'undefined';
}
/**
* @ngdoc function
* @name angular.isObject
* @module ng
* @kind function
*
* @description
* Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
* considered to be objects. Note that JavaScript arrays are objects.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Object` but not `null`.
*/
function isObject(value) {
// http://jsperf.com/isobject4
return value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object';
}
/**
* Determine if a value is an object with a null prototype
*
* @returns {boolean} True if `value` is an `Object` with a null prototype
*/
function isBlankObject(value) {
return value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !getPrototypeOf(value);
}
/**
* @ngdoc function
* @name angular.isString
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `String`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `String`.
*/
function isString(value) {
return typeof value === 'string';
}
/**
* @ngdoc function
* @name angular.isNumber
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `Number`.
*
* This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
*
* If you wish to exclude these then you can use the native
* [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)
* method.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Number`.
*/
function isNumber(value) {
return typeof value === 'number';
}
/**
* @ngdoc function
* @name angular.isDate
* @module ng
* @kind function
*
* @description
* Determines if a value is a date.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Date`.
*/
function isDate(value) {
return toString.call(value) === '[object Date]';
}
/**
* @ngdoc function
* @name angular.isArray
* @module ng
* @kind function
*
* @description
* Determines if a reference is an `Array`. Alias of Array.isArray.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Array`.
*/
var isArray = Array.isArray;
/**
* @description
* Determines if a reference is an `Error`.
* Loosely based on https://www.npmjs.com/package/iserror
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Error`.
*/
function isError(value) {
var tag = toString.call(value);
switch (tag) {
case '[object Error]':
return true;
case '[object Exception]':
return true;
case '[object DOMException]':
return true;
default:
return value instanceof Error;
}
}
/**
* @ngdoc function
* @name angular.isFunction
* @module ng
* @kind function
*
* @description
* Determines if a reference is a `Function`.
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `Function`.
*/
function isFunction(value) {
return typeof value === 'function';
}
/**
* Determines if a value is a regular expression object.
*
* @private
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a `RegExp`.
*/
function isRegExp(value) {
return toString.call(value) === '[object RegExp]';
}
/**
* Checks if `obj` is a window object.
*
* @private
* @param {*} obj Object to check
* @returns {boolean} True if `obj` is a window obj.
*/
function isWindow(obj) {
return obj && obj.window === obj;
}
function isScope(obj) {
return obj && obj.$evalAsync && obj.$watch;
}
function isFile(obj) {
return toString.call(obj) === '[object File]';
}
function isFormData(obj) {
return toString.call(obj) === '[object FormData]';
}
function isBlob(obj) {
return toString.call(obj) === '[object Blob]';
}
function isBoolean(value) {
return typeof value === 'boolean';
}
function isPromiseLike(obj) {
return obj && isFunction(obj.then);
}
var TYPED_ARRAY_REGEXP = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;
function isTypedArray(value) {
return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));
}
function isArrayBuffer(obj) {
return toString.call(obj) === '[object ArrayBuffer]';
}
var trim = function trim(value) {
return isString(value) ? value.trim() : value;
};
// Copied from:
// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021
// Prereq: s is a string.
var escapeForRegexp = function escapeForRegexp(s) {
return s.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g, '\\$1')
// eslint-disable-next-line no-control-regex
.replace(/\x08/g, '\\x08');
};
/**
* @ngdoc function
* @name angular.isElement
* @module ng
* @kind function
*
* @description
* Determines if a reference is a DOM element (or wrapped jQuery element).
*
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
*/
function isElement(node) {
return !!(node && (node.nodeName // We are a direct element.
|| node.prop && node.attr && node.find)); // We have an on and find method part of jQuery API.
}
/**
* @param str 'key1,key2,...'
* @returns {object} in the form of {key1:true, key2:true, ...}
*/
function makeMap(str) {
var obj = {},
items = str.split(','),
i;
for (i = 0; i < items.length; i++) {
obj[items[i]] = true;
}
return obj;
}
function nodeName_(element) {
return lowercase(element.nodeName || element[0] && element[0].nodeName);
}
function includes(array, obj) {
return Array.prototype.indexOf.call(array, obj) !== -1;
}
function arrayRemove(array, value) {
var index = array.indexOf(value);
if (index >= 0) {
array.splice(index, 1);
}
return index;
}
/**
* @ngdoc function
* @name angular.copy
* @module ng
* @kind function
*
* @description
* Creates a deep copy of `source`, which should be an object or an array.
*
* * If no destination is supplied, a copy of the object or array is created.
* * If a destination is provided, all of its elements (for arrays) or properties (for objects)
* are deleted and then all elements/properties from the source are copied to it.
* * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.
* * If `source` is identical to `destination` an exception will be thrown.
*
* <br />
* <div class="alert alert-warning">
* Only enumerable properties are taken into account. Non-enumerable properties (both on `source`
* and on `destination`) will be ignored.
* </div>
*
* @param {*} source The source that will be used to make a copy.
* Can be any type, including primitives, `null`, and `undefined`.
* @param {(Object|Array)=} destination Destination into which the source is copied. If
* provided, must be of the same type as `source`.
* @returns {*} The copy or updated `destination`, if `destination` was specified.
*
* @example
<example module="copyExample" name="angular-copy">
<file name="index.html">
<div ng-controller="ExampleController">
<form novalidate class="simple-form">
<label>Name: <input type="text" ng-model="user.name" /></label><br />
<label>Age: <input type="number" ng-model="user.age" /></label><br />
Gender: <label><input type="radio" ng-model="user.gender" value="male" />male</label>
<label><input type="radio" ng-model="user.gender" value="female" />female</label><br />
<button ng-click="reset()">RESET</button>
<button ng-click="update(user)">SAVE</button>
</form>
<pre>form = {{user | json}}</pre>
<pre>leader = {{leader | json}}</pre>
</div>
</file>
<file name="script.js">
// Module: copyExample
angular.
module('copyExample', []).
controller('ExampleController', ['$scope', function($scope) {
$scope.leader = {};
$scope.reset = function() {
// Example with 1 argument
$scope.user = angular.copy($scope.leader);
};
$scope.update = function(user) {
// Example with 2 arguments
angular.copy(user, $scope.leader);
};
$scope.reset();
}]);
</file>
</example>
*/
function copy(source, destination, maxDepth) {
var stackSource = [];
var stackDest = [];
maxDepth = isValidObjectMaxDepth(maxDepth) ? maxDepth : NaN;
if (destination) {
if (isTypedArray(destination) || isArrayBuffer(destination)) {
throw ngMinErr('cpta', 'Can\'t copy! TypedArray destination cannot be mutated.');
}
if (source === destination) {
throw ngMinErr('cpi', 'Can\'t copy! Source and destination are identical.');
}
// Empty the destination object
if (isArray(destination)) {
destination.length = 0;
} else {
forEach(destination, function (value, key) {
if (key !== '$$hashKey') {
delete destination[key];
}
});
}
stackSource.push(source);
stackDest.push(destination);
return copyRecurse(source, destination, maxDepth);
}
return copyElement(source, maxDepth);
function copyRecurse(source, destination, maxDepth) {
maxDepth--;
if (maxDepth < 0) {
return '...';
}
var h = destination.$$hashKey;
var key;
if (isArray(source)) {
for (var i = 0, ii = source.length; i < ii; i++) {
destination.push(copyElement(source[i], maxDepth));
}
} else if (isBlankObject(source)) {
// createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
for (key in source) {
destination[key] = copyElement(source[key], maxDepth);
}
} else if (source && typeof source.hasOwnProperty === 'function') {
// Slow path, which must rely on hasOwnProperty
for (key in source) {
if (source.hasOwnProperty(key)) {
destination[key] = copyElement(source[key], maxDepth);
}
}
} else {
// Slowest path --- hasOwnProperty can't be called as a method
for (key in source) {
if (hasOwnProperty.call(source, key)) {
destination[key] = copyElement(source[key], maxDepth);
}
}
}
setHashKey(destination, h);
return destination;
}
function copyElement(source, maxDepth) {
// Simple values
if (!isObject(source)) {
return source;
}
// Already copied values
var index = stackSource.indexOf(source);
if (index !== -1) {
return stackDest[index];
}
if (isWindow(source) || isScope(source)) {
throw ngMinErr('cpws', 'Can\'t copy! Making copies of Window or Scope instances is not supported.');
}
var needsRecurse = false;
var destination = copyType(source);
if (destination === undefined) {
destination = isArray(source) ? [] : Object.create(getPrototypeOf(source));
needsRecurse = true;
}
stackSource.push(source);
stackDest.push(destination);
return needsRecurse ? copyRecurse(source, destination, maxDepth) : destination;
}
function copyType(source) {
switch (toString.call(source)) {
case '[object Int8Array]':
case '[object Int16Array]':
case '[object Int32Array]':
case '[object Float32Array]':
case '[object Float64Array]':
case '[object Uint8Array]':
case '[object Uint8ClampedArray]':
case '[object Uint16Array]':
case '[object Uint32Array]':
return new source.constructor(copyElement(source.buffer), source.byteOffset, source.length);
case '[object ArrayBuffer]':
// Support: IE10
if (!source.slice) {
// If we're in this case we know the environment supports ArrayBuffer
/* eslint-disable no-undef */
var copied = new ArrayBuffer(source.byteLength);
new Uint8Array(copied).set(new Uint8Array(source));
/* eslint-enable */
return copied;
}
return source.slice(0);
case '[object Boolean]':
case '[object Number]':
case '[object String]':
case '[object Date]':
return new source.constructor(source.valueOf());
case '[object RegExp]':
var re = new RegExp(source.source, source.toString().match(/[^/]*$/)[0]);
re.lastIndex = source.lastIndex;
return re;
case '[object Blob]':
return new source.constructor([source], { type: source.type });
}
if (isFunction(source.cloneNode)) {
return source.cloneNode(true);
}
}
}
// eslint-disable-next-line no-self-compare
function simpleCompare(a, b) {
return a === b || a !== a && b !== b;
}
/**
* @ngdoc function
* @name angular.equals
* @module ng
* @kind function
*
* @description
* Determines if two objects or two values are equivalent. Supports value types, regular
* expressions, arrays and objects.
*
* Two objects or values are considered equivalent if at least one of the following is true:
*
* * Both objects or values pass `===` comparison.
* * Both objects or values are of the same type and all of their properties are equal by
* comparing them with `angular.equals`.
* * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)
* * Both values represent the same regular expression (In JavaScript,
* /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
* representation matches).
*
* During a property comparison, properties of `function` type and properties with names
* that begin with `$` are ignored.
*
* Scope and DOMWindow objects are being compared only by identify (`===`).
*
* @param {*} o1 Object or value to compare.
* @param {*} o2 Object or value to compare.
* @returns {boolean} True if arguments are equal.
*
* @example
<example module="equalsExample" name="equalsExample">
<file name="index.html">
<div ng-controller="ExampleController">
<form novalidate>
<h3>User 1</h3>
Name: <input type="text" ng-model="user1.name">
Age: <input type="number" ng-model="user1.age">
<h3>User 2</h3>
Name: <input type="text" ng-model="user2.name">
Age: <input type="number" ng-model="user2.age">
<div>
<br/>
<input type="button" value="Compare" ng-click="compare()">
</div>
User 1: <pre>{{user1 | json}}</pre>
User 2: <pre>{{user2 | json}}</pre>
Equal: <pre>{{result}}</pre>
</form>
</div>
</file>
<file name="script.js">
angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) {
$scope.user1 = {};
$scope.user2 = {};
$scope.compare = function() {
$scope.result = angular.equals($scope.user1, $scope.user2);
};
}]);
</file>
</example>
*/
function equals(o1, o2) {
if (o1 === o2) return true;
if (o1 === null || o2 === null) return false;
// eslint-disable-next-line no-self-compare
if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
var t1 = typeof o1 === 'undefined' ? 'undefined' : _typeof(o1),
t2 = typeof o2 === 'undefined' ? 'undefined' : _typeof(o2),
length,
key,
keySet;
if (t1 === t2 && t1 === 'object') {
if (isArray(o1)) {
if (!isArray(o2)) return false;
if ((length = o1.length) === o2.length) {
for (key = 0; key < length; key++) {
if (!equals(o1[key], o2[key])) return false;
}
return true;
}
} else if (isDate(o1)) {
if (!isDate(o2)) return false;
return simpleCompare(o1.getTime(), o2.getTime());
} else if (isRegExp(o1)) {
if (!isRegExp(o2)) return false;
return o1.toString() === o2.toString();
} else {
if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) || isArray(o2) || isDate(o2) || isRegExp(o2)) return false;
keySet = createMap();
for (key in o1) {
if (key.charAt(0) === '$' || isFunction(o1[key])) continue;
if (!equals(o1[key], o2[key])) return false;
keySet[key] = true;
}
for (key in o2) {
if (!(key in keySet) && key.charAt(0) !== '$' && isDefined(o2[key]) && !isFunction(o2[key])) return false;
}
return true;
}
}
return false;
}
var csp = function csp() {
if (!isDefined(csp.rules)) {
var ngCspElement = window.document.querySelector('[ng-csp]') || window.document.querySelector('[data-ng-csp]');
if (ngCspElement) {
var ngCspAttribute = ngCspElement.getAttribute('ng-csp') || ngCspElement.getAttribute('data-ng-csp');
csp.rules = {
noUnsafeEval: !ngCspAttribute || ngCspAttribute.indexOf('no-unsafe-eval') !== -1,
noInlineStyle: !ngCspAttribute || ngCspAttribute.indexOf('no-inline-style') !== -1
};
} else {
csp.rules = {
noUnsafeEval: noUnsafeEval(),
noInlineStyle: false
};
}
}
return csp.rules;
function noUnsafeEval() {
try {
// eslint-disable-next-line no-new, no-new-func
new Function('');
return false;
} catch (e) {
return true;
}
}
};
/**
* @ngdoc directive
* @module ng
* @name ngJq
*
* @element ANY
* @param {string=} ngJq the name of the library available under `window`
* to be used for angular.element
* @description
* Use this directive to force the angular.element library. This should be
* used to force either jqLite by leaving ng-jq blank or setting the name of
* the jquery variable under window (eg. jQuery).
*
* Since angular looks for this directive when it is loaded (doesn't wait for the
* DOMContentLoaded event), it must be placed on an element that comes before the script
* which loads angular. Also, only the first instance of `ng-jq` will be used and all
* others ignored.
*
* @example
* This example shows how to force jqLite using the `ngJq` directive to the `html` tag.
```html
<!doctype html>
<html ng-app ng-jq>
...
...
</html>
```
* @example
* This example shows how to use a jQuery based library of a different name.
* The library name must be available at the top most 'window'.
```html
<!doctype html>
<html ng-app ng-jq="jQueryLib">
...
...
</html>
```
*/
var jq = function jq() {
if (isDefined(jq.name_)) return jq.name_;
var el;
var i,
ii = ngAttrPrefixes.length,
prefix,
name;
for (i = 0; i < ii; ++i) {
prefix = ngAttrPrefixes[i];
el = window.document.querySelector('[' + prefix.replace(':', '\\:') + 'jq]');
if (el) {
name = el.getAttribute(prefix + 'jq');
break;
}
}
return jq.name_ = name;
};
function concat(array1, array2, index) {
return array1.concat(slice.call(array2, index));
}
function sliceArgs(args, startIndex) {
return slice.call(args, startIndex || 0);
}
/**
* @ngdoc function
* @name angular.bind
* @module ng
* @kind function
*
* @description
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
* `fn`). You can supply optional `args` that are prebound to the function. This feature is also
* known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
* distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
*
* @param {Object} self Context which `fn` should be evaluated in.
* @param {function()} fn Function to be bound.
* @param {...*} args Optional arguments to be prebound to the `fn` function call.
* @returns {function()} Function that wraps the `fn` with all the specified bindings.
*/
function bind(self, fn) {
var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
if (isFunction(fn) && !(fn instanceof RegExp)) {
return curryArgs.length ? function () {
return arguments.length ? fn.apply(self, concat(curryArgs, arguments, 0)) : fn.apply(self, curryArgs);
} : function () {
return arguments.length ? fn.apply(self, arguments) : fn.call(self);
};
} else {
// In IE, native methods are not functions so they cannot be bound (note: they don't need to be).
return fn;
}
}
function toJsonReplacer(key, value) {
var val = value;
if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
val = undefined;
} else if (isWindow(value)) {
val = '$WINDOW';
} else if (value && window.document === value) {
val = '$DOCUMENT';
} else if (isScope(value)) {
val = '$SCOPE';
}
return val;
}
/**
* @ngdoc function
* @name angular.toJson
* @module ng
* @kind function
*
* @description
* Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
* stripped since angular uses this notation internally.
*
* @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON.
* @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
* If set to an integer, the JSON output will contain that many spaces per indentation.
* @returns {string|undefined} JSON-ified string representing `obj`.
* @knownIssue
*
* The Safari browser throws a `RangeError` instead of returning `null` when it tries to stringify a `Date`
* object with an invalid date value. The only reliable way to prevent this is to monkeypatch the
* `Date.prototype.toJSON` method as follows:
*
* ```
* var _DatetoJSON = Date.prototype.toJSON;
* Date.prototype.toJSON = function() {
* try {
* return _DatetoJSON.call(this);
* } catch(e) {
* if (e instanceof RangeError) {
* return null;
* }
* throw e;
* }
* };
* ```
*
* See https://github.com/angular/angular.js/pull/14221 for more information.
*/
function toJson(obj, pretty) {
if (isUndefined(obj)) return undefined;
if (!isNumber(pretty)) {
pretty = pretty ? 2 : null;
}
return JSON.stringify(obj, toJsonReplacer, pretty);
}
/**
* @ngdoc function
* @name angular.fromJson
* @module ng
* @kind function
*
* @description
* Deserializes a JSON string.
*
* @param {string} json JSON string to deserialize.
* @returns {Object|Array|string|number} Deserialized JSON string.
*/
function fromJson(json) {
return isString(json) ? JSON.parse(json) : json;
}
var ALL_COLONS = /:/g;
function timezoneToOffset(timezone, fallback) {
// Support: IE 9-11 only, Edge 13-15+
// IE/Edge do not "understand" colon (`:`) in timezone
timezone = timezone.replace(ALL_COLONS, '');
var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
return isNumberNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
}
function addDateMinutes(date, minutes) {
date = new Date(date.getTime());
date.setMinutes(date.getMinutes() + minutes);
return date;
}
function convertTimezoneToLocal(date, timezone, reverse) {
reverse = reverse ? -1 : 1;
var dateTimezoneOffset = date.getTimezoneOffset();
var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
}
/**
* @returns {string} Returns the string representation of the element.
*/
function startingTag(element) {
element = jqLite(element).clone().empty();
var elemHtml = jqLite('<div>').append(element).html();
try {
return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) : elemHtml.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/, function (match, nodeName) {
return '<' + lowercase(nodeName);
});
} catch (e) {
return lowercase(elemHtml);
}
}
/////////////////////////////////////////////////
/**
* Tries to decode the URI component without throwing an exception.
*
* @private
* @param str value potential URI component to check.
* @returns {boolean} True if `value` can be decoded
* with the decodeURIComponent function.
*/
function tryDecodeURIComponent(value) {
try {
return decodeURIComponent(value);
} catch (e) {
// Ignore any invalid uri component.
}
}
/**
* Parses an escaped url query string into key-value pairs.
* @returns {Object.<string,boolean|Array>}
*/
function parseKeyValue( /**string*/keyValue) {
var obj = {};
forEach((keyValue || '').split('&'), function (keyValue) {
var splitPoint, key, val;
if (keyValue) {
key = keyValue = keyValue.replace(/\+/g, '%20');
splitPoint = keyValue.indexOf('=');
if (splitPoint !== -1) {
key = keyValue.substring(0, splitPoint);
val = keyValue.substring(splitPoint + 1);
}
key = tryDecodeURIComponent(key);
if (isDefined(key)) {
val = isDefined(val) ? tryDecodeURIComponent(val) : true;
if (!hasOwnProperty.call(obj, key)) {
obj[key] = val;
} else if (isArray(obj[key])) {
obj[key].push(val);
} else {
obj[key] = [obj[key], val];
}
}
}
});
return obj;
}
function toKeyValue(obj) {
var parts = [];
forEach(obj, function (value, key) {
if (isArray(value)) {
forEach(value, function (arrayValue) {
parts.push(encodeUriQuery(key, true) + (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));
});
} else {
parts.push(encodeUriQuery(key, true) + (value === true ? '' : '=' + encodeUriQuery(value, true)));
}
});
return parts.length ? parts.join('&') : '';
}
/**
* We need our custom method because encodeURIComponent is too aggressive and doesn't follow
* http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
* segments:
* segment = *pchar
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
* pct-encoded = "%" HEXDIG HEXDIG
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
* sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
* / "*" / "+" / "," / ";" / "="
*/
function encodeUriSegment(val) {
return encodeUriQuery(val, true).replace(/%26/gi, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');
}
/**
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
* method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
* encoded per http://tools.ietf.org/html/rfc3986:
* query = *( pchar / "/" / "?" )
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
* pct-encoded = "%" HEXDIG HEXDIG
* sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
* / "*" / "+" / "," / ";" / "="
*/
function encodeUriQuery(val, pctEncodeSpaces) {
return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%3B/gi, ';').replace(/%20/g, pctEncodeSpaces ? '%20' : '+');
}
var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];
function getNgAttribute(element, ngAttr) {
var attr,
i,
ii = ngAttrPrefixes.length;
for (i = 0; i < ii; ++i) {
attr = ngAttrPrefixes[i] + ngAttr;
if (isString(attr = element.getAttribute(attr))) {
return attr;
}
}
return null;
}
function allowAutoBootstrap(document) {
var script = document.currentScript;
if (!script) {
// Support: IE 9-11 only
// IE does not have `document.currentScript`
return true;
}
// If the `currentScript` property has been clobbered just return false, since this indicates a probable attack
if (!(script instanceof window.HTMLScriptElement || script instanceof window.SVGScriptElement)) {
return false;
}
var attributes = script.attributes;
var srcs = [attributes.getNamedItem('src'), attributes.getNamedItem('href'), attributes.getNamedItem('xlink:href')];
return srcs.every(function (src) {
if (!src) {
return true;
}
if (!src.value) {
return false;
}
var link = document.createElement('a');
link.href = src.value;
if (document.location.origin === link.origin) {
// Same-origin resources are always allowed, even for non-whitelisted schemes.
return true;
}
// Disabled bootstrapping unless angular.js was loaded from a known scheme used on the web.
// This is to prevent angular.js bundled with browser extensions from being used to bypass the
// content security policy in web pages and other browser extensions.
switch (link.protocol) {
case 'http:':
case 'https:':
case 'ftp:':
case 'blob:':
case 'file:':
case 'data:':
return true;
default:
return false;
}
});
}
// Cached as it has to run during loading so that document.currentScript is available.
var isAutoBootstrapAllowed = allowAutoBootstrap(window.document);
/**
* @ngdoc directive
* @name ngApp
* @module ng
*
* @element ANY
* @param {angular.Module} ngApp an optional application
* {@link angular.module module} name to load.
* @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be
* created in "strict-di" mode. This means that the application will fail to invoke functions which
* do not use explicit function annotation (and are thus unsuitable for minification), as described
* in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in
* tracking down the root of these bugs.
*
* @description
*
* Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive
* designates the **root element** of the application and is typically placed near the root element
* of the page - e.g. on the `<body>` or `<html>` tags.
*
* There are a few things to keep in mind when using `ngApp`:
* - only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`
* found in the document will be used to define the root element to auto-bootstrap as an
* application. To run multiple applications in an HTML document you must manually bootstrap them using
* {@link angular.bootstrap} instead.
* - AngularJS applications cannot be nested within each other.
* - Do not use a directive that uses {@link ng.$compile#transclusion transclusion} on the same element as `ngApp`.
* This includes directives such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and
* {@link ngRoute.ngView `ngView`}.
* Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
* causing animations to stop working and making the injector inaccessible from outside the app.
*
* You can specify an **AngularJS module** to be used as the root module for the application. This
* module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It
* should contain the application code needed or have dependencies on other modules that will
* contain the code. See {@link angular.module} for more information.
*
* In the example below if the `ngApp` directive were not placed on the `html` element then the
* document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`
* would not be resolved to `3`.
*
* @example
*
* ### Simple Usage
*
* `ngApp` is the easiest, and most common way to bootstrap an application.
*
<example module="ngAppDemo" name="ng-app">
<file name="index.html">
<div ng-controller="ngAppDemoController">
I can add: {{a}} + {{b}} = {{ a+b }}
</div>
</file>
<file name="script.js">
angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {
$scope.a = 1;
$scope.b = 2;
});
</file>
</example>
*
* @example
*
* ### With `ngStrictDi`
*
* Using `ngStrictDi`, you would see something like this:
*
<example ng-app-included="true" name="strict-di">
<file name="index.html">
<div ng-app="ngAppStrictDemo" ng-strict-di>
<div ng-controller="GoodController1">
I can add: {{a}} + {{b}} = {{ a+b }}
<p>This renders because the controller does not fail to
instantiate, by using explicit annotation style (see
script.js for details)
</p>
</div>
<div ng-controller="GoodController2">
Name: <input ng-model="name"><br />
Hello, {{name}}!
<p>This renders because the controller does not fail to
instantiate, by using explicit annotation style
(see script.js for details)
</p>
</div>
<div ng-controller="BadController">
I can add: {{a}} + {{b}} = {{ a+b }}
<p>The controller could not be instantiated, due to relying
on automatic function annotations (which are disabled in
strict mode). As such, the content of this section is not
interpolated, and there should be an error in your web console.
</p>
</div>
</div>
</file>
<file name="script.js">
angular.module('ngAppStrictDemo', [])
// BadController will fail to instantiate, due to relying on automatic function annotation,
// rather than an explicit annotation
.controller('BadController', function($scope) {
$scope.a = 1;
$scope.b = 2;
})
// Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,
// due to using explicit annotations using the array style and $inject property, respectively.
.controller('GoodController1', ['$scope', function($scope) {
$scope.a = 1;
$scope.b = 2;
}])
.controller('GoodController2', GoodController2);
function GoodController2($scope) {
$scope.name = 'World';
}
GoodController2.$inject = ['$scope'];
</file>
<file name="style.css">
div[ng-controller] {
margin-bottom: 1em;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid;
padding: .5em;
}
div[ng-controller^=Good] {
border-color: #d6e9c6;
background-color: #dff0d8;
color: #3c763d;
}
div[ng-controller^=Bad] {
border-color: #ebccd1;
background-color: #f2dede;
color: #a94442;
margin-bottom: 0;
}
</file>
</example>
*/
function angularInit(element, bootstrap) {
var appElement,
module,
config = {};
// The element `element` has priority over any other element.
forEach(ngAttrPrefixes, function (prefix) {
var name = prefix + 'app';
if (!appElement && element.hasAttribute && element.hasAttribute(name)) {
appElement = element;
module = element.getAttribute(name);
}
});
forEach(ngAttrPrefixes, function (prefix) {
var name = prefix + 'app';
var candidate;
if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) {
appElement = candidate;
module = candidate.getAttribute(name);
}
});
if (appElement) {
if (!isAutoBootstrapAllowed) {
window.console.error('Angular: disabling automatic bootstrap. <script> protocol indicates ' + 'an extension, document.location.href does not match.');
return;
}
config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;
bootstrap(appElement, module ? [module] : [], config);
}
}
/**
* @ngdoc function
* @name angular.bootstrap
* @module ng
* @description
* Use this function to manually start up angular application.
*
* For more information, see the {@link guide/bootstrap Bootstrap guide}.
*
* Angular will detect if it has been loaded into the browser more than once and only allow the
* first loaded script to be bootstrapped and will report a warning to the browser console for
* each of the subsequent scripts. This prevents strange results in applications, where otherwise
* multiple instances of Angular try to work on the DOM.
*
* <div class="alert alert-warning">
* **Note:** Protractor based end-to-end tests cannot use this function to bootstrap manually.
* They must use {@link ng.directive:ngApp ngApp}.
* </div>
*
* <div class="alert alert-warning">
* **Note:** Do not bootstrap the app on an element with a directive that uses {@link ng.$compile#transclusion transclusion},
* such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and {@link ngRoute.ngView `ngView`}.
* Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
* causing animations to stop working and making the injector inaccessible from outside the app.
* </div>
*
* ```html
* <!doctype html>
* <html>
* <body>
* <div ng-controller="WelcomeController">
* {{greeting}}
* </div>
*
* <script src="angular.js"></script>
* <script>
* var app = angular.module('demo', [])
* .controller('WelcomeController', function($scope) {
* $scope.greeting = 'Welcome!';
* });
* angular.bootstrap(document, ['demo']);
* </script>
* </body>
* </html>
* ```
*
* @param {DOMElement} element DOM element which is the root of angular application.
* @param {Array<String|Function|Array>=} modules an array of modules to load into the application.
* Each item in the array should be the name of a predefined module or a (DI annotated)
* function that will be invoked by the injector as a `config` block.
* See: {@link angular.module modules}
* @param {Object=} config an object for defining configuration options for the application. The
* following keys are supported:
*
* * `strictDi` - disable automatic function annotation for the application. This is meant to
* assist in finding bugs which break minified code. Defaults to `false`.
*
* @returns {auto.$injector} Returns the newly created injector for this app.
*/
function bootstrap(element, modules, config) {
if (!isObject(config)) config = {};
var defaultConfig = {
strictDi: false
};
config = extend(defaultConfig, config);
var doBootstrap = function doBootstrap() {
element = jqLite(element);
if (element.injector()) {
var tag = element[0] === window.document ? 'document' : startingTag(element);
// Encode angle brackets to prevent input from being sanitized to empty string #8683.
throw ngMinErr('btstrpd', 'App already bootstrapped with this element \'{0}\'', tag.replace(/</, '&lt;').replace(/>/, '&gt;'));
}
modules = modules || [];
modules.unshift(['$provide', function ($provide) {
$provide.value('$rootElement', element);
}]);
if (config.debugInfoEnabled) {
// Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.
modules.push(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(true);
}]);
}
modules.unshift('ng');
var injector = createInjector(modules, config.strictDi);
injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector', function bootstrapApply(scope, element, compile, injector) {
scope.$apply(function () {
element.data('$injector', injector);
compile(element)(scope);
});
}]);
return injector;
};
var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;
var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {
config.debugInfoEnabled = true;
window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');
}
if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
return doBootstrap();
}
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
angular.resumeBootstrap = function (extraModules) {
forEach(extraModules, function (module) {
modules.push(module);
});
return doBootstrap();
};
if (isFunction(angular.resumeDeferredBootstrap)) {
angular.resumeDeferredBootstrap();
}
}
/**
* @ngdoc function
* @name angular.reloadWithDebugInfo
* @module ng
* @description
* Use this function to reload the current application with debug information turned on.
* This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.
*
* See {@link ng.$compileProvider#debugInfoEnabled} for more.
*/
function reloadWithDebugInfo() {
window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;
window.location.reload();
}
/**
* @name angular.getTestability
* @module ng
* @description
* Get the testability service for the instance of Angular on the given
* element.
* @param {DOMElement} element DOM element which is the root of angular application.
*/
function getTestability(rootElement) {
var injector = angular.element(rootElement).injector();
if (!injector) {
throw ngMinErr('test', 'no injector found for element argument to getTestability');
}
return injector.get('$$testability');
}
var SNAKE_CASE_REGEXP = /[A-Z]/g;
function snake_case(name, separator) {
separator = separator || '_';
return name.replace(SNAKE_CASE_REGEXP, function (letter, pos) {
return (pos ? separator : '') + letter.toLowerCase();
});
}
var bindJQueryFired = false;
function bindJQuery() {
var originalCleanData;
if (bindJQueryFired) {
return;
}
// bind to jQuery if present;
var jqName = jq();
jQuery = isUndefined(jqName) ? window.jQuery : // use jQuery (if present)
!jqName ? undefined : // use jqLite
window[jqName]; // use jQuery specified by `ngJq`
// Use jQuery if it exists with proper functionality, otherwise default to us.
// Angular 1.2+ requires jQuery 1.7+ for on()/off() support.
// Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older
// versions. It will not work for sure with jQuery <1.7, though.
if (jQuery && jQuery.fn.on) {
jqLite = jQuery;
extend(jQuery.fn, {
scope: JQLitePrototype.scope,
isolateScope: JQLitePrototype.isolateScope,
controller: /** @type {?} */JQLitePrototype.controller,
injector: JQLitePrototype.injector,
inheritedData: JQLitePrototype.inheritedData
});
// All nodes removed from the DOM via various jQuery APIs like .remove()
// are passed through jQuery.cleanData. Monkey-patch this method to fire
// the $destroy event on all removed nodes.
originalCleanData = jQuery.cleanData;
jQuery.cleanData = function (elems) {
var events;
for (var i = 0, elem; (elem = elems[i]) != null; i++) {
events = jQuery._data(elem, 'events');
if (events && events.$destroy) {
jQuery(elem).triggerHandler('$destroy');
}
}
originalCleanData(elems);
};
} else {
jqLite = JQLite;
}
angular.element = jqLite;
// Prevent double-proxying.
bindJQueryFired = true;
}
/**
* throw error if the argument is falsy.
*/
function assertArg(arg, name, reason) {
if (!arg) {
throw ngMinErr('areq', 'Argument \'{0}\' is {1}', name || '?', reason || 'required');
}
return arg;
}
function assertArgFn(arg, name, acceptArrayAnnotation) {
if (acceptArrayAnnotation && isArray(arg)) {
arg = arg[arg.length - 1];
}
assertArg(isFunction(arg), name, 'not a function, got ' + (arg && (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' ? arg.constructor.name || 'Object' : typeof arg === 'undefined' ? 'undefined' : _typeof(arg)));
return arg;
}
/**
* throw error if the name given is hasOwnProperty
* @param {String} name the name to test
* @param {String} context the context in which the name is used, such as module or directive
*/
function assertNotHasOwnProperty(name, context) {
if (name === 'hasOwnProperty') {
throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
}
}
/**
* Return the value accessible from the object by path. Any undefined traversals are ignored
* @param {Object} obj starting object
* @param {String} path path to traverse
* @param {boolean} [bindFnToScope=true]
* @returns {Object} value as accessible by path
*/
//TODO(misko): this function needs to be removed
function getter(obj, path, bindFnToScope) {
if (!path) return obj;
var keys = path.split('.');
var key;
var lastInstance = obj;
var len = keys.length;
for (var i = 0; i < len; i++) {
key = keys[i];
if (obj) {
obj = (lastInstance = obj)[key];
}
}
if (!bindFnToScope && isFunction(obj)) {
return bind(lastInstance, obj);
}
return obj;
}
/**
* Return the DOM siblings between the first and last node in the given array.
* @param {Array} array like object
* @returns {Array} the inputted object or a jqLite collection containing the nodes
*/
function getBlockNodes(nodes) {
// TODO(perf): update `nodes` instead of creating a new object?
var node = nodes[0];
var endNode = nodes[nodes.length - 1];
var blockNodes;
for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {
if (blockNodes || nodes[i] !== node) {
if (!blockNodes) {
blockNodes = jqLite(slice.call(nodes, 0, i));
}
blockNodes.push(node);
}
}
return blockNodes || nodes;
}
/**
* Creates a new object without a prototype. This object is useful for lookup without having to
* guard against prototypically inherited properties via hasOwnProperty.
*
* Related micro-benchmarks:
* - http://jsperf.com/object-create2
* - http://jsperf.com/proto-map-lookup/2
* - http://jsperf.com/for-in-vs-object-keys2
*
* @returns {Object}
*/
function createMap() {
return Object.create(null);
}
function stringify(value) {
if (value == null) {
// null || undefined
return '';
}
switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {
case 'string':
break;
case 'number':
value = '' + value;
break;
default:
if (hasCustomToString(value) && !isArray(value) && !isDate(value)) {
value = value.toString();
} else {
value = toJson(value);
}
}
return value;
}
var NODE_TYPE_ELEMENT = 1;
var NODE_TYPE_ATTRIBUTE = 2;
var NODE_TYPE_TEXT = 3;
var NODE_TYPE_COMMENT = 8;
var NODE_TYPE_DOCUMENT = 9;
var NODE_TYPE_DOCUMENT_FRAGMENT = 11;
/**
* @ngdoc type
* @name angular.Module
* @module ng
* @description
*
* Interface for configuring angular {@link angular.module modules}.
*/
function setupModuleLoader(window) {
var $injectorMinErr = minErr('$injector');
var ngMinErr = minErr('ng');
function ensure(obj, name, factory) {
return obj[name] || (obj[name] = factory());
}
var angular = ensure(window, 'angular', Object);
// We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap
angular.$$minErr = angular.$$minErr || minErr;
return ensure(angular, 'module', function () {
/** @type {Object.<string, angular.Module>} */
var modules = {};
/**
* @ngdoc function
* @name angular.module
* @module ng
* @description
*
* The `angular.module` is a global place for creating, registering and retrieving Angular
* modules.
* All modules (angular core or 3rd party) that should be available to an application must be
* registered using this mechanism.
*
* Passing one argument retrieves an existing {@link angular.Module},
* whereas passing more than one argument creates a new {@link angular.Module}
*
*
* # Module
*
* A module is a collection of services, directives, controllers, filters, and configuration information.
* `angular.module` is used to configure the {@link auto.$injector $injector}.
*
* ```js
* // Create a new module
* var myModule = angular.module('myModule', []);
*
* // register a new service
* myModule.value('appName', 'MyCoolApp');
*
* // configure existing services inside initialization blocks.
* myModule.config(['$locationProvider', function($locationProvider) {
* // Configure existing providers
* $locationProvider.hashPrefix('!');
* }]);
* ```
*
* Then you can create an injector and load your modules like this:
*
* ```js
* var injector = angular.injector(['ng', 'myModule'])
* ```
*
* However it's more likely that you'll just use
* {@link ng.directive:ngApp ngApp} or
* {@link angular.bootstrap} to simplify this process for you.
*
* @param {!string} name The name of the module to create or retrieve.
* @param {!Array.<string>=} requires If specified then new module is being created. If
* unspecified then the module is being retrieved for further configuration.
* @param {Function=} configFn Optional configuration function for the module. Same as
* {@link angular.Module#config Module#config()}.
* @returns {angular.Module} new module with the {@link angular.Module} api.
*/
return function module(name, requires, configFn) {
var _info = {};
var assertNotHasOwnProperty = function assertNotHasOwnProperty(name, context) {
if (name === 'hasOwnProperty') {
throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
}
};
assertNotHasOwnProperty(name, 'module');
if (requires && modules.hasOwnProperty(name)) {
modules[name] = null;
}
return ensure(modules, name, function () {
if (!requires) {
throw $injectorMinErr('nomod', 'Module \'{0}\' is not available! You either misspelled ' + 'the module name or forgot to load it. If registering a module ensure that you ' + 'specify the dependencies as the second argument.', name);
}
/** @type {!Array.<Array.<*>>} */
var invokeQueue = [];
/** @type {!Array.<Function>} */
var configBlocks = [];
/** @type {!Array.<Function>} */
var runBlocks = [];
var config = invokeLater('$injector', 'invoke', 'push', configBlocks);
/** @type {angular.Module} */
var moduleInstance = {
// Private state
_invokeQueue: invokeQueue,
_configBlocks: configBlocks,
_runBlocks: runBlocks,
/**
* @ngdoc method
* @name angular.Module#info
* @module ng
*
* @param {Object=} info Information about the module
* @returns {Object|Module} The current info object for this module if called as a getter,
* or `this` if called as a setter.
*
* @description
* Read and write custom information about this module.
* For example you could put the version of the module in here.
*
* ```js
* angular.module('myModule', []).info({ version: '1.0.0' });
* ```
*
* The version could then be read back out by accessing the module elsewhere:
*
* ```
* var version = angular.module('myModule').info().version;
* ```
*
* You can also retrieve this information during runtime via the
* {@link $injector#modules `$injector.modules`} property:
*
* ```js
* var version = $injector.modules['myModule'].info().version;
* ```
*/
info: function info(value) {
if (isDefined(value)) {
if (!isObject(value)) throw ngMinErr('aobj', 'Argument \'{0}\' must be an object', 'value');
_info = value;
return this;
}
return _info;
},
/**
* @ngdoc property
* @name angular.Module#requires
* @module ng
*
* @description
* Holds the list of modules which the injector will load before the current module is
* loaded.
*/
requires: requires,
/**
* @ngdoc property
* @name angular.Module#name
* @module ng
*
* @description
* Name of the module.
*/
name: name,
/**
* @ngdoc method
* @name angular.Module#provider
* @module ng
* @param {string} name service name
* @param {Function} providerType Construction function for creating new instance of the
* service.
* @description
* See {@link auto.$provide#provider $provide.provider()}.
*/
provider: invokeLaterAndSetModuleName('$provide', 'provider'),
/**
* @ngdoc method
* @name angular.Module#factory
* @module ng
* @param {string} name service name
* @param {Function} providerFunction Function for creating new instance of the service.
* @description
* See {@link auto.$provide#factory $provide.factory()}.
*/
factory: invokeLaterAndSetModuleName('$provide', 'factory'),
/**
* @ngdoc method
* @name angular.Module#service
* @module ng
* @param {string} name service name
* @param {Function} constructor A constructor function that will be instantiated.
* @description
* See {@link auto.$provide#service $provide.service()}.
*/
service: invokeLaterAndSetModuleName('$provide', 'service'),
/**
* @ngdoc method
* @name angular.Module#value
* @module ng
* @param {string} name service name
* @param {*} object Service instance object.
* @description
* See {@link auto.$provide#value $provide.value()}.
*/
value: invokeLater('$provide', 'value'),
/**
* @ngdoc method
* @name angular.Module#constant
* @module ng
* @param {string} name constant name
* @param {*} object Constant value.
* @description
* Because the constants are fixed, they get applied before other provide methods.
* See {@link auto.$provide#constant $provide.constant()}.
*/
constant: invokeLater('$provide', 'constant', 'unshift'),
/**
* @ngdoc method
* @name angular.Module#decorator
* @module ng
* @param {string} name The name of the service to decorate.
* @param {Function} decorFn This function will be invoked when the service needs to be
* instantiated and should return the decorated service instance.
* @description
* See {@link auto.$provide#decorator $provide.decorator()}.
*/
decorator: invokeLaterAndSetModuleName('$provide', 'decorator', configBlocks),
/**
* @ngdoc method
* @name angular.Module#animation
* @module ng
* @param {string} name animation name
* @param {Function} animationFactory Factory function for creating new instance of an
* animation.
* @description
*
* **NOTE**: animations take effect only if the **ngAnimate** module is loaded.
*
*
* Defines an animation hook that can be later used with
* {@link $animate $animate} service and directives that use this service.
*
* ```js
* module.animation('.animation-name', function($inject1, $inject2) {
* return {
* eventName : function(element, done) {
* //code to run the animation
* //once complete, then run done()
* return function cancellationFunction(element) {
* //code to cancel the animation
* }
* }
* }
* })
* ```
*
* See {@link ng.$animateProvider#register $animateProvider.register()} and
* {@link ngAnimate ngAnimate module} for more information.
*/
animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#filter
* @module ng
* @param {string} name Filter name - this must be a valid angular expression identifier
* @param {Function} filterFactory Factory function for creating new instance of filter.
* @description
* See {@link ng.$filterProvider#register $filterProvider.register()}.
*
* <div class="alert alert-warning">
* **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
* Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
* your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
* (`myapp_subsection_filterx`).
* </div>
*/
filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#controller
* @module ng
* @param {string|Object} name Controller name, or an object map of controllers where the
* keys are the names and the values are the constructors.
* @param {Function} constructor Controller constructor function.
* @description
* See {@link ng.$controllerProvider#register $controllerProvider.register()}.
*/
controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),
/**
* @ngdoc method
* @name angular.Module#directive
* @module ng
* @param {string|Object} name Directive name, or an object map of directives where the
* keys are the names and the values are the factories.
* @param {Function} directiveFactory Factory function for creating new instance of
* directives.
* @description
* See {@link ng.$compileProvider#directive $compileProvider.directive()}.
*/
directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),
/**
* @ngdoc method
* @name angular.Module#component
* @module ng
* @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)
* @param {Object} options Component definition object (a simplified
* {@link ng.$compile#directive-definition-object directive definition object})
*
* @description
* See {@link ng.$compileProvider#component $compileProvider.component()}.
*/
component: invokeLaterAndSetModuleName('$compileProvider', 'component'),
/**
* @ngdoc method
* @name angular.Module#config
* @module ng
* @param {Function} configFn Execute this function on module load. Useful for service
* configuration.
* @description
* Use this method to register work which needs to be performed on module loading.
* For more about how to configure services, see
* {@link providers#provider-recipe Provider Recipe}.
*/
config: config,
/**
* @ngdoc method
* @name angular.Module#run
* @module ng
* @param {Function} initializationFn Execute this function after injector creation.
* Useful for application initialization.
* @description
* Use this method to register work which should be performed when the injector is done
* loading all modules.
*/
run: function run(block) {
runBlocks.push(block);
return this;
}
};
if (configFn) {
config(configFn);
}
return moduleInstance;
/**
* @param {string} provider
* @param {string} method
* @param {String=} insertMethod
* @returns {angular.Module}
*/
function invokeLater(provider, method, insertMethod, queue) {
if (!queue) queue = invokeQueue;
return function () {
queue[insertMethod || 'push']([provider, method, arguments]);
return moduleInstance;
};
}
/**
* @param {string} provider
* @param {string} method
* @returns {angular.Module}
*/
function invokeLaterAndSetModuleName(provider, method, queue) {
if (!queue) queue = invokeQueue;
return function (recipeName, factoryFunction) {
if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;
queue.push([provider, method, arguments]);
return moduleInstance;
};
}
});
};
});
}
/* global shallowCopy: true */
/**
* Creates a shallow copy of an object, an array or a primitive.
*
* Assumes that there are no proto properties for objects.
*/
function shallowCopy(src, dst) {
if (isArray(src)) {
dst = dst || [];
for (var i = 0, ii = src.length; i < ii; i++) {
dst[i] = src[i];
}
} else if (isObject(src)) {
dst = dst || {};
for (var key in src) {
if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {
dst[key] = src[key];
}
}
}
return dst || src;
}
/* exported toDebugString */
function serializeObject(obj, maxDepth) {
var seen = [];
// There is no direct way to stringify object until reaching a specific depth
// and a very deep object can cause a performance issue, so we copy the object
// based on this specific depth and then stringify it.
if (isValidObjectMaxDepth(maxDepth)) {
// This file is also included in `angular-loader`, so `copy()` might not always be available in
// the closure. Therefore, it is lazily retrieved as `angular.copy()` when needed.
obj = angular.copy(obj, null, maxDepth);
}
return JSON.stringify(obj, function (key, val) {
val = toJsonReplacer(key, val);
if (isObject(val)) {
if (seen.indexOf(val) >= 0) return '...';
seen.push(val);
}
return val;
});
}
function toDebugString(obj, maxDepth) {
if (typeof obj === 'function') {
return obj.toString().replace(/ \{[\s\S]*$/, '');
} else if (isUndefined(obj)) {
return 'undefined';
} else if (typeof obj !== 'string') {
return serializeObject(obj, maxDepth);
}
return obj;
}
/* global angularModule: true,
version: true,
$CompileProvider,
htmlAnchorDirective,
inputDirective,
inputDirective,
formDirective,
scriptDirective,
selectDirective,
optionDirective,
ngBindDirective,
ngBindHtmlDirective,
ngBindTemplateDirective,
ngClassDirective,
ngClassEvenDirective,
ngClassOddDirective,
ngCloakDirective,
ngControllerDirective,
ngFormDirective,
ngHideDirective,
ngIfDirective,
ngIncludeDirective,
ngIncludeFillContentDirective,
ngInitDirective,
ngNonBindableDirective,
ngPluralizeDirective,
ngRepeatDirective,
ngShowDirective,
ngStyleDirective,
ngSwitchDirective,
ngSwitchWhenDirective,
ngSwitchDefaultDirective,
ngOptionsDirective,
ngTranscludeDirective,
ngModelDirective,
ngListDirective,
ngChangeDirective,
patternDirective,
patternDirective,
requiredDirective,
requiredDirective,
minlengthDirective,
minlengthDirective,
maxlengthDirective,
maxlengthDirective,
ngValueDirective,
ngModelOptionsDirective,
ngAttributeAliasDirectives,
ngEventDirectives,
$AnchorScrollProvider,
$AnimateProvider,
$CoreAnimateCssProvider,
$$CoreAnimateJsProvider,
$$CoreAnimateQueueProvider,
$$AnimateRunnerFactoryProvider,
$$AnimateAsyncRunFactoryProvider,
$BrowserProvider,
$CacheFactoryProvider,
$ControllerProvider,
$DateProvider,
$DocumentProvider,
$$IsDocumentHiddenProvider,
$ExceptionHandlerProvider,
$FilterProvider,
$$ForceReflowProvider,
$InterpolateProvider,
$IntervalProvider,
$HttpProvider,
$HttpParamSerializerProvider,
$HttpParamSerializerJQLikeProvider,
$HttpBackendProvider,
$xhrFactoryProvider,
$jsonpCallbacksProvider,
$LocationProvider,
$LogProvider,
$$MapProvider,
$ParseProvider,
$RootScopeProvider,
$QProvider,
$$QProvider,
$$SanitizeUriProvider,
$SceProvider,
$SceDelegateProvider,
$SnifferProvider,
$TemplateCacheProvider,
$TemplateRequestProvider,
$$TestabilityProvider,
$TimeoutProvider,
$$RAFProvider,
$WindowProvider,
$$jqLiteProvider,
$$CookieReaderProvider
*/
/**
* @ngdoc object
* @name angular.version
* @module ng
* @description
* An object that contains information about the current AngularJS version.
*
* This object has the following properties:
*
* - `full` `{string}` Full version string, such as "0.9.18".
* - `major` `{number}` Major version number, such as "0".
* - `minor` `{number}` Minor version number, such as "9".
* - `dot` `{number}` Dot version number, such as "18".
* - `codeName` `{string}` Code name of the release, such as "jiggling-armfat".
*/
var version = {
// These placeholder strings will be replaced by grunt's `build` task.
// They need to be double- or single-quoted.
full: '1.6.8',
major: 1,
minor: 6,
dot: 8,
codeName: 'beneficial-tincture'
};
function publishExternalAPI(angular) {
extend(angular, {
'errorHandlingConfig': errorHandlingConfig,
'bootstrap': bootstrap,
'copy': copy,
'extend': extend,
'merge': merge,
'equals': equals,
'element': jqLite,
'forEach': forEach,
'injector': createInjector,
'noop': noop,
'bind': bind,
'toJson': toJson,
'fromJson': fromJson,
'identity': identity,
'isUndefined': isUndefined,
'isDefined': isDefined,
'isString': isString,
'isFunction': isFunction,
'isObject': isObject,
'isNumber': isNumber,
'isElement': isElement,
'isArray': isArray,
'version': version,
'isDate': isDate,
'lowercase': lowercase,
'uppercase': uppercase,
'callbacks': { $$counter: 0 },
'getTestability': getTestability,
'reloadWithDebugInfo': reloadWithDebugInfo,
'$$minErr': minErr,
'$$csp': csp,
'$$encodeUriSegment': encodeUriSegment,
'$$encodeUriQuery': encodeUriQuery,
'$$stringify': stringify
});
angularModule = setupModuleLoader(window);
angularModule('ng', ['ngLocale'], ['$provide', function ngModule($provide) {
// $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
$provide.provider({
$$sanitizeUri: $$SanitizeUriProvider
});
$provide.provider('$compile', $CompileProvider).directive({
a: htmlAnchorDirective,
input: inputDirective,
textarea: inputDirective,
form: formDirective,
script: scriptDirective,
select: selectDirective,
option: optionDirective,
ngBind: ngBindDirective,
ngBindHtml: ngBindHtmlDirective,
ngBindTemplate: ngBindTemplateDirective,
ngClass: ngClassDirective,
ngClassEven: ngClassEvenDirective,
ngClassOdd: ngClassOddDirective,
ngCloak: ngCloakDirective,
ngController: ngControllerDirective,
ngForm: ngFormDirective,
ngHide: ngHideDirective,
ngIf: ngIfDirective,
ngInclude: ngIncludeDirective,
ngInit: ngInitDirective,
ngNonBindable: ngNonBindableDirective,
ngPluralize: ngPluralizeDirective,
ngRepeat: ngRepeatDirective,
ngShow: ngShowDirective,
ngStyle: ngStyleDirective,
ngSwitch: ngSwitchDirective,
ngSwitchWhen: ngSwitchWhenDirective,
ngSwitchDefault: ngSwitchDefaultDirective,
ngOptions: ngOptionsDirective,
ngTransclude: ngTranscludeDirective,
ngModel: ngModelDirective,
ngList: ngListDirective,
ngChange: ngChangeDirective,
pattern: patternDirective,
ngPattern: patternDirective,
required: requiredDirective,
ngRequired: requiredDirective,
minlength: minlengthDirective,
ngMinlength: minlengthDirective,
maxlength: maxlengthDirective,
ngMaxlength: maxlengthDirective,
ngValue: ngValueDirective,
ngModelOptions: ngModelOptionsDirective
}).directive({
ngInclude: ngIncludeFillContentDirective
}).directive(ngAttributeAliasDirectives).directive(ngEventDirectives);
$provide.provider({
$anchorScroll: $AnchorScrollProvider,
$animate: $AnimateProvider,
$animateCss: $CoreAnimateCssProvider,
$$animateJs: $$CoreAnimateJsProvider,
$$animateQueue: $$CoreAnimateQueueProvider,
$$AnimateRunner: $$AnimateRunnerFactoryProvider,
$$animateAsyncRun: $$AnimateAsyncRunFactoryProvider,
$browser: $BrowserProvider,
$cacheFactory: $CacheFactoryProvider,
$controller: $ControllerProvider,
$document: $DocumentProvider,
$$isDocumentHidden: $$IsDocumentHiddenProvider,
$exceptionHandler: $ExceptionHandlerProvider,
$filter: $FilterProvider,
$$forceReflow: $$ForceReflowProvider,
$interpolate: $InterpolateProvider,
$interval: $IntervalProvider,
$http: $HttpProvider,
$httpParamSerializer: $HttpParamSerializerProvider,
$httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,
$httpBackend: $HttpBackendProvider,
$xhrFactory: $xhrFactoryProvider,
$jsonpCallbacks: $jsonpCallbacksProvider,
$location: $LocationProvider,
$log: $LogProvider,
$parse: $ParseProvider,
$rootScope: $RootScopeProvider,
$q: $QProvider,
$$q: $$QProvider,
$sce: $SceProvider,
$sceDelegate: $SceDelegateProvider,
$sniffer: $SnifferProvider,
$templateCache: $TemplateCacheProvider,
$templateRequest: $TemplateRequestProvider,
$$testability: $$TestabilityProvider,
$timeout: $TimeoutProvider,
$window: $WindowProvider,
$$rAF: $$RAFProvider,
$$jqLite: $$jqLiteProvider,
$$Map: $$MapProvider,
$$cookieReader: $$CookieReaderProvider
});
}]).info({ angularVersion: '1.6.8' });
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying *
* this file is required. *
* *
* Does the change somehow allow for arbitrary javascript to be executed? *
* Or allows for someone to change the prototype of built-in objects? *
* Or gives undesired access to variables likes document or window? *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* global
JQLitePrototype: true,
BOOLEAN_ATTR: true,
ALIASED_ATTR: true
*/
//////////////////////////////////
//JQLite
//////////////////////////////////
/**
* @ngdoc function
* @name angular.element
* @module ng
* @kind function
*
* @description
* Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
*
* If jQuery is available, `angular.element` is an alias for the
* [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`
* delegates to Angular's built-in subset of jQuery, called "jQuery lite" or **jqLite**.
*
* jqLite is a tiny, API-compatible subset of jQuery that allows
* Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most
* commonly needed functionality with the goal of having a very small footprint.
*
* To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the
* {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a
* specific version of jQuery if multiple versions exist on the page.
*
* <div class="alert alert-info">**Note:** All element references in Angular are always wrapped with jQuery or
* jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.</div>
*
* <div class="alert alert-warning">**Note:** Keep in mind that this function will not find elements
* by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`
* or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>
*
* ## Angular's jqLite
* jqLite provides only the following jQuery methods:
*
* - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument
* - [`after()`](http://api.jquery.com/after/)
* - [`append()`](http://api.jquery.com/append/)
* - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters
* - [`bind()`](http://api.jquery.com/bind/) (_deprecated_, use [`on()`](http://api.jquery.com/on/)) - Does not support namespaces, selectors or eventData
* - [`children()`](http://api.jquery.com/children/) - Does not support selectors
* - [`clone()`](http://api.jquery.com/clone/)
* - [`contents()`](http://api.jquery.com/contents/)
* - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.
* As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.
* - [`data()`](http://api.jquery.com/data/)
* - [`detach()`](http://api.jquery.com/detach/)
* - [`empty()`](http://api.jquery.com/empty/)
* - [`eq()`](http://api.jquery.com/eq/)
* - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name
* - [`hasClass()`](http://api.jquery.com/hasClass/)
* - [`html()`](http://api.jquery.com/html/)
* - [`next()`](http://api.jquery.com/next/) - Does not support selectors
* - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData
* - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter
* - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors
* - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors
* - [`prepend()`](http://api.jquery.com/prepend/)
* - [`prop()`](http://api.jquery.com/prop/)
* - [`ready()`](http://api.jquery.com/ready/) (_deprecated_, use `angular.element(callback)` instead of `angular.element(document).ready(callback)`)
* - [`remove()`](http://api.jquery.com/remove/)
* - [`removeAttr()`](http://api.jquery.com/removeAttr/) - Does not support multiple attributes
* - [`removeClass()`](http://api.jquery.com/removeClass/) - Does not support a function as first argument
* - [`removeData()`](http://api.jquery.com/removeData/)
* - [`replaceWith()`](http://api.jquery.com/replaceWith/)
* - [`text()`](http://api.jquery.com/text/)
* - [`toggleClass()`](http://api.jquery.com/toggleClass/) - Does not support a function as first argument
* - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers
* - [`unbind()`](http://api.jquery.com/unbind/) (_deprecated_, use [`off()`](http://api.jquery.com/off/)) - Does not support namespaces or event object as parameter
* - [`val()`](http://api.jquery.com/val/)
* - [`wrap()`](http://api.jquery.com/wrap/)
*
* ## jQuery/jqLite Extras
* Angular also provides the following additional methods and events to both jQuery and jqLite:
*
* ### Events
* - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event
* on all DOM nodes being removed. This can be used to clean up any 3rd party bindings to the DOM
* element before it is removed.
*
* ### Methods
* - `controller(name)` - retrieves the controller of the current element or its parent. By default
* retrieves controller associated with the `ngController` directive. If `name` is provided as
* camelCase directive name, then the controller for this directive will be retrieved (e.g.
* `'ngModel'`).
* - `injector()` - retrieves the injector of the current element or its parent.
* - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current
* element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to
* be enabled.
* - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the
* current element. This getter should be used only on elements that contain a directive which starts a new isolate
* scope. Calling `scope()` on this element always returns the original non-isolate scope.
* Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.
* - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
* parent element is reached.
*
* @knownIssue You cannot spy on `angular.element` if you are using Jasmine version 1.x. See
* https://github.com/angular/angular.js/issues/14251 for more information.
*
* @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.
* @returns {Object} jQuery object.
*/
JQLite.expando = 'ng339';
var jqCache = JQLite.cache = {},
jqId = 1;
/*
* !!! This is an undocumented "private" function !!!
*/
JQLite._data = function (node) {
//jQuery always returns an object on cache miss
return this.cache[node[this.expando]] || {};
};
function jqNextId() {
return ++jqId;
}
var DASH_LOWERCASE_REGEXP = /-([a-z])/g;
var MS_HACK_REGEXP = /^-ms-/;
var MOUSE_EVENT_MAP = { mouseleave: 'mouseout', mouseenter: 'mouseover' };
var jqLiteMinErr = minErr('jqLite');
/**
* Converts kebab-case to camelCase.
* There is also a special case for the ms prefix starting with a lowercase letter.
* @param name Name to normalize
*/
function cssKebabToCamel(name) {
return kebabToCamel(name.replace(MS_HACK_REGEXP, 'ms-'));
}
function fnCamelCaseReplace(all, letter) {
return letter.toUpperCase();
}
/**
* Converts kebab-case to camelCase.
* @param name Name to normalize
*/
function kebabToCamel(name) {
return name.replace(DASH_LOWERCASE_REGEXP, fnCamelCaseReplace);
}
var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;
var HTML_REGEXP = /<|&#?\w+;/;
var TAG_NAME_REGEXP = /<([\w:-]+)/;
var XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi;
var wrapMap = {
'option': [1, '<select multiple="multiple">', '</select>'],
'thead': [1, '<table>', '</table>'],
'col': [2, '<table><colgroup>', '</colgroup></table>'],
'tr': [2, '<table><tbody>', '</tbody></table>'],
'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],
'_default': [0, '', '']
};
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
function jqLiteIsTextNode(html) {
return !HTML_REGEXP.test(html);
}
function jqLiteAcceptsData(node) {
// The window object can accept data but has no nodeType
// Otherwise we are only interested in elements (1) and documents (9)
var nodeType = node.nodeType;
return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;
}
function jqLiteHasData(node) {
for (var key in jqCache[node.ng339]) {
return true;
}
return false;
}
function jqLiteBuildFragment(html, context) {
var tmp,
tag,
wrap,
fragment = context.createDocumentFragment(),
nodes = [],
i;
if (jqLiteIsTextNode(html)) {
// Convert non-html into a text node
nodes.push(context.createTextNode(html));
} else {
// Convert html into DOM nodes
tmp = fragment.appendChild(context.createElement('div'));
tag = (TAG_NAME_REGEXP.exec(html) || ['', ''])[1].toLowerCase();
wrap = wrapMap[tag] || wrapMap._default;
tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, '<$1></$2>') + wrap[2];
// Descend through wrappers to the right content
i = wrap[0];
while (i--) {
tmp = tmp.lastChild;
}
nodes = concat(nodes, tmp.childNodes);
tmp = fragment.firstChild;
tmp.textContent = '';
}
// Remove wrapper from fragment
fragment.textContent = '';
fragment.innerHTML = ''; // Clear inner HTML
forEach(nodes, function (node) {
fragment.appendChild(node);
});
return fragment;
}
function jqLiteParseHTML(html, context) {
context = context || window.document;
var parsed;
if (parsed = SINGLE_TAG_REGEXP.exec(html)) {
return [context.createElement(parsed[1])];
}
if (parsed = jqLiteBuildFragment(html, context)) {
return parsed.childNodes;
}
return [];
}
function jqLiteWrapNode(node, wrapper) {
var parent = node.parentNode;
if (parent) {
parent.replaceChild(wrapper, node);
}
wrapper.appendChild(node);
}
// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
var jqLiteContains = window.Node.prototype.contains || /** @this */function (arg) {
// eslint-disable-next-line no-bitwise
return !!(this.compareDocumentPosition(arg) & 16);
};
/////////////////////////////////////////////
function JQLite(element) {
if (element instanceof JQLite) {
return element;
}
var argIsString;
if (isString(element)) {
element = trim(element);
argIsString = true;
}
if (!(this instanceof JQLite)) {
if (argIsString && element.charAt(0) !== '<') {
throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
}
return new JQLite(element);
}
if (argIsString) {
jqLiteAddNodes(this, jqLiteParseHTML(element));
} else if (isFunction(element)) {
jqLiteReady(element);
} else {
jqLiteAddNodes(this, element);
}
}
function jqLiteClone(element) {
return element.cloneNode(true);
}
function jqLiteDealoc(element, onlyDescendants) {
if (!onlyDescendants && jqLiteAcceptsData(element)) jqLite.cleanData([element]);
if (element.querySelectorAll) {
jqLite.cleanData(element.querySelectorAll('*'));
}
}
function jqLiteOff(element, type, fn, unsupported) {
if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');
var expandoStore = jqLiteExpandoStore(element);
var events = expandoStore && expandoStore.events;
var handle = expandoStore && expandoStore.handle;
if (!handle) return; //no listeners registered
if (!type) {
for (type in events) {
if (type !== '$destroy') {
element.removeEventListener(type, handle);
}
delete events[type];
}
} else {
var removeHandler = function removeHandler(type) {
var listenerFns = events[type];
if (isDefined(fn)) {
arrayRemove(listenerFns || [], fn);
}
if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {
element.removeEventListener(type, handle);
delete events[type];
}
};
forEach(type.split(' '), function (type) {
removeHandler(type);
if (MOUSE_EVENT_MAP[type]) {
removeHandler(MOUSE_EVENT_MAP[type]);
}
});
}
}
function jqLiteRemoveData(element, name) {
var expandoId = element.ng339;
var expandoStore = expandoId && jqCache[expandoId];
if (expandoStore) {
if (name) {
delete expandoStore.data[name];
return;
}
if (expandoStore.handle) {
if (expandoStore.events.$destroy) {
expandoStore.handle({}, '$destroy');
}
jqLiteOff(element);
}
delete jqCache[expandoId];
element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
}
}
function jqLiteExpandoStore(element, createIfNecessary) {
var expandoId = element.ng339,
expandoStore = expandoId && jqCache[expandoId];
if (createIfNecessary && !expandoStore) {
element.ng339 = expandoId = jqNextId();
expandoStore = jqCache[expandoId] = { events: {}, data: {}, handle: undefined };
}
return expandoStore;
}
function jqLiteData(element, key, value) {
if (jqLiteAcceptsData(element)) {
var prop;
var isSimpleSetter = isDefined(value);
var isSimpleGetter = !isSimpleSetter && key && !isObject(key);
var massGetter = !key;
var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);
var data = expandoStore && expandoStore.data;
if (isSimpleSetter) {
// data('key', value)
data[kebabToCamel(key)] = value;
} else {
if (massGetter) {
// data()
return data;
} else {
if (isSimpleGetter) {
// data('key')
// don't force creation of expandoStore if it doesn't exist yet
return data && data[kebabToCamel(key)];
} else {
// mass-setter: data({key1: val1, key2: val2})
for (prop in key) {
data[kebabToCamel(prop)] = key[prop];
}
}
}
}
}
}
function jqLiteHasClass(element, selector) {
if (!element.getAttribute) return false;
return (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ').indexOf(' ' + selector + ' ') > -1;
}
function jqLiteRemoveClass(element, cssClasses) {
if (cssClasses && element.setAttribute) {
var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ');
var newClasses = existingClasses;
forEach(cssClasses.split(' '), function (cssClass) {
cssClass = trim(cssClass);
newClasses = newClasses.replace(' ' + cssClass + ' ', ' ');
});
if (newClasses !== existingClasses) {
element.setAttribute('class', trim(newClasses));
}
}
}
function jqLiteAddClass(element, cssClasses) {
if (cssClasses && element.setAttribute) {
var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ');
var newClasses = existingClasses;
forEach(cssClasses.split(' '), function (cssClass) {
cssClass = trim(cssClass);
if (newClasses.indexOf(' ' + cssClass + ' ') === -1) {
newClasses += cssClass + ' ';
}
});
if (newClasses !== existingClasses) {
element.setAttribute('class', trim(newClasses));
}
}
}
function jqLiteAddNodes(root, elements) {
// THIS CODE IS VERY HOT. Don't make changes without benchmarking.
if (elements) {
// if a Node (the most common case)
if (elements.nodeType) {
root[root.length++] = elements;
} else {
var length = elements.length;
// if an Array or NodeList and not a Window
if (typeof length === 'number' && elements.window !== elements) {
if (length) {
for (var i = 0; i < length; i++) {
root[root.length++] = elements[i];
}
}
} else {
root[root.length++] = elements;
}
}
}
}
function jqLiteController(element, name) {
return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');
}
function jqLiteInheritedData(element, name, value) {
// if element is the document object work with the html element instead
// this makes $(document).scope() possible
if (element.nodeType === NODE_TYPE_DOCUMENT) {
element = element.documentElement;
}
var names = isArray(name) ? name : [name];
while (element) {
for (var i = 0, ii = names.length; i < ii; i++) {
if (isDefined(value = jqLite.data(element, names[i]))) return value;
}
// If dealing with a document fragment node with a host element, and no parent, use the host
// element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM
// to lookup parent controllers.
element = element.parentNode || element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host;
}
}
function jqLiteEmpty(element) {
jqLiteDealoc(element, true);
while (element.firstChild) {
element.removeChild(element.firstChild);
}
}
function jqLiteRemove(element, keepData) {
if (!keepData) jqLiteDealoc(element);
var parent = element.parentNode;
if (parent) parent.removeChild(element);
}
function jqLiteDocumentLoaded(action, win) {
win = win || window;
if (win.document.readyState === 'complete') {
// Force the action to be run async for consistent behavior
// from the action's point of view
// i.e. it will definitely not be in a $apply
win.setTimeout(action);
} else {
// No need to unbind this handler as load is only ever called once
jqLite(win).on('load', action);
}
}
function jqLiteReady(fn) {
function trigger() {
window.document.removeEventListener('DOMContentLoaded', trigger);
window.removeEventListener('load', trigger);
fn();
}
// check if document is already loaded
if (window.document.readyState === 'complete') {
window.setTimeout(fn);
} else {
// We can not use jqLite since we are not done loading and jQuery could be loaded later.
// Works for modern browsers and IE9
window.document.addEventListener('DOMContentLoaded', trigger);
// Fallback to window.onload for others
window.addEventListener('load', trigger);
}
}
//////////////////////////////////////////
// Functions which are declared directly.
//////////////////////////////////////////
var JQLitePrototype = JQLite.prototype = {
ready: jqLiteReady,
toString: function toString() {
var value = [];
forEach(this, function (e) {
value.push('' + e);
});
return '[' + value.join(', ') + ']';
},
eq: function eq(index) {
return index >= 0 ? jqLite(this[index]) : jqLite(this[this.length + index]);
},
length: 0,
push: push,
sort: [].sort,
splice: [].splice
};
//////////////////////////////////////////
// Functions iterating getter/setters.
// these functions return self on setter and
// value on get.
//////////////////////////////////////////
var BOOLEAN_ATTR = {};
forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function (value) {
BOOLEAN_ATTR[lowercase(value)] = value;
});
var BOOLEAN_ELEMENTS = {};
forEach('input,select,option,textarea,button,form,details'.split(','), function (value) {
BOOLEAN_ELEMENTS[value] = true;
});
var ALIASED_ATTR = {
'ngMinlength': 'minlength',
'ngMaxlength': 'maxlength',
'ngMin': 'min',
'ngMax': 'max',
'ngPattern': 'pattern',
'ngStep': 'step'
};
function getBooleanAttrName(element, name) {
// check dom last since we will most likely fail on name
var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
// booleanAttr is here twice to minimize DOM access
return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
}
function getAliasedAttrName(name) {
return ALIASED_ATTR[name];
}
forEach({
data: jqLiteData,
removeData: jqLiteRemoveData,
hasData: jqLiteHasData,
cleanData: function jqLiteCleanData(nodes) {
for (var i = 0, ii = nodes.length; i < ii; i++) {
jqLiteRemoveData(nodes[i]);
}
}
}, function (fn, name) {
JQLite[name] = fn;
});
forEach({
data: jqLiteData,
inheritedData: jqLiteInheritedData,
scope: function scope(element) {
// Can't use jqLiteData here directly so we stay compatible with jQuery!
return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);
},
isolateScope: function isolateScope(element) {
// Can't use jqLiteData here directly so we stay compatible with jQuery!
return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');
},
controller: jqLiteController,
injector: function injector(element) {
return jqLiteInheritedData(element, '$injector');
},
removeAttr: function removeAttr(element, name) {
element.removeAttribute(name);
},
hasClass: jqLiteHasClass,
css: function css(element, name, value) {
name = cssKebabToCamel(name);
if (isDefined(value)) {
element.style[name] = value;
} else {
return element.style[name];
}
},
attr: function attr(element, name, value) {
var ret;
var nodeType = element.nodeType;
if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT || !element.getAttribute) {
return;
}
var lowercasedName = lowercase(name);
var isBooleanAttr = BOOLEAN_ATTR[lowercasedName];
if (isDefined(value)) {
// setter
if (value === null || value === false && isBooleanAttr) {
element.removeAttribute(name);
} else {
element.setAttribute(name, isBooleanAttr ? lowercasedName : value);
}
} else {
// getter
ret = element.getAttribute(name);
if (isBooleanAttr && ret !== null) {
ret = lowercasedName;
}
// Normalize non-existing attributes to undefined (as jQuery).
return ret === null ? undefined : ret;
}
},
prop: function prop(element, name, value) {
if (isDefined(value)) {
element[name] = value;
} else {
return element[name];
}
},
text: function () {
getText.$dv = '';
return getText;
function getText(element, value) {
if (isUndefined(value)) {
var nodeType = element.nodeType;
return nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT ? element.textContent : '';
}
element.textContent = value;
}
}(),
val: function val(element, value) {
if (isUndefined(value)) {
if (element.multiple && nodeName_(element) === 'select') {
var result = [];
forEach(element.options, function (option) {
if (option.selected) {
result.push(option.value || option.text);
}
});
return result;
}
return element.value;
}
element.value = value;
},
html: function html(element, value) {
if (isUndefined(value)) {
return element.innerHTML;
}
jqLiteDealoc(element, true);
element.innerHTML = value;
},
empty: jqLiteEmpty
}, function (fn, name) {
/**
* Properties: writes return selection, reads return first value
*/
JQLite.prototype[name] = function (arg1, arg2) {
var i, key;
var nodeCount = this.length;
// jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it
// in a way that survives minification.
// jqLiteEmpty takes no arguments but is a setter.
if (fn !== jqLiteEmpty && isUndefined(fn.length === 2 && fn !== jqLiteHasClass && fn !== jqLiteController ? arg1 : arg2)) {
if (isObject(arg1)) {
// we are a write, but the object properties are the key/values
for (i = 0; i < nodeCount; i++) {
if (fn === jqLiteData) {
// data() takes the whole object in jQuery
fn(this[i], arg1);
} else {
for (key in arg1) {
fn(this[i], key, arg1[key]);
}
}
}
// return self for chaining
return this;
} else {
// we are a read, so read the first child.
// TODO: do we still need this?
var value = fn.$dv;
// Only if we have $dv do we iterate over all, otherwise it is just the first element.
var jj = isUndefined(value) ? Math.min(nodeCount, 1) : nodeCount;
for (var j = 0; j < jj; j++) {
var nodeValue = fn(this[j], arg1, arg2);
value = value ? value + nodeValue : nodeValue;
}
return value;
}
} else {
// we are a write, so apply to all children
for (i = 0; i < nodeCount; i++) {
fn(this[i], arg1, arg2);
}
// return self for chaining
return this;
}
};
});
function createEventHandler(element, events) {
var eventHandler = function eventHandler(event, type) {
// jQuery specific api
event.isDefaultPrevented = function () {
return event.defaultPrevented;
};
var eventFns = events[type || event.type];
var eventFnsLength = eventFns ? eventFns.length : 0;
if (!eventFnsLength) return;
if (isUndefined(event.immediatePropagationStopped)) {
var originalStopImmediatePropagation = event.stopImmediatePropagation;
event.stopImmediatePropagation = function () {
event.immediatePropagationStopped = true;
if (event.stopPropagation) {
event.stopPropagation();
}
if (originalStopImmediatePropagation) {
originalStopImmediatePropagation.call(event);
}
};
}
event.isImmediatePropagationStopped = function () {
return event.immediatePropagationStopped === true;
};
// Some events have special handlers that wrap the real handler
var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;
// Copy event handlers in case event handlers array is modified during execution.
if (eventFnsLength > 1) {
eventFns = shallowCopy(eventFns);
}
for (var i = 0; i < eventFnsLength; i++) {
if (!event.isImmediatePropagationStopped()) {
handlerWrapper(element, event, eventFns[i]);
}
}
};
// TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all
// events on `element`
eventHandler.elem = element;
return eventHandler;
}
function defaultHandlerWrapper(element, event, handler) {
handler.call(element, event);
}
function specialMouseHandlerWrapper(target, event, handler) {
// Refer to jQuery's implementation of mouseenter & mouseleave
// Read about mouseenter and mouseleave:
// http://www.quirksmode.org/js/events_mouse.html#link8
var related = event.relatedTarget;
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if (!related || related !== target && !jqLiteContains.call(target, related)) {
handler.call(target, event);
}
}
//////////////////////////////////////////
// Functions iterating traversal.
// These functions chain results into a single
// selector.
//////////////////////////////////////////
forEach({
removeData: jqLiteRemoveData,
on: function jqLiteOn(element, type, fn, unsupported) {
if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
// Do not add event handlers to non-elements because they will not be cleaned up.
if (!jqLiteAcceptsData(element)) {
return;
}
var expandoStore = jqLiteExpandoStore(element, true);
var events = expandoStore.events;
var handle = expandoStore.handle;
if (!handle) {
handle = expandoStore.handle = createEventHandler(element, events);
}
// http://jsperf.com/string-indexof-vs-split
var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];
var i = types.length;
var addHandler = function addHandler(type, specialHandlerWrapper, noEventListener) {
var eventFns = events[type];
if (!eventFns) {
eventFns = events[type] = [];
eventFns.specialHandlerWrapper = specialHandlerWrapper;
if (type !== '$destroy' && !noEventListener) {
element.addEventListener(type, handle);
}
}
eventFns.push(fn);
};
while (i--) {
type = types[i];
if (MOUSE_EVENT_MAP[type]) {
addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);
addHandler(type, undefined, true);
} else {
addHandler(type);
}
}
},
off: jqLiteOff,
one: function one(element, type, fn) {
element = jqLite(element);
//add the listener twice so that when it is called
//you can remove the original function and still be
//able to call element.off(ev, fn) normally
element.on(type, function onFn() {
element.off(type, fn);
element.off(type, onFn);
});
element.on(type, fn);
},
replaceWith: function replaceWith(element, replaceNode) {
var index,
parent = element.parentNode;
jqLiteDealoc(element);
forEach(new JQLite(replaceNode), function (node) {
if (index) {
parent.insertBefore(node, index.nextSibling);
} else {
parent.replaceChild(node, element);
}
index = node;
});
},
children: function children(element) {
var children = [];
forEach(element.childNodes, function (element) {
if (element.nodeType === NODE_TYPE_ELEMENT) {
children.push(element);
}
});
return children;
},
contents: function contents(element) {
return element.contentDocument || element.childNodes || [];
},
append: function append(element, node) {
var nodeType = element.nodeType;
if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;
node = new JQLite(node);
for (var i = 0, ii = node.length; i < ii; i++) {
var child = node[i];
element.appendChild(child);
}
},
prepend: function prepend(element, node) {
if (element.nodeType === NODE_TYPE_ELEMENT) {
var index = element.firstChild;
forEach(new JQLite(node), function (child) {
element.insertBefore(child, index);
});
}
},
wrap: function wrap(element, wrapNode) {
jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]);
},
remove: jqLiteRemove,
detach: function detach(element) {
jqLiteRemove(element, true);
},
after: function after(element, newElement) {
var index = element,
parent = element.parentNode;
if (parent) {
newElement = new JQLite(newElement);
for (var i = 0, ii = newElement.length; i < ii; i++) {
var node = newElement[i];
parent.insertBefore(node, index.nextSibling);
index = node;
}
}
},
addClass: jqLiteAddClass,
removeClass: jqLiteRemoveClass,
toggleClass: function toggleClass(element, selector, condition) {
if (selector) {
forEach(selector.split(' '), function (className) {
var classCondition = condition;
if (isUndefined(classCondition)) {
classCondition = !jqLiteHasClass(element, className);
}
(classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);
});
}
},
parent: function parent(element) {
var parent = element.parentNode;
return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;
},
next: function next(element) {
return element.nextElementSibling;
},
find: function find(element, selector) {
if (element.getElementsByTagName) {
return element.getElementsByTagName(selector);
} else {
return [];
}
},
clone: jqLiteClone,
triggerHandler: function triggerHandler(element, event, extraParameters) {
var dummyEvent, eventFnsCopy, handlerArgs;
var eventName = event.type || event;
var expandoStore = jqLiteExpandoStore(element);
var events = expandoStore && expandoStore.events;
var eventFns = events && events[eventName];
if (eventFns) {
// Create a dummy event to pass to the handlers
dummyEvent = {
preventDefault: function preventDefault() {
this.defaultPrevented = true;
},
isDefaultPrevented: function isDefaultPrevented() {
return this.defaultPrevented === true;
},
stopImmediatePropagation: function stopImmediatePropagation() {
this.immediatePropagationStopped = true;
},
isImmediatePropagationStopped: function isImmediatePropagationStopped() {
return this.immediatePropagationStopped === true;
},
stopPropagation: noop,
type: eventName,
target: element
};
// If a custom event was provided then extend our dummy event with it
if (event.type) {
dummyEvent = extend(dummyEvent, event);
}
// Copy event handlers in case event handlers array is modified during execution.
eventFnsCopy = shallowCopy(eventFns);
handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];
forEach(eventFnsCopy, function (fn) {
if (!dummyEvent.isImmediatePropagationStopped()) {
fn.apply(element, handlerArgs);
}
});
}
}
}, function (fn, name) {
/**
* chaining functions
*/
JQLite.prototype[name] = function (arg1, arg2, arg3) {
var value;
for (var i = 0, ii = this.length; i < ii; i++) {
if (isUndefined(value)) {
value = fn(this[i], arg1, arg2, arg3);
if (isDefined(value)) {
// any function which returns a value needs to be wrapped
value = jqLite(value);
}
} else {
jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));
}
}
return isDefined(value) ? value : this;
};
});
// bind legacy bind/unbind to on/off
JQLite.prototype.bind = JQLite.prototype.on;
JQLite.prototype.unbind = JQLite.prototype.off;
// Provider for private $$jqLite service
/** @this */
function $$jqLiteProvider() {
this.$get = function $$jqLite() {
return extend(JQLite, {
hasClass: function hasClass(node, classes) {
if (node.attr) node = node[0];
return jqLiteHasClass(node, classes);
},
addClass: function addClass(node, classes) {
if (node.attr) node = node[0];
return jqLiteAddClass(node, classes);
},
removeClass: function removeClass(node, classes) {
if (node.attr) node = node[0];
return jqLiteRemoveClass(node, classes);
}
});
};
}
/**
* Computes a hash of an 'obj'.
* Hash of a:
* string is string
* number is number as string
* object is either result of calling $$hashKey function on the object or uniquely generated id,
* that is also assigned to the $$hashKey property of the object.
*
* @param obj
* @returns {string} hash string such that the same input will have the same hash string.
* The resulting string key is in 'type:hashKey' format.
*/
function hashKey(obj, nextUidFn) {
var key = obj && obj.$$hashKey;
if (key) {
if (typeof key === 'function') {
key = obj.$$hashKey();
}
return key;
}
var objType = typeof obj === 'undefined' ? 'undefined' : _typeof(obj);
if (objType === 'function' || objType === 'object' && obj !== null) {
key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();
} else {
key = objType + ':' + obj;
}
return key;
}
// A minimal ES2015 Map implementation.
// Should be bug/feature equivalent to the native implementations of supported browsers
// (for the features required in Angular).
// See https://kangax.github.io/compat-table/es6/#test-Map
var nanKey = Object.create(null);
function NgMapShim() {
this._keys = [];
this._values = [];
this._lastKey = NaN;
this._lastIndex = -1;
}
NgMapShim.prototype = {
_idx: function _idx(key) {
if (key === this._lastKey) {
return this._lastIndex;
}
this._lastKey = key;
this._lastIndex = this._keys.indexOf(key);
return this._lastIndex;
},
_transformKey: function _transformKey(key) {
return isNumberNaN(key) ? nanKey : key;
},
get: function get(key) {
key = this._transformKey(key);
var idx = this._idx(key);
if (idx !== -1) {
return this._values[idx];
}
},
set: function set(key, value) {
key = this._transformKey(key);
var idx = this._idx(key);
if (idx === -1) {
idx = this._lastIndex = this._keys.length;
}
this._keys[idx] = key;
this._values[idx] = value;
// Support: IE11
// Do not `return this` to simulate the partial IE11 implementation
},
delete: function _delete(key) {
key = this._transformKey(key);
var idx = this._idx(key);
if (idx === -1) {
return false;
}
this._keys.splice(idx, 1);
this._values.splice(idx, 1);
this._lastKey = NaN;
this._lastIndex = -1;
return true;
}
};
// For now, always use `NgMapShim`, even if `window.Map` is available. Some native implementations
// are still buggy (often in subtle ways) and can cause hard-to-debug failures. When native `Map`
// implementations get more stable, we can reconsider switching to `window.Map` (when available).
var NgMap = NgMapShim;
var $$MapProvider = [/** @this */function () {
this.$get = [function () {
return NgMap;
}];
}];
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @kind function
*
* @description
* Creates an injector object that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A list of module functions or their aliases. See
* {@link angular.module}. The `ng` module must be explicitly added.
* @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which
* disallows argument name annotation inference.
* @returns {injector} Injector object. See {@link auto.$injector $injector}.
*
* @example
* Typical usage
* ```js
* // create an injector
* var $injector = angular.injector(['ng']);
*
* // use the injector to kick off your application
* // use the type inference to auto inject arguments, or use implicit injection
* $injector.invoke(function($rootScope, $compile, $document) {
* $compile($document)($rootScope);
* $rootScope.$digest();
* });
* ```
*
* Sometimes you want to get access to the injector of a currently running Angular app
* from outside Angular. Perhaps, you want to inject and compile some markup after the
* application has been bootstrapped. You can do this using the extra `injector()` added
* to JQuery/jqLite elements. See {@link angular.element}.
*
* *This is fairly rare but could be the case if a third party library is injecting the
* markup.*
*
* In the following example a new block of HTML containing a `ng-controller`
* directive is added to the end of the document body by JQuery. We then compile and link
* it into the current AngularJS scope.
*
* ```js
* var $div = $('<div ng-controller="MyCtrl">{{content.label}}</div>');
* $(document.body).append($div);
*
* angular.element(document).injector().invoke(function($compile) {
* var scope = angular.element($div).scope();
* $compile($div)(scope);
* });
* ```
*/
/**
* @ngdoc module
* @name auto
* @installation
* @description
*
* Implicit module which gets automatically added to each {@link auto.$injector $injector}.
*/
var ARROW_ARG = /^([^(]+?)=>/;
var FN_ARGS = /^[^(]*\(\s*([^)]*)\)/m;
var FN_ARG_SPLIT = /,/;
var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/;
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var $injectorMinErr = minErr('$injector');
function stringifyFn(fn) {
return Function.prototype.toString.call(fn);
}
function extractArgs(fn) {
var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''),
args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);
return args;
}
function anonFn(fn) {
// For anonymous functions, showing at the very least the function signature can help in
// debugging.
var args = extractArgs(fn);
if (args) {
return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
}
return 'fn';
}
function annotate(fn, strictDi, name) {
var $inject, argDecl, last;
if (typeof fn === 'function') {
if (!($inject = fn.$inject)) {
$inject = [];
if (fn.length) {
if (strictDi) {
if (!isString(name) || !name) {
name = fn.name || anonFn(fn);
}
throw $injectorMinErr('strictdi', '{0} is not using explicit annotation and cannot be invoked in strict mode', name);
}
argDecl = extractArgs(fn);
forEach(argDecl[1].split(FN_ARG_SPLIT), function (arg) {
arg.replace(FN_ARG, function (all, underscore, name) {
$inject.push(name);
});
});
}
fn.$inject = $inject;
}
} else if (isArray(fn)) {
last = fn.length - 1;
assertArgFn(fn[last], 'fn');
$inject = fn.slice(0, last);
} else {
assertArgFn(fn, 'fn', true);
}
return $inject;
}
///////////////////////////////////////
/**
* @ngdoc service
* @name $injector
*
* @description
*
* `$injector` is used to retrieve object instances as defined by
* {@link auto.$provide provider}, instantiate types, invoke methods,
* and load modules.
*
* The following always holds true:
*
* ```js
* var $injector = angular.injector();
* expect($injector.get('$injector')).toBe($injector);
* expect($injector.invoke(function($injector) {
* return $injector;
* })).toBe($injector);
* ```
*
* ## Injection Function Annotation
*
* JavaScript does not have annotations, and annotations are needed for dependency injection. The
* following are all valid ways of annotating function with injection arguments and are equivalent.
*
* ```js
* // inferred (only works if code not minified/obfuscated)
* $injector.invoke(function(serviceA){});
*
* // annotated
* function explicit(serviceA) {};
* explicit.$inject = ['serviceA'];
* $injector.invoke(explicit);
*
* // inline
* $injector.invoke(['serviceA', function(serviceA){}]);
* ```
*
* ### Inference
*
* In JavaScript calling `toString()` on a function returns the function definition. The definition
* can then be parsed and the function arguments can be extracted. This method of discovering
* annotations is disallowed when the injector is in strict mode.
* *NOTE:* This does not work with minification, and obfuscation tools since these tools change the
* argument names.
*
* ### `$inject` Annotation
* By adding an `$inject` property onto a function the injection parameters can be specified.
*
* ### Inline
* As an array of injection names, where the last item in the array is the function to call.
*/
/**
* @ngdoc property
* @name $injector#modules
* @type {Object}
* @description
* A hash containing all the modules that have been loaded into the
* $injector.
*
* You can use this property to find out information about a module via the
* {@link angular.Module#info `myModule.info(...)`} method.
*
* For example:
*
* ```
* var info = $injector.modules['ngAnimate'].info();
* ```
*
* **Do not use this property to attempt to modify the modules after the application
* has been bootstrapped.**
*/
/**
* @ngdoc method
* @name $injector#get
*
* @description
* Return an instance of the service.
*
* @param {string} name The name of the instance to retrieve.
* @param {string=} caller An optional string to provide the origin of the function call for error messages.
* @return {*} The instance.
*/
/**
* @ngdoc method
* @name $injector#invoke
*
* @description
* Invoke the method and supply the method arguments from the `$injector`.
*
* @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are
* injected according to the {@link guide/di $inject Annotation} rules.
* @param {Object=} self The `this` for the invoked method.
* @param {Object=} locals Optional object. If preset then any argument names are read from this
* object first, before the `$injector` is consulted.
* @returns {*} the value returned by the invoked `fn` function.
*/
/**
* @ngdoc method
* @name $injector#has
*
* @description
* Allows the user to query if the particular service exists.
*
* @param {string} name Name of the service to query.
* @returns {boolean} `true` if injector has given service.
*/
/**
* @ngdoc method
* @name $injector#instantiate
* @description
* Create a new instance of JS type. The method takes a constructor function, invokes the new
* operator, and supplies all of the arguments to the constructor function as specified by the
* constructor annotation.
*
* @param {Function} Type Annotated constructor function.
* @param {Object=} locals Optional object. If preset then any argument names are read from this
* object first, before the `$injector` is consulted.
* @returns {Object} new instance of `Type`.
*/
/**
* @ngdoc method
* @name $injector#annotate
*
* @description
* Returns an array of service names which the function is requesting for injection. This API is
* used by the injector to determine which services need to be injected into the function when the
* function is invoked. There are three ways in which the function can be annotated with the needed
* dependencies.
*
* #### Argument names
*
* The simplest form is to extract the dependencies from the arguments of the function. This is done
* by converting the function into a string using `toString()` method and extracting the argument
* names.
* ```js
* // Given
* function MyController($scope, $route) {
* // ...
* }
*
* // Then
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
* ```
*
* You can disallow this method by using strict injection mode.
*
* This method does not work with code minification / obfuscation. For this reason the following
* annotation strategies are supported.
*
* #### The `$inject` property
*
* If a function has an `$inject` property and its value is an array of strings, then the strings
* represent names of services to be injected into the function.
* ```js
* // Given
* var MyController = function(obfuscatedScope, obfuscatedRoute) {
* // ...
* }
* // Define function dependencies
* MyController['$inject'] = ['$scope', '$route'];
*
* // Then
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
* ```
*
* #### The array notation
*
* It is often desirable to inline Injected functions and that's when setting the `$inject` property
* is very inconvenient. In these situations using the array notation to specify the dependencies in
* a way that survives minification is a better choice:
*
* ```js
* // We wish to write this (not minification / obfuscation safe)
* injector.invoke(function($compile, $rootScope) {
* // ...
* });
*
* // We are forced to write break inlining
* var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {
* // ...
* };
* tmpFn.$inject = ['$compile', '$rootScope'];
* injector.invoke(tmpFn);
*
* // To better support inline function the inline annotation is supported
* injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
* // ...
* }]);
*
* // Therefore
* expect(injector.annotate(
* ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])
* ).toEqual(['$compile', '$rootScope']);
* ```
*
* @param {Function|Array.<string|Function>} fn Function for which dependent service names need to
* be retrieved as described above.
*
* @param {boolean=} [strictDi=false] Disallow argument name annotation inference.
*
* @returns {Array.<string>} The names of the services which the function requires.
*/
/**
* @ngdoc method
* @name $injector#loadNewModules
*
* @description
*
* **This is a dangerous API, which you use at your own risk!**
*
* Add the specified modules to the current injector.
*
* This method will add each of the injectables to the injector and execute all of the config and run
* blocks for each module passed to the method.
*
* If a module has already been loaded into the injector then it will not be loaded again.
*
* * The application developer is responsible for loading the code containing the modules; and for
* ensuring that lazy scripts are not downloaded and executed more often that desired.
* * Previously compiled HTML will not be affected by newly loaded directives, filters and components.
* * Modules cannot be unloaded.
*
* You can use {@link $injector#modules `$injector.modules`} to check whether a module has been loaded
* into the injector, which may indicate whether the script has been executed already.
*
* @example
* Here is an example of loading a bundle of modules, with a utility method called `getScript`:
*
* ```javascript
* app.factory('loadModule', function($injector) {
* return function loadModule(moduleName, bundleUrl) {
* return getScript(bundleUrl).then(function() { $injector.loadNewModules([moduleName]); });
* };
* })
* ```
*
* @param {Array<String|Function|Array>=} mods an array of modules to load into the application.
* Each item in the array should be the name of a predefined module or a (DI annotated)
* function that will be invoked by the injector as a `config` block.
* See: {@link angular.module modules}
*/
/**
* @ngdoc service
* @name $provide
*
* @description
*
* The {@link auto.$provide $provide} service has a number of methods for registering components
* with the {@link auto.$injector $injector}. Many of these functions are also exposed on
* {@link angular.Module}.
*
* An Angular **service** is a singleton object created by a **service factory**. These **service
* factories** are functions which, in turn, are created by a **service provider**.
* The **service providers** are constructor functions. When instantiated they must contain a
* property called `$get`, which holds the **service factory** function.
*
* When you request a service, the {@link auto.$injector $injector} is responsible for finding the
* correct **service provider**, instantiating it and then calling its `$get` **service factory**
* function to get the instance of the **service**.
*
* Often services have no configuration options and there is no need to add methods to the service
* provider. The provider will be no more than a constructor function with a `$get` property. For
* these cases the {@link auto.$provide $provide} service has additional helper methods to register
* services without specifying a provider.
*
* * {@link auto.$provide#provider provider(name, provider)} - registers a **service provider** with the
* {@link auto.$injector $injector}
* * {@link auto.$provide#constant constant(name, obj)} - registers a value/object that can be accessed by
* providers and services.
* * {@link auto.$provide#value value(name, obj)} - registers a value/object that can only be accessed by
* services, not providers.
* * {@link auto.$provide#factory factory(name, fn)} - registers a service **factory function**
* that will be wrapped in a **service provider** object, whose `$get` property will contain the
* given factory function.
* * {@link auto.$provide#service service(name, Fn)} - registers a **constructor function**
* that will be wrapped in a **service provider** object, whose `$get` property will instantiate
* a new object using the given constructor function.
* * {@link auto.$provide#decorator decorator(name, decorFn)} - registers a **decorator function** that
* will be able to modify or replace the implementation of another service.
*
* See the individual methods for more information and examples.
*/
/**
* @ngdoc method
* @name $provide#provider
* @description
*
* Register a **provider function** with the {@link auto.$injector $injector}. Provider functions
* are constructor functions, whose instances are responsible for "providing" a factory for a
* service.
*
* Service provider names start with the name of the service they provide followed by `Provider`.
* For example, the {@link ng.$log $log} service has a provider called
* {@link ng.$logProvider $logProvider}.
*
* Service provider objects can have additional methods which allow configuration of the provider
* and its service. Importantly, you can configure what kind of service is created by the `$get`
* method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a
* method {@link ng.$logProvider#debugEnabled debugEnabled}
* which lets you specify whether the {@link ng.$log $log} service will log debug messages to the
* console or not.
*
* @param {string} name The name of the instance. NOTE: the provider will be available under `name +
'Provider'` key.
* @param {(Object|function())} provider If the provider is:
*
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
* {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.
* - `Constructor`: a new instance of the provider will be created using
* {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.
*
* @returns {Object} registered provider instance
* @example
*
* The following example shows how to create a simple event tracking service and register it using
* {@link auto.$provide#provider $provide.provider()}.
*
* ```js
* // Define the eventTracker provider
* function EventTrackerProvider() {
* var trackingUrl = '/track';
*
* // A provider method for configuring where the tracked events should been saved
* this.setTrackingUrl = function(url) {
* trackingUrl = url;
* };
*
* // The service factory function
* this.$get = ['$http', function($http) {
* var trackedEvents = {};
* return {
* // Call this to track an event
* event: function(event) {
* var count = trackedEvents[event] || 0;
* count += 1;
* trackedEvents[event] = count;
* return count;
* },
* // Call this to save the tracked events to the trackingUrl
* save: function() {
* $http.post(trackingUrl, trackedEvents);
* }
* };
* }];
* }
*
* describe('eventTracker', function() {
* var postSpy;
*
* beforeEach(module(function($provide) {
* // Register the eventTracker provider
* $provide.provider('eventTracker', EventTrackerProvider);
* }));
*
* beforeEach(module(function(eventTrackerProvider) {
* // Configure eventTracker provider
* eventTrackerProvider.setTrackingUrl('/custom-track');
* }));
*
* it('tracks events', inject(function(eventTracker) {
* expect(eventTracker.event('login')).toEqual(1);
* expect(eventTracker.event('login')).toEqual(2);
* }));
*
* it('saves to the tracking url', inject(function(eventTracker, $http) {
* postSpy = spyOn($http, 'post');
* eventTracker.event('login');
* eventTracker.save();
* expect(postSpy).toHaveBeenCalled();
* expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');
* expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');
* expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });
* }));
* });
* ```
*/
/**
* @ngdoc method
* @name $provide#factory
* @description
*
* Register a **service factory**, which will be called to return the service instance.
* This is short for registering a service where its provider consists of only a `$get` property,
* which is the given service factory function.
* You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to
* configure your service in a provider.
*
* @param {string} name The name of the instance.
* @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.
* Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.
* @returns {Object} registered provider instance
*
* @example
* Here is an example of registering a service
* ```js
* $provide.factory('ping', ['$http', function($http) {
* return function ping() {
* return $http.send('/ping');
* };
* }]);
* ```
* You would then inject and use this service like this:
* ```js
* someModule.controller('Ctrl', ['ping', function(ping) {
* ping();
* }]);
* ```
*/
/**
* @ngdoc method
* @name $provide#service
* @description
*
* Register a **service constructor**, which will be invoked with `new` to create the service
* instance.
* This is short for registering a service where its provider's `$get` property is a factory
* function that returns an instance instantiated by the injector from the service constructor
* function.
*
* Internally it looks a bit like this:
*
* ```
* {
* $get: function() {
* return $injector.instantiate(constructor);
* }
* }
* ```
*
*
* You should use {@link auto.$provide#service $provide.service(class)} if you define your service
* as a type/class.
*
* @param {string} name The name of the instance.
* @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)
* that will be instantiated.
* @returns {Object} registered provider instance
*
* @example
* Here is an example of registering a service using
* {@link auto.$provide#service $provide.service(class)}.
* ```js
* var Ping = function($http) {
* this.$http = $http;
* };
*
* Ping.$inject = ['$http'];
*
* Ping.prototype.send = function() {
* return this.$http.get('/ping');
* };
* $provide.service('ping', Ping);
* ```
* You would then inject and use this service like this:
* ```js
* someModule.controller('Ctrl', ['ping', function(ping) {
* ping.send();
* }]);
* ```
*/
/**
* @ngdoc method
* @name $provide#value
* @description
*
* Register a **value service** with the {@link auto.$injector $injector}, such as a string, a
* number, an array, an object or a function. This is short for registering a service where its
* provider's `$get` property is a factory function that takes no arguments and returns the **value
* service**. That also means it is not possible to inject other services into a value service.
*
* Value services are similar to constant services, except that they cannot be injected into a
* module configuration function (see {@link angular.Module#config}) but they can be overridden by
* an Angular {@link auto.$provide#decorator decorator}.
*
* @param {string} name The name of the instance.
* @param {*} value The value.
* @returns {Object} registered provider instance
*
* @example
* Here are some examples of creating value services.
* ```js
* $provide.value('ADMIN_USER', 'admin');
*
* $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });
*
* $provide.value('halfOf', function(value) {
* return value / 2;
* });
* ```
*/
/**
* @ngdoc method
* @name $provide#constant
* @description
*
* Register a **constant service** with the {@link auto.$injector $injector}, such as a string,
* a number, an array, an object or a function. Like the {@link auto.$provide#value value}, it is not
* possible to inject other services into a constant.
*
* But unlike {@link auto.$provide#value value}, a constant can be
* injected into a module configuration function (see {@link angular.Module#config}) and it cannot
* be overridden by an Angular {@link auto.$provide#decorator decorator}.
*
* @param {string} name The name of the constant.
* @param {*} value The constant value.
* @returns {Object} registered instance
*
* @example
* Here a some examples of creating constants:
* ```js
* $provide.constant('SHARD_HEIGHT', 306);
*
* $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);
*
* $provide.constant('double', function(value) {
* return value * 2;
* });
* ```
*/
/**
* @ngdoc method
* @name $provide#decorator
* @description
*
* Register a **decorator function** with the {@link auto.$injector $injector}. A decorator function
* intercepts the creation of a service, allowing it to override or modify the behavior of the
* service. The return value of the decorator function may be the original service, or a new service
* that replaces (or wraps and delegates to) the original service.
*
* You can find out more about using decorators in the {@link guide/decorators} guide.
*
* @param {string} name The name of the service to decorate.
* @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be
* provided and should return the decorated service instance. The function is called using
* the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
* Local injection arguments:
*
* * `$delegate` - The original service instance, which can be replaced, monkey patched, configured,
* decorated or delegated to.
*
* @example
* Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting
* calls to {@link ng.$log#error $log.warn()}.
* ```js
* $provide.decorator('$log', ['$delegate', function($delegate) {
* $delegate.warn = $delegate.error;
* return $delegate;
* }]);
* ```
*/
function createInjector(modulesToLoad, strictDi) {
strictDi = strictDi === true;
var INSTANTIATING = {},
providerSuffix = 'Provider',
path = [],
loadedModules = new NgMap(),
providerCache = {
$provide: {
provider: supportObject(provider),
factory: supportObject(factory),
service: supportObject(service),
value: supportObject(value),
constant: supportObject(constant),
decorator: decorator
}
},
providerInjector = providerCache.$injector = createInternalInjector(providerCache, function (serviceName, caller) {
if (angular.isString(caller)) {
path.push(caller);
}
throw $injectorMinErr('unpr', 'Unknown provider: {0}', path.join(' <- '));
}),
instanceCache = {},
protoInstanceInjector = createInternalInjector(instanceCache, function (serviceName, caller) {
var provider = providerInjector.get(serviceName + providerSuffix, caller);
return instanceInjector.invoke(provider.$get, provider, undefined, serviceName);
}),
instanceInjector = protoInstanceInjector;
providerCache['$injector' + providerSuffix] = { $get: valueFn(protoInstanceInjector) };
instanceInjector.modules = providerInjector.modules = createMap();
var runBlocks = loadModules(modulesToLoad);
instanceInjector = protoInstanceInjector.get('$injector');
instanceInjector.strictDi = strictDi;
forEach(runBlocks, function (fn) {
if (fn) instanceInjector.invoke(fn);
});
instanceInjector.loadNewModules = function (mods) {
forEach(loadModules(mods), function (fn) {
if (fn) instanceInjector.invoke(fn);
});
};
return instanceInjector;
////////////////////////////////////
// $provider
////////////////////////////////////
function supportObject(delegate) {
return function (key, value) {
if (isObject(key)) {
forEach(key, reverseParams(delegate));
} else {
return delegate(key, value);
}
};
}
function provider(name, provider_) {
assertNotHasOwnProperty(name, 'service');
if (isFunction(provider_) || isArray(provider_)) {
provider_ = providerInjector.instantiate(provider_);
}
if (!provider_.$get) {
throw $injectorMinErr('pget', 'Provider \'{0}\' must define $get factory method.', name);
}
return providerCache[name + providerSuffix] = provider_;
}
function enforceReturnValue(name, factory) {
return (/** @this */function enforcedReturnValue() {
var result = instanceInjector.invoke(factory, this);
if (isUndefined(result)) {
throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
}
return result;
}
);
}
function factory(name, factoryFn, enforce) {
return provider(name, {
$get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
});
}
function service(name, constructor) {
return factory(name, ['$injector', function ($injector) {
return $injector.instantiate(constructor);
}]);
}
function value(name, val) {
return factory(name, valueFn(val), false);
}
function constant(name, value) {
assertNotHasOwnProperty(name, 'constant');
providerCache[name] = value;
instanceCache[name] = value;
}
function decorator(serviceName, decorFn) {
var origProvider = providerInjector.get(serviceName + providerSuffix),
orig$get = origProvider.$get;
origProvider.$get = function () {
var origInstance = instanceInjector.invoke(orig$get, origProvider);
return instanceInjector.invoke(decorFn, null, { $delegate: origInstance });
};
}
////////////////////////////////////
// Module Loading
////////////////////////////////////
function loadModules(modulesToLoad) {
assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');
var runBlocks = [],
moduleFn;
forEach(modulesToLoad, function (module) {
if (loadedModules.get(module)) return;
loadedModules.set(module, true);
function runInvokeQueue(queue) {
var i, ii;
for (i = 0, ii = queue.length; i < ii; i++) {
var invokeArgs = queue[i],
provider = providerInjector.get(invokeArgs[0]);
provider[invokeArgs[1]].apply(provider, invokeArgs[2]);
}
}
try {
if (isString(module)) {
moduleFn = angularModule(module);
instanceInjector.modules[module] = moduleFn;
runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);
runInvokeQueue(moduleFn._invokeQueue);
runInvokeQueue(moduleFn._configBlocks);
} else if (isFunction(module)) {
runBlocks.push(providerInjector.invoke(module));
} else if (isArray(module)) {
runBlocks.push(providerInjector.invoke(module));
} else {
assertArgFn(module, 'module');
}
} catch (e) {
if (isArray(module)) {
module = module[module.length - 1];
}
if (e.message && e.stack && e.stack.indexOf(e.message) === -1) {
// Safari & FF's stack traces don't contain error.message content
// unlike those of Chrome and IE
// So if stack doesn't contain message, we create a new string that contains both.
// Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.
// eslint-disable-next-line no-ex-assign
e = e.message + '\n' + e.stack;
}
throw $injectorMinErr('modulerr', 'Failed to instantiate module {0} due to:\n{1}', module, e.stack || e.message || e);
}
});
return runBlocks;
}
////////////////////////////////////
// internal Injector
////////////////////////////////////
function createInternalInjector(cache, factory) {
function getService(serviceName, caller) {
if (cache.hasOwnProperty(serviceName)) {
if (cache[serviceName] === INSTANTIATING) {
throw $injectorMinErr('cdep', 'Circular dependency found: {0}', serviceName + ' <- ' + path.join(' <- '));
}
return cache[serviceName];
} else {
try {
path.unshift(serviceName);
cache[serviceName] = INSTANTIATING;
cache[serviceName] = factory(serviceName, caller);
return cache[serviceName];
} catch (err) {
if (cache[serviceName] === INSTANTIATING) {
delete cache[serviceName];
}
throw err;
} finally {
path.shift();
}
}
}
function injectionArgs(fn, locals, serviceName) {
var args = [],
$inject = createInjector.$$annotate(fn, strictDi, serviceName);
for (var i = 0, length = $inject.length; i < length; i++) {
var key = $inject[i];
if (typeof key !== 'string') {
throw $injectorMinErr('itkn', 'Incorrect injection token! Expected service name as string, got {0}', key);
}
args.push(locals && locals.hasOwnProperty(key) ? locals[key] : getService(key, serviceName));
}
return args;
}
function isClass(func) {
// Support: IE 9-11 only
// IE 9-11 do not support classes and IE9 leaks with the code below.
if (msie || typeof func !== 'function') {
return false;
}
var result = func.$$ngIsClass;
if (!isBoolean(result)) {
// Support: Edge 12-13 only
// See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func));
}
return result;
}
function invoke(fn, self, locals, serviceName) {
if (typeof locals === 'string') {
serviceName = locals;
locals = null;
}
var args = injectionArgs(fn, locals, serviceName);
if (isArray(fn)) {
fn = fn[fn.length - 1];
}
if (!isClass(fn)) {
// http://jsperf.com/angularjs-invoke-apply-vs-switch
// #5388
return fn.apply(self, args);
} else {
args.unshift(null);
return new (Function.prototype.bind.apply(fn, args))();
}
}
function instantiate(Type, locals, serviceName) {
// Check if Type is annotated and use just the given function at n-1 as parameter
// e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
var ctor = isArray(Type) ? Type[Type.length - 1] : Type;
var args = injectionArgs(Type, locals, serviceName);
// Empty object at position 0 is ignored for invocation with `new`, but required.
args.unshift(null);
return new (Function.prototype.bind.apply(ctor, args))();
}
return {
invoke: invoke,
instantiate: instantiate,
get: getService,
annotate: createInjector.$$annotate,
has: function has(name) {
return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
}
};
}
}
createInjector.$$annotate = annotate;
/**
* @ngdoc provider
* @name $anchorScrollProvider
* @this
*
* @description
* Use `$anchorScrollProvider` to disable automatic scrolling whenever
* {@link ng.$location#hash $location.hash()} changes.
*/
function $AnchorScrollProvider() {
var autoScrollingEnabled = true;
/**
* @ngdoc method
* @name $anchorScrollProvider#disableAutoScrolling
*
* @description
* By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to
* {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />
* Use this method to disable automatic scrolling.
*
* If automatic scrolling is disabled, one must explicitly call
* {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the
* current hash.
*/
this.disableAutoScrolling = function () {
autoScrollingEnabled = false;
};
/**
* @ngdoc service
* @name $anchorScroll
* @kind function
* @requires $window
* @requires $location
* @requires $rootScope
*
* @description
* When called, it scrolls to the element related to the specified `hash` or (if omitted) to the
* current value of {@link ng.$location#hash $location.hash()}, according to the rules specified
* in the
* [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#an-indicated-part-of-the-document).
*
* It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to
* match any anchor whenever it changes. This can be disabled by calling
* {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.
*
* Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a
* vertical scroll-offset (either fixed or dynamic).
*
* @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of
* {@link ng.$location#hash $location.hash()} will be used.
*
* @property {(number|function|jqLite)} yOffset
* If set, specifies a vertical scroll-offset. This is often useful when there are fixed
* positioned elements at the top of the page, such as navbars, headers etc.
*
* `yOffset` can be specified in various ways:
* - **number**: A fixed number of pixels to be used as offset.<br /><br />
* - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return
* a number representing the offset (in pixels).<br /><br />
* - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from
* the top of the page to the element's bottom will be used as offset.<br />
* **Note**: The element will be taken into account only as long as its `position` is set to
* `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust
* their height and/or positioning according to the viewport's size.
*
* <br />
* <div class="alert alert-warning">
* In order for `yOffset` to work properly, scrolling should take place on the document's root and
* not some child element.
* </div>
*
* @example
<example module="anchorScrollExample" name="anchor-scroll">
<file name="index.html">
<div id="scrollArea" ng-controller="ScrollController">
<a ng-click="gotoBottom()">Go to bottom</a>
<a id="bottom"></a> You're at the bottom!
</div>
</file>
<file name="script.js">
angular.module('anchorScrollExample', [])
.controller('ScrollController', ['$scope', '$location', '$anchorScroll',
function($scope, $location, $anchorScroll) {
$scope.gotoBottom = function() {
// set the location.hash to the id of
// the element you wish to scroll to.
$location.hash('bottom');
// call $anchorScroll()
$anchorScroll();
};
}]);
</file>
<file name="style.css">
#scrollArea {
height: 280px;
overflow: auto;
}
#bottom {
display: block;
margin-top: 2000px;
}
</file>
</example>
*
* <hr />
* The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).
* See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.
*
* @example
<example module="anchorScrollOffsetExample" name="anchor-scroll-offset">
<file name="index.html">
<div class="fixed-header" ng-controller="headerCtrl">
<a href="" ng-click="gotoAnchor(x)" ng-repeat="x in [1,2,3,4,5]">
Go to anchor {{x}}
</a>
</div>
<div id="anchor{{x}}" class="anchor" ng-repeat="x in [1,2,3,4,5]">
Anchor {{x}} of 5
</div>
</file>
<file name="script.js">
angular.module('anchorScrollOffsetExample', [])
.run(['$anchorScroll', function($anchorScroll) {
$anchorScroll.yOffset = 50; // always scroll by 50 extra pixels
}])
.controller('headerCtrl', ['$anchorScroll', '$location', '$scope',
function($anchorScroll, $location, $scope) {
$scope.gotoAnchor = function(x) {
var newHash = 'anchor' + x;
if ($location.hash() !== newHash) {
// set the $location.hash to `newHash` and
// $anchorScroll will automatically scroll to it
$location.hash('anchor' + x);
} else {
// call $anchorScroll() explicitly,
// since $location.hash hasn't changed
$anchorScroll();
}
};
}
]);
</file>
<file name="style.css">
body {
padding-top: 50px;
}
.anchor {
border: 2px dashed DarkOrchid;
padding: 10px 10px 200px 10px;
}
.fixed-header {
background-color: rgba(0, 0, 0, 0.2);
height: 50px;
position: fixed;
top: 0; left: 0; right: 0;
}
.fixed-header > a {
display: inline-block;
margin: 5px 15px;
}
</file>
</example>
*/
this.$get = ['$window', '$location', '$rootScope', function ($window, $location, $rootScope) {
var document = $window.document;
// Helper function to get first anchor from a NodeList
// (using `Array#some()` instead of `angular#forEach()` since it's more performant
// and working in all supported browsers.)
function getFirstAnchor(list) {
var result = null;
Array.prototype.some.call(list, function (element) {
if (nodeName_(element) === 'a') {
result = element;
return true;
}
});
return result;
}
function getYOffset() {
var offset = scroll.yOffset;
if (isFunction(offset)) {
offset = offset();
} else if (isElement(offset)) {
var elem = offset[0];
var style = $window.getComputedStyle(elem);
if (style.position !== 'fixed') {
offset = 0;
} else {
offset = elem.getBoundingClientRect().bottom;
}
} else if (!isNumber(offset)) {
offset = 0;
}
return offset;
}
function scrollTo(elem) {
if (elem) {
elem.scrollIntoView();
var offset = getYOffset();
if (offset) {
// `offset` is the number of pixels we should scroll UP in order to align `elem` properly.
// This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the
// top of the viewport.
//
// IF the number of pixels from the top of `elem` to the end of the page's content is less
// than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some
// way down the page.
//
// This is often the case for elements near the bottom of the page.
//
// In such cases we do not need to scroll the whole `offset` up, just the difference between
// the top of the element and the offset, which is enough to align the top of `elem` at the
// desired position.
var elemTop = elem.getBoundingClientRect().top;
$window.scrollBy(0, elemTop - offset);
}
} else {
$window.scrollTo(0, 0);
}
}
function scroll(hash) {
// Allow numeric hashes
hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash();
var elm;
// empty hash, scroll to the top of the page
if (!hash) scrollTo(null);
// element with given id
else if (elm = document.getElementById(hash)) scrollTo(elm);
// first anchor with given name :-D
else if (elm = getFirstAnchor(document.getElementsByName(hash))) scrollTo(elm);
// no element and hash === 'top', scroll to the top of the page
else if (hash === 'top') scrollTo(null);
}
// does not scroll when user clicks on anchor link that is currently on
// (no url change, no $location.hash() change), browser native does scroll
if (autoScrollingEnabled) {
$rootScope.$watch(function autoScrollWatch() {
return $location.hash();
}, function autoScrollWatchAction(newVal, oldVal) {
// skip the initial scroll if $location.hash is empty
if (newVal === oldVal && newVal === '') return;
jqLiteDocumentLoaded(function () {
$rootScope.$evalAsync(scroll);
});
});
}
return scroll;
}];
}
var $animateMinErr = minErr('$animate');
var ELEMENT_NODE = 1;
var NG_ANIMATE_CLASSNAME = 'ng-animate';
function mergeClasses(a, b) {
if (!a && !b) return '';
if (!a) return b;
if (!b) return a;
if (isArray(a)) a = a.join(' ');
if (isArray(b)) b = b.join(' ');
return a + ' ' + b;
}
function extractElementNode(element) {
for (var i = 0; i < element.length; i++) {
var elm = element[i];
if (elm.nodeType === ELEMENT_NODE) {
return elm;
}
}
}
function splitClasses(classes) {
if (isString(classes)) {
classes = classes.split(' ');
}
// Use createMap() to prevent class assumptions involving property names in
// Object.prototype
var obj = createMap();
forEach(classes, function (klass) {
// sometimes the split leaves empty string values
// incase extra spaces were applied to the options
if (klass.length) {
obj[klass] = true;
}
});
return obj;
}
// if any other type of options value besides an Object value is
// passed into the $animate.method() animation then this helper code
// will be run which will ignore it. While this patch is not the
// greatest solution to this, a lot of existing plugins depend on
// $animate to either call the callback (< 1.2) or return a promise
// that can be changed. This helper function ensures that the options
// are wiped clean incase a callback function is provided.
function prepareAnimateOptions(options) {
return isObject(options) ? options : {};
}
var $$CoreAnimateJsProvider = /** @this */function $$CoreAnimateJsProvider() {
this.$get = noop;
};
// this is prefixed with Core since it conflicts with
// the animateQueueProvider defined in ngAnimate/animateQueue.js
var $$CoreAnimateQueueProvider = /** @this */function $$CoreAnimateQueueProvider() {
var postDigestQueue = new NgMap();
var postDigestElements = [];
this.$get = ['$$AnimateRunner', '$rootScope', function ($$AnimateRunner, $rootScope) {
return {
enabled: noop,
on: noop,
off: noop,
pin: noop,
push: function push(element, event, options, domOperation) {
if (domOperation) {
domOperation();
}
options = options || {};
if (options.from) {
element.css(options.from);
}
if (options.to) {
element.css(options.to);
}
if (options.addClass || options.removeClass) {
addRemoveClassesPostDigest(element, options.addClass, options.removeClass);
}
var runner = new $$AnimateRunner();
// since there are no animations to run the runner needs to be
// notified that the animation call is complete.
runner.complete();
return runner;
}
};
function updateData(data, classes, value) {
var changed = false;
if (classes) {
classes = isString(classes) ? classes.split(' ') : isArray(classes) ? classes : [];
forEach(classes, function (className) {
if (className) {
changed = true;
data[className] = value;
}
});
}
return changed;
}
function handleCSSClassChanges() {
forEach(postDigestElements, function (element) {
var data = postDigestQueue.get(element);
if (data) {
var existing = splitClasses(element.attr('class'));
var toAdd = '';
var toRemove = '';
forEach(data, function (status, className) {
var hasClass = !!existing[className];
if (status !== hasClass) {
if (status) {
toAdd += (toAdd.length ? ' ' : '') + className;
} else {
toRemove += (toRemove.length ? ' ' : '') + className;
}
}
});
forEach(element, function (elm) {
if (toAdd) {
jqLiteAddClass(elm, toAdd);
}
if (toRemove) {
jqLiteRemoveClass(elm, toRemove);
}
});
postDigestQueue.delete(element);
}
});
postDigestElements.length = 0;
}
function addRemoveClassesPostDigest(element, add, remove) {
var data = postDigestQueue.get(element) || {};
var classesAdded = updateData(data, add, true);
var classesRemoved = updateData(data, remove, false);
if (classesAdded || classesRemoved) {
postDigestQueue.set(element, data);
postDigestElements.push(element);
if (postDigestElements.length === 1) {
$rootScope.$$postDigest(handleCSSClassChanges);
}
}
}
}];
};
/**
* @ngdoc provider
* @name $animateProvider
*
* @description
* Default implementation of $animate that doesn't perform any animations, instead just
* synchronously performs DOM updates and resolves the returned runner promise.
*
* In order to enable animations the `ngAnimate` module has to be loaded.
*
* To see the functional implementation check out `src/ngAnimate/animate.js`.
*/
var $AnimateProvider = ['$provide', /** @this */function ($provide) {
var provider = this;
var classNameFilter = null;
var customFilter = null;
this.$$registeredAnimations = Object.create(null);
/**
* @ngdoc method
* @name $animateProvider#register
*
* @description
* Registers a new injectable animation factory function. The factory function produces the
* animation object which contains callback functions for each event that is expected to be
* animated.
*
* * `eventFn`: `function(element, ... , doneFunction, options)`
* The element to animate, the `doneFunction` and the options fed into the animation. Depending
* on the type of animation additional arguments will be injected into the animation function. The
* list below explains the function signatures for the different animation methods:
*
* - setClass: function(element, addedClasses, removedClasses, doneFunction, options)
* - addClass: function(element, addedClasses, doneFunction, options)
* - removeClass: function(element, removedClasses, doneFunction, options)
* - enter, leave, move: function(element, doneFunction, options)
* - animate: function(element, fromStyles, toStyles, doneFunction, options)
*
* Make sure to trigger the `doneFunction` once the animation is fully complete.
*
* ```js
* return {
* //enter, leave, move signature
* eventFn : function(element, done, options) {
* //code to run the animation
* //once complete, then run done()
* return function endFunction(wasCancelled) {
* //code to cancel the animation
* }
* }
* }
* ```
*
* @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).
* @param {Function} factory The factory function that will be executed to return the animation
* object.
*/
this.register = function (name, factory) {
if (name && name.charAt(0) !== '.') {
throw $animateMinErr('notcsel', 'Expecting class selector starting with \'.\' got \'{0}\'.', name);
}
var key = name + '-animation';
provider.$$registeredAnimations[name.substr(1)] = key;
$provide.factory(key, factory);
};
/**
* @ngdoc method
* @name $animateProvider#customFilter
*
* @description
* Sets and/or returns the custom filter function that is used to "filter" animations, i.e.
* determine if an animation is allowed or not. When no filter is specified (the default), no
* animation will be blocked. Setting the `customFilter` value will only allow animations for
* which the filter function's return value is truthy.
*
* This allows to easily create arbitrarily complex rules for filtering animations, such as
* allowing specific events only, or enabling animations on specific subtrees of the DOM, etc.
* Filtering animations can also boost performance for low-powered devices, as well as
* applications containing a lot of structural operations.
*
* <div class="alert alert-success">
* **Best Practice:**
* Keep the filtering function as lean as possible, because it will be called for each DOM
* action (e.g. insertion, removal, class change) performed by "animation-aware" directives.
* See {@link guide/animations#which-directives-support-animations- here} for a list of built-in
* directives that support animations.
* Performing computationally expensive or time-consuming operations on each call of the
* filtering function can make your animations sluggish.
* </div>
*
* **Note:** If present, `customFilter` will be checked before
* {@link $animateProvider#classNameFilter classNameFilter}.
*
* @param {Function=} filterFn - The filter function which will be used to filter all animations.
* If a falsy value is returned, no animation will be performed. The function will be called
* with the following arguments:
* - **node** `{DOMElement}` - The DOM element to be animated.
* - **event** `{String}` - The name of the animation event (e.g. `enter`, `leave`, `addClass`
* etc).
* - **options** `{Object}` - A collection of options/styles used for the animation.
* @return {Function} The current filter function or `null` if there is none set.
*/
this.customFilter = function (filterFn) {
if (arguments.length === 1) {
customFilter = isFunction(filterFn) ? filterFn : null;
}
return customFilter;
};
/**
* @ngdoc method
* @name $animateProvider#classNameFilter
*
* @description
* Sets and/or returns the CSS class regular expression that is checked when performing
* an animation. Upon bootstrap the classNameFilter value is not set at all and will
* therefore enable $animate to attempt to perform an animation on any element that is triggered.
* When setting the `classNameFilter` value, animations will only be performed on elements
* that successfully match the filter expression. This in turn can boost performance
* for low-powered devices as well as applications containing a lot of structural operations.
*
* **Note:** If present, `classNameFilter` will be checked after
* {@link $animateProvider#customFilter customFilter}. If `customFilter` is present and returns
* false, `classNameFilter` will not be checked.
*
* @param {RegExp=} expression The className expression which will be checked against all animations
* @return {RegExp} The current CSS className expression value. If null then there is no expression value
*/
this.classNameFilter = function (expression) {
if (arguments.length === 1) {
classNameFilter = expression instanceof RegExp ? expression : null;
if (classNameFilter) {
var reservedRegex = new RegExp('[(\\s|\\/)]' + NG_ANIMATE_CLASSNAME + '[(\\s|\\/)]');
if (reservedRegex.test(classNameFilter.toString())) {
classNameFilter = null;
throw $animateMinErr('nongcls', '$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.', NG_ANIMATE_CLASSNAME);
}
}
}
return classNameFilter;
};
this.$get = ['$$animateQueue', function ($$animateQueue) {
function domInsert(element, parentElement, afterElement) {
// if for some reason the previous element was removed
// from the dom sometime before this code runs then let's
// just stick to using the parent element as the anchor
if (afterElement) {
var afterNode = extractElementNode(afterElement);
if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {
afterElement = null;
}
}
if (afterElement) {
afterElement.after(element);
} else {
parentElement.prepend(element);
}
}
/**
* @ngdoc service
* @name $animate
* @description The $animate service exposes a series of DOM utility methods that provide support
* for animation hooks. The default behavior is the application of DOM operations, however,
* when an animation is detected (and animations are enabled), $animate will do the heavy lifting
* to ensure that animation runs with the triggered DOM operation.
*
* By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't
* included and only when it is active then the animation hooks that `$animate` triggers will be
* functional. Once active then all structural `ng-` directives will trigger animations as they perform
* their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,
* `ngShow`, `ngHide` and `ngMessages` also provide support for animations.
*
* It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.
*
* To learn more about enabling animation support, click here to visit the
* {@link ngAnimate ngAnimate module page}.
*/
return {
// we don't call it directly since non-existant arguments may
// be interpreted as null within the sub enabled function
/**
*
* @ngdoc method
* @name $animate#on
* @kind function
* @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)
* has fired on the given element or among any of its children. Once the listener is fired, the provided callback
* is fired with the following params:
*
* ```js
* $animate.on('enter', container,
* function callback(element, phase) {
* // cool we detected an enter animation within the container
* }
* );
* ```
*
* @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)
* @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself
* as well as among its children
* @param {Function} callback the callback function that will be fired when the listener is triggered
*
* The arguments present in the callback function are:
* * `element` - The captured DOM element that the animation was fired on.
* * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).
*/
on: $$animateQueue.on,
/**
*
* @ngdoc method
* @name $animate#off
* @kind function
* @description Deregisters an event listener based on the event which has been associated with the provided element. This method
* can be used in three different ways depending on the arguments:
*
* ```js
* // remove all the animation event listeners listening for `enter`
* $animate.off('enter');
*
* // remove listeners for all animation events from the container element
* $animate.off(container);
*
* // remove all the animation event listeners listening for `enter` on the given element and its children
* $animate.off('enter', container);
*
* // remove the event listener function provided by `callback` that is set
* // to listen for `enter` on the given `container` as well as its children
* $animate.off('enter', container, callback);
* ```
*
* @param {string|DOMElement} event|container the animation event (e.g. enter, leave, move,
* addClass, removeClass, etc...), or the container element. If it is the element, all other
* arguments are ignored.
* @param {DOMElement=} container the container element the event listener was placed on
* @param {Function=} callback the callback function that was registered as the listener
*/
off: $$animateQueue.off,
/**
* @ngdoc method
* @name $animate#pin
* @kind function
* @description Associates the provided element with a host parent element to allow the element to be animated even if it exists
* outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the
* element despite being outside the realm of the application or within another application. Say for example if the application
* was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated
* as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind
* that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.
*
* Note that this feature is only active when the `ngAnimate` module is used.
*
* @param {DOMElement} element the external element that will be pinned
* @param {DOMElement} parentElement the host parent element that will be associated with the external element
*/
pin: $$animateQueue.pin,
/**
*
* @ngdoc method
* @name $animate#enabled
* @kind function
* @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This
* function can be called in four ways:
*
* ```js
* // returns true or false
* $animate.enabled();
*
* // changes the enabled state for all animations
* $animate.enabled(false);
* $animate.enabled(true);
*
* // returns true or false if animations are enabled for an element
* $animate.enabled(element);
*
* // changes the enabled state for an element and its children
* $animate.enabled(element, true);
* $animate.enabled(element, false);
* ```
*
* @param {DOMElement=} element the element that will be considered for checking/setting the enabled state
* @param {boolean=} enabled whether or not the animations will be enabled for the element
*
* @return {boolean} whether or not animations are enabled
*/
enabled: $$animateQueue.enabled,
/**
* @ngdoc method
* @name $animate#cancel
* @kind function
* @description Cancels the provided animation.
*
* @param {Promise} animationPromise The animation promise that is returned when an animation is started.
*/
cancel: function cancel(runner) {
if (runner.end) {
runner.end();
}
},
/**
*
* @ngdoc method
* @name $animate#enter
* @kind function
* @description Inserts the element into the DOM either after the `after` element (if provided) or
* as the first child within the `parent` element and then triggers an animation.
* A promise is returned that will be resolved during the next digest once the animation
* has completed.
*
* @param {DOMElement} element the element which will be inserted into the DOM
* @param {DOMElement} parent the parent element which will append the element as
* a child (so long as the after element is not present)
* @param {DOMElement=} after the sibling element after which the element will be appended
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
enter: function enter(element, parent, after, options) {
parent = parent && jqLite(parent);
after = after && jqLite(after);
parent = parent || after.parent();
domInsert(element, parent, after);
return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));
},
/**
*
* @ngdoc method
* @name $animate#move
* @kind function
* @description Inserts (moves) the element into its new position in the DOM either after
* the `after` element (if provided) or as the first child within the `parent` element
* and then triggers an animation. A promise is returned that will be resolved
* during the next digest once the animation has completed.
*
* @param {DOMElement} element the element which will be moved into the new DOM position
* @param {DOMElement} parent the parent element which will append the element as
* a child (so long as the after element is not present)
* @param {DOMElement=} after the sibling element after which the element will be appended
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
move: function move(element, parent, after, options) {
parent = parent && jqLite(parent);
after = after && jqLite(after);
parent = parent || after.parent();
domInsert(element, parent, after);
return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));
},
/**
* @ngdoc method
* @name $animate#leave
* @kind function
* @description Triggers an animation and then removes the element from the DOM.
* When the function is called a promise is returned that will be resolved during the next
* digest once the animation has completed.
*
* @param {DOMElement} element the element which will be removed from the DOM
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
leave: function leave(element, options) {
return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function () {
element.remove();
});
},
/**
* @ngdoc method
* @name $animate#addClass
* @kind function
*
* @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon
* execution, the addClass operation will only be handled after the next digest and it will not trigger an
* animation if element already contains the CSS class or if the class is removed at a later step.
* Note that class-based animations are treated differently compared to structural animations
* (like enter, move and leave) since the CSS classes may be added/removed at different points
* depending if CSS or JavaScript animations are used.
*
* @param {DOMElement} element the element which the CSS classes will be applied to
* @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
addClass: function addClass(element, className, options) {
options = prepareAnimateOptions(options);
options.addClass = mergeClasses(options.addclass, className);
return $$animateQueue.push(element, 'addClass', options);
},
/**
* @ngdoc method
* @name $animate#removeClass
* @kind function
*
* @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon
* execution, the removeClass operation will only be handled after the next digest and it will not trigger an
* animation if element does not contain the CSS class or if the class is added at a later step.
* Note that class-based animations are treated differently compared to structural animations
* (like enter, move and leave) since the CSS classes may be added/removed at different points
* depending if CSS or JavaScript animations are used.
*
* @param {DOMElement} element the element which the CSS classes will be applied to
* @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
removeClass: function removeClass(element, className, options) {
options = prepareAnimateOptions(options);
options.removeClass = mergeClasses(options.removeClass, className);
return $$animateQueue.push(element, 'removeClass', options);
},
/**
* @ngdoc method
* @name $animate#setClass
* @kind function
*
* @description Performs both the addition and removal of a CSS classes on an element and (during the process)
* triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and
* `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has
* passed. Note that class-based animations are treated differently compared to structural animations
* (like enter, move and leave) since the CSS classes may be added/removed at different points
* depending if CSS or JavaScript animations are used.
*
* @param {DOMElement} element the element which the CSS classes will be applied to
* @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)
* @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
setClass: function setClass(element, add, remove, options) {
options = prepareAnimateOptions(options);
options.addClass = mergeClasses(options.addClass, add);
options.removeClass = mergeClasses(options.removeClass, remove);
return $$animateQueue.push(element, 'setClass', options);
},
/**
* @ngdoc method
* @name $animate#animate
* @kind function
*
* @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
* If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
* on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and
* `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
* style in `to`, the style in `from` is applied immediately, and no animation is run.
* If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
* method (or as part of the `options` parameter):
*
* ```js
* ngModule.animation('.my-inline-animation', function() {
* return {
* animate : function(element, from, to, done, options) {
* //animation
* done();
* }
* }
* });
* ```
*
* @param {DOMElement} element the element which the CSS styles will be applied to
* @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.
* @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.
* @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If
* this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
* (Note that if no animation is detected then this value will not be applied to the element.)
* @param {object=} options an optional collection of options/styles that will be applied to the element.
* The object can have the following properties:
*
* - **addClass** - `{string}` - space-separated CSS classes to add to element
* - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
* - **removeClass** - `{string}` - space-separated CSS classes to remove from element
* - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
*
* @return {Promise} the animation callback promise
*/
animate: function animate(element, from, to, className, options) {
options = prepareAnimateOptions(options);
options.from = options.from ? extend(options.from, from) : from;
options.to = options.to ? extend(options.to, to) : to;
className = className || 'ng-inline-animate';
options.tempClasses = mergeClasses(options.tempClasses, className);
return $$animateQueue.push(element, 'animate', options);
}
};
}];
}];
var $$AnimateAsyncRunFactoryProvider = /** @this */function $$AnimateAsyncRunFactoryProvider() {
this.$get = ['$$rAF', function ($$rAF) {
var waitQueue = [];
function waitForTick(fn) {
waitQueue.push(fn);
if (waitQueue.length > 1) return;
$$rAF(function () {
for (var i = 0; i < waitQueue.length; i++) {
waitQueue[i]();
}
waitQueue = [];
});
}
return function () {
var passed = false;
waitForTick(function () {
passed = true;
});
return function (callback) {
if (passed) {
callback();
} else {
waitForTick(callback);
}
};
};
}];
};
var $$AnimateRunnerFactoryProvider = /** @this */function $$AnimateRunnerFactoryProvider() {
this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout', function ($q, $sniffer, $$animateAsyncRun, $$isDocumentHidden, $timeout) {
var INITIAL_STATE = 0;
var DONE_PENDING_STATE = 1;
var DONE_COMPLETE_STATE = 2;
AnimateRunner.chain = function (chain, callback) {
var index = 0;
next();
function next() {
if (index === chain.length) {
callback(true);
return;
}
chain[index](function (response) {
if (response === false) {
callback(false);
return;
}
index++;
next();
});
}
};
AnimateRunner.all = function (runners, callback) {
var count = 0;
var status = true;
forEach(runners, function (runner) {
runner.done(onProgress);
});
function onProgress(response) {
status = status && response;
if (++count === runners.length) {
callback(status);
}
}
};
function AnimateRunner(host) {
this.setHost(host);
var rafTick = $$animateAsyncRun();
var timeoutTick = function timeoutTick(fn) {
$timeout(fn, 0, false);
};
this._doneCallbacks = [];
this._tick = function (fn) {
if ($$isDocumentHidden()) {
timeoutTick(fn);
} else {
rafTick(fn);
}
};
this._state = 0;
}
AnimateRunner.prototype = {
setHost: function setHost(host) {
this.host = host || {};
},
done: function done(fn) {
if (this._state === DONE_COMPLETE_STATE) {
fn();
} else {
this._doneCallbacks.push(fn);
}
},
progress: noop,
getPromise: function getPromise() {
if (!this.promise) {
var self = this;
this.promise = $q(function (resolve, reject) {
self.done(function (status) {
if (status === false) {
reject();
} else {
resolve();
}
});
});
}
return this.promise;
},
then: function then(resolveHandler, rejectHandler) {
return this.getPromise().then(resolveHandler, rejectHandler);
},
'catch': function _catch(handler) {
return this.getPromise()['catch'](handler);
},
'finally': function _finally(handler) {
return this.getPromise()['finally'](handler);
},
pause: function pause() {
if (this.host.pause) {
this.host.pause();
}
},
resume: function resume() {
if (this.host.resume) {
this.host.resume();
}
},
end: function end() {
if (this.host.end) {
this.host.end();
}
this._resolve(true);
},
cancel: function cancel() {
if (this.host.cancel) {
this.host.cancel();
}
this._resolve(false);
},
complete: function complete(response) {
var self = this;
if (self._state === INITIAL_STATE) {
self._state = DONE_PENDING_STATE;
self._tick(function () {
self._resolve(response);
});
}
},
_resolve: function _resolve(response) {
if (this._state !== DONE_COMPLETE_STATE) {
forEach(this._doneCallbacks, function (fn) {
fn(response);
});
this._doneCallbacks.length = 0;
this._state = DONE_COMPLETE_STATE;
}
}
};
return AnimateRunner;
}];
};
/* exported $CoreAnimateCssProvider */
/**
* @ngdoc service
* @name $animateCss
* @kind object
* @this
*
* @description
* This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
* then the `$animateCss` service will actually perform animations.
*
* Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
*/
var $CoreAnimateCssProvider = function $CoreAnimateCssProvider() {
this.$get = ['$$rAF', '$q', '$$AnimateRunner', function ($$rAF, $q, $$AnimateRunner) {
return function (element, initialOptions) {
// all of the animation functions should create
// a copy of the options data, however, if a
// parent service has already created a copy then
// we should stick to using that
var options = initialOptions || {};
if (!options.$$prepared) {
options = copy(options);
}
// there is no point in applying the styles since
// there is no animation that goes on at all in
// this version of $animateCss.
if (options.cleanupStyles) {
options.from = options.to = null;
}
if (options.from) {
element.css(options.from);
options.from = null;
}
var closed,
runner = new $$AnimateRunner();
return {
start: run,
end: run
};
function run() {
$$rAF(function () {
applyAnimationContents();
if (!closed) {
runner.complete();
}
closed = true;
});
return runner;
}
function applyAnimationContents() {
if (options.addClass) {
element.addClass(options.addClass);
options.addClass = null;
}
if (options.removeClass) {
element.removeClass(options.removeClass);
options.removeClass = null;
}
if (options.to) {
element.css(options.to);
options.to = null;
}
}
};
}];
};
/* global stripHash: true */
/**
* ! This is a private undocumented service !
*
* @name $browser
* @requires $log
* @description
* This object has two goals:
*
* - hide all the global state in the browser caused by the window object
* - abstract away all the browser specific features and inconsistencies
*
* For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`
* service, which can be used for convenient testing of the application without the interaction with
* the real browser apis.
*/
/**
* @param {object} window The global window object.
* @param {object} document jQuery wrapped document.
* @param {object} $log window.console or an object with the same interface.
* @param {object} $sniffer $sniffer service
*/
function Browser(window, document, $log, $sniffer) {
var self = this,
location = window.location,
history = window.history,
setTimeout = window.setTimeout,
clearTimeout = window.clearTimeout,
pendingDeferIds = {};
self.isMock = false;
var outstandingRequestCount = 0;
var outstandingRequestCallbacks = [];
// TODO(vojta): remove this temporary api
self.$$completeOutstandingRequest = completeOutstandingRequest;
self.$$incOutstandingRequestCount = function () {
outstandingRequestCount++;
};
/**
* Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`
* counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
*/
function completeOutstandingRequest(fn) {
try {
fn.apply(null, sliceArgs(arguments, 1));
} finally {
outstandingRequestCount--;
if (outstandingRequestCount === 0) {
while (outstandingRequestCallbacks.length) {
try {
outstandingRequestCallbacks.pop()();
} catch (e) {
$log.error(e);
}
}
}
}
}
function getHash(url) {
var index = url.indexOf('#');
return index === -1 ? '' : url.substr(index);
}
/**
* @private
* TODO(vojta): prefix this method with $$ ?
* @param {function()} callback Function that will be called when no outstanding request
*/
self.notifyWhenNoOutstandingRequests = function (callback) {
if (outstandingRequestCount === 0) {
callback();
} else {
outstandingRequestCallbacks.push(callback);
}
};
//////////////////////////////////////////////////////////////
// URL API
//////////////////////////////////////////////////////////////
var cachedState,
lastHistoryState,
lastBrowserUrl = location.href,
baseElement = document.find('base'),
pendingLocation = null,
getCurrentState = !$sniffer.history ? noop : function getCurrentState() {
try {
return history.state;
} catch (e) {
// MSIE can reportedly throw when there is no state (UNCONFIRMED).
}
};
cacheState();
/**
* @name $browser#url
*
* @description
* GETTER:
* Without any argument, this method just returns current value of location.href.
*
* SETTER:
* With at least one argument, this method sets url to new value.
* If html5 history api supported, pushState/replaceState is used, otherwise
* location.href/location.replace is used.
* Returns its own instance to allow chaining
*
* NOTE: this api is intended for use only by the $location service. Please use the
* {@link ng.$location $location service} to change url.
*
* @param {string} url New url (when used as setter)
* @param {boolean=} replace Should new url replace current history record?
* @param {object=} state object to use with pushState/replaceState
*/
self.url = function (url, replace, state) {
// In modern browsers `history.state` is `null` by default; treating it separately
// from `undefined` would cause `$browser.url('/foo')` to change `history.state`
// to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
if (isUndefined(state)) {
state = null;
}
// Android Browser BFCache causes location, history reference to become stale.
if (location !== window.location) location = window.location;
if (history !== window.history) history = window.history;
// setter
if (url) {
var sameState = lastHistoryState === state;
// Don't change anything if previous and current URLs and states match. This also prevents
// IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.
// See https://github.com/angular/angular.js/commit/ffb2701
if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {
return self;
}
var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);
lastBrowserUrl = url;
lastHistoryState = state;
// Don't use history API if only the hash changed
// due to a bug in IE10/IE11 which leads
// to not firing a `hashchange` nor `popstate` event
// in some cases (see #9143).
if ($sniffer.history && (!sameBase || !sameState)) {
history[replace ? 'replaceState' : 'pushState'](state, '', url);
cacheState();
} else {
if (!sameBase) {
pendingLocation = url;
}
if (replace) {
location.replace(url);
} else if (!sameBase) {
location.href = url;
} else {
location.hash = getHash(url);
}
if (location.href !== url) {
pendingLocation = url;
}
}
if (pendingLocation) {
pendingLocation = url;
}
return self;
// getter
} else {
// - pendingLocation is needed as browsers don't allow to read out
// the new location.href if a reload happened or if there is a bug like in iOS 9 (see
// https://openradar.appspot.com/22186109).
// - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172
return pendingLocation || location.href.replace(/%27/g, '\'');
}
};
/**
* @name $browser#state
*
* @description
* This method is a getter.
*
* Return history.state or null if history.state is undefined.
*
* @returns {object} state
*/
self.state = function () {
return cachedState;
};
var urlChangeListeners = [],
urlChangeInit = false;
function cacheStateAndFireUrlChange() {
pendingLocation = null;
fireStateOrUrlChange();
}
// This variable should be used *only* inside the cacheState function.
var lastCachedState = null;
function cacheState() {
// This should be the only place in $browser where `history.state` is read.
cachedState = getCurrentState();
cachedState = isUndefined(cachedState) ? null : cachedState;
// Prevent callbacks fo fire twice if both hashchange & popstate were fired.
if (equals(cachedState, lastCachedState)) {
cachedState = lastCachedState;
}
lastCachedState = cachedState;
lastHistoryState = cachedState;
}
function fireStateOrUrlChange() {
var prevLastHistoryState = lastHistoryState;
cacheState();
if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) {
return;
}
lastBrowserUrl = self.url();
lastHistoryState = cachedState;
forEach(urlChangeListeners, function (listener) {
listener(self.url(), cachedState);
});
}
/**
* @name $browser#onUrlChange
*
* @description
* Register callback function that will be called, when url changes.
*
* It's only called when the url is changed from outside of angular:
* - user types different url into address bar
* - user clicks on history (forward/back) button
* - user clicks on a link
*
* It's not called when url is changed by $browser.url() method
*
* The listener gets called with new url as parameter.
*
* NOTE: this api is intended for use only by the $location service. Please use the
* {@link ng.$location $location service} to monitor url changes in angular apps.
*
* @param {function(string)} listener Listener function to be called when url changes.
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
*/
self.onUrlChange = function (callback) {
// TODO(vojta): refactor to use node's syntax for events
if (!urlChangeInit) {
// We listen on both (hashchange/popstate) when available, as some browsers don't
// fire popstate when user changes the address bar and don't fire hashchange when url
// changed by push/replaceState
// html5 history api - popstate event
if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);
// hashchange event
jqLite(window).on('hashchange', cacheStateAndFireUrlChange);
urlChangeInit = true;
}
urlChangeListeners.push(callback);
return callback;
};
/**
* @private
* Remove popstate and hashchange handler from window.
*
* NOTE: this api is intended for use only by $rootScope.
*/
self.$$applicationDestroyed = function () {
jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);
};
/**
* Checks whether the url has changed outside of Angular.
* Needs to be exported to be able to check for changes that have been done in sync,
* as hashchange/popstate events fire in async.
*/
self.$$checkUrlChange = fireStateOrUrlChange;
//////////////////////////////////////////////////////////////
// Misc API
//////////////////////////////////////////////////////////////
/**
* @name $browser#baseHref
*
* @description
* Returns current <base href>
* (always relative - without domain)
*
* @returns {string} The current base href
*/
self.baseHref = function () {
var href = baseElement.attr('href');
return href ? href.replace(/^(https?:)?\/\/[^/]*/, '') : '';
};
/**
* @name $browser#defer
* @param {function()} fn A function, who's execution should be deferred.
* @param {number=} [delay=0] of milliseconds to defer the function execution.
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
*
* @description
* Executes a fn asynchronously via `setTimeout(fn, delay)`.
*
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
* `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
* via `$browser.defer.flush()`.
*
*/
self.defer = function (fn, delay) {
var timeoutId;
outstandingRequestCount++;
timeoutId = setTimeout(function () {
delete pendingDeferIds[timeoutId];
completeOutstandingRequest(fn);
}, delay || 0);
pendingDeferIds[timeoutId] = true;
return timeoutId;
};
/**
* @name $browser#defer.cancel
*
* @description
* Cancels a deferred task identified with `deferId`.
*
* @param {*} deferId Token returned by the `$browser.defer` function.
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
* canceled.
*/
self.defer.cancel = function (deferId) {
if (pendingDeferIds[deferId]) {
delete pendingDeferIds[deferId];
clearTimeout(deferId);
completeOutstandingRequest(noop);
return true;
}
return false;
};
}
/** @this */
function $BrowserProvider() {
this.$get = ['$window', '$log', '$sniffer', '$document', function ($window, $log, $sniffer, $document) {
return new Browser($window, $document, $log, $sniffer);
}];
}
/**
* @ngdoc service
* @name $cacheFactory
* @this
*
* @description
* Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
* them.
*
* ```js
*
* var cache = $cacheFactory('cacheId');
* expect($cacheFactory.get('cacheId')).toBe(cache);
* expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
*
* cache.put("key", "value");
* cache.put("another key", "another value");
*
* // We've specified no options on creation
* expect(cache.info()).toEqual({id: 'cacheId', size: 2});
*
* ```
*
*
* @param {string} cacheId Name or id of the newly created cache.
* @param {object=} options Options object that specifies the cache behavior. Properties:
*
* - `{number=}` `capacity` — turns the cache into LRU cache.
*
* @returns {object} Newly created cache object with the following set of methods:
*
* - `{object}` `info()` — Returns id, size, and options of cache.
* - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns
* it.
* - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
* - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
* - `{void}` `removeAll()` — Removes all cached values.
* - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
*
* @example
<example module="cacheExampleApp" name="cache-factory">
<file name="index.html">
<div ng-controller="CacheController">
<input ng-model="newCacheKey" placeholder="Key">
<input ng-model="newCacheValue" placeholder="Value">
<button ng-click="put(newCacheKey, newCacheValue)">Cache</button>
<p ng-if="keys.length">Cached Values</p>
<div ng-repeat="key in keys">
<span ng-bind="key"></span>
<span>: </span>
<b ng-bind="cache.get(key)"></b>
</div>
<p>Cache Info</p>
<div ng-repeat="(key, value) in cache.info()">
<span ng-bind="key"></span>
<span>: </span>
<b ng-bind="value"></b>
</div>
</div>
</file>
<file name="script.js">
angular.module('cacheExampleApp', []).
controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
$scope.keys = [];
$scope.cache = $cacheFactory('cacheId');
$scope.put = function(key, value) {
if (angular.isUndefined($scope.cache.get(key))) {
$scope.keys.push(key);
}
$scope.cache.put(key, angular.isUndefined(value) ? null : value);
};
}]);
</file>
<file name="style.css">
p {
margin: 10px 0 3px;
}
</file>
</example>
*/
function $CacheFactoryProvider() {
this.$get = function () {
var caches = {};
function cacheFactory(cacheId, options) {
if (cacheId in caches) {
throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId);
}
var size = 0,
stats = extend({}, options, { id: cacheId }),
data = createMap(),
capacity = options && options.capacity || Number.MAX_VALUE,
lruHash = createMap(),
freshEnd = null,
staleEnd = null;
/**
* @ngdoc type
* @name $cacheFactory.Cache
*
* @description
* A cache object used to store and retrieve data, primarily used by
* {@link $templateRequest $templateRequest} and the {@link ng.directive:script script}
* directive to cache templates and other data.
*
* ```js
* angular.module('superCache')
* .factory('superCache', ['$cacheFactory', function($cacheFactory) {
* return $cacheFactory('super-cache');
* }]);
* ```
*
* Example test:
*
* ```js
* it('should behave like a cache', inject(function(superCache) {
* superCache.put('key', 'value');
* superCache.put('another key', 'another value');
*
* expect(superCache.info()).toEqual({
* id: 'super-cache',
* size: 2
* });
*
* superCache.remove('another key');
* expect(superCache.get('another key')).toBeUndefined();
*
* superCache.removeAll();
* expect(superCache.info()).toEqual({
* id: 'super-cache',
* size: 0
* });
* }));
* ```
*/
return caches[cacheId] = {
/**
* @ngdoc method
* @name $cacheFactory.Cache#put
* @kind function
*
* @description
* Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
* retrieved later, and incrementing the size of the cache if the key was not already
* present in the cache. If behaving like an LRU cache, it will also remove stale
* entries from the set.
*
* It will not insert undefined values into the cache.
*
* @param {string} key the key under which the cached data is stored.
* @param {*} value the value to store alongside the key. If it is undefined, the key
* will not be stored.
* @returns {*} the value stored.
*/
put: function put(key, value) {
if (isUndefined(value)) return;
if (capacity < Number.MAX_VALUE) {
var lruEntry = lruHash[key] || (lruHash[key] = { key: key });
refresh(lruEntry);
}
if (!(key in data)) size++;
data[key] = value;
if (size > capacity) {
this.remove(staleEnd.key);
}
return value;
},
/**
* @ngdoc method
* @name $cacheFactory.Cache#get
* @kind function
*
* @description
* Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.
*
* @param {string} key the key of the data to be retrieved
* @returns {*} the value stored.
*/
get: function get(key) {
if (capacity < Number.MAX_VALUE) {
var lruEntry = lruHash[key];
if (!lruEntry) return;
refresh(lruEntry);
}
return data[key];
},
/**
* @ngdoc method
* @name $cacheFactory.Cache#remove
* @kind function
*
* @description
* Removes an entry from the {@link $cacheFactory.Cache Cache} object.
*
* @param {string} key the key of the entry to be removed
*/
remove: function remove(key) {
if (capacity < Number.MAX_VALUE) {
var lruEntry = lruHash[key];
if (!lruEntry) return;
if (lruEntry === freshEnd) freshEnd = lruEntry.p;
if (lruEntry === staleEnd) staleEnd = lruEntry.n;
link(lruEntry.n, lruEntry.p);
delete lruHash[key];
}
if (!(key in data)) return;
delete data[key];
size--;
},
/**
* @ngdoc method
* @name $cacheFactory.Cache#removeAll
* @kind function
*
* @description
* Clears the cache object of any entries.
*/
removeAll: function removeAll() {
data = createMap();
size = 0;
lruHash = createMap();
freshEnd = staleEnd = null;
},
/**
* @ngdoc method
* @name $cacheFactory.Cache#destroy
* @kind function
*
* @description
* Destroys the {@link $cacheFactory.Cache Cache} object entirely,
* removing it from the {@link $cacheFactory $cacheFactory} set.
*/
destroy: function destroy() {
data = null;
stats = null;
lruHash = null;
delete caches[cacheId];
},
/**
* @ngdoc method
* @name $cacheFactory.Cache#info
* @kind function
*
* @description
* Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.
*
* @returns {object} an object with the following properties:
* <ul>
* <li>**id**: the id of the cache instance</li>
* <li>**size**: the number of entries kept in the cache instance</li>
* <li>**...**: any additional properties from the options object when creating the
* cache.</li>
* </ul>
*/
info: function info() {
return extend({}, stats, { size: size });
}
};
/**
* makes the `entry` the freshEnd of the LRU linked list
*/
function refresh(entry) {
if (entry !== freshEnd) {
if (!staleEnd) {
staleEnd = entry;
} else if (staleEnd === entry) {
staleEnd = entry.n;
}
link(entry.n, entry.p);
link(entry, freshEnd);
freshEnd = entry;
freshEnd.n = null;
}
}
/**
* bidirectionally links two entries of the LRU linked list
*/
function link(nextEntry, prevEntry) {
if (nextEntry !== prevEntry) {
if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
}
}
}
/**
* @ngdoc method
* @name $cacheFactory#info
*
* @description
* Get information about all the caches that have been created
*
* @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`
*/
cacheFactory.info = function () {
var info = {};
forEach(caches, function (cache, cacheId) {
info[cacheId] = cache.info();
});
return info;
};
/**
* @ngdoc method
* @name $cacheFactory#get
*
* @description
* Get access to a cache object by the `cacheId` used when it was created.
*
* @param {string} cacheId Name or id of a cache to access.
* @returns {object} Cache object identified by the cacheId or undefined if no such cache.
*/
cacheFactory.get = function (cacheId) {
return caches[cacheId];
};
return cacheFactory;
};
}
/**
* @ngdoc service
* @name $templateCache
* @this
*
* @description
* `$templateCache` is a {@link $cacheFactory.Cache Cache object} created by the
* {@link ng.$cacheFactory $cacheFactory}.
*
* The first time a template is used, it is loaded in the template cache for quick retrieval. You
* can load templates directly into the cache in a `script` tag, by using {@link $templateRequest},
* or by consuming the `$templateCache` service directly.
*
* Adding via the `script` tag:
*
* ```html
* <script type="text/ng-template" id="templateId.html">
* <p>This is the content of the template</p>
* </script>
* ```
*
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
* the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (e.g.
* element with {@link ngApp} attribute), otherwise the template will be ignored.
*
* Adding via the `$templateCache` service:
*
* ```js
* var myApp = angular.module('myApp', []);
* myApp.run(function($templateCache) {
* $templateCache.put('templateId.html', 'This is the content of the template');
* });
* ```
*
* To retrieve the template later, simply use it in your component:
* ```js
* myApp.component('myComponent', {
* templateUrl: 'templateId.html'
* });
* ```
*
* or get it via the `$templateCache` service:
* ```js
* $templateCache.get('templateId.html')
* ```
*
*/
function $TemplateCacheProvider() {
this.$get = ['$cacheFactory', function ($cacheFactory) {
return $cacheFactory('templates');
}];
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying *
* this file is required. *
* *
* Does the change somehow allow for arbitrary javascript to be executed? *
* Or allows for someone to change the prototype of built-in objects? *
* Or gives undesired access to variables like document or window? *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
*
* DOM-related variables:
*
* - "node" - DOM Node
* - "element" - DOM Element or Node
* - "$node" or "$element" - jqLite-wrapped node or element
*
*
* Compiler related stuff:
*
* - "linkFn" - linking fn of a single directive
* - "nodeLinkFn" - function that aggregates all linking fns for a particular node
* - "childLinkFn" - function that aggregates all linking fns for child nodes of a particular node
* - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList)
*/
/**
* @ngdoc service
* @name $compile
* @kind function
*
* @description
* Compiles an HTML string or DOM into a template and produces a template function, which
* can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.
*
* The compilation is a process of walking the DOM tree and matching DOM elements to
* {@link ng.$compileProvider#directive directives}.
*
* <div class="alert alert-warning">
* **Note:** This document is an in-depth reference of all directive options.
* For a gentle introduction to directives with examples of common use cases,
* see the {@link guide/directive directive guide}.
* </div>
*
* ## Comprehensive Directive API
*
* There are many different options for a directive.
*
* The difference resides in the return value of the factory function.
* You can either return a {@link $compile#directive-definition-object Directive Definition Object (see below)}
* that defines the directive properties, or just the `postLink` function (all other properties will have
* the default values).
*
* <div class="alert alert-success">
* **Best Practice:** It's recommended to use the "directive definition object" form.
* </div>
*
* Here's an example directive declared with a Directive Definition Object:
*
* ```js
* var myModule = angular.module(...);
*
* myModule.directive('directiveName', function factory(injectables) {
* var directiveDefinitionObject = {
* {@link $compile#-priority- priority}: 0,
* {@link $compile#-template- template}: '<div></div>', // or // function(tElement, tAttrs) { ... },
* // or
* // {@link $compile#-templateurl- templateUrl}: 'directive.html', // or // function(tElement, tAttrs) { ... },
* {@link $compile#-transclude- transclude}: false,
* {@link $compile#-restrict- restrict}: 'A',
* {@link $compile#-templatenamespace- templateNamespace}: 'html',
* {@link $compile#-scope- scope}: false,
* {@link $compile#-controller- controller}: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
* {@link $compile#-controlleras- controllerAs}: 'stringIdentifier',
* {@link $compile#-bindtocontroller- bindToController}: false,
* {@link $compile#-require- require}: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
* {@link $compile#-multielement- multiElement}: false,
* {@link $compile#-compile- compile}: function compile(tElement, tAttrs, transclude) {
* return {
* {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
* {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
* }
* // or
* // return function postLink( ... ) { ... }
* },
* // or
* // {@link $compile#-link- link}: {
* // {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
* // {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
* // }
* // or
* // {@link $compile#-link- link}: function postLink( ... ) { ... }
* };
* return directiveDefinitionObject;
* });
* ```
*
* <div class="alert alert-warning">
* **Note:** Any unspecified options will use the default value. You can see the default values below.
* </div>
*
* Therefore the above can be simplified as:
*
* ```js
* var myModule = angular.module(...);
*
* myModule.directive('directiveName', function factory(injectables) {
* var directiveDefinitionObject = {
* link: function postLink(scope, iElement, iAttrs) { ... }
* };
* return directiveDefinitionObject;
* // or
* // return function postLink(scope, iElement, iAttrs) { ... }
* });
* ```
*
* ### Life-cycle hooks
* Directive controllers can provide the following methods that are called by Angular at points in the life-cycle of the
* directive:
* * `$onInit()` - Called on each controller after all the controllers on an element have been constructed and
* had their bindings initialized (and before the pre &amp; post linking functions for the directives on
* this element). This is a good place to put initialization code for your controller.
* * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The
* `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an
* object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a
* component such as cloning the bound value to prevent accidental mutation of the outer value. Note that this will
* also be called when your bindings are initialized.
* * `$doCheck()` - Called on each turn of the digest cycle. Provides an opportunity to detect and act on
* changes. Any actions that you wish to take in response to the changes that you detect must be
* invoked from this hook; implementing this has no effect on when `$onChanges` is called. For example, this hook
* could be useful if you wish to perform a deep equality check, or to check a Date object, changes to which would not
* be detected by Angular's change detector and thus not trigger `$onChanges`. This hook is invoked with no arguments;
* if detecting changes, you must store the previous value(s) for comparison to the current values.
* * `$onDestroy()` - Called on a controller when its containing scope is destroyed. Use this hook for releasing
* external resources, watches and event handlers. Note that components have their `$onDestroy()` hooks called in
* the same order as the `$scope.$broadcast` events are triggered, which is top down. This means that parent
* components will have their `$onDestroy()` hook called before child components.
* * `$postLink()` - Called after this controller's element and its children have been linked. Similar to the post-link
* function this hook can be used to set up DOM event handlers and do direct DOM manipulation.
* Note that child elements that contain `templateUrl` directives will not have been compiled and linked since
* they are waiting for their template to load asynchronously and their own compilation and linking has been
* suspended until that occurs.
*
* #### Comparison with Angular 2 life-cycle hooks
* Angular 2 also uses life-cycle hooks for its components. While the Angular 1 life-cycle hooks are similar there are
* some differences that you should be aware of, especially when it comes to moving your code from Angular 1 to Angular 2:
*
* * Angular 1 hooks are prefixed with `$`, such as `$onInit`. Angular 2 hooks are prefixed with `ng`, such as `ngOnInit`.
* * Angular 1 hooks can be defined on the controller prototype or added to the controller inside its constructor.
* In Angular 2 you can only define hooks on the prototype of the Component class.
* * Due to the differences in change-detection, you may get many more calls to `$doCheck` in Angular 1 than you would to
* `ngDoCheck` in Angular 2
* * Changes to the model inside `$doCheck` will trigger new turns of the digest loop, which will cause the changes to be
* propagated throughout the application.
* Angular 2 does not allow the `ngDoCheck` hook to trigger a change outside of the component. It will either throw an
* error or do nothing depending upon the state of `enableProdMode()`.
*
* #### Life-cycle hook examples
*
* This example shows how you can check for mutations to a Date object even though the identity of the object
* has not changed.
*
* <example name="doCheckDateExample" module="do-check-module">
* <file name="app.js">
* angular.module('do-check-module', [])
* .component('app', {
* template:
* 'Month: <input ng-model="$ctrl.month" ng-change="$ctrl.updateDate()">' +
* 'Date: {{ $ctrl.date }}' +
* '<test date="$ctrl.date"></test>',
* controller: function() {
* this.date = new Date();
* this.month = this.date.getMonth();
* this.updateDate = function() {
* this.date.setMonth(this.month);
* };
* }
* })
* .component('test', {
* bindings: { date: '<' },
* template:
* '<pre>{{ $ctrl.log | json }}</pre>',
* controller: function() {
* var previousValue;
* this.log = [];
* this.$doCheck = function() {
* var currentValue = this.date && this.date.valueOf();
* if (previousValue !== currentValue) {
* this.log.push('doCheck: date mutated: ' + this.date);
* previousValue = currentValue;
* }
* };
* }
* });
* </file>
* <file name="index.html">
* <app></app>
* </file>
* </example>
*
* This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the
* actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large
* arrays or objects can have a negative impact on your application performance)
*
* <example name="doCheckArrayExample" module="do-check-module">
* <file name="index.html">
* <div ng-init="items = []">
* <button ng-click="items.push(items.length)">Add Item</button>
* <button ng-click="items = []">Reset Items</button>
* <pre>{{ items }}</pre>
* <test items="items"></test>
* </div>
* </file>
* <file name="app.js">
* angular.module('do-check-module', [])
* .component('test', {
* bindings: { items: '<' },
* template:
* '<pre>{{ $ctrl.log | json }}</pre>',
* controller: function() {
* this.log = [];
*
* this.$doCheck = function() {
* if (this.items_ref !== this.items) {
* this.log.push('doCheck: items changed');
* this.items_ref = this.items;
* }
* if (!angular.equals(this.items_clone, this.items)) {
* this.log.push('doCheck: items mutated');
* this.items_clone = angular.copy(this.items);
* }
* };
* }
* });
* </file>
* </example>
*
*
* ### Directive Definition Object
*
* The directive definition object provides instructions to the {@link ng.$compile
* compiler}. The attributes are:
*
* #### `multiElement`
* When this property is set to true (default is `false`), the HTML compiler will collect DOM nodes between
* nodes with the attributes `directive-name-start` and `directive-name-end`, and group them
* together as the directive elements. It is recommended that this feature be used on directives
* which are not strictly behavioral (such as {@link ngClick}), and which
* do not manipulate or replace child nodes (such as {@link ngInclude}).
*
* #### `priority`
* When there are multiple directives defined on a single DOM element, sometimes it
* is necessary to specify the order in which the directives are applied. The `priority` is used
* to sort the directives before their `compile` functions get called. Priority is defined as a
* number. Directives with greater numerical `priority` are compiled first. Pre-link functions
* are also run in priority order, but post-link functions are run in reverse order. The order
* of directives with the same priority is undefined. The default priority is `0`.
*
* #### `terminal`
* If set to true then the current `priority` will be the last set of directives
* which will execute (any directives at the current priority will still execute
* as the order of execution on same `priority` is undefined). Note that expressions
* and other directives used in the directive's template will also be excluded from execution.
*
* #### `scope`
* The scope property can be `false`, `true`, or an object:
*
* * **`false` (default):** No scope will be created for the directive. The directive will use its
* parent's scope.
*
* * **`true`:** A new child scope that prototypically inherits from its parent will be created for
* the directive's element. If multiple directives on the same element request a new scope,
* only one new scope is created.
*
* * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's template.
* The 'isolate' scope differs from normal scope in that it does not prototypically
* inherit from its parent scope. This is useful when creating reusable components, which should not
* accidentally read or modify data in the parent scope. Note that an isolate scope
* directive without a `template` or `templateUrl` will not apply the isolate scope
* to its children elements.
*
* The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the
* directive's element. These local properties are useful for aliasing values for templates. The keys in
* the object hash map to the name of the property on the isolate scope; the values define how the property
* is bound to the parent scope, via matching attributes on the directive's element:
*
* * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is
* always a string since DOM attributes are strings. If no `attr` name is specified then the
* attribute name is assumed to be the same as the local name. Given `<my-component
* my-attr="hello {{name}}">` and the isolate scope definition `scope: { localName:'@myAttr' }`,
* the directive's scope property `localName` will reflect the interpolated value of `hello
* {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's
* scope. The `name` is read from the parent scope (not the directive's scope).
*
* * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression
* passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.
* If no `attr` name is specified then the attribute name is assumed to be the same as the local
* name. Given `<my-component my-attr="parentModel">` and the isolate scope definition `scope: {
* localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the
* value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in
* `localModel` and vice versa. Optional attributes should be marked as such with a question mark:
* `=?` or `=?attr`. If the binding expression is non-assignable, or if the attribute isn't
* optional and doesn't exist, an exception ({@link error/$compile/nonassign `$compile:nonassign`})
* will be thrown upon discovering changes to the local value, since it will be impossible to sync
* them back to the parent scope. By default, the {@link ng.$rootScope.Scope#$watch `$watch`}
* method is used for tracking changes, and the equality check is based on object identity.
* However, if an object literal or an array literal is passed as the binding expression, the
* equality check is done by value (using the {@link angular.equals} function). It's also possible
* to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection
* `$watchCollection`}: use `=*` or `=*attr` (`=*?` or `=*?attr` if the attribute is optional).
*
* * `<` or `<attr` - set up a one-way (one-directional) binding between a local scope property and an
* expression passed via the attribute `attr`. The expression is evaluated in the context of the
* parent scope. If no `attr` name is specified then the attribute name is assumed to be the same as the
* local name. You can also make the binding optional by adding `?`: `<?` or `<?attr`.
*
* For example, given `<my-component my-attr="parentModel">` and directive definition of
* `scope: { localModel:'<myAttr' }`, then the isolated scope property `localModel` will reflect the
* value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected
* in `localModel`, but changes in `localModel` will not reflect in `parentModel`. There are however
* two caveats:
* 1. one-way binding does not copy the value from the parent to the isolate scope, it simply
* sets the same value. That means if your bound value is an object, changes to its properties
* in the isolated scope will be reflected in the parent scope (because both reference the same object).
* 2. one-way binding watches changes to the **identity** of the parent value. That means the
* {@link ng.$rootScope.Scope#$watch `$watch`} on the parent value only fires if the reference
* to the value has changed. In most cases, this should not be of concern, but can be important
* to know if you one-way bind to an object, and then replace that object in the isolated scope.
* If you now change a property of the object in your parent scope, the change will not be
* propagated to the isolated scope, because the identity of the object on the parent scope
* has not changed. Instead you must assign a new object.
*
* One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings
* back to the parent. However, it does not make this completely impossible.
*
* * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If
* no `attr` name is specified then the attribute name is assumed to be the same as the local name.
* Given `<my-component my-attr="count = count + value">` and the isolate scope definition `scope: {
* localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for
* the `count = count + value` expression. Often it's desirable to pass data from the isolated scope
* via an expression to the parent scope. This can be done by passing a map of local variable names
* and values into the expression wrapper fn. For example, if the expression is `increment(amount)`
* then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.
*
* In general it's possible to apply more than one directive to one element, but there might be limitations
* depending on the type of scope required by the directives. The following points will help explain these limitations.
* For simplicity only two directives are taken into account, but it is also applicable for several directives:
*
* * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope
* * **child scope** + **no scope** => Both directives will share one single child scope
* * **child scope** + **child scope** => Both directives will share one single child scope
* * **isolated scope** + **no scope** => The isolated directive will use it's own created isolated scope. The other directive will use
* its parent's scope
* * **isolated scope** + **child scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives cannot
* be applied to the same element.
* * **isolated scope** + **isolated scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives
* cannot be applied to the same element.
*
*
* #### `bindToController`
* This property is used to bind scope properties directly to the controller. It can be either
* `true` or an object hash with the same format as the `scope` property.
*
* When an isolate scope is used for a directive (see above), `bindToController: true` will
* allow a component to have its properties bound to the controller, rather than to scope.
*
* After the controller is instantiated, the initial values of the isolate scope bindings will be bound to the controller
* properties. You can access these bindings once they have been initialized by providing a controller method called
* `$onInit`, which is called after all the controllers on an element have been constructed and had their bindings
* initialized.
*
* <div class="alert alert-warning">
* **Deprecation warning:** if `$compileProcvider.preAssignBindingsEnabled(true)` was called, bindings for non-ES6 class
* controllers are bound to `this` before the controller constructor is called but this use is now deprecated. Please
* place initialization code that relies upon bindings inside a `$onInit` method on the controller, instead.
* </div>
*
* It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.
* This will set up the scope bindings to the controller directly. Note that `scope` can still be used
* to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate
* scope (useful for component directives).
*
* If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.
*
*
* #### `controller`
* Controller constructor function. The controller is instantiated before the
* pre-linking phase and can be accessed by other directives (see
* `require` attribute). This allows the directives to communicate with each other and augment
* each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:
*
* * `$scope` - Current scope associated with the element
* * `$element` - Current element
* * `$attrs` - Current attributes object for the element
* * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:
* `function([scope], cloneLinkingFn, futureParentElement, slotName)`:
* * `scope`: (optional) override the scope.
* * `cloneLinkingFn`: (optional) argument to create clones of the original transcluded content.
* * `futureParentElement` (optional):
* * defines the parent to which the `cloneLinkingFn` will add the cloned elements.
* * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.
* * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)
* and when the `cloneLinkingFn` is passed,
* as those elements need to created and cloned in a special way when they are defined outside their
* usual containers (e.g. like `<svg>`).
* * See also the `directive.templateNamespace` property.
* * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
* then the default transclusion is provided.
* The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
* `true` if the specified slot contains content (i.e. one or more DOM nodes).
*
* #### `require`
* Require another directive and inject its controller as the fourth argument to the linking function. The
* `require` property can be a string, an array or an object:
* * a **string** containing the name of the directive to pass to the linking function
* * an **array** containing the names of directives to pass to the linking function. The argument passed to the
* linking function will be an array of controllers in the same order as the names in the `require` property
* * an **object** whose property values are the names of the directives to pass to the linking function. The argument
* passed to the linking function will also be an object with matching keys, whose values will hold the corresponding
* controllers.
*
* If the `require` property is an object and `bindToController` is truthy, then the required controllers are
* bound to the controller using the keys of the `require` property. This binding occurs after all the controllers
* have been constructed but before `$onInit` is called.
* If the name of the required controller is the same as the local name (the key), the name can be
* omitted. For example, `{parentDir: '^^'}` is equivalent to `{parentDir: '^^parentDir'}`.
* See the {@link $compileProvider#component} helper for an example of how this can be used.
* If no such required directive(s) can be found, or if the directive does not have a controller, then an error is
* raised (unless no link function is specified and the required controllers are not being bound to the directive
* controller, in which case error checking is skipped). The name can be prefixed with:
*
* * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
* * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
* * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
* * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.
* * `?^` - Attempt to locate the required controller by searching the element and its parents or pass
* `null` to the `link` fn if not found.
* * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass
* `null` to the `link` fn if not found.
*
*
* #### `controllerAs`
* Identifier name for a reference to the controller in the directive's scope.
* This allows the controller to be referenced from the directive template. This is especially
* useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible
* to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the
* `controllerAs` reference might overwrite a property that already exists on the parent scope.
*
*
* #### `restrict`
* String of subset of `EACM` which restricts the directive to a specific directive
* declaration style. If omitted, the defaults (elements and attributes) are used.
*
* * `E` - Element name (default): `<my-directive></my-directive>`
* * `A` - Attribute (default): `<div my-directive="exp"></div>`
* * `C` - Class: `<div class="my-directive: exp;"></div>`
* * `M` - Comment: `<!-- directive: my-directive exp -->`
*
*
* #### `templateNamespace`
* String representing the document type used by the markup in the template.
* AngularJS needs this information as those elements need to be created and cloned
* in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.
*
* * `html` - All root nodes in the template are HTML. Root nodes may also be
* top-level elements such as `<svg>` or `<math>`.
* * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).
* * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).
*
* If no `templateNamespace` is specified, then the namespace is considered to be `html`.
*
* #### `template`
* HTML markup that may:
* * Replace the contents of the directive's element (default).
* * Replace the directive's element itself (if `replace` is true - DEPRECATED).
* * Wrap the contents of the directive's element (if `transclude` is true).
*
* Value may be:
*
* * A string. For example `<div red-on-hover>{{delete_str}}</div>`.
* * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`
* function api below) and returns a string value.
*
*
* #### `templateUrl`
* This is similar to `template` but the template is loaded from the specified URL, asynchronously.
*
* Because template loading is asynchronous the compiler will suspend compilation of directives on that element
* for later when the template has been resolved. In the meantime it will continue to compile and link
* sibling and parent elements as though this element had not contained any directives.
*
* The compiler does not suspend the entire compilation to wait for templates to be loaded because this
* would result in the whole app "stalling" until all templates are loaded asynchronously - even in the
* case when only one deeply nested directive has `templateUrl`.
*
* Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}
*
* You can specify `templateUrl` as a string representing the URL or as a function which takes two
* arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns
* a string value representing the url. In either case, the template URL is passed through {@link
* $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.
*
*
* #### `replace` (*DEPRECATED*)
*
* `replace` will be removed in next major release - i.e. v2.0).
*
* Specifies what the template should replace. Defaults to `false`.
*
* * `true` - the template will replace the directive's element.
* * `false` - the template will replace the contents of the directive's element.
*
* The replacement process migrates all of the attributes / classes from the old element to the new
* one. See the {@link guide/directive#template-expanding-directive
* Directives Guide} for an example.
*
* There are very few scenarios where element replacement is required for the application function,
* the main one being reusable custom components that are used within SVG contexts
* (because SVG doesn't work with custom elements in the DOM tree).
*
* #### `transclude`
* Extract the contents of the element where the directive appears and make it available to the directive.
* The contents are compiled and provided to the directive as a **transclusion function**. See the
* {@link $compile#transclusion Transclusion} section below.
*
*
* #### `compile`
*
* ```js
* function compile(tElement, tAttrs, transclude) { ... }
* ```
*
* The compile function deals with transforming the template DOM. Since most directives do not do
* template transformation, it is not used often. The compile function takes the following arguments:
*
* * `tElement` - template element - The element where the directive has been declared. It is
* safe to do template transformation on the element and child elements only.
*
* * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared
* between all directive compile functions.
*
* * `transclude` - [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`
*
* <div class="alert alert-warning">
* **Note:** The template instance and the link instance may be different objects if the template has
* been cloned. For this reason it is **not** safe to do anything other than DOM transformations that
* apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration
* should be done in a linking function rather than in a compile function.
* </div>
* <div class="alert alert-warning">
* **Note:** The compile function cannot handle directives that recursively use themselves in their
* own templates or compile functions. Compiling these directives results in an infinite loop and
* stack overflow errors.
*
* This can be avoided by manually using $compile in the postLink function to imperatively compile
* a directive's template instead of relying on automatic template compilation via `template` or
* `templateUrl` declaration or manual compilation inside the compile function.
* </div>
*
* <div class="alert alert-danger">
* **Note:** The `transclude` function that is passed to the compile function is deprecated, as it
* e.g. does not know about the right outer scope. Please use the transclude function that is passed
* to the link function instead.
* </div>
* A compile function can have a return value which can be either a function or an object.
*
* * returning a (post-link) function - is equivalent to registering the linking function via the
* `link` property of the config object when the compile function is empty.
*
* * returning an object with function(s) registered via `pre` and `post` properties - allows you to
* control when a linking function should be called during the linking phase. See info about
* pre-linking and post-linking functions below.
*
*
* #### `link`
* This property is used only if the `compile` property is not defined.
*
* ```js
* function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }
* ```
*
* The link function is responsible for registering DOM listeners as well as updating the DOM. It is
* executed after the template has been cloned. This is where most of the directive logic will be
* put.
*
* * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the
* directive for registering {@link ng.$rootScope.Scope#$watch watches}.
*
* * `iElement` - instance element - The element where the directive is to be used. It is safe to
* manipulate the children of the element only in `postLink` function since the children have
* already been linked.
*
* * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared
* between all directive linking functions.
*
* * `controller` - the directive's required controller instance(s) - Instances are shared
* among all directives, which allows the directives to use the controllers as a communication
* channel. The exact value depends on the directive's `require` property:
* * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one
* * `string`: the controller instance
* * `array`: array of controller instances
*
* If a required controller cannot be found, and it is optional, the instance is `null`,
* otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.
*
* Note that you can also require the directive's own controller - it will be made available like
* any other controller.
*
* * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
* This is the same as the `$transclude` parameter of directive controllers,
* see {@link ng.$compile#-controller- the controller section for details}.
* `function([scope], cloneLinkingFn, futureParentElement)`.
*
* #### Pre-linking function
*
* Executed before the child elements are linked. Not safe to do DOM transformation since the
* compiler linking function will fail to locate the correct elements for linking.
*
* #### Post-linking function
*
* Executed after the child elements are linked.
*
* Note that child elements that contain `templateUrl` directives will not have been compiled
* and linked since they are waiting for their template to load asynchronously and their own
* compilation and linking has been suspended until that occurs.
*
* It is safe to do DOM transformation in the post-linking function on elements that are not waiting
* for their async templates to be resolved.
*
*
* ### Transclusion
*
* Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and
* copying them to another part of the DOM, while maintaining their connection to the original AngularJS
* scope from where they were taken.
*
* Transclusion is used (often with {@link ngTransclude}) to insert the
* original contents of a directive's element into a specified place in the template of the directive.
* The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded
* content has access to the properties on the scope from which it was taken, even if the directive
* has isolated scope.
* See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.
*
* This makes it possible for the widget to have private state for its template, while the transcluded
* content has access to its originating scope.
*
* <div class="alert alert-warning">
* **Note:** When testing an element transclude directive you must not place the directive at the root of the
* DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives
* Testing Transclusion Directives}.
* </div>
*
* There are three kinds of transclusion depending upon whether you want to transclude just the contents of the
* directive's element, the entire element or multiple parts of the element contents:
*
* * `true` - transclude the content (i.e. the child nodes) of the directive's element.
* * `'element'` - transclude the whole of the directive's element including any directives on this
* element that defined at a lower priority than this directive. When used, the `template`
* property is ignored.
* * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template.
*
* **Mult-slot transclusion** is declared by providing an object for the `transclude` property.
*
* This object is a map where the keys are the name of the slot to fill and the value is an element selector
* used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)
* and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).
*
* For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
*
* If the element selector is prefixed with a `?` then that slot is optional.
*
* For example, the transclude object `{ slotA: '?myCustomElement' }` maps `<my-custom-element>` elements to
* the `slotA` slot, which can be accessed via the `$transclude` function or via the {@link ngTransclude} directive.
*
* Slots that are not marked as optional (`?`) will trigger a compile time error if there are no matching elements
* in the transclude content. If you wish to know if an optional slot was filled with content, then you can call
* `$transclude.isSlotFilled(slotName)` on the transclude function passed to the directive's link function and
* injectable into the directive's controller.
*
*
* #### Transclusion Functions
*
* When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion
* function** to the directive's `link` function and `controller`. This transclusion function is a special
* **linking function** that will return the compiled contents linked to a new transclusion scope.
*
* <div class="alert alert-info">
* If you are just using {@link ngTransclude} then you don't need to worry about this function, since
* ngTransclude will deal with it for us.
* </div>
*
* If you want to manually control the insertion and removal of the transcluded content in your directive
* then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery
* object that contains the compiled DOM, which is linked to the correct transclusion scope.
*
* When you call a transclusion function you can pass in a **clone attach function**. This function accepts
* two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded
* content and the `scope` is the newly created transclusion scope, which the clone will be linked to.
*
* <div class="alert alert-info">
* **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function
* since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.
* </div>
*
* It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone
* attach function**:
*
* ```js
* var transcludedContent, transclusionScope;
*
* $transclude(function(clone, scope) {
* element.append(clone);
* transcludedContent = clone;
* transclusionScope = scope;
* });
* ```
*
* Later, if you want to remove the transcluded content from your DOM then you should also destroy the
* associated transclusion scope:
*
* ```js
* transcludedContent.remove();
* transclusionScope.$destroy();
* ```
*
* <div class="alert alert-info">
* **Best Practice**: if you intend to add and remove transcluded content manually in your directive
* (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),
* then you are also responsible for calling `$destroy` on the transclusion scope.
* </div>
*
* The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}
* automatically destroy their transcluded clones as necessary so you do not need to worry about this if
* you are simply using {@link ngTransclude} to inject the transclusion into your directive.
*
*
* #### Transclusion Scopes
*
* When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion
* scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed
* when the directive's scope gets destroyed) but it inherits the properties of the scope from which it
* was taken.
*
* For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look
* like this:
*
* ```html
* <div ng-app>
* <div isolate>
* <div transclusion>
* </div>
* </div>
* </div>
* ```
*
* The `$parent` scope hierarchy will look like this:
*
```
- $rootScope
- isolate
- transclusion
```
*
* but the scopes will inherit prototypically from different scopes to their `$parent`.
*
```
- $rootScope
- transclusion
- isolate
```
*
*
* ### Attributes
*
* The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the
* `link()` or `compile()` functions. It has a variety of uses.
*
* * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways:
* 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access
* to the attributes.
*
* * *Directive inter-communication:* All directives share the same instance of the attributes
* object which allows the directives to use the attributes object as inter directive
* communication.
*
* * *Supports interpolation:* Interpolation attributes are assigned to the attribute object
* allowing other directives to read the interpolated value.
*
* * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes
* that contain interpolation (e.g. `src="{{bar}}"`). Not only is this very efficient but it's also
* the only way to easily get the actual value because during the linking phase the interpolation
* hasn't been evaluated yet and so the value is at this time set to `undefined`.
*
* ```js
* function linkingFn(scope, elm, attrs, ctrl) {
* // get the attribute value
* console.log(attrs.ngModel);
*
* // change the attribute
* attrs.$set('ngModel', 'new value');
*
* // observe changes to interpolated attribute
* attrs.$observe('ngModel', function(value) {
* console.log('ngModel has changed value to ' + value);
* });
* }
* ```
*
* ## Example
*
* <div class="alert alert-warning">
* **Note**: Typically directives are registered with `module.directive`. The example below is
* to illustrate how `$compile` works.
* </div>
*
<example module="compileExample" name="compile">
<file name="index.html">
<script>
angular.module('compileExample', [], function($compileProvider) {
// configure new 'compile' directive by passing a directive
// factory function. The factory function injects the '$compile'
$compileProvider.directive('compile', function($compile) {
// directive factory creates a link function
return function(scope, element, attrs) {
scope.$watch(
function(scope) {
// watch the 'compile' expression for changes
return scope.$eval(attrs.compile);
},
function(value) {
// when the 'compile' expression changes
// assign it into the current DOM
element.html(value);
// compile the new DOM and link it to the current
// scope.
// NOTE: we only compile .childNodes so that
// we don't get into infinite loop compiling ourselves
$compile(element.contents())(scope);
}
);
};
});
})
.controller('GreeterController', ['$scope', function($scope) {
$scope.name = 'Angular';
$scope.html = 'Hello {{name}}';
}]);
</script>
<div ng-controller="GreeterController">
<input ng-model="name"> <br/>
<textarea ng-model="html"></textarea> <br/>
<div compile="html"></div>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should auto compile', function() {
var textarea = $('textarea');
var output = $('div[compile]');
// The initial state reads 'Hello Angular'.
expect(output.getText()).toBe('Hello Angular');
textarea.clear();
textarea.sendKeys('{{name}}!');
expect(output.getText()).toBe('Angular!');
});
</file>
</example>
*
*
* @param {string|DOMElement} element Element or HTML string to compile into a template function.
* @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.
*
* <div class="alert alert-danger">
* **Note:** Passing a `transclude` function to the $compile function is deprecated, as it
* e.g. will not use the right outer scope. Please pass the transclude function as a
* `parentBoundTranscludeFn` to the link function instead.
* </div>
*
* @param {number} maxPriority only apply directives lower than given priority (Only effects the
* root element(s), not their children)
* @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template
* (a DOM element/tree) to a scope. Where:
*
* * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
* * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
* `template` and call the `cloneAttachFn` function allowing the caller to attach the
* cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
* called as: <br/> `cloneAttachFn(clonedElement, scope)` where:
*
* * `clonedElement` - is a clone of the original `element` passed into the compiler.
* * `scope` - is the current scope with which the linking function is working with.
*
* * `options` - An optional object hash with linking options. If `options` is provided, then the following
* keys may be used to control linking behavior:
*
* * `parentBoundTranscludeFn` - the transclude function made available to
* directives; if given, it will be passed through to the link functions of
* directives found in `element` during compilation.
* * `transcludeControllers` - an object hash with keys that map controller names
* to a hash with the key `instance`, which maps to the controller instance;
* if given, it will make the controllers available to directives on the compileNode:
* ```
* {
* parent: {
* instance: parentControllerInstance
* }
* }
* ```
* * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
* the cloned elements; only needed for transcludes that are allowed to contain non html
* elements (e.g. SVG elements). See also the directive.controller property.
*
* Calling the linking function returns the element of the template. It is either the original
* element passed in, or the clone of the element if the `cloneAttachFn` is provided.
*
* After linking the view is not updated until after a call to $digest which typically is done by
* Angular automatically.
*
* If you need access to the bound view, there are two ways to do it:
*
* - If you are not asking the linking function to clone the template, create the DOM element(s)
* before you send them to the compiler and keep this reference around.
* ```js
* var element = $compile('<p>{{total}}</p>')(scope);
* ```
*
* - if on the other hand, you need the element to be cloned, the view reference from the original
* example would not point to the clone, but rather to the original template that was cloned. In
* this case, you can access the clone via the cloneAttachFn:
* ```js
* var templateElement = angular.element('<p>{{total}}</p>'),
* scope = ....;
*
* var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
* //attach the clone to DOM document at the right place
* });
*
* //now we have reference to the cloned DOM via `clonedElement`
* ```
*
*
* For information on how the compiler works, see the
* {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.
*
* @knownIssue
*
* ### Double Compilation
*
Double compilation occurs when an already compiled part of the DOM gets
compiled again. This is an undesired effect and can lead to misbehaving directives, performance issues,
and memory leaks. Refer to the Compiler Guide {@link guide/compiler#double-compilation-and-how-to-avoid-it
section on double compilation} for an in-depth explanation and ways to avoid it.
*
*/
var $compileMinErr = minErr('$compile');
function UNINITIALIZED_VALUE() {}
var _UNINITIALIZED_VALUE = new UNINITIALIZED_VALUE();
/**
* @ngdoc provider
* @name $compileProvider
*
* @description
*/
$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];
/** @this */
function $CompileProvider($provide, $$sanitizeUriProvider) {
var hasDirectives = {},
Suffix = 'Directive',
COMMENT_DIRECTIVE_REGEXP = /^\s*directive:\s*([\w-]+)\s+(.*)$/,
CLASS_DIRECTIVE_REGEXP = /(([\w-]+)(?::([^;]+))?;?)/,
ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),
REQUIRE_PREFIX_REGEXP = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/;
// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
// The assumption is that future DOM event attribute names will begin with
// 'on' and be composed of only English letters.
var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
var bindingCache = createMap();
function parseIsolateBindings(scope, directiveName, isController) {
var LOCAL_REGEXP = /^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/;
var bindings = createMap();
forEach(scope, function (definition, scopeName) {
if (definition in bindingCache) {
bindings[scopeName] = bindingCache[definition];
return;
}
var match = definition.match(LOCAL_REGEXP);
if (!match) {
throw $compileMinErr('iscp', 'Invalid {3} for directive \'{0}\'.' + ' Definition: {... {1}: \'{2}\' ...}', directiveName, scopeName, definition, isController ? 'controller bindings definition' : 'isolate scope definition');
}
bindings[scopeName] = {
mode: match[1][0],
collection: match[2] === '*',
optional: match[3] === '?',
attrName: match[4] || scopeName
};
if (match[4]) {
bindingCache[definition] = bindings[scopeName];
}
});
return bindings;
}
function parseDirectiveBindings(directive, directiveName) {
var bindings = {
isolateScope: null,
bindToController: null
};
if (isObject(directive.scope)) {
if (directive.bindToController === true) {
bindings.bindToController = parseIsolateBindings(directive.scope, directiveName, true);
bindings.isolateScope = {};
} else {
bindings.isolateScope = parseIsolateBindings(directive.scope, directiveName, false);
}
}
if (isObject(directive.bindToController)) {
bindings.bindToController = parseIsolateBindings(directive.bindToController, directiveName, true);
}
if (bindings.bindToController && !directive.controller) {
// There is no controller
throw $compileMinErr('noctrl', 'Cannot bind to controller without directive \'{0}\'s controller.', directiveName);
}
return bindings;
}
function assertValidDirectiveName(name) {
var letter = name.charAt(0);
if (!letter || letter !== lowercase(letter)) {
throw $compileMinErr('baddir', 'Directive/Component name \'{0}\' is invalid. The first character must be a lowercase letter', name);
}
if (name !== name.trim()) {
throw $compileMinErr('baddir', 'Directive/Component name \'{0}\' is invalid. The name should not contain leading or trailing whitespaces', name);
}
}
function getDirectiveRequire(directive) {
var require = directive.require || directive.controller && directive.name;
if (!isArray(require) && isObject(require)) {
forEach(require, function (value, key) {
var match = value.match(REQUIRE_PREFIX_REGEXP);
var name = value.substring(match[0].length);
if (!name) require[key] = match[0] + key;
});
}
return require;
}
function getDirectiveRestrict(restrict, name) {
if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {
throw $compileMinErr('badrestrict', 'Restrict property \'{0}\' of directive \'{1}\' is invalid', restrict, name);
}
return restrict || 'EA';
}
/**
* @ngdoc method
* @name $compileProvider#directive
* @kind function
*
* @description
* Register a new directive with the compiler.
*
* @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which
* will match as <code>ng-bind</code>), or an object map of directives where the keys are the
* names and the values are the factories.
* @param {Function|Array} directiveFactory An injectable directive factory function. See the
* {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
* @returns {ng.$compileProvider} Self for chaining.
*/
this.directive = function registerDirective(name, directiveFactory) {
assertArg(name, 'name');
assertNotHasOwnProperty(name, 'directive');
if (isString(name)) {
assertValidDirectiveName(name);
assertArg(directiveFactory, 'directiveFactory');
if (!hasDirectives.hasOwnProperty(name)) {
hasDirectives[name] = [];
$provide.factory(name + Suffix, ['$injector', '$exceptionHandler', function ($injector, $exceptionHandler) {
var directives = [];
forEach(hasDirectives[name], function (directiveFactory, index) {
try {
var directive = $injector.invoke(directiveFactory);
if (isFunction(directive)) {
directive = { compile: valueFn(directive) };
} else if (!directive.compile && directive.link) {
directive.compile = valueFn(directive.link);
}
directive.priority = directive.priority || 0;
directive.index = index;
directive.name = directive.name || name;
directive.require = getDirectiveRequire(directive);
directive.restrict = getDirectiveRestrict(directive.restrict, name);
directive.$$moduleName = directiveFactory.$$moduleName;
directives.push(directive);
} catch (e) {
$exceptionHandler(e);
}
});
return directives;
}]);
}
hasDirectives[name].push(directiveFactory);
} else {
forEach(name, reverseParams(registerDirective));
}
return this;
};
/**
* @ngdoc method
* @name $compileProvider#component
* @module ng
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
* or an object map of components where the keys are the names and the values are the component definition objects.
* @param {Object} options Component definition object (a simplified
* {@link ng.$compile#directive-definition-object directive definition object}),
* with the following properties (all optional):
*
* - `controller` `{(string|function()=}` controller constructor function that should be
* associated with newly created scope or the name of a {@link ng.$compile#-controller-
* registered controller} if passed as a string. An empty `noop` function by default.
* - `controllerAs` `{string=}` identifier name for to reference the controller in the component's scope.
* If present, the controller will be published to scope under the `controllerAs` name.
* If not present, this will default to be `$ctrl`.
* - `template` `{string=|function()=}` html template as a string or a function that
* returns an html template as a string which should be used as the contents of this component.
* Empty string by default.
*
* If `template` is a function, then it is {@link auto.$injector#invoke injected} with
* the following locals:
*
* - `$element` - Current element
* - `$attrs` - Current attributes object for the element
*
* - `templateUrl` `{string=|function()=}` path or function that returns a path to an html
* template that should be used as the contents of this component.
*
* If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with
* the following locals:
*
* - `$element` - Current element
* - `$attrs` - Current attributes object for the element
*
* - `bindings` `{object=}` defines bindings between DOM attributes and component properties.
* Component properties are always bound to the component controller and not to the scope.
* See {@link ng.$compile#-bindtocontroller- `bindToController`}.
* - `transclude` `{boolean=}` whether {@link $compile#transclusion content transclusion} is enabled.
* Disabled by default.
* - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to
* this component's controller. The object keys specify the property names under which the required
* controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.
* - `$...` additional properties to attach to the directive factory function and the controller
* constructor function. (This is used by the component router to annotate)
*
* @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.
* @description
* Register a **component definition** with the compiler. This is a shorthand for registering a special
* type of directive, which represents a self-contained UI component in your application. Such components
* are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
*
* Component definitions are very simple and do not require as much configuration as defining general
* directives. Component definitions usually consist only of a template and a controller backing it.
*
* In order to make the definition easier, components enforce best practices like use of `controllerAs`,
* `bindToController`. They always have **isolate scope** and are restricted to elements.
*
* Here are a few examples of how you would usually define components:
*
* ```js
* var myMod = angular.module(...);
* myMod.component('myComp', {
* template: '<div>My name is {{$ctrl.name}}</div>',
* controller: function() {
* this.name = 'shahar';
* }
* });
*
* myMod.component('myComp', {
* template: '<div>My name is {{$ctrl.name}}</div>',
* bindings: {name: '@'}
* });
*
* myMod.component('myComp', {
* templateUrl: 'views/my-comp.html',
* controller: 'MyCtrl',
* controllerAs: 'ctrl',
* bindings: {name: '@'}
* });
*
* ```
* For more examples, and an in-depth guide, see the {@link guide/component component guide}.
*
* <br />
* See also {@link ng.$compileProvider#directive $compileProvider.directive()}.
*/
this.component = function registerComponent(name, options) {
if (!isString(name)) {
forEach(name, reverseParams(bind(this, registerComponent)));
return this;
}
var controller = options.controller || function () {};
function factory($injector) {
function makeInjectable(fn) {
if (isFunction(fn) || isArray(fn)) {
return (/** @this */function (tElement, tAttrs) {
return $injector.invoke(fn, this, { $element: tElement, $attrs: tAttrs });
}
);
} else {
return fn;
}
}
var template = !options.template && !options.templateUrl ? '' : options.template;
var ddo = {
controller: controller,
controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',
template: makeInjectable(template),
templateUrl: makeInjectable(options.templateUrl),
transclude: options.transclude,
scope: {},
bindToController: options.bindings || {},
restrict: 'E',
require: options.require
};
// Copy annotations (starting with $) over to the DDO
forEach(options, function (val, key) {
if (key.charAt(0) === '$') ddo[key] = val;
});
return ddo;
}
// TODO(pete) remove the following `forEach` before we release 1.6.0
// The component-router@0.2.0 looks for the annotations on the controller constructor
// Nothing in Angular looks for annotations on the factory function but we can't remove
// it from 1.5.x yet.
// Copy any annotation properties (starting with $) over to the factory and controller constructor functions
// These could be used by libraries such as the new component router
forEach(options, function (val, key) {
if (key.charAt(0) === '$') {
factory[key] = val;
// Don't try to copy over annotations to named controller
if (isFunction(controller)) controller[key] = val;
}
});
factory.$inject = ['$injector'];
return this.directive(name, factory);
};
/**
* @ngdoc method
* @name $compileProvider#aHrefSanitizationWhitelist
* @kind function
*
* @description
* Retrieves or overrides the default regular expression that is used for whitelisting of safe
* urls during a[href] sanitization.
*
* The sanitization is a security measure aimed at preventing XSS attacks via html links.
*
* Any url about to be assigned to a[href] via data-binding is first normalized and turned into
* an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
*
* @param {RegExp=} regexp New regexp to whitelist urls with.
* @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
* chaining otherwise.
*/
this.aHrefSanitizationWhitelist = function (regexp) {
if (isDefined(regexp)) {
$$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);
return this;
} else {
return $$sanitizeUriProvider.aHrefSanitizationWhitelist();
}
};
/**
* @ngdoc method
* @name $compileProvider#imgSrcSanitizationWhitelist
* @kind function
*
* @description
* Retrieves or overrides the default regular expression that is used for whitelisting of safe
* urls during img[src] sanitization.
*
* The sanitization is a security measure aimed at prevent XSS attacks via html links.
*
* Any url about to be assigned to img[src] via data-binding is first normalized and turned into
* an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
*
* @param {RegExp=} regexp New regexp to whitelist urls with.
* @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
* chaining otherwise.
*/
this.imgSrcSanitizationWhitelist = function (regexp) {
if (isDefined(regexp)) {
$$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);
return this;
} else {
return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();
}
};
/**
* @ngdoc method
* @name $compileProvider#debugInfoEnabled
*
* @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the
* current debugInfoEnabled state
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*
* @kind function
*
* @description
* Call this method to enable/disable various debug runtime information in the compiler such as adding
* binding information and a reference to the current scope on to DOM elements.
* If enabled, the compiler will add the following to DOM elements that have been bound to the scope
* * `ng-binding` CSS class
* * `ng-scope` and `ng-isolated-scope` CSS classes
* * `$binding` data property containing an array of the binding expressions
* * Data properties used by the {@link angular.element#methods `scope()`/`isolateScope()` methods} to return
* the element's scope.
* * Placeholder comments will contain information about what directive and binding caused the placeholder.
* E.g. `<!-- ngIf: shouldShow() -->`.
*
* You may want to disable this in production for a significant performance boost. See
* {@link guide/production#disabling-debug-data Disabling Debug Data} for more.
*
* The default value is true.
*/
var debugInfoEnabled = true;
this.debugInfoEnabled = function (enabled) {
if (isDefined(enabled)) {
debugInfoEnabled = enabled;
return this;
}
return debugInfoEnabled;
};
/**
* @ngdoc method
* @name $compileProvider#preAssignBindingsEnabled
*
* @param {boolean=} enabled update the preAssignBindingsEnabled state if provided, otherwise just return the
* current preAssignBindingsEnabled state
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*
* @kind function
*
* @description
* Call this method to enable/disable whether directive controllers are assigned bindings before
* calling the controller's constructor.
* If enabled (true), the compiler assigns the value of each of the bindings to the
* properties of the controller object before the constructor of this object is called.
*
* If disabled (false), the compiler calls the constructor first before assigning bindings.
*
* The default value is false.
*
* @deprecated
* sinceVersion="1.6.0"
* removeVersion="1.7.0"
*
* This method and the option to assign the bindings before calling the controller's constructor
* will be removed in v1.7.0.
*/
var preAssignBindingsEnabled = false;
this.preAssignBindingsEnabled = function (enabled) {
if (isDefined(enabled)) {
preAssignBindingsEnabled = enabled;
return this;
}
return preAssignBindingsEnabled;
};
/**
* @ngdoc method
* @name $compileProvider#strictComponentBindingsEnabled
*
* @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided, otherwise just return the
* current strictComponentBindingsEnabled state
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*
* @kind function
*
* @description
* Call this method to enable/disable strict component bindings check. If enabled, the compiler will enforce that
* for all bindings of a component that are not set as optional with `?`, an attribute needs to be provided
* on the component's HTML tag.
*
* The default value is false.
*/
var strictComponentBindingsEnabled = false;
this.strictComponentBindingsEnabled = function (enabled) {
if (isDefined(enabled)) {
strictComponentBindingsEnabled = enabled;
return this;
}
return strictComponentBindingsEnabled;
};
var TTL = 10;
/**
* @ngdoc method
* @name $compileProvider#onChangesTtl
* @description
*
* Sets the number of times `$onChanges` hooks can trigger new changes before giving up and
* assuming that the model is unstable.
*
* The current default is 10 iterations.
*
* In complex applications it's possible that dependencies between `$onChanges` hooks and bindings will result
* in several iterations of calls to these hooks. However if an application needs more than the default 10
* iterations to stabilize then you should investigate what is causing the model to continuously change during
* the `$onChanges` hook execution.
*
* Increasing the TTL could have performance implications, so you should not change it without proper justification.
*
* @param {number} limit The number of `$onChanges` hook iterations.
* @returns {number|object} the current limit (or `this` if called as a setter for chaining)
*/
this.onChangesTtl = function (value) {
if (arguments.length) {
TTL = value;
return this;
}
return TTL;
};
var commentDirectivesEnabledConfig = true;
/**
* @ngdoc method
* @name $compileProvider#commentDirectivesEnabled
* @description
*
* It indicates to the compiler
* whether or not directives on comments should be compiled.
* Defaults to `true`.
*
* Calling this function with false disables the compilation of directives
* on comments for the whole application.
* This results in a compilation performance gain,
* as the compiler doesn't have to check comments when looking for directives.
* This should however only be used if you are sure that no comment directives are used in
* the application (including any 3rd party directives).
*
* @param {boolean} enabled `false` if the compiler may ignore directives on comments
* @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
*/
this.commentDirectivesEnabled = function (value) {
if (arguments.length) {
commentDirectivesEnabledConfig = value;
return this;
}
return commentDirectivesEnabledConfig;
};
var cssClassDirectivesEnabledConfig = true;
/**
* @ngdoc method
* @name $compileProvider#cssClassDirectivesEnabled
* @description
*
* It indicates to the compiler
* whether or not directives on element classes should be compiled.
* Defaults to `true`.
*
* Calling this function with false disables the compilation of directives
* on element classes for the whole application.
* This results in a compilation performance gain,
* as the compiler doesn't have to check element classes when looking for directives.
* This should however only be used if you are sure that no class directives are used in
* the application (including any 3rd party directives).
*
* @param {boolean} enabled `false` if the compiler may ignore directives on element classes
* @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
*/
this.cssClassDirectivesEnabled = function (value) {
if (arguments.length) {
cssClassDirectivesEnabledConfig = value;
return this;
}
return cssClassDirectivesEnabledConfig;
};
this.$get = ['$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', '$controller', '$rootScope', '$sce', '$animate', '$$sanitizeUri', function ($injector, $interpolate, $exceptionHandler, $templateRequest, $parse, $controller, $rootScope, $sce, $animate, $$sanitizeUri) {
var SIMPLE_ATTR_NAME = /^\w/;
var specialAttrHolder = window.document.createElement('div');
var commentDirectivesEnabled = commentDirectivesEnabledConfig;
var cssClassDirectivesEnabled = cssClassDirectivesEnabledConfig;
var onChangesTtl = TTL;
// The onChanges hooks should all be run together in a single digest
// When changes occur, the call to trigger their hooks will be added to this queue
var onChangesQueue;
// This function is called in a $$postDigest to trigger all the onChanges hooks in a single digest
function flushOnChangesQueue() {
try {
if (! --onChangesTtl) {
// We have hit the TTL limit so reset everything
onChangesQueue = undefined;
throw $compileMinErr('infchng', '{0} $onChanges() iterations reached. Aborting!\n', TTL);
}
// We must run this hook in an apply since the $$postDigest runs outside apply
$rootScope.$apply(function () {
var errors = [];
for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) {
try {
onChangesQueue[i]();
} catch (e) {
errors.push(e);
}
}
// Reset the queue to trigger a new schedule next time there is a change
onChangesQueue = undefined;
if (errors.length) {
throw errors;
}
});
} finally {
onChangesTtl++;
}
}
function Attributes(element, attributesToCopy) {
if (attributesToCopy) {
var keys = Object.keys(attributesToCopy);
var i, l, key;
for (i = 0, l = keys.length; i < l; i++) {
key = keys[i];
this[key] = attributesToCopy[key];
}
} else {
this.$attr = {};
}
this.$$element = element;
}
Attributes.prototype = {
/**
* @ngdoc method
* @name $compile.directive.Attributes#$normalize
* @kind function
*
* @description
* Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
* `data-`) to its normalized, camelCase form.
*
* Also there is special case for Moz prefix starting with upper case letter.
*
* For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
*
* @param {string} name Name to normalize
*/
$normalize: directiveNormalize,
/**
* @ngdoc method
* @name $compile.directive.Attributes#$addClass
* @kind function
*
* @description
* Adds the CSS class value specified by the classVal parameter to the element. If animations
* are enabled then an animation will be triggered for the class addition.
*
* @param {string} classVal The className value that will be added to the element
*/
$addClass: function $addClass(classVal) {
if (classVal && classVal.length > 0) {
$animate.addClass(this.$$element, classVal);
}
},
/**
* @ngdoc method
* @name $compile.directive.Attributes#$removeClass
* @kind function
*
* @description
* Removes the CSS class value specified by the classVal parameter from the element. If
* animations are enabled then an animation will be triggered for the class removal.
*
* @param {string} classVal The className value that will be removed from the element
*/
$removeClass: function $removeClass(classVal) {
if (classVal && classVal.length > 0) {
$animate.removeClass(this.$$element, classVal);
}
},
/**
* @ngdoc method
* @name $compile.directive.Attributes#$updateClass
* @kind function
*
* @description
* Adds and removes the appropriate CSS class values to the element based on the difference
* between the new and old CSS class values (specified as newClasses and oldClasses).
*
* @param {string} newClasses The current CSS className value
* @param {string} oldClasses The former CSS className value
*/
$updateClass: function $updateClass(newClasses, oldClasses) {
var toAdd = tokenDifference(newClasses, oldClasses);
if (toAdd && toAdd.length) {
$animate.addClass(this.$$element, toAdd);
}
var toRemove = tokenDifference(oldClasses, newClasses);
if (toRemove && toRemove.length) {
$animate.removeClass(this.$$element, toRemove);
}
},
/**
* Set a normalized attribute on the element in a way such that all directives
* can share the attribute. This function properly handles boolean attributes.
* @param {string} key Normalized key. (ie ngAttribute)
* @param {string|boolean} value The value to set. If `null` attribute will be deleted.
* @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
* Defaults to true.
* @param {string=} attrName Optional none normalized name. Defaults to key.
*/
$set: function $set(key, value, writeAttr, attrName) {
// TODO: decide whether or not to throw an error if "class"
//is set through this function since it may cause $updateClass to
//become unstable.
var node = this.$$element[0],
booleanKey = getBooleanAttrName(node, key),
aliasedKey = getAliasedAttrName(key),
observer = key,
nodeName;
if (booleanKey) {
this.$$element.prop(key, value);
attrName = booleanKey;
} else if (aliasedKey) {
this[aliasedKey] = value;
observer = aliasedKey;
}
this[key] = value;
// translate normalized key to actual key
if (attrName) {
this.$attr[key] = attrName;
} else {
attrName = this.$attr[key];
if (!attrName) {
this.$attr[key] = attrName = snake_case(key, '-');
}
}
nodeName = nodeName_(this.$$element);
if (nodeName === 'a' && (key === 'href' || key === 'xlinkHref') || nodeName === 'img' && key === 'src') {
// sanitize a[href] and img[src] values
this[key] = value = $$sanitizeUri(value, key === 'src');
} else if (nodeName === 'img' && key === 'srcset' && isDefined(value)) {
// sanitize img[srcset] values
var result = '';
// first check if there are spaces because it's not the same pattern
var trimmedSrcset = trim(value);
// ( 999x ,| 999w ,| ,|, )
var srcPattern = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;
var pattern = /\s/.test(trimmedSrcset) ? srcPattern : /(,)/;
// split srcset into tuple of uri and descriptor except for the last item
var rawUris = trimmedSrcset.split(pattern);
// for each tuples
var nbrUrisWith2parts = Math.floor(rawUris.length / 2);
for (var i = 0; i < nbrUrisWith2parts; i++) {
var innerIdx = i * 2;
// sanitize the uri
result += $$sanitizeUri(trim(rawUris[innerIdx]), true);
// add the descriptor
result += ' ' + trim(rawUris[innerIdx + 1]);
}
// split the last item into uri and descriptor
var lastTuple = trim(rawUris[i * 2]).split(/\s/);
// sanitize the last uri
result += $$sanitizeUri(trim(lastTuple[0]), true);
// and add the last descriptor if any
if (lastTuple.length === 2) {
result += ' ' + trim(lastTuple[1]);
}
this[key] = value = result;
}
if (writeAttr !== false) {
if (value === null || isUndefined(value)) {
this.$$element.removeAttr(attrName);
} else {
if (SIMPLE_ATTR_NAME.test(attrName)) {
this.$$element.attr(attrName, value);
} else {
setSpecialAttr(this.$$element[0], attrName, value);
}
}
}
// fire observers
var $$observers = this.$$observers;
if ($$observers) {
forEach($$observers[observer], function (fn) {
try {
fn(value);
} catch (e) {
$exceptionHandler(e);
}
});
}
},
/**
* @ngdoc method
* @name $compile.directive.Attributes#$observe
* @kind function
*
* @description
* Observes an interpolated attribute.
*
* The observer function will be invoked once during the next `$digest` following
* compilation. The observer is then invoked whenever the interpolated value
* changes.
*
* @param {string} key Normalized key. (ie ngAttribute) .
* @param {function(interpolatedValue)} fn Function that will be called whenever
the interpolated value of the attribute changes.
* See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation
* guide} for more info.
* @returns {function()} Returns a deregistration function for this observer.
*/
$observe: function $observe(key, fn) {
var attrs = this,
$$observers = attrs.$$observers || (attrs.$$observers = createMap()),
listeners = $$observers[key] || ($$observers[key] = []);
listeners.push(fn);
$rootScope.$evalAsync(function () {
if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {
// no one registered attribute interpolation function, so lets call it manually
fn(attrs[key]);
}
});
return function () {
arrayRemove(listeners, fn);
};
}
};
function setSpecialAttr(element, attrName, value) {
// Attributes names that do not start with letters (such as `(click)`) cannot be set using `setAttribute`
// so we have to jump through some hoops to get such an attribute
// https://github.com/angular/angular.js/pull/13318
specialAttrHolder.innerHTML = '<span ' + attrName + '>';
var attributes = specialAttrHolder.firstChild.attributes;
var attribute = attributes[0];
// We have to remove the attribute from its container element before we can add it to the destination element
attributes.removeNamedItem(attribute.name);
attribute.value = value;
element.attributes.setNamedItem(attribute);
}
function safeAddClass($element, className) {
try {
$element.addClass(className);
} catch (e) {
// ignore, since it means that we are trying to set class on
// SVG element, where class name is read-only.
}
}
var startSymbol = $interpolate.startSymbol(),
endSymbol = $interpolate.endSymbol(),
denormalizeTemplate = startSymbol === '{{' && endSymbol === '}}' ? identity : function denormalizeTemplate(template) {
return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
},
NG_ATTR_BINDING = /^ngAttr[A-Z]/;
var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;
compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {
var bindings = $element.data('$binding') || [];
if (isArray(binding)) {
bindings = bindings.concat(binding);
} else {
bindings.push(binding);
}
$element.data('$binding', bindings);
} : noop;
compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {
safeAddClass($element, 'ng-binding');
} : noop;
compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {
var dataName = isolated ? noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope' : '$scope';
$element.data(dataName, scope);
} : noop;
compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {
safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');
} : noop;
compile.$$createComment = function (directiveName, comment) {
var content = '';
if (debugInfoEnabled) {
content = ' ' + (directiveName || '') + ': ';
if (comment) content += comment + ' ';
}
return window.document.createComment(content);
};
return compile;
//================================
function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext) {
if (!($compileNodes instanceof jqLite)) {
// jquery always rewraps, whereas we need to preserve the original selector so that we can
// modify it.
$compileNodes = jqLite($compileNodes);
}
var compositeLinkFn = compileNodes($compileNodes, transcludeFn, $compileNodes, maxPriority, ignoreDirective, previousCompileContext);
compile.$$addScopeClass($compileNodes);
var namespace = null;
return function publicLinkFn(scope, cloneConnectFn, options) {
if (!$compileNodes) {
throw $compileMinErr('multilink', 'This element has already been linked.');
}
assertArg(scope, 'scope');
if (previousCompileContext && previousCompileContext.needsNewScope) {
// A parent directive did a replace and a directive on this element asked
// for transclusion, which caused us to lose a layer of element on which
// we could hold the new transclusion scope, so we will create it manually
// here.
scope = scope.$parent.$new();
}
options = options || {};
var parentBoundTranscludeFn = options.parentBoundTranscludeFn,
transcludeControllers = options.transcludeControllers,
futureParentElement = options.futureParentElement;
// When `parentBoundTranscludeFn` is passed, it is a
// `controllersBoundTransclude` function (it was previously passed
// as `transclude` to directive.link) so we must unwrap it to get
// its `boundTranscludeFn`
if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {
parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;
}
if (!namespace) {
namespace = detectNamespaceForChildElements(futureParentElement);
}
var $linkNode;
if (namespace !== 'html') {
// When using a directive with replace:true and templateUrl the $compileNodes
// (or a child element inside of them)
// might change, so we need to recreate the namespace adapted compileNodes
// for call to the link function.
// Note: This will already clone the nodes...
$linkNode = jqLite(wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html()));
} else if (cloneConnectFn) {
// important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart
// and sometimes changes the structure of the DOM.
$linkNode = JQLitePrototype.clone.call($compileNodes);
} else {
$linkNode = $compileNodes;
}
if (transcludeControllers) {
for (var controllerName in transcludeControllers) {
$linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);
}
}
compile.$$addScopeInfo($linkNode, scope);
if (cloneConnectFn) cloneConnectFn($linkNode, scope);
if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);
if (!cloneConnectFn) {
$compileNodes = compositeLinkFn = null;
}
return $linkNode;
};
}
function detectNamespaceForChildElements(parentElement) {
// TODO: Make this detect MathML as well...
var node = parentElement && parentElement[0];
if (!node) {
return 'html';
} else {
return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
}
}
/**
* Compile function matches each node in nodeList against the directives. Once all directives
* for a particular node are collected their compile functions are executed. The compile
* functions return values - the linking functions - are combined into a composite linking
* function, which is the a linking function for the node.
*
* @param {NodeList} nodeList an array of nodes or NodeList to compile
* @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
* scope argument is auto-generated to the new child of the transcluded parent scope.
* @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then
* the rootElement must be set the jqLite collection of the compile root. This is
* needed so that the jqLite collection items can be replaced with widgets.
* @param {number=} maxPriority Max directive priority.
* @returns {Function} A composite linking function of all of the matched directives or null.
*/
function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective, previousCompileContext) {
var linkFns = [],
// `nodeList` can be either an element's `.childNodes` (live NodeList)
// or a jqLite/jQuery collection or an array
notLiveList = isArray(nodeList) || nodeList instanceof jqLite,
attrs,
directives,
nodeLinkFn,
childNodes,
childLinkFn,
linkFnFound,
nodeLinkFnFound;
for (var i = 0; i < nodeList.length; i++) {
attrs = new Attributes();
// Support: IE 11 only
// Workaround for #11781 and #14924
if (msie === 11) {
mergeConsecutiveTextNodes(nodeList, i, notLiveList);
}
// We must always refer to `nodeList[i]` hereafter,
// since the nodes can be replaced underneath us.
directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined, ignoreDirective);
nodeLinkFn = directives.length ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement, null, [], [], previousCompileContext) : null;
if (nodeLinkFn && nodeLinkFn.scope) {
compile.$$addScopeClass(attrs.$$element);
}
childLinkFn = nodeLinkFn && nodeLinkFn.terminal || !(childNodes = nodeList[i].childNodes) || !childNodes.length ? null : compileNodes(childNodes, nodeLinkFn ? (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement) && nodeLinkFn.transclude : transcludeFn);
if (nodeLinkFn || childLinkFn) {
linkFns.push(i, nodeLinkFn, childLinkFn);
linkFnFound = true;
nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;
}
//use the previous context only for the first element in the virtual group
previousCompileContext = null;
}
// return a linking function if we have found anything, null otherwise
return linkFnFound ? compositeLinkFn : null;
function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {
var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;
var stableNodeList;
if (nodeLinkFnFound) {
// copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our
// offsets don't get screwed up
var nodeListLength = nodeList.length;
stableNodeList = new Array(nodeListLength);
// create a sparse array by only copying the elements which have a linkFn
for (i = 0; i < linkFns.length; i += 3) {
idx = linkFns[i];
stableNodeList[idx] = nodeList[idx];
}
} else {
stableNodeList = nodeList;
}
for (i = 0, ii = linkFns.length; i < ii;) {
node = stableNodeList[linkFns[i++]];
nodeLinkFn = linkFns[i++];
childLinkFn = linkFns[i++];
if (nodeLinkFn) {
if (nodeLinkFn.scope) {
childScope = scope.$new();
compile.$$addScopeInfo(jqLite(node), childScope);
} else {
childScope = scope;
}
if (nodeLinkFn.transcludeOnThisElement) {
childBoundTranscludeFn = createBoundTranscludeFn(scope, nodeLinkFn.transclude, parentBoundTranscludeFn);
} else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {
childBoundTranscludeFn = parentBoundTranscludeFn;
} else if (!parentBoundTranscludeFn && transcludeFn) {
childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);
} else {
childBoundTranscludeFn = null;
}
nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);
} else if (childLinkFn) {
childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);
}
}
}
}
function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) {
var node = nodeList[idx];
var parent = node.parentNode;
var sibling;
if (node.nodeType !== NODE_TYPE_TEXT) {
return;
}
while (true) {
sibling = parent ? node.nextSibling : nodeList[idx + 1];
if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) {
break;
}
node.nodeValue = node.nodeValue + sibling.nodeValue;
if (sibling.parentNode) {
sibling.parentNode.removeChild(sibling);
}
if (notLiveList && sibling === nodeList[idx + 1]) {
nodeList.splice(idx + 1, 1);
}
}
}
function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
if (!transcludedScope) {
transcludedScope = scope.$new(false, containingScope);
transcludedScope.$$transcluded = true;
}
return transcludeFn(transcludedScope, cloneFn, {
parentBoundTranscludeFn: previousBoundTranscludeFn,
transcludeControllers: controllers,
futureParentElement: futureParentElement
});
}
// We need to attach the transclusion slots onto the `boundTranscludeFn`
// so that they are available inside the `controllersBoundTransclude` function
var boundSlots = boundTranscludeFn.$$slots = createMap();
for (var slotName in transcludeFn.$$slots) {
if (transcludeFn.$$slots[slotName]) {
boundSlots[slotName] = createBoundTranscludeFn(scope, transcludeFn.$$slots[slotName], previousBoundTranscludeFn);
} else {
boundSlots[slotName] = null;
}
}
return boundTranscludeFn;
}
/**
* Looks for directives on the given node and adds them to the directive collection which is
* sorted.
*
* @param node Node to search.
* @param directives An array to which the directives are added to. This array is sorted before
* the function returns.
* @param attrs The shared attrs object which is used to populate the normalized attributes.
* @param {number=} maxPriority Max directive priority.
*/
function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {
var nodeType = node.nodeType,
attrsMap = attrs.$attr,
match,
nodeName,
className;
switch (nodeType) {
case NODE_TYPE_ELEMENT:
/* Element */
nodeName = nodeName_(node);
// use the node name: <directive>
addDirective(directives, directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective);
// iterate over the attributes
for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes, j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {
var attrStartName = false;
var attrEndName = false;
attr = nAttrs[j];
name = attr.name;
value = attr.value;
// support ngAttr attribute binding
ngAttrName = directiveNormalize(name);
isNgAttr = NG_ATTR_BINDING.test(ngAttrName);
if (isNgAttr) {
name = name.replace(PREFIX_REGEXP, '').substr(8).replace(/_(.)/g, function (match, letter) {
return letter.toUpperCase();
});
}
var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);
if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {
attrStartName = name;
attrEndName = name.substr(0, name.length - 5) + 'end';
name = name.substr(0, name.length - 6);
}
nName = directiveNormalize(name.toLowerCase());
attrsMap[nName] = name;
if (isNgAttr || !attrs.hasOwnProperty(nName)) {
attrs[nName] = value;
if (getBooleanAttrName(node, nName)) {
attrs[nName] = true; // presence means true
}
}
addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);
addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName, attrEndName);
}
if (nodeName === 'input' && node.getAttribute('type') === 'hidden') {
// Hidden input elements can have strange behaviour when navigating back to the page
// This tells the browser not to try to cache and reinstate previous values
node.setAttribute('autocomplete', 'off');
}
// use class as directive
if (!cssClassDirectivesEnabled) break;
className = node.className;
if (isObject(className)) {
// Maybe SVGAnimatedString
className = className.animVal;
}
if (isString(className) && className !== '') {
while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {
nName = directiveNormalize(match[2]);
if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {
attrs[nName] = trim(match[3]);
}
className = className.substr(match.index + match[0].length);
}
}
break;
case NODE_TYPE_TEXT:
/* Text Node */
addTextInterpolateDirective(directives, node.nodeValue);
break;
case NODE_TYPE_COMMENT:
/* Comment */
if (!commentDirectivesEnabled) break;
collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective);
break;
}
directives.sort(byPriority);
return directives;
}
function collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective) {
// function created because of performance, try/catch disables
// the optimization of the whole function #14848
try {
var match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);
if (match) {
var nName = directiveNormalize(match[1]);
if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {
attrs[nName] = trim(match[2]);
}
}
} catch (e) {
// turns out that under some circumstances IE9 throws errors when one attempts to read
// comment's node value.
// Just ignore it and continue. (Can't seem to reproduce in test case.)
}
}
/**
* Given a node with a directive-start it collects all of the siblings until it finds
* directive-end.
* @param node
* @param attrStart
* @param attrEnd
* @returns {*}
*/
function groupScan(node, attrStart, attrEnd) {
var nodes = [];
var depth = 0;
if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {
do {
if (!node) {
throw $compileMinErr('uterdir', 'Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.', attrStart, attrEnd);
}
if (node.nodeType === NODE_TYPE_ELEMENT) {
if (node.hasAttribute(attrStart)) depth++;
if (node.hasAttribute(attrEnd)) depth--;
}
nodes.push(node);
node = node.nextSibling;
} while (depth > 0);
} else {
nodes.push(node);
}
return jqLite(nodes);
}
/**
* Wrapper for linking function which converts normal linking function into a grouped
* linking function.
* @param linkFn
* @param attrStart
* @param attrEnd
* @returns {Function}
*/
function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {
return function groupedElementsLink(scope, element, attrs, controllers, transcludeFn) {
element = groupScan(element[0], attrStart, attrEnd);
return linkFn(scope, element, attrs, controllers, transcludeFn);
};
}
/**
* A function generator that is used to support both eager and lazy compilation
* linking function.
* @param eager
* @param $compileNodes
* @param transcludeFn
* @param maxPriority
* @param ignoreDirective
* @param previousCompileContext
* @returns {Function}
*/
function compilationGenerator(eager, $compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext) {
var compiled;
if (eager) {
return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
}
return (/** @this */function lazyCompilation() {
if (!compiled) {
compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
// Null out all of these references in order to make them eligible for garbage collection
// since this is a potentially long lived closure
$compileNodes = transcludeFn = previousCompileContext = null;
}
return compiled.apply(this, arguments);
}
);
}
/**
* Once the directives have been collected, their compile functions are executed. This method
* is responsible for inlining directive templates as well as terminating the application
* of the directives if the terminal directive has been reached.
*
* @param {Array} directives Array of collected directives to execute their compile function.
* this needs to be pre-sorted by priority order.
* @param {Node} compileNode The raw DOM node to apply the compile functions to
* @param {Object} templateAttrs The shared attribute function
* @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
* scope argument is auto-generated to the new
* child of the transcluded parent scope.
* @param {JQLite} jqCollection If we are working on the root of the compile tree then this
* argument has the root jqLite array so that we can replace nodes
* on it.
* @param {Object=} originalReplaceDirective An optional directive that will be ignored when
* compiling the transclusion.
* @param {Array.<Function>} preLinkFns
* @param {Array.<Function>} postLinkFns
* @param {Object} previousCompileContext Context used for previous compilation of the current
* node
* @returns {Function} linkFn
*/
function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection, originalReplaceDirective, preLinkFns, postLinkFns, previousCompileContext) {
previousCompileContext = previousCompileContext || {};
var terminalPriority = -Number.MAX_VALUE,
newScopeDirective = previousCompileContext.newScopeDirective,
controllerDirectives = previousCompileContext.controllerDirectives,
newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,
templateDirective = previousCompileContext.templateDirective,
nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,
hasTranscludeDirective = false,
hasTemplate = false,
hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,
$compileNode = templateAttrs.$$element = jqLite(compileNode),
directive,
directiveName,
$template,
replaceDirective = originalReplaceDirective,
childTranscludeFn = transcludeFn,
linkFn,
didScanForMultipleTransclusion = false,
mightHaveMultipleTransclusionError = false,
directiveValue;
// executes all directives on the current element
for (var i = 0, ii = directives.length; i < ii; i++) {
directive = directives[i];
var attrStart = directive.$$start;
var attrEnd = directive.$$end;
// collect multiblock sections
if (attrStart) {
$compileNode = groupScan(compileNode, attrStart, attrEnd);
}
$template = undefined;
if (terminalPriority > directive.priority) {
break; // prevent further processing of directives
}
directiveValue = directive.scope;
if (directiveValue) {
// skip the check for directives with async templates, we'll check the derived sync
// directive when the template arrives
if (!directive.templateUrl) {
if (isObject(directiveValue)) {
// This directive is trying to add an isolated scope.
// Check that there is no scope of any kind already
assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective, directive, $compileNode);
newIsolateScopeDirective = directive;
} else {
// This directive is trying to add a child scope.
// Check that there is no isolated scope already
assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive, $compileNode);
}
}
newScopeDirective = newScopeDirective || directive;
}
directiveName = directive.name;
// If we encounter a condition that can result in transclusion on the directive,
// then scan ahead in the remaining directives for others that may cause a multiple
// transclusion error to be thrown during the compilation process. If a matching directive
// is found, then we know that when we encounter a transcluded directive, we need to eagerly
// compile the `transclude` function rather than doing it lazily in order to throw
// exceptions at the correct time
if (!didScanForMultipleTransclusion && (directive.replace && (directive.templateUrl || directive.template) || directive.transclude && !directive.$$tlb)) {
var candidateDirective;
for (var scanningIndex = i + 1; candidateDirective = directives[scanningIndex++];) {
if (candidateDirective.transclude && !candidateDirective.$$tlb || candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template)) {
mightHaveMultipleTransclusionError = true;
break;
}
}
didScanForMultipleTransclusion = true;
}
if (!directive.templateUrl && directive.controller) {
controllerDirectives = controllerDirectives || createMap();
assertNoDuplicate('\'' + directiveName + '\' controller', controllerDirectives[directiveName], directive, $compileNode);
controllerDirectives[directiveName] = directive;
}
directiveValue = directive.transclude;
if (directiveValue) {
hasTranscludeDirective = true;
// Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.
// This option should only be used by directives that know how to safely handle element transclusion,
// where the transcluded nodes are added or replaced after linking.
if (!directive.$$tlb) {
assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);
nonTlbTranscludeDirective = directive;
}
if (directiveValue === 'element') {
hasElementTranscludeDirective = true;
terminalPriority = directive.priority;
$template = $compileNode;
$compileNode = templateAttrs.$$element = jqLite(compile.$$createComment(directiveName, templateAttrs[directiveName]));
compileNode = $compileNode[0];
replaceWith(jqCollection, sliceArgs($template), compileNode);
// Support: Chrome < 50
// https://github.com/angular/angular.js/issues/14041
// In the versions of V8 prior to Chrome 50, the document fragment that is created
// in the `replaceWith` function is improperly garbage collected despite still
// being referenced by the `parentNode` property of all of the child nodes. By adding
// a reference to the fragment via a different property, we can avoid that incorrect
// behavior.
// TODO: remove this line after Chrome 50 has been released
$template[0].$$parentNode = $template[0].parentNode;
childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority, replaceDirective && replaceDirective.name, {
// Don't pass in:
// - controllerDirectives - otherwise we'll create duplicates controllers
// - newIsolateScopeDirective or templateDirective - combining templates with
// element transclusion doesn't make sense.
//
// We need only nonTlbTranscludeDirective so that we prevent putting transclusion
// on the same element more than once.
nonTlbTranscludeDirective: nonTlbTranscludeDirective
});
} else {
var slots = createMap();
if (!isObject(directiveValue)) {
$template = jqLite(jqLiteClone(compileNode)).contents();
} else {
// We have transclusion slots,
// collect them up, compile them and store their transclusion functions
$template = [];
var slotMap = createMap();
var filledSlots = createMap();
// Parse the element selectors
forEach(directiveValue, function (elementSelector, slotName) {
// If an element selector starts with a ? then it is optional
var optional = elementSelector.charAt(0) === '?';
elementSelector = optional ? elementSelector.substring(1) : elementSelector;
slotMap[elementSelector] = slotName;
// We explicitly assign `null` since this implies that a slot was defined but not filled.
// Later when calling boundTransclusion functions with a slot name we only error if the
// slot is `undefined`
slots[slotName] = null;
// filledSlots contains `true` for all slots that are either optional or have been
// filled. This is used to check that we have not missed any required slots
filledSlots[slotName] = optional;
});
// Add the matching elements into their slot
forEach($compileNode.contents(), function (node) {
var slotName = slotMap[directiveNormalize(nodeName_(node))];
if (slotName) {
filledSlots[slotName] = true;
slots[slotName] = slots[slotName] || [];
slots[slotName].push(node);
} else {
$template.push(node);
}
});
// Check for required slots that were not filled
forEach(filledSlots, function (filled, slotName) {
if (!filled) {
throw $compileMinErr('reqslot', 'Required transclusion slot `{0}` was not filled.', slotName);
}
});
for (var slotName in slots) {
if (slots[slotName]) {
// Only define a transclusion function if the slot was filled
slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slots[slotName], transcludeFn);
}
}
}
$compileNode.empty(); // clear contents
childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined, undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope });
childTranscludeFn.$$slots = slots;
}
}
if (directive.template) {
hasTemplate = true;
assertNoDuplicate('template', templateDirective, directive, $compileNode);
templateDirective = directive;
directiveValue = isFunction(directive.template) ? directive.template($compileNode, templateAttrs) : directive.template;
directiveValue = denormalizeTemplate(directiveValue);
if (directive.replace) {
replaceDirective = directive;
if (jqLiteIsTextNode(directiveValue)) {
$template = [];
} else {
$template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));
}
compileNode = $template[0];
if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
throw $compileMinErr('tplrt', 'Template for directive \'{0}\' must have exactly one root element. {1}', directiveName, '');
}
replaceWith(jqCollection, $compileNode, compileNode);
var newTemplateAttrs = { $attr: {} };
// combine directives from the original node and from the template:
// - take the array of directives for this element
// - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)
// - collect directives from the template and sort them by priority
// - combine directives as: processed + template + unprocessed
var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);
var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));
if (newIsolateScopeDirective || newScopeDirective) {
// The original directive caused the current element to be replaced but this element
// also needs to have a new scope, so we need to tell the template directives
// that they would need to get their scope from further up, if they require transclusion
markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);
}
directives = directives.concat(templateDirectives).concat(unprocessedDirectives);
mergeTemplateAttributes(templateAttrs, newTemplateAttrs);
ii = directives.length;
} else {
$compileNode.html(directiveValue);
}
}
if (directive.templateUrl) {
hasTemplate = true;
assertNoDuplicate('template', templateDirective, directive, $compileNode);
templateDirective = directive;
if (directive.replace) {
replaceDirective = directive;
}
// eslint-disable-next-line no-func-assign
nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode, templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {
controllerDirectives: controllerDirectives,
newScopeDirective: newScopeDirective !== directive && newScopeDirective,
newIsolateScopeDirective: newIsolateScopeDirective,
templateDirective: templateDirective,
nonTlbTranscludeDirective: nonTlbTranscludeDirective
});
ii = directives.length;
} else if (directive.compile) {
try {
linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);
var context = directive.$$originalDirective || directive;
if (isFunction(linkFn)) {
addLinkFns(null, bind(context, linkFn), attrStart, attrEnd);
} else if (linkFn) {
addLinkFns(bind(context, linkFn.pre), bind(context, linkFn.post), attrStart, attrEnd);
}
} catch (e) {
$exceptionHandler(e, startingTag($compileNode));
}
}
if (directive.terminal) {
nodeLinkFn.terminal = true;
terminalPriority = Math.max(terminalPriority, directive.priority);
}
}
nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;
nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;
nodeLinkFn.templateOnThisElement = hasTemplate;
nodeLinkFn.transclude = childTranscludeFn;
previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;
// might be normal or delayed nodeLinkFn depending on if templateUrl is present
return nodeLinkFn;
////////////////////
function addLinkFns(pre, post, attrStart, attrEnd) {
if (pre) {
if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
pre.require = directive.require;
pre.directiveName = directiveName;
if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
pre = cloneAndAnnotateFn(pre, { isolateScope: true });
}
preLinkFns.push(pre);
}
if (post) {
if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
post.require = directive.require;
post.directiveName = directiveName;
if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
post = cloneAndAnnotateFn(post, { isolateScope: true });
}
postLinkFns.push(post);
}
}
function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element, attrs, scopeBindingInfo;
if (compileNode === linkNode) {
attrs = templateAttrs;
$element = templateAttrs.$$element;
} else {
$element = jqLite(linkNode);
attrs = new Attributes($element, templateAttrs);
}
controllerScope = scope;
if (newIsolateScopeDirective) {
isolateScope = scope.$new(true);
} else if (newScopeDirective) {
controllerScope = scope.$parent;
}
if (boundTranscludeFn) {
// track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`
// is later passed as `parentBoundTranscludeFn` to `publicLinkFn`
transcludeFn = controllersBoundTransclude;
transcludeFn.$$boundTransclude = boundTranscludeFn;
// expose the slots on the `$transclude` function
transcludeFn.isSlotFilled = function (slotName) {
return !!boundTranscludeFn.$$slots[slotName];
};
}
if (controllerDirectives) {
elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective);
}
if (newIsolateScopeDirective) {
// Initialize isolate scope bindings for new isolate scope directive.
compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective || templateDirective === newIsolateScopeDirective.$$originalDirective)));
compile.$$addScopeClass($element, true);
isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings;
scopeBindingInfo = initializeDirectiveBindings(scope, attrs, isolateScope, isolateScope.$$isolateBindings, newIsolateScopeDirective);
if (scopeBindingInfo.removeWatches) {
isolateScope.$on('$destroy', scopeBindingInfo.removeWatches);
}
}
// Initialize bindToController bindings
for (var name in elementControllers) {
var controllerDirective = controllerDirectives[name];
var controller = elementControllers[name];
var bindings = controllerDirective.$$bindings.bindToController;
if (preAssignBindingsEnabled) {
if (bindings) {
controller.bindingInfo = initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
} else {
controller.bindingInfo = {};
}
var controllerResult = controller();
if (controllerResult !== controller.instance) {
// If the controller constructor has a return value, overwrite the instance
// from setupControllers
controller.instance = controllerResult;
$element.data('$' + controllerDirective.name + 'Controller', controllerResult);
if (controller.bindingInfo.removeWatches) {
controller.bindingInfo.removeWatches();
}
controller.bindingInfo = initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
}
} else {
controller.instance = controller();
$element.data('$' + controllerDirective.name + 'Controller', controller.instance);
controller.bindingInfo = initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
}
}
// Bind the required controllers to the controller, if `require` is an object and `bindToController` is truthy
forEach(controllerDirectives, function (controllerDirective, name) {
var require = controllerDirective.require;
if (controllerDirective.bindToController && !isArray(require) && isObject(require)) {
extend(elementControllers[name].instance, getControllers(name, require, $element, elementControllers));
}
});
// Handle the init and destroy lifecycle hooks on all controllers that have them
forEach(elementControllers, function (controller) {
var controllerInstance = controller.instance;
if (isFunction(controllerInstance.$onChanges)) {
try {
controllerInstance.$onChanges(controller.bindingInfo.initialChanges);
} catch (e) {
$exceptionHandler(e);
}
}
if (isFunction(controllerInstance.$onInit)) {
try {
controllerInstance.$onInit();
} catch (e) {
$exceptionHandler(e);
}
}
if (isFunction(controllerInstance.$doCheck)) {
controllerScope.$watch(function () {
controllerInstance.$doCheck();
});
controllerInstance.$doCheck();
}
if (isFunction(controllerInstance.$onDestroy)) {
controllerScope.$on('$destroy', function callOnDestroyHook() {
controllerInstance.$onDestroy();
});
}
});
// PRELINKING
for (i = 0, ii = preLinkFns.length; i < ii; i++) {
linkFn = preLinkFns[i];
invokeLinkFn(linkFn, linkFn.isolateScope ? isolateScope : scope, $element, attrs, linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers), transcludeFn);
}
// RECURSION
// We only pass the isolate scope, if the isolate directive has a template,
// otherwise the child elements do not belong to the isolate directive.
var scopeToChild = scope;
if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {
scopeToChild = isolateScope;
}
if (childLinkFn) {
childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);
}
// POSTLINKING
for (i = postLinkFns.length - 1; i >= 0; i--) {
linkFn = postLinkFns[i];
invokeLinkFn(linkFn, linkFn.isolateScope ? isolateScope : scope, $element, attrs, linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers), transcludeFn);
}
// Trigger $postLink lifecycle hooks
forEach(elementControllers, function (controller) {
var controllerInstance = controller.instance;
if (isFunction(controllerInstance.$postLink)) {
controllerInstance.$postLink();
}
});
// This is the function that is injected as `$transclude`.
// Note: all arguments are optional!
function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement, slotName) {
var transcludeControllers;
// No scope passed in:
if (!isScope(scope)) {
slotName = futureParentElement;
futureParentElement = cloneAttachFn;
cloneAttachFn = scope;
scope = undefined;
}
if (hasElementTranscludeDirective) {
transcludeControllers = elementControllers;
}
if (!futureParentElement) {
futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
}
if (slotName) {
// slotTranscludeFn can be one of three things:
// * a transclude function - a filled slot
// * `null` - an optional slot that was not filled
// * `undefined` - a slot that was not declared (i.e. invalid)
var slotTranscludeFn = boundTranscludeFn.$$slots[slotName];
if (slotTranscludeFn) {
return slotTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
} else if (isUndefined(slotTranscludeFn)) {
throw $compileMinErr('noslot', 'No parent directive that requires a transclusion with slot name "{0}". ' + 'Element: {1}', slotName, startingTag($element));
}
} else {
return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
}
}
}
}
function getControllers(directiveName, require, $element, elementControllers) {
var value;
if (isString(require)) {
var match = require.match(REQUIRE_PREFIX_REGEXP);
var name = require.substring(match[0].length);
var inheritType = match[1] || match[3];
var optional = match[2] === '?';
//If only parents then start at the parent element
if (inheritType === '^^') {
$element = $element.parent();
//Otherwise attempt getting the controller from elementControllers in case
//the element is transcluded (and has no data) and to avoid .data if possible
} else {
value = elementControllers && elementControllers[name];
value = value && value.instance;
}
if (!value) {
var dataName = '$' + name + 'Controller';
value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);
}
if (!value && !optional) {
throw $compileMinErr('ctreq', 'Controller \'{0}\', required by directive \'{1}\', can\'t be found!', name, directiveName);
}
} else if (isArray(require)) {
value = [];
for (var i = 0, ii = require.length; i < ii; i++) {
value[i] = getControllers(directiveName, require[i], $element, elementControllers);
}
} else if (isObject(require)) {
value = {};
forEach(require, function (controller, property) {
value[property] = getControllers(directiveName, controller, $element, elementControllers);
});
}
return value || null;
}
function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective) {
var elementControllers = createMap();
for (var controllerKey in controllerDirectives) {
var directive = controllerDirectives[controllerKey];
var locals = {
$scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
$element: $element,
$attrs: attrs,
$transclude: transcludeFn
};
var controller = directive.controller;
if (controller === '@') {
controller = attrs[directive.name];
}
var controllerInstance = $controller(controller, locals, true, directive.controllerAs);
// For directives with element transclusion the element is a comment.
// In this case .data will not attach any data.
// Instead, we save the controllers for the element in a local hash and attach to .data
// later, once we have the actual element.
elementControllers[directive.name] = controllerInstance;
$element.data('$' + directive.name + 'Controller', controllerInstance.instance);
}
return elementControllers;
}
// Depending upon the context in which a directive finds itself it might need to have a new isolated
// or child scope created. For instance:
// * if the directive has been pulled into a template because another directive with a higher priority
// asked for element transclusion
// * if the directive itself asks for transclusion but it is at the root of a template and the original
// element was replaced. See https://github.com/angular/angular.js/issues/12936
function markDirectiveScope(directives, isolateScope, newScope) {
for (var j = 0, jj = directives.length; j < jj; j++) {
directives[j] = inherit(directives[j], { $$isolateScope: isolateScope, $$newScope: newScope });
}
}
/**
* looks up the directive and decorates it with exception handling and proper parameters. We
* call this the boundDirective.
*
* @param {string} name name of the directive to look up.
* @param {string} location The directive must be found in specific format.
* String containing any of theses characters:
*
* * `E`: element name
* * `A': attribute
* * `C`: class
* * `M`: comment
* @returns {boolean} true if directive was added.
*/
function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName, endAttrName) {
if (name === ignoreDirective) return null;
var match = null;
if (hasDirectives.hasOwnProperty(name)) {
for (var directive, directives = $injector.get(name + Suffix), i = 0, ii = directives.length; i < ii; i++) {
directive = directives[i];
if ((isUndefined(maxPriority) || maxPriority > directive.priority) && directive.restrict.indexOf(location) !== -1) {
if (startAttrName) {
directive = inherit(directive, { $$start: startAttrName, $$end: endAttrName });
}
if (!directive.$$bindings) {
var bindings = directive.$$bindings = parseDirectiveBindings(directive, directive.name);
if (isObject(bindings.isolateScope)) {
directive.$$isolateBindings = bindings.isolateScope;
}
}
tDirectives.push(directive);
match = directive;
}
}
}
return match;
}
/**
* looks up the directive and returns true if it is a multi-element directive,
* and therefore requires DOM nodes between -start and -end markers to be grouped
* together.
*
* @param {string} name name of the directive to look up.
* @returns true if directive was registered as multi-element.
*/
function directiveIsMultiElement(name) {
if (hasDirectives.hasOwnProperty(name)) {
for (var directive, directives = $injector.get(name + Suffix), i = 0, ii = directives.length; i < ii; i++) {
directive = directives[i];
if (directive.multiElement) {
return true;
}
}
}
return false;
}
/**
* When the element is replaced with HTML template then the new attributes
* on the template need to be merged with the existing attributes in the DOM.
* The desired effect is to have both of the attributes present.
*
* @param {object} dst destination attributes (original DOM)
* @param {object} src source attributes (from the directive template)
*/
function mergeTemplateAttributes(dst, src) {
var srcAttr = src.$attr,
dstAttr = dst.$attr;
// reapply the old attributes to the new element
forEach(dst, function (value, key) {
if (key.charAt(0) !== '$') {
if (src[key] && src[key] !== value) {
if (value.length) {
value += (key === 'style' ? ';' : ' ') + src[key];
} else {
value = src[key];
}
}
dst.$set(key, value, true, srcAttr[key]);
}
});
// copy the new attributes on the old attrs object
forEach(src, function (value, key) {
// Check if we already set this attribute in the loop above.
// `dst` will never contain hasOwnProperty as DOM parser won't let it.
// You will get an "InvalidCharacterError: DOM Exception 5" error if you
// have an attribute like "has-own-property" or "data-has-own-property", etc.
if (!dst.hasOwnProperty(key) && key.charAt(0) !== '$') {
dst[key] = value;
if (key !== 'class' && key !== 'style') {
dstAttr[key] = srcAttr[key];
}
}
});
}
function compileTemplateUrl(directives, $compileNode, tAttrs, $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {
var linkQueue = [],
afterTemplateNodeLinkFn,
afterTemplateChildLinkFn,
beforeTemplateCompileNode = $compileNode[0],
origAsyncDirective = directives.shift(),
derivedSyncDirective = inherit(origAsyncDirective, {
templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective
}),
templateUrl = isFunction(origAsyncDirective.templateUrl) ? origAsyncDirective.templateUrl($compileNode, tAttrs) : origAsyncDirective.templateUrl,
templateNamespace = origAsyncDirective.templateNamespace;
$compileNode.empty();
$templateRequest(templateUrl).then(function (content) {
var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;
content = denormalizeTemplate(content);
if (origAsyncDirective.replace) {
if (jqLiteIsTextNode(content)) {
$template = [];
} else {
$template = removeComments(wrapTemplate(templateNamespace, trim(content)));
}
compileNode = $template[0];
if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
throw $compileMinErr('tplrt', 'Template for directive \'{0}\' must have exactly one root element. {1}', origAsyncDirective.name, templateUrl);
}
tempTemplateAttrs = { $attr: {} };
replaceWith($rootElement, $compileNode, compileNode);
var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);
if (isObject(origAsyncDirective.scope)) {
// the original directive that caused the template to be loaded async required
// an isolate scope
markDirectiveScope(templateDirectives, true);
}
directives = templateDirectives.concat(directives);
mergeTemplateAttributes(tAttrs, tempTemplateAttrs);
} else {
compileNode = beforeTemplateCompileNode;
$compileNode.html(content);
}
directives.unshift(derivedSyncDirective);
afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs, childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns, previousCompileContext);
forEach($rootElement, function (node, i) {
if (node === compileNode) {
$rootElement[i] = $compileNode[0];
}
});
afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);
while (linkQueue.length) {
var scope = linkQueue.shift(),
beforeTemplateLinkNode = linkQueue.shift(),
linkRootElement = linkQueue.shift(),
boundTranscludeFn = linkQueue.shift(),
linkNode = $compileNode[0];
if (scope.$$destroyed) continue;
if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {
var oldClasses = beforeTemplateLinkNode.className;
if (!(previousCompileContext.hasElementTranscludeDirective && origAsyncDirective.replace)) {
// it was cloned therefore we have to clone as well.
linkNode = jqLiteClone(compileNode);
}
replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);
// Copy in CSS classes from original node
safeAddClass(jqLite(linkNode), oldClasses);
}
if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
} else {
childBoundTranscludeFn = boundTranscludeFn;
}
afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement, childBoundTranscludeFn);
}
linkQueue = null;
}).catch(function (error) {
if (isError(error)) {
$exceptionHandler(error);
}
});
return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {
var childBoundTranscludeFn = boundTranscludeFn;
if (scope.$$destroyed) return;
if (linkQueue) {
linkQueue.push(scope, node, rootElement, childBoundTranscludeFn);
} else {
if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
}
afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);
}
};
}
/**
* Sorting function for bound directives.
*/
function byPriority(a, b) {
var diff = b.priority - a.priority;
if (diff !== 0) return diff;
if (a.name !== b.name) return a.name < b.name ? -1 : 1;
return a.index - b.index;
}
function assertNoDuplicate(what, previousDirective, directive, element) {
function wrapModuleNameIfDefined(moduleName) {
return moduleName ? ' (module: ' + moduleName + ')' : '';
}
if (previousDirective) {
throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}', previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName), directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
}
}
function addTextInterpolateDirective(directives, text) {
var interpolateFn = $interpolate(text, true);
if (interpolateFn) {
directives.push({
priority: 0,
compile: function textInterpolateCompileFn(templateNode) {
var templateNodeParent = templateNode.parent(),
hasCompileParent = !!templateNodeParent.length;
// When transcluding a template that has bindings in the root
// we don't have a parent and thus need to add the class during linking fn.
if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);
return function textInterpolateLinkFn(scope, node) {
var parent = node.parent();
if (!hasCompileParent) compile.$$addBindingClass(parent);
compile.$$addBindingInfo(parent, interpolateFn.expressions);
scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
node[0].nodeValue = value;
});
};
}
});
}
}
function wrapTemplate(type, template) {
type = lowercase(type || 'html');
switch (type) {
case 'svg':
case 'math':
var wrapper = window.document.createElement('div');
wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
return wrapper.childNodes[0].childNodes;
default:
return template;
}
}
function getTrustedContext(node, attrNormalizedName) {
if (attrNormalizedName === 'srcdoc') {
return $sce.HTML;
}
var tag = nodeName_(node);
// All tags with src attributes require a RESOURCE_URL value, except for
// img and various html5 media tags.
if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') {
if (['img', 'video', 'audio', 'source', 'track'].indexOf(tag) === -1) {
return $sce.RESOURCE_URL;
}
// maction[xlink:href] can source SVG. It's not limited to <maction>.
} else if (attrNormalizedName === 'xlinkHref' || tag === 'form' && attrNormalizedName === 'action' ||
// links can be stylesheets or imports, which can run script in the current origin
tag === 'link' && attrNormalizedName === 'href') {
return $sce.RESOURCE_URL;
}
}
function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) {
var trustedContext = getTrustedContext(node, name);
var mustHaveExpression = !isNgAttr;
var allOrNothing = ALL_OR_NOTHING_ATTRS[name] || isNgAttr;
var interpolateFn = $interpolate(value, mustHaveExpression, trustedContext, allOrNothing);
// no interpolation found -> ignore
if (!interpolateFn) return;
if (name === 'multiple' && nodeName_(node) === 'select') {
throw $compileMinErr('selmulti', 'Binding to the \'multiple\' attribute is not supported. Element: {0}', startingTag(node));
}
if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {
throw $compileMinErr('nodomevents', 'Interpolations for HTML DOM event attributes are disallowed. Please use the ' + 'ng- versions (such as ng-click instead of onclick) instead.');
}
directives.push({
priority: 100,
compile: function compile() {
return {
pre: function attrInterpolatePreLinkFn(scope, element, attr) {
var $$observers = attr.$$observers || (attr.$$observers = createMap());
// If the attribute has changed since last $interpolate()ed
var newValue = attr[name];
if (newValue !== value) {
// we need to interpolate again since the attribute value has been updated
// (e.g. by another directive's compile function)
// ensure unset/empty values make interpolateFn falsy
interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);
value = newValue;
}
// if attribute was updated so that there is no interpolation going on we don't want to
// register any observers
if (!interpolateFn) return;
// initialize attr object so that it's ready in case we need the value for isolate
// scope initialization, otherwise the value would not be available from isolate
// directive's linking fn during linking phase
attr[name] = interpolateFn(scope);
($$observers[name] || ($$observers[name] = [])).$$inter = true;
(attr.$$observers && attr.$$observers[name].$$scope || scope).$watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {
//special case for class attribute addition + removal
//so that class changes can tap into the animation
//hooks provided by the $animate service. Be sure to
//skip animations when the first digest occurs (when
//both the new and the old values are the same) since
//the CSS classes are the non-interpolated values
if (name === 'class' && newValue !== oldValue) {
attr.$updateClass(newValue, oldValue);
} else {
attr.$set(name, newValue);
}
});
}
};
}
});
}
/**
* This is a special jqLite.replaceWith, which can replace items which
* have no parents, provided that the containing jqLite collection is provided.
*
* @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes
* in the root of the tree.
* @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep
* the shell, but replace its DOM node reference.
* @param {Node} newNode The new DOM node.
*/
function replaceWith($rootElement, elementsToRemove, newNode) {
var firstElementToRemove = elementsToRemove[0],
removeCount = elementsToRemove.length,
parent = firstElementToRemove.parentNode,
i,
ii;
if ($rootElement) {
for (i = 0, ii = $rootElement.length; i < ii; i++) {
if ($rootElement[i] === firstElementToRemove) {
$rootElement[i++] = newNode;
for (var j = i, j2 = j + removeCount - 1, jj = $rootElement.length; j < jj; j++, j2++) {
if (j2 < jj) {
$rootElement[j] = $rootElement[j2];
} else {
delete $rootElement[j];
}
}
$rootElement.length -= removeCount - 1;
// If the replaced element is also the jQuery .context then replace it
// .context is a deprecated jQuery api, so we should set it only when jQuery set it
// http://api.jquery.com/context/
if ($rootElement.context === firstElementToRemove) {
$rootElement.context = newNode;
}
break;
}
}
}
if (parent) {
parent.replaceChild(newNode, firstElementToRemove);
}
// Append all the `elementsToRemove` to a fragment. This will...
// - remove them from the DOM
// - allow them to still be traversed with .nextSibling
// - allow a single fragment.qSA to fetch all elements being removed
var fragment = window.document.createDocumentFragment();
for (i = 0; i < removeCount; i++) {
fragment.appendChild(elementsToRemove[i]);
}
if (jqLite.hasData(firstElementToRemove)) {
// Copy over user data (that includes Angular's $scope etc.). Don't copy private
// data here because there's no public interface in jQuery to do that and copying over
// event listeners (which is the main use of private data) wouldn't work anyway.
jqLite.data(newNode, jqLite.data(firstElementToRemove));
// Remove $destroy event listeners from `firstElementToRemove`
jqLite(firstElementToRemove).off('$destroy');
}
// Cleanup any data/listeners on the elements and children.
// This includes invoking the $destroy event on any elements with listeners.
jqLite.cleanData(fragment.querySelectorAll('*'));
// Update the jqLite collection to only contain the `newNode`
for (i = 1; i < removeCount; i++) {
delete elementsToRemove[i];
}
elementsToRemove[0] = newNode;
elementsToRemove.length = 1;
}
function cloneAndAnnotateFn(fn, annotation) {
return extend(function () {
return fn.apply(null, arguments);
}, fn, annotation);
}
function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {
try {
linkFn(scope, $element, attrs, controllers, transcludeFn);
} catch (e) {
$exceptionHandler(e, startingTag($element));
}
}
function strictBindingsCheck(attrName, directiveName) {
if (strictComponentBindingsEnabled) {
throw $compileMinErr('missingattr', 'Attribute \'{0}\' of \'{1}\' is non-optional and must be set!', attrName, directiveName);
}
}
// Set up $watches for isolate scope and controller bindings.
function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {
var removeWatchCollection = [];
var initialChanges = {};
var changes;
forEach(bindings, function initializeBinding(definition, scopeName) {
var attrName = definition.attrName,
optional = definition.optional,
mode = definition.mode,
// @, =, <, or &
lastValue,
parentGet,
parentSet,
compare,
removeWatch;
switch (mode) {
case '@':
if (!optional && !hasOwnProperty.call(attrs, attrName)) {
strictBindingsCheck(attrName, directive.name);
destination[scopeName] = attrs[attrName] = undefined;
}
removeWatch = attrs.$observe(attrName, function (value) {
if (isString(value) || isBoolean(value)) {
var oldValue = destination[scopeName];
recordChanges(scopeName, value, oldValue);
destination[scopeName] = value;
}
});
attrs.$$observers[attrName].$$scope = scope;
lastValue = attrs[attrName];
if (isString(lastValue)) {
// If the attribute has been provided then we trigger an interpolation to ensure
// the value is there for use in the link fn
destination[scopeName] = $interpolate(lastValue)(scope);
} else if (isBoolean(lastValue)) {
// If the attributes is one of the BOOLEAN_ATTR then Angular will have converted
// the value to boolean rather than a string, so we special case this situation
destination[scopeName] = lastValue;
}
initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
removeWatchCollection.push(removeWatch);
break;
case '=':
if (!hasOwnProperty.call(attrs, attrName)) {
if (optional) break;
strictBindingsCheck(attrName, directive.name);
attrs[attrName] = undefined;
}
if (optional && !attrs[attrName]) break;
parentGet = $parse(attrs[attrName]);
if (parentGet.literal) {
compare = equals;
} else {
compare = simpleCompare;
}
parentSet = parentGet.assign || function () {
// reset the change, or we will throw this exception on every $digest
lastValue = destination[scopeName] = parentGet(scope);
throw $compileMinErr('nonassign', 'Expression \'{0}\' in attribute \'{1}\' used with directive \'{2}\' is non-assignable!', attrs[attrName], attrName, directive.name);
};
lastValue = destination[scopeName] = parentGet(scope);
var parentValueWatch = function parentValueWatch(parentValue) {
if (!compare(parentValue, destination[scopeName])) {
// we are out of sync and need to copy
if (!compare(parentValue, lastValue)) {
// parent changed and it has precedence
destination[scopeName] = parentValue;
} else {
// if the parent can be assigned then do so
parentSet(scope, parentValue = destination[scopeName]);
}
}
lastValue = parentValue;
return lastValue;
};
parentValueWatch.$stateful = true;
if (definition.collection) {
removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);
} else {
removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);
}
removeWatchCollection.push(removeWatch);
break;
case '<':
if (!hasOwnProperty.call(attrs, attrName)) {
if (optional) break;
strictBindingsCheck(attrName, directive.name);
attrs[attrName] = undefined;
}
if (optional && !attrs[attrName]) break;
parentGet = $parse(attrs[attrName]);
var deepWatch = parentGet.literal;
var initialValue = destination[scopeName] = parentGet(scope);
initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newValue, oldValue) {
if (oldValue === newValue) {
if (oldValue === initialValue || deepWatch && equals(oldValue, initialValue)) {
return;
}
oldValue = initialValue;
}
recordChanges(scopeName, newValue, oldValue);
destination[scopeName] = newValue;
}, deepWatch);
removeWatchCollection.push(removeWatch);
break;
case '&':
if (!optional && !hasOwnProperty.call(attrs, attrName)) {
strictBindingsCheck(attrName, directive.name);
}
// Don't assign Object.prototype method to scope
parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;
// Don't assign noop to destination if expression is not valid
if (parentGet === noop && optional) break;
destination[scopeName] = function (locals) {
return parentGet(scope, locals);
};
break;
}
});
function recordChanges(key, currentValue, previousValue) {
if (isFunction(destination.$onChanges) && !simpleCompare(currentValue, previousValue)) {
// If we have not already scheduled the top level onChangesQueue handler then do so now
if (!onChangesQueue) {
scope.$$postDigest(flushOnChangesQueue);
onChangesQueue = [];
}
// If we have not already queued a trigger of onChanges for this controller then do so now
if (!changes) {
changes = {};
onChangesQueue.push(triggerOnChangesHook);
}
// If the has been a change on this property already then we need to reuse the previous value
if (changes[key]) {
previousValue = changes[key].previousValue;
}
// Store this change
changes[key] = new SimpleChange(previousValue, currentValue);
}
}
function triggerOnChangesHook() {
destination.$onChanges(changes);
// Now clear the changes so that we schedule onChanges when more changes arrive
changes = undefined;
}
return {
initialChanges: initialChanges,
removeWatches: removeWatchCollection.length && function removeWatches() {
for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {
removeWatchCollection[i]();
}
}
};
}
}];
}
function SimpleChange(previous, current) {
this.previousValue = previous;
this.currentValue = current;
}
SimpleChange.prototype.isFirstChange = function () {
return this.previousValue === _UNINITIALIZED_VALUE;
};
var PREFIX_REGEXP = /^((?:x|data)[:\-_])/i;
var SPECIAL_CHARS_REGEXP = /[:\-_]+(.)/g;
/**
* Converts all accepted directives format into proper directive name.
* @param name Name to normalize
*/
function directiveNormalize(name) {
return name.replace(PREFIX_REGEXP, '').replace(SPECIAL_CHARS_REGEXP, function (_, letter, offset) {
return offset ? letter.toUpperCase() : letter;
});
}
/**
* @ngdoc type
* @name $compile.directive.Attributes
*
* @description
* A shared object between directive compile / linking functions which contains normalized DOM
* element attributes. The values reflect current binding state `{{ }}`. The normalization is
* needed since all of these are treated as equivalent in Angular:
*
* ```
* <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a">
* ```
*/
/**
* @ngdoc property
* @name $compile.directive.Attributes#$attr
*
* @description
* A map of DOM element attribute names to the normalized name. This is
* needed to do reverse lookup from normalized name back to actual name.
*/
/**
* @ngdoc method
* @name $compile.directive.Attributes#$set
* @kind function
*
* @description
* Set DOM element attribute value.
*
*
* @param {string} name Normalized element attribute name of the property to modify. The name is
* reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}
* property to the original name.
* @param {string} value Value to set the attribute to. The value can be an interpolated string.
*/
/**
* Closure compiler type information
*/
function nodesetLinkingFn(
/* angular.Scope */scope,
/* NodeList */nodeList,
/* Element */rootElement,
/* function(Function) */boundTranscludeFn) {}
function directiveLinkingFn(
/* nodesetLinkingFn */nodesetLinkingFn,
/* angular.Scope */scope,
/* Node */node,
/* Element */rootElement,
/* function(Function) */boundTranscludeFn) {}
function tokenDifference(str1, str2) {
var values = '',
tokens1 = str1.split(/\s+/),
tokens2 = str2.split(/\s+/);
outer: for (var i = 0; i < tokens1.length; i++) {
var token = tokens1[i];
for (var j = 0; j < tokens2.length; j++) {
if (token === tokens2[j]) continue outer;
}
values += (values.length > 0 ? ' ' : '') + token;
}
return values;
}
function removeComments(jqNodes) {
jqNodes = jqLite(jqNodes);
var i = jqNodes.length;
if (i <= 1) {
return jqNodes;
}
while (i--) {
var node = jqNodes[i];
if (node.nodeType === NODE_TYPE_COMMENT || node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '') {
splice.call(jqNodes, i, 1);
}
}
return jqNodes;
}
var $controllerMinErr = minErr('$controller');
var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
function identifierForController(controller, ident) {
if (ident && isString(ident)) return ident;
if (isString(controller)) {
var match = CNTRL_REG.exec(controller);
if (match) return match[3];
}
}
/**
* @ngdoc provider
* @name $controllerProvider
* @this
*
* @description
* The {@link ng.$controller $controller service} is used by Angular to create new
* controllers.
*
* This provider allows controller registration via the
* {@link ng.$controllerProvider#register register} method.
*/
function $ControllerProvider() {
var controllers = {},
globals = false;
/**
* @ngdoc method
* @name $controllerProvider#has
* @param {string} name Controller name to check.
*/
this.has = function (name) {
return controllers.hasOwnProperty(name);
};
/**
* @ngdoc method
* @name $controllerProvider#register
* @param {string|Object} name Controller name, or an object map of controllers where the keys are
* the names and the values are the constructors.
* @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
* annotations in the array notation).
*/
this.register = function (name, constructor) {
assertNotHasOwnProperty(name, 'controller');
if (isObject(name)) {
extend(controllers, name);
} else {
controllers[name] = constructor;
}
};
/**
* @ngdoc method
* @name $controllerProvider#allowGlobals
* @description If called, allows `$controller` to find controller constructors on `window`
*
* @deprecated
* sinceVersion="v1.3.0"
* removeVersion="v1.7.0"
* This method of finding controllers has been deprecated.
*/
this.allowGlobals = function () {
globals = true;
};
this.$get = ['$injector', '$window', function ($injector, $window) {
/**
* @ngdoc service
* @name $controller
* @requires $injector
*
* @param {Function|string} constructor If called with a function then it's considered to be the
* controller constructor function. Otherwise it's considered to be a string which is used
* to retrieve the controller constructor using the following steps:
*
* * check if a controller with given name is registered via `$controllerProvider`
* * check if evaluating the string on the current scope returns a constructor
* * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
* `window` object (deprecated, not recommended)
*
* The string can use the `controller as property` syntax, where the controller instance is published
* as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
* to work correctly.
*
* @param {Object} locals Injection locals for Controller.
* @return {Object} Instance of given controller.
*
* @description
* `$controller` service is responsible for instantiating controllers.
*
* It's just a simple call to {@link auto.$injector $injector}, but extracted into
* a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
*/
return function $controller(expression, locals, later, ident) {
// PRIVATE API:
// param `later` --- indicates that the controller's constructor is invoked at a later time.
// If true, $controller will allocate the object with the correct
// prototype chain, but will not invoke the controller until a returned
// callback is invoked.
// param `ident` --- An optional label which overrides the label parsed from the controller
// expression, if any.
var instance, match, constructor, identifier;
later = later === true;
if (ident && isString(ident)) {
identifier = ident;
}
if (isString(expression)) {
match = expression.match(CNTRL_REG);
if (!match) {
throw $controllerMinErr('ctrlfmt', 'Badly formed controller string \'{0}\'. ' + 'Must match `__name__ as __id__` or `__name__`.', expression);
}
constructor = match[1];
identifier = identifier || match[3];
expression = controllers.hasOwnProperty(constructor) ? controllers[constructor] : getter(locals.$scope, constructor, true) || (globals ? getter($window, constructor, true) : undefined);
if (!expression) {
throw $controllerMinErr('ctrlreg', 'The controller with the name \'{0}\' is not registered.', constructor);
}
assertArgFn(expression, constructor, true);
}
if (later) {
// Instantiate controller later:
// This machinery is used to create an instance of the object before calling the
// controller's constructor itself.
//
// This allows properties to be added to the controller before the constructor is
// invoked. Primarily, this is used for isolate scope bindings in $compile.
//
// This feature is not intended for use by applications, and is thus not documented
// publicly.
// Object creation: http://jsperf.com/create-constructor/2
var controllerPrototype = (isArray(expression) ? expression[expression.length - 1] : expression).prototype;
instance = Object.create(controllerPrototype || null);
if (identifier) {
addIdentifier(locals, identifier, instance, constructor || expression.name);
}
return extend(function $controllerInit() {
var result = $injector.invoke(expression, instance, locals, constructor);
if (result !== instance && (isObject(result) || isFunction(result))) {
instance = result;
if (identifier) {
// If result changed, re-assign controllerAs value to scope.
addIdentifier(locals, identifier, instance, constructor || expression.name);
}
}
return instance;
}, {
instance: instance,
identifier: identifier
});
}
instance = $injector.instantiate(expression, locals, constructor);
if (identifier) {
addIdentifier(locals, identifier, instance, constructor || expression.name);
}
return instance;
};
function addIdentifier(locals, identifier, instance, name) {
if (!(locals && isObject(locals.$scope))) {
throw minErr('$controller')('noscp', 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', name, identifier);
}
locals.$scope[identifier] = instance;
}
}];
}
/**
* @ngdoc service
* @name $document
* @requires $window
* @this
*
* @description
* A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
*
* @example
<example module="documentExample" name="document">
<file name="index.html">
<div ng-controller="ExampleController">
<p>$document title: <b ng-bind="title"></b></p>
<p>window.document title: <b ng-bind="windowTitle"></b></p>
</div>
</file>
<file name="script.js">
angular.module('documentExample', [])
.controller('ExampleController', ['$scope', '$document', function($scope, $document) {
$scope.title = $document[0].title;
$scope.windowTitle = angular.element(window.document)[0].title;
}]);
</file>
</example>
*/
function $DocumentProvider() {
this.$get = ['$window', function (window) {
return jqLite(window.document);
}];
}
/**
* @private
* @this
* Listens for document visibility change and makes the current status accessible.
*/
function $$IsDocumentHiddenProvider() {
this.$get = ['$document', '$rootScope', function ($document, $rootScope) {
var doc = $document[0];
var hidden = doc && doc.hidden;
$document.on('visibilitychange', changeListener);
$rootScope.$on('$destroy', function () {
$document.off('visibilitychange', changeListener);
});
function changeListener() {
hidden = doc.hidden;
}
return function () {
return hidden;
};
}];
}
/**
* @ngdoc service
* @name $exceptionHandler
* @requires ng.$log
* @this
*
* @description
* Any uncaught exception in angular expressions is delegated to this service.
* The default implementation simply delegates to `$log.error` which logs it into
* the browser console.
*
* In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
* {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
*
* ## Example:
*
* The example below will overwrite the default `$exceptionHandler` in order to (a) log uncaught
* errors to the backend for later inspection by the developers and (b) to use `$log.warn()` instead
* of `$log.error()`.
*
* ```js
* angular.
* module('exceptionOverwrite', []).
* factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
* return function myExceptionHandler(exception, cause) {
* logErrorsToBackend(exception, cause);
* $log.warn(exception, cause);
* };
* }]);
* ```
*
* <hr />
* Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`
* methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}
* (unless executed during a digest).
*
* If you wish, you can manually delegate exceptions, e.g.
* `try { ... } catch(e) { $exceptionHandler(e); }`
*
* @param {Error} exception Exception associated with the error.
* @param {string=} cause Optional information about the context in which
* the error was thrown.
*
*/
function $ExceptionHandlerProvider() {
this.$get = ['$log', function ($log) {
return function (exception, cause) {
$log.error.apply($log, arguments);
};
}];
}
var $$ForceReflowProvider = /** @this */function $$ForceReflowProvider() {
this.$get = ['$document', function ($document) {
return function (domNode) {
//the line below will force the browser to perform a repaint so
//that all the animated elements within the animation frame will
//be properly updated and drawn on screen. This is required to
//ensure that the preparation animation is properly flushed so that
//the active state picks up from there. DO NOT REMOVE THIS LINE.
//DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH
//WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND
//WILL TAKE YEARS AWAY FROM YOUR LIFE.
if (domNode) {
if (!domNode.nodeType && domNode instanceof jqLite) {
domNode = domNode[0];
}
} else {
domNode = $document[0].body;
}
return domNode.offsetWidth + 1;
};
}];
};
var APPLICATION_JSON = 'application/json';
var CONTENT_TYPE_APPLICATION_JSON = { 'Content-Type': APPLICATION_JSON + ';charset=utf-8' };
var JSON_START = /^\[|^\{(?!\{)/;
var JSON_ENDS = {
'[': /]$/,
'{': /}$/
};
var JSON_PROTECTION_PREFIX = /^\)]\}',?\n/;
var $httpMinErr = minErr('$http');
function serializeValue(v) {
if (isObject(v)) {
return isDate(v) ? v.toISOString() : toJson(v);
}
return v;
}
/** @this */
function $HttpParamSerializerProvider() {
/**
* @ngdoc service
* @name $httpParamSerializer
* @description
*
* Default {@link $http `$http`} params serializer that converts objects to strings
* according to the following rules:
*
* * `{'foo': 'bar'}` results in `foo=bar`
* * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)
* * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)
* * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D` (stringified and encoded representation of an object)
*
* Note that serializer will sort the request parameters alphabetically.
* */
this.$get = function () {
return function ngParamSerializer(params) {
if (!params) return '';
var parts = [];
forEachSorted(params, function (value, key) {
if (value === null || isUndefined(value) || isFunction(value)) return;
if (isArray(value)) {
forEach(value, function (v) {
parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));
});
} else {
parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));
}
});
return parts.join('&');
};
};
}
/** @this */
function $HttpParamSerializerJQLikeProvider() {
/**
* @ngdoc service
* @name $httpParamSerializerJQLike
*
* @description
*
* Alternative {@link $http `$http`} params serializer that follows
* jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.
* The serializer will also sort the params alphabetically.
*
* To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:
*
* ```js
* $http({
* url: myUrl,
* method: 'GET',
* params: myParams,
* paramSerializer: '$httpParamSerializerJQLike'
* });
* ```
*
* It is also possible to set it as the default `paramSerializer` in the
* {@link $httpProvider#defaults `$httpProvider`}.
*
* Additionally, you can inject the serializer and use it explicitly, for example to serialize
* form data for submission:
*
* ```js
* .controller(function($http, $httpParamSerializerJQLike) {
* //...
*
* $http({
* url: myUrl,
* method: 'POST',
* data: $httpParamSerializerJQLike(myData),
* headers: {
* 'Content-Type': 'application/x-www-form-urlencoded'
* }
* });
*
* });
* ```
*
* */
this.$get = function () {
return function jQueryLikeParamSerializer(params) {
if (!params) return '';
var parts = [];
serialize(params, '', true);
return parts.join('&');
function serialize(toSerialize, prefix, topLevel) {
if (toSerialize === null || isUndefined(toSerialize)) return;
if (isArray(toSerialize)) {
forEach(toSerialize, function (value, index) {
serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');
});
} else if (isObject(toSerialize) && !isDate(toSerialize)) {
forEachSorted(toSerialize, function (value, key) {
serialize(value, prefix + (topLevel ? '' : '[') + key + (topLevel ? '' : ']'));
});
} else {
parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));
}
}
};
};
}
function defaultHttpResponseTransform(data, headers) {
if (isString(data)) {
// Strip json vulnerability protection prefix and trim whitespace
var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();
if (tempData) {
var contentType = headers('Content-Type');
var hasJsonContentType = contentType && contentType.indexOf(APPLICATION_JSON) === 0;
if (hasJsonContentType || isJsonLike(tempData)) {
try {
data = fromJson(tempData);
} catch (e) {
if (!hasJsonContentType) {
return data;
}
throw $httpMinErr('baddata', 'Data must be a valid JSON object. Received: "{0}". ' + 'Parse error: "{1}"', data, e);
}
}
}
}
return data;
}
function isJsonLike(str) {
var jsonStart = str.match(JSON_START);
return jsonStart && JSON_ENDS[jsonStart[0]].test(str);
}
/**
* Parse headers into key value object
*
* @param {string} headers Raw headers as a string
* @returns {Object} Parsed headers as key value object
*/
function parseHeaders(headers) {
var parsed = createMap(),
i;
function fillInParsed(key, val) {
if (key) {
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
}
}
if (isString(headers)) {
forEach(headers.split('\n'), function (line) {
i = line.indexOf(':');
fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));
});
} else if (isObject(headers)) {
forEach(headers, function (headerVal, headerKey) {
fillInParsed(lowercase(headerKey), trim(headerVal));
});
}
return parsed;
}
/**
* Returns a function that provides access to parsed headers.
*
* Headers are lazy parsed when first requested.
* @see parseHeaders
*
* @param {(string|Object)} headers Headers to provide access to.
* @returns {function(string=)} Returns a getter function which if called with:
*
* - if called with an argument returns a single header value or null
* - if called with no arguments returns an object containing all headers.
*/
function headersGetter(headers) {
var headersObj;
return function (name) {
if (!headersObj) headersObj = parseHeaders(headers);
if (name) {
var value = headersObj[lowercase(name)];
if (value === undefined) {
value = null;
}
return value;
}
return headersObj;
};
}
/**
* Chain all given functions
*
* This function is used for both request and response transforming
*
* @param {*} data Data to transform.
* @param {function(string=)} headers HTTP headers getter fn.
* @param {number} status HTTP status code of the response.
* @param {(Function|Array.<Function>)} fns Function or an array of functions.
* @returns {*} Transformed data.
*/
function transformData(data, headers, status, fns) {
if (isFunction(fns)) {
return fns(data, headers, status);
}
forEach(fns, function (fn) {
data = fn(data, headers, status);
});
return data;
}
function isSuccess(status) {
return 200 <= status && status < 300;
}
/**
* @ngdoc provider
* @name $httpProvider
* @this
*
* @description
* Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.
* */
function $HttpProvider() {
/**
* @ngdoc property
* @name $httpProvider#defaults
* @description
*
* Object containing default values for all {@link ng.$http $http} requests.
*
* - **`defaults.cache`** - {boolean|Object} - A boolean value or object created with
* {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of HTTP responses
* by default. See {@link $http#caching $http Caching} for more information.
*
* - **`defaults.headers`** - {Object} - Default headers for all $http requests.
* Refer to {@link ng.$http#setting-http-headers $http} for documentation on
* setting default headers.
* - **`defaults.headers.common`**
* - **`defaults.headers.post`**
* - **`defaults.headers.put`**
* - **`defaults.headers.patch`**
*
* - **`defaults.jsonpCallbackParam`** - `{string}` - the name of the query parameter that passes the name of the
* callback in a JSONP request. The value of this parameter will be replaced with the expression generated by the
* {@link $jsonpCallbacks} service. Defaults to `'callback'`.
*
* - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function
* used to the prepare string representation of request parameters (specified as an object).
* If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.
* Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.
*
* - **`defaults.transformRequest`** -
* `{Array<function(data, headersGetter)>|function(data, headersGetter)}` -
* An array of functions (or a single function) which are applied to the request data.
* By default, this is an array with one request transformation function:
*
* - If the `data` property of the request configuration object contains an object, serialize it
* into JSON format.
*
* - **`defaults.transformResponse`** -
* `{Array<function(data, headersGetter, status)>|function(data, headersGetter, status)}` -
* An array of functions (or a single function) which are applied to the response data. By default,
* this is an array which applies one response transformation function that does two things:
*
* - If XSRF prefix is detected, strip it
* (see {@link ng.$http#security-considerations Security Considerations in the $http docs}).
* - If the `Content-Type` is `application/json` or the response looks like JSON,
* deserialize it using a JSON parser.
*
* - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.
* Defaults value is `'XSRF-TOKEN'`.
*
* - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the
* XSRF token. Defaults value is `'X-XSRF-TOKEN'`.
*
**/
var defaults = this.defaults = {
// transform incoming response data
transformResponse: [defaultHttpResponseTransform],
// transform outgoing request data
transformRequest: [function (d) {
return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;
}],
// default headers
headers: {
common: {
'Accept': 'application/json, text/plain, */*'
},
post: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
put: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
patch: shallowCopy(CONTENT_TYPE_APPLICATION_JSON)
},
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
paramSerializer: '$httpParamSerializer',
jsonpCallbackParam: 'callback'
};
var useApplyAsync = false;
/**
* @ngdoc method
* @name $httpProvider#useApplyAsync
* @description
*
* Configure $http service to combine processing of multiple http responses received at around
* the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in
* significant performance improvement for bigger applications that make many HTTP requests
* concurrently (common during application bootstrap).
*
* Defaults to false. If no value is specified, returns the current configured value.
*
* @param {boolean=} value If true, when requests are loaded, they will schedule a deferred
* "apply" on the next tick, giving time for subsequent requests in a roughly ~10ms window
* to load and share the same digest cycle.
*
* @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
* otherwise, returns the current configured value.
**/
this.useApplyAsync = function (value) {
if (isDefined(value)) {
useApplyAsync = !!value;
return this;
}
return useApplyAsync;
};
/**
* @ngdoc property
* @name $httpProvider#interceptors
* @description
*
* Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}
* pre-processing of request or postprocessing of responses.
*
* These service factories are ordered by request, i.e. they are applied in the same order as the
* array, on request, but reverse order, on response.
*
* {@link ng.$http#interceptors Interceptors detailed info}
**/
var interceptorFactories = this.interceptors = [];
this.$get = ['$browser', '$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector', '$sce', function ($browser, $httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector, $sce) {
var defaultCache = $cacheFactory('$http');
/**
* Make sure that default param serializer is exposed as a function
*/
defaults.paramSerializer = isString(defaults.paramSerializer) ? $injector.get(defaults.paramSerializer) : defaults.paramSerializer;
/**
* Interceptors stored in reverse order. Inner interceptors before outer interceptors.
* The reversal is needed so that we can build up the interception chain around the
* server request.
*/
var reversedInterceptors = [];
forEach(interceptorFactories, function (interceptorFactory) {
reversedInterceptors.unshift(isString(interceptorFactory) ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));
});
/**
* @ngdoc service
* @kind function
* @name $http
* @requires ng.$httpBackend
* @requires $cacheFactory
* @requires $rootScope
* @requires $q
* @requires $injector
*
* @description
* The `$http` service is a core Angular service that facilitates communication with the remote
* HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)
* object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).
*
* For unit testing applications that use `$http` service, see
* {@link ngMock.$httpBackend $httpBackend mock}.
*
* For a higher level of abstraction, please check out the {@link ngResource.$resource
* $resource} service.
*
* The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by
* the $q service. While for simple usage patterns this doesn't matter much, for advanced usage
* it is important to familiarize yourself with these APIs and the guarantees they provide.
*
*
* ## General usage
* The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —
* that is used to generate an HTTP request and returns a {@link ng.$q promise}.
*
* ```js
* // Simple GET request example:
* $http({
* method: 'GET',
* url: '/someUrl'
* }).then(function successCallback(response) {
* // this callback will be called asynchronously
* // when the response is available
* }, function errorCallback(response) {
* // called asynchronously if an error occurs
* // or server returns response with an error status.
* });
* ```
*
* The response object has these properties:
*
* - **data** `{string|Object}` The response body transformed with the transform
* functions.
* - **status** `{number}` HTTP status code of the response.
* - **headers** `{function([headerName])}` Header getter function.
* - **config** `{Object}` The configuration object that was used to generate the request.
* - **statusText** `{string}` HTTP status text of the response.
* - **xhrStatus** `{string}` Status of the XMLHttpRequest (`complete`, `error`, `timeout` or `abort`).
*
* A response status code between 200 and 299 is considered a success status and will result in
* the success callback being called. Any response status code outside of that range is
* considered an error status and will result in the error callback being called.
* Also, status codes less than -1 are normalized to zero. -1 usually means the request was
* aborted, e.g. using a `config.timeout`.
* Note that if the response is a redirect, XMLHttpRequest will transparently follow it, meaning
* that the outcome (success or error) will be determined by the final response status code.
*
*
* ## Shortcut methods
*
* Shortcut methods are also available. All shortcut methods require passing in the URL, and
* request data must be passed in for POST/PUT requests. An optional config can be passed as the
* last argument.
*
* ```js
* $http.get('/someUrl', config).then(successCallback, errorCallback);
* $http.post('/someUrl', data, config).then(successCallback, errorCallback);
* ```
*
* Complete list of shortcut methods:
*
* - {@link ng.$http#get $http.get}
* - {@link ng.$http#head $http.head}
* - {@link ng.$http#post $http.post}
* - {@link ng.$http#put $http.put}
* - {@link ng.$http#delete $http.delete}
* - {@link ng.$http#jsonp $http.jsonp}
* - {@link ng.$http#patch $http.patch}
*
*
* ## Writing Unit Tests that use $http
* When unit testing (using {@link ngMock ngMock}), it is necessary to call
* {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending
* request using trained responses.
*
* ```
* $httpBackend.expectGET(...);
* $http.get(...);
* $httpBackend.flush();
* ```
*
* ## Setting HTTP Headers
*
* The $http service will automatically add certain HTTP headers to all requests. These defaults
* can be fully configured by accessing the `$httpProvider.defaults.headers` configuration
* object, which currently contains this default configuration:
*
* - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
* - <code>Accept: application/json, text/plain, \*&#65279;/&#65279;\*</code>
* - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)
* - `Content-Type: application/json`
* - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)
* - `Content-Type: application/json`
*
* To add or overwrite these defaults, simply add or remove a property from these configuration
* objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
* with the lowercased HTTP method name as the key, e.g.
* `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.
*
* The defaults can also be set at runtime via the `$http.defaults` object in the same
* fashion. For example:
*
* ```
* module.run(function($http) {
* $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w';
* });
* ```
*
* In addition, you can supply a `headers` property in the config object passed when
* calling `$http(config)`, which overrides the defaults without changing them globally.
*
* To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,
* Use the `headers` property, setting the desired header to `undefined`. For example:
*
* ```js
* var req = {
* method: 'POST',
* url: 'http://example.com',
* headers: {
* 'Content-Type': undefined
* },
* data: { test: 'test' }
* }
*
* $http(req).then(function(){...}, function(){...});
* ```
*
* ## Transforming Requests and Responses
*
* Both requests and responses can be transformed using transformation functions: `transformRequest`
* and `transformResponse`. These properties can be a single function that returns
* the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,
* which allows you to `push` or `unshift` a new transformation function into the transformation chain.
*
* <div class="alert alert-warning">
* **Note:** Angular does not make a copy of the `data` parameter before it is passed into the `transformRequest` pipeline.
* That means changes to the properties of `data` are not local to the transform function (since Javascript passes objects by reference).
* For example, when calling `$http.get(url, $scope.myObject)`, modifications to the object's properties in a transformRequest
* function will be reflected on the scope and in any templates where the object is data-bound.
* To prevent this, transform functions should have no side-effects.
* If you need to modify properties, it is recommended to make a copy of the data, or create new object to return.
* </div>
*
* ### Default Transformations
*
* The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and
* `defaults.transformResponse` properties. If a request does not provide its own transformations
* then these will be applied.
*
* You can augment or replace the default transformations by modifying these properties by adding to or
* replacing the array.
*
* Angular provides the following default transformations:
*
* Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`) is
* an array with one function that does the following:
*
* - If the `data` property of the request configuration object contains an object, serialize it
* into JSON format.
*
* Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`) is
* an array with one function that does the following:
*
* - If XSRF prefix is detected, strip it (see Security Considerations section below).
* - If the `Content-Type` is `application/json` or the response looks like JSON,
* deserialize it using a JSON parser.
*
*
* ### Overriding the Default Transformations Per Request
*
* If you wish to override the request/response transformations only for a single request then provide
* `transformRequest` and/or `transformResponse` properties on the configuration object passed
* into `$http`.
*
* Note that if you provide these properties on the config object the default transformations will be
* overwritten. If you wish to augment the default transformations then you must include them in your
* local transformation array.
*
* The following code demonstrates adding a new response transformation to be run after the default response
* transformations have been run.
*
* ```js
* function appendTransform(defaults, transform) {
*
* // We can't guarantee that the default transformation is an array
* defaults = angular.isArray(defaults) ? defaults : [defaults];
*
* // Append the new transformation to the defaults
* return defaults.concat(transform);
* }
*
* $http({
* url: '...',
* method: 'GET',
* transformResponse: appendTransform($http.defaults.transformResponse, function(value) {
* return doTransform(value);
* })
* });
* ```
*
*
* ## Caching
*
* {@link ng.$http `$http`} responses are not cached by default. To enable caching, you must
* set the config.cache value or the default cache value to TRUE or to a cache object (created
* with {@link ng.$cacheFactory `$cacheFactory`}). If defined, the value of config.cache takes
* precedence over the default cache value.
*
* In order to:
* * cache all responses - set the default cache value to TRUE or to a cache object
* * cache a specific response - set config.cache value to TRUE or to a cache object
*
* If caching is enabled, but neither the default cache nor config.cache are set to a cache object,
* then the default `$cacheFactory("$http")` object is used.
*
* The default cache value can be set by updating the
* {@link ng.$http#defaults `$http.defaults.cache`} property or the
* {@link $httpProvider#defaults `$httpProvider.defaults.cache`} property.
*
* When caching is enabled, {@link ng.$http `$http`} stores the response from the server using
* the relevant cache object. The next time the same request is made, the response is returned
* from the cache without sending a request to the server.
*
* Take note that:
*
* * Only GET and JSONP requests are cached.
* * The cache key is the request URL including search parameters; headers are not considered.
* * Cached responses are returned asynchronously, in the same way as responses from the server.
* * If multiple identical requests are made using the same cache, which is not yet populated,
* one request will be made to the server and remaining requests will return the same response.
* * A cache-control header on the response does not affect if or how responses are cached.
*
*
* ## Interceptors
*
* Before you start creating interceptors, be sure to understand the
* {@link ng.$q $q and deferred/promise APIs}.
*
* For purposes of global error handling, authentication, or any kind of synchronous or
* asynchronous pre-processing of request or postprocessing of responses, it is desirable to be
* able to intercept requests before they are handed to the server and
* responses before they are handed over to the application code that
* initiated these requests. The interceptors leverage the {@link ng.$q
* promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.
*
* The interceptors are service factories that are registered with the `$httpProvider` by
* adding them to the `$httpProvider.interceptors` array. The factory is called and
* injected with dependencies (if specified) and returns the interceptor.
*
* There are two kinds of interceptors (and two kinds of rejection interceptors):
*
* * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to
* modify the `config` object or create a new one. The function needs to return the `config`
* object directly, or a promise containing the `config` or a new `config` object.
* * `requestError`: interceptor gets called when a previous interceptor threw an error or
* resolved with a rejection.
* * `response`: interceptors get called with http `response` object. The function is free to
* modify the `response` object or create a new one. The function needs to return the `response`
* object directly, or as a promise containing the `response` or a new `response` object.
* * `responseError`: interceptor gets called when a previous interceptor threw an error or
* resolved with a rejection.
*
*
* ```js
* // register the interceptor as a service
* $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
* return {
* // optional method
* 'request': function(config) {
* // do something on success
* return config;
* },
*
* // optional method
* 'requestError': function(rejection) {
* // do something on error
* if (canRecover(rejection)) {
* return responseOrNewPromise
* }
* return $q.reject(rejection);
* },
*
*
*
* // optional method
* 'response': function(response) {
* // do something on success
* return response;
* },
*
* // optional method
* 'responseError': function(rejection) {
* // do something on error
* if (canRecover(rejection)) {
* return responseOrNewPromise
* }
* return $q.reject(rejection);
* }
* };
* });
*
* $httpProvider.interceptors.push('myHttpInterceptor');
*
*
* // alternatively, register the interceptor via an anonymous factory
* $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
* return {
* 'request': function(config) {
* // same as above
* },
*
* 'response': function(response) {
* // same as above
* }
* };
* });
* ```
*
* ## Security Considerations
*
* When designing web applications, consider security threats from:
*
* - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
* - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
*
* Both server and the client must cooperate in order to eliminate these threats. Angular comes
* pre-configured with strategies that address these issues, but for this to work backend server
* cooperation is required.
*
* ### JSON Vulnerability Protection
*
* A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
* allows third party website to turn your JSON resource URL into
* [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To
* counter this your server can prefix all JSON requests with following string `")]}',\n"`.
* Angular will automatically strip the prefix before processing it as JSON.
*
* For example if your server needs to return:
* ```js
* ['one','two']
* ```
*
* which is vulnerable to attack, your server can return:
* ```js
* )]}',
* ['one','two']
* ```
*
* Angular will strip the prefix, before processing the JSON.
*
*
* ### Cross Site Request Forgery (XSRF) Protection
*
* [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by
* which the attacker can trick an authenticated user into unknowingly executing actions on your
* website. Angular provides a mechanism to counter XSRF. When performing XHR requests, the
* $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP
* header (`X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read the
* cookie, your server can be assured that the XHR came from JavaScript running on your domain.
* The header will not be set for cross-domain requests.
*
* To take advantage of this, your server needs to set a token in a JavaScript readable session
* cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the
* server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure
* that only JavaScript running on your domain could have sent the request. The token must be
* unique for each user and must be verifiable by the server (to prevent the JavaScript from
* making up its own tokens). We recommend that the token is a digest of your site's
* authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)
* for added security.
*
* The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName
* properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,
* or the per-request config object.
*
* In order to prevent collisions in environments where multiple Angular apps share the
* same domain or subdomain, we recommend that each application uses unique cookie name.
*
* @param {object} config Object describing the request to be made and how it should be
* processed. The object has following properties:
*
* - **method** `{string}` HTTP method (e.g. 'GET', 'POST', etc)
* - **url** `{string|TrustedObject}` Absolute or relative URL of the resource that is being requested;
* or an object created by a call to `$sce.trustAsResourceUrl(url)`.
* - **params** `{Object.<string|Object>}` Map of strings or objects which will be serialized
* with the `paramSerializer` and appended as GET parameters.
* - **data** `{string|Object}` Data to be sent as the request message data.
* - **headers** `{Object}` Map of strings or functions which return strings representing
* HTTP headers to send to the server. If the return value of a function is null, the
* header will not be sent. Functions accept a config object as an argument.
* - **eventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest object.
* To bind events to the XMLHttpRequest upload object, use `uploadEventHandlers`.
* The handler will be called in the context of a `$apply` block.
* - **uploadEventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest upload
* object. To bind events to the XMLHttpRequest object, use `eventHandlers`.
* The handler will be called in the context of a `$apply` block.
* - **xsrfHeaderName** `{string}` Name of HTTP header to populate with the XSRF token.
* - **xsrfCookieName** `{string}` Name of cookie containing the XSRF token.
* - **transformRequest**
* `{function(data, headersGetter)|Array.<function(data, headersGetter)>}`
* transform function or an array of such functions. The transform function takes the http
* request body and headers and returns its transformed (typically serialized) version.
* See {@link ng.$http#overriding-the-default-transformations-per-request
* Overriding the Default Transformations}
* - **transformResponse**
* `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}`
* transform function or an array of such functions. The transform function takes the http
* response body, headers and status and returns its transformed (typically deserialized) version.
* See {@link ng.$http#overriding-the-default-transformations-per-request
* Overriding the Default Transformations}
* - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to
* prepare the string representation of request parameters (specified as an object).
* If specified as string, it is interpreted as function registered with the
* {@link $injector $injector}, which means you can create your own serializer
* by registering it as a {@link auto.$provide#service service}.
* The default serializer is the {@link $httpParamSerializer $httpParamSerializer};
* alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}
* - **cache** `{boolean|Object}` A boolean value or object created with
* {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of the HTTP response.
* See {@link $http#caching $http Caching} for more information.
* - **timeout** `{number|Promise}` timeout in milliseconds, or {@link ng.$q promise}
* that should abort the request when resolved.
* - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the
* XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)
* for more information.
* - **responseType** - `{string}` - see
* [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).
*
* @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object
* when the request succeeds or fails.
*
*
* @property {Array.<Object>} pendingRequests Array of config objects for currently pending
* requests. This is primarily meant to be used for debugging purposes.
*
*
* @example
<example module="httpExample" name="http-service">
<file name="index.html">
<div ng-controller="FetchController">
<select ng-model="method" aria-label="Request method">
<option>GET</option>
<option>JSONP</option>
</select>
<input type="text" ng-model="url" size="80" aria-label="URL" />
<button id="fetchbtn" ng-click="fetch()">fetch</button><br>
<button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
<button id="samplejsonpbtn"
ng-click="updateModel('JSONP',
'https://angularjs.org/greet.php?name=Super%20Hero')">
Sample JSONP
</button>
<button id="invalidjsonpbtn"
ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist')">
Invalid JSONP
</button>
<pre>http status code: {{status}}</pre>
<pre>http response data: {{data}}</pre>
</div>
</file>
<file name="script.js">
angular.module('httpExample', [])
.config(['$sceDelegateProvider', function($sceDelegateProvider) {
// We must whitelist the JSONP endpoint that we are using to show that we trust it
$sceDelegateProvider.resourceUrlWhitelist([
'self',
'https://angularjs.org/**'
]);
}])
.controller('FetchController', ['$scope', '$http', '$templateCache',
function($scope, $http, $templateCache) {
$scope.method = 'GET';
$scope.url = 'http-hello.html';
$scope.fetch = function() {
$scope.code = null;
$scope.response = null;
$http({method: $scope.method, url: $scope.url, cache: $templateCache}).
then(function(response) {
$scope.status = response.status;
$scope.data = response.data;
}, function(response) {
$scope.data = response.data || 'Request failed';
$scope.status = response.status;
});
};
$scope.updateModel = function(method, url) {
$scope.method = method;
$scope.url = url;
};
}]);
</file>
<file name="http-hello.html">
Hello, $http!
</file>
<file name="protractor.js" type="protractor">
var status = element(by.binding('status'));
var data = element(by.binding('data'));
var fetchBtn = element(by.id('fetchbtn'));
var sampleGetBtn = element(by.id('samplegetbtn'));
var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));
it('should make an xhr GET request', function() {
sampleGetBtn.click();
fetchBtn.click();
expect(status.getText()).toMatch('200');
expect(data.getText()).toMatch(/Hello, \$http!/);
});
// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185
// it('should make a JSONP request to angularjs.org', function() {
// var sampleJsonpBtn = element(by.id('samplejsonpbtn'));
// sampleJsonpBtn.click();
// fetchBtn.click();
// expect(status.getText()).toMatch('200');
// expect(data.getText()).toMatch(/Super Hero!/);
// });
it('should make JSONP request to invalid URL and invoke the error handler',
function() {
invalidJsonpBtn.click();
fetchBtn.click();
expect(status.getText()).toMatch('0');
expect(data.getText()).toMatch('Request failed');
});
</file>
</example>
*/
function $http(requestConfig) {
if (!isObject(requestConfig)) {
throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig);
}
if (!isString($sce.valueOf(requestConfig.url))) {
throw minErr('$http')('badreq', 'Http request configuration url must be a string or a $sce trusted object. Received: {0}', requestConfig.url);
}
var config = extend({
method: 'get',
transformRequest: defaults.transformRequest,
transformResponse: defaults.transformResponse,
paramSerializer: defaults.paramSerializer,
jsonpCallbackParam: defaults.jsonpCallbackParam
}, requestConfig);
config.headers = mergeHeaders(requestConfig);
config.method = uppercase(config.method);
config.paramSerializer = isString(config.paramSerializer) ? $injector.get(config.paramSerializer) : config.paramSerializer;
$browser.$$incOutstandingRequestCount();
var requestInterceptors = [];
var responseInterceptors = [];
var promise = $q.resolve(config);
// apply interceptors
forEach(reversedInterceptors, function (interceptor) {
if (interceptor.request || interceptor.requestError) {
requestInterceptors.unshift(interceptor.request, interceptor.requestError);
}
if (interceptor.response || interceptor.responseError) {
responseInterceptors.push(interceptor.response, interceptor.responseError);
}
});
promise = chainInterceptors(promise, requestInterceptors);
promise = promise.then(serverRequest);
promise = chainInterceptors(promise, responseInterceptors);
promise = promise.finally(completeOutstandingRequest);
return promise;
function chainInterceptors(promise, interceptors) {
for (var i = 0, ii = interceptors.length; i < ii;) {
var thenFn = interceptors[i++];
var rejectFn = interceptors[i++];
promise = promise.then(thenFn, rejectFn);
}
interceptors.length = 0;
return promise;
}
function completeOutstandingRequest() {
$browser.$$completeOutstandingRequest(noop);
}
function executeHeaderFns(headers, config) {
var headerContent,
processedHeaders = {};
forEach(headers, function (headerFn, header) {
if (isFunction(headerFn)) {
headerContent = headerFn(config);
if (headerContent != null) {
processedHeaders[header] = headerContent;
}
} else {
processedHeaders[header] = headerFn;
}
});
return processedHeaders;
}
function mergeHeaders(config) {
var defHeaders = defaults.headers,
reqHeaders = extend({}, config.headers),
defHeaderName,
lowercaseDefHeaderName,
reqHeaderName;
defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);
// using for-in instead of forEach to avoid unnecessary iteration after header has been found
defaultHeadersIteration: for (defHeaderName in defHeaders) {
lowercaseDefHeaderName = lowercase(defHeaderName);
for (reqHeaderName in reqHeaders) {
if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {
continue defaultHeadersIteration;
}
}
reqHeaders[defHeaderName] = defHeaders[defHeaderName];
}
// execute if header value is a function for merged headers
return executeHeaderFns(reqHeaders, shallowCopy(config));
}
function serverRequest(config) {
var headers = config.headers;
var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);
// strip content-type if data is undefined
if (isUndefined(reqData)) {
forEach(headers, function (value, header) {
if (lowercase(header) === 'content-type') {
delete headers[header];
}
});
}
if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {
config.withCredentials = defaults.withCredentials;
}
// send request
return sendReq(config, reqData).then(transformResponse, transformResponse);
}
function transformResponse(response) {
// make a copy since the response must be cacheable
var resp = extend({}, response);
resp.data = transformData(response.data, response.headers, response.status, config.transformResponse);
return isSuccess(response.status) ? resp : $q.reject(resp);
}
}
$http.pendingRequests = [];
/**
* @ngdoc method
* @name $http#get
*
* @description
* Shortcut method to perform `GET` request.
*
* @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
* or an object created by a call to `$sce.trustAsResourceUrl(url)`.
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name $http#delete
*
* @description
* Shortcut method to perform `DELETE` request.
*
* @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
* or an object created by a call to `$sce.trustAsResourceUrl(url)`.
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name $http#head
*
* @description
* Shortcut method to perform `HEAD` request.
*
* @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
* or an object created by a call to `$sce.trustAsResourceUrl(url)`.
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name $http#jsonp
*
* @description
* Shortcut method to perform `JSONP` request.
*
* Note that, since JSONP requests are sensitive because the response is given full access to the browser,
* the url must be declared, via {@link $sce} as a trusted resource URL.
* You can trust a URL by adding it to the whitelist via
* {@link $sceDelegateProvider#resourceUrlWhitelist `$sceDelegateProvider.resourceUrlWhitelist`} or
* by explicitly trusting the URL via {@link $sce#trustAsResourceUrl `$sce.trustAsResourceUrl(url)`}.
*
* You should avoid generating the URL for the JSONP request from user provided data.
* Provide additional query parameters via `params` property of the `config` parameter, rather than
* modifying the URL itself.
*
* JSONP requests must specify a callback to be used in the response from the server. This callback
* is passed as a query parameter in the request. You must specify the name of this parameter by
* setting the `jsonpCallbackParam` property on the request config object.
*
* ```
* $http.jsonp('some/trusted/url', {jsonpCallbackParam: 'callback'})
* ```
*
* You can also specify a default callback parameter name in `$http.defaults.jsonpCallbackParam`.
* Initially this is set to `'callback'`.
*
* <div class="alert alert-danger">
* You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback
* parameter value should go.
* </div>
*
* If you would like to customise where and how the callbacks are stored then try overriding
* or decorating the {@link $jsonpCallbacks} service.
*
* @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
* or an object created by a call to `$sce.trustAsResourceUrl(url)`.
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
createShortMethods('get', 'delete', 'head', 'jsonp');
/**
* @ngdoc method
* @name $http#post
*
* @description
* Shortcut method to perform `POST` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {*} data Request content
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name $http#put
*
* @description
* Shortcut method to perform `PUT` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {*} data Request content
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
/**
* @ngdoc method
* @name $http#patch
*
* @description
* Shortcut method to perform `PATCH` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request
* @param {*} data Request content
* @param {Object=} config Optional configuration object. See https://docs.angularjs.org/api/ng/service/$http#usage
* @returns {HttpPromise} Future object
*/
createShortMethodsWithData('post', 'put', 'patch');
/**
* @ngdoc property
* @name $http#defaults
*
* @description
* Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
* default headers, withCredentials as well as request and response transformations.
*
* See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
*/
$http.defaults = defaults;
return $http;
function createShortMethods(names) {
forEach(arguments, function (name) {
$http[name] = function (url, config) {
return $http(extend({}, config || {}, {
method: name,
url: url
}));
};
});
}
function createShortMethodsWithData(name) {
forEach(arguments, function (name) {
$http[name] = function (url, data, config) {
return $http(extend({}, config || {}, {
method: name,
url: url,
data: data
}));
};
});
}
/**
* Makes the request.
*
* !!! ACCESSES CLOSURE VARS:
* $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
*/
function sendReq(config, reqData) {
var deferred = $q.defer(),
promise = deferred.promise,
cache,
cachedResp,
reqHeaders = config.headers,
isJsonp = lowercase(config.method) === 'jsonp',
url = config.url;
if (isJsonp) {
// JSONP is a pretty sensitive operation where we're allowing a script to have full access to
// our DOM and JS space. So we require that the URL satisfies SCE.RESOURCE_URL.
url = $sce.getTrustedResourceUrl(url);
} else if (!isString(url)) {
// If it is not a string then the URL must be a $sce trusted object
url = $sce.valueOf(url);
}
url = buildUrl(url, config.paramSerializer(config.params));
if (isJsonp) {
// Check the url and add the JSONP callback placeholder
url = sanitizeJsonpCallbackParam(url, config.jsonpCallbackParam);
}
$http.pendingRequests.push(config);
promise.then(removePendingReq, removePendingReq);
if ((config.cache || defaults.cache) && config.cache !== false && (config.method === 'GET' || config.method === 'JSONP')) {
cache = isObject(config.cache) ? config.cache : isObject( /** @type {?} */defaults.cache) ? /** @type {?} */defaults.cache : defaultCache;
}
if (cache) {
cachedResp = cache.get(url);
if (isDefined(cachedResp)) {
if (isPromiseLike(cachedResp)) {
// cached request has already been sent, but there is no response yet
cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);
} else {
// serving from cache
if (isArray(cachedResp)) {
resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3], cachedResp[4]);
} else {
resolvePromise(cachedResp, 200, {}, 'OK', 'complete');
}
}
} else {
// put the promise for the non-transformed response into cache as a placeholder
cache.put(url, promise);
}
}
// if we won't have the response in cache, set the xsrf headers and
// send the request to the backend
if (isUndefined(cachedResp)) {
var xsrfValue = urlIsSameOrigin(config.url) ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName] : undefined;
if (xsrfValue) {
reqHeaders[config.xsrfHeaderName || defaults.xsrfHeaderName] = xsrfValue;
}
$httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout, config.withCredentials, config.responseType, createApplyHandlers(config.eventHandlers), createApplyHandlers(config.uploadEventHandlers));
}
return promise;
function createApplyHandlers(eventHandlers) {
if (eventHandlers) {
var applyHandlers = {};
forEach(eventHandlers, function (eventHandler, key) {
applyHandlers[key] = function (event) {
if (useApplyAsync) {
$rootScope.$applyAsync(callEventHandler);
} else if ($rootScope.$$phase) {
callEventHandler();
} else {
$rootScope.$apply(callEventHandler);
}
function callEventHandler() {
eventHandler(event);
}
};
});
return applyHandlers;
}
}
/**
* Callback registered to $httpBackend():
* - caches the response if desired
* - resolves the raw $http promise
* - calls $apply
*/
function done(status, response, headersString, statusText, xhrStatus) {
if (cache) {
if (isSuccess(status)) {
cache.put(url, [status, response, parseHeaders(headersString), statusText, xhrStatus]);
} else {
// remove promise from the cache
cache.remove(url);
}
}
function resolveHttpPromise() {
resolvePromise(response, status, headersString, statusText, xhrStatus);
}
if (useApplyAsync) {
$rootScope.$applyAsync(resolveHttpPromise);
} else {
resolveHttpPromise();
if (!$rootScope.$$phase) $rootScope.$apply();
}
}
/**
* Resolves the raw $http promise.
*/
function resolvePromise(response, status, headers, statusText, xhrStatus) {
//status: HTTP response status code, 0, -1 (aborted by timeout / promise)
status = status >= -1 ? status : 0;
(isSuccess(status) ? deferred.resolve : deferred.reject)({
data: response,
status: status,
headers: headersGetter(headers),
config: config,
statusText: statusText,
xhrStatus: xhrStatus
});
}
function resolvePromiseWithResult(result) {
resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText, result.xhrStatus);
}
function removePendingReq() {
var idx = $http.pendingRequests.indexOf(config);
if (idx !== -1) $http.pendingRequests.splice(idx, 1);
}
}
function buildUrl(url, serializedParams) {
if (serializedParams.length > 0) {
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
}
return url;
}
function sanitizeJsonpCallbackParam(url, cbKey) {
var parts = url.split('?');
if (parts.length > 2) {
// Throw if the url contains more than one `?` query indicator
throw $httpMinErr('badjsonp', 'Illegal use more than one "?", in url, "{1}"', url);
}
var params = parseKeyValue(parts[1]);
forEach(params, function (value, key) {
if (value === 'JSON_CALLBACK') {
// Throw if the url already contains a reference to JSON_CALLBACK
throw $httpMinErr('badjsonp', 'Illegal use of JSON_CALLBACK in url, "{0}"', url);
}
if (key === cbKey) {
// Throw if the callback param was already provided
throw $httpMinErr('badjsonp', 'Illegal use of callback param, "{0}", in url, "{1}"', cbKey, url);
}
});
// Add in the JSON_CALLBACK callback param value
url += (url.indexOf('?') === -1 ? '?' : '&') + cbKey + '=JSON_CALLBACK';
return url;
}
}];
}
/**
* @ngdoc service
* @name $xhrFactory
* @this
*
* @description
* Factory function used to create XMLHttpRequest objects.
*
* Replace or decorate this service to create your own custom XMLHttpRequest objects.
*
* ```
* angular.module('myApp', [])
* .factory('$xhrFactory', function() {
* return function createXhr(method, url) {
* return new window.XMLHttpRequest({mozSystem: true});
* };
* });
* ```
*
* @param {string} method HTTP method of the request (GET, POST, PUT, ..)
* @param {string} url URL of the request.
*/
function $xhrFactoryProvider() {
this.$get = function () {
return function createXhr() {
return new window.XMLHttpRequest();
};
};
}
/**
* @ngdoc service
* @name $httpBackend
* @requires $jsonpCallbacks
* @requires $document
* @requires $xhrFactory
* @this
*
* @description
* HTTP backend used by the {@link ng.$http service} that delegates to
* XMLHttpRequest object or JSONP and deals with browser incompatibilities.
*
* You should never need to use this service directly, instead use the higher-level abstractions:
* {@link ng.$http $http} or {@link ngResource.$resource $resource}.
*
* During testing this implementation is swapped with {@link ngMock.$httpBackend mock
* $httpBackend} which can be trained with responses.
*/
function $HttpBackendProvider() {
this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function ($browser, $jsonpCallbacks, $document, $xhrFactory) {
return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]);
}];
}
function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
// TODO(vojta): fix the signature
return function (method, url, post, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) {
url = url || $browser.url();
if (lowercase(method) === 'jsonp') {
var callbackPath = callbacks.createCallback(url);
var jsonpDone = jsonpReq(url, callbackPath, function (status, text) {
// jsonpReq only ever sets status to 200 (OK), 404 (ERROR) or -1 (WAITING)
var response = status === 200 && callbacks.getResponse(callbackPath);
completeRequest(callback, status, response, '', text, 'complete');
callbacks.removeCallback(callbackPath);
});
} else {
var xhr = createXhr(method, url);
xhr.open(method, url, true);
forEach(headers, function (value, key) {
if (isDefined(value)) {
xhr.setRequestHeader(key, value);
}
});
xhr.onload = function requestLoaded() {
var statusText = xhr.statusText || '';
// responseText is the old-school way of retrieving response (supported by IE9)
// response/responseType properties were introduced in XHR Level2 spec (supported by IE10)
var response = 'response' in xhr ? xhr.response : xhr.responseText;
// normalize IE9 bug (http://bugs.jquery.com/ticket/1450)
var status = xhr.status === 1223 ? 204 : xhr.status;
// fix status code when it is 0 (0 status is undocumented).
// Occurs when accessing file resources or on Android 4.1 stock browser
// while retrieving files from application cache.
if (status === 0) {
status = response ? 200 : urlResolve(url).protocol === 'file' ? 404 : 0;
}
completeRequest(callback, status, response, xhr.getAllResponseHeaders(), statusText, 'complete');
};
var requestError = function requestError() {
// The response is always empty
// See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
completeRequest(callback, -1, null, null, '', 'error');
};
var requestAborted = function requestAborted() {
completeRequest(callback, -1, null, null, '', 'abort');
};
var requestTimeout = function requestTimeout() {
// The response is always empty
// See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
completeRequest(callback, -1, null, null, '', 'timeout');
};
xhr.onerror = requestError;
xhr.onabort = requestAborted;
xhr.ontimeout = requestTimeout;
forEach(eventHandlers, function (value, key) {
xhr.addEventListener(key, value);
});
forEach(uploadEventHandlers, function (value, key) {
xhr.upload.addEventListener(key, value);
});
if (withCredentials) {
xhr.withCredentials = true;
}
if (responseType) {
try {
xhr.responseType = responseType;
} catch (e) {
// WebKit added support for the json responseType value on 09/03/2013
// https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are
// known to throw when setting the value "json" as the response type. Other older
// browsers implementing the responseType
//
// The json response type can be ignored if not supported, because JSON payloads are
// parsed on the client-side regardless.
if (responseType !== 'json') {
throw e;
}
}
}
xhr.send(isUndefined(post) ? null : post);
}
if (timeout > 0) {
var timeoutId = $browserDefer(timeoutRequest, timeout);
} else if (isPromiseLike(timeout)) {
timeout.then(timeoutRequest);
}
function timeoutRequest() {
if (jsonpDone) {
jsonpDone();
}
if (xhr) {
xhr.abort();
}
}
function completeRequest(callback, status, response, headersString, statusText, xhrStatus) {
// cancel timeout and subsequent timeout promise resolution
if (isDefined(timeoutId)) {
$browserDefer.cancel(timeoutId);
}
jsonpDone = xhr = null;
callback(status, response, headersString, statusText, xhrStatus);
}
};
function jsonpReq(url, callbackPath, done) {
url = url.replace('JSON_CALLBACK', callbackPath);
// we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:
// - fetches local scripts via XHR and evals them
// - adds and immediately removes script elements from the document
var script = rawDocument.createElement('script'),
_callback = null;
script.type = 'text/javascript';
script.src = url;
script.async = true;
_callback = function callback(event) {
script.removeEventListener('load', _callback);
script.removeEventListener('error', _callback);
rawDocument.body.removeChild(script);
script = null;
var status = -1;
var text = 'unknown';
if (event) {
if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) {
event = { type: 'error' };
}
text = event.type;
status = event.type === 'error' ? 404 : 200;
}
if (done) {
done(status, text);
}
};
script.addEventListener('load', _callback);
script.addEventListener('error', _callback);
rawDocument.body.appendChild(script);
return _callback;
}
}
var $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');
$interpolateMinErr.throwNoconcat = function (text) {
throw $interpolateMinErr('noconcat', 'Error while interpolating: {0}\nStrict Contextual Escaping disallows ' + 'interpolations that concatenate multiple expressions when a trusted value is ' + 'required. See http://docs.angularjs.org/api/ng.$sce', text);
};
$interpolateMinErr.interr = function (text, err) {
return $interpolateMinErr('interr', 'Can\'t interpolate: {0}\n{1}', text, err.toString());
};
/**
* @ngdoc provider
* @name $interpolateProvider
* @this
*
* @description
*
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
*
* <div class="alert alert-danger">
* This feature is sometimes used to mix different markup languages, e.g. to wrap an Angular
* template within a Python Jinja template (or any other template language). Mixing templating
* languages is **very dangerous**. The embedding template language will not safely escape Angular
* expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)
* security bugs!
* </div>
*
* @example
<example name="custom-interpolation-markup" module="customInterpolationApp">
<file name="index.html">
<script>
var customInterpolationApp = angular.module('customInterpolationApp', []);
customInterpolationApp.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('//');
$interpolateProvider.endSymbol('//');
});
customInterpolationApp.controller('DemoController', function() {
this.label = "This binding is brought you by // interpolation symbols.";
});
</script>
<div ng-controller="DemoController as demo">
//demo.label//
</div>
</file>
<file name="protractor.js" type="protractor">
it('should interpolate binding with custom symbols', function() {
expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');
});
</file>
</example>
*/
function $InterpolateProvider() {
var startSymbol = '{{';
var endSymbol = '}}';
/**
* @ngdoc method
* @name $interpolateProvider#startSymbol
* @description
* Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
*
* @param {string=} value new value to set the starting symbol to.
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
*/
this.startSymbol = function (value) {
if (value) {
startSymbol = value;
return this;
} else {
return startSymbol;
}
};
/**
* @ngdoc method
* @name $interpolateProvider#endSymbol
* @description
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
*
* @param {string=} value new value to set the ending symbol to.
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
*/
this.endSymbol = function (value) {
if (value) {
endSymbol = value;
return this;
} else {
return endSymbol;
}
};
this.$get = ['$parse', '$exceptionHandler', '$sce', function ($parse, $exceptionHandler, $sce) {
var startSymbolLength = startSymbol.length,
endSymbolLength = endSymbol.length,
escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),
escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');
function escape(ch) {
return '\\\\\\' + ch;
}
function unescapeText(text) {
return text.replace(escapedStartRegexp, startSymbol).replace(escapedEndRegexp, endSymbol);
}
// TODO: this is the same as the constantWatchDelegate in parse.js
function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {
var unwatch = scope.$watch(function constantInterpolateWatch(scope) {
unwatch();
return constantInterp(scope);
}, listener, objectEquality);
return unwatch;
}
/**
* @ngdoc service
* @name $interpolate
* @kind function
*
* @requires $parse
* @requires $sce
*
* @description
*
* Compiles a string with markup into an interpolation function. This service is used by the
* HTML {@link ng.$compile $compile} service for data binding. See
* {@link ng.$interpolateProvider $interpolateProvider} for configuring the
* interpolation markup.
*
*
* ```js
* var $interpolate = ...; // injected
* var exp = $interpolate('Hello {{name | uppercase}}!');
* expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');
* ```
*
* `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is
* `true`, the interpolation function will return `undefined` unless all embedded expressions
* evaluate to a value other than `undefined`.
*
* ```js
* var $interpolate = ...; // injected
* var context = {greeting: 'Hello', name: undefined };
*
* // default "forgiving" mode
* var exp = $interpolate('{{greeting}} {{name}}!');
* expect(exp(context)).toEqual('Hello !');
*
* // "allOrNothing" mode
* exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
* expect(exp(context)).toBeUndefined();
* context.name = 'Angular';
* expect(exp(context)).toEqual('Hello Angular!');
* ```
*
* `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.
*
* #### Escaped Interpolation
* $interpolate provides a mechanism for escaping interpolation markers. Start and end markers
* can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).
* It will be rendered as a regular start/end marker, and will not be interpreted as an expression
* or binding.
*
* This enables web-servers to prevent script injection attacks and defacing attacks, to some
* degree, while also enabling code examples to work without relying on the
* {@link ng.directive:ngNonBindable ngNonBindable} directive.
*
* **For security purposes, it is strongly encouraged that web servers escape user-supplied data,
* replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all
* interpolation start/end markers with their escaped counterparts.**
*
* Escaped interpolation markers are only replaced with the actual interpolation markers in rendered
* output when the $interpolate service processes the text. So, for HTML elements interpolated
* by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter
* set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,
* this is typically useful only when user-data is used in rendering a template from the server, or
* when otherwise untrusted data is used by a directive.
*
* <example name="interpolation">
* <file name="index.html">
* <div ng-init="username='A user'">
* <p ng-init="apptitle='Escaping demo'">{{apptitle}}: \{\{ username = "defaced value"; \}\}
* </p>
* <p><strong>{{username}}</strong> attempts to inject code which will deface the
* application, but fails to accomplish their task, because the server has correctly
* escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)
* characters.</p>
* <p>Instead, the result of the attempted script injection is visible, and can be removed
* from the database by an administrator.</p>
* </div>
* </file>
* </example>
*
* @knownIssue
* It is currently not possible for an interpolated expression to contain the interpolation end
* symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e.
* an interpolated expression consisting of a single-quote (`'`) and the `' }}` string.
*
* @knownIssue
* All directives and components must use the standard `{{` `}}` interpolation symbols
* in their templates. If you change the application interpolation symbols the {@link $compile}
* service will attempt to denormalize the standard symbols to the custom symbols.
* The denormalization process is not clever enough to know not to replace instances of the standard
* symbols where they would not normally be treated as interpolation symbols. For example in the following
* code snippet the closing braces of the literal object will get incorrectly denormalized:
*
* ```
* <div data-context='{"context":{"id":3,"type":"page"}}">
* ```
*
* The workaround is to ensure that such instances are separated by whitespace:
* ```
* <div data-context='{"context":{"id":3,"type":"page"} }">
* ```
*
* See https://github.com/angular/angular.js/pull/14610#issuecomment-219401099 for more information.
*
* @param {string} text The text with markup to interpolate.
* @param {boolean=} mustHaveExpression if set to true then the interpolation string must have
* embedded expression in order to return an interpolation function. Strings with no
* embedded expression will return null for the interpolation function.
* @param {string=} trustedContext when provided, the returned function passes the interpolated
* result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,
* trustedContext)} before returning it. Refer to the {@link ng.$sce $sce} service that
* provides Strict Contextual Escaping for details.
* @param {boolean=} allOrNothing if `true`, then the returned function returns undefined
* unless all embedded expressions evaluate to a value other than `undefined`.
* @returns {function(context)} an interpolation function which is used to compute the
* interpolated string. The function has these parameters:
*
* - `context`: evaluation context for all expressions embedded in the interpolated text
*/
function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {
// Provide a quick exit and simplified result function for text with no interpolation
if (!text.length || text.indexOf(startSymbol) === -1) {
var constantInterp;
if (!mustHaveExpression) {
var unescapedText = unescapeText(text);
constantInterp = valueFn(unescapedText);
constantInterp.exp = text;
constantInterp.expressions = [];
constantInterp.$$watchDelegate = constantWatchDelegate;
}
return constantInterp;
}
allOrNothing = !!allOrNothing;
var startIndex,
endIndex,
index = 0,
expressions = [],
parseFns = [],
textLength = text.length,
exp,
concat = [],
expressionPositions = [];
while (index < textLength) {
if ((startIndex = text.indexOf(startSymbol, index)) !== -1 && (endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) !== -1) {
if (index !== startIndex) {
concat.push(unescapeText(text.substring(index, startIndex)));
}
exp = text.substring(startIndex + startSymbolLength, endIndex);
expressions.push(exp);
parseFns.push($parse(exp, parseStringifyInterceptor));
index = endIndex + endSymbolLength;
expressionPositions.push(concat.length);
concat.push('');
} else {
// we did not find an interpolation, so we have to add the remainder to the separators array
if (index !== textLength) {
concat.push(unescapeText(text.substring(index)));
}
break;
}
}
// Concatenating expressions makes it hard to reason about whether some combination of
// concatenated values are unsafe to use and could easily lead to XSS. By requiring that a
// single expression be used for iframe[src], object[src], etc., we ensure that the value
// that's used is assigned or constructed by some JS code somewhere that is more testable or
// make it obvious that you bound the value to some user controlled value. This helps reduce
// the load when auditing for XSS issues.
if (trustedContext && concat.length > 1) {
$interpolateMinErr.throwNoconcat(text);
}
if (!mustHaveExpression || expressions.length) {
var compute = function compute(values) {
for (var i = 0, ii = expressions.length; i < ii; i++) {
if (allOrNothing && isUndefined(values[i])) return;
concat[expressionPositions[i]] = values[i];
}
return concat.join('');
};
var getValue = function getValue(value) {
return trustedContext ? $sce.getTrusted(trustedContext, value) : $sce.valueOf(value);
};
return extend(function interpolationFn(context) {
var i = 0;
var ii = expressions.length;
var values = new Array(ii);
try {
for (; i < ii; i++) {
values[i] = parseFns[i](context);
}
return compute(values);
} catch (err) {
$exceptionHandler($interpolateMinErr.interr(text, err));
}
}, {
// all of these properties are undocumented for now
exp: text, //just for compatibility with regular watchers created via $watch
expressions: expressions,
$$watchDelegate: function $$watchDelegate(scope, listener) {
var lastValue;
return scope.$watchGroup(parseFns, /** @this */function interpolateFnWatcher(values, oldValues) {
var currValue = compute(values);
listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);
lastValue = currValue;
});
}
});
}
function parseStringifyInterceptor(value) {
try {
value = getValue(value);
return allOrNothing && !isDefined(value) ? value : stringify(value);
} catch (err) {
$exceptionHandler($interpolateMinErr.interr(text, err));
}
}
}
/**
* @ngdoc method
* @name $interpolate#startSymbol
* @description
* Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
*
* Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change
* the symbol.
*
* @returns {string} start symbol.
*/
$interpolate.startSymbol = function () {
return startSymbol;
};
/**
* @ngdoc method
* @name $interpolate#endSymbol
* @description
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
*
* Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change
* the symbol.
*
* @returns {string} end symbol.
*/
$interpolate.endSymbol = function () {
return endSymbol;
};
return $interpolate;
}];
}
/** @this */
function $IntervalProvider() {
this.$get = ['$rootScope', '$window', '$q', '$$q', '$browser', function ($rootScope, $window, $q, $$q, $browser) {
var intervals = {};
/**
* @ngdoc service
* @name $interval
*
* @description
* Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`
* milliseconds.
*
* The return value of registering an interval function is a promise. This promise will be
* notified upon each tick of the interval, and will be resolved after `count` iterations, or
* run indefinitely if `count` is not defined. The value of the notification will be the
* number of iterations that have run.
* To cancel an interval, call `$interval.cancel(promise)`.
*
* In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to
* move forward by `millis` milliseconds and trigger any functions scheduled to run in that
* time.
*
* <div class="alert alert-warning">
* **Note**: Intervals created by this service must be explicitly destroyed when you are finished
* with them. In particular they are not automatically destroyed when a controller's scope or a
* directive's element are destroyed.
* You should take this into consideration and make sure to always cancel the interval at the
* appropriate moment. See the example below for more details on how and when to do this.
* </div>
*
* @param {function()} fn A function that should be called repeatedly. If no additional arguments
* are passed (see below), the function is called with the current iteration count.
* @param {number} delay Number of milliseconds between each function call.
* @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
* indefinitely.
* @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
* @param {...*=} Pass additional parameters to the executed function.
* @returns {promise} A promise which will be notified on each iteration. It will resolve once all iterations of the interval complete.
*
* @example
* <example module="intervalExample" name="interval-service">
* <file name="index.html">
* <script>
* angular.module('intervalExample', [])
* .controller('ExampleController', ['$scope', '$interval',
* function($scope, $interval) {
* $scope.format = 'M/d/yy h:mm:ss a';
* $scope.blood_1 = 100;
* $scope.blood_2 = 120;
*
* var stop;
* $scope.fight = function() {
* // Don't start a new fight if we are already fighting
* if ( angular.isDefined(stop) ) return;
*
* stop = $interval(function() {
* if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {
* $scope.blood_1 = $scope.blood_1 - 3;
* $scope.blood_2 = $scope.blood_2 - 4;
* } else {
* $scope.stopFight();
* }
* }, 100);
* };
*
* $scope.stopFight = function() {
* if (angular.isDefined(stop)) {
* $interval.cancel(stop);
* stop = undefined;
* }
* };
*
* $scope.resetFight = function() {
* $scope.blood_1 = 100;
* $scope.blood_2 = 120;
* };
*
* $scope.$on('$destroy', function() {
* // Make sure that the interval is destroyed too
* $scope.stopFight();
* });
* }])
* // Register the 'myCurrentTime' directive factory method.
* // We inject $interval and dateFilter service since the factory method is DI.
* .directive('myCurrentTime', ['$interval', 'dateFilter',
* function($interval, dateFilter) {
* // return the directive link function. (compile function not needed)
* return function(scope, element, attrs) {
* var format, // date format
* stopTime; // so that we can cancel the time updates
*
* // used to update the UI
* function updateTime() {
* element.text(dateFilter(new Date(), format));
* }
*
* // watch the expression, and update the UI on change.
* scope.$watch(attrs.myCurrentTime, function(value) {
* format = value;
* updateTime();
* });
*
* stopTime = $interval(updateTime, 1000);
*
* // listen on DOM destroy (removal) event, and cancel the next UI update
* // to prevent updating time after the DOM element was removed.
* element.on('$destroy', function() {
* $interval.cancel(stopTime);
* });
* }
* }]);
* </script>
*
* <div>
* <div ng-controller="ExampleController">
* <label>Date format: <input ng-model="format"></label> <hr/>
* Current time is: <span my-current-time="format"></span>
* <hr/>
* Blood 1 : <font color='red'>{{blood_1}}</font>
* Blood 2 : <font color='red'>{{blood_2}}</font>
* <button type="button" data-ng-click="fight()">Fight</button>
* <button type="button" data-ng-click="stopFight()">StopFight</button>
* <button type="button" data-ng-click="resetFight()">resetFight</button>
* </div>
* </div>
*
* </file>
* </example>
*/
function interval(fn, delay, count, invokeApply) {
var hasParams = arguments.length > 4,
args = hasParams ? sliceArgs(arguments, 4) : [],
setInterval = $window.setInterval,
clearInterval = $window.clearInterval,
iteration = 0,
skipApply = isDefined(invokeApply) && !invokeApply,
deferred = (skipApply ? $$q : $q).defer(),
promise = deferred.promise;
count = isDefined(count) ? count : 0;
promise.$$intervalId = setInterval(function tick() {
if (skipApply) {
$browser.defer(callback);
} else {
$rootScope.$evalAsync(callback);
}
deferred.notify(iteration++);
if (count > 0 && iteration >= count) {
deferred.resolve(iteration);
clearInterval(promise.$$intervalId);
delete intervals[promise.$$intervalId];
}
if (!skipApply) $rootScope.$apply();
}, delay);
intervals[promise.$$intervalId] = deferred;
return promise;
function callback() {
if (!hasParams) {
fn(iteration);
} else {
fn.apply(null, args);
}
}
}
/**
* @ngdoc method
* @name $interval#cancel
*
* @description
* Cancels a task associated with the `promise`.
*
* @param {Promise=} promise returned by the `$interval` function.
* @returns {boolean} Returns `true` if the task was successfully canceled.
*/
interval.cancel = function (promise) {
if (promise && promise.$$intervalId in intervals) {
// Interval cancels should not report as unhandled promise.
markQExceptionHandled(intervals[promise.$$intervalId].promise);
intervals[promise.$$intervalId].reject('canceled');
$window.clearInterval(promise.$$intervalId);
delete intervals[promise.$$intervalId];
return true;
}
return false;
};
return interval;
}];
}
/**
* @ngdoc service
* @name $jsonpCallbacks
* @requires $window
* @description
* This service handles the lifecycle of callbacks to handle JSONP requests.
* Override this service if you wish to customise where the callbacks are stored and
* how they vary compared to the requested url.
*/
var $jsonpCallbacksProvider = /** @this */function $jsonpCallbacksProvider() {
this.$get = function () {
var callbacks = angular.callbacks;
var callbackMap = {};
function _createCallback(callbackId) {
var callback = function callback(data) {
callback.data = data;
callback.called = true;
};
callback.id = callbackId;
return callback;
}
return {
/**
* @ngdoc method
* @name $jsonpCallbacks#createCallback
* @param {string} url the url of the JSONP request
* @returns {string} the callback path to send to the server as part of the JSONP request
* @description
* {@link $httpBackend} calls this method to create a callback and get hold of the path to the callback
* to pass to the server, which will be used to call the callback with its payload in the JSONP response.
*/
createCallback: function createCallback(url) {
var callbackId = '_' + (callbacks.$$counter++).toString(36);
var callbackPath = 'angular.callbacks.' + callbackId;
var callback = _createCallback(callbackId);
callbackMap[callbackPath] = callbacks[callbackId] = callback;
return callbackPath;
},
/**
* @ngdoc method
* @name $jsonpCallbacks#wasCalled
* @param {string} callbackPath the path to the callback that was sent in the JSONP request
* @returns {boolean} whether the callback has been called, as a result of the JSONP response
* @description
* {@link $httpBackend} calls this method to find out whether the JSONP response actually called the
* callback that was passed in the request.
*/
wasCalled: function wasCalled(callbackPath) {
return callbackMap[callbackPath].called;
},
/**
* @ngdoc method
* @name $jsonpCallbacks#getResponse
* @param {string} callbackPath the path to the callback that was sent in the JSONP request
* @returns {*} the data received from the response via the registered callback
* @description
* {@link $httpBackend} calls this method to get hold of the data that was provided to the callback
* in the JSONP response.
*/
getResponse: function getResponse(callbackPath) {
return callbackMap[callbackPath].data;
},
/**
* @ngdoc method
* @name $jsonpCallbacks#removeCallback
* @param {string} callbackPath the path to the callback that was sent in the JSONP request
* @description
* {@link $httpBackend} calls this method to remove the callback after the JSONP request has
* completed or timed-out.
*/
removeCallback: function removeCallback(callbackPath) {
var callback = callbackMap[callbackPath];
delete callbacks[callback.id];
delete callbackMap[callbackPath];
}
};
};
};
/**
* @ngdoc service
* @name $locale
*
* @description
* $locale service provides localization rules for various Angular components. As of right now the
* only public api is:
*
* * `id` `{string}` locale id formatted as `languageId-countryId` (e.g. `en-us`)
*/
var PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/,
DEFAULT_PORTS = { 'http': 80, 'https': 443, 'ftp': 21 };
var $locationMinErr = minErr('$location');
/**
* Encode path using encodeUriSegment, ignoring forward slashes
*
* @param {string} path Path to encode
* @returns {string}
*/
function encodePath(path) {
var segments = path.split('/'),
i = segments.length;
while (i--) {
// decode forward slashes to prevent them from being double encoded
segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
}
return segments.join('/');
}
function decodePath(path, html5Mode) {
var segments = path.split('/'),
i = segments.length;
while (i--) {
segments[i] = decodeURIComponent(segments[i]);
if (html5Mode) {
// encode forward slashes to prevent them from being mistaken for path separators
segments[i] = segments[i].replace(/\//g, '%2F');
}
}
return segments.join('/');
}
function parseAbsoluteUrl(absoluteUrl, locationObj) {
var parsedUrl = urlResolve(absoluteUrl);
locationObj.$$protocol = parsedUrl.protocol;
locationObj.$$host = parsedUrl.hostname;
locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
}
var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
function parseAppUrl(url, locationObj, html5Mode) {
if (DOUBLE_SLASH_REGEX.test(url)) {
throw $locationMinErr('badpath', 'Invalid url "{0}".', url);
}
var prefixed = url.charAt(0) !== '/';
if (prefixed) {
url = '/' + url;
}
var match = urlResolve(url);
var path = prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;
locationObj.$$path = decodePath(path, html5Mode);
locationObj.$$search = parseKeyValue(match.search);
locationObj.$$hash = decodeURIComponent(match.hash);
// make sure path starts with '/';
if (locationObj.$$path && locationObj.$$path.charAt(0) !== '/') {
locationObj.$$path = '/' + locationObj.$$path;
}
}
function startsWith(str, search) {
return str.slice(0, search.length) === search;
}
/**
*
* @param {string} base
* @param {string} url
* @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with
* the expected string.
*/
function stripBaseUrl(base, url) {
if (startsWith(url, base)) {
return url.substr(base.length);
}
}
function stripHash(url) {
var index = url.indexOf('#');
return index === -1 ? url : url.substr(0, index);
}
function trimEmptyHash(url) {
return url.replace(/(#.+)|#$/, '$1');
}
function stripFile(url) {
return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
}
/* return the server only (scheme://host:port) */
function serverBase(url) {
return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));
}
/**
* LocationHtml5Url represents a URL
* This object is exposed as $location service when HTML5 mode is enabled and supported
*
* @constructor
* @param {string} appBase application base URL
* @param {string} appBaseNoFile application base URL stripped of any filename
* @param {string} basePrefix URL path prefix
*/
function LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {
this.$$html5 = true;
basePrefix = basePrefix || '';
parseAbsoluteUrl(appBase, this);
/**
* Parse given HTML5 (regular) URL string into properties
* @param {string} url HTML5 URL
* @private
*/
this.$$parse = function (url) {
var pathUrl = stripBaseUrl(appBaseNoFile, url);
if (!isString(pathUrl)) {
throw $locationMinErr('ipthprfx', 'Invalid url "{0}", missing path prefix "{1}".', url, appBaseNoFile);
}
parseAppUrl(pathUrl, this, true);
if (!this.$$path) {
this.$$path = '/';
}
this.$$compose();
};
/**
* Compose url and update `absUrl` property
* @private
*/
this.$$compose = function () {
var search = toKeyValue(this.$$search),
hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'
this.$$urlUpdatedByLocation = true;
};
this.$$parseLinkUrl = function (url, relHref) {
if (relHref && relHref[0] === '#') {
// special case for links to hash fragments:
// keep the old url and only replace the hash fragment
this.hash(relHref.slice(1));
return true;
}
var appUrl, prevAppUrl;
var rewrittenUrl;
if (isDefined(appUrl = stripBaseUrl(appBase, url))) {
prevAppUrl = appUrl;
if (basePrefix && isDefined(appUrl = stripBaseUrl(basePrefix, appUrl))) {
rewrittenUrl = appBaseNoFile + (stripBaseUrl('/', appUrl) || appUrl);
} else {
rewrittenUrl = appBase + prevAppUrl;
}
} else if (isDefined(appUrl = stripBaseUrl(appBaseNoFile, url))) {
rewrittenUrl = appBaseNoFile + appUrl;
} else if (appBaseNoFile === url + '/') {
rewrittenUrl = appBaseNoFile;
}
if (rewrittenUrl) {
this.$$parse(rewrittenUrl);
}
return !!rewrittenUrl;
};
}
/**
* LocationHashbangUrl represents URL
* This object is exposed as $location service when developer doesn't opt into html5 mode.
* It also serves as the base class for html5 mode fallback on legacy browsers.
*
* @constructor
* @param {string} appBase application base URL
* @param {string} appBaseNoFile application base URL stripped of any filename
* @param {string} hashPrefix hashbang prefix
*/
function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
parseAbsoluteUrl(appBase, this);
/**
* Parse given hashbang URL into properties
* @param {string} url Hashbang URL
* @private
*/
this.$$parse = function (url) {
var withoutBaseUrl = stripBaseUrl(appBase, url) || stripBaseUrl(appBaseNoFile, url);
var withoutHashUrl;
if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {
// The rest of the URL starts with a hash so we have
// got either a hashbang path or a plain hash fragment
withoutHashUrl = stripBaseUrl(hashPrefix, withoutBaseUrl);
if (isUndefined(withoutHashUrl)) {
// There was no hashbang prefix so we just have a hash fragment
withoutHashUrl = withoutBaseUrl;
}
} else {
// There was no hashbang path nor hash fragment:
// If we are in HTML5 mode we use what is left as the path;
// Otherwise we ignore what is left
if (this.$$html5) {
withoutHashUrl = withoutBaseUrl;
} else {
withoutHashUrl = '';
if (isUndefined(withoutBaseUrl)) {
appBase = url;
/** @type {?} */this.replace();
}
}
}
parseAppUrl(withoutHashUrl, this, false);
this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);
this.$$compose();
/*
* In Windows, on an anchor node on documents loaded from
* the filesystem, the browser will return a pathname
* prefixed with the drive name ('/C:/path') when a
* pathname without a drive is set:
* * a.setAttribute('href', '/foo')
* * a.pathname === '/C:/foo' //true
*
* Inside of Angular, we're always using pathnames that
* do not include drive names for routing.
*/
function removeWindowsDriveName(path, url, base) {
/*
Matches paths for file protocol on windows,
such as /C:/foo/bar, and captures only /foo/bar.
*/
var windowsFilePathExp = /^\/[A-Z]:(\/.*)/;
var firstPathSegmentMatch;
//Get the relative path from the input URL.
if (startsWith(url, base)) {
url = url.replace(base, '');
}
// The input URL intentionally contains a first path segment that ends with a colon.
if (windowsFilePathExp.exec(url)) {
return path;
}
firstPathSegmentMatch = windowsFilePathExp.exec(path);
return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;
}
};
/**
* Compose hashbang URL and update `absUrl` property
* @private
*/
this.$$compose = function () {
var search = toKeyValue(this.$$search),
hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');
this.$$urlUpdatedByLocation = true;
};
this.$$parseLinkUrl = function (url, relHref) {
if (stripHash(appBase) === stripHash(url)) {
this.$$parse(url);
return true;
}
return false;
};
}
/**
* LocationHashbangUrl represents URL
* This object is exposed as $location service when html5 history api is enabled but the browser
* does not support it.
*
* @constructor
* @param {string} appBase application base URL
* @param {string} appBaseNoFile application base URL stripped of any filename
* @param {string} hashPrefix hashbang prefix
*/
function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {
this.$$html5 = true;
LocationHashbangUrl.apply(this, arguments);
this.$$parseLinkUrl = function (url, relHref) {
if (relHref && relHref[0] === '#') {
// special case for links to hash fragments:
// keep the old url and only replace the hash fragment
this.hash(relHref.slice(1));
return true;
}
var rewrittenUrl;
var appUrl;
if (appBase === stripHash(url)) {
rewrittenUrl = url;
} else if (appUrl = stripBaseUrl(appBaseNoFile, url)) {
rewrittenUrl = appBase + hashPrefix + appUrl;
} else if (appBaseNoFile === url + '/') {
rewrittenUrl = appBaseNoFile;
}
if (rewrittenUrl) {
this.$$parse(rewrittenUrl);
}
return !!rewrittenUrl;
};
this.$$compose = function () {
var search = toKeyValue(this.$$search),
hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
// include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'
this.$$absUrl = appBase + hashPrefix + this.$$url;
this.$$urlUpdatedByLocation = true;
};
}
var locationPrototype = {
/**
* Ensure absolute URL is initialized.
* @private
*/
$$absUrl: '',
/**
* Are we in html5 mode?
* @private
*/
$$html5: false,
/**
* Has any change been replacing?
* @private
*/
$$replace: false,
/**
* @ngdoc method
* @name $location#absUrl
*
* @description
* This method is getter only.
*
* Return full URL representation with all segments encoded according to rules specified in
* [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var absUrl = $location.absUrl();
* // => "http://example.com/#/some/path?foo=bar&baz=xoxo"
* ```
*
* @return {string} full URL
*/
absUrl: locationGetter('$$absUrl'),
/**
* @ngdoc method
* @name $location#url
*
* @description
* This method is getter / setter.
*
* Return URL (e.g. `/path?a=b#hash`) when called without any parameter.
*
* Change path, search and hash, when called with parameter and return `$location`.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var url = $location.url();
* // => "/some/path?foo=bar&baz=xoxo"
* ```
*
* @param {string=} url New URL without base prefix (e.g. `/path?a=b#hash`)
* @return {string} url
*/
url: function url(_url) {
if (isUndefined(_url)) {
return this.$$url;
}
var match = PATH_MATCH.exec(_url);
if (match[1] || _url === '') this.path(decodeURIComponent(match[1]));
if (match[2] || match[1] || _url === '') this.search(match[3] || '');
this.hash(match[5] || '');
return this;
},
/**
* @ngdoc method
* @name $location#protocol
*
* @description
* This method is getter only.
*
* Return protocol of current URL.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var protocol = $location.protocol();
* // => "http"
* ```
*
* @return {string} protocol of current URL
*/
protocol: locationGetter('$$protocol'),
/**
* @ngdoc method
* @name $location#host
*
* @description
* This method is getter only.
*
* Return host of current URL.
*
* Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var host = $location.host();
* // => "example.com"
*
* // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
* host = $location.host();
* // => "example.com"
* host = location.host;
* // => "example.com:8080"
* ```
*
* @return {string} host of current URL.
*/
host: locationGetter('$$host'),
/**
* @ngdoc method
* @name $location#port
*
* @description
* This method is getter only.
*
* Return port of current URL.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var port = $location.port();
* // => 80
* ```
*
* @return {Number} port
*/
port: locationGetter('$$port'),
/**
* @ngdoc method
* @name $location#path
*
* @description
* This method is getter / setter.
*
* Return path of current URL when called without any parameter.
*
* Change path when called with parameter and return `$location`.
*
* Note: Path should always begin with forward slash (/), this method will add the forward slash
* if it is missing.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var path = $location.path();
* // => "/some/path"
* ```
*
* @param {(string|number)=} path New path
* @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter
*/
path: locationGetterSetter('$$path', function (path) {
path = path !== null ? path.toString() : '';
return path.charAt(0) === '/' ? path : '/' + path;
}),
/**
* @ngdoc method
* @name $location#search
*
* @description
* This method is getter / setter.
*
* Return search part (as object) of current URL when called without any parameter.
*
* Change search part when called with parameter and return `$location`.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
* var searchObject = $location.search();
* // => {foo: 'bar', baz: 'xoxo'}
*
* // set foo to 'yipee'
* $location.search('foo', 'yipee');
* // $location.search() => {foo: 'yipee', baz: 'xoxo'}
* ```
*
* @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or
* hash object.
*
* When called with a single argument the method acts as a setter, setting the `search` component
* of `$location` to the specified value.
*
* If the argument is a hash object containing an array of values, these values will be encoded
* as duplicate search parameters in the URL.
*
* @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`
* will override only a single search property.
*
* If `paramValue` is an array, it will override the property of the `search` component of
* `$location` specified via the first argument.
*
* If `paramValue` is `null`, the property specified via the first argument will be deleted.
*
* If `paramValue` is `true`, the property specified via the first argument will be added with no
* value nor trailing equal sign.
*
* @return {Object} If called with no arguments returns the parsed `search` object. If called with
* one or more arguments returns `$location` object itself.
*/
search: function search(_search, paramValue) {
switch (arguments.length) {
case 0:
return this.$$search;
case 1:
if (isString(_search) || isNumber(_search)) {
_search = _search.toString();
this.$$search = parseKeyValue(_search);
} else if (isObject(_search)) {
_search = copy(_search, {});
// remove object undefined or null properties
forEach(_search, function (value, key) {
if (value == null) delete _search[key];
});
this.$$search = _search;
} else {
throw $locationMinErr('isrcharg', 'The first argument of the `$location#search()` call must be a string or an object.');
}
break;
default:
if (isUndefined(paramValue) || paramValue === null) {
delete this.$$search[_search];
} else {
this.$$search[_search] = paramValue;
}
}
this.$$compose();
return this;
},
/**
* @ngdoc method
* @name $location#hash
*
* @description
* This method is getter / setter.
*
* Returns the hash fragment when called without any parameters.
*
* Changes the hash fragment when called with a parameter and returns `$location`.
*
*
* ```js
* // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue
* var hash = $location.hash();
* // => "hashValue"
* ```
*
* @param {(string|number)=} hash New hash fragment
* @return {string} hash
*/
hash: locationGetterSetter('$$hash', function (hash) {
return hash !== null ? hash.toString() : '';
}),
/**
* @ngdoc method
* @name $location#replace
*
* @description
* If called, all changes to $location during the current `$digest` will replace the current history
* record, instead of adding a new one.
*/
replace: function replace() {
this.$$replace = true;
return this;
}
};
forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function (Location) {
Location.prototype = Object.create(locationPrototype);
/**
* @ngdoc method
* @name $location#state
*
* @description
* This method is getter / setter.
*
* Return the history state object when called without any parameter.
*
* Change the history state object when called with one parameter and return `$location`.
* The state object is later passed to `pushState` or `replaceState`.
*
* NOTE: This method is supported only in HTML5 mode and only in browsers supporting
* the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support
* older browsers (like IE9 or Android < 4.0), don't use this method.
*
* @param {object=} state State object for pushState or replaceState
* @return {object} state
*/
Location.prototype.state = function (state) {
if (!arguments.length) {
return this.$$state;
}
if (Location !== LocationHtml5Url || !this.$$html5) {
throw $locationMinErr('nostate', 'History API state support is available only ' + 'in HTML5 mode and only in browsers supporting HTML5 History API');
}
// The user might modify `stateObject` after invoking `$location.state(stateObject)`
// but we're changing the $$state reference to $browser.state() during the $digest
// so the modification window is narrow.
this.$$state = isUndefined(state) ? null : state;
this.$$urlUpdatedByLocation = true;
return this;
};
});
function locationGetter(property) {
return (/** @this */function () {
return this[property];
}
);
}
function locationGetterSetter(property, preprocess) {
return (/** @this */function (value) {
if (isUndefined(value)) {
return this[property];
}
this[property] = preprocess(value);
this.$$compose();
return this;
}
);
}
/**
* @ngdoc service
* @name $location
*
* @requires $rootElement
*
* @description
* The $location service parses the URL in the browser address bar (based on the
* [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL
* available to your application. Changes to the URL in the address bar are reflected into
* $location service and changes to $location are reflected into the browser address bar.
*
* **The $location service:**
*
* - Exposes the current URL in the browser address bar, so you can
* - Watch and observe the URL.
* - Change the URL.
* - Synchronizes the URL with the browser when the user
* - Changes the address bar.
* - Clicks the back or forward button (or clicks a History link).
* - Clicks on a link.
* - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
*
* For more information see {@link guide/$location Developer Guide: Using $location}
*/
/**
* @ngdoc provider
* @name $locationProvider
* @this
*
* @description
* Use the `$locationProvider` to configure how the application deep linking paths are stored.
*/
function $LocationProvider() {
var hashPrefix = '!',
html5Mode = {
enabled: false,
requireBase: true,
rewriteLinks: true
};
/**
* @ngdoc method
* @name $locationProvider#hashPrefix
* @description
* The default value for the prefix is `'!'`.
* @param {string=} prefix Prefix for hash part (containing path and search)
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.hashPrefix = function (prefix) {
if (isDefined(prefix)) {
hashPrefix = prefix;
return this;
} else {
return hashPrefix;
}
};
/**
* @ngdoc method
* @name $locationProvider#html5Mode
* @description
* @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.
* If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported
* properties:
* - **enabled** `{boolean}` (default: false) If true, will rely on `history.pushState` to
* change urls where supported. Will fall back to hash-prefixed paths in browsers that do not
* support `pushState`.
* - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies
* whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are
* true, and a base tag is not present, an error will be thrown when `$location` is injected.
* See the {@link guide/$location $location guide for more information}
* - **rewriteLinks** - `{boolean|string}` - (default: `true`) When html5Mode is enabled,
* enables/disables URL rewriting for relative links. If set to a string, URL rewriting will
* only happen on links with an attribute that matches the given string. For example, if set
* to `'internal-link'`, then the URL will only be rewritten for `<a internal-link>` links.
* Note that [attribute name normalization](guide/directive#normalization) does not apply
* here, so `'internalLink'` will **not** match `'internal-link'`.
*
* @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter
*/
this.html5Mode = function (mode) {
if (isBoolean(mode)) {
html5Mode.enabled = mode;
return this;
} else if (isObject(mode)) {
if (isBoolean(mode.enabled)) {
html5Mode.enabled = mode.enabled;
}
if (isBoolean(mode.requireBase)) {
html5Mode.requireBase = mode.requireBase;
}
if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) {
html5Mode.rewriteLinks = mode.rewriteLinks;
}
return this;
} else {
return html5Mode;
}
};
/**
* @ngdoc event
* @name $location#$locationChangeStart
* @eventType broadcast on root scope
* @description
* Broadcasted before a URL will change.
*
* This change can be prevented by calling
* `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more
* details about event object. Upon successful change
* {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.
*
* The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
* the browser supports the HTML5 History API.
*
* @param {Object} angularEvent Synthetic event object.
* @param {string} newUrl New URL
* @param {string=} oldUrl URL that was before it was changed.
* @param {string=} newState New history state object
* @param {string=} oldState History state object that was before it was changed.
*/
/**
* @ngdoc event
* @name $location#$locationChangeSuccess
* @eventType broadcast on root scope
* @description
* Broadcasted after a URL was changed.
*
* The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
* the browser supports the HTML5 History API.
*
* @param {Object} angularEvent Synthetic event object.
* @param {string} newUrl New URL
* @param {string=} oldUrl URL that was before it was changed.
* @param {string=} newState New history state object
* @param {string=} oldState History state object that was before it was changed.
*/
this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window', function ($rootScope, $browser, $sniffer, $rootElement, $window) {
var $location,
LocationMode,
baseHref = $browser.baseHref(),
// if base[href] is undefined, it defaults to ''
initialUrl = $browser.url(),
appBase;
if (html5Mode.enabled) {
if (!baseHref && html5Mode.requireBase) {
throw $locationMinErr('nobase', '$location in HTML5 mode requires a <base> tag to be present!');
}
appBase = serverBase(initialUrl) + (baseHref || '/');
LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;
} else {
appBase = stripHash(initialUrl);
LocationMode = LocationHashbangUrl;
}
var appBaseNoFile = stripFile(appBase);
$location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);
$location.$$parseLinkUrl(initialUrl, initialUrl);
$location.$$state = $browser.state();
var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i;
function setBrowserUrlWithFallback(url, replace, state) {
var oldUrl = $location.url();
var oldState = $location.$$state;
try {
$browser.url(url, replace, state);
// Make sure $location.state() returns referentially identical (not just deeply equal)
// state object; this makes possible quick checking if the state changed in the digest
// loop. Checking deep equality would be too expensive.
$location.$$state = $browser.state();
} catch (e) {
// Restore old values if pushState fails
$location.url(oldUrl);
$location.$$state = oldState;
throw e;
}
}
$rootElement.on('click', function (event) {
var rewriteLinks = html5Mode.rewriteLinks;
// TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)
// currently we open nice url link and redirect then
if (!rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 || event.button === 2) return;
var elm = jqLite(event.target);
// traverse the DOM up to find first A tag
while (nodeName_(elm[0]) !== 'a') {
// ignore rewriting if no A tag (reached root element, or no parent - removed from document)
if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;
}
if (isString(rewriteLinks) && isUndefined(elm.attr(rewriteLinks))) return;
var absHref = elm.prop('href');
// get the actual href attribute - see
// http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
var relHref = elm.attr('href') || elm.attr('xlink:href');
if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {
// SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during
// an animation.
absHref = urlResolve(absHref.animVal).href;
}
// Ignore when url is started with javascript: or mailto:
if (IGNORE_URI_REGEXP.test(absHref)) return;
if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {
if ($location.$$parseLinkUrl(absHref, relHref)) {
// We do a preventDefault for all urls that are part of the angular application,
// in html5mode and also without, so that we are able to abort navigation without
// getting double entries in the location history.
event.preventDefault();
// update location manually
if ($location.absUrl() !== $browser.url()) {
$rootScope.$apply();
// hack to work around FF6 bug 684208 when scenario runner clicks on links
$window.angular['ff-684208-preventDefault'] = true;
}
}
}
});
// rewrite hashbang url <> html5 url
if (trimEmptyHash($location.absUrl()) !== trimEmptyHash(initialUrl)) {
$browser.url($location.absUrl(), true);
}
var initializing = true;
// update $location when $browser url changes
$browser.onUrlChange(function (newUrl, newState) {
if (!startsWith(newUrl, appBaseNoFile)) {
// If we are navigating outside of the app then force a reload
$window.location.href = newUrl;
return;
}
$rootScope.$evalAsync(function () {
var oldUrl = $location.absUrl();
var oldState = $location.$$state;
var defaultPrevented;
newUrl = trimEmptyHash(newUrl);
$location.$$parse(newUrl);
$location.$$state = newState;
defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState).defaultPrevented;
// if the location was changed by a `$locationChangeStart` handler then stop
// processing this location change
if ($location.absUrl() !== newUrl) return;
if (defaultPrevented) {
$location.$$parse(oldUrl);
$location.$$state = oldState;
setBrowserUrlWithFallback(oldUrl, false, oldState);
} else {
initializing = false;
afterLocationChange(oldUrl, oldState);
}
});
if (!$rootScope.$$phase) $rootScope.$digest();
});
// update browser
$rootScope.$watch(function $locationWatch() {
if (initializing || $location.$$urlUpdatedByLocation) {
$location.$$urlUpdatedByLocation = false;
var oldUrl = trimEmptyHash($browser.url());
var newUrl = trimEmptyHash($location.absUrl());
var oldState = $browser.state();
var currentReplace = $location.$$replace;
var urlOrStateChanged = oldUrl !== newUrl || $location.$$html5 && $sniffer.history && oldState !== $location.$$state;
if (initializing || urlOrStateChanged) {
initializing = false;
$rootScope.$evalAsync(function () {
var newUrl = $location.absUrl();
var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, $location.$$state, oldState).defaultPrevented;
// if the location was changed by a `$locationChangeStart` handler then stop
// processing this location change
if ($location.absUrl() !== newUrl) return;
if (defaultPrevented) {
$location.$$parse(oldUrl);
$location.$$state = oldState;
} else {
if (urlOrStateChanged) {
setBrowserUrlWithFallback(newUrl, currentReplace, oldState === $location.$$state ? null : $location.$$state);
}
afterLocationChange(oldUrl, oldState);
}
});
}
}
$location.$$replace = false;
// we don't need to return anything because $evalAsync will make the digest loop dirty when
// there is a change
});
return $location;
function afterLocationChange(oldUrl, oldState) {
$rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl, $location.$$state, oldState);
}
}];
}
/**
* @ngdoc service
* @name $log
* @requires $window
*
* @description
* Simple service for logging. Default implementation safely writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* To reveal the location of the calls to `$log` in the JavaScript console,
* you can "blackbox" the AngularJS source in your browser:
*
* [Mozilla description of blackboxing](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source).
* [Chrome description of blackboxing](https://developer.chrome.com/devtools/docs/blackboxing).
*
* Note: Not all browsers support blackboxing.
*
* The default is to log `debug` messages. You can use
* {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
*
* @example
<example module="logExample" name="log-service">
<file name="script.js">
angular.module('logExample', [])
.controller('LogController', ['$scope', '$log', function($scope, $log) {
$scope.$log = $log;
$scope.message = 'Hello World!';
}]);
</file>
<file name="index.html">
<div ng-controller="LogController">
<p>Reload this page with open console, enter text and hit the log button...</p>
<label>Message:
<input type="text" ng-model="message" /></label>
<button ng-click="$log.log(message)">log</button>
<button ng-click="$log.warn(message)">warn</button>
<button ng-click="$log.info(message)">info</button>
<button ng-click="$log.error(message)">error</button>
<button ng-click="$log.debug(message)">debug</button>
</div>
</file>
</example>
*/
/**
* @ngdoc provider
* @name $logProvider
* @this
*
* @description
* Use the `$logProvider` to configure how the application logs messages
*/
function $LogProvider() {
var debug = true,
self = this;
/**
* @ngdoc method
* @name $logProvider#debugEnabled
* @description
* @param {boolean=} flag enable or disable debug level messages
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.debugEnabled = function (flag) {
if (isDefined(flag)) {
debug = flag;
return this;
} else {
return debug;
}
};
this.$get = ['$window', function ($window) {
// Support: IE 9-11, Edge 12-14+
// IE/Edge display errors in such a way that it requires the user to click in 4 places
// to see the stack trace. There is no way to feature-detect it so there's a chance
// of the user agent sniffing to go wrong but since it's only about logging, this shouldn't
// break apps. Other browsers display errors in a sensible way and some of them map stack
// traces along source maps if available so it makes sense to let browsers display it
// as they want.
var formatStackTrace = msie || /\bEdge\//.test($window.navigator && $window.navigator.userAgent);
return {
/**
* @ngdoc method
* @name $log#log
*
* @description
* Write a log message
*/
log: consoleLog('log'),
/**
* @ngdoc method
* @name $log#info
*
* @description
* Write an information message
*/
info: consoleLog('info'),
/**
* @ngdoc method
* @name $log#warn
*
* @description
* Write a warning message
*/
warn: consoleLog('warn'),
/**
* @ngdoc method
* @name $log#error
*
* @description
* Write an error message
*/
error: consoleLog('error'),
/**
* @ngdoc method
* @name $log#debug
*
* @description
* Write a debug message
*/
debug: function () {
var fn = consoleLog('debug');
return function () {
if (debug) {
fn.apply(self, arguments);
}
};
}()
};
function formatError(arg) {
if (isError(arg)) {
if (arg.stack && formatStackTrace) {
arg = arg.message && arg.stack.indexOf(arg.message) === -1 ? 'Error: ' + arg.message + '\n' + arg.stack : arg.stack;
} else if (arg.sourceURL) {
arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
}
}
return arg;
}
function consoleLog(type) {
var console = $window.console || {},
logFn = console[type] || console.log || noop;
return function () {
var args = [];
forEach(arguments, function (arg) {
args.push(formatError(arg));
});
// Support: IE 9 only
// console methods don't inherit from Function.prototype in IE 9 so we can't
// call `logFn.apply(console, args)` directly.
return Function.prototype.apply.call(logFn, console, args);
};
}
}];
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying *
* this file is required. *
* *
* Does the change somehow allow for arbitrary javascript to be executed? *
* Or allows for someone to change the prototype of built-in objects? *
* Or gives undesired access to variables likes document or window? *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var $parseMinErr = minErr('$parse');
var objectValueOf = {}.constructor.prototype.valueOf;
// Sandboxing Angular Expressions
// ------------------------------
// Angular expressions are no longer sandboxed. So it is now even easier to access arbitrary JS code by
// various means such as obtaining a reference to native JS functions like the Function constructor.
//
// As an example, consider the following Angular expression:
//
// {}.toString.constructor('alert("evil JS code")')
//
// It is important to realize that if you create an expression from a string that contains user provided
// content then it is possible that your application contains a security vulnerability to an XSS style attack.
//
// See https://docs.angularjs.org/guide/security
function getStringValue(name) {
// Property names must be strings. This means that non-string objects cannot be used
// as keys in an object. Any non-string object, including a number, is typecasted
// into a string via the toString method.
// -- MDN, https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names
//
// So, to ensure that we are checking the same `name` that JavaScript would use, we cast it
// to a string. It's not always possible. If `name` is an object and its `toString` method is
// 'broken' (doesn't return a string, isn't a function, etc.), an error will be thrown:
//
// TypeError: Cannot convert object to primitive value
//
// For performance reasons, we don't catch this error here and allow it to propagate up the call
// stack. Note that you'll get the same error in JavaScript if you try to access a property using
// such a 'broken' object as a key.
return name + '';
}
var OPERATORS = createMap();
forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function (operator) {
OPERATORS[operator] = true;
});
var ESCAPE = { 'n': '\n', 'f': '\f', 'r': '\r', 't': '\t', 'v': '\v', '\'': '\'', '"': '"' };
/////////////////////////////////////////
/**
* @constructor
*/
var Lexer = function Lexer(options) {
this.options = options;
};
Lexer.prototype = {
constructor: Lexer,
lex: function lex(text) {
this.text = text;
this.index = 0;
this.tokens = [];
while (this.index < this.text.length) {
var ch = this.text.charAt(this.index);
if (ch === '"' || ch === '\'') {
this.readString(ch);
} else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {
this.readNumber();
} else if (this.isIdentifierStart(this.peekMultichar())) {
this.readIdent();
} else if (this.is(ch, '(){}[].,;:?')) {
this.tokens.push({ index: this.index, text: ch });
this.index++;
} else if (this.isWhitespace(ch)) {
this.index++;
} else {
var ch2 = ch + this.peek();
var ch3 = ch2 + this.peek(2);
var op1 = OPERATORS[ch];
var op2 = OPERATORS[ch2];
var op3 = OPERATORS[ch3];
if (op1 || op2 || op3) {
var token = op3 ? ch3 : op2 ? ch2 : ch;
this.tokens.push({ index: this.index, text: token, operator: true });
this.index += token.length;
} else {
this.throwError('Unexpected next character ', this.index, this.index + 1);
}
}
}
return this.tokens;
},
is: function is(ch, chars) {
return chars.indexOf(ch) !== -1;
},
peek: function peek(i) {
var num = i || 1;
return this.index + num < this.text.length ? this.text.charAt(this.index + num) : false;
},
isNumber: function isNumber(ch) {
return '0' <= ch && ch <= '9' && typeof ch === 'string';
},
isWhitespace: function isWhitespace(ch) {
// IE treats non-breaking space as \u00A0
return ch === ' ' || ch === '\r' || ch === '\t' || ch === '\n' || ch === '\v' || ch === '\xA0';
},
isIdentifierStart: function isIdentifierStart(ch) {
return this.options.isIdentifierStart ? this.options.isIdentifierStart(ch, this.codePointAt(ch)) : this.isValidIdentifierStart(ch);
},
isValidIdentifierStart: function isValidIdentifierStart(ch) {
return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || '_' === ch || ch === '$';
},
isIdentifierContinue: function isIdentifierContinue(ch) {
return this.options.isIdentifierContinue ? this.options.isIdentifierContinue(ch, this.codePointAt(ch)) : this.isValidIdentifierContinue(ch);
},
isValidIdentifierContinue: function isValidIdentifierContinue(ch, cp) {
return this.isValidIdentifierStart(ch, cp) || this.isNumber(ch);
},
codePointAt: function codePointAt(ch) {
if (ch.length === 1) return ch.charCodeAt(0);
// eslint-disable-next-line no-bitwise
return (ch.charCodeAt(0) << 10) + ch.charCodeAt(1) - 0x35FDC00;
},
peekMultichar: function peekMultichar() {
var ch = this.text.charAt(this.index);
var peek = this.peek();
if (!peek) {
return ch;
}
var cp1 = ch.charCodeAt(0);
var cp2 = peek.charCodeAt(0);
if (cp1 >= 0xD800 && cp1 <= 0xDBFF && cp2 >= 0xDC00 && cp2 <= 0xDFFF) {
return ch + peek;
}
return ch;
},
isExpOperator: function isExpOperator(ch) {
return ch === '-' || ch === '+' || this.isNumber(ch);
},
throwError: function throwError(error, start, end) {
end = end || this.index;
var colStr = isDefined(start) ? 's ' + start + '-' + this.index + ' [' + this.text.substring(start, end) + ']' : ' ' + end;
throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].', error, colStr, this.text);
},
readNumber: function readNumber() {
var number = '';
var start = this.index;
while (this.index < this.text.length) {
var ch = lowercase(this.text.charAt(this.index));
if (ch === '.' || this.isNumber(ch)) {
number += ch;
} else {
var peekCh = this.peek();
if (ch === 'e' && this.isExpOperator(peekCh)) {
number += ch;
} else if (this.isExpOperator(ch) && peekCh && this.isNumber(peekCh) && number.charAt(number.length - 1) === 'e') {
number += ch;
} else if (this.isExpOperator(ch) && (!peekCh || !this.isNumber(peekCh)) && number.charAt(number.length - 1) === 'e') {
this.throwError('Invalid exponent');
} else {
break;
}
}
this.index++;
}
this.tokens.push({
index: start,
text: number,
constant: true,
value: Number(number)
});
},
readIdent: function readIdent() {
var start = this.index;
this.index += this.peekMultichar().length;
while (this.index < this.text.length) {
var ch = this.peekMultichar();
if (!this.isIdentifierContinue(ch)) {
break;
}
this.index += ch.length;
}
this.tokens.push({
index: start,
text: this.text.slice(start, this.index),
identifier: true
});
},
readString: function readString(quote) {
var start = this.index;
this.index++;
var string = '';
var rawString = quote;
var escape = false;
while (this.index < this.text.length) {
var ch = this.text.charAt(this.index);
rawString += ch;
if (escape) {
if (ch === 'u') {
var hex = this.text.substring(this.index + 1, this.index + 5);
if (!hex.match(/[\da-f]{4}/i)) {
this.throwError('Invalid unicode escape [\\u' + hex + ']');
}
this.index += 4;
string += String.fromCharCode(parseInt(hex, 16));
} else {
var rep = ESCAPE[ch];
string = string + (rep || ch);
}
escape = false;
} else if (ch === '\\') {
escape = true;
} else if (ch === quote) {
this.index++;
this.tokens.push({
index: start,
text: rawString,
constant: true,
value: string
});
return;
} else {
string += ch;
}
this.index++;
}
this.throwError('Unterminated quote', start);
}
};
var AST = function AST(lexer, options) {
this.lexer = lexer;
this.options = options;
};
AST.Program = 'Program';
AST.ExpressionStatement = 'ExpressionStatement';
AST.AssignmentExpression = 'AssignmentExpression';
AST.ConditionalExpression = 'ConditionalExpression';
AST.LogicalExpression = 'LogicalExpression';
AST.BinaryExpression = 'BinaryExpression';
AST.UnaryExpression = 'UnaryExpression';
AST.CallExpression = 'CallExpression';
AST.MemberExpression = 'MemberExpression';
AST.Identifier = 'Identifier';
AST.Literal = 'Literal';
AST.ArrayExpression = 'ArrayExpression';
AST.Property = 'Property';
AST.ObjectExpression = 'ObjectExpression';
AST.ThisExpression = 'ThisExpression';
AST.LocalsExpression = 'LocalsExpression';
// Internal use only
AST.NGValueParameter = 'NGValueParameter';
AST.prototype = {
ast: function ast(text) {
this.text = text;
this.tokens = this.lexer.lex(text);
var value = this.program();
if (this.tokens.length !== 0) {
this.throwError('is an unexpected token', this.tokens[0]);
}
return value;
},
program: function program() {
var body = [];
while (true) {
if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']')) body.push(this.expressionStatement());
if (!this.expect(';')) {
return { type: AST.Program, body: body };
}
}
},
expressionStatement: function expressionStatement() {
return { type: AST.ExpressionStatement, expression: this.filterChain() };
},
filterChain: function filterChain() {
var left = this.expression();
while (this.expect('|')) {
left = this.filter(left);
}
return left;
},
expression: function expression() {
return this.assignment();
},
assignment: function assignment() {
var result = this.ternary();
if (this.expect('=')) {
if (!isAssignable(result)) {
throw $parseMinErr('lval', 'Trying to assign a value to a non l-value');
}
result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '=' };
}
return result;
},
ternary: function ternary() {
var test = this.logicalOR();
var alternate;
var consequent;
if (this.expect('?')) {
alternate = this.expression();
if (this.consume(':')) {
consequent = this.expression();
return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent };
}
}
return test;
},
logicalOR: function logicalOR() {
var left = this.logicalAND();
while (this.expect('||')) {
left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };
}
return left;
},
logicalAND: function logicalAND() {
var left = this.equality();
while (this.expect('&&')) {
left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality() };
}
return left;
},
equality: function equality() {
var left = this.relational();
var token;
while (token = this.expect('==', '!=', '===', '!==')) {
left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };
}
return left;
},
relational: function relational() {
var left = this.additive();
var token;
while (token = this.expect('<', '>', '<=', '>=')) {
left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };
}
return left;
},
additive: function additive() {
var left = this.multiplicative();
var token;
while (token = this.expect('+', '-')) {
left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };
}
return left;
},
multiplicative: function multiplicative() {
var left = this.unary();
var token;
while (token = this.expect('*', '/', '%')) {
left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };
}
return left;
},
unary: function unary() {
var token;
if (token = this.expect('+', '-', '!')) {
return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };
} else {
return this.primary();
}
},
primary: function primary() {
var primary;
if (this.expect('(')) {
primary = this.filterChain();
this.consume(')');
} else if (this.expect('[')) {
primary = this.arrayDeclaration();
} else if (this.expect('{')) {
primary = this.object();
} else if (this.selfReferential.hasOwnProperty(this.peek().text)) {
primary = copy(this.selfReferential[this.consume().text]);
} else if (this.options.literals.hasOwnProperty(this.peek().text)) {
primary = { type: AST.Literal, value: this.options.literals[this.consume().text] };
} else if (this.peek().identifier) {
primary = this.identifier();
} else if (this.peek().constant) {
primary = this.constant();
} else {
this.throwError('not a primary expression', this.peek());
}
var next;
while (next = this.expect('(', '[', '.')) {
if (next.text === '(') {
primary = { type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };
this.consume(')');
} else if (next.text === '[') {
primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };
this.consume(']');
} else if (next.text === '.') {
primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };
} else {
this.throwError('IMPOSSIBLE');
}
}
return primary;
},
filter: function filter(baseExpression) {
var args = [baseExpression];
var result = { type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true };
while (this.expect(':')) {
args.push(this.expression());
}
return result;
},
parseArguments: function parseArguments() {
var args = [];
if (this.peekToken().text !== ')') {
do {
args.push(this.filterChain());
} while (this.expect(','));
}
return args;
},
identifier: function identifier() {
var token = this.consume();
if (!token.identifier) {
this.throwError('is not a valid identifier', token);
}
return { type: AST.Identifier, name: token.text };
},
constant: function constant() {
// TODO check that it is a constant
return { type: AST.Literal, value: this.consume().value };
},
arrayDeclaration: function arrayDeclaration() {
var elements = [];
if (this.peekToken().text !== ']') {
do {
if (this.peek(']')) {
// Support trailing commas per ES5.1.
break;
}
elements.push(this.expression());
} while (this.expect(','));
}
this.consume(']');
return { type: AST.ArrayExpression, elements: elements };
},
object: function object() {
var properties = [],
property;
if (this.peekToken().text !== '}') {
do {
if (this.peek('}')) {
// Support trailing commas per ES5.1.
break;
}
property = { type: AST.Property, kind: 'init' };
if (this.peek().constant) {
property.key = this.constant();
property.computed = false;
this.consume(':');
property.value = this.expression();
} else if (this.peek().identifier) {
property.key = this.identifier();
property.computed = false;
if (this.peek(':')) {
this.consume(':');
property.value = this.expression();
} else {
property.value = property.key;
}
} else if (this.peek('[')) {
this.consume('[');
property.key = this.expression();
this.consume(']');
property.computed = true;
this.consume(':');
property.value = this.expression();
} else {
this.throwError('invalid key', this.peek());
}
properties.push(property);
} while (this.expect(','));
}
this.consume('}');
return { type: AST.ObjectExpression, properties: properties };
},
throwError: function throwError(msg, token) {
throw $parseMinErr('syntax', 'Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].', token.text, msg, token.index + 1, this.text, this.text.substring(token.index));
},
consume: function consume(e1) {
if (this.tokens.length === 0) {
throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
}
var token = this.expect(e1);
if (!token) {
this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());
}
return token;
},
peekToken: function peekToken() {
if (this.tokens.length === 0) {
throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
}
return this.tokens[0];
},
peek: function peek(e1, e2, e3, e4) {
return this.peekAhead(0, e1, e2, e3, e4);
},
peekAhead: function peekAhead(i, e1, e2, e3, e4) {
if (this.tokens.length > i) {
var token = this.tokens[i];
var t = token.text;
if (t === e1 || t === e2 || t === e3 || t === e4 || !e1 && !e2 && !e3 && !e4) {
return token;
}
}
return false;
},
expect: function expect(e1, e2, e3, e4) {
var token = this.peek(e1, e2, e3, e4);
if (token) {
this.tokens.shift();
return token;
}
return false;
},
selfReferential: {
'this': { type: AST.ThisExpression },
'$locals': { type: AST.LocalsExpression }
}
};
function ifDefined(v, d) {
return typeof v !== 'undefined' ? v : d;
}
function plusFn(l, r) {
if (typeof l === 'undefined') return r;
if (typeof r === 'undefined') return l;
return l + r;
}
function isStateless($filter, filterName) {
var fn = $filter(filterName);
return !fn.$stateful;
}
var PURITY_ABSOLUTE = 1;
var PURITY_RELATIVE = 2;
// Detect nodes which could depend on non-shallow state of objects
function isPure(node, parentIsPure) {
switch (node.type) {
// Computed members might invoke a stateful toString()
case AST.MemberExpression:
if (node.computed) {
return false;
}
break;
// Unary always convert to primative
case AST.UnaryExpression:
return PURITY_ABSOLUTE;
// The binary + operator can invoke a stateful toString().
case AST.BinaryExpression:
return node.operator !== '+' ? PURITY_ABSOLUTE : false;
// Functions / filters probably read state from within objects
case AST.CallExpression:
return false;
}
return undefined === parentIsPure ? PURITY_RELATIVE : parentIsPure;
}
function findConstantAndWatchExpressions(ast, $filter, parentIsPure) {
var allConstants;
var argsToWatch;
var isStatelessFilter;
var astIsPure = ast.isPure = isPure(ast, parentIsPure);
switch (ast.type) {
case AST.Program:
allConstants = true;
forEach(ast.body, function (expr) {
findConstantAndWatchExpressions(expr.expression, $filter, astIsPure);
allConstants = allConstants && expr.expression.constant;
});
ast.constant = allConstants;
break;
case AST.Literal:
ast.constant = true;
ast.toWatch = [];
break;
case AST.UnaryExpression:
findConstantAndWatchExpressions(ast.argument, $filter, astIsPure);
ast.constant = ast.argument.constant;
ast.toWatch = ast.argument.toWatch;
break;
case AST.BinaryExpression:
findConstantAndWatchExpressions(ast.left, $filter, astIsPure);
findConstantAndWatchExpressions(ast.right, $filter, astIsPure);
ast.constant = ast.left.constant && ast.right.constant;
ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);
break;
case AST.LogicalExpression:
findConstantAndWatchExpressions(ast.left, $filter, astIsPure);
findConstantAndWatchExpressions(ast.right, $filter, astIsPure);
ast.constant = ast.left.constant && ast.right.constant;
ast.toWatch = ast.constant ? [] : [ast];
break;
case AST.ConditionalExpression:
findConstantAndWatchExpressions(ast.test, $filter, astIsPure);
findConstantAndWatchExpressions(ast.alternate, $filter, astIsPure);
findConstantAndWatchExpressions(ast.consequent, $filter, astIsPure);
ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;
ast.toWatch = ast.constant ? [] : [ast];
break;
case AST.Identifier:
ast.constant = false;
ast.toWatch = [ast];
break;
case AST.MemberExpression:
findConstantAndWatchExpressions(ast.object, $filter, astIsPure);
if (ast.computed) {
findConstantAndWatchExpressions(ast.property, $filter, astIsPure);
}
ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);
ast.toWatch = ast.constant ? [] : [ast];
break;
case AST.CallExpression:
isStatelessFilter = ast.filter ? isStateless($filter, ast.callee.name) : false;
allConstants = isStatelessFilter;
argsToWatch = [];
forEach(ast.arguments, function (expr) {
findConstantAndWatchExpressions(expr, $filter, astIsPure);
allConstants = allConstants && expr.constant;
argsToWatch.push.apply(argsToWatch, expr.toWatch);
});
ast.constant = allConstants;
ast.toWatch = isStatelessFilter ? argsToWatch : [ast];
break;
case AST.AssignmentExpression:
findConstantAndWatchExpressions(ast.left, $filter, astIsPure);
findConstantAndWatchExpressions(ast.right, $filter, astIsPure);
ast.constant = ast.left.constant && ast.right.constant;
ast.toWatch = [ast];
break;
case AST.ArrayExpression:
allConstants = true;
argsToWatch = [];
forEach(ast.elements, function (expr) {
findConstantAndWatchExpressions(expr, $filter, astIsPure);
allConstants = allConstants && expr.constant;
argsToWatch.push.apply(argsToWatch, expr.toWatch);
});
ast.constant = allConstants;
ast.toWatch = argsToWatch;
break;
case AST.ObjectExpression:
allConstants = true;
argsToWatch = [];
forEach(ast.properties, function (property) {
findConstantAndWatchExpressions(property.value, $filter, astIsPure);
allConstants = allConstants && property.value.constant;
argsToWatch.push.apply(argsToWatch, property.value.toWatch);
if (property.computed) {
//`{[key]: value}` implicitly does `key.toString()` which may be non-pure
findConstantAndWatchExpressions(property.key, $filter, /*parentIsPure=*/false);
allConstants = allConstants && property.key.constant;
argsToWatch.push.apply(argsToWatch, property.key.toWatch);
}
});
ast.constant = allConstants;
ast.toWatch = argsToWatch;
break;
case AST.ThisExpression:
ast.constant = false;
ast.toWatch = [];
break;
case AST.LocalsExpression:
ast.constant = false;
ast.toWatch = [];
break;
}
}
function getInputs(body) {
if (body.length !== 1) return;
var lastExpression = body[0].expression;
var candidate = lastExpression.toWatch;
if (candidate.length !== 1) return candidate;
return candidate[0] !== lastExpression ? candidate : undefined;
}
function isAssignable(ast) {
return ast.type === AST.Identifier || ast.type === AST.MemberExpression;
}
function assignableAST(ast) {
if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {
return { type: AST.AssignmentExpression, left: ast.body[0].expression, right: { type: AST.NGValueParameter }, operator: '=' };
}
}
function isLiteral(ast) {
return ast.body.length === 0 || ast.body.length === 1 && (ast.body[0].expression.type === AST.Literal || ast.body[0].expression.type === AST.ArrayExpression || ast.body[0].expression.type === AST.ObjectExpression);
}
function isConstant(ast) {
return ast.constant;
}
function ASTCompiler($filter) {
this.$filter = $filter;
}
ASTCompiler.prototype = {
compile: function compile(ast) {
var self = this;
this.state = {
nextId: 0,
filters: {},
fn: { vars: [], body: [], own: {} },
assign: { vars: [], body: [], own: {} },
inputs: []
};
findConstantAndWatchExpressions(ast, self.$filter);
var extra = '';
var assignable;
this.stage = 'assign';
if (assignable = assignableAST(ast)) {
this.state.computing = 'assign';
var result = this.nextId();
this.recurse(assignable, result);
this.return_(result);
extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');
}
var toWatch = getInputs(ast.body);
self.stage = 'inputs';
forEach(toWatch, function (watch, key) {
var fnKey = 'fn' + key;
self.state[fnKey] = { vars: [], body: [], own: {} };
self.state.computing = fnKey;
var intoId = self.nextId();
self.recurse(watch, intoId);
self.return_(intoId);
self.state.inputs.push({ name: fnKey, isPure: watch.isPure });
watch.watchId = key;
});
this.state.computing = 'fn';
this.stage = 'main';
this.recurse(ast);
var fnString =
// The build and minification steps remove the string "use strict" from the code, but this is done using a regex.
// This is a workaround for this until we do a better job at only removing the prefix only when we should.
'"' + this.USE + ' ' + this.STRICT + '";\n' + this.filterPrefix() + 'var fn=' + this.generateFunction('fn', 's,l,a,i') + extra + this.watchFns() + 'return fn;';
// eslint-disable-next-line no-new-func
var fn = new Function('$filter', 'getStringValue', 'ifDefined', 'plus', fnString)(this.$filter, getStringValue, ifDefined, plusFn);
this.state = this.stage = undefined;
return fn;
},
USE: 'use',
STRICT: 'strict',
watchFns: function watchFns() {
var result = [];
var inputs = this.state.inputs;
var self = this;
forEach(inputs, function (input) {
result.push('var ' + input.name + '=' + self.generateFunction(input.name, 's'));
if (input.isPure) {
result.push(input.name, '.isPure=' + JSON.stringify(input.isPure) + ';');
}
});
if (inputs.length) {
result.push('fn.inputs=[' + inputs.map(function (i) {
return i.name;
}).join(',') + '];');
}
return result.join('');
},
generateFunction: function generateFunction(name, params) {
return 'function(' + params + '){' + this.varsPrefix(name) + this.body(name) + '};';
},
filterPrefix: function filterPrefix() {
var parts = [];
var self = this;
forEach(this.state.filters, function (id, filter) {
parts.push(id + '=$filter(' + self.escape(filter) + ')');
});
if (parts.length) return 'var ' + parts.join(',') + ';';
return '';
},
varsPrefix: function varsPrefix(section) {
return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';
},
body: function body(section) {
return this.state[section].body.join('');
},
recurse: function recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
var left,
right,
self = this,
args,
expression,
computed;
recursionFn = recursionFn || noop;
if (!skipWatchIdCheck && isDefined(ast.watchId)) {
intoId = intoId || this.nextId();
this.if_('i', this.lazyAssign(intoId, this.computedMember('i', ast.watchId)), this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true));
return;
}
switch (ast.type) {
case AST.Program:
forEach(ast.body, function (expression, pos) {
self.recurse(expression.expression, undefined, undefined, function (expr) {
right = expr;
});
if (pos !== ast.body.length - 1) {
self.current().body.push(right, ';');
} else {
self.return_(right);
}
});
break;
case AST.Literal:
expression = this.escape(ast.value);
this.assign(intoId, expression);
recursionFn(intoId || expression);
break;
case AST.UnaryExpression:
this.recurse(ast.argument, undefined, undefined, function (expr) {
right = expr;
});
expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';
this.assign(intoId, expression);
recursionFn(expression);
break;
case AST.BinaryExpression:
this.recurse(ast.left, undefined, undefined, function (expr) {
left = expr;
});
this.recurse(ast.right, undefined, undefined, function (expr) {
right = expr;
});
if (ast.operator === '+') {
expression = this.plus(left, right);
} else if (ast.operator === '-') {
expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);
} else {
expression = '(' + left + ')' + ast.operator + '(' + right + ')';
}
this.assign(intoId, expression);
recursionFn(expression);
break;
case AST.LogicalExpression:
intoId = intoId || this.nextId();
self.recurse(ast.left, intoId);
self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));
recursionFn(intoId);
break;
case AST.ConditionalExpression:
intoId = intoId || this.nextId();
self.recurse(ast.test, intoId);
self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));
recursionFn(intoId);
break;
case AST.Identifier:
intoId = intoId || this.nextId();
if (nameId) {
nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');
nameId.computed = false;
nameId.name = ast.name;
}
self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)), function () {
self.if_(self.stage === 'inputs' || 's', function () {
if (create && create !== 1) {
self.if_(self.isNull(self.nonComputedMember('s', ast.name)), self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));
}
self.assign(intoId, self.nonComputedMember('s', ast.name));
});
}, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name)));
recursionFn(intoId);
break;
case AST.MemberExpression:
left = nameId && (nameId.context = this.nextId()) || this.nextId();
intoId = intoId || this.nextId();
self.recurse(ast.object, left, undefined, function () {
self.if_(self.notNull(left), function () {
if (ast.computed) {
right = self.nextId();
self.recurse(ast.property, right);
self.getStringValue(right);
if (create && create !== 1) {
self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));
}
expression = self.computedMember(left, right);
self.assign(intoId, expression);
if (nameId) {
nameId.computed = true;
nameId.name = right;
}
} else {
if (create && create !== 1) {
self.if_(self.isNull(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));
}
expression = self.nonComputedMember(left, ast.property.name);
self.assign(intoId, expression);
if (nameId) {
nameId.computed = false;
nameId.name = ast.property.name;
}
}
}, function () {
self.assign(intoId, 'undefined');
});
recursionFn(intoId);
}, !!create);
break;
case AST.CallExpression:
intoId = intoId || this.nextId();
if (ast.filter) {
right = self.filter(ast.callee.name);
args = [];
forEach(ast.arguments, function (expr) {
var argument = self.nextId();
self.recurse(expr, argument);
args.push(argument);
});
expression = right + '(' + args.join(',') + ')';
self.assign(intoId, expression);
recursionFn(intoId);
} else {
right = self.nextId();
left = {};
args = [];
self.recurse(ast.callee, right, left, function () {
self.if_(self.notNull(right), function () {
forEach(ast.arguments, function (expr) {
self.recurse(expr, ast.constant ? undefined : self.nextId(), undefined, function (argument) {
args.push(argument);
});
});
if (left.name) {
expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';
} else {
expression = right + '(' + args.join(',') + ')';
}
self.assign(intoId, expression);
}, function () {
self.assign(intoId, 'undefined');
});
recursionFn(intoId);
});
}
break;
case AST.AssignmentExpression:
right = this.nextId();
left = {};
this.recurse(ast.left, undefined, left, function () {
self.if_(self.notNull(left.context), function () {
self.recurse(ast.right, right);
expression = self.member(left.context, left.name, left.computed) + ast.operator + right;
self.assign(intoId, expression);
recursionFn(intoId || expression);
});
}, 1);
break;
case AST.ArrayExpression:
args = [];
forEach(ast.elements, function (expr) {
self.recurse(expr, ast.constant ? undefined : self.nextId(), undefined, function (argument) {
args.push(argument);
});
});
expression = '[' + args.join(',') + ']';
this.assign(intoId, expression);
recursionFn(intoId || expression);
break;
case AST.ObjectExpression:
args = [];
computed = false;
forEach(ast.properties, function (property) {
if (property.computed) {
computed = true;
}
});
if (computed) {
intoId = intoId || this.nextId();
this.assign(intoId, '{}');
forEach(ast.properties, function (property) {
if (property.computed) {
left = self.nextId();
self.recurse(property.key, left);
} else {
left = property.key.type === AST.Identifier ? property.key.name : '' + property.key.value;
}
right = self.nextId();
self.recurse(property.value, right);
self.assign(self.member(intoId, left, property.computed), right);
});
} else {
forEach(ast.properties, function (property) {
self.recurse(property.value, ast.constant ? undefined : self.nextId(), undefined, function (expr) {
args.push(self.escape(property.key.type === AST.Identifier ? property.key.name : '' + property.key.value) + ':' + expr);
});
});
expression = '{' + args.join(',') + '}';
this.assign(intoId, expression);
}
recursionFn(intoId || expression);
break;
case AST.ThisExpression:
this.assign(intoId, 's');
recursionFn(intoId || 's');
break;
case AST.LocalsExpression:
this.assign(intoId, 'l');
recursionFn(intoId || 'l');
break;
case AST.NGValueParameter:
this.assign(intoId, 'v');
recursionFn(intoId || 'v');
break;
}
},
getHasOwnProperty: function getHasOwnProperty(element, property) {
var key = element + '.' + property;
var own = this.current().own;
if (!own.hasOwnProperty(key)) {
own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');
}
return own[key];
},
assign: function assign(id, value) {
if (!id) return;
this.current().body.push(id, '=', value, ';');
return id;
},
filter: function filter(filterName) {
if (!this.state.filters.hasOwnProperty(filterName)) {
this.state.filters[filterName] = this.nextId(true);
}
return this.state.filters[filterName];
},
ifDefined: function ifDefined(id, defaultValue) {
return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';
},
plus: function plus(left, right) {
return 'plus(' + left + ',' + right + ')';
},
return_: function return_(id) {
this.current().body.push('return ', id, ';');
},
if_: function if_(test, alternate, consequent) {
if (test === true) {
alternate();
} else {
var body = this.current().body;
body.push('if(', test, '){');
alternate();
body.push('}');
if (consequent) {
body.push('else{');
consequent();
body.push('}');
}
}
},
not: function not(expression) {
return '!(' + expression + ')';
},
isNull: function isNull(expression) {
return expression + '==null';
},
notNull: function notNull(expression) {
return expression + '!=null';
},
nonComputedMember: function nonComputedMember(left, right) {
var SAFE_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]*$/;
var UNSAFE_CHARACTERS = /[^$_a-zA-Z0-9]/g;
if (SAFE_IDENTIFIER.test(right)) {
return left + '.' + right;
} else {
return left + '["' + right.replace(UNSAFE_CHARACTERS, this.stringEscapeFn) + '"]';
}
},
computedMember: function computedMember(left, right) {
return left + '[' + right + ']';
},
member: function member(left, right, computed) {
if (computed) return this.computedMember(left, right);
return this.nonComputedMember(left, right);
},
getStringValue: function getStringValue(item) {
this.assign(item, 'getStringValue(' + item + ')');
},
lazyRecurse: function lazyRecurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
var self = this;
return function () {
self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);
};
},
lazyAssign: function lazyAssign(id, value) {
var self = this;
return function () {
self.assign(id, value);
};
},
stringEscapeRegex: /[^ a-zA-Z0-9]/g,
stringEscapeFn: function stringEscapeFn(c) {
return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);
},
escape: function escape(value) {
if (isString(value)) return '\'' + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + '\'';
if (isNumber(value)) return value.toString();
if (value === true) return 'true';
if (value === false) return 'false';
if (value === null) return 'null';
if (typeof value === 'undefined') return 'undefined';
throw $parseMinErr('esc', 'IMPOSSIBLE');
},
nextId: function nextId(skip, init) {
var id = 'v' + this.state.nextId++;
if (!skip) {
this.current().vars.push(id + (init ? '=' + init : ''));
}
return id;
},
current: function current() {
return this.state[this.state.computing];
}
};
function ASTInterpreter($filter) {
this.$filter = $filter;
}
ASTInterpreter.prototype = {
compile: function compile(ast) {
var self = this;
findConstantAndWatchExpressions(ast, self.$filter);
var assignable;
var assign;
if (assignable = assignableAST(ast)) {
assign = this.recurse(assignable);
}
var toWatch = getInputs(ast.body);
var inputs;
if (toWatch) {
inputs = [];
forEach(toWatch, function (watch, key) {
var input = self.recurse(watch);
input.isPure = watch.isPure;
watch.input = input;
inputs.push(input);
watch.watchId = key;
});
}
var expressions = [];
forEach(ast.body, function (expression) {
expressions.push(self.recurse(expression.expression));
});
var fn = ast.body.length === 0 ? noop : ast.body.length === 1 ? expressions[0] : function (scope, locals) {
var lastValue;
forEach(expressions, function (exp) {
lastValue = exp(scope, locals);
});
return lastValue;
};
if (assign) {
fn.assign = function (scope, value, locals) {
return assign(scope, locals, value);
};
}
if (inputs) {
fn.inputs = inputs;
}
return fn;
},
recurse: function recurse(ast, context, create) {
var left,
right,
self = this,
args;
if (ast.input) {
return this.inputs(ast.input, ast.watchId);
}
switch (ast.type) {
case AST.Literal:
return this.value(ast.value, context);
case AST.UnaryExpression:
right = this.recurse(ast.argument);
return this['unary' + ast.operator](right, context);
case AST.BinaryExpression:
left = this.recurse(ast.left);
right = this.recurse(ast.right);
return this['binary' + ast.operator](left, right, context);
case AST.LogicalExpression:
left = this.recurse(ast.left);
right = this.recurse(ast.right);
return this['binary' + ast.operator](left, right, context);
case AST.ConditionalExpression:
return this['ternary?:'](this.recurse(ast.test), this.recurse(ast.alternate), this.recurse(ast.consequent), context);
case AST.Identifier:
return self.identifier(ast.name, context, create);
case AST.MemberExpression:
left = this.recurse(ast.object, false, !!create);
if (!ast.computed) {
right = ast.property.name;
}
if (ast.computed) right = this.recurse(ast.property);
return ast.computed ? this.computedMember(left, right, context, create) : this.nonComputedMember(left, right, context, create);
case AST.CallExpression:
args = [];
forEach(ast.arguments, function (expr) {
args.push(self.recurse(expr));
});
if (ast.filter) right = this.$filter(ast.callee.name);
if (!ast.filter) right = this.recurse(ast.callee, true);
return ast.filter ? function (scope, locals, assign, inputs) {
var values = [];
for (var i = 0; i < args.length; ++i) {
values.push(args[i](scope, locals, assign, inputs));
}
var value = right.apply(undefined, values, inputs);
return context ? { context: undefined, name: undefined, value: value } : value;
} : function (scope, locals, assign, inputs) {
var rhs = right(scope, locals, assign, inputs);
var value;
if (rhs.value != null) {
var values = [];
for (var i = 0; i < args.length; ++i) {
values.push(args[i](scope, locals, assign, inputs));
}
value = rhs.value.apply(rhs.context, values);
}
return context ? { value: value } : value;
};
case AST.AssignmentExpression:
left = this.recurse(ast.left, true, 1);
right = this.recurse(ast.right);
return function (scope, locals, assign, inputs) {
var lhs = left(scope, locals, assign, inputs);
var rhs = right(scope, locals, assign, inputs);
lhs.context[lhs.name] = rhs;
return context ? { value: rhs } : rhs;
};
case AST.ArrayExpression:
args = [];
forEach(ast.elements, function (expr) {
args.push(self.recurse(expr));
});
return function (scope, locals, assign, inputs) {
var value = [];
for (var i = 0; i < args.length; ++i) {
value.push(args[i](scope, locals, assign, inputs));
}
return context ? { value: value } : value;
};
case AST.ObjectExpression:
args = [];
forEach(ast.properties, function (property) {
if (property.computed) {
args.push({ key: self.recurse(property.key),
computed: true,
value: self.recurse(property.value)
});
} else {
args.push({ key: property.key.type === AST.Identifier ? property.key.name : '' + property.key.value,
computed: false,
value: self.recurse(property.value)
});
}
});
return function (scope, locals, assign, inputs) {
var value = {};
for (var i = 0; i < args.length; ++i) {
if (args[i].computed) {
value[args[i].key(scope, locals, assign, inputs)] = args[i].value(scope, locals, assign, inputs);
} else {
value[args[i].key] = args[i].value(scope, locals, assign, inputs);
}
}
return context ? { value: value } : value;
};
case AST.ThisExpression:
return function (scope) {
return context ? { value: scope } : scope;
};
case AST.LocalsExpression:
return function (scope, locals) {
return context ? { value: locals } : locals;
};
case AST.NGValueParameter:
return function (scope, locals, assign) {
return context ? { value: assign } : assign;
};
}
},
'unary+': function unary(argument, context) {
return function (scope, locals, assign, inputs) {
var arg = argument(scope, locals, assign, inputs);
if (isDefined(arg)) {
arg = +arg;
} else {
arg = 0;
}
return context ? { value: arg } : arg;
};
},
'unary-': function unary(argument, context) {
return function (scope, locals, assign, inputs) {
var arg = argument(scope, locals, assign, inputs);
if (isDefined(arg)) {
arg = -arg;
} else {
arg = -0;
}
return context ? { value: arg } : arg;
};
},
'unary!': function unary(argument, context) {
return function (scope, locals, assign, inputs) {
var arg = !argument(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary+': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var lhs = left(scope, locals, assign, inputs);
var rhs = right(scope, locals, assign, inputs);
var arg = plusFn(lhs, rhs);
return context ? { value: arg } : arg;
};
},
'binary-': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var lhs = left(scope, locals, assign, inputs);
var rhs = right(scope, locals, assign, inputs);
var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);
return context ? { value: arg } : arg;
};
},
'binary*': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary/': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary%': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary===': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary!==': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary==': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
// eslint-disable-next-line eqeqeq
var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary!=': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
// eslint-disable-next-line eqeqeq
var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary<': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary>': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary<=': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary>=': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary&&': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'binary||': function binary(left, right, context) {
return function (scope, locals, assign, inputs) {
var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
'ternary?:': function ternary(test, alternate, consequent, context) {
return function (scope, locals, assign, inputs) {
var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);
return context ? { value: arg } : arg;
};
},
value: function value(_value2, context) {
return function () {
return context ? { context: undefined, name: undefined, value: _value2 } : _value2;
};
},
identifier: function identifier(name, context, create) {
return function (scope, locals, assign, inputs) {
var base = locals && name in locals ? locals : scope;
if (create && create !== 1 && base && base[name] == null) {
base[name] = {};
}
var value = base ? base[name] : undefined;
if (context) {
return { context: base, name: name, value: value };
} else {
return value;
}
};
},
computedMember: function computedMember(left, right, context, create) {
return function (scope, locals, assign, inputs) {
var lhs = left(scope, locals, assign, inputs);
var rhs;
var value;
if (lhs != null) {
rhs = right(scope, locals, assign, inputs);
rhs = getStringValue(rhs);
if (create && create !== 1) {
if (lhs && !lhs[rhs]) {
lhs[rhs] = {};
}
}
value = lhs[rhs];
}
if (context) {
return { context: lhs, name: rhs, value: value };
} else {
return value;
}
};
},
nonComputedMember: function nonComputedMember(left, right, context, create) {
return function (scope, locals, assign, inputs) {
var lhs = left(scope, locals, assign, inputs);
if (create && create !== 1) {
if (lhs && lhs[right] == null) {
lhs[right] = {};
}
}
var value = lhs != null ? lhs[right] : undefined;
if (context) {
return { context: lhs, name: right, value: value };
} else {
return value;
}
};
},
inputs: function inputs(input, watchId) {
return function (scope, value, locals, inputs) {
if (inputs) return inputs[watchId];
return input(scope, value, locals);
};
}
};
/**
* @constructor
*/
function Parser(lexer, $filter, options) {
this.ast = new AST(lexer, options);
this.astCompiler = options.csp ? new ASTInterpreter($filter) : new ASTCompiler($filter);
}
Parser.prototype = {
constructor: Parser,
parse: function parse(text) {
var ast = this.getAst(text);
var fn = this.astCompiler.compile(ast.ast);
fn.literal = isLiteral(ast.ast);
fn.constant = isConstant(ast.ast);
fn.oneTime = ast.oneTime;
return fn;
},
getAst: function getAst(exp) {
var oneTime = false;
exp = exp.trim();
if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {
oneTime = true;
exp = exp.substring(2);
}
return {
ast: this.ast.ast(exp),
oneTime: oneTime
};
}
};
function getValueOf(value) {
return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);
}
///////////////////////////////////
/**
* @ngdoc service
* @name $parse
* @kind function
*
* @description
*
* Converts Angular {@link guide/expression expression} into a function.
*
* ```js
* var getter = $parse('user.name');
* var setter = getter.assign;
* var context = {user:{name:'angular'}};
* var locals = {user:{name:'local'}};
*
* expect(getter(context)).toEqual('angular');
* setter(context, 'newValue');
* expect(context.user.name).toEqual('newValue');
* expect(getter(context, locals)).toEqual('local');
* ```
*
*
* @param {string} expression String expression to compile.
* @returns {function(context, locals)} a function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the strings
* are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values in
* `context`.
*
* The returned function also has the following properties:
* * `literal` `{boolean}` whether the expression's top-level node is a JavaScript
* literal.
* * `constant` `{boolean}` whether the expression is made entirely of JavaScript
* constant literals.
* * `assign` `{?function(context, value)}` if the expression is assignable, this will be
* set to a function to change its value on the given context.
*
*/
/**
* @ngdoc provider
* @name $parseProvider
* @this
*
* @description
* `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}
* service.
*/
function $ParseProvider() {
var cache = createMap();
var literals = {
'true': true,
'false': false,
'null': null,
'undefined': undefined
};
var identStart, identContinue;
/**
* @ngdoc method
* @name $parseProvider#addLiteral
* @description
*
* Configure $parse service to add literal values that will be present as literal at expressions.
*
* @param {string} literalName Token for the literal value. The literal name value must be a valid literal name.
* @param {*} literalValue Value for this literal. All literal values must be primitives or `undefined`.
*
**/
this.addLiteral = function (literalName, literalValue) {
literals[literalName] = literalValue;
};
/**
* @ngdoc method
* @name $parseProvider#setIdentifierFns
*
* @description
*
* Allows defining the set of characters that are allowed in Angular expressions. The function
* `identifierStart` will get called to know if a given character is a valid character to be the
* first character for an identifier. The function `identifierContinue` will get called to know if
* a given character is a valid character to be a follow-up identifier character. The functions
* `identifierStart` and `identifierContinue` will receive as arguments the single character to be
* identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
* mind that the `string` parameter can be two characters long depending on the character
* representation. It is expected for the function to return `true` or `false`, whether that
* character is allowed or not.
*
* Since this function will be called extensively, keep the implementation of these functions fast,
* as the performance of these functions have a direct impact on the expressions parsing speed.
*
* @param {function=} identifierStart The function that will decide whether the given character is
* a valid identifier start character.
* @param {function=} identifierContinue The function that will decide whether the given character is
* a valid identifier continue character.
*/
this.setIdentifierFns = function (identifierStart, identifierContinue) {
identStart = identifierStart;
identContinue = identifierContinue;
return this;
};
this.$get = ['$filter', function ($filter) {
var noUnsafeEval = csp().noUnsafeEval;
var $parseOptions = {
csp: noUnsafeEval,
literals: copy(literals),
isIdentifierStart: isFunction(identStart) && identStart,
isIdentifierContinue: isFunction(identContinue) && identContinue
};
$parse.$$getAst = $$getAst;
return $parse;
function $parse(exp, interceptorFn) {
var parsedExpression, cacheKey;
switch (typeof exp === 'undefined' ? 'undefined' : _typeof(exp)) {
case 'string':
exp = exp.trim();
cacheKey = exp;
parsedExpression = cache[cacheKey];
if (!parsedExpression) {
var lexer = new Lexer($parseOptions);
var parser = new Parser(lexer, $filter, $parseOptions);
parsedExpression = parser.parse(exp);
if (parsedExpression.constant) {
parsedExpression.$$watchDelegate = constantWatchDelegate;
} else if (parsedExpression.oneTime) {
parsedExpression.$$watchDelegate = parsedExpression.literal ? oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;
} else if (parsedExpression.inputs) {
parsedExpression.$$watchDelegate = inputsWatchDelegate;
}
cache[cacheKey] = parsedExpression;
}
return addInterceptor(parsedExpression, interceptorFn);
case 'function':
return addInterceptor(exp, interceptorFn);
default:
return addInterceptor(noop, interceptorFn);
}
}
function $$getAst(exp) {
var lexer = new Lexer($parseOptions);
var parser = new Parser(lexer, $filter, $parseOptions);
return parser.getAst(exp).ast;
}
function expressionInputDirtyCheck(newValue, oldValueOfValue, compareObjectIdentity) {
if (newValue == null || oldValueOfValue == null) {
// null/undefined
return newValue === oldValueOfValue;
}
if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object') {
// attempt to convert the value to a primitive type
// TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can
// be cheaply dirty-checked
newValue = getValueOf(newValue);
if ((typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === 'object' && !compareObjectIdentity) {
// objects/arrays are not supported - deep-watching them would be too expensive
return false;
}
// fall-through to the primitive equality check
}
//Primitive or NaN
// eslint-disable-next-line no-self-compare
return newValue === oldValueOfValue || newValue !== newValue && oldValueOfValue !== oldValueOfValue;
}
function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {
var inputExpressions = parsedExpression.inputs;
var lastResult;
if (inputExpressions.length === 1) {
var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails
inputExpressions = inputExpressions[0];
return scope.$watch(function expressionInputWatch(scope) {
var newInputValue = inputExpressions(scope);
if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf, inputExpressions.isPure)) {
lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);
oldInputValueOf = newInputValue && getValueOf(newInputValue);
}
return lastResult;
}, listener, objectEquality, prettyPrintExpression);
}
var oldInputValueOfValues = [];
var oldInputValues = [];
for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails
oldInputValues[i] = null;
}
return scope.$watch(function expressionInputsWatch(scope) {
var changed = false;
for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
var newInputValue = inputExpressions[i](scope);
if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i], inputExpressions[i].isPure))) {
oldInputValues[i] = newInputValue;
oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);
}
}
if (changed) {
lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);
}
return lastResult;
}, listener, objectEquality, prettyPrintExpression);
}
function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {
var unwatch, lastValue;
if (parsedExpression.inputs) {
unwatch = inputsWatchDelegate(scope, oneTimeListener, objectEquality, parsedExpression, prettyPrintExpression);
} else {
unwatch = scope.$watch(oneTimeWatch, oneTimeListener, objectEquality);
}
return unwatch;
function oneTimeWatch(scope) {
return parsedExpression(scope);
}
function oneTimeListener(value, old, scope) {
lastValue = value;
if (isFunction(listener)) {
listener(value, old, scope);
}
if (isDefined(value)) {
scope.$$postDigest(function () {
if (isDefined(lastValue)) {
unwatch();
}
});
}
}
}
function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {
var unwatch, lastValue;
unwatch = scope.$watch(function oneTimeWatch(scope) {
return parsedExpression(scope);
}, function oneTimeListener(value, old, scope) {
lastValue = value;
if (isFunction(listener)) {
listener(value, old, scope);
}
if (isAllDefined(value)) {
scope.$$postDigest(function () {
if (isAllDefined(lastValue)) unwatch();
});
}
}, objectEquality);
return unwatch;
function isAllDefined(value) {
var allDefined = true;
forEach(value, function (val) {
if (!isDefined(val)) allDefined = false;
});
return allDefined;
}
}
function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {
var unwatch = scope.$watch(function constantWatch(scope) {
unwatch();
return parsedExpression(scope);
}, listener, objectEquality);
return unwatch;
}
function addInterceptor(parsedExpression, interceptorFn) {
if (!interceptorFn) return parsedExpression;
var watchDelegate = parsedExpression.$$watchDelegate;
var useInputs = false;
var regularWatch = watchDelegate !== oneTimeLiteralWatchDelegate && watchDelegate !== oneTimeWatchDelegate;
var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {
var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);
return interceptorFn(value, scope, locals);
} : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {
var value = parsedExpression(scope, locals, assign, inputs);
var result = interceptorFn(value, scope, locals);
// we only return the interceptor's result if the
// initial value is defined (for bind-once)
return isDefined(value) ? result : value;
};
// Propagate $$watchDelegates other then inputsWatchDelegate
useInputs = !parsedExpression.inputs;
if (watchDelegate && watchDelegate !== inputsWatchDelegate) {
fn.$$watchDelegate = watchDelegate;
fn.inputs = parsedExpression.inputs;
} else if (!interceptorFn.$stateful) {
// Treat interceptor like filters - assume non-stateful by default and use the inputsWatchDelegate
fn.$$watchDelegate = inputsWatchDelegate;
fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];
}
if (fn.inputs) {
fn.inputs = fn.inputs.map(function (e) {
// Remove the isPure flag of inputs when it is not absolute because they are now wrapped in a
// potentially non-pure interceptor function.
if (e.isPure === PURITY_RELATIVE) {
return function depurifier(s) {
return e(s);
};
}
return e;
});
}
return fn;
}
}];
}
/**
* @ngdoc service
* @name $q
* @requires $rootScope
*
* @description
* A service that helps you run functions asynchronously, and use their return values (or exceptions)
* when they are done processing.
*
* This is a [Promises/A+](https://promisesaplus.com/)-compliant implementation of promises/deferred
* objects inspired by [Kris Kowal's Q](https://github.com/kriskowal/q).
*
* $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred
* implementations, and the other which resembles ES6 (ES2015) promises to some degree.
*
* ## $q constructor
*
* The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`
* function as the first argument. This is similar to the native Promise implementation from ES6,
* see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
*
* While the constructor-style use is supported, not all of the supporting methods from ES6 promises are
* available yet.
*
* It can be used like so:
*
* ```js
* // for the purpose of this example let's assume that variables `$q` and `okToGreet`
* // are available in the current lexical scope (they could have been injected or passed in).
*
* function asyncGreet(name) {
* // perform some asynchronous operation, resolve or reject the promise when appropriate.
* return $q(function(resolve, reject) {
* setTimeout(function() {
* if (okToGreet(name)) {
* resolve('Hello, ' + name + '!');
* } else {
* reject('Greeting ' + name + ' is not allowed.');
* }
* }, 1000);
* });
* }
*
* var promise = asyncGreet('Robin Hood');
* promise.then(function(greeting) {
* alert('Success: ' + greeting);
* }, function(reason) {
* alert('Failed: ' + reason);
* });
* ```
*
* Note: progress/notify callbacks are not currently supported via the ES6-style interface.
*
* Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
*
* However, the more traditional CommonJS-style usage is still available, and documented below.
*
* [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
* interface for interacting with an object that represents the result of an action that is
* performed asynchronously, and may or may not be finished at any given point in time.
*
* From the perspective of dealing with error handling, deferred and promise APIs are to
* asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
*
* ```js
* // for the purpose of this example let's assume that variables `$q` and `okToGreet`
* // are available in the current lexical scope (they could have been injected or passed in).
*
* function asyncGreet(name) {
* var deferred = $q.defer();
*
* setTimeout(function() {
* deferred.notify('About to greet ' + name + '.');
*
* if (okToGreet(name)) {
* deferred.resolve('Hello, ' + name + '!');
* } else {
* deferred.reject('Greeting ' + name + ' is not allowed.');
* }
* }, 1000);
*
* return deferred.promise;
* }
*
* var promise = asyncGreet('Robin Hood');
* promise.then(function(greeting) {
* alert('Success: ' + greeting);
* }, function(reason) {
* alert('Failed: ' + reason);
* }, function(update) {
* alert('Got notification: ' + update);
* });
* ```
*
* At first it might not be obvious why this extra complexity is worth the trouble. The payoff
* comes in the way of guarantees that promise and deferred APIs make, see
* https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.
*
* Additionally the promise api allows for composition that is very hard to do with the
* traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
* For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the
* section on serial or parallel joining of promises.
*
* ## The Deferred API
*
* A new instance of deferred is constructed by calling `$q.defer()`.
*
* The purpose of the deferred object is to expose the associated Promise instance as well as APIs
* that can be used for signaling the successful or unsuccessful completion, as well as the status
* of the task.
*
* **Methods**
*
* - `resolve(value)` resolves the derived promise with the `value`. If the value is a rejection
* constructed via `$q.reject`, the promise will be rejected instead.
* - `reject(reason)` rejects the derived promise with the `reason`. This is equivalent to
* resolving it with a rejection constructed via `$q.reject`.
* - `notify(value)` - provides updates on the status of the promise's execution. This may be called
* multiple times before the promise is either resolved or rejected.
*
* **Properties**
*
* - promise `{Promise}` promise object associated with this deferred.
*
*
* ## The Promise API
*
* A new promise instance is created when a deferred instance is created and can be retrieved by
* calling `deferred.promise`.
*
* The purpose of the promise object is to allow for interested parties to get access to the result
* of the deferred task when it completes.
*
* **Methods**
*
* - `then(successCallback, [errorCallback], [notifyCallback])` regardless of when the promise was or
* will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
* as soon as the result is available. The callbacks are called with a single argument: the result
* or rejection reason. Additionally, the notify callback may be called zero or more times to
* provide a progress indication, before the promise is resolved or rejected.
*
* This method *returns a new promise* which is resolved or rejected via the return value of the
* `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved
* with the value which is resolved in that promise using
* [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
* It also notifies via the return value of the `notifyCallback` method. The promise cannot be
* resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback
* arguments are optional.
*
* - `catch(errorCallback)` shorthand for `promise.then(null, errorCallback)`
*
* - `finally(callback, notifyCallback)` allows you to observe either the fulfillment or rejection of a promise,
* but to do so without modifying the final value. This is useful to release resources or do some
* clean-up that needs to be done whether the promise was rejected or resolved. See the [full
* specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for
* more information.
*
* ## Chaining promises
*
* Because calling the `then` method of a promise returns a new derived promise, it is easily
* possible to create a chain of promises:
*
* ```js
* promiseB = promiseA.then(function(result) {
* return result + 1;
* });
*
* // promiseB will be resolved immediately after promiseA is resolved and its value
* // will be the result of promiseA incremented by 1
* ```
*
* It is possible to create chains of any length and since a promise can be resolved with another
* promise (which will defer its resolution further), it is possible to pause/defer resolution of
* the promises at any point in the chain. This makes it possible to implement powerful APIs like
* $http's response interceptors.
*
*
* ## Differences between Kris Kowal's Q and $q
*
* There are two main differences:
*
* - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation
* mechanism in angular, which means faster propagation of resolution or rejection into your
* models and avoiding unnecessary browser repaints, which would result in flickering UI.
* - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains
* all the important functionality needed for common async tasks.
*
* ## Testing
*
* ```js
* it('should simulate promise', inject(function($q, $rootScope) {
* var deferred = $q.defer();
* var promise = deferred.promise;
* var resolvedValue;
*
* promise.then(function(value) { resolvedValue = value; });
* expect(resolvedValue).toBeUndefined();
*
* // Simulate resolving of promise
* deferred.resolve(123);
* // Note that the 'then' function does not get called synchronously.
* // This is because we want the promise API to always be async, whether or not
* // it got called synchronously or asynchronously.
* expect(resolvedValue).toBeUndefined();
*
* // Propagate promise resolution to 'then' functions using $apply().
* $rootScope.$apply();
* expect(resolvedValue).toEqual(123);
* }));
* ```
*
* @param {function(function, function)} resolver Function which is responsible for resolving or
* rejecting the newly created promise. The first parameter is a function which resolves the
* promise, the second parameter is a function which rejects the promise.
*
* @returns {Promise} The newly created promise.
*/
/**
* @ngdoc provider
* @name $qProvider
* @this
*
* @description
*/
function $QProvider() {
var errorOnUnhandledRejections = true;
this.$get = ['$rootScope', '$exceptionHandler', function ($rootScope, $exceptionHandler) {
return qFactory(function (callback) {
$rootScope.$evalAsync(callback);
}, $exceptionHandler, errorOnUnhandledRejections);
}];
/**
* @ngdoc method
* @name $qProvider#errorOnUnhandledRejections
* @kind function
*
* @description
* Retrieves or overrides whether to generate an error when a rejected promise is not handled.
* This feature is enabled by default.
*
* @param {boolean=} value Whether to generate an error when a rejected promise is not handled.
* @returns {boolean|ng.$qProvider} Current value when called without a new value or self for
* chaining otherwise.
*/
this.errorOnUnhandledRejections = function (value) {
if (isDefined(value)) {
errorOnUnhandledRejections = value;
return this;
} else {
return errorOnUnhandledRejections;
}
};
}
/** @this */
function $$QProvider() {
var errorOnUnhandledRejections = true;
this.$get = ['$browser', '$exceptionHandler', function ($browser, $exceptionHandler) {
return qFactory(function (callback) {
$browser.defer(callback);
}, $exceptionHandler, errorOnUnhandledRejections);
}];
this.errorOnUnhandledRejections = function (value) {
if (isDefined(value)) {
errorOnUnhandledRejections = value;
return this;
} else {
return errorOnUnhandledRejections;
}
};
}
/**
* Constructs a promise manager.
*
* @param {function(function)} nextTick Function for executing functions in the next turn.
* @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for
* debugging purposes.
* @param {boolean=} errorOnUnhandledRejections Whether an error should be generated on unhandled
* promises rejections.
* @returns {object} Promise manager.
*/
function qFactory(nextTick, exceptionHandler, errorOnUnhandledRejections) {
var $qMinErr = minErr('$q', TypeError);
var queueSize = 0;
var checkQueue = [];
/**
* @ngdoc method
* @name ng.$q#defer
* @kind function
*
* @description
* Creates a `Deferred` object which represents a task which will finish in the future.
*
* @returns {Deferred} Returns a new instance of deferred.
*/
function defer() {
return new Deferred();
}
function Deferred() {
var promise = this.promise = new Promise();
//Non prototype methods necessary to support unbound execution :/
this.resolve = function (val) {
resolvePromise(promise, val);
};
this.reject = function (reason) {
rejectPromise(promise, reason);
};
this.notify = function (progress) {
notifyPromise(promise, progress);
};
}
function Promise() {
this.$$state = { status: 0 };
}
extend(Promise.prototype, {
then: function then(onFulfilled, onRejected, progressBack) {
if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {
return this;
}
var result = new Promise();
this.$$state.pending = this.$$state.pending || [];
this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);
if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);
return result;
},
'catch': function _catch(callback) {
return this.then(null, callback);
},
'finally': function _finally(callback, progressBack) {
return this.then(function (value) {
return handleCallback(value, resolve, callback);
}, function (error) {
return handleCallback(error, reject, callback);
}, progressBack);
}
});
function processQueue(state) {
var fn, promise, pending;
pending = state.pending;
state.processScheduled = false;
state.pending = undefined;
try {
for (var i = 0, ii = pending.length; i < ii; ++i) {
markQStateExceptionHandled(state);
promise = pending[i][0];
fn = pending[i][state.status];
try {
if (isFunction(fn)) {
resolvePromise(promise, fn(state.value));
} else if (state.status === 1) {
resolvePromise(promise, state.value);
} else {
rejectPromise(promise, state.value);
}
} catch (e) {
rejectPromise(promise, e);
// This error is explicitly marked for being passed to the $exceptionHandler
if (e && e.$$passToExceptionHandler === true) {
exceptionHandler(e);
}
}
}
} finally {
--queueSize;
if (errorOnUnhandledRejections && queueSize === 0) {
nextTick(processChecks);
}
}
}
function processChecks() {
// eslint-disable-next-line no-unmodified-loop-condition
while (!queueSize && checkQueue.length) {
var toCheck = checkQueue.shift();
if (!isStateExceptionHandled(toCheck)) {
markQStateExceptionHandled(toCheck);
var errorMessage = 'Possibly unhandled rejection: ' + toDebugString(toCheck.value);
if (isError(toCheck.value)) {
exceptionHandler(toCheck.value, errorMessage);
} else {
exceptionHandler(errorMessage);
}
}
}
}
function scheduleProcessQueue(state) {
if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) {
if (queueSize === 0 && checkQueue.length === 0) {
nextTick(processChecks);
}
checkQueue.push(state);
}
if (state.processScheduled || !state.pending) return;
state.processScheduled = true;
++queueSize;
nextTick(function () {
processQueue(state);
});
}
function resolvePromise(promise, val) {
if (promise.$$state.status) return;
if (val === promise) {
$$reject(promise, $qMinErr('qcycle', 'Expected promise to be resolved with value other than itself \'{0}\'', val));
} else {
$$resolve(promise, val);
}
}
function $$resolve(promise, val) {
var then;
var done = false;
try {
if (isObject(val) || isFunction(val)) then = val.then;
if (isFunction(then)) {
promise.$$state.status = -1;
then.call(val, doResolve, doReject, doNotify);
} else {
promise.$$state.value = val;
promise.$$state.status = 1;
scheduleProcessQueue(promise.$$state);
}
} catch (e) {
doReject(e);
}
function doResolve(val) {
if (done) return;
done = true;
$$resolve(promise, val);
}
function doReject(val) {
if (done) return;
done = true;
$$reject(promise, val);
}
function doNotify(progress) {
notifyPromise(promise, progress);
}
}
function rejectPromise(promise, reason) {
if (promise.$$state.status) return;
$$reject(promise, reason);
}
function $$reject(promise, reason) {
promise.$$state.value = reason;
promise.$$state.status = 2;
scheduleProcessQueue(promise.$$state);
}
function notifyPromise(promise, progress) {
var callbacks = promise.$$state.pending;
if (promise.$$state.status <= 0 && callbacks && callbacks.length) {
nextTick(function () {
var callback, result;
for (var i = 0, ii = callbacks.length; i < ii; i++) {
result = callbacks[i][0];
callback = callbacks[i][3];
try {
notifyPromise(result, isFunction(callback) ? callback(progress) : progress);
} catch (e) {
exceptionHandler(e);
}
}
});
}
}
/**
* @ngdoc method
* @name $q#reject
* @kind function
*
* @description
* Creates a promise that is resolved as rejected with the specified `reason`. This api should be
* used to forward rejection in a chain of promises. If you are dealing with the last promise in
* a promise chain, you don't need to worry about it.
*
* When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of
* `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via
* a promise error callback and you want to forward the error to the promise derived from the
* current promise, you have to "rethrow" the error by returning a rejection constructed via
* `reject`.
*
* ```js
* promiseB = promiseA.then(function(result) {
* // success: do something and resolve promiseB
* // with the old or a new result
* return result;
* }, function(reason) {
* // error: handle the error if possible and
* // resolve promiseB with newPromiseOrValue,
* // otherwise forward the rejection to promiseB
* if (canHandle(reason)) {
* // handle the error and recover
* return newPromiseOrValue;
* }
* return $q.reject(reason);
* });
* ```
*
* @param {*} reason Constant, message, exception or an object representing the rejection reason.
* @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
*/
function reject(reason) {
var result = new Promise();
rejectPromise(result, reason);
return result;
}
function handleCallback(value, resolver, callback) {
var callbackOutput = null;
try {
if (isFunction(callback)) callbackOutput = callback();
} catch (e) {
return reject(e);
}
if (isPromiseLike(callbackOutput)) {
return callbackOutput.then(function () {
return resolver(value);
}, reject);
} else {
return resolver(value);
}
}
/**
* @ngdoc method
* @name $q#when
* @kind function
*
* @description
* Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
* This is useful when you are dealing with an object that might or might not be a promise, or if
* the promise comes from a source that can't be trusted.
*
* @param {*} value Value or a promise
* @param {Function=} successCallback
* @param {Function=} errorCallback
* @param {Function=} progressCallback
* @returns {Promise} Returns a promise of the passed value or promise
*/
function when(value, callback, errback, progressBack) {
var result = new Promise();
resolvePromise(result, value);
return result.then(callback, errback, progressBack);
}
/**
* @ngdoc method
* @name $q#resolve
* @kind function
*
* @description
* Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.
*
* @param {*} value Value or a promise
* @param {Function=} successCallback
* @param {Function=} errorCallback
* @param {Function=} progressCallback
* @returns {Promise} Returns a promise of the passed value or promise
*/
var resolve = when;
/**
* @ngdoc method
* @name $q#all
* @kind function
*
* @description
* Combines multiple promises into a single promise that is resolved when all of the input
* promises are resolved.
*
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
* @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
* each value corresponding to the promise at the same index/key in the `promises` array/hash.
* If any of the promises is resolved with a rejection, this resulting promise will be rejected
* with the same rejection value.
*/
function all(promises) {
var result = new Promise(),
counter = 0,
results = isArray(promises) ? [] : {};
forEach(promises, function (promise, key) {
counter++;
when(promise).then(function (value) {
results[key] = value;
if (! --counter) resolvePromise(result, results);
}, function (reason) {
rejectPromise(result, reason);
});
});
if (counter === 0) {
resolvePromise(result, results);
}
return result;
}
/**
* @ngdoc method
* @name $q#race
* @kind function
*
* @description
* Returns a promise that resolves or rejects as soon as one of those promises
* resolves or rejects, with the value or reason from that promise.
*
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
* @returns {Promise} a promise that resolves or rejects as soon as one of the `promises`
* resolves or rejects, with the value or reason from that promise.
*/
function race(promises) {
var deferred = defer();
forEach(promises, function (promise) {
when(promise).then(deferred.resolve, deferred.reject);
});
return deferred.promise;
}
function $Q(resolver) {
if (!isFunction(resolver)) {
throw $qMinErr('norslvr', 'Expected resolverFn, got \'{0}\'', resolver);
}
var promise = new Promise();
function resolveFn(value) {
resolvePromise(promise, value);
}
function rejectFn(reason) {
rejectPromise(promise, reason);
}
resolver(resolveFn, rejectFn);
return promise;
}
// Let's make the instanceof operator work for promises, so that
// `new $q(fn) instanceof $q` would evaluate to true.
$Q.prototype = Promise.prototype;
$Q.defer = defer;
$Q.reject = reject;
$Q.when = when;
$Q.resolve = resolve;
$Q.all = all;
$Q.race = race;
return $Q;
}
function isStateExceptionHandled(state) {
return !!state.pur;
}
function markQStateExceptionHandled(state) {
state.pur = true;
}
function markQExceptionHandled(q) {
markQStateExceptionHandled(q.$$state);
}
/** @this */
function $$RAFProvider() {
//rAF
this.$get = ['$window', '$timeout', function ($window, $timeout) {
var requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame;
var cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || $window.webkitCancelRequestAnimationFrame;
var rafSupported = !!requestAnimationFrame;
var raf = rafSupported ? function (fn) {
var id = requestAnimationFrame(fn);
return function () {
cancelAnimationFrame(id);
};
} : function (fn) {
var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666
return function () {
$timeout.cancel(timer);
};
};
raf.supported = rafSupported;
return raf;
}];
}
/**
* DESIGN NOTES
*
* The design decisions behind the scope are heavily favored for speed and memory consumption.
*
* The typical use of scope is to watch the expressions, which most of the time return the same
* value as last time so we optimize the operation.
*
* Closures construction is expensive in terms of speed as well as memory:
* - No closures, instead use prototypical inheritance for API
* - Internal state needs to be stored on scope directly, which means that private state is
* exposed as $$____ properties
*
* Loop operations are optimized by using while(count--) { ... }
* - This means that in order to keep the same order of execution as addition we have to add
* items to the array at the beginning (unshift) instead of at the end (push)
*
* Child scopes are created and removed often
* - Using an array would be slow since inserts in the middle are expensive; so we use linked lists
*
* There are fewer watches than observers. This is why you don't want the observer to be implemented
* in the same way as watch. Watch requires return of the initialization function which is expensive
* to construct.
*/
/**
* @ngdoc provider
* @name $rootScopeProvider
* @description
*
* Provider for the $rootScope service.
*/
/**
* @ngdoc method
* @name $rootScopeProvider#digestTtl
* @description
*
* Sets the number of `$digest` iterations the scope should attempt to execute before giving up and
* assuming that the model is unstable.
*
* The current default is 10 iterations.
*
* In complex applications it's possible that the dependencies between `$watch`s will result in
* several digest iterations. However if an application needs more than the default 10 digest
* iterations for its model to stabilize then you should investigate what is causing the model to
* continuously change during the digest.
*
* Increasing the TTL could have performance implications, so you should not change it without
* proper justification.
*
* @param {number} limit The number of digest iterations.
*/
/**
* @ngdoc service
* @name $rootScope
* @this
*
* @description
*
* Every application has a single root {@link ng.$rootScope.Scope scope}.
* All other scopes are descendant scopes of the root scope. Scopes provide separation
* between the model and the view, via a mechanism for watching the model for changes.
* They also provide event emission/broadcast and subscription facility. See the
* {@link guide/scope developer guide on scopes}.
*/
function $RootScopeProvider() {
var TTL = 10;
var $rootScopeMinErr = minErr('$rootScope');
var lastDirtyWatch = null;
var applyAsyncId = null;
this.digestTtl = function (value) {
if (arguments.length) {
TTL = value;
}
return TTL;
};
function createChildScopeClass(parent) {
function ChildScope() {
this.$$watchers = this.$$nextSibling = this.$$childHead = this.$$childTail = null;
this.$$listeners = {};
this.$$listenerCount = {};
this.$$watchersCount = 0;
this.$id = nextUid();
this.$$ChildScope = null;
}
ChildScope.prototype = parent;
return ChildScope;
}
this.$get = ['$exceptionHandler', '$parse', '$browser', function ($exceptionHandler, $parse, $browser) {
function destroyChildScope($event) {
$event.currentScope.$$destroyed = true;
}
function cleanUpScope($scope) {
// Support: IE 9 only
if (msie === 9) {
// There is a memory leak in IE9 if all child scopes are not disconnected
// completely when a scope is destroyed. So this code will recurse up through
// all this scopes children
//
// See issue https://github.com/angular/angular.js/issues/10706
if ($scope.$$childHead) {
cleanUpScope($scope.$$childHead);
}
if ($scope.$$nextSibling) {
cleanUpScope($scope.$$nextSibling);
}
}
// The code below works around IE9 and V8's memory leaks
//
// See:
// - https://code.google.com/p/v8/issues/detail?id=2073#c26
// - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909
// - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
$scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead = $scope.$$childTail = $scope.$root = $scope.$$watchers = null;
}
/**
* @ngdoc type
* @name $rootScope.Scope
*
* @description
* A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the
* {@link auto.$injector $injector}. Child scopes are created using the
* {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
* compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for
* an in-depth introduction and usage examples.
*
*
* ## Inheritance
* A scope can inherit from a parent scope, as in this example:
* ```js
var parent = $rootScope;
var child = parent.$new();
parent.salutation = "Hello";
expect(child.salutation).toEqual('Hello');
child.salutation = "Welcome";
expect(child.salutation).toEqual('Welcome');
expect(parent.salutation).toEqual('Hello');
* ```
*
* When interacting with `Scope` in tests, additional helper methods are available on the
* instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional
* details.
*
*
* @param {Object.<string, function()>=} providers Map of service factory which need to be
* provided for the current scope. Defaults to {@link ng}.
* @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
* append/override services provided by `providers`. This is handy
* when unit-testing and having the need to override a default
* service.
* @returns {Object} Newly created scope.
*
*/
function Scope() {
this.$id = nextUid();
this.$$phase = this.$parent = this.$$watchers = this.$$nextSibling = this.$$prevSibling = this.$$childHead = this.$$childTail = null;
this.$root = this;
this.$$destroyed = false;
this.$$listeners = {};
this.$$listenerCount = {};
this.$$watchersCount = 0;
this.$$isolateBindings = null;
}
/**
* @ngdoc property
* @name $rootScope.Scope#$id
*
* @description
* Unique scope ID (monotonically increasing) useful for debugging.
*/
/**
* @ngdoc property
* @name $rootScope.Scope#$parent
*
* @description
* Reference to the parent scope.
*/
/**
* @ngdoc property
* @name $rootScope.Scope#$root
*
* @description
* Reference to the root scope.
*/
Scope.prototype = {
constructor: Scope,
/**
* @ngdoc method
* @name $rootScope.Scope#$new
* @kind function
*
* @description
* Creates a new child {@link ng.$rootScope.Scope scope}.
*
* The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.
* The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.
*
* {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is
* desired for the scope and its child scopes to be permanently detached from the parent and
* thus stop participating in model change detection and listener notification by invoking.
*
* @param {boolean} isolate If true, then the scope does not prototypically inherit from the
* parent scope. The scope is isolated, as it can not see parent scope properties.
* When creating widgets, it is useful for the widget to not accidentally read parent
* state.
*
* @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`
* of the newly created scope. Defaults to `this` scope if not provided.
* This is used when creating a transclude scope to correctly place it
* in the scope hierarchy while maintaining the correct prototypical
* inheritance.
*
* @returns {Object} The newly created child scope.
*
*/
$new: function $new(isolate, parent) {
var child;
parent = parent || this;
if (isolate) {
child = new Scope();
child.$root = this.$root;
} else {
// Only create a child scope class if somebody asks for one,
// but cache it to allow the VM to optimize lookups.
if (!this.$$ChildScope) {
this.$$ChildScope = createChildScopeClass(this);
}
child = new this.$$ChildScope();
}
child.$parent = parent;
child.$$prevSibling = parent.$$childTail;
if (parent.$$childHead) {
parent.$$childTail.$$nextSibling = child;
parent.$$childTail = child;
} else {
parent.$$childHead = parent.$$childTail = child;
}
// When the new scope is not isolated or we inherit from `this`, and
// the parent scope is destroyed, the property `$$destroyed` is inherited
// prototypically. In all other cases, this property needs to be set
// when the parent scope is destroyed.
// The listener needs to be added after the parent is set
if (isolate || parent !== this) child.$on('$destroy', destroyChildScope);
return child;
},
/**
* @ngdoc method
* @name $rootScope.Scope#$watch
* @kind function
*
* @description
* Registers a `listener` callback to be executed whenever the `watchExpression` changes.
*
* - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest
* $digest()} and should return the value that will be watched. (`watchExpression` should not change
* its value when executed multiple times with the same input because it may be executed multiple
* times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be
* [idempotent](http://en.wikipedia.org/wiki/Idempotence).)
* - The `listener` is called only when the value from the current `watchExpression` and the
* previous call to `watchExpression` are not equal (with the exception of the initial run,
* see below). Inequality is determined according to reference inequality,
* [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)
* via the `!==` Javascript operator, unless `objectEquality == true`
* (see next point)
* - When `objectEquality == true`, inequality of the `watchExpression` is determined
* according to the {@link angular.equals} function. To save the value of the object for
* later comparison, the {@link angular.copy} function is used. This therefore means that
* watching complex objects will have adverse memory and performance implications.
* - This should not be used to watch for changes in objects that are
* or contain [File](https://developer.mozilla.org/docs/Web/API/File) objects due to limitations with {@link angular.copy `angular.copy`}.
* - The watch `listener` may change the model, which may trigger other `listener`s to fire.
* This is achieved by rerunning the watchers until no changes are detected. The rerun
* iteration limit is 10 to prevent an infinite loop deadlock.
*
*
* If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
* you can register a `watchExpression` function with no `listener`. (Be prepared for
* multiple calls to your `watchExpression` because it will execute multiple times in a
* single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)
*
* After a watcher is registered with the scope, the `listener` fn is called asynchronously
* (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the
* watcher. In rare cases, this is undesirable because the listener is called when the result
* of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you
* can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the
* listener was called due to initialization.
*
*
*
* @example
* ```js
// let's assume that scope was dependency injected as the $rootScope
var scope = $rootScope;
scope.name = 'misko';
scope.counter = 0;
expect(scope.counter).toEqual(0);
scope.$watch('name', function(newValue, oldValue) {
scope.counter = scope.counter + 1;
});
expect(scope.counter).toEqual(0);
scope.$digest();
// the listener is always called during the first $digest loop after it was registered
expect(scope.counter).toEqual(1);
scope.$digest();
// but now it will not be called unless the value changes
expect(scope.counter).toEqual(1);
scope.name = 'adam';
scope.$digest();
expect(scope.counter).toEqual(2);
// Using a function as a watchExpression
var food;
scope.foodCounter = 0;
expect(scope.foodCounter).toEqual(0);
scope.$watch(
// This function returns the value being watched. It is called for each turn of the $digest loop
function() { return food; },
// This is the change listener, called when the value returned from the above function changes
function(newValue, oldValue) {
if ( newValue !== oldValue ) {
// Only increment the counter if the value changed
scope.foodCounter = scope.foodCounter + 1;
}
}
);
// No digest has been run so the counter will be zero
expect(scope.foodCounter).toEqual(0);
// Run the digest but since food has not changed count will still be zero
scope.$digest();
expect(scope.foodCounter).toEqual(0);
// Update food and run digest. Now the counter will increment
food = 'cheeseburger';
scope.$digest();
expect(scope.foodCounter).toEqual(1);
* ```
*
*
*
* @param {(function()|string)} watchExpression Expression that is evaluated on each
* {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers
* a call to the `listener`.
*
* - `string`: Evaluated as {@link guide/expression expression}
* - `function(scope)`: called with current `scope` as a parameter.
* @param {function(newVal, oldVal, scope)} listener Callback called whenever the value
* of `watchExpression` changes.
*
* - `newVal` contains the current value of the `watchExpression`
* - `oldVal` contains the previous value of the `watchExpression`
* - `scope` refers to the current scope
* @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of
* comparing for reference equality.
* @returns {function()} Returns a deregistration function for this listener.
*/
$watch: function $watch(watchExp, listener, objectEquality, prettyPrintExpression) {
var get = $parse(watchExp);
var fn = isFunction(listener) ? listener : noop;
if (get.$$watchDelegate) {
return get.$$watchDelegate(this, fn, objectEquality, get, watchExp);
}
var scope = this,
array = scope.$$watchers,
watcher = {
fn: fn,
last: initWatchVal,
get: get,
exp: prettyPrintExpression || watchExp,
eq: !!objectEquality
};
lastDirtyWatch = null;
if (!array) {
array = scope.$$watchers = [];
array.$$digestWatchIndex = -1;
}
// we use unshift since we use a while loop in $digest for speed.
// the while loop reads in reverse order.
array.unshift(watcher);
array.$$digestWatchIndex++;
incrementWatchersCount(this, 1);
return function deregisterWatch() {
var index = arrayRemove(array, watcher);
if (index >= 0) {
incrementWatchersCount(scope, -1);
if (index < array.$$digestWatchIndex) {
array.$$digestWatchIndex--;
}
}
lastDirtyWatch = null;
};
},
/**
* @ngdoc method
* @name $rootScope.Scope#$watchGroup
* @kind function
*
* @description
* A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.
* If any one expression in the collection changes the `listener` is executed.
*
* - The items in the `watchExpressions` array are observed via the standard `$watch` operation. Their return
* values are examined for changes on every call to `$digest`.
* - The `listener` is called whenever any expression in the `watchExpressions` array changes.
*
* `$watchGroup` is more performant than watching each expression individually, and should be
* used when the listener does not need to know which expression has changed.
* If the listener needs to know which expression has changed,
* {@link ng.$rootScope.Scope#$watch $watch()} or
* {@link ng.$rootScope.Scope#$watchCollection $watchCollection()} should be used.
*
* @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually
* watched using {@link ng.$rootScope.Scope#$watch $watch()}
*
* @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any
* expression in `watchExpressions` changes
* The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching
* those of `watchExpression`
* and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching
* those of `watchExpression`.
*
* Note that `newValues` and `oldValues` reflect the differences in each **individual**
* expression, and not the difference of the values between each call of the listener.
* That means the difference between `newValues` and `oldValues` cannot be used to determine
* which expression has changed / remained stable:
*
* ```js
*
* $scope.$watchGroup(['v1', 'v2'], function(newValues, oldValues) {
* console.log(newValues, oldValues);
* });
*
* // newValues, oldValues initially
* // [undefined, undefined], [undefined, undefined]
*
* $scope.v1 = 'a';
* $scope.v2 = 'a';
*
* // ['a', 'a'], [undefined, undefined]
*
* $scope.v2 = 'b'
*
* // v1 hasn't changed since it became `'a'`, therefore its oldValue is still `undefined`
* // ['a', 'b'], [undefined, 'a']
*
* ```
*
* The `scope` refers to the current scope.
* @returns {function()} Returns a de-registration function for all listeners.
*/
$watchGroup: function $watchGroup(watchExpressions, listener) {
var oldValues = new Array(watchExpressions.length);
var newValues = new Array(watchExpressions.length);
var deregisterFns = [];
var self = this;
var changeReactionScheduled = false;
var firstRun = true;
if (!watchExpressions.length) {
// No expressions means we call the listener ASAP
var shouldCall = true;
self.$evalAsync(function () {
if (shouldCall) listener(newValues, newValues, self);
});
return function deregisterWatchGroup() {
shouldCall = false;
};
}
if (watchExpressions.length === 1) {
// Special case size of one
return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {
newValues[0] = value;
oldValues[0] = oldValue;
listener(newValues, value === oldValue ? newValues : oldValues, scope);
});
}
forEach(watchExpressions, function (expr, i) {
var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {
newValues[i] = value;
oldValues[i] = oldValue;
if (!changeReactionScheduled) {
changeReactionScheduled = true;
self.$evalAsync(watchGroupAction);
}
});
deregisterFns.push(unwatchFn);
});
function watchGroupAction() {
changeReactionScheduled = false;
if (firstRun) {
firstRun = false;
listener(newValues, newValues, self);
} else {
listener(newValues, oldValues, self);
}
}
return function deregisterWatchGroup() {
while (deregisterFns.length) {
deregisterFns.shift()();
}
};
},
/**
* @ngdoc method
* @name $rootScope.Scope#$watchCollection
* @kind function
*
* @description
* Shallow watches the properties of an object and fires whenever any of the properties change
* (for arrays, this implies watching the array items; for object maps, this implies watching
* the properties). If a change is detected, the `listener` callback is fired.
*
* - The `obj` collection is observed via standard $watch operation and is examined on every
* call to $digest() to see if any items have been added, removed, or moved.
* - The `listener` is called whenever anything within the `obj` has changed. Examples include
* adding, removing, and moving items belonging to an object or array.
*
*
* @example
* ```js
$scope.names = ['igor', 'matias', 'misko', 'james'];
$scope.dataCount = 4;
$scope.$watchCollection('names', function(newNames, oldNames) {
$scope.dataCount = newNames.length;
});
expect($scope.dataCount).toEqual(4);
$scope.$digest();
//still at 4 ... no changes
expect($scope.dataCount).toEqual(4);
$scope.names.pop();
$scope.$digest();
//now there's been a change
expect($scope.dataCount).toEqual(3);
* ```
*
*
* @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The
* expression value should evaluate to an object or an array which is observed on each
* {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the
* collection will trigger a call to the `listener`.
*
* @param {function(newCollection, oldCollection, scope)} listener a callback function called
* when a change is detected.
* - The `newCollection` object is the newly modified data obtained from the `obj` expression
* - The `oldCollection` object is a copy of the former collection data.
* Due to performance considerations, the`oldCollection` value is computed only if the
* `listener` function declares two or more arguments.
* - The `scope` argument refers to the current scope.
*
* @returns {function()} Returns a de-registration function for this listener. When the
* de-registration function is executed, the internal watch operation is terminated.
*/
$watchCollection: function $watchCollection(obj, listener) {
$watchCollectionInterceptor.$stateful = true;
var self = this;
// the current value, updated on each dirty-check run
var newValue;
// a shallow copy of the newValue from the last dirty-check run,
// updated to match newValue during dirty-check run
var oldValue;
// a shallow copy of the newValue from when the last change happened
var veryOldValue;
// only track veryOldValue if the listener is asking for it
var trackVeryOldValue = listener.length > 1;
var changeDetected = 0;
var changeDetector = $parse(obj, $watchCollectionInterceptor);
var internalArray = [];
var internalObject = {};
var initRun = true;
var oldLength = 0;
function $watchCollectionInterceptor(_value) {
newValue = _value;
var newLength, key, bothNaN, newItem, oldItem;
// If the new value is undefined, then return undefined as the watch may be a one-time watch
if (isUndefined(newValue)) return;
if (!isObject(newValue)) {
// if primitive
if (oldValue !== newValue) {
oldValue = newValue;
changeDetected++;
}
} else if (isArrayLike(newValue)) {
if (oldValue !== internalArray) {
// we are transitioning from something which was not an array into array.
oldValue = internalArray;
oldLength = oldValue.length = 0;
changeDetected++;
}
newLength = newValue.length;
if (oldLength !== newLength) {
// if lengths do not match we need to trigger change notification
changeDetected++;
oldValue.length = oldLength = newLength;
}
// copy the items to oldValue and look for changes.
for (var i = 0; i < newLength; i++) {
oldItem = oldValue[i];
newItem = newValue[i];
// eslint-disable-next-line no-self-compare
bothNaN = oldItem !== oldItem && newItem !== newItem;
if (!bothNaN && oldItem !== newItem) {
changeDetected++;
oldValue[i] = newItem;
}
}
} else {
if (oldValue !== internalObject) {
// we are transitioning from something which was not an object into object.
oldValue = internalObject = {};
oldLength = 0;
changeDetected++;
}
// copy the items to oldValue and look for changes.
newLength = 0;
for (key in newValue) {
if (hasOwnProperty.call(newValue, key)) {
newLength++;
newItem = newValue[key];
oldItem = oldValue[key];
if (key in oldValue) {
// eslint-disable-next-line no-self-compare
bothNaN = oldItem !== oldItem && newItem !== newItem;
if (!bothNaN && oldItem !== newItem) {
changeDetected++;
oldValue[key] = newItem;
}
} else {
oldLength++;
oldValue[key] = newItem;
changeDetected++;
}
}
}
if (oldLength > newLength) {
// we used to have more keys, need to find them and destroy them.
changeDetected++;
for (key in oldValue) {
if (!hasOwnProperty.call(newValue, key)) {
oldLength--;
delete oldValue[key];
}
}
}
}
return changeDetected;
}
function $watchCollectionAction() {
if (initRun) {
initRun = false;
listener(newValue, newValue, self);
} else {
listener(newValue, veryOldValue, self);
}
// make a copy for the next time a collection is changed
if (trackVeryOldValue) {
if (!isObject(newValue)) {
//primitive
veryOldValue = newValue;
} else if (isArrayLike(newValue)) {
veryOldValue = new Array(newValue.length);
for (var i = 0; i < newValue.length; i++) {
veryOldValue[i] = newValue[i];
}
} else {
// if object
veryOldValue = {};
for (var key in newValue) {
if (hasOwnProperty.call(newValue, key)) {
veryOldValue[key] = newValue[key];
}
}
}
}
}
return this.$watch(changeDetector, $watchCollectionAction);
},
/**
* @ngdoc method
* @name $rootScope.Scope#$digest
* @kind function
*
* @description
* Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and
* its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change
* the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}
* until no more listeners are firing. This means that it is possible to get into an infinite
* loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of
* iterations exceeds 10.
*
* Usually, you don't call `$digest()` directly in
* {@link ng.directive:ngController controllers} or in
* {@link ng.$compileProvider#directive directives}.
* Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within
* a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.
*
* If you want to be notified whenever `$digest()` is called,
* you can register a `watchExpression` function with
* {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.
*
* In unit tests, you may need to call `$digest()` to simulate the scope life cycle.
*
* @example
* ```js
var scope = ...;
scope.name = 'misko';
scope.counter = 0;
expect(scope.counter).toEqual(0);
scope.$watch('name', function(newValue, oldValue) {
scope.counter = scope.counter + 1;
});
expect(scope.counter).toEqual(0);
scope.$digest();
// the listener is always called during the first $digest loop after it was registered
expect(scope.counter).toEqual(1);
scope.$digest();
// but now it will not be called unless the value changes
expect(scope.counter).toEqual(1);
scope.name = 'adam';
scope.$digest();
expect(scope.counter).toEqual(2);
* ```
*
*/
$digest: function $digest() {
var watch,
value,
last,
fn,
get,
watchers,
dirty,
ttl = TTL,
next,
current,
target = this,
watchLog = [],
logIdx,
asyncTask;
beginPhase('$digest');
// Check for changes to browser url that happened in sync before the call to $digest
$browser.$$checkUrlChange();
if (this === $rootScope && applyAsyncId !== null) {
// If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then
// cancel the scheduled $apply and flush the queue of expressions to be evaluated.
$browser.defer.cancel(applyAsyncId);
flushApplyAsync();
}
lastDirtyWatch = null;
do {
// "while dirty" loop
dirty = false;
current = target;
// It's safe for asyncQueuePosition to be a local variable here because this loop can't
// be reentered recursively. Calling $digest from a function passed to $evalAsync would
// lead to a '$digest already in progress' error.
for (var asyncQueuePosition = 0; asyncQueuePosition < asyncQueue.length; asyncQueuePosition++) {
try {
asyncTask = asyncQueue[asyncQueuePosition];
fn = asyncTask.fn;
fn(asyncTask.scope, asyncTask.locals);
} catch (e) {
$exceptionHandler(e);
}
lastDirtyWatch = null;
}
asyncQueue.length = 0;
traverseScopesLoop: do {
// "traverse the scopes" loop
if (watchers = current.$$watchers) {
// process our watches
watchers.$$digestWatchIndex = watchers.length;
while (watchers.$$digestWatchIndex--) {
try {
watch = watchers[watchers.$$digestWatchIndex];
// Most common watches are on primitives, in which case we can short
// circuit it with === operator, only when === fails do we use .equals
if (watch) {
get = watch.get;
if ((value = get(current)) !== (last = watch.last) && !(watch.eq ? equals(value, last) : isNumberNaN(value) && isNumberNaN(last))) {
dirty = true;
lastDirtyWatch = watch;
watch.last = watch.eq ? copy(value, null) : value;
fn = watch.fn;
fn(value, last === initWatchVal ? value : last, current);
if (ttl < 5) {
logIdx = 4 - ttl;
if (!watchLog[logIdx]) watchLog[logIdx] = [];
watchLog[logIdx].push({
msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,
newVal: value,
oldVal: last
});
}
} else if (watch === lastDirtyWatch) {
// If the most recently dirty watcher is now clean, short circuit since the remaining watchers
// have already been tested.
dirty = false;
break traverseScopesLoop;
}
}
} catch (e) {
$exceptionHandler(e);
}
}
}
// Insanity Warning: scope depth-first traversal
// yes, this code is a bit crazy, but it works and we have tests to prove it!
// this piece should be kept in sync with the traversal in $broadcast
if (!(next = current.$$watchersCount && current.$$childHead || current !== target && current.$$nextSibling)) {
while (current !== target && !(next = current.$$nextSibling)) {
current = current.$parent;
}
}
} while (current = next);
// `break traverseScopesLoop;` takes us to here
if ((dirty || asyncQueue.length) && !ttl--) {
clearPhase();
throw $rootScopeMinErr('infdig', '{0} $digest() iterations reached. Aborting!\n' + 'Watchers fired in the last 5 iterations: {1}', TTL, watchLog);
}
} while (dirty || asyncQueue.length);
clearPhase();
// postDigestQueuePosition isn't local here because this loop can be reentered recursively.
while (postDigestQueuePosition < postDigestQueue.length) {
try {
postDigestQueue[postDigestQueuePosition++]();
} catch (e) {
$exceptionHandler(e);
}
}
postDigestQueue.length = postDigestQueuePosition = 0;
// Check for changes to browser url that happened during the $digest
// (for which no event is fired; e.g. via `history.pushState()`)
$browser.$$checkUrlChange();
},
/**
* @ngdoc event
* @name $rootScope.Scope#$destroy
* @eventType broadcast on scope being destroyed
*
* @description
* Broadcasted when a scope and its children are being destroyed.
*
* Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
* clean up DOM bindings before an element is removed from the DOM.
*/
/**
* @ngdoc method
* @name $rootScope.Scope#$destroy
* @kind function
*
* @description
* Removes the current scope (and all of its children) from the parent scope. Removal implies
* that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer
* propagate to the current scope and its children. Removal also implies that the current
* scope is eligible for garbage collection.
*
* The `$destroy()` is usually used by directives such as
* {@link ng.directive:ngRepeat ngRepeat} for managing the
* unrolling of the loop.
*
* Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.
* Application code can register a `$destroy` event handler that will give it a chance to
* perform any necessary cleanup.
*
* Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
* clean up DOM bindings before an element is removed from the DOM.
*/
$destroy: function $destroy() {
// We can't destroy a scope that has been already destroyed.
if (this.$$destroyed) return;
var parent = this.$parent;
this.$broadcast('$destroy');
this.$$destroyed = true;
if (this === $rootScope) {
//Remove handlers attached to window when $rootScope is removed
$browser.$$applicationDestroyed();
}
incrementWatchersCount(this, -this.$$watchersCount);
for (var eventName in this.$$listenerCount) {
decrementListenerCount(this, this.$$listenerCount[eventName], eventName);
}
// sever all the references to parent scopes (after this cleanup, the current scope should
// not be retained by any of our references and should be eligible for garbage collection)
if (parent && parent.$$childHead === this) parent.$$childHead = this.$$nextSibling;
if (parent && parent.$$childTail === this) parent.$$childTail = this.$$prevSibling;
if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;
if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;
// Disable listeners, watchers and apply/digest methods
this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;
this.$on = this.$watch = this.$watchGroup = function () {
return noop;
};
this.$$listeners = {};
// Disconnect the next sibling to prevent `cleanUpScope` destroying those too
this.$$nextSibling = null;
cleanUpScope(this);
},
/**
* @ngdoc method
* @name $rootScope.Scope#$eval
* @kind function
*
* @description
* Executes the `expression` on the current scope and returns the result. Any exceptions in
* the expression are propagated (uncaught). This is useful when evaluating Angular
* expressions.
*
* @example
* ```js
var scope = ng.$rootScope.Scope();
scope.a = 1;
scope.b = 2;
expect(scope.$eval('a+b')).toEqual(3);
expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);
* ```
*
* @param {(string|function())=} expression An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with the current `scope` parameter.
*
* @param {(object)=} locals Local variables object, useful for overriding values in scope.
* @returns {*} The result of evaluating the expression.
*/
$eval: function $eval(expr, locals) {
return $parse(expr)(this, locals);
},
/**
* @ngdoc method
* @name $rootScope.Scope#$evalAsync
* @kind function
*
* @description
* Executes the expression on the current scope at a later point in time.
*
* The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only
* that:
*
* - it will execute after the function that scheduled the evaluation (preferably before DOM
* rendering).
* - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after
* `expression` execution.
*
* Any exceptions from the execution of the expression are forwarded to the
* {@link ng.$exceptionHandler $exceptionHandler} service.
*
* __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle
* will be scheduled. However, it is encouraged to always call code that changes the model
* from within an `$apply` call. That includes code evaluated via `$evalAsync`.
*
* @param {(string|function())=} expression An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with the current `scope` parameter.
*
* @param {(object)=} locals Local variables object, useful for overriding values in scope.
*/
$evalAsync: function $evalAsync(expr, locals) {
// if we are outside of an $digest loop and this is the first time we are scheduling async
// task also schedule async auto-flush
if (!$rootScope.$$phase && !asyncQueue.length) {
$browser.defer(function () {
if (asyncQueue.length) {
$rootScope.$digest();
}
});
}
asyncQueue.push({ scope: this, fn: $parse(expr), locals: locals });
},
$$postDigest: function $$postDigest(fn) {
postDigestQueue.push(fn);
},
/**
* @ngdoc method
* @name $rootScope.Scope#$apply
* @kind function
*
* @description
* `$apply()` is used to execute an expression in angular from outside of the angular
* framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).
* Because we are calling into the angular framework we need to perform proper scope life
* cycle of {@link ng.$exceptionHandler exception handling},
* {@link ng.$rootScope.Scope#$digest executing watches}.
*
* **Life cycle: Pseudo-Code of `$apply()`**
*
* ```js
function $apply(expr) {
try {
return $eval(expr);
} catch (e) {
$exceptionHandler(e);
} finally {
$root.$digest();
}
}
* ```
*
*
* Scope's `$apply()` method transitions through the following stages:
*
* 1. The {@link guide/expression expression} is executed using the
* {@link ng.$rootScope.Scope#$eval $eval()} method.
* 2. Any exceptions from the execution of the expression are forwarded to the
* {@link ng.$exceptionHandler $exceptionHandler} service.
* 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the
* expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.
*
*
* @param {(string|function())=} exp An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with current `scope` parameter.
*
* @returns {*} The result of evaluating the expression.
*/
$apply: function $apply(expr) {
try {
beginPhase('$apply');
try {
return this.$eval(expr);
} finally {
clearPhase();
}
} catch (e) {
$exceptionHandler(e);
} finally {
try {
$rootScope.$digest();
} catch (e) {
$exceptionHandler(e);
// eslint-disable-next-line no-unsafe-finally
throw e;
}
}
},
/**
* @ngdoc method
* @name $rootScope.Scope#$applyAsync
* @kind function
*
* @description
* Schedule the invocation of $apply to occur at a later time. The actual time difference
* varies across browsers, but is typically around ~10 milliseconds.
*
* This can be used to queue up multiple expressions which need to be evaluated in the same
* digest.
*
* @param {(string|function())=} exp An angular expression to be executed.
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with current `scope` parameter.
*/
$applyAsync: function $applyAsync(expr) {
var scope = this;
if (expr) {
applyAsyncQueue.push($applyAsyncExpression);
}
expr = $parse(expr);
scheduleApplyAsync();
function $applyAsyncExpression() {
scope.$eval(expr);
}
},
/**
* @ngdoc method
* @name $rootScope.Scope#$on
* @kind function
*
* @description
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for
* discussion of event life cycle.
*
* The event listener function format is: `function(event, args...)`. The `event` object
* passed into the listener has the following attributes:
*
* - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or
* `$broadcast`-ed.
* - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the
* event propagates through the scope hierarchy, this property is set to null.
* - `name` - `{string}`: name of the event.
* - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel
* further event propagation (available only for events that were `$emit`-ed).
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag
* to true.
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
*
* @param {string} name Event name to listen on.
* @param {function(event, ...args)} listener Function to call when the event is emitted.
* @returns {function()} Returns a deregistration function for this listener.
*/
$on: function $on(name, listener) {
var namedListeners = this.$$listeners[name];
if (!namedListeners) {
this.$$listeners[name] = namedListeners = [];
}
namedListeners.push(listener);
var current = this;
do {
if (!current.$$listenerCount[name]) {
current.$$listenerCount[name] = 0;
}
current.$$listenerCount[name]++;
} while (current = current.$parent);
var self = this;
return function () {
var indexOfListener = namedListeners.indexOf(listener);
if (indexOfListener !== -1) {
// Use delete in the hope of the browser deallocating the memory for the array entry,
// while not shifting the array indexes of other listeners.
// See issue https://github.com/angular/angular.js/issues/16135
delete namedListeners[indexOfListener];
decrementListenerCount(self, 1, name);
}
};
},
/**
* @ngdoc method
* @name $rootScope.Scope#$emit
* @kind function
*
* @description
* Dispatches an event `name` upwards through the scope hierarchy notifying the
* registered {@link ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$emit` was called. All
* {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
* notified. Afterwards, the event traverses upwards toward the root scope and calls all
* registered listeners along the way. The event will stop propagating if one of the listeners
* cancels it.
*
* Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
* @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).
*/
$emit: function $emit(name, args) {
var empty = [],
namedListeners,
scope = this,
_stopPropagation = false,
event = {
name: name,
targetScope: scope,
stopPropagation: function stopPropagation() {
_stopPropagation = true;
},
preventDefault: function preventDefault() {
event.defaultPrevented = true;
},
defaultPrevented: false
},
listenerArgs = concat([event], arguments, 1),
i,
length;
do {
namedListeners = scope.$$listeners[name] || empty;
event.currentScope = scope;
for (i = 0, length = namedListeners.length; i < length; i++) {
// if listeners were deregistered, defragment the array
if (!namedListeners[i]) {
namedListeners.splice(i, 1);
i--;
length--;
continue;
}
try {
//allow all listeners attached to the current scope to run
namedListeners[i].apply(null, listenerArgs);
} catch (e) {
$exceptionHandler(e);
}
}
//if any listener on the current scope stops propagation, prevent bubbling
if (_stopPropagation) {
break;
}
//traverse upwards
scope = scope.$parent;
} while (scope);
event.currentScope = null;
return event;
},
/**
* @ngdoc method
* @name $rootScope.Scope#$broadcast
* @kind function
*
* @description
* Dispatches an event `name` downwards to all child scopes (and their children) notifying the
* registered {@link ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$broadcast` was called. All
* {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
* notified. Afterwards, the event propagates to all direct and indirect scopes of the current
* scope and calls all registered listeners along the way. The event cannot be canceled.
*
* Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to broadcast.
* @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
* @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
*/
$broadcast: function $broadcast(name, args) {
var target = this,
current = target,
next = target,
event = {
name: name,
targetScope: target,
preventDefault: function preventDefault() {
event.defaultPrevented = true;
},
defaultPrevented: false
};
if (!target.$$listenerCount[name]) return event;
var listenerArgs = concat([event], arguments, 1),
listeners,
i,
length;
//down while you can, then up and next sibling or up and next sibling until back at root
while (current = next) {
event.currentScope = current;
listeners = current.$$listeners[name] || [];
for (i = 0, length = listeners.length; i < length; i++) {
// if listeners were deregistered, defragment the array
if (!listeners[i]) {
listeners.splice(i, 1);
i--;
length--;
continue;
}
try {
listeners[i].apply(null, listenerArgs);
} catch (e) {
$exceptionHandler(e);
}
}
// Insanity Warning: scope depth-first traversal
// yes, this code is a bit crazy, but it works and we have tests to prove it!
// this piece should be kept in sync with the traversal in $digest
// (though it differs due to having the extra check for $$listenerCount)
if (!(next = current.$$listenerCount[name] && current.$$childHead || current !== target && current.$$nextSibling)) {
while (current !== target && !(next = current.$$nextSibling)) {
current = current.$parent;
}
}
}
event.currentScope = null;
return event;
}
};
var $rootScope = new Scope();
//The internal queues. Expose them on the $rootScope for debugging/testing purposes.
var asyncQueue = $rootScope.$$asyncQueue = [];
var postDigestQueue = $rootScope.$$postDigestQueue = [];
var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];
var postDigestQueuePosition = 0;
return $rootScope;
function beginPhase(phase) {
if ($rootScope.$$phase) {
throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);
}
$rootScope.$$phase = phase;
}
function clearPhase() {
$rootScope.$$phase = null;
}
function incrementWatchersCount(current, count) {
do {
current.$$watchersCount += count;
} while (current = current.$parent);
}
function decrementListenerCount(current, count, name) {
do {
current.$$listenerCount[name] -= count;
if (current.$$listenerCount[name] === 0) {
delete current.$$listenerCount[name];
}
} while (current = current.$parent);
}
/**
* function used as an initial value for watchers.
* because it's unique we can easily tell it apart from other values
*/
function initWatchVal() {}
function flushApplyAsync() {
while (applyAsyncQueue.length) {
try {
applyAsyncQueue.shift()();
} catch (e) {
$exceptionHandler(e);
}
}
applyAsyncId = null;
}
function scheduleApplyAsync() {
if (applyAsyncId === null) {
applyAsyncId = $browser.defer(function () {
$rootScope.$apply(flushApplyAsync);
});
}
}
}];
}
/**
* @ngdoc service
* @name $rootElement
*
* @description
* The root element of Angular application. This is either the element where {@link
* ng.directive:ngApp ngApp} was declared or the element passed into
* {@link angular.bootstrap}. The element represents the root element of application. It is also the
* location where the application's {@link auto.$injector $injector} service gets
* published, and can be retrieved using `$rootElement.injector()`.
*/
// the implementation is in angular.bootstrap
/**
* @this
* @description
* Private service to sanitize uris for links and images. Used by $compile and $sanitize.
*/
function $$SanitizeUriProvider() {
var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mailto|tel|file):/,
imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/;
/**
* @description
* Retrieves or overrides the default regular expression that is used for whitelisting of safe
* urls during a[href] sanitization.
*
* The sanitization is a security measure aimed at prevent XSS attacks via html links.
*
* Any url about to be assigned to a[href] via data-binding is first normalized and turned into
* an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
*
* @param {RegExp=} regexp New regexp to whitelist urls with.
* @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
* chaining otherwise.
*/
this.aHrefSanitizationWhitelist = function (regexp) {
if (isDefined(regexp)) {
aHrefSanitizationWhitelist = regexp;
return this;
}
return aHrefSanitizationWhitelist;
};
/**
* @description
* Retrieves or overrides the default regular expression that is used for whitelisting of safe
* urls during img[src] sanitization.
*
* The sanitization is a security measure aimed at prevent XSS attacks via html links.
*
* Any url about to be assigned to img[src] via data-binding is first normalized and turned into
* an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
* regular expression. If a match is found, the original url is written into the dom. Otherwise,
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
*
* @param {RegExp=} regexp New regexp to whitelist urls with.
* @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
* chaining otherwise.
*/
this.imgSrcSanitizationWhitelist = function (regexp) {
if (isDefined(regexp)) {
imgSrcSanitizationWhitelist = regexp;
return this;
}
return imgSrcSanitizationWhitelist;
};
this.$get = function () {
return function sanitizeUri(uri, isImage) {
var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;
var normalizedVal;
normalizedVal = urlResolve(uri && uri.trim()).href;
if (normalizedVal !== '' && !normalizedVal.match(regex)) {
return 'unsafe:' + normalizedVal;
}
return uri;
};
};
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying *
* this file is required. *
* *
* Does the change somehow allow for arbitrary javascript to be executed? *
* Or allows for someone to change the prototype of built-in objects? *
* Or gives undesired access to variables likes document or window? *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* exported $SceProvider, $SceDelegateProvider */
var $sceMinErr = minErr('$sce');
var SCE_CONTEXTS = {
// HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding).
HTML: 'html',
// Style statements or stylesheets. Currently unused in AngularJS.
CSS: 'css',
// An URL used in a context where it does not refer to a resource that loads code. Currently
// unused in AngularJS.
URL: 'url',
// RESOURCE_URL is a subtype of URL used where the referred-to resource could be interpreted as
// code. (e.g. ng-include, script src binding, templateUrl)
RESOURCE_URL: 'resourceUrl',
// Script. Currently unused in AngularJS.
JS: 'js'
};
// Helper functions follow.
var UNDERSCORE_LOWERCASE_REGEXP = /_([a-z])/g;
function snakeToCamel(name) {
return name.replace(UNDERSCORE_LOWERCASE_REGEXP, fnCamelCaseReplace);
}
function adjustMatcher(matcher) {
if (matcher === 'self') {
return matcher;
} else if (isString(matcher)) {
// Strings match exactly except for 2 wildcards - '*' and '**'.
// '*' matches any character except those from the set ':/.?&'.
// '**' matches any character (like .* in a RegExp).
// More than 2 *'s raises an error as it's ill defined.
if (matcher.indexOf('***') > -1) {
throw $sceMinErr('iwcard', 'Illegal sequence *** in string matcher. String: {0}', matcher);
}
matcher = escapeForRegexp(matcher).replace(/\\\*\\\*/g, '.*').replace(/\\\*/g, '[^:/.?&;]*');
return new RegExp('^' + matcher + '$');
} else if (isRegExp(matcher)) {
// The only other type of matcher allowed is a Regexp.
// Match entire URL / disallow partial matches.
// Flags are reset (i.e. no global, ignoreCase or multiline)
return new RegExp('^' + matcher.source + '$');
} else {
throw $sceMinErr('imatcher', 'Matchers may only be "self", string patterns or RegExp objects');
}
}
function adjustMatchers(matchers) {
var adjustedMatchers = [];
if (isDefined(matchers)) {
forEach(matchers, function (matcher) {
adjustedMatchers.push(adjustMatcher(matcher));
});
}
return adjustedMatchers;
}
/**
* @ngdoc service
* @name $sceDelegate
* @kind function
*
* @description
*
* `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict
* Contextual Escaping (SCE)} services to AngularJS.
*
* For an overview of this service and the functionnality it provides in AngularJS, see the main
* page for {@link ng.$sce SCE}. The current page is targeted for developers who need to alter how
* SCE works in their application, which shouldn't be needed in most cases.
*
* <div class="alert alert-danger">
* AngularJS strongly relies on contextual escaping for the security of bindings: disabling or
* modifying this might cause cross site scripting (XSS) vulnerabilities. For libraries owners,
* changes to this service will also influence users, so be extra careful and document your changes.
* </div>
*
* Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of
* the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS. This is
* because, while the `$sce` provides numerous shorthand methods, etc., you really only need to
* override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things
* work because `$sce` delegates to `$sceDelegate` for these operations.
*
* Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.
*
* The default instance of `$sceDelegate` should work out of the box with little pain. While you
* can override it completely to change the behavior of `$sce`, the common case would
* involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting
* your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as
* templates. Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist
* $sceDelegateProvider.resourceUrlWhitelist} and {@link
* ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}
*/
/**
* @ngdoc provider
* @name $sceDelegateProvider
* @this
*
* @description
*
* The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate
* $sceDelegate service}, used as a delegate for {@link ng.$sce Strict Contextual Escaping (SCE)}.
*
* The `$sceDelegateProvider` allows one to get/set the whitelists and blacklists used to ensure
* that the URLs used for sourcing AngularJS templates and other script-running URLs are safe (all
* places that use the `$sce.RESOURCE_URL` context). See
* {@link ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist}
* and
* {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist},
*
* For the general details about this service in Angular, read the main page for {@link ng.$sce
* Strict Contextual Escaping (SCE)}.
*
* **Example**: Consider the following case. <a name="example"></a>
*
* - your app is hosted at url `http://myapp.example.com/`
* - but some of your templates are hosted on other domains you control such as
* `http://srv01.assets.example.com/`, `http://srv02.assets.example.com/`, etc.
* - and you have an open redirect at `http://myapp.example.com/clickThru?...`.
*
* Here is what a secure configuration for this scenario might look like:
*
* ```
* angular.module('myApp', []).config(function($sceDelegateProvider) {
* $sceDelegateProvider.resourceUrlWhitelist([
* // Allow same origin resource loads.
* 'self',
* // Allow loading from our assets domain. Notice the difference between * and **.
* 'http://srv*.assets.example.com/**'
* ]);
*
* // The blacklist overrides the whitelist so the open redirect here is blocked.
* $sceDelegateProvider.resourceUrlBlacklist([
* 'http://myapp.example.com/clickThru**'
* ]);
* });
* ```
* Note that an empty whitelist will block every resource URL from being loaded, and will require
* you to manually mark each one as trusted with `$sce.trustAsResourceUrl`. However, templates
* requested by {@link ng.$templateRequest $templateRequest} that are present in
* {@link ng.$templateCache $templateCache} will not go through this check. If you have a mechanism
* to populate your templates in that cache at config time, then it is a good idea to remove 'self'
* from that whitelist. This helps to mitigate the security impact of certain types of issues, like
* for instance attacker-controlled `ng-includes`.
*/
function $SceDelegateProvider() {
this.SCE_CONTEXTS = SCE_CONTEXTS;
// Resource URLs can also be trusted by policy.
var resourceUrlWhitelist = ['self'],
resourceUrlBlacklist = [];
/**
* @ngdoc method
* @name $sceDelegateProvider#resourceUrlWhitelist
* @kind function
*
* @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value
* provided. This must be an array or null. A snapshot of this array is used so further
* changes to the array are ignored.
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
* allowed in this array.
*
* @return {Array} The currently set whitelist array.
*
* @description
* Sets/Gets the whitelist of trusted resource URLs.
*
* The **default value** when no whitelist has been explicitly set is `['self']` allowing only
* same origin resource requests.
*
* <div class="alert alert-warning">
* **Note:** the default whitelist of 'self' is not recommended if your app shares its origin
* with other apps! It is a good idea to limit it to only your application's directory.
* </div>
*/
this.resourceUrlWhitelist = function (value) {
if (arguments.length) {
resourceUrlWhitelist = adjustMatchers(value);
}
return resourceUrlWhitelist;
};
/**
* @ngdoc method
* @name $sceDelegateProvider#resourceUrlBlacklist
* @kind function
*
* @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value
* provided. This must be an array or null. A snapshot of this array is used so further
* changes to the array are ignored.</p><p>
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
* allowed in this array.</p><p>
* The typical usage for the blacklist is to **block
* [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
* these would otherwise be trusted but actually return content from the redirected domain.
* </p><p>
* Finally, **the blacklist overrides the whitelist** and has the final say.
*
* @return {Array} The currently set blacklist array.
*
* @description
* Sets/Gets the blacklist of trusted resource URLs.
*
* The **default value** when no whitelist has been explicitly set is the empty array (i.e. there
* is no blacklist.)
*/
this.resourceUrlBlacklist = function (value) {
if (arguments.length) {
resourceUrlBlacklist = adjustMatchers(value);
}
return resourceUrlBlacklist;
};
this.$get = ['$injector', function ($injector) {
var htmlSanitizer = function htmlSanitizer(html) {
throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
};
if ($injector.has('$sanitize')) {
htmlSanitizer = $injector.get('$sanitize');
}
function matchUrl(matcher, parsedUrl) {
if (matcher === 'self') {
return urlIsSameOrigin(parsedUrl);
} else {
// definitely a regex. See adjustMatchers()
return !!matcher.exec(parsedUrl.href);
}
}
function isResourceUrlAllowedByPolicy(url) {
var parsedUrl = urlResolve(url.toString());
var i,
n,
allowed = false;
// Ensure that at least one item from the whitelist allows this url.
for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {
if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {
allowed = true;
break;
}
}
if (allowed) {
// Ensure that no item from the blacklist blocked this url.
for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {
if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {
allowed = false;
break;
}
}
}
return allowed;
}
function generateHolderType(Base) {
var holderType = function TrustedValueHolderType(trustedValue) {
this.$$unwrapTrustedValue = function () {
return trustedValue;
};
};
if (Base) {
holderType.prototype = new Base();
}
holderType.prototype.valueOf = function sceValueOf() {
return this.$$unwrapTrustedValue();
};
holderType.prototype.toString = function sceToString() {
return this.$$unwrapTrustedValue().toString();
};
return holderType;
}
var trustedValueHolderBase = generateHolderType(),
byType = {};
byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);
byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);
byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);
byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);
byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);
/**
* @ngdoc method
* @name $sceDelegate#trustAs
*
* @description
* Returns a trusted representation of the parameter for the specified context. This trusted
* object will later on be used as-is, without any security check, by bindings or directives
* that require this security context.
* For instance, marking a string as trusted for the `$sce.HTML` context will entirely bypass
* the potential `$sanitize` call in corresponding `$sce.HTML` bindings or directives, such as
* `ng-bind-html`. Note that in most cases you won't need to call this function: if you have the
* sanitizer loaded, passing the value itself will render all the HTML that does not pose a
* security risk.
*
* See {@link ng.$sceDelegate#getTrusted getTrusted} for the function that will consume those
* trusted values, and {@link ng.$sce $sce} for general documentation about strict contextual
* escaping.
*
* @param {string} type The context in which this value is safe for use, e.g. `$sce.URL`,
* `$sce.RESOURCE_URL`, `$sce.HTML`, `$sce.JS` or `$sce.CSS`.
*
* @param {*} value The value that should be considered trusted.
* @return {*} A trusted representation of value, that can be used in the given context.
*/
function trustAs(type, trustedValue) {
var Constructor = byType.hasOwnProperty(type) ? byType[type] : null;
if (!Constructor) {
throw $sceMinErr('icontext', 'Attempted to trust a value in invalid context. Context: {0}; Value: {1}', type, trustedValue);
}
if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {
return trustedValue;
}
// All the current contexts in SCE_CONTEXTS happen to be strings. In order to avoid trusting
// mutable objects, we ensure here that the value passed in is actually a string.
if (typeof trustedValue !== 'string') {
throw $sceMinErr('itype', 'Attempted to trust a non-string value in a content requiring a string: Context: {0}', type);
}
return new Constructor(trustedValue);
}
/**
* @ngdoc method
* @name $sceDelegate#valueOf
*
* @description
* If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs
* `$sceDelegate.trustAs`}, returns the value that had been passed to {@link
* ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.
*
* If the passed parameter is not a value that had been returned by {@link
* ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, it must be returned as-is.
*
* @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}
* call or anything else.
* @return {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs
* `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns
* `value` unchanged.
*/
function valueOf(maybeTrusted) {
if (maybeTrusted instanceof trustedValueHolderBase) {
return maybeTrusted.$$unwrapTrustedValue();
} else {
return maybeTrusted;
}
}
/**
* @ngdoc method
* @name $sceDelegate#getTrusted
*
* @description
* Takes any input, and either returns a value that's safe to use in the specified context, or
* throws an exception.
*
* In practice, there are several cases. When given a string, this function runs checks
* and sanitization to make it safe without prior assumptions. When given the result of a {@link
* ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call, it returns the originally supplied
* value if that value's context is valid for this call's context. Finally, this function can
* also throw when there is no way to turn `maybeTrusted` in a safe value (e.g., no sanitization
* is available or possible.)
*
* @param {string} type The context in which this value is to be used (such as `$sce.HTML`).
* @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs
* `$sceDelegate.trustAs`} call, or anything else (which will not be considered trusted.)
* @return {*} A version of the value that's safe to use in the given context, or throws an
* exception if this is impossible.
*/
function getTrusted(type, maybeTrusted) {
if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {
return maybeTrusted;
}
var constructor = byType.hasOwnProperty(type) ? byType[type] : null;
// If maybeTrusted is a trusted class instance or subclass instance, then unwrap and return
// as-is.
if (constructor && maybeTrusted instanceof constructor) {
return maybeTrusted.$$unwrapTrustedValue();
}
// Otherwise, if we get here, then we may either make it safe, or throw an exception. This
// depends on the context: some are sanitizatible (HTML), some use whitelists (RESOURCE_URL),
// some are impossible to do (JS). This step isn't implemented for CSS and URL, as AngularJS
// has no corresponding sinks.
if (type === SCE_CONTEXTS.RESOURCE_URL) {
// RESOURCE_URL uses a whitelist.
if (isResourceUrlAllowedByPolicy(maybeTrusted)) {
return maybeTrusted;
} else {
throw $sceMinErr('insecurl', 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', maybeTrusted.toString());
}
} else if (type === SCE_CONTEXTS.HTML) {
// htmlSanitizer throws its own error when no sanitizer is available.
return htmlSanitizer(maybeTrusted);
}
// Default error when the $sce service has no way to make the input safe.
throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
}
return { trustAs: trustAs,
getTrusted: getTrusted,
valueOf: valueOf };
}];
}
/**
* @ngdoc provider
* @name $sceProvider
* @this
*
* @description
*
* The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.
* - enable/disable Strict Contextual Escaping (SCE) in a module
* - override the default implementation with a custom delegate
*
* Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.
*/
/**
* @ngdoc service
* @name $sce
* @kind function
*
* @description
*
* `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.
*
* ## Strict Contextual Escaping
*
* Strict Contextual Escaping (SCE) is a mode in which AngularJS constrains bindings to only render
* trusted values. Its goal is to assist in writing code in a way that (a) is secure by default, and
* (b) makes auditing for security vulnerabilities such as XSS, clickjacking, etc. a lot easier.
*
* ### Overview
*
* To systematically block XSS security bugs, AngularJS treats all values as untrusted by default in
* HTML or sensitive URL bindings. When binding untrusted values, AngularJS will automatically
* run security checks on them (sanitizations, whitelists, depending on context), or throw when it
* cannot guarantee the security of the result. That behavior depends strongly on contexts: HTML
* can be sanitized, but template URLs cannot, for instance.
*
* To illustrate this, consider the `ng-bind-html` directive. It renders its value directly as HTML:
* we call that the *context*. When given an untrusted input, AngularJS will attempt to sanitize it
* before rendering if a sanitizer is available, and throw otherwise. To bypass sanitization and
* render the input as-is, you will need to mark it as trusted for that context before attempting
* to bind it.
*
* As of version 1.2, AngularJS ships with SCE enabled by default.
*
* ### In practice
*
* Here's an example of a binding in a privileged context:
*
* ```
* <input ng-model="userHtml" aria-label="User input">
* <div ng-bind-html="userHtml"></div>
* ```
*
* Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
* disabled, this application allows the user to render arbitrary HTML into the DIV, which would
* be an XSS security bug. In a more realistic example, one may be rendering user comments, blog
* articles, etc. via bindings. (HTML is just one example of a context where rendering user
* controlled input creates security vulnerabilities.)
*
* For the case of HTML, you might use a library, either on the client side, or on the server side,
* to sanitize unsafe HTML before binding to the value and rendering it in the document.
*
* How would you ensure that every place that used these types of bindings was bound to a value that
* was sanitized by your library (or returned as safe for rendering by your server?) How can you
* ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
* properties/fields and forgot to update the binding to the sanitized value?
*
* To be secure by default, AngularJS makes sure bindings go through that sanitization, or
* any similar validation process, unless there's a good reason to trust the given value in this
* context. That trust is formalized with a function call. This means that as a developer, you
* can assume all untrusted bindings are safe. Then, to audit your code for binding security issues,
* you just need to ensure the values you mark as trusted indeed are safe - because they were
* received from your server, sanitized by your library, etc. You can organize your codebase to
* help with this - perhaps allowing only the files in a specific directory to do this.
* Ensuring that the internal API exposed by that code doesn't markup arbitrary values as safe then
* becomes a more manageable task.
*
* In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}
* (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to
* build the trusted versions of your values.
*
* ### How does it work?
*
* In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted
* $sce.getTrusted(context, value)} rather than to the value directly. Think of this function as
* a way to enforce the required security context in your data sink. Directives use {@link
* ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs
* the {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals. Also,
* when binding without directives, AngularJS will understand the context of your bindings
* automatically.
*
* As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link
* ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly
* simplified):
*
* ```
* var ngBindHtmlDirective = ['$sce', function($sce) {
* return function(scope, element, attr) {
* scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {
* element.html(value || '');
* });
* };
* }];
* ```
*
* ### Impact on loading templates
*
* This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as
* `templateUrl`'s specified by {@link guide/directive directives}.
*
* By default, Angular only loads templates from the same domain and protocol as the application
* document. This is done by calling {@link ng.$sce#getTrustedResourceUrl
* $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or
* protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist
* them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.
*
* *Please note*:
* The browser's
* [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
* and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
* policy apply in addition to this and may further restrict whether the template is successfully
* loaded. This means that without the right CORS policy, loading templates from a different domain
* won't work on all browsers. Also, loading templates from `file://` URL does not work on some
* browsers.
*
* ### This feels like too much overhead
*
* It's important to remember that SCE only applies to interpolation expressions.
*
* If your expressions are constant literals, they're automatically trusted and you don't need to
* call `$sce.trustAs` on them (e.g.
* `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works. The `$sceDelegate` will
* also use the `$sanitize` service if it is available when binding untrusted values to
* `$sce.HTML` context. AngularJS provides an implementation in `angular-sanitize.js`, and if you
* wish to use it, you will also need to depend on the {@link ngSanitize `ngSanitize`} module in
* your application.
*
* The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load
* templates in `ng-include` from your application's domain without having to even know about SCE.
* It blocks loading templates from other domains or loading templates over http from an https
* served document. You can change these by setting your own custom {@link
* ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link
* ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.
*
* This significantly reduces the overhead. It is far easier to pay the small overhead and have an
* application that's secure and can be audited to verify that with much more ease than bolting
* security onto an application later.
*
* <a name="contexts"></a>
* ### What trusted context types are supported?
*
* | Context | Notes |
* |---------------------|----------------|
* | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered, and the {@link ngSanitize.$sanitize $sanitize} service is available (implemented by the {@link ngSanitize ngSanitize} module) this will sanitize the value instead of throwing an error. |
* | `$sce.CSS` | For CSS that's safe to source into the application. Currently, no bindings require this context. Feel free to use it in your own directives. |
* | `$sce.URL` | For URLs that are safe to follow as links. Currently unused (`<a href=`, `<img src=`, and some others sanitize their urls and don't constitute an SCE context.) |
* | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application. Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG`, `VIDEO`, `AUDIO`, `SOURCE`, and `TRACK` (e.g. `IFRAME`, `OBJECT`, etc.) <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does (it's not just the URL that matters, but also what is at the end of it), and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |
* | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently, no bindings require this context. Feel free to use it in your own directives. |
*
*
* Be aware that `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them
* through {@link ng.$sce#getTrusted $sce.getTrusted}. There's no CSS-, URL-, or JS-context bindings
* in AngularJS currently, so their corresponding `$sce.trustAs` functions aren't useful yet. This
* might evolve.
*
* ### Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name="resourceUrlPatternItem"></a>
*
* Each element in these arrays must be one of the following:
*
* - **'self'**
* - The special **string**, `'self'`, can be used to match against all URLs of the **same
* domain** as the application document using the **same protocol**.
* - **String** (except the special value `'self'`)
* - The string is matched against the full *normalized / absolute URL* of the resource
* being tested (substring matches are not good enough.)
* - There are exactly **two wildcard sequences** - `*` and `**`. All other characters
* match themselves.
* - `*`: matches zero or more occurrences of any character other than one of the following 6
* characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use
* in a whitelist.
* - `**`: matches zero or more occurrences of *any* character. As such, it's not
* appropriate for use in a scheme, domain, etc. as it would match too much. (e.g.
* http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
* not have been the intention.) Its usage at the very end of the path is ok. (e.g.
* http://foo.example.com/templates/**).
* - **RegExp** (*see caveat below*)
* - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax
* (and all the inevitable escaping) makes them *harder to maintain*. It's easy to
* accidentally introduce a bug when one updates a complex expression (imho, all regexes should
* have good test coverage). For instance, the use of `.` in the regex is correct only in a
* small number of cases. A `.` character in the regex used when matching the scheme or a
* subdomain could be matched against a `:` or literal `.` that was likely not intended. It
* is highly recommended to use the string patterns and only fall back to regular expressions
* as a last resort.
* - The regular expression must be an instance of RegExp (i.e. not a string.) It is
* matched against the **entire** *normalized / absolute URL* of the resource being tested
* (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags
* present on the RegExp (such as multiline, global, ignoreCase) are ignored.
* - If you are generating your JavaScript from some other templating engine (not
* recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
* remember to escape your regular expression (and be aware that you might need more than
* one level of escaping depending on your templating engine and the way you interpolated
* the value.) Do make use of your platform's escaping mechanism as it might be good
* enough before coding your own. E.g. Ruby has
* [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)
* and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).
* Javascript lacks a similar built in function for escaping. Take a look at Google
* Closure library's [goog.string.regExpEscape(s)](
* http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).
*
* Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.
*
* ### Show me an example using SCE.
*
* <example module="mySceApp" deps="angular-sanitize.js" name="sce-service">
* <file name="index.html">
* <div ng-controller="AppController as myCtrl">
* <i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
* <b>User comments</b><br>
* By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when
* $sanitize is available. If $sanitize isn't available, this results in an error instead of an
* exploit.
* <div class="well">
* <div ng-repeat="userComment in myCtrl.userComments">
* <b>{{userComment.name}}</b>:
* <span ng-bind-html="userComment.htmlComment" class="htmlComment"></span>
* <br>
* </div>
* </div>
* </div>
* </file>
*
* <file name="script.js">
* angular.module('mySceApp', ['ngSanitize'])
* .controller('AppController', ['$http', '$templateCache', '$sce',
* function AppController($http, $templateCache, $sce) {
* var self = this;
* $http.get('test_data.json', {cache: $templateCache}).then(function(response) {
* self.userComments = response.data;
* });
* self.explicitlyTrustedHtml = $sce.trustAsHtml(
* '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
* 'sanitization.&quot;">Hover over this text.</span>');
* }]);
* </file>
*
* <file name="test_data.json">
* [
* { "name": "Alice",
* "htmlComment":
* "<span onmouseover='this.textContent=\"PWN3D!\"'>Is <i>anyone</i> reading this?</span>"
* },
* { "name": "Bob",
* "htmlComment": "<i>Yes!</i> Am I the only other one?"
* }
* ]
* </file>
*
* <file name="protractor.js" type="protractor">
* describe('SCE doc demo', function() {
* it('should sanitize untrusted values', function() {
* expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML'))
* .toBe('<span>Is <i>anyone</i> reading this?</span>');
* });
*
* it('should NOT sanitize explicitly trusted values', function() {
* expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe(
* '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
* 'sanitization.&quot;">Hover over this text.</span>');
* });
* });
* </file>
* </example>
*
*
*
* ## Can I disable SCE completely?
*
* Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits
* for little coding overhead. It will be much harder to take an SCE disabled application and
* either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE
* for cases where you have a lot of existing code that was written before SCE was introduced and
* you're migrating them a module at a time. Also do note that this is an app-wide setting, so if
* you are writing a library, you will cause security bugs applications using it.
*
* That said, here's how you can completely disable SCE:
*
* ```
* angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
* // Completely disable SCE. For demonstration purposes only!
* // Do not use in new projects or libraries.
* $sceProvider.enabled(false);
* });
* ```
*
*/
function $SceProvider() {
var enabled = true;
/**
* @ngdoc method
* @name $sceProvider#enabled
* @kind function
*
* @param {boolean=} value If provided, then enables/disables SCE application-wide.
* @return {boolean} True if SCE is enabled, false otherwise.
*
* @description
* Enables/disables SCE and returns the current value.
*/
this.enabled = function (value) {
if (arguments.length) {
enabled = !!value;
}
return enabled;
};
/* Design notes on the default implementation for SCE.
*
* The API contract for the SCE delegate
* -------------------------------------
* The SCE delegate object must provide the following 3 methods:
*
* - trustAs(contextEnum, value)
* This method is used to tell the SCE service that the provided value is OK to use in the
* contexts specified by contextEnum. It must return an object that will be accepted by
* getTrusted() for a compatible contextEnum and return this value.
*
* - valueOf(value)
* For values that were not produced by trustAs(), return them as is. For values that were
* produced by trustAs(), return the corresponding input value to trustAs. Basically, if
* trustAs is wrapping the given values into some type, this operation unwraps it when given
* such a value.
*
* - getTrusted(contextEnum, value)
* This function should return the a value that is safe to use in the context specified by
* contextEnum or throw and exception otherwise.
*
* NOTE: This contract deliberately does NOT state that values returned by trustAs() must be
* opaque or wrapped in some holder object. That happens to be an implementation detail. For
* instance, an implementation could maintain a registry of all trusted objects by context. In
* such a case, trustAs() would return the same object that was passed in. getTrusted() would
* return the same object passed in if it was found in the registry under a compatible context or
* throw an exception otherwise. An implementation might only wrap values some of the time based
* on some criteria. getTrusted() might return a value and not throw an exception for special
* constants or objects even if not wrapped. All such implementations fulfill this contract.
*
*
* A note on the inheritance model for SCE contexts
* ------------------------------------------------
* I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This
* is purely an implementation details.
*
* The contract is simply this:
*
* getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)
* will also succeed.
*
* Inheritance happens to capture this in a natural way. In some future, we may not use
* inheritance anymore. That is OK because no code outside of sce.js and sceSpecs.js would need to
* be aware of this detail.
*/
this.$get = ['$parse', '$sceDelegate', function ($parse, $sceDelegate) {
// Support: IE 9-11 only
// Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow
// the "expression(javascript expression)" syntax which is insecure.
if (enabled && msie < 8) {
throw $sceMinErr('iequirks', 'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' + 'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' + 'document. See http://docs.angularjs.org/api/ng.$sce for more information.');
}
var sce = shallowCopy(SCE_CONTEXTS);
/**
* @ngdoc method
* @name $sce#isEnabled
* @kind function
*
* @return {Boolean} True if SCE is enabled, false otherwise. If you want to set the value, you
* have to do it at module config time on {@link ng.$sceProvider $sceProvider}.
*
* @description
* Returns a boolean indicating if SCE is enabled.
*/
sce.isEnabled = function () {
return enabled;
};
sce.trustAs = $sceDelegate.trustAs;
sce.getTrusted = $sceDelegate.getTrusted;
sce.valueOf = $sceDelegate.valueOf;
if (!enabled) {
sce.trustAs = sce.getTrusted = function (type, value) {
return value;
};
sce.valueOf = identity;
}
/**
* @ngdoc method
* @name $sce#parseAs
*
* @description
* Converts Angular {@link guide/expression expression} into a function. This is like {@link
* ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it
* wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,
* *result*)}
*
* @param {string} type The SCE context in which this result will be used.
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
sce.parseAs = function sceParseAs(type, expr) {
var parsed = $parse(expr);
if (parsed.literal && parsed.constant) {
return parsed;
} else {
return $parse(expr, function (value) {
return sce.getTrusted(type, value);
});
}
};
/**
* @ngdoc method
* @name $sce#trustAs
*
* @description
* Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such, returns a
* wrapped object that represents your value, and the trust you have in its safety for the given
* context. AngularJS can then use that value as-is in bindings of the specified secure context.
* This is used in bindings for `ng-bind-html`, `ng-include`, and most `src` attribute
* interpolations. See {@link ng.$sce $sce} for strict contextual escaping.
*
* @param {string} type The context in which this value is safe for use, e.g. `$sce.URL`,
* `$sce.RESOURCE_URL`, `$sce.HTML`, `$sce.JS` or `$sce.CSS`.
*
* @param {*} value The value that that should be considered trusted.
* @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
* in the context you specified.
*/
/**
* @ngdoc method
* @name $sce#trustAsHtml
*
* @description
* Shorthand method. `$sce.trustAsHtml(value)` →
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}
*
* @param {*} value The value to mark as trusted for `$sce.HTML` context.
* @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
* in `$sce.HTML` context (like `ng-bind-html`).
*/
/**
* @ngdoc method
* @name $sce#trustAsCss
*
* @description
* Shorthand method. `$sce.trustAsCss(value)` →
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.CSS, value)`}
*
* @param {*} value The value to mark as trusted for `$sce.CSS` context.
* @return {*} A wrapped version of value that can be used as a trusted variant
* of your `value` in `$sce.CSS` context. This context is currently unused, so there are
* almost no reasons to use this function so far.
*/
/**
* @ngdoc method
* @name $sce#trustAsUrl
*
* @description
* Shorthand method. `$sce.trustAsUrl(value)` →
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}
*
* @param {*} value The value to mark as trusted for `$sce.URL` context.
* @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
* in `$sce.URL` context. That context is currently unused, so there are almost no reasons
* to use this function so far.
*/
/**
* @ngdoc method
* @name $sce#trustAsResourceUrl
*
* @description
* Shorthand method. `$sce.trustAsResourceUrl(value)` →
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}
*
* @param {*} value The value to mark as trusted for `$sce.RESOURCE_URL` context.
* @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
* in `$sce.RESOURCE_URL` context (template URLs in `ng-include`, most `src` attribute
* bindings, ...)
*/
/**
* @ngdoc method
* @name $sce#trustAsJs
*
* @description
* Shorthand method. `$sce.trustAsJs(value)` →
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}
*
* @param {*} value The value to mark as trusted for `$sce.JS` context.
* @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
* in `$sce.JS` context. That context is currently unused, so there are almost no reasons to
* use this function so far.
*/
/**
* @ngdoc method
* @name $sce#getTrusted
*
* @description
* Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such,
* takes any input, and either returns a value that's safe to use in the specified context,
* or throws an exception. This function is aware of trusted values created by the `trustAs`
* function and its shorthands, and when contexts are appropriate, returns the unwrapped value
* as-is. Finally, this function can also throw when there is no way to turn `maybeTrusted` in a
* safe value (e.g., no sanitization is available or possible.)
*
* @param {string} type The context in which this value is to be used.
* @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs
* `$sce.trustAs`} call, or anything else (which will not be considered trusted.)
* @return {*} A version of the value that's safe to use in the given context, or throws an
* exception if this is impossible.
*/
/**
* @ngdoc method
* @name $sce#getTrustedHtml
*
* @description
* Shorthand method. `$sce.getTrustedHtml(value)` →
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}
*
* @param {*} value The value to pass to `$sce.getTrusted`.
* @return {*} The return value of `$sce.getTrusted($sce.HTML, value)`
*/
/**
* @ngdoc method
* @name $sce#getTrustedCss
*
* @description
* Shorthand method. `$sce.getTrustedCss(value)` →
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}
*
* @param {*} value The value to pass to `$sce.getTrusted`.
* @return {*} The return value of `$sce.getTrusted($sce.CSS, value)`
*/
/**
* @ngdoc method
* @name $sce#getTrustedUrl
*
* @description
* Shorthand method. `$sce.getTrustedUrl(value)` →
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}
*
* @param {*} value The value to pass to `$sce.getTrusted`.
* @return {*} The return value of `$sce.getTrusted($sce.URL, value)`
*/
/**
* @ngdoc method
* @name $sce#getTrustedResourceUrl
*
* @description
* Shorthand method. `$sce.getTrustedResourceUrl(value)` →
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}
*
* @param {*} value The value to pass to `$sceDelegate.getTrusted`.
* @return {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`
*/
/**
* @ngdoc method
* @name $sce#getTrustedJs
*
* @description
* Shorthand method. `$sce.getTrustedJs(value)` →
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}
*
* @param {*} value The value to pass to `$sce.getTrusted`.
* @return {*} The return value of `$sce.getTrusted($sce.JS, value)`
*/
/**
* @ngdoc method
* @name $sce#parseAsHtml
*
* @description
* Shorthand method. `$sce.parseAsHtml(expression string)` →
* {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}
*
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
/**
* @ngdoc method
* @name $sce#parseAsCss
*
* @description
* Shorthand method. `$sce.parseAsCss(value)` →
* {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}
*
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
/**
* @ngdoc method
* @name $sce#parseAsUrl
*
* @description
* Shorthand method. `$sce.parseAsUrl(value)` →
* {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}
*
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
/**
* @ngdoc method
* @name $sce#parseAsResourceUrl
*
* @description
* Shorthand method. `$sce.parseAsResourceUrl(value)` →
* {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}
*
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
/**
* @ngdoc method
* @name $sce#parseAsJs
*
* @description
* Shorthand method. `$sce.parseAsJs(value)` →
* {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}
*
* @param {string} expression String expression to compile.
* @return {function(context, locals)} A function which represents the compiled expression:
*
* * `context` `{object}` an object against which any expressions embedded in the
* strings are evaluated against (typically a scope object).
* * `locals` `{object=}` local variables context object, useful for overriding values
* in `context`.
*/
// Shorthand delegations.
var parse = sce.parseAs,
getTrusted = sce.getTrusted,
trustAs = sce.trustAs;
forEach(SCE_CONTEXTS, function (enumValue, name) {
var lName = lowercase(name);
sce[snakeToCamel('parse_as_' + lName)] = function (expr) {
return parse(enumValue, expr);
};
sce[snakeToCamel('get_trusted_' + lName)] = function (value) {
return getTrusted(enumValue, value);
};
sce[snakeToCamel('trust_as_' + lName)] = function (value) {
return trustAs(enumValue, value);
};
});
return sce;
}];
}
/* exported $SnifferProvider */
/**
* !!! This is an undocumented "private" service !!!
*
* @name $sniffer
* @requires $window
* @requires $document
* @this
*
* @property {boolean} history Does the browser support html5 history api ?
* @property {boolean} transitions Does the browser support CSS transition events ?
* @property {boolean} animations Does the browser support CSS animation events ?
*
* @description
* This is very simple implementation of testing browser's features.
*/
function $SnifferProvider() {
this.$get = ['$window', '$document', function ($window, $document) {
var eventSupport = {},
// Chrome Packaged Apps are not allowed to access `history.pushState`.
// If not sandboxed, they can be detected by the presence of `chrome.app.runtime`
// (see https://developer.chrome.com/apps/api_index). If sandboxed, they can be detected by
// the presence of an extension runtime ID and the absence of other Chrome runtime APIs
// (see https://developer.chrome.com/apps/manifest/sandbox).
// (NW.js apps have access to Chrome APIs, but do support `history`.)
isNw = $window.nw && $window.nw.process,
isChromePackagedApp = !isNw && $window.chrome && ($window.chrome.app && $window.chrome.app.runtime || !$window.chrome.app && $window.chrome.runtime && $window.chrome.runtime.id),
hasHistoryPushState = !isChromePackagedApp && $window.history && $window.history.pushState,
android = toInt((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
boxee = /Boxee/i.test(($window.navigator || {}).userAgent),
document = $document[0] || {},
bodyStyle = document.body && document.body.style,
transitions = false,
animations = false;
if (bodyStyle) {
// Support: Android <5, Blackberry Browser 10, default Chrome in Android 4.4.x
// Mentioned browsers need a -webkit- prefix for transitions & animations.
transitions = !!('transition' in bodyStyle || 'webkitTransition' in bodyStyle);
animations = !!('animation' in bodyStyle || 'webkitAnimation' in bodyStyle);
}
return {
// Android has history.pushState, but it does not update location correctly
// so let's not use the history API at all.
// http://code.google.com/p/android/issues/detail?id=17471
// https://github.com/angular/angular.js/issues/904
// older webkit browser (533.9) on Boxee box has exactly the same problem as Android has
// so let's not use the history API also
// We are purposefully using `!(android < 4)` to cover the case when `android` is undefined
history: !!(hasHistoryPushState && !(android < 4) && !boxee),
hasEvent: function hasEvent(event) {
// Support: IE 9-11 only
// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
// it. In particular the event is not fired when backspace or delete key are pressed or
// when cut operation is performed.
// IE10+ implements 'input' event but it erroneously fires under various situations,
// e.g. when placeholder changes, or a form is focused.
if (event === 'input' && msie) return false;
if (isUndefined(eventSupport[event])) {
var divElm = document.createElement('div');
eventSupport[event] = 'on' + event in divElm;
}
return eventSupport[event];
},
csp: csp(),
transitions: transitions,
animations: animations,
android: android
};
}];
}
var $templateRequestMinErr = minErr('$compile');
/**
* @ngdoc provider
* @name $templateRequestProvider
* @this
*
* @description
* Used to configure the options passed to the {@link $http} service when making a template request.
*
* For example, it can be used for specifying the "Accept" header that is sent to the server, when
* requesting a template.
*/
function $TemplateRequestProvider() {
var httpOptions;
/**
* @ngdoc method
* @name $templateRequestProvider#httpOptions
* @description
* The options to be passed to the {@link $http} service when making the request.
* You can use this to override options such as the "Accept" header for template requests.
*
* The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
* options if not overridden here.
*
* @param {string=} value new value for the {@link $http} options.
* @returns {string|self} Returns the {@link $http} options when used as getter and self if used as setter.
*/
this.httpOptions = function (val) {
if (val) {
httpOptions = val;
return this;
}
return httpOptions;
};
/**
* @ngdoc service
* @name $templateRequest
*
* @description
* The `$templateRequest` service runs security checks then downloads the provided template using
* `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request
* fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the
* exception can be thwarted by setting the 2nd parameter of the function to true). Note that the
* contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted
* when `tpl` is of type string and `$templateCache` has the matching entry.
*
* If you want to pass custom options to the `$http` service, such as setting the Accept header you
* can configure this via {@link $templateRequestProvider#httpOptions}.
*
* `$templateRequest` is used internally by {@link $compile}, {@link ngRoute.$route}, and directives such
* as {@link ngInclude} to download and cache templates.
*
* 3rd party modules should use `$templateRequest` if their services or directives are loading
* templates.
*
* @param {string|TrustedResourceUrl} tpl The HTTP request template URL
* @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
*
* @return {Promise} a promise for the HTTP response data of the given URL.
*
* @property {number} totalPendingRequests total amount of pending template requests being downloaded.
*/
this.$get = ['$exceptionHandler', '$templateCache', '$http', '$q', '$sce', function ($exceptionHandler, $templateCache, $http, $q, $sce) {
function handleRequestFn(tpl, ignoreRequestError) {
handleRequestFn.totalPendingRequests++;
// We consider the template cache holds only trusted templates, so
// there's no need to go through whitelisting again for keys that already
// are included in there. This also makes Angular accept any script
// directive, no matter its name. However, we still need to unwrap trusted
// types.
if (!isString(tpl) || isUndefined($templateCache.get(tpl))) {
tpl = $sce.getTrustedResourceUrl(tpl);
}
var transformResponse = $http.defaults && $http.defaults.transformResponse;
if (isArray(transformResponse)) {
transformResponse = transformResponse.filter(function (transformer) {
return transformer !== defaultHttpResponseTransform;
});
} else if (transformResponse === defaultHttpResponseTransform) {
transformResponse = null;
}
return $http.get(tpl, extend({
cache: $templateCache,
transformResponse: transformResponse
}, httpOptions)).finally(function () {
handleRequestFn.totalPendingRequests--;
}).then(function (response) {
$templateCache.put(tpl, response.data);
return response.data;
}, handleError);
function handleError(resp) {
if (!ignoreRequestError) {
resp = $templateRequestMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})', tpl, resp.status, resp.statusText);
$exceptionHandler(resp);
}
return $q.reject(resp);
}
}
handleRequestFn.totalPendingRequests = 0;
return handleRequestFn;
}];
}
/** @this */
function $$TestabilityProvider() {
this.$get = ['$rootScope', '$browser', '$location', function ($rootScope, $browser, $location) {
/**
* @name $testability
*
* @description
* The private $$testability service provides a collection of methods for use when debugging
* or by automated test and debugging tools.
*/
var testability = {};
/**
* @name $$testability#findBindings
*
* @description
* Returns an array of elements that are bound (via ng-bind or {{}})
* to expressions matching the input.
*
* @param {Element} element The element root to search from.
* @param {string} expression The binding expression to match.
* @param {boolean} opt_exactMatch If true, only returns exact matches
* for the expression. Filters and whitespace are ignored.
*/
testability.findBindings = function (element, expression, opt_exactMatch) {
var bindings = element.getElementsByClassName('ng-binding');
var matches = [];
forEach(bindings, function (binding) {
var dataBinding = angular.element(binding).data('$binding');
if (dataBinding) {
forEach(dataBinding, function (bindingName) {
if (opt_exactMatch) {
var matcher = new RegExp('(^|\\s)' + escapeForRegexp(expression) + '(\\s|\\||$)');
if (matcher.test(bindingName)) {
matches.push(binding);
}
} else {
if (bindingName.indexOf(expression) !== -1) {
matches.push(binding);
}
}
});
}
});
return matches;
};
/**
* @name $$testability#findModels
*
* @description
* Returns an array of elements that are two-way found via ng-model to
* expressions matching the input.
*
* @param {Element} element The element root to search from.
* @param {string} expression The model expression to match.
* @param {boolean} opt_exactMatch If true, only returns exact matches
* for the expression.
*/
testability.findModels = function (element, expression, opt_exactMatch) {
var prefixes = ['ng-', 'data-ng-', 'ng\\:'];
for (var p = 0; p < prefixes.length; ++p) {
var attributeEquals = opt_exactMatch ? '=' : '*=';
var selector = '[' + prefixes[p] + 'model' + attributeEquals + '"' + expression + '"]';
var elements = element.querySelectorAll(selector);
if (elements.length) {
return elements;
}
}
};
/**
* @name $$testability#getLocation
*
* @description
* Shortcut for getting the location in a browser agnostic way. Returns
* the path, search, and hash. (e.g. /path?a=b#hash)
*/
testability.getLocation = function () {
return $location.url();
};
/**
* @name $$testability#setLocation
*
* @description
* Shortcut for navigating to a location without doing a full page reload.
*
* @param {string} url The location url (path, search and hash,
* e.g. /path?a=b#hash) to go to.
*/
testability.setLocation = function (url) {
if (url !== $location.url()) {
$location.url(url);
$rootScope.$digest();
}
};
/**
* @name $$testability#whenStable
*
* @description
* Calls the callback when $timeout and $http requests are completed.
*
* @param {function} callback
*/
testability.whenStable = function (callback) {
$browser.notifyWhenNoOutstandingRequests(callback);
};
return testability;
}];
}
/** @this */
function $TimeoutProvider() {
this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler', function ($rootScope, $browser, $q, $$q, $exceptionHandler) {
var deferreds = {};
/**
* @ngdoc service
* @name $timeout
*
* @description
* Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch
* block and delegates any exceptions to
* {@link ng.$exceptionHandler $exceptionHandler} service.
*
* The return value of calling `$timeout` is a promise, which will be resolved when
* the delay has passed and the timeout function, if provided, is executed.
*
* To cancel a timeout request, call `$timeout.cancel(promise)`.
*
* In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
* synchronously flush the queue of deferred functions.
*
* If you only want a promise that will be resolved after some specified delay
* then you can call `$timeout` without the `fn` function.
*
* @param {function()=} fn A function, whose execution should be delayed.
* @param {number=} [delay=0] Delay in milliseconds.
* @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
* @param {...*=} Pass additional parameters to the executed function.
* @returns {Promise} Promise that will be resolved when the timeout is reached. The promise
* will be resolved with the return value of the `fn` function.
*
*/
function timeout(fn, delay, invokeApply) {
if (!isFunction(fn)) {
invokeApply = delay;
delay = fn;
fn = noop;
}
var args = sliceArgs(arguments, 3),
skipApply = isDefined(invokeApply) && !invokeApply,
deferred = (skipApply ? $$q : $q).defer(),
promise = deferred.promise,
timeoutId;
timeoutId = $browser.defer(function () {
try {
deferred.resolve(fn.apply(null, args));
} catch (e) {
deferred.reject(e);
$exceptionHandler(e);
} finally {
delete deferreds[promise.$$timeoutId];
}
if (!skipApply) $rootScope.$apply();
}, delay);
promise.$$timeoutId = timeoutId;
deferreds[timeoutId] = deferred;
return promise;
}
/**
* @ngdoc method
* @name $timeout#cancel
*
* @description
* Cancels a task associated with the `promise`. As a result of this, the promise will be
* resolved with a rejection.
*
* @param {Promise=} promise Promise returned by the `$timeout` function.
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
* canceled.
*/
timeout.cancel = function (promise) {
if (promise && promise.$$timeoutId in deferreds) {
// Timeout cancels should not report an unhandled promise.
markQExceptionHandled(deferreds[promise.$$timeoutId].promise);
deferreds[promise.$$timeoutId].reject('canceled');
delete deferreds[promise.$$timeoutId];
return $browser.defer.cancel(promise.$$timeoutId);
}
return false;
};
return timeout;
}];
}
// NOTE: The usage of window and document instead of $window and $document here is
// deliberate. This service depends on the specific behavior of anchor nodes created by the
// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and
// cause us to break tests. In addition, when the browser resolves a URL for XHR, it
// doesn't know about mocked locations and resolves URLs to the real document - which is
// exactly the behavior needed here. There is little value is mocking these out for this
// service.
var urlParsingNode = window.document.createElement('a');
var originUrl = urlResolve(window.location.href);
/**
*
* Implementation Notes for non-IE browsers
* ----------------------------------------
* Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,
* results both in the normalizing and parsing of the URL. Normalizing means that a relative
* URL will be resolved into an absolute URL in the context of the application document.
* Parsing means that the anchor node's host, hostname, protocol, port, pathname and related
* properties are all populated to reflect the normalized URL. This approach has wide
* compatibility - Safari 1+, Mozilla 1+ etc. See
* http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
*
* Implementation Notes for IE
* ---------------------------
* IE <= 10 normalizes the URL when assigned to the anchor node similar to the other
* browsers. However, the parsed components will not be set if the URL assigned did not specify
* them. (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.) We
* work around that by performing the parsing in a 2nd step by taking a previously normalized
* URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the
* properties such as protocol, hostname, port, etc.
*
* References:
* http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
* http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
* http://url.spec.whatwg.org/#urlutils
* https://github.com/angular/angular.js/pull/2902
* http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
*
* @kind function
* @param {string} url The URL to be parsed.
* @description Normalizes and parses a URL.
* @returns {object} Returns the normalized URL as a dictionary.
*
* | member name | Description |
* |---------------|----------------|
* | href | A normalized version of the provided URL if it was not an absolute URL |
* | protocol | The protocol including the trailing colon |
* | host | The host and port (if the port is non-default) of the normalizedUrl |
* | search | The search params, minus the question mark |
* | hash | The hash string, minus the hash symbol
* | hostname | The hostname
* | port | The port, without ":"
* | pathname | The pathname, beginning with "/"
*
*/
function urlResolve(url) {
var href = url;
// Support: IE 9-11 only
if (msie) {
// Normalize before parse. Refer Implementation Notes on why this is
// done in two steps on IE.
urlParsingNode.setAttribute('href', href);
href = urlParsingNode.href;
}
urlParsingNode.setAttribute('href', href);
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
return {
href: urlParsingNode.href,
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
host: urlParsingNode.host,
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
hostname: urlParsingNode.hostname,
port: urlParsingNode.port,
pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
};
}
/**
* Parse a request URL and determine whether this is a same-origin request as the application document.
*
* @param {string|object} requestUrl The url of the request as a string that will be resolved
* or a parsed URL object.
* @returns {boolean} Whether the request is for the same origin as the application document.
*/
function urlIsSameOrigin(requestUrl) {
var parsed = isString(requestUrl) ? urlResolve(requestUrl) : requestUrl;
return parsed.protocol === originUrl.protocol && parsed.host === originUrl.host;
}
/**
* @ngdoc service
* @name $window
* @this
*
* @description
* A reference to the browser's `window` object. While `window`
* is globally available in JavaScript, it causes testability problems, because
* it is a global variable. In angular we always refer to it through the
* `$window` service, so it may be overridden, removed or mocked for testing.
*
* Expressions, like the one defined for the `ngClick` directive in the example
* below, are evaluated with respect to the current scope. Therefore, there is
* no risk of inadvertently coding in a dependency on a global value in such an
* expression.
*
* @example
<example module="windowExample" name="window-service">
<file name="index.html">
<script>
angular.module('windowExample', [])
.controller('ExampleController', ['$scope', '$window', function($scope, $window) {
$scope.greeting = 'Hello, World!';
$scope.doGreeting = function(greeting) {
$window.alert(greeting);
};
}]);
</script>
<div ng-controller="ExampleController">
<input type="text" ng-model="greeting" aria-label="greeting" />
<button ng-click="doGreeting(greeting)">ALERT</button>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should display the greeting in the input box', function() {
element(by.model('greeting')).sendKeys('Hello, E2E Tests');
// If we click the button it will block the test runner
// element(':button').click();
});
</file>
</example>
*/
function $WindowProvider() {
this.$get = valueFn(window);
}
/**
* @name $$cookieReader
* @requires $document
*
* @description
* This is a private service for reading cookies used by $http and ngCookies
*
* @return {Object} a key/value map of the current cookies
*/
function $$CookieReader($document) {
var rawDocument = $document[0] || {};
var lastCookies = {};
var lastCookieString = '';
function safeGetCookie(rawDocument) {
try {
return rawDocument.cookie || '';
} catch (e) {
return '';
}
}
function safeDecodeURIComponent(str) {
try {
return decodeURIComponent(str);
} catch (e) {
return str;
}
}
return function () {
var cookieArray, cookie, i, index, name;
var currentCookieString = safeGetCookie(rawDocument);
if (currentCookieString !== lastCookieString) {
lastCookieString = currentCookieString;
cookieArray = lastCookieString.split('; ');
lastCookies = {};
for (i = 0; i < cookieArray.length; i++) {
cookie = cookieArray[i];
index = cookie.indexOf('=');
if (index > 0) {
//ignore nameless cookies
name = safeDecodeURIComponent(cookie.substring(0, index));
// the first value that is seen for a cookie is the most
// specific one. values for the same cookie name that
// follow are for less specific paths.
if (isUndefined(lastCookies[name])) {
lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));
}
}
}
}
return lastCookies;
};
}
$$CookieReader.$inject = ['$document'];
/** @this */
function $$CookieReaderProvider() {
this.$get = $$CookieReader;
}
/* global currencyFilter: true,
dateFilter: true,
filterFilter: true,
jsonFilter: true,
limitToFilter: true,
lowercaseFilter: true,
numberFilter: true,
orderByFilter: true,
uppercaseFilter: true,
*/
/**
* @ngdoc provider
* @name $filterProvider
* @description
*
* Filters are just functions which transform input to an output. However filters need to be
* Dependency Injected. To achieve this a filter definition consists of a factory function which is
* annotated with dependencies and is responsible for creating a filter function.
*
* <div class="alert alert-warning">
* **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
* Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
* your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
* (`myapp_subsection_filterx`).
* </div>
*
* ```js
* // Filter registration
* function MyModule($provide, $filterProvider) {
* // create a service to demonstrate injection (not always needed)
* $provide.value('greet', function(name){
* return 'Hello ' + name + '!';
* });
*
* // register a filter factory which uses the
* // greet service to demonstrate DI.
* $filterProvider.register('greet', function(greet){
* // return the filter function which uses the greet service
* // to generate salutation
* return function(text) {
* // filters need to be forgiving so check input validity
* return text && greet(text) || text;
* };
* });
* }
* ```
*
* The filter function is registered with the `$injector` under the filter name suffix with
* `Filter`.
*
* ```js
* it('should be the same instance', inject(
* function($filterProvider) {
* $filterProvider.register('reverse', function(){
* return ...;
* });
* },
* function($filter, reverseFilter) {
* expect($filter('reverse')).toBe(reverseFilter);
* });
* ```
*
*
* For more information about how angular filters work, and how to create your own filters, see
* {@link guide/filter Filters} in the Angular Developer Guide.
*/
/**
* @ngdoc service
* @name $filter
* @kind function
* @description
* Filters are used for formatting data displayed to the user.
*
* They can be used in view templates, controllers or services.Angular comes
* with a collection of [built-in filters](api/ng/filter), but it is easy to
* define your own as well.
*
* The general syntax in templates is as follows:
*
* ```html
* {{ expression [| filter_name[:parameter_value] ... ] }}
* ```
*
* @param {String} name Name of the filter function to retrieve
* @return {Function} the filter function
* @example
<example name="$filter" module="filterExample">
<file name="index.html">
<div ng-controller="MainCtrl">
<h3>{{ originalText }}</h3>
<h3>{{ filteredText }}</h3>
</div>
</file>
<file name="script.js">
angular.module('filterExample', [])
.controller('MainCtrl', function($scope, $filter) {
$scope.originalText = 'hello';
$scope.filteredText = $filter('uppercase')($scope.originalText);
});
</file>
</example>
*/
$FilterProvider.$inject = ['$provide'];
/** @this */
function $FilterProvider($provide) {
var suffix = 'Filter';
/**
* @ngdoc method
* @name $filterProvider#register
* @param {string|Object} name Name of the filter function, or an object map of filters where
* the keys are the filter names and the values are the filter factories.
*
* <div class="alert alert-warning">
* **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
* Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
* your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
* (`myapp_subsection_filterx`).
* </div>
* @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.
* @returns {Object} Registered filter instance, or if a map of filters was provided then a map
* of the registered filter instances.
*/
function register(name, factory) {
if (isObject(name)) {
var filters = {};
forEach(name, function (filter, key) {
filters[key] = register(key, filter);
});
return filters;
} else {
return $provide.factory(name + suffix, factory);
}
}
this.register = register;
this.$get = ['$injector', function ($injector) {
return function (name) {
return $injector.get(name + suffix);
};
}];
////////////////////////////////////////
/* global
currencyFilter: false,
dateFilter: false,
filterFilter: false,
jsonFilter: false,
limitToFilter: false,
lowercaseFilter: false,
numberFilter: false,
orderByFilter: false,
uppercaseFilter: false
*/
register('currency', currencyFilter);
register('date', dateFilter);
register('filter', filterFilter);
register('json', jsonFilter);
register('limitTo', limitToFilter);
register('lowercase', lowercaseFilter);
register('number', numberFilter);
register('orderBy', orderByFilter);
register('uppercase', uppercaseFilter);
}
/**
* @ngdoc filter
* @name filter
* @kind function
*
* @description
* Selects a subset of items from `array` and returns it as a new array.
*
* @param {Array} array The source array.
* <div class="alert alert-info">
* **Note**: If the array contains objects that reference themselves, filtering is not possible.
* </div>
* @param {string|Object|function()} expression The predicate to be used for selecting items from
* `array`.
*
* Can be one of:
*
* - `string`: The string is used for matching against the contents of the `array`. All strings or
* objects with string properties in `array` that match this string will be returned. This also
* applies to nested object properties.
* The predicate can be negated by prefixing the string with `!`.
*
* - `Object`: A pattern object can be used to filter specific properties on objects contained
* by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items
* which have property `name` containing "M" and property `phone` containing "1". A special
* property name (`$` by default) can be used (e.g. as in `{$: "text"}`) to accept a match
* against any property of the object or its nested object properties. That's equivalent to the
* simple substring match with a `string` as described above. The special property name can be
* overwritten, using the `anyPropertyKey` parameter.
* The predicate can be negated by prefixing the string with `!`.
* For example `{name: "!M"}` predicate will return an array of items which have property `name`
* not containing "M".
*
* Note that a named property will match properties on the same level only, while the special
* `$` property will match properties on the same level or deeper. E.g. an array item like
* `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
* **will** be matched by `{$: 'John'}`.
*
* - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.
* The function is called for each element of the array, with the element, its index, and
* the entire array itself as arguments.
*
* The final result is an array of those elements that the predicate returned true for.
*
* @param {function(actual, expected)|true|false} [comparator] Comparator which is used in
* determining if values retrieved using `expression` (when it is not a function) should be
* considered a match based on the expected value (from the filter expression) and actual
* value (from the object in the array).
*
* Can be one of:
*
* - `function(actual, expected)`:
* The function will be given the object value and the predicate value to compare and
* should return true if both values should be considered equal.
*
* - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.
* This is essentially strict comparison of expected and actual.
*
* - `false`: A short hand for a function which will look for a substring match in a case
* insensitive way. Primitive values are converted to strings. Objects are not compared against
* primitives, unless they have a custom `toString` method (e.g. `Date` objects).
*
*
* Defaults to `false`.
*
* @param {string} [anyPropertyKey] The special property name that matches against any property.
* By default `$`.
*
* @example
<example name="filter-filter">
<file name="index.html">
<div ng-init="friends = [{name:'John', phone:'555-1276'},
{name:'Mary', phone:'800-BIG-MARY'},
{name:'Mike', phone:'555-4321'},
{name:'Adam', phone:'555-5678'},
{name:'Julie', phone:'555-8765'},
{name:'Juliette', phone:'555-5678'}]"></div>
<label>Search: <input ng-model="searchText"></label>
<table id="searchTextResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friend in friends | filter:searchText">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
</tr>
</table>
<hr>
<label>Any: <input ng-model="search.$"></label> <br>
<label>Name only <input ng-model="search.name"></label><br>
<label>Phone only <input ng-model="search.phone"></label><br>
<label>Equality <input type="checkbox" ng-model="strict"></label><br>
<table id="searchObjResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friendObj in friends | filter:search:strict">
<td>{{friendObj.name}}</td>
<td>{{friendObj.phone}}</td>
</tr>
</table>
</file>
<file name="protractor.js" type="protractor">
var expectFriendNames = function(expectedNames, key) {
element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {
arr.forEach(function(wd, i) {
expect(wd.getText()).toMatch(expectedNames[i]);
});
});
};
it('should search across all fields when filtering with a string', function() {
var searchText = element(by.model('searchText'));
searchText.clear();
searchText.sendKeys('m');
expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');
searchText.clear();
searchText.sendKeys('76');
expectFriendNames(['John', 'Julie'], 'friend');
});
it('should search in specific fields when filtering with a predicate object', function() {
var searchAny = element(by.model('search.$'));
searchAny.clear();
searchAny.sendKeys('i');
expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');
});
it('should use a equal comparison when comparator is true', function() {
var searchName = element(by.model('search.name'));
var strict = element(by.model('strict'));
searchName.clear();
searchName.sendKeys('Julie');
strict.click();
expectFriendNames(['Julie'], 'friendObj');
});
</file>
</example>
*/
function filterFilter() {
return function (array, expression, comparator, anyPropertyKey) {
if (!isArrayLike(array)) {
if (array == null) {
return array;
} else {
throw minErr('filter')('notarray', 'Expected array but received: {0}', array);
}
}
anyPropertyKey = anyPropertyKey || '$';
var expressionType = getTypeForFilter(expression);
var predicateFn;
var matchAgainstAnyProp;
switch (expressionType) {
case 'function':
predicateFn = expression;
break;
case 'boolean':
case 'null':
case 'number':
case 'string':
matchAgainstAnyProp = true;
// falls through
case 'object':
predicateFn = createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp);
break;
default:
return array;
}
return Array.prototype.filter.call(array, predicateFn);
};
}
// Helper functions for `filterFilter`
function createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp) {
var shouldMatchPrimitives = isObject(expression) && anyPropertyKey in expression;
var predicateFn;
if (comparator === true) {
comparator = equals;
} else if (!isFunction(comparator)) {
comparator = function comparator(actual, expected) {
if (isUndefined(actual)) {
// No substring matching against `undefined`
return false;
}
if (actual === null || expected === null) {
// No substring matching against `null`; only match against `null`
return actual === expected;
}
if (isObject(expected) || isObject(actual) && !hasCustomToString(actual)) {
// Should not compare primitives against objects, unless they have custom `toString` method
return false;
}
actual = lowercase('' + actual);
expected = lowercase('' + expected);
return actual.indexOf(expected) !== -1;
};
}
predicateFn = function predicateFn(item) {
if (shouldMatchPrimitives && !isObject(item)) {
return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false);
}
return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp);
};
return predicateFn;
}
function deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) {
var actualType = getTypeForFilter(actual);
var expectedType = getTypeForFilter(expected);
if (expectedType === 'string' && expected.charAt(0) === '!') {
return !deepCompare(actual, expected.substring(1), comparator, anyPropertyKey, matchAgainstAnyProp);
} else if (isArray(actual)) {
// In case `actual` is an array, consider it a match
// if ANY of it's items matches `expected`
return actual.some(function (item) {
return deepCompare(item, expected, comparator, anyPropertyKey, matchAgainstAnyProp);
});
}
switch (actualType) {
case 'object':
var key;
if (matchAgainstAnyProp) {
for (key in actual) {
// Under certain, rare, circumstances, key may not be a string and `charAt` will be undefined
// See: https://github.com/angular/angular.js/issues/15644
if (key.charAt && key.charAt(0) !== '$' && deepCompare(actual[key], expected, comparator, anyPropertyKey, true)) {
return true;
}
}
return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, anyPropertyKey, false);
} else if (expectedType === 'object') {
for (key in expected) {
var expectedVal = expected[key];
if (isFunction(expectedVal) || isUndefined(expectedVal)) {
continue;
}
var matchAnyProperty = key === anyPropertyKey;
var actualVal = matchAnyProperty ? actual : actual[key];
if (!deepCompare(actualVal, expectedVal, comparator, anyPropertyKey, matchAnyProperty, matchAnyProperty)) {
return false;
}
}
return true;
} else {
return comparator(actual, expected);
}
case 'function':
return false;
default:
return comparator(actual, expected);
}
}
// Used for easily differentiating between `null` and actual `object`
function getTypeForFilter(val) {
return val === null ? 'null' : typeof val === 'undefined' ? 'undefined' : _typeof(val);
}
var MAX_DIGITS = 22;
var DECIMAL_SEP = '.';
var ZERO_CHAR = '0';
/**
* @ngdoc filter
* @name currency
* @kind function
*
* @description
* Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
* symbol for current locale is used.
*
* @param {number} amount Input to filter.
* @param {string=} symbol Currency symbol or identifier to be displayed.
* @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale
* @returns {string} Formatted number.
*
*
* @example
<example module="currencyExample" name="currency-filter">
<file name="index.html">
<script>
angular.module('currencyExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.amount = 1234.56;
}]);
</script>
<div ng-controller="ExampleController">
<input type="number" ng-model="amount" aria-label="amount"> <br>
default currency symbol ($): <span id="currency-default">{{amount | currency}}</span><br>
custom currency identifier (USD$): <span id="currency-custom">{{amount | currency:"USD$"}}</span><br>
no fractions (0): <span id="currency-no-fractions">{{amount | currency:"USD$":0}}</span>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should init with 1234.56', function() {
expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');
expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');
expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');
});
it('should update', function() {
if (browser.params.browser === 'safari') {
// Safari does not understand the minus key. See
// https://github.com/angular/protractor/issues/481
return;
}
element(by.model('amount')).clear();
element(by.model('amount')).sendKeys('-1234');
expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');
expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');
expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');
});
</file>
</example>
*/
currencyFilter.$inject = ['$locale'];
function currencyFilter($locale) {
var formats = $locale.NUMBER_FORMATS;
return function (amount, currencySymbol, fractionSize) {
if (isUndefined(currencySymbol)) {
currencySymbol = formats.CURRENCY_SYM;
}
if (isUndefined(fractionSize)) {
fractionSize = formats.PATTERNS[1].maxFrac;
}
// if null or undefined pass it through
return amount == null ? amount : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).replace(/\u00A4/g, currencySymbol);
};
}
/**
* @ngdoc filter
* @name number
* @kind function
*
* @description
* Formats a number as text.
*
* If the input is null or undefined, it will just be returned.
* If the input is infinite (Infinity or -Infinity), the Infinity symbol '∞' or '-∞' is returned, respectively.
* If the input is not a number an empty string is returned.
*
*
* @param {number|string} number Number to format.
* @param {(number|string)=} fractionSize Number of decimal places to round the number to.
* If this is not provided then the fraction size is computed from the current locale's number
* formatting pattern. In the case of the default locale, it will be 3.
* @returns {string} Number rounded to `fractionSize` appropriately formatted based on the current
* locale (e.g., in the en_US locale it will have "." as the decimal separator and
* include "," group separators after each third digit).
*
* @example
<example module="numberFilterExample" name="number-filter">
<file name="index.html">
<script>
angular.module('numberFilterExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.val = 1234.56789;
}]);
</script>
<div ng-controller="ExampleController">
<label>Enter number: <input ng-model='val'></label><br>
Default formatting: <span id='number-default'>{{val | number}}</span><br>
No fractions: <span>{{val | number:0}}</span><br>
Negative number: <span>{{-val | number:4}}</span>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should format numbers', function() {
expect(element(by.id('number-default')).getText()).toBe('1,234.568');
expect(element(by.binding('val | number:0')).getText()).toBe('1,235');
expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');
});
it('should update', function() {
element(by.model('val')).clear();
element(by.model('val')).sendKeys('3374.333');
expect(element(by.id('number-default')).getText()).toBe('3,374.333');
expect(element(by.binding('val | number:0')).getText()).toBe('3,374');
expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');
});
</file>
</example>
*/
numberFilter.$inject = ['$locale'];
function numberFilter($locale) {
var formats = $locale.NUMBER_FORMATS;
return function (number, fractionSize) {
// if null or undefined pass it through
return number == null ? number : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize);
};
}
/**
* Parse a number (as a string) into three components that can be used
* for formatting the number.
*
* (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)
*
* @param {string} numStr The number to parse
* @return {object} An object describing this number, containing the following keys:
* - d : an array of digits containing leading zeros as necessary
* - i : the number of the digits in `d` that are to the left of the decimal point
* - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`
*
*/
function parse(numStr) {
var exponent = 0,
digits,
numberOfIntegerDigits;
var i, j, zeros;
// Decimal point?
if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) {
numStr = numStr.replace(DECIMAL_SEP, '');
}
// Exponential form?
if ((i = numStr.search(/e/i)) > 0) {
// Work out the exponent.
if (numberOfIntegerDigits < 0) numberOfIntegerDigits = i;
numberOfIntegerDigits += +numStr.slice(i + 1);
numStr = numStr.substring(0, i);
} else if (numberOfIntegerDigits < 0) {
// There was no decimal point or exponent so it is an integer.
numberOfIntegerDigits = numStr.length;
}
// Count the number of leading zeros.
for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {/* empty */}
if (i === (zeros = numStr.length)) {
// The digits are all zero.
digits = [0];
numberOfIntegerDigits = 1;
} else {
// Count the number of trailing zeros
zeros--;
while (numStr.charAt(zeros) === ZERO_CHAR) {
zeros--;
} // Trailing zeros are insignificant so ignore them
numberOfIntegerDigits -= i;
digits = [];
// Convert string to array of digits without leading/trailing zeros.
for (j = 0; i <= zeros; i++, j++) {
digits[j] = +numStr.charAt(i);
}
}
// If the number overflows the maximum allowed digits then use an exponent.
if (numberOfIntegerDigits > MAX_DIGITS) {
digits = digits.splice(0, MAX_DIGITS - 1);
exponent = numberOfIntegerDigits - 1;
numberOfIntegerDigits = 1;
}
return { d: digits, e: exponent, i: numberOfIntegerDigits };
}
/**
* Round the parsed number to the specified number of decimal places
* This function changed the parsedNumber in-place
*/
function roundNumber(parsedNumber, fractionSize, minFrac, maxFrac) {
var digits = parsedNumber.d;
var fractionLen = digits.length - parsedNumber.i;
// determine fractionSize if it is not specified; `+fractionSize` converts it to a number
fractionSize = isUndefined(fractionSize) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize;
// The index of the digit to where rounding is to occur
var roundAt = fractionSize + parsedNumber.i;
var digit = digits[roundAt];
if (roundAt > 0) {
// Drop fractional digits beyond `roundAt`
digits.splice(Math.max(parsedNumber.i, roundAt));
// Set non-fractional digits beyond `roundAt` to 0
for (var j = roundAt; j < digits.length; j++) {
digits[j] = 0;
}
} else {
// We rounded to zero so reset the parsedNumber
fractionLen = Math.max(0, fractionLen);
parsedNumber.i = 1;
digits.length = Math.max(1, roundAt = fractionSize + 1);
digits[0] = 0;
for (var i = 1; i < roundAt; i++) {
digits[i] = 0;
}
}
if (digit >= 5) {
if (roundAt - 1 < 0) {
for (var k = 0; k > roundAt; k--) {
digits.unshift(0);
parsedNumber.i++;
}
digits.unshift(1);
parsedNumber.i++;
} else {
digits[roundAt - 1]++;
}
}
// Pad out with zeros to get the required fraction length
for (; fractionLen < Math.max(0, fractionSize); fractionLen++) {
digits.push(0);
} // Do any carrying, e.g. a digit was rounded up to 10
var carry = digits.reduceRight(function (carry, d, i, digits) {
d = d + carry;
digits[i] = d % 10;
return Math.floor(d / 10);
}, 0);
if (carry) {
digits.unshift(carry);
parsedNumber.i++;
}
}
/**
* Format a number into a string
* @param {number} number The number to format
* @param {{
* minFrac, // the minimum number of digits required in the fraction part of the number
* maxFrac, // the maximum number of digits required in the fraction part of the number
* gSize, // number of digits in each group of separated digits
* lgSize, // number of digits in the last group of digits before the decimal separator
* negPre, // the string to go in front of a negative number (e.g. `-` or `(`))
* posPre, // the string to go in front of a positive number
* negSuf, // the string to go after a negative number (e.g. `)`)
* posSuf // the string to go after a positive number
* }} pattern
* @param {string} groupSep The string to separate groups of number (e.g. `,`)
* @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)
* @param {[type]} fractionSize The size of the fractional part of the number
* @return {string} The number formatted as a string
*/
function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
if (!(isString(number) || isNumber(number)) || isNaN(number)) return '';
var isInfinity = !isFinite(number);
var isZero = false;
var numStr = Math.abs(number) + '',
formattedText = '',
parsedNumber;
if (isInfinity) {
formattedText = '\u221E';
} else {
parsedNumber = parse(numStr);
roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac);
var digits = parsedNumber.d;
var integerLen = parsedNumber.i;
var exponent = parsedNumber.e;
var decimals = [];
isZero = digits.reduce(function (isZero, d) {
return isZero && !d;
}, true);
// pad zeros for small numbers
while (integerLen < 0) {
digits.unshift(0);
integerLen++;
}
// extract decimals digits
if (integerLen > 0) {
decimals = digits.splice(integerLen, digits.length);
} else {
decimals = digits;
digits = [0];
}
// format the integer digits with grouping separators
var groups = [];
if (digits.length >= pattern.lgSize) {
groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
}
while (digits.length > pattern.gSize) {
groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
}
if (digits.length) {
groups.unshift(digits.join(''));
}
formattedText = groups.join(groupSep);
// append the decimal digits
if (decimals.length) {
formattedText += decimalSep + decimals.join('');
}
if (exponent) {
formattedText += 'e+' + exponent;
}
}
if (number < 0 && !isZero) {
return pattern.negPre + formattedText + pattern.negSuf;
} else {
return pattern.posPre + formattedText + pattern.posSuf;
}
}
function padNumber(num, digits, trim, negWrap) {
var neg = '';
if (num < 0 || negWrap && num <= 0) {
if (negWrap) {
num = -num + 1;
} else {
num = -num;
neg = '-';
}
}
num = '' + num;
while (num.length < digits) {
num = ZERO_CHAR + num;
}if (trim) {
num = num.substr(num.length - digits);
}
return neg + num;
}
function dateGetter(name, size, offset, trim, negWrap) {
offset = offset || 0;
return function (date) {
var value = date['get' + name]();
if (offset > 0 || value > -offset) {
value += offset;
}
if (value === 0 && offset === -12) value = 12;
return padNumber(value, size, trim, negWrap);
};
}
function dateStrGetter(name, shortForm, standAlone) {
return function (date, formats) {
var value = date['get' + name]();
var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
var get = uppercase(propPrefix + name);
return formats[get][value];
};
}
function timeZoneGetter(date, formats, offset) {
var zone = -1 * offset;
var paddedZone = zone >= 0 ? '+' : '';
paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) + padNumber(Math.abs(zone % 60), 2);
return paddedZone;
}
function getFirstThursdayOfYear(year) {
// 0 = index of January
var dayOfWeekOnFirst = new Date(year, 0, 1).getDay();
// 4 = index of Thursday (+1 to account for 1st = 5)
// 11 = index of *next* Thursday (+1 account for 1st = 12)
return new Date(year, 0, (dayOfWeekOnFirst <= 4 ? 5 : 12) - dayOfWeekOnFirst);
}
function getThursdayThisWeek(datetime) {
return new Date(datetime.getFullYear(), datetime.getMonth(),
// 4 = index of Thursday
datetime.getDate() + (4 - datetime.getDay()));
}
function weekGetter(size) {
return function (date) {
var firstThurs = getFirstThursdayOfYear(date.getFullYear()),
thisThurs = getThursdayThisWeek(date);
var diff = +thisThurs - +firstThurs,
result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
return padNumber(result, size);
};
}
function ampmGetter(date, formats) {
return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
}
function eraGetter(date, formats) {
return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];
}
function longEraGetter(date, formats) {
return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];
}
var DATE_FORMATS = {
yyyy: dateGetter('FullYear', 4, 0, false, true),
yy: dateGetter('FullYear', 2, 0, true, true),
y: dateGetter('FullYear', 1, 0, false, true),
MMMM: dateStrGetter('Month'),
MMM: dateStrGetter('Month', true),
MM: dateGetter('Month', 2, 1),
M: dateGetter('Month', 1, 1),
LLLL: dateStrGetter('Month', false, true),
dd: dateGetter('Date', 2),
d: dateGetter('Date', 1),
HH: dateGetter('Hours', 2),
H: dateGetter('Hours', 1),
hh: dateGetter('Hours', 2, -12),
h: dateGetter('Hours', 1, -12),
mm: dateGetter('Minutes', 2),
m: dateGetter('Minutes', 1),
ss: dateGetter('Seconds', 2),
s: dateGetter('Seconds', 1),
// while ISO 8601 requires fractions to be prefixed with `.` or `,`
// we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
sss: dateGetter('Milliseconds', 3),
EEEE: dateStrGetter('Day'),
EEE: dateStrGetter('Day', true),
a: ampmGetter,
Z: timeZoneGetter,
ww: weekGetter(2),
w: weekGetter(1),
G: eraGetter,
GG: eraGetter,
GGG: eraGetter,
GGGG: longEraGetter
};
var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,
NUMBER_STRING = /^-?\d+$/;
/**
* @ngdoc filter
* @name date
* @kind function
*
* @description
* Formats `date` to a string based on the requested `format`.
*
* `format` string can be composed of the following elements:
*
* * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)
* * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
* * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)
* * `'MMMM'`: Month in year (January-December)
* * `'MMM'`: Month in year (Jan-Dec)
* * `'MM'`: Month in year, padded (01-12)
* * `'M'`: Month in year (1-12)
* * `'LLLL'`: Stand-alone month in year (January-December)
* * `'dd'`: Day in month, padded (01-31)
* * `'d'`: Day in month (1-31)
* * `'EEEE'`: Day in Week,(Sunday-Saturday)
* * `'EEE'`: Day in Week, (Sun-Sat)
* * `'HH'`: Hour in day, padded (00-23)
* * `'H'`: Hour in day (0-23)
* * `'hh'`: Hour in AM/PM, padded (01-12)
* * `'h'`: Hour in AM/PM, (1-12)
* * `'mm'`: Minute in hour, padded (00-59)
* * `'m'`: Minute in hour (0-59)
* * `'ss'`: Second in minute, padded (00-59)
* * `'s'`: Second in minute (0-59)
* * `'sss'`: Millisecond in second, padded (000-999)
* * `'a'`: AM/PM marker
* * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
* * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
* * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year
* * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')
* * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')
*
* `format` string can also be one of the following predefined
* {@link guide/i18n localizable formats}:
*
* * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
* (e.g. Sep 3, 2010 12:05:08 PM)
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM)
* * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale
* (e.g. Friday, September 3, 2010)
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
* * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
* * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)
*
* `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.
* `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence
* (e.g. `"h 'o''clock'"`).
*
* Any other characters in the `format` string will be output as-is.
*
* @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
* number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its
* shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
* specified in the string input, the time is considered to be in the local timezone.
* @param {string=} format Formatting rules (see Description). If not specified,
* `mediumDate` is used.
* @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the
* continental US time zone abbreviations, but for general use, use a time zone offset, for
* example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
* If not specified, the timezone of the browser will be used.
* @returns {string} Formatted string or the input if input is not recognized as date/millis.
*
* @example
<example name="filter-date">
<file name="index.html">
<span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:
<span>{{1288323623006 | date:'medium'}}</span><br>
<span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:
<span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>
<span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:
<span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>
<span ng-non-bindable>{{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}</span>:
<span>{{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}</span><br>
</file>
<file name="protractor.js" type="protractor">
it('should format date', function() {
expect(element(by.binding("1288323623006 | date:'medium'")).getText()).
toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/);
expect(element(by.binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).getText()).
toMatch(/2010-10-2\d \d{2}:\d{2}:\d{2} (-|\+)?\d{4}/);
expect(element(by.binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).getText()).
toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/);
expect(element(by.binding("'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"")).getText()).
toMatch(/10\/2\d\/2010 at \d{1,2}:\d{2}(AM|PM)/);
});
</file>
</example>
*/
dateFilter.$inject = ['$locale'];
function dateFilter($locale) {
var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
// 1 2 3 4 5 6 7 8 9 10 11
function jsonStringToDate(string) {
var match;
if (match = string.match(R_ISO8601_STR)) {
var date = new Date(0),
tzHour = 0,
tzMin = 0,
dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,
timeSetter = match[8] ? date.setUTCHours : date.setHours;
if (match[9]) {
tzHour = toInt(match[9] + match[10]);
tzMin = toInt(match[9] + match[11]);
}
dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));
var h = toInt(match[4] || 0) - tzHour;
var m = toInt(match[5] || 0) - tzMin;
var s = toInt(match[6] || 0);
var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);
timeSetter.call(date, h, m, s, ms);
return date;
}
return string;
}
return function (date, format, timezone) {
var text = '',
parts = [],
fn,
match;
format = format || 'mediumDate';
format = $locale.DATETIME_FORMATS[format] || format;
if (isString(date)) {
date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);
}
if (isNumber(date)) {
date = new Date(date);
}
if (!isDate(date) || !isFinite(date.getTime())) {
return date;
}
while (format) {
match = DATE_FORMATS_SPLIT.exec(format);
if (match) {
parts = concat(parts, match, 1);
format = parts.pop();
} else {
parts.push(format);
format = null;
}
}
var dateTimezoneOffset = date.getTimezoneOffset();
if (timezone) {
dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
date = convertTimezoneToLocal(date, timezone, true);
}
forEach(parts, function (value) {
fn = DATE_FORMATS[value];
text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset) : value === '\'\'' ? '\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
});
return text;
};
}
/**
* @ngdoc filter
* @name json
* @kind function
*
* @description
* Allows you to convert a JavaScript object into JSON string.
*
* This filter is mostly useful for debugging. When using the double curly {{value}} notation
* the binding is automatically converted to JSON.
*
* @param {*} object Any JavaScript object (including arrays and primitive types) to filter.
* @param {number=} spacing The number of spaces to use per indentation, defaults to 2.
* @returns {string} JSON string.
*
*
* @example
<example name="filter-json">
<file name="index.html">
<pre id="default-spacing">{{ {'name':'value'} | json }}</pre>
<pre id="custom-spacing">{{ {'name':'value'} | json:4 }}</pre>
</file>
<file name="protractor.js" type="protractor">
it('should jsonify filtered objects', function() {
expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n {2}"name": ?"value"\n}/);
expect(element(by.id('custom-spacing')).getText()).toMatch(/\{\n {4}"name": ?"value"\n}/);
});
</file>
</example>
*
*/
function jsonFilter() {
return function (object, spacing) {
if (isUndefined(spacing)) {
spacing = 2;
}
return toJson(object, spacing);
};
}
/**
* @ngdoc filter
* @name lowercase
* @kind function
* @description
* Converts string to lowercase.
*
* See the {@link ng.uppercase uppercase filter documentation} for a functionally identical example.
*
* @see angular.lowercase
*/
var lowercaseFilter = valueFn(lowercase);
/**
* @ngdoc filter
* @name uppercase
* @kind function
* @description
* Converts string to uppercase.
* @example
<example module="uppercaseFilterExample" name="filter-uppercase">
<file name="index.html">
<script>
angular.module('uppercaseFilterExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.title = 'This is a title';
}]);
</script>
<div ng-controller="ExampleController">
<!-- This title should be formatted normally -->
<h1>{{title}}</h1>
<!-- This title should be capitalized -->
<h1>{{title | uppercase}}</h1>
</div>
</file>
</example>
*/
var uppercaseFilter = valueFn(uppercase);
/**
* @ngdoc filter
* @name limitTo
* @kind function
*
* @description
* Creates a new array or string containing only a specified number of elements. The elements are
* taken from either the beginning or the end of the source array, string or number, as specified by
* the value and sign (positive or negative) of `limit`. Other array-like objects are also supported
* (e.g. array subclasses, NodeLists, jqLite/jQuery collections etc). If a number is used as input,
* it is converted to a string.
*
* @param {Array|ArrayLike|string|number} input - Array/array-like, string or number to be limited.
* @param {string|number} limit - The length of the returned array or string. If the `limit` number
* is positive, `limit` number of items from the beginning of the source array/string are copied.
* If the number is negative, `limit` number of items from the end of the source array/string
* are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,
* the input will be returned unchanged.
* @param {(string|number)=} begin - Index at which to begin limitation. As a negative index,
* `begin` indicates an offset from the end of `input`. Defaults to `0`.
* @returns {Array|string} A new sub-array or substring of length `limit` or less if the input had
* less than `limit` elements.
*
* @example
<example module="limitToExample" name="limit-to-filter">
<file name="index.html">
<script>
angular.module('limitToExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.numbers = [1,2,3,4,5,6,7,8,9];
$scope.letters = "abcdefghi";
$scope.longNumber = 2345432342;
$scope.numLimit = 3;
$scope.letterLimit = 3;
$scope.longNumberLimit = 3;
}]);
</script>
<div ng-controller="ExampleController">
<label>
Limit {{numbers}} to:
<input type="number" step="1" ng-model="numLimit">
</label>
<p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
<label>
Limit {{letters}} to:
<input type="number" step="1" ng-model="letterLimit">
</label>
<p>Output letters: {{ letters | limitTo:letterLimit }}</p>
<label>
Limit {{longNumber}} to:
<input type="number" step="1" ng-model="longNumberLimit">
</label>
<p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>
</div>
</file>
<file name="protractor.js" type="protractor">
var numLimitInput = element(by.model('numLimit'));
var letterLimitInput = element(by.model('letterLimit'));
var longNumberLimitInput = element(by.model('longNumberLimit'));
var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));
var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));
var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));
it('should limit the number array to first three items', function() {
expect(numLimitInput.getAttribute('value')).toBe('3');
expect(letterLimitInput.getAttribute('value')).toBe('3');
expect(longNumberLimitInput.getAttribute('value')).toBe('3');
expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');
expect(limitedLetters.getText()).toEqual('Output letters: abc');
expect(limitedLongNumber.getText()).toEqual('Output long number: 234');
});
// There is a bug in safari and protractor that doesn't like the minus key
// it('should update the output when -3 is entered', function() {
// numLimitInput.clear();
// numLimitInput.sendKeys('-3');
// letterLimitInput.clear();
// letterLimitInput.sendKeys('-3');
// longNumberLimitInput.clear();
// longNumberLimitInput.sendKeys('-3');
// expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');
// expect(limitedLetters.getText()).toEqual('Output letters: ghi');
// expect(limitedLongNumber.getText()).toEqual('Output long number: 342');
// });
it('should not exceed the maximum size of input array', function() {
numLimitInput.clear();
numLimitInput.sendKeys('100');
letterLimitInput.clear();
letterLimitInput.sendKeys('100');
longNumberLimitInput.clear();
longNumberLimitInput.sendKeys('100');
expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');
expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');
expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');
});
</file>
</example>
*/
function limitToFilter() {
return function (input, limit, begin) {
if (Math.abs(Number(limit)) === Infinity) {
limit = Number(limit);
} else {
limit = toInt(limit);
}
if (isNumberNaN(limit)) return input;
if (isNumber(input)) input = input.toString();
if (!isArrayLike(input)) return input;
begin = !begin || isNaN(begin) ? 0 : toInt(begin);
begin = begin < 0 ? Math.max(0, input.length + begin) : begin;
if (limit >= 0) {
return sliceFn(input, begin, begin + limit);
} else {
if (begin === 0) {
return sliceFn(input, limit, input.length);
} else {
return sliceFn(input, Math.max(0, begin + limit), begin);
}
}
};
}
function sliceFn(input, begin, end) {
if (isString(input)) return input.slice(begin, end);
return slice.call(input, begin, end);
}
/**
* @ngdoc filter
* @name orderBy
* @kind function
*
* @description
* Returns an array containing the items from the specified `collection`, ordered by a `comparator`
* function based on the values computed using the `expression` predicate.
*
* For example, `[{id: 'foo'}, {id: 'bar'}] | orderBy:'id'` would result in
* `[{id: 'bar'}, {id: 'foo'}]`.
*
* The `collection` can be an Array or array-like object (e.g. NodeList, jQuery object, TypedArray,
* String, etc).
*
* The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker
* for the preceding one. The `expression` is evaluated against each item and the output is used
* for comparing with other items.
*
* You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in
* ascending order.
*
* The comparison is done using the `comparator` function. If none is specified, a default, built-in
* comparator is used (see below for details - in a nutshell, it compares numbers numerically and
* strings alphabetically).
*
* ### Under the hood
*
* Ordering the specified `collection` happens in two phases:
*
* 1. All items are passed through the predicate (or predicates), and the returned values are saved
* along with their type (`string`, `number` etc). For example, an item `{label: 'foo'}`, passed
* through a predicate that extracts the value of the `label` property, would be transformed to:
* ```
* {
* value: 'foo',
* type: 'string',
* index: ...
* }
* ```
* 2. The comparator function is used to sort the items, based on the derived values, types and
* indices.
*
* If you use a custom comparator, it will be called with pairs of objects of the form
* `{value: ..., type: '...', index: ...}` and is expected to return `0` if the objects are equal
* (as far as the comparator is concerned), `-1` if the 1st one should be ranked higher than the
* second, or `1` otherwise.
*
* In order to ensure that the sorting will be deterministic across platforms, if none of the
* specified predicates can distinguish between two items, `orderBy` will automatically introduce a
* dummy predicate that returns the item's index as `value`.
* (If you are using a custom comparator, make sure it can handle this predicate as well.)
*
* If a custom comparator still can't distinguish between two items, then they will be sorted based
* on their index using the built-in comparator.
*
* Finally, in an attempt to simplify things, if a predicate returns an object as the extracted
* value for an item, `orderBy` will try to convert that object to a primitive value, before passing
* it to the comparator. The following rules govern the conversion:
*
* 1. If the object has a `valueOf()` method that returns a primitive, its return value will be
* used instead.<br />
* (If the object has a `valueOf()` method that returns another object, then the returned object
* will be used in subsequent steps.)
* 2. If the object has a custom `toString()` method (i.e. not the one inherited from `Object`) that
* returns a primitive, its return value will be used instead.<br />
* (If the object has a `toString()` method that returns another object, then the returned object
* will be used in subsequent steps.)
* 3. No conversion; the object itself is used.
*
* ### The default comparator
*
* The default, built-in comparator should be sufficient for most usecases. In short, it compares
* numbers numerically, strings alphabetically (and case-insensitively), for objects falls back to
* using their index in the original collection, and sorts values of different types by type.
*
* More specifically, it follows these steps to determine the relative order of items:
*
* 1. If the compared values are of different types, compare the types themselves alphabetically.
* 2. If both values are of type `string`, compare them alphabetically in a case- and
* locale-insensitive way.
* 3. If both values are objects, compare their indices instead.
* 4. Otherwise, return:
* - `0`, if the values are equal (by strict equality comparison, i.e. using `===`).
* - `-1`, if the 1st value is "less than" the 2nd value (compared using the `<` operator).
* - `1`, otherwise.
*
* **Note:** If you notice numbers not being sorted as expected, make sure they are actually being
* saved as numbers and not strings.
* **Note:** For the purpose of sorting, `null` values are treated as the string `'null'` (i.e.
* `type: 'string'`, `value: 'null'`). This may cause unexpected sort order relative to
* other values.
*
* @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort.
* @param {(Function|string|Array.<Function|string>)=} expression - A predicate (or list of
* predicates) to be used by the comparator to determine the order of elements.
*
* Can be one of:
*
* - `Function`: A getter function. This function will be called with each item as argument and
* the return value will be used for sorting.
* - `string`: An Angular expression. This expression will be evaluated against each item and the
* result will be used for sorting. For example, use `'label'` to sort by a property called
* `label` or `'label.substring(0, 3)'` to sort by the first 3 characters of the `label`
* property.<br />
* (The result of a constant expression is interpreted as a property name to be used for
* comparison. For example, use `'"special name"'` (note the extra pair of quotes) to sort by a
* property called `special name`.)<br />
* An expression can be optionally prefixed with `+` or `-` to control the sorting direction,
* ascending or descending. For example, `'+label'` or `'-label'`. If no property is provided,
* (e.g. `'+'` or `'-'`), the collection element itself is used in comparisons.
* - `Array`: An array of function and/or string predicates. If a predicate cannot determine the
* relative order of two items, the next predicate is used as a tie-breaker.
*
* **Note:** If the predicate is missing or empty then it defaults to `'+'`.
*
* @param {boolean=} reverse - If `true`, reverse the sorting order.
* @param {(Function)=} comparator - The comparator function used to determine the relative order of
* value pairs. If omitted, the built-in comparator will be used.
*
* @returns {Array} - The sorted array.
*
*
* @example
* ### Ordering a table with `ngRepeat`
*
* The example below demonstrates a simple {@link ngRepeat ngRepeat}, where the data is sorted by
* age in descending order (expression is set to `'-age'`). The `comparator` is not set, which means
* it defaults to the built-in comparator.
*
<example name="orderBy-static" module="orderByExample1">
<file name="index.html">
<div ng-controller="ExampleController">
<table class="friends">
<tr>
<th>Name</th>
<th>Phone Number</th>
<th>Age</th>
</tr>
<tr ng-repeat="friend in friends | orderBy:'-age'">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
<td>{{friend.age}}</td>
</tr>
</table>
</div>
</file>
<file name="script.js">
angular.module('orderByExample1', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.friends = [
{name: 'John', phone: '555-1212', age: 10},
{name: 'Mary', phone: '555-9876', age: 19},
{name: 'Mike', phone: '555-4321', age: 21},
{name: 'Adam', phone: '555-5678', age: 35},
{name: 'Julie', phone: '555-8765', age: 29}
];
}]);
</file>
<file name="style.css">
.friends {
border-collapse: collapse;
}
.friends th {
border-bottom: 1px solid;
}
.friends td, .friends th {
border-left: 1px solid;
padding: 5px 10px;
}
.friends td:first-child, .friends th:first-child {
border-left: none;
}
</file>
<file name="protractor.js" type="protractor">
// Element locators
var names = element.all(by.repeater('friends').column('friend.name'));
it('should sort friends by age in reverse order', function() {
expect(names.get(0).getText()).toBe('Adam');
expect(names.get(1).getText()).toBe('Julie');
expect(names.get(2).getText()).toBe('Mike');
expect(names.get(3).getText()).toBe('Mary');
expect(names.get(4).getText()).toBe('John');
});
</file>
</example>
* <hr />
*
* @example
* ### Changing parameters dynamically
*
* All parameters can be changed dynamically. The next example shows how you can make the columns of
* a table sortable, by binding the `expression` and `reverse` parameters to scope properties.
*
<example name="orderBy-dynamic" module="orderByExample2">
<file name="index.html">
<div ng-controller="ExampleController">
<pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
<hr/>
<button ng-click="propertyName = null; reverse = false">Set to unsorted</button>
<hr/>
<table class="friends">
<tr>
<th>
<button ng-click="sortBy('name')">Name</button>
<span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
</th>
<th>
<button ng-click="sortBy('phone')">Phone Number</button>
<span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
</th>
<th>
<button ng-click="sortBy('age')">Age</button>
<span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
</th>
</tr>
<tr ng-repeat="friend in friends | orderBy:propertyName:reverse">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
<td>{{friend.age}}</td>
</tr>
</table>
</div>
</file>
<file name="script.js">
angular.module('orderByExample2', [])
.controller('ExampleController', ['$scope', function($scope) {
var friends = [
{name: 'John', phone: '555-1212', age: 10},
{name: 'Mary', phone: '555-9876', age: 19},
{name: 'Mike', phone: '555-4321', age: 21},
{name: 'Adam', phone: '555-5678', age: 35},
{name: 'Julie', phone: '555-8765', age: 29}
];
$scope.propertyName = 'age';
$scope.reverse = true;
$scope.friends = friends;
$scope.sortBy = function(propertyName) {
$scope.reverse = ($scope.propertyName === propertyName) ? !$scope.reverse : false;
$scope.propertyName = propertyName;
};
}]);
</file>
<file name="style.css">
.friends {
border-collapse: collapse;
}
.friends th {
border-bottom: 1px solid;
}
.friends td, .friends th {
border-left: 1px solid;
padding: 5px 10px;
}
.friends td:first-child, .friends th:first-child {
border-left: none;
}
.sortorder:after {
content: '\25b2'; // BLACK UP-POINTING TRIANGLE
}
.sortorder.reverse:after {
content: '\25bc'; // BLACK DOWN-POINTING TRIANGLE
}
</file>
<file name="protractor.js" type="protractor">
// Element locators
var unsortButton = element(by.partialButtonText('unsorted'));
var nameHeader = element(by.partialButtonText('Name'));
var phoneHeader = element(by.partialButtonText('Phone'));
var ageHeader = element(by.partialButtonText('Age'));
var firstName = element(by.repeater('friends').column('friend.name').row(0));
var lastName = element(by.repeater('friends').column('friend.name').row(4));
it('should sort friends by some property, when clicking on the column header', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
phoneHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Mary');
nameHeader.click();
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('Mike');
ageHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Adam');
});
it('should sort friends in reverse order, when clicking on the same column', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
ageHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Adam');
ageHeader.click();
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
});
it('should restore the original order, when clicking "Set to unsorted"', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
unsortButton.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Julie');
});
</file>
</example>
* <hr />
*
* @example
* ### Using `orderBy` inside a controller
*
* It is also possible to call the `orderBy` filter manually, by injecting `orderByFilter`, and
* calling it with the desired parameters. (Alternatively, you could inject the `$filter` factory
* and retrieve the `orderBy` filter with `$filter('orderBy')`.)
*
<example name="orderBy-call-manually" module="orderByExample3">
<file name="index.html">
<div ng-controller="ExampleController">
<pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
<hr/>
<button ng-click="sortBy(null)">Set to unsorted</button>
<hr/>
<table class="friends">
<tr>
<th>
<button ng-click="sortBy('name')">Name</button>
<span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
</th>
<th>
<button ng-click="sortBy('phone')">Phone Number</button>
<span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
</th>
<th>
<button ng-click="sortBy('age')">Age</button>
<span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
</th>
</tr>
<tr ng-repeat="friend in friends">
<td>{{friend.name}}</td>
<td>{{friend.phone}}</td>
<td>{{friend.age}}</td>
</tr>
</table>
</div>
</file>
<file name="script.js">
angular.module('orderByExample3', [])
.controller('ExampleController', ['$scope', 'orderByFilter', function($scope, orderBy) {
var friends = [
{name: 'John', phone: '555-1212', age: 10},
{name: 'Mary', phone: '555-9876', age: 19},
{name: 'Mike', phone: '555-4321', age: 21},
{name: 'Adam', phone: '555-5678', age: 35},
{name: 'Julie', phone: '555-8765', age: 29}
];
$scope.propertyName = 'age';
$scope.reverse = true;
$scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
$scope.sortBy = function(propertyName) {
$scope.reverse = (propertyName !== null && $scope.propertyName === propertyName)
? !$scope.reverse : false;
$scope.propertyName = propertyName;
$scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
};
}]);
</file>
<file name="style.css">
.friends {
border-collapse: collapse;
}
.friends th {
border-bottom: 1px solid;
}
.friends td, .friends th {
border-left: 1px solid;
padding: 5px 10px;
}
.friends td:first-child, .friends th:first-child {
border-left: none;
}
.sortorder:after {
content: '\25b2'; // BLACK UP-POINTING TRIANGLE
}
.sortorder.reverse:after {
content: '\25bc'; // BLACK DOWN-POINTING TRIANGLE
}
</file>
<file name="protractor.js" type="protractor">
// Element locators
var unsortButton = element(by.partialButtonText('unsorted'));
var nameHeader = element(by.partialButtonText('Name'));
var phoneHeader = element(by.partialButtonText('Phone'));
var ageHeader = element(by.partialButtonText('Age'));
var firstName = element(by.repeater('friends').column('friend.name').row(0));
var lastName = element(by.repeater('friends').column('friend.name').row(4));
it('should sort friends by some property, when clicking on the column header', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
phoneHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Mary');
nameHeader.click();
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('Mike');
ageHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Adam');
});
it('should sort friends in reverse order, when clicking on the same column', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
ageHeader.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Adam');
ageHeader.click();
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
});
it('should restore the original order, when clicking "Set to unsorted"', function() {
expect(firstName.getText()).toBe('Adam');
expect(lastName.getText()).toBe('John');
unsortButton.click();
expect(firstName.getText()).toBe('John');
expect(lastName.getText()).toBe('Julie');
});
</file>
</example>
* <hr />
*
* @example
* ### Using a custom comparator
*
* If you have very specific requirements about the way items are sorted, you can pass your own
* comparator function. For example, you might need to compare some strings in a locale-sensitive
* way. (When specifying a custom comparator, you also need to pass a value for the `reverse`
* argument - passing `false` retains the default sorting order, i.e. ascending.)
*
<example name="orderBy-custom-comparator" module="orderByExample4">
<file name="index.html">
<div ng-controller="ExampleController">
<div class="friends-container custom-comparator">
<h3>Locale-sensitive Comparator</h3>
<table class="friends">
<tr>
<th>Name</th>
<th>Favorite Letter</th>
</tr>
<tr ng-repeat="friend in friends | orderBy:'favoriteLetter':false:localeSensitiveComparator">
<td>{{friend.name}}</td>
<td>{{friend.favoriteLetter}}</td>
</tr>
</table>
</div>
<div class="friends-container default-comparator">
<h3>Default Comparator</h3>
<table class="friends">
<tr>
<th>Name</th>
<th>Favorite Letter</th>
</tr>
<tr ng-repeat="friend in friends | orderBy:'favoriteLetter'">
<td>{{friend.name}}</td>
<td>{{friend.favoriteLetter}}</td>
</tr>
</table>
</div>
</div>
</file>
<file name="script.js">
angular.module('orderByExample4', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.friends = [
{name: 'John', favoriteLetter: 'Ä'},
{name: 'Mary', favoriteLetter: 'Ü'},
{name: 'Mike', favoriteLetter: 'Ö'},
{name: 'Adam', favoriteLetter: 'H'},
{name: 'Julie', favoriteLetter: 'Z'}
];
$scope.localeSensitiveComparator = function(v1, v2) {
// If we don't get strings, just compare by index
if (v1.type !== 'string' || v2.type !== 'string') {
return (v1.index < v2.index) ? -1 : 1;
}
// Compare strings alphabetically, taking locale into account
return v1.value.localeCompare(v2.value);
};
}]);
</file>
<file name="style.css">
.friends-container {
display: inline-block;
margin: 0 30px;
}
.friends {
border-collapse: collapse;
}
.friends th {
border-bottom: 1px solid;
}
.friends td, .friends th {
border-left: 1px solid;
padding: 5px 10px;
}
.friends td:first-child, .friends th:first-child {
border-left: none;
}
</file>
<file name="protractor.js" type="protractor">
// Element locators
var container = element(by.css('.custom-comparator'));
var names = container.all(by.repeater('friends').column('friend.name'));
it('should sort friends by favorite letter (in correct alphabetical order)', function() {
expect(names.get(0).getText()).toBe('John');
expect(names.get(1).getText()).toBe('Adam');
expect(names.get(2).getText()).toBe('Mike');
expect(names.get(3).getText()).toBe('Mary');
expect(names.get(4).getText()).toBe('Julie');
});
</file>
</example>
*
*/
orderByFilter.$inject = ['$parse'];
function orderByFilter($parse) {
return function (array, sortPredicate, reverseOrder, compareFn) {
if (array == null) return array;
if (!isArrayLike(array)) {
throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array);
}
if (!isArray(sortPredicate)) {
sortPredicate = [sortPredicate];
}
if (sortPredicate.length === 0) {
sortPredicate = ['+'];
}
var predicates = processPredicates(sortPredicate);
var descending = reverseOrder ? -1 : 1;
// Define the `compare()` function. Use a default comparator if none is specified.
var compare = isFunction(compareFn) ? compareFn : defaultCompare;
// The next three lines are a version of a Swartzian Transform idiom from Perl
// (sometimes called the Decorate-Sort-Undecorate idiom)
// See https://en.wikipedia.org/wiki/Schwartzian_transform
var compareValues = Array.prototype.map.call(array, getComparisonObject);
compareValues.sort(doComparison);
array = compareValues.map(function (item) {
return item.value;
});
return array;
function getComparisonObject(value, index) {
// NOTE: We are adding an extra `tieBreaker` value based on the element's index.
// This will be used to keep the sort stable when none of the input predicates can
// distinguish between two elements.
return {
value: value,
tieBreaker: { value: index, type: 'number', index: index },
predicateValues: predicates.map(function (predicate) {
return getPredicateValue(predicate.get(value), index);
})
};
}
function doComparison(v1, v2) {
for (var i = 0, ii = predicates.length; i < ii; i++) {
var result = compare(v1.predicateValues[i], v2.predicateValues[i]);
if (result) {
return result * predicates[i].descending * descending;
}
}
return (compare(v1.tieBreaker, v2.tieBreaker) || defaultCompare(v1.tieBreaker, v2.tieBreaker)) * descending;
}
};
function processPredicates(sortPredicates) {
return sortPredicates.map(function (predicate) {
var descending = 1,
get = identity;
if (isFunction(predicate)) {
get = predicate;
} else if (isString(predicate)) {
if (predicate.charAt(0) === '+' || predicate.charAt(0) === '-') {
descending = predicate.charAt(0) === '-' ? -1 : 1;
predicate = predicate.substring(1);
}
if (predicate !== '') {
get = $parse(predicate);
if (get.constant) {
var key = get();
get = function get(value) {
return value[key];
};
}
}
}
return { get: get, descending: descending };
});
}
function isPrimitive(value) {
switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {
case 'number': /* falls through */
case 'boolean': /* falls through */
case 'string':
return true;
default:
return false;
}
}
function objectValue(value) {
// If `valueOf` is a valid function use that
if (isFunction(value.valueOf)) {
value = value.valueOf();
if (isPrimitive(value)) return value;
}
// If `toString` is a valid function and not the one from `Object.prototype` use that
if (hasCustomToString(value)) {
value = value.toString();
if (isPrimitive(value)) return value;
}
return value;
}
function getPredicateValue(value, index) {
var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);
if (value === null) {
type = 'string';
value = 'null';
} else if (type === 'object') {
value = objectValue(value);
}
return { value: value, type: type, index: index };
}
function defaultCompare(v1, v2) {
var result = 0;
var type1 = v1.type;
var type2 = v2.type;
if (type1 === type2) {
var value1 = v1.value;
var value2 = v2.value;
if (type1 === 'string') {
// Compare strings case-insensitively
value1 = value1.toLowerCase();
value2 = value2.toLowerCase();
} else if (type1 === 'object') {
// For basic objects, use the position of the object
// in the collection instead of the value
if (isObject(value1)) value1 = v1.index;
if (isObject(value2)) value2 = v2.index;
}
if (value1 !== value2) {
result = value1 < value2 ? -1 : 1;
}
} else {
result = type1 < type2 ? -1 : 1;
}
return result;
}
}
function ngDirective(directive) {
if (isFunction(directive)) {
directive = {
link: directive
};
}
directive.restrict = directive.restrict || 'AC';
return valueFn(directive);
}
/**
* @ngdoc directive
* @name a
* @restrict E
*
* @description
* Modifies the default behavior of the html a tag so that the default action is prevented when
* the href attribute is empty.
*
* For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
*/
var htmlAnchorDirective = valueFn({
restrict: 'E',
compile: function compile(element, attr) {
if (!attr.href && !attr.xlinkHref) {
return function (scope, element) {
// If the linked element is not an anchor tag anymore, do nothing
if (element[0].nodeName.toLowerCase() !== 'a') return;
// SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ? 'xlink:href' : 'href';
element.on('click', function (event) {
// if we have no href url, then don't navigate anywhere.
if (!element.attr(href)) {
event.preventDefault();
}
});
};
}
}
});
/**
* @ngdoc directive
* @name ngHref
* @restrict A
* @priority 99
*
* @description
* Using Angular markup like `{{hash}}` in an href attribute will
* make the link go to the wrong URL if the user clicks it before
* Angular has a chance to replace the `{{hash}}` markup with its
* value. Until Angular replaces the markup the link will be broken
* and will most likely return a 404 error. The `ngHref` directive
* solves this problem.
*
* The wrong way to write it:
* ```html
* <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
* ```
*
* The correct way to write it:
* ```html
* <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
* ```
*
* @element A
* @param {template} ngHref any string which can contain `{{}}` markup.
*
* @example
* This example shows various combinations of `href`, `ng-href` and `ng-click` attributes
* in links and their different behaviors:
<example name="ng-href">
<file name="index.html">
<input ng-model="value" /><br />
<a id="link-1" href ng-click="value = 1">link 1</a> (link, don't reload)<br />
<a id="link-2" href="" ng-click="value = 2">link 2</a> (link, don't reload)<br />
<a id="link-3" ng-href="/{{'123'}}">link 3</a> (link, reload!)<br />
<a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
<a id="link-5" name="xxx" ng-click="value = 5">anchor</a> (no link)<br />
<a id="link-6" ng-href="{{value}}">link</a> (link, change location)
</file>
<file name="protractor.js" type="protractor">
it('should execute ng-click but not reload when href without value', function() {
element(by.id('link-1')).click();
expect(element(by.model('value')).getAttribute('value')).toEqual('1');
expect(element(by.id('link-1')).getAttribute('href')).toBe('');
});
it('should execute ng-click but not reload when href empty string', function() {
element(by.id('link-2')).click();
expect(element(by.model('value')).getAttribute('value')).toEqual('2');
expect(element(by.id('link-2')).getAttribute('href')).toBe('');
});
it('should execute ng-click and change url when ng-href specified', function() {
expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\/123$/);
element(by.id('link-3')).click();
// At this point, we navigate away from an Angular page, so we need
// to use browser.driver to get the base webdriver.
browser.wait(function() {
return browser.driver.getCurrentUrl().then(function(url) {
return url.match(/\/123$/);
});
}, 5000, 'page should navigate to /123');
});
it('should execute ng-click but not reload when href empty string and name specified', function() {
element(by.id('link-4')).click();
expect(element(by.model('value')).getAttribute('value')).toEqual('4');
expect(element(by.id('link-4')).getAttribute('href')).toBe('');
});
it('should execute ng-click but not reload when no href but name specified', function() {
element(by.id('link-5')).click();
expect(element(by.model('value')).getAttribute('value')).toEqual('5');
expect(element(by.id('link-5')).getAttribute('href')).toBe(null);
});
it('should only change url when only ng-href', function() {
element(by.model('value')).clear();
element(by.model('value')).sendKeys('6');
expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/);
element(by.id('link-6')).click();
// At this point, we navigate away from an Angular page, so we need
// to use browser.driver to get the base webdriver.
browser.wait(function() {
return browser.driver.getCurrentUrl().then(function(url) {
return url.match(/\/6$/);
});
}, 5000, 'page should navigate to /6');
});
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngSrc
* @restrict A
* @priority 99
*
* @description
* Using Angular markup like `{{hash}}` in a `src` attribute doesn't
* work right: The browser will fetch from the URL with the literal
* text `{{hash}}` until Angular replaces the expression inside
* `{{hash}}`. The `ngSrc` directive solves this problem.
*
* The buggy way to write it:
* ```html
* <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/>
* ```
*
* The correct way to write it:
* ```html
* <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" />
* ```
*
* @element IMG
* @param {template} ngSrc any string which can contain `{{}}` markup.
*/
/**
* @ngdoc directive
* @name ngSrcset
* @restrict A
* @priority 99
*
* @description
* Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't
* work right: The browser will fetch from the URL with the literal
* text `{{hash}}` until Angular replaces the expression inside
* `{{hash}}`. The `ngSrcset` directive solves this problem.
*
* The buggy way to write it:
* ```html
* <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/>
* ```
*
* The correct way to write it:
* ```html
* <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />
* ```
*
* @element IMG
* @param {template} ngSrcset any string which can contain `{{}}` markup.
*/
/**
* @ngdoc directive
* @name ngDisabled
* @restrict A
* @priority 100
*
* @description
*
* This directive sets the `disabled` attribute on the element (typically a form control,
* e.g. `input`, `button`, `select` etc.) if the
* {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
*
* A special directive is necessary because we cannot use interpolation inside the `disabled`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* @example
<example name="ng-disabled">
<file name="index.html">
<label>Click me to toggle: <input type="checkbox" ng-model="checked"></label><br/>
<button ng-model="button" ng-disabled="checked">Button</button>
</file>
<file name="protractor.js" type="protractor">
it('should toggle button', function() {
expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
element(by.model('checked')).click();
expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
});
</file>
</example>
*
* @element INPUT
* @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
* then the `disabled` attribute will be set on the element
*/
/**
* @ngdoc directive
* @name ngChecked
* @restrict A
* @priority 100
*
* @description
* Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
*
* Note that this directive should not be used together with {@link ngModel `ngModel`},
* as this can lead to unexpected behavior.
*
* A special directive is necessary because we cannot use interpolation inside the `checked`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* @example
<example name="ng-checked">
<file name="index.html">
<label>Check me to check both: <input type="checkbox" ng-model="leader"></label><br/>
<input id="checkFollower" type="checkbox" ng-checked="leader" aria-label="Follower input">
</file>
<file name="protractor.js" type="protractor">
it('should check both checkBoxes', function() {
expect(element(by.id('checkFollower')).getAttribute('checked')).toBeFalsy();
element(by.model('leader')).click();
expect(element(by.id('checkFollower')).getAttribute('checked')).toBeTruthy();
});
</file>
</example>
*
* @element INPUT
* @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
* then the `checked` attribute will be set on the element
*/
/**
* @ngdoc directive
* @name ngReadonly
* @restrict A
* @priority 100
*
* @description
*
* Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.
* Note that `readonly` applies only to `input` elements with specific types. [See the input docs on
* MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.
*
* A special directive is necessary because we cannot use interpolation inside the `readonly`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* @example
<example name="ng-readonly">
<file name="index.html">
<label>Check me to make text readonly: <input type="checkbox" ng-model="checked"></label><br/>
<input type="text" ng-readonly="checked" value="I'm Angular" aria-label="Readonly field" />
</file>
<file name="protractor.js" type="protractor">
it('should toggle readonly attr', function() {
expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
element(by.model('checked')).click();
expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
});
</file>
</example>
*
* @element INPUT
* @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
* then special attribute "readonly" will be set on the element
*/
/**
* @ngdoc directive
* @name ngSelected
* @restrict A
* @priority 100
*
* @description
*
* Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.
*
* A special directive is necessary because we cannot use interpolation inside the `selected`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* <div class="alert alert-warning">
* **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only
* sets the `selected` attribute on the element. If you are using `ngModel` on the select, you
* should not use `ngSelected` on the options, as `ngModel` will set the select value and
* selected options.
* </div>
*
* @example
<example name="ng-selected">
<file name="index.html">
<label>Check me to select: <input type="checkbox" ng-model="selected"></label><br/>
<select aria-label="ngSelected demo">
<option>Hello!</option>
<option id="greet" ng-selected="selected">Greetings!</option>
</select>
</file>
<file name="protractor.js" type="protractor">
it('should select Greetings!', function() {
expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();
element(by.model('selected')).click();
expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();
});
</file>
</example>
*
* @element OPTION
* @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
* then special attribute "selected" will be set on the element
*/
/**
* @ngdoc directive
* @name ngOpen
* @restrict A
* @priority 100
*
* @description
*
* Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.
*
* A special directive is necessary because we cannot use interpolation inside the `open`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* ## A note about browser compatibility
*
* Internet Explorer and Edge do not support the `details` element, it is
* recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
*
* @example
<example name="ng-open">
<file name="index.html">
<label>Toggle details: <input type="checkbox" ng-model="open"></label><br/>
<details id="details" ng-open="open">
<summary>List</summary>
<ul>
<li>Apple</li>
<li>Orange</li>
<li>Durian</li>
</ul>
</details>
</file>
<file name="protractor.js" type="protractor">
it('should toggle open', function() {
expect(element(by.id('details')).getAttribute('open')).toBeFalsy();
element(by.model('open')).click();
expect(element(by.id('details')).getAttribute('open')).toBeTruthy();
});
</file>
</example>
*
* @element DETAILS
* @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
* then special attribute "open" will be set on the element
*/
var ngAttributeAliasDirectives = {};
// boolean attrs are evaluated
forEach(BOOLEAN_ATTR, function (propName, attrName) {
// binding to multiple is not supported
if (propName === 'multiple') return;
function defaultLinkFn(scope, element, attr) {
scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {
attr.$set(attrName, !!value);
});
}
var normalized = directiveNormalize('ng-' + attrName);
var linkFn = defaultLinkFn;
if (propName === 'checked') {
linkFn = function linkFn(scope, element, attr) {
// ensuring ngChecked doesn't interfere with ngModel when both are set on the same input
if (attr.ngModel !== attr[normalized]) {
defaultLinkFn(scope, element, attr);
}
};
}
ngAttributeAliasDirectives[normalized] = function () {
return {
restrict: 'A',
priority: 100,
link: linkFn
};
};
});
// aliased input attrs are evaluated
forEach(ALIASED_ATTR, function (htmlAttr, ngAttr) {
ngAttributeAliasDirectives[ngAttr] = function () {
return {
priority: 100,
link: function link(scope, element, attr) {
//special case ngPattern when a literal regular expression value
//is used as the expression (this way we don't have to watch anything).
if (ngAttr === 'ngPattern' && attr.ngPattern.charAt(0) === '/') {
var match = attr.ngPattern.match(REGEX_STRING_REGEXP);
if (match) {
attr.$set('ngPattern', new RegExp(match[1], match[2]));
return;
}
}
scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {
attr.$set(ngAttr, value);
});
}
};
};
});
// ng-src, ng-srcset, ng-href are interpolated
forEach(['src', 'srcset', 'href'], function (attrName) {
var normalized = directiveNormalize('ng-' + attrName);
ngAttributeAliasDirectives[normalized] = function () {
return {
priority: 99, // it needs to run after the attributes are interpolated
link: function link(scope, element, attr) {
var propName = attrName,
name = attrName;
if (attrName === 'href' && toString.call(element.prop('href')) === '[object SVGAnimatedString]') {
name = 'xlinkHref';
attr.$attr[name] = 'xlink:href';
propName = null;
}
attr.$observe(normalized, function (value) {
if (!value) {
if (attrName === 'href') {
attr.$set(name, null);
}
return;
}
attr.$set(name, value);
// Support: IE 9-11 only
// On IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist
// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
// to set the property as well to achieve the desired effect.
// We use attr[attrName] value since $set can sanitize the url.
if (msie && propName) element.prop(propName, attr[name]);
});
}
};
};
});
/* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS
*/
var nullFormCtrl = {
$addControl: noop,
$$renameControl: nullFormRenameControl,
$removeControl: noop,
$setValidity: noop,
$setDirty: noop,
$setPristine: noop,
$setSubmitted: noop
},
PENDING_CLASS = 'ng-pending',
SUBMITTED_CLASS = 'ng-submitted';
function nullFormRenameControl(control, name) {
control.$name = name;
}
/**
* @ngdoc type
* @name form.FormController
*
* @property {boolean} $pristine True if user has not interacted with the form yet.
* @property {boolean} $dirty True if user has already interacted with the form.
* @property {boolean} $valid True if all of the containing forms and controls are valid.
* @property {boolean} $invalid True if at least one containing control or form is invalid.
* @property {boolean} $submitted True if user has submitted the form even if its invalid.
*
* @property {Object} $pending An object hash, containing references to controls or forms with
* pending validators, where:
*
* - keys are validations tokens (error names).
* - values are arrays of controls or forms that have a pending validator for the given error name.
*
* See {@link form.FormController#$error $error} for a list of built-in validation tokens.
*
* @property {Object} $error An object hash, containing references to controls or forms with failing
* validators, where:
*
* - keys are validation tokens (error names),
* - values are arrays of controls or forms that have a failing validator for the given error name.
*
* Built-in validation tokens:
* - `email`
* - `max`
* - `maxlength`
* - `min`
* - `minlength`
* - `number`
* - `pattern`
* - `required`
* - `url`
* - `date`
* - `datetimelocal`
* - `time`
* - `week`
* - `month`
*
* @description
* `FormController` keeps track of all its controls and nested forms as well as the state of them,
* such as being valid/invalid or dirty/pristine.
*
* Each {@link ng.directive:form form} directive creates an instance
* of `FormController`.
*
*/
//asks for $scope to fool the BC controller module
FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
function FormController($element, $attrs, $scope, $animate, $interpolate) {
this.$$controls = [];
// init state
this.$error = {};
this.$$success = {};
this.$pending = undefined;
this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope);
this.$dirty = false;
this.$pristine = true;
this.$valid = true;
this.$invalid = false;
this.$submitted = false;
this.$$parentForm = nullFormCtrl;
this.$$element = $element;
this.$$animate = $animate;
setupValidity(this);
}
FormController.prototype = {
/**
* @ngdoc method
* @name form.FormController#$rollbackViewValue
*
* @description
* Rollback all form controls pending updates to the `$modelValue`.
*
* Updates may be pending by a debounced event or because the input is waiting for a some future
* event defined in `ng-model-options`. This method is typically needed by the reset button of
* a form that uses `ng-model-options` to pend updates.
*/
$rollbackViewValue: function $rollbackViewValue() {
forEach(this.$$controls, function (control) {
control.$rollbackViewValue();
});
},
/**
* @ngdoc method
* @name form.FormController#$commitViewValue
*
* @description
* Commit all form controls pending updates to the `$modelValue`.
*
* Updates may be pending by a debounced event or because the input is waiting for a some future
* event defined in `ng-model-options`. This method is rarely needed as `NgModelController`
* usually handles calling this in response to input events.
*/
$commitViewValue: function $commitViewValue() {
forEach(this.$$controls, function (control) {
control.$commitViewValue();
});
},
/**
* @ngdoc method
* @name form.FormController#$addControl
* @param {object} control control object, either a {@link form.FormController} or an
* {@link ngModel.NgModelController}
*
* @description
* Register a control with the form. Input elements using ngModelController do this automatically
* when they are linked.
*
* Note that the current state of the control will not be reflected on the new parent form. This
* is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`
* state.
*
* However, if the method is used programmatically, for example by adding dynamically created controls,
* or controls that have been previously removed without destroying their corresponding DOM element,
* it's the developers responsibility to make sure the current state propagates to the parent form.
*
* For example, if an input control is added that is already `$dirty` and has `$error` properties,
* calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.
*/
$addControl: function $addControl(control) {
// Breaking change - before, inputs whose name was "hasOwnProperty" were quietly ignored
// and not added to the scope. Now we throw an error.
assertNotHasOwnProperty(control.$name, 'input');
this.$$controls.push(control);
if (control.$name) {
this[control.$name] = control;
}
control.$$parentForm = this;
},
// Private API: rename a form control
$$renameControl: function $$renameControl(control, newName) {
var oldName = control.$name;
if (this[oldName] === control) {
delete this[oldName];
}
this[newName] = control;
control.$name = newName;
},
/**
* @ngdoc method
* @name form.FormController#$removeControl
* @param {object} control control object, either a {@link form.FormController} or an
* {@link ngModel.NgModelController}
*
* @description
* Deregister a control from the form.
*
* Input elements using ngModelController do this automatically when they are destroyed.
*
* Note that only the removed control's validation state (`$errors`etc.) will be removed from the
* form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
* different from case to case. For example, removing the only `$dirty` control from a form may or
* may not mean that the form is still `$dirty`.
*/
$removeControl: function $removeControl(control) {
if (control.$name && this[control.$name] === control) {
delete this[control.$name];
}
forEach(this.$pending, function (value, name) {
// eslint-disable-next-line no-invalid-this
this.$setValidity(name, null, control);
}, this);
forEach(this.$error, function (value, name) {
// eslint-disable-next-line no-invalid-this
this.$setValidity(name, null, control);
}, this);
forEach(this.$$success, function (value, name) {
// eslint-disable-next-line no-invalid-this
this.$setValidity(name, null, control);
}, this);
arrayRemove(this.$$controls, control);
control.$$parentForm = nullFormCtrl;
},
/**
* @ngdoc method
* @name form.FormController#$setDirty
*
* @description
* Sets the form to a dirty state.
*
* This method can be called to add the 'ng-dirty' class and set the form to a dirty
* state (ng-dirty class). This method will also propagate to parent forms.
*/
$setDirty: function $setDirty() {
this.$$animate.removeClass(this.$$element, PRISTINE_CLASS);
this.$$animate.addClass(this.$$element, DIRTY_CLASS);
this.$dirty = true;
this.$pristine = false;
this.$$parentForm.$setDirty();
},
/**
* @ngdoc method
* @name form.FormController#$setPristine
*
* @description
* Sets the form to its pristine state.
*
* This method sets the form's `$pristine` state to true, the `$dirty` state to false, removes
* the `ng-dirty` class and adds the `ng-pristine` class. Additionally, it sets the `$submitted`
* state to false.
*
* This method will also propagate to all the controls contained in this form.
*
* Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
* saving or resetting it.
*/
$setPristine: function $setPristine() {
this.$$animate.setClass(this.$$element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);
this.$dirty = false;
this.$pristine = true;
this.$submitted = false;
forEach(this.$$controls, function (control) {
control.$setPristine();
});
},
/**
* @ngdoc method
* @name form.FormController#$setUntouched
*
* @description
* Sets the form to its untouched state.
*
* This method can be called to remove the 'ng-touched' class and set the form controls to their
* untouched state (ng-untouched class).
*
* Setting a form controls back to their untouched state is often useful when setting the form
* back to its pristine state.
*/
$setUntouched: function $setUntouched() {
forEach(this.$$controls, function (control) {
control.$setUntouched();
});
},
/**
* @ngdoc method
* @name form.FormController#$setSubmitted
*
* @description
* Sets the form to its submitted state.
*/
$setSubmitted: function $setSubmitted() {
this.$$animate.addClass(this.$$element, SUBMITTED_CLASS);
this.$submitted = true;
this.$$parentForm.$setSubmitted();
}
};
/**
* @ngdoc method
* @name form.FormController#$setValidity
*
* @description
* Change the validity state of the form, and notify the parent form (if any).
*
* Application developers will rarely need to call this method directly. It is used internally, by
* {@link ngModel.NgModelController#$setValidity NgModelController.$setValidity()}, to propagate a
* control's validity state to the parent `FormController`.
*
* @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be
* assigned to either `$error[validationErrorKey]` or `$pending[validationErrorKey]` (for
* unfulfilled `$asyncValidators`), so that it is available for data-binding. The
* `validationErrorKey` should be in camelCase and will get converted into dash-case for
* class name. Example: `myError` will result in `ng-valid-my-error` and
* `ng-invalid-my-error` classes and can be bound to as `{{ someForm.$error.myError }}`.
* @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending
* (undefined), or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
* Skipped is used by AngularJS when validators do not run because of parse errors and when
* `$asyncValidators` do not run because any of the `$validators` failed.
* @param {NgModelController | FormController} controller - The controller whose validity state is
* triggering the change.
*/
addSetValidityMethod({
clazz: FormController,
set: function set(object, property, controller) {
var list = object[property];
if (!list) {
object[property] = [controller];
} else {
var index = list.indexOf(controller);
if (index === -1) {
list.push(controller);
}
}
},
unset: function unset(object, property, controller) {
var list = object[property];
if (!list) {
return;
}
arrayRemove(list, controller);
if (list.length === 0) {
delete object[property];
}
}
});
/**
* @ngdoc directive
* @name ngForm
* @restrict EAC
*
* @description
* Nestable alias of {@link ng.directive:form `form`} directive. HTML
* does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
* sub-group of controls needs to be determined.
*
* Note: the purpose of `ngForm` is to group controls,
* but not to be a replacement for the `<form>` tag with all of its capabilities
* (e.g. posting to the server, ...).
*
* @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into
* related scope, under this name.
*
*/
/**
* @ngdoc directive
* @name form
* @restrict E
*
* @description
* Directive that instantiates
* {@link form.FormController FormController}.
*
* If the `name` attribute is specified, the form controller is published onto the current scope under
* this name.
*
* ## Alias: {@link ng.directive:ngForm `ngForm`}
*
* In Angular, forms can be nested. This means that the outer form is valid when all of the child
* forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so
* Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to
* `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group
* of controls needs to be determined.
*
* ## CSS classes
* - `ng-valid` is set if the form is valid.
* - `ng-invalid` is set if the form is invalid.
* - `ng-pending` is set if the form is pending.
* - `ng-pristine` is set if the form is pristine.
* - `ng-dirty` is set if the form is dirty.
* - `ng-submitted` is set if the form was submitted.
*
* Keep in mind that ngAnimate can detect each of these classes when added and removed.
*
*
* ## Submitting a form and preventing the default action
*
* Since the role of forms in client-side Angular applications is different than in classical
* roundtrip apps, it is desirable for the browser not to translate the form submission into a full
* page reload that sends the data to the server. Instead some javascript logic should be triggered
* to handle the form submission in an application-specific way.
*
* For this reason, Angular prevents the default action (form submission to the server) unless the
* `<form>` element has an `action` attribute specified.
*
* You can use one of the following two ways to specify what javascript method should be called when
* a form is submitted:
*
* - {@link ng.directive:ngSubmit ngSubmit} directive on the form element
* - {@link ng.directive:ngClick ngClick} directive on the first
* button or input field of type submit (input[type=submit])
*
* To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}
* or {@link ng.directive:ngClick ngClick} directives.
* This is because of the following form submission rules in the HTML specification:
*
* - If a form has only one input field then hitting enter in this field triggers form submit
* (`ngSubmit`)
* - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter
* doesn't trigger submit
* - if a form has one or more input fields and one or more buttons or input[type=submit] then
* hitting enter in any of the input fields will trigger the click handler on the *first* button or
* input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)
*
* Any pending `ngModelOptions` changes will take place immediately when an enclosing form is
* submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
* to have access to the updated model.
*
* @animations
* Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
* These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
* other validations that are performed within the form. Animations in ngForm are similar to how
* they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
* as JS animations.
*
* The following example shows a simple way to utilize CSS transitions to style a form element
* that has been rendered as invalid after it has been validated:
*
* <pre>
* //be sure to include ngAnimate as a module to hook into more
* //advanced animations
* .my-form {
* transition:0.5s linear all;
* background: white;
* }
* .my-form.ng-invalid {
* background: red;
* color:white;
* }
* </pre>
*
* @example
<example name="ng-form" deps="angular-animate.js" animations="true" fixBase="true" module="formExample">
<file name="index.html">
<script>
angular.module('formExample', [])
.controller('FormController', ['$scope', function($scope) {
$scope.userType = 'guest';
}]);
</script>
<style>
.my-form {
transition:all linear 0.5s;
background: transparent;
}
.my-form.ng-invalid {
background: red;
}
</style>
<form name="myForm" ng-controller="FormController" class="my-form">
userType: <input name="input" ng-model="userType" required>
<span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
<code>userType = {{userType}}</code><br>
<code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>
<code>myForm.input.$error = {{myForm.input.$error}}</code><br>
<code>myForm.$valid = {{myForm.$valid}}</code><br>
<code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>
</form>
</file>
<file name="protractor.js" type="protractor">
it('should initialize to model', function() {
var userType = element(by.binding('userType'));
var valid = element(by.binding('myForm.input.$valid'));
expect(userType.getText()).toContain('guest');
expect(valid.getText()).toContain('true');
});
it('should be invalid if empty', function() {
var userType = element(by.binding('userType'));
var valid = element(by.binding('myForm.input.$valid'));
var userInput = element(by.model('userType'));
userInput.clear();
userInput.sendKeys('');
expect(userType.getText()).toEqual('userType =');
expect(valid.getText()).toContain('false');
});
</file>
</example>
*
* @param {string=} name Name of the form. If specified, the form controller will be published into
* related scope, under this name.
*/
var formDirectiveFactory = function formDirectiveFactory(isNgForm) {
return ['$timeout', '$parse', function ($timeout, $parse) {
var formDirective = {
name: 'form',
restrict: isNgForm ? 'EAC' : 'E',
require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form
controller: FormController,
compile: function ngFormCompile(formElement, attr) {
// Setup initial state of the control
formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);
var nameAttr = attr.name ? 'name' : isNgForm && attr.ngForm ? 'ngForm' : false;
return {
pre: function ngFormPreLink(scope, formElement, attr, ctrls) {
var controller = ctrls[0];
// if `action` attr is not present on the form, prevent the default action (submission)
if (!('action' in attr)) {
// we can't use jq events because if a form is destroyed during submission the default
// action is not prevented. see #1238
//
// IE 9 is not affected because it doesn't fire a submit event and try to do a full
// page reload if the form was destroyed by submission of the form via a click handler
// on a button in the form. Looks like an IE9 specific bug.
var handleFormSubmission = function handleFormSubmission(event) {
scope.$apply(function () {
controller.$commitViewValue();
controller.$setSubmitted();
});
event.preventDefault();
};
formElement[0].addEventListener('submit', handleFormSubmission);
// unregister the preventDefault listener so that we don't not leak memory but in a
// way that will achieve the prevention of the default action.
formElement.on('$destroy', function () {
$timeout(function () {
formElement[0].removeEventListener('submit', handleFormSubmission);
}, 0, false);
});
}
var parentFormCtrl = ctrls[1] || controller.$$parentForm;
parentFormCtrl.$addControl(controller);
var setter = nameAttr ? getSetter(controller.$name) : noop;
if (nameAttr) {
setter(scope, controller);
attr.$observe(nameAttr, function (newValue) {
if (controller.$name === newValue) return;
setter(scope, undefined);
controller.$$parentForm.$$renameControl(controller, newValue);
setter = getSetter(controller.$name);
setter(scope, controller);
});
}
formElement.on('$destroy', function () {
controller.$$parentForm.$removeControl(controller);
setter(scope, undefined);
extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards
});
}
};
}
};
return formDirective;
function getSetter(expression) {
if (expression === '') {
//create an assignable expression, so forms with an empty name can be renamed later
return $parse('this[""]').assign;
}
return $parse(expression).assign || noop;
}
}];
};
var formDirective = formDirectiveFactory();
var ngFormDirective = formDirectiveFactory(true);
// helper methods
function setupValidity(instance) {
instance.$$classCache = {};
instance.$$classCache[INVALID_CLASS] = !(instance.$$classCache[VALID_CLASS] = instance.$$element.hasClass(VALID_CLASS));
}
function addSetValidityMethod(context) {
var clazz = context.clazz,
set = context.set,
unset = context.unset;
clazz.prototype.$setValidity = function (validationErrorKey, state, controller) {
if (isUndefined(state)) {
createAndSet(this, '$pending', validationErrorKey, controller);
} else {
unsetAndCleanup(this, '$pending', validationErrorKey, controller);
}
if (!isBoolean(state)) {
unset(this.$error, validationErrorKey, controller);
unset(this.$$success, validationErrorKey, controller);
} else {
if (state) {
unset(this.$error, validationErrorKey, controller);
set(this.$$success, validationErrorKey, controller);
} else {
set(this.$error, validationErrorKey, controller);
unset(this.$$success, validationErrorKey, controller);
}
}
if (this.$pending) {
cachedToggleClass(this, PENDING_CLASS, true);
this.$valid = this.$invalid = undefined;
toggleValidationCss(this, '', null);
} else {
cachedToggleClass(this, PENDING_CLASS, false);
this.$valid = isObjectEmpty(this.$error);
this.$invalid = !this.$valid;
toggleValidationCss(this, '', this.$valid);
}
// re-read the state as the set/unset methods could have
// combined state in this.$error[validationError] (used for forms),
// where setting/unsetting only increments/decrements the value,
// and does not replace it.
var combinedState;
if (this.$pending && this.$pending[validationErrorKey]) {
combinedState = undefined;
} else if (this.$error[validationErrorKey]) {
combinedState = false;
} else if (this.$$success[validationErrorKey]) {
combinedState = true;
} else {
combinedState = null;
}
toggleValidationCss(this, validationErrorKey, combinedState);
this.$$parentForm.$setValidity(validationErrorKey, combinedState, this);
};
function createAndSet(ctrl, name, value, controller) {
if (!ctrl[name]) {
ctrl[name] = {};
}
set(ctrl[name], value, controller);
}
function unsetAndCleanup(ctrl, name, value, controller) {
if (ctrl[name]) {
unset(ctrl[name], value, controller);
}
if (isObjectEmpty(ctrl[name])) {
ctrl[name] = undefined;
}
}
function cachedToggleClass(ctrl, className, switchValue) {
if (switchValue && !ctrl.$$classCache[className]) {
ctrl.$$animate.addClass(ctrl.$$element, className);
ctrl.$$classCache[className] = true;
} else if (!switchValue && ctrl.$$classCache[className]) {
ctrl.$$animate.removeClass(ctrl.$$element, className);
ctrl.$$classCache[className] = false;
}
}
function toggleValidationCss(ctrl, validationErrorKey, isValid) {
validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true);
cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false);
}
}
function isObjectEmpty(obj) {
if (obj) {
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
return false;
}
}
}
return true;
}
/* global
VALID_CLASS: false,
INVALID_CLASS: false,
PRISTINE_CLASS: false,
DIRTY_CLASS: false,
ngModelMinErr: false
*/
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
var ISO_DATE_REGEXP = /^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;
// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)
// Note: We are being more lenient, because browsers are too.
// 1. Scheme
// 2. Slashes
// 3. Username
// 4. Password
// 5. Hostname
// 6. Port
// 7. Path
// 8. Query
// 9. Fragment
// 1111111111111111 222 333333 44444 55555555555555555555555 666 77777777 8888888 999
var URL_REGEXP = /^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i;
// eslint-disable-next-line max-len
var EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;
var NUMBER_REGEXP = /^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;
var DATE_REGEXP = /^(\d{4,})-(\d{2})-(\d{2})$/;
var DATETIMELOCAL_REGEXP = /^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
var WEEK_REGEXP = /^(\d{4,})-W(\d\d)$/;
var MONTH_REGEXP = /^(\d{4,})-(\d\d)$/;
var TIME_REGEXP = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
var PARTIAL_VALIDATION_EVENTS = 'keydown wheel mousedown';
var PARTIAL_VALIDATION_TYPES = createMap();
forEach('date,datetime-local,month,time,week'.split(','), function (type) {
PARTIAL_VALIDATION_TYPES[type] = true;
});
var inputType = {
/**
* @ngdoc input
* @name input[text]
*
* @description
* Standard HTML text input with angular data binding, inherited by most of the `input` elements.
*
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Adds `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
* any length.
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
* that contains the regular expression body that will be converted to a regular expression
* as in the ngPattern directive.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
* This parameter is ignored for input[type=password] controls, which will never trim the
* input.
*
* @example
<example name="text-input-directive" module="textInputExample">
<file name="index.html">
<script>
angular.module('textInputExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.example = {
text: 'guest',
word: /^\s*\w*\s*$/
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>Single word:
<input type="text" name="input" ng-model="example.text"
ng-pattern="example.word" required ng-trim="false">
</label>
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.pattern">
Single word only!</span>
</div>
<code>text = {{example.text}}</code><br/>
<code>myForm.input.$valid = {{myForm.input.$valid}}</code><br/>
<code>myForm.input.$error = {{myForm.input.$error}}</code><br/>
<code>myForm.$valid = {{myForm.$valid}}</code><br/>
<code>myForm.$error.required = {{!!myForm.$error.required}}</code><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var text = element(by.binding('example.text'));
var valid = element(by.binding('myForm.input.$valid'));
var input = element(by.model('example.text'));
it('should initialize to model', function() {
expect(text.getText()).toContain('guest');
expect(valid.getText()).toContain('true');
});
it('should be invalid if empty', function() {
input.clear();
input.sendKeys('');
expect(text.getText()).toEqual('text =');
expect(valid.getText()).toContain('false');
});
it('should be invalid if multi word', function() {
input.clear();
input.sendKeys('hello world');
expect(valid.getText()).toContain('false');
});
</file>
</example>
*/
'text': textInputType,
/**
* @ngdoc input
* @name input[date]
*
* @description
* Input with date validation and transformation. In browsers that do not yet support
* the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601
* date format (yyyy-MM-dd), for example: `2009-01-06`. Since many
* modern browsers do not yet support this input type, it is important to provide cues to users on the
* expected input format via a placeholder or label.
*
* The model must always be a Date object, otherwise Angular will throw an error.
* Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
*
* The timezone to be used to read/write the `Date` instance in the model can be defined using
* {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a
* valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
* (e.g. `min="{{minDate | date:'yyyy-MM-dd'}}"`). Note that `min` will also add native HTML5
* constraint validation.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be
* a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
* (e.g. `max="{{maxDate | date:'yyyy-MM-dd'}}"`). Note that `max` will also add native HTML5
* constraint validation.
* @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string
* the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
* @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string
* the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="date-input-directive" module="dateInputExample">
<file name="index.html">
<script>
angular.module('dateInputExample', [])
.controller('DateController', ['$scope', function($scope) {
$scope.example = {
value: new Date(2013, 9, 22)
};
}]);
</script>
<form name="myForm" ng-controller="DateController as dateCtrl">
<label for="exampleInput">Pick a date in 2013:</label>
<input type="date" id="exampleInput" name="input" ng-model="example.value"
placeholder="yyyy-MM-dd" min="2013-01-01" max="2013-12-31" required />
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.date">
Not a valid date!</span>
</div>
<tt>value = {{example.value | date: "yyyy-MM-dd"}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value | date: "yyyy-MM-dd"'));
var valid = element(by.binding('myForm.input.$valid'));
// currently protractor/webdriver does not support
// sending keys to all known HTML5 input controls
// for various browsers (see https://github.com/angular/protractor/issues/562).
function setInput(val) {
// set the value of the element and force validation.
var scr = "var ipt = document.getElementById('exampleInput'); " +
"ipt.value = '" + val + "';" +
"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
browser.executeScript(scr);
}
it('should initialize to model', function() {
expect(value.getText()).toContain('2013-10-22');
expect(valid.getText()).toContain('myForm.input.$valid = true');
});
it('should be invalid if empty', function() {
setInput('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
it('should be invalid if over max', function() {
setInput('2015-01-01');
expect(value.getText()).toContain('');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
</file>
</example>
*/
'date': createDateInputType('date', DATE_REGEXP, createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']), 'yyyy-MM-dd'),
/**
* @ngdoc input
* @name input[datetime-local]
*
* @description
* Input with datetime validation and transformation. In browsers that do not yet support
* the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
* local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.
*
* The model must always be a Date object, otherwise Angular will throw an error.
* Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
*
* The timezone to be used to read/write the `Date` instance in the model can be defined using
* {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
* inside this attribute (e.g. `min="{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
* Note that `min` will also add native HTML5 constraint validation.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
* inside this attribute (e.g. `max="{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
* Note that `max` will also add native HTML5 constraint validation.
* @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string
* the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
* @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string
* the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="datetimelocal-input-directive" module="dateExample">
<file name="index.html">
<script>
angular.module('dateExample', [])
.controller('DateController', ['$scope', function($scope) {
$scope.example = {
value: new Date(2010, 11, 28, 14, 57)
};
}]);
</script>
<form name="myForm" ng-controller="DateController as dateCtrl">
<label for="exampleInput">Pick a date between in 2013:</label>
<input type="datetime-local" id="exampleInput" name="input" ng-model="example.value"
placeholder="yyyy-MM-ddTHH:mm:ss" min="2001-01-01T00:00:00" max="2013-12-31T00:00:00" required />
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.datetimelocal">
Not a valid date!</span>
</div>
<tt>value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value | date: "yyyy-MM-ddTHH:mm:ss"'));
var valid = element(by.binding('myForm.input.$valid'));
// currently protractor/webdriver does not support
// sending keys to all known HTML5 input controls
// for various browsers (https://github.com/angular/protractor/issues/562).
function setInput(val) {
// set the value of the element and force validation.
var scr = "var ipt = document.getElementById('exampleInput'); " +
"ipt.value = '" + val + "';" +
"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
browser.executeScript(scr);
}
it('should initialize to model', function() {
expect(value.getText()).toContain('2010-12-28T14:57:00');
expect(valid.getText()).toContain('myForm.input.$valid = true');
});
it('should be invalid if empty', function() {
setInput('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
it('should be invalid if over max', function() {
setInput('2015-01-01T23:59:00');
expect(value.getText()).toContain('');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
</file>
</example>
*/
'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP, createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']), 'yyyy-MM-ddTHH:mm:ss.sss'),
/**
* @ngdoc input
* @name input[time]
*
* @description
* Input with time validation and transformation. In browsers that do not yet support
* the HTML5 time input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
* local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a
* Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.
*
* The model must always be a Date object, otherwise Angular will throw an error.
* Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
*
* The timezone to be used to read/write the `Date` instance in the model can be defined using
* {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
* attribute (e.g. `min="{{minTime | date:'HH:mm:ss'}}"`). Note that `min` will also add
* native HTML5 constraint validation.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
* attribute (e.g. `max="{{maxTime | date:'HH:mm:ss'}}"`). Note that `max` will also add
* native HTML5 constraint validation.
* @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the
* `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
* @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the
* `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="time-input-directive" module="timeExample">
<file name="index.html">
<script>
angular.module('timeExample', [])
.controller('DateController', ['$scope', function($scope) {
$scope.example = {
value: new Date(1970, 0, 1, 14, 57, 0)
};
}]);
</script>
<form name="myForm" ng-controller="DateController as dateCtrl">
<label for="exampleInput">Pick a time between 8am and 5pm:</label>
<input type="time" id="exampleInput" name="input" ng-model="example.value"
placeholder="HH:mm:ss" min="08:00:00" max="17:00:00" required />
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.time">
Not a valid date!</span>
</div>
<tt>value = {{example.value | date: "HH:mm:ss"}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value | date: "HH:mm:ss"'));
var valid = element(by.binding('myForm.input.$valid'));
// currently protractor/webdriver does not support
// sending keys to all known HTML5 input controls
// for various browsers (https://github.com/angular/protractor/issues/562).
function setInput(val) {
// set the value of the element and force validation.
var scr = "var ipt = document.getElementById('exampleInput'); " +
"ipt.value = '" + val + "';" +
"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
browser.executeScript(scr);
}
it('should initialize to model', function() {
expect(value.getText()).toContain('14:57:00');
expect(valid.getText()).toContain('myForm.input.$valid = true');
});
it('should be invalid if empty', function() {
setInput('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
it('should be invalid if over max', function() {
setInput('23:59:00');
expect(value.getText()).toContain('');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
</file>
</example>
*/
'time': createDateInputType('time', TIME_REGEXP, createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']), 'HH:mm:ss.sss'),
/**
* @ngdoc input
* @name input[week]
*
* @description
* Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support
* the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
* week format (yyyy-W##), for example: `2013-W02`.
*
* The model must always be a Date object, otherwise Angular will throw an error.
* Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
*
* The timezone to be used to read/write the `Date` instance in the model can be defined using
* {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
* attribute (e.g. `min="{{minWeek | date:'yyyy-Www'}}"`). Note that `min` will also add
* native HTML5 constraint validation.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
* attribute (e.g. `max="{{maxWeek | date:'yyyy-Www'}}"`). Note that `max` will also add
* native HTML5 constraint validation.
* @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
* the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
* @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
* the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="week-input-directive" module="weekExample">
<file name="index.html">
<script>
angular.module('weekExample', [])
.controller('DateController', ['$scope', function($scope) {
$scope.example = {
value: new Date(2013, 0, 3)
};
}]);
</script>
<form name="myForm" ng-controller="DateController as dateCtrl">
<label>Pick a date between in 2013:
<input id="exampleInput" type="week" name="input" ng-model="example.value"
placeholder="YYYY-W##" min="2012-W32"
max="2013-W52" required />
</label>
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.week">
Not a valid date!</span>
</div>
<tt>value = {{example.value | date: "yyyy-Www"}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value | date: "yyyy-Www"'));
var valid = element(by.binding('myForm.input.$valid'));
// currently protractor/webdriver does not support
// sending keys to all known HTML5 input controls
// for various browsers (https://github.com/angular/protractor/issues/562).
function setInput(val) {
// set the value of the element and force validation.
var scr = "var ipt = document.getElementById('exampleInput'); " +
"ipt.value = '" + val + "';" +
"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
browser.executeScript(scr);
}
it('should initialize to model', function() {
expect(value.getText()).toContain('2013-W01');
expect(valid.getText()).toContain('myForm.input.$valid = true');
});
it('should be invalid if empty', function() {
setInput('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
it('should be invalid if over max', function() {
setInput('2015-W01');
expect(value.getText()).toContain('');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
</file>
</example>
*/
'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),
/**
* @ngdoc input
* @name input[month]
*
* @description
* Input with month validation and transformation. In browsers that do not yet support
* the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
* month format (yyyy-MM), for example: `2009-01`.
*
* The model must always be a Date object, otherwise Angular will throw an error.
* Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
* If the model is not set to the first of the month, the next view to model update will set it
* to the first of the month.
*
* The timezone to be used to read/write the `Date` instance in the model can be defined using
* {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
* attribute (e.g. `min="{{minMonth | date:'yyyy-MM'}}"`). Note that `min` will also add
* native HTML5 constraint validation.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
* attribute (e.g. `max="{{maxMonth | date:'yyyy-MM'}}"`). Note that `max` will also add
* native HTML5 constraint validation.
* @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
* the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
* @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
* the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="month-input-directive" module="monthExample">
<file name="index.html">
<script>
angular.module('monthExample', [])
.controller('DateController', ['$scope', function($scope) {
$scope.example = {
value: new Date(2013, 9, 1)
};
}]);
</script>
<form name="myForm" ng-controller="DateController as dateCtrl">
<label for="exampleInput">Pick a month in 2013:</label>
<input id="exampleInput" type="month" name="input" ng-model="example.value"
placeholder="yyyy-MM" min="2013-01" max="2013-12" required />
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.month">
Not a valid month!</span>
</div>
<tt>value = {{example.value | date: "yyyy-MM"}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value | date: "yyyy-MM"'));
var valid = element(by.binding('myForm.input.$valid'));
// currently protractor/webdriver does not support
// sending keys to all known HTML5 input controls
// for various browsers (https://github.com/angular/protractor/issues/562).
function setInput(val) {
// set the value of the element and force validation.
var scr = "var ipt = document.getElementById('exampleInput'); " +
"ipt.value = '" + val + "';" +
"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
browser.executeScript(scr);
}
it('should initialize to model', function() {
expect(value.getText()).toContain('2013-10');
expect(valid.getText()).toContain('myForm.input.$valid = true');
});
it('should be invalid if empty', function() {
setInput('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
it('should be invalid if over max', function() {
setInput('2015-01');
expect(value.getText()).toContain('');
expect(valid.getText()).toContain('myForm.input.$valid = false');
});
</file>
</example>
*/
'month': createDateInputType('month', MONTH_REGEXP, createDateParser(MONTH_REGEXP, ['yyyy', 'MM']), 'yyyy-MM'),
/**
* @ngdoc input
* @name input[number]
*
* @description
* Text input with number validation and transformation. Sets the `number` validation
* error if not a valid number.
*
* <div class="alert alert-warning">
* The model must always be of type `number` otherwise Angular will throw an error.
* Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}
* error docs for more information and an example of how to convert your model if necessary.
* </div>
*
* ## Issues with HTML5 constraint validation
*
* In browsers that follow the
* [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
* `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.
* If a non-number is entered in the input, the browser will report the value as an empty string,
* which means the view / model values in `ngModel` and subsequently the scope value
* will also be an empty string.
*
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
* Can be interpolated.
* @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
* Can be interpolated.
* @param {string=} ngMin Like `min`, sets the `min` validation error key if the value entered is less than `ngMin`,
* but does not trigger HTML5 native validation. Takes an expression.
* @param {string=} ngMax Like `max`, sets the `max` validation error key if the value entered is greater than `ngMax`,
* but does not trigger HTML5 native validation. Takes an expression.
* @param {string=} step Sets the `step` validation error key if the value entered does not fit the `step` constraint.
* Can be interpolated.
* @param {string=} ngStep Like `step`, sets the `step` validation error key if the value entered does not fit the `ngStep` constraint,
* but does not trigger HTML5 native validation. Takes an expression.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
* any length.
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
* that contains the regular expression body that will be converted to a regular expression
* as in the ngPattern directive.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="number-input-directive" module="numberExample">
<file name="index.html">
<script>
angular.module('numberExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.example = {
value: 12
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>Number:
<input type="number" name="input" ng-model="example.value"
min="0" max="99" required>
</label>
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.number">
Not valid number!</span>
</div>
<tt>value = {{example.value}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var value = element(by.binding('example.value'));
var valid = element(by.binding('myForm.input.$valid'));
var input = element(by.model('example.value'));
it('should initialize to model', function() {
expect(value.getText()).toContain('12');
expect(valid.getText()).toContain('true');
});
it('should be invalid if empty', function() {
input.clear();
input.sendKeys('');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('false');
});
it('should be invalid if over max', function() {
input.clear();
input.sendKeys('123');
expect(value.getText()).toEqual('value =');
expect(valid.getText()).toContain('false');
});
</file>
</example>
*/
'number': numberInputType,
/**
* @ngdoc input
* @name input[url]
*
* @description
* Text input with URL validation. Sets the `url` validation error key if the content is not a
* valid URL.
*
* <div class="alert alert-warning">
* **Note:** `input[url]` uses a regex to validate urls that is derived from the regex
* used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify
* the built-in validators (see the {@link guide/forms Forms guide})
* </div>
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
* any length.
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
* that contains the regular expression body that will be converted to a regular expression
* as in the ngPattern directive.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="url-input-directive" module="urlExample">
<file name="index.html">
<script>
angular.module('urlExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.url = {
text: 'http://google.com'
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>URL:
<input type="url" name="input" ng-model="url.text" required>
<label>
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.url">
Not valid url!</span>
</div>
<tt>text = {{url.text}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
<tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var text = element(by.binding('url.text'));
var valid = element(by.binding('myForm.input.$valid'));
var input = element(by.model('url.text'));
it('should initialize to model', function() {
expect(text.getText()).toContain('http://google.com');
expect(valid.getText()).toContain('true');
});
it('should be invalid if empty', function() {
input.clear();
input.sendKeys('');
expect(text.getText()).toEqual('text =');
expect(valid.getText()).toContain('false');
});
it('should be invalid if not url', function() {
input.clear();
input.sendKeys('box');
expect(valid.getText()).toContain('false');
});
</file>
</example>
*/
'url': urlInputType,
/**
* @ngdoc input
* @name input[email]
*
* @description
* Text input with email validation. Sets the `email` validation error key if not a valid email
* address.
*
* <div class="alert alert-warning">
* **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex
* used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can
* use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})
* </div>
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
* any length.
* @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
* that contains the regular expression body that will be converted to a regular expression
* as in the ngPattern directive.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="email-input-directive" module="emailExample">
<file name="index.html">
<script>
angular.module('emailExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.email = {
text: 'me@example.com'
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>Email:
<input type="email" name="input" ng-model="email.text" required>
</label>
<div role="alert">
<span class="error" ng-show="myForm.input.$error.required">
Required!</span>
<span class="error" ng-show="myForm.input.$error.email">
Not valid email!</span>
</div>
<tt>text = {{email.text}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
<tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
var text = element(by.binding('email.text'));
var valid = element(by.binding('myForm.input.$valid'));
var input = element(by.model('email.text'));
it('should initialize to model', function() {
expect(text.getText()).toContain('me@example.com');
expect(valid.getText()).toContain('true');
});
it('should be invalid if empty', function() {
input.clear();
input.sendKeys('');
expect(text.getText()).toEqual('text =');
expect(valid.getText()).toContain('false');
});
it('should be invalid if not email', function() {
input.clear();
input.sendKeys('xxx');
expect(valid.getText()).toContain('false');
});
</file>
</example>
*/
'email': emailInputType,
/**
* @ngdoc input
* @name input[radio]
*
* @description
* HTML radio button.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string} value The value to which the `ngModel` expression should be set when selected.
* Note that `value` only supports `string` values, i.e. the scope model needs to be a string,
* too. Use `ngValue` if you need complex models (`number`, `object`, ...).
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio
* is selected. Should be used instead of the `value` attribute if you need
* a non-string `ngModel` (`boolean`, `array`, ...).
*
* @example
<example name="radio-input-directive" module="radioExample">
<file name="index.html">
<script>
angular.module('radioExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.color = {
name: 'blue'
};
$scope.specialValue = {
"id": "12345",
"value": "green"
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>
<input type="radio" ng-model="color.name" value="red">
Red
</label><br/>
<label>
<input type="radio" ng-model="color.name" ng-value="specialValue">
Green
</label><br/>
<label>
<input type="radio" ng-model="color.name" value="blue">
Blue
</label><br/>
<tt>color = {{color.name | json}}</tt><br/>
</form>
Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
</file>
<file name="protractor.js" type="protractor">
it('should change state', function() {
var inputs = element.all(by.model('color.name'));
var color = element(by.binding('color.name'));
expect(color.getText()).toContain('blue');
inputs.get(0).click();
expect(color.getText()).toContain('red');
inputs.get(1).click();
expect(color.getText()).toContain('green');
});
</file>
</example>
*/
'radio': radioInputType,
/**
* @ngdoc input
* @name input[range]
*
* @description
* Native range input with validation and transformation.
*
* The model for the range input must always be a `Number`.
*
* IE9 and other browsers that do not support the `range` type fall back
* to a text input without any default values for `min`, `max` and `step`. Model binding,
* validation and number parsing are nevertheless supported.
*
* Browsers that support range (latest Chrome, Safari, Firefox, Edge) treat `input[range]`
* in a way that never allows the input to hold an invalid value. That means:
* - any non-numerical value is set to `(max + min) / 2`.
* - any numerical value that is less than the current min val, or greater than the current max val
* is set to the min / max val respectively.
* - additionally, the current `step` is respected, so the nearest value that satisfies a step
* is used.
*
* See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range))
* for more info.
*
* This has the following consequences for Angular:
*
* Since the element value should always reflect the current model value, a range input
* will set the bound ngModel expression to the value that the browser has set for the
* input element. For example, in the following input `<input type="range" ng-model="model.value">`,
* if the application sets `model.value = null`, the browser will set the input to `'50'`.
* Angular will then set the model to `50`, to prevent input and model value being out of sync.
*
* That means the model for range will immediately be set to `50` after `ngModel` has been
* initialized. It also means a range input can never have the required error.
*
* This does not only affect changes to the model value, but also to the values of the `min`,
* `max`, and `step` attributes. When these change in a way that will cause the browser to modify
* the input value, Angular will also update the model value.
*
* Automatic value adjustment also means that a range input element can never have the `required`,
* `min`, or `max` errors.
*
* However, `step` is currently only fully implemented by Firefox. Other browsers have problems
* when the step value changes dynamically - they do not adjust the element value correctly, but
* instead may set the `stepMismatch` error. If that's the case, the Angular will set the `step`
* error on the input, and set the model to `undefined`.
*
* Note that `input[range]` is not compatible with`ngMax`, `ngMin`, and `ngStep`, because they do
* not set the `min` and `max` attributes, which means that the browser won't automatically adjust
* the input value based on their values, and will always assume min = 0, max = 100, and step = 1.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} min Sets the `min` validation to ensure that the value entered is greater
* than `min`. Can be interpolated.
* @param {string=} max Sets the `max` validation to ensure that the value entered is less than `max`.
* Can be interpolated.
* @param {string=} step Sets the `step` validation to ensure that the value entered matches the `step`
* Can be interpolated.
* @param {expression=} ngChange AngularJS expression to be executed when the ngModel value changes due
* to user interaction with the input element.
* @param {expression=} ngChecked If the expression is truthy, then the `checked` attribute will be set on the
* element. **Note** : `ngChecked` should not be used alongside `ngModel`.
* Checkout {@link ng.directive:ngChecked ngChecked} for usage.
*
* @example
<example name="range-input-directive" module="rangeExample">
<file name="index.html">
<script>
angular.module('rangeExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.value = 75;
$scope.min = 10;
$scope.max = 90;
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
Model as range: <input type="range" name="range" ng-model="value" min="{{min}}" max="{{max}}">
<hr>
Model as number: <input type="number" ng-model="value"><br>
Min: <input type="number" ng-model="min"><br>
Max: <input type="number" ng-model="max"><br>
value = <code>{{value}}</code><br/>
myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
myForm.range.$error = <code>{{myForm.range.$error}}</code>
</form>
</file>
</example>
* ## Range Input with ngMin & ngMax attributes
* @example
<example name="range-input-directive-ng" module="rangeExample">
<file name="index.html">
<script>
angular.module('rangeExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.value = 75;
$scope.min = 10;
$scope.max = 90;
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
Model as range: <input type="range" name="range" ng-model="value" ng-min="min" ng-max="max">
<hr>
Model as number: <input type="number" ng-model="value"><br>
Min: <input type="number" ng-model="min"><br>
Max: <input type="number" ng-model="max"><br>
value = <code>{{value}}</code><br/>
myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
myForm.range.$error = <code>{{myForm.range.$error}}</code>
</form>
</file>
</example>
*/
'range': rangeInputType,
/**
* @ngdoc input
* @name input[checkbox]
*
* @description
* HTML checkbox.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {expression=} ngTrueValue The value to which the expression should be set when selected.
* @param {expression=} ngFalseValue The value to which the expression should be set when not selected.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
*
* @example
<example name="checkbox-input-directive" module="checkboxExample">
<file name="index.html">
<script>
angular.module('checkboxExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.checkboxModel = {
value1 : true,
value2 : 'YES'
};
}]);
</script>
<form name="myForm" ng-controller="ExampleController">
<label>Value1:
<input type="checkbox" ng-model="checkboxModel.value1">
</label><br/>
<label>Value2:
<input type="checkbox" ng-model="checkboxModel.value2"
ng-true-value="'YES'" ng-false-value="'NO'">
</label><br/>
<tt>value1 = {{checkboxModel.value1}}</tt><br/>
<tt>value2 = {{checkboxModel.value2}}</tt><br/>
</form>
</file>
<file name="protractor.js" type="protractor">
it('should change state', function() {
var value1 = element(by.binding('checkboxModel.value1'));
var value2 = element(by.binding('checkboxModel.value2'));
expect(value1.getText()).toContain('true');
expect(value2.getText()).toContain('YES');
element(by.model('checkboxModel.value1')).click();
element(by.model('checkboxModel.value2')).click();
expect(value1.getText()).toContain('false');
expect(value2.getText()).toContain('NO');
});
</file>
</example>
*/
'checkbox': checkboxInputType,
'hidden': noop,
'button': noop,
'submit': noop,
'reset': noop,
'file': noop
};
function stringBasedInputType(ctrl) {
ctrl.$formatters.push(function (value) {
return ctrl.$isEmpty(value) ? value : value.toString();
});
}
function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
stringBasedInputType(ctrl);
}
function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
var type = lowercase(element[0].type);
// In composition mode, users are still inputting intermediate text buffer,
// hold the listener until composition is done.
// More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
if (!$sniffer.android) {
var composing = false;
element.on('compositionstart', function () {
composing = true;
});
element.on('compositionend', function () {
composing = false;
listener();
});
}
var timeout;
var listener = function listener(ev) {
if (timeout) {
$browser.defer.cancel(timeout);
timeout = null;
}
if (composing) return;
var value = element.val(),
event = ev && ev.type;
// By default we will trim the value
// If the attribute ng-trim exists we will avoid trimming
// If input type is 'password', the value is never trimmed
if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {
value = trim(value);
}
// If a control is suffering from bad input (due to native validators), browsers discard its
// value, so it may be necessary to revalidate (by calling $setViewValue again) even if the
// control's value is the same empty value twice in a row.
if (ctrl.$viewValue !== value || value === '' && ctrl.$$hasNativeValidators) {
ctrl.$setViewValue(value, event);
}
};
// if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
// input event on backspace, delete or cut
if ($sniffer.hasEvent('input')) {
element.on('input', listener);
} else {
var deferListener = function deferListener(ev, input, origValue) {
if (!timeout) {
timeout = $browser.defer(function () {
timeout = null;
if (!input || input.value !== origValue) {
listener(ev);
}
});
}
};
element.on('keydown', /** @this */function (event) {
var key = event.keyCode;
// ignore
// command modifiers arrows
if (key === 91 || 15 < key && key < 19 || 37 <= key && key <= 40) return;
deferListener(event, this, this.value);
});
// if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
if ($sniffer.hasEvent('paste')) {
element.on('paste cut', deferListener);
}
}
// if user paste into input using mouse on older browser
// or form autocomplete on newer browser, we need "change" event to catch it
element.on('change', listener);
// Some native input types (date-family) have the ability to change validity without
// firing any input/change events.
// For these event types, when native validators are present and the browser supports the type,
// check for validity changes on various DOM events.
if (PARTIAL_VALIDATION_TYPES[type] && ctrl.$$hasNativeValidators && type === attr.type) {
element.on(PARTIAL_VALIDATION_EVENTS, /** @this */function (ev) {
if (!timeout) {
var validity = this[VALIDITY_STATE_PROPERTY];
var origBadInput = validity.badInput;
var origTypeMismatch = validity.typeMismatch;
timeout = $browser.defer(function () {
timeout = null;
if (validity.badInput !== origBadInput || validity.typeMismatch !== origTypeMismatch) {
listener(ev);
}
});
}
});
}
ctrl.$render = function () {
// Workaround for Firefox validation #12102.
var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;
if (element.val() !== value) {
element.val(value);
}
};
}
function weekParser(isoWeek, existingDate) {
if (isDate(isoWeek)) {
return isoWeek;
}
if (isString(isoWeek)) {
WEEK_REGEXP.lastIndex = 0;
var parts = WEEK_REGEXP.exec(isoWeek);
if (parts) {
var year = +parts[1],
week = +parts[2],
hours = 0,
minutes = 0,
seconds = 0,
milliseconds = 0,
firstThurs = getFirstThursdayOfYear(year),
addDays = (week - 1) * 7;
if (existingDate) {
hours = existingDate.getHours();
minutes = existingDate.getMinutes();
seconds = existingDate.getSeconds();
milliseconds = existingDate.getMilliseconds();
}
return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);
}
}
return NaN;
}
function createDateParser(regexp, mapping) {
return function (iso, date) {
var parts, map;
if (isDate(iso)) {
return iso;
}
if (isString(iso)) {
// When a date is JSON'ified to wraps itself inside of an extra
// set of double quotes. This makes the date parsing code unable
// to match the date string and parse it as a date.
if (iso.charAt(0) === '"' && iso.charAt(iso.length - 1) === '"') {
iso = iso.substring(1, iso.length - 1);
}
if (ISO_DATE_REGEXP.test(iso)) {
return new Date(iso);
}
regexp.lastIndex = 0;
parts = regexp.exec(iso);
if (parts) {
parts.shift();
if (date) {
map = {
yyyy: date.getFullYear(),
MM: date.getMonth() + 1,
dd: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds(),
sss: date.getMilliseconds() / 1000
};
} else {
map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };
}
forEach(parts, function (part, index) {
if (index < mapping.length) {
map[mapping[index]] = +part;
}
});
return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);
}
}
return NaN;
};
}
function createDateInputType(type, regexp, parseDate, format) {
return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {
badInputChecker(scope, element, attr, ctrl);
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
var timezone = ctrl && ctrl.$options.getOption('timezone');
var previousDate;
ctrl.$$parserName = type;
ctrl.$parsers.push(function (value) {
if (ctrl.$isEmpty(value)) return null;
if (regexp.test(value)) {
// Note: We cannot read ctrl.$modelValue, as there might be a different
// parser/formatter in the processing chain so that the model
// contains some different data format!
var parsedDate = parseDate(value, previousDate);
if (timezone) {
parsedDate = convertTimezoneToLocal(parsedDate, timezone);
}
return parsedDate;
}
return undefined;
});
ctrl.$formatters.push(function (value) {
if (value && !isDate(value)) {
throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);
}
if (isValidDate(value)) {
previousDate = value;
if (previousDate && timezone) {
previousDate = convertTimezoneToLocal(previousDate, timezone, true);
}
return $filter('date')(value, format, timezone);
} else {
previousDate = null;
return '';
}
});
if (isDefined(attr.min) || attr.ngMin) {
var minVal;
ctrl.$validators.min = function (value) {
return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;
};
attr.$observe('min', function (val) {
minVal = parseObservedDateValue(val);
ctrl.$validate();
});
}
if (isDefined(attr.max) || attr.ngMax) {
var maxVal;
ctrl.$validators.max = function (value) {
return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;
};
attr.$observe('max', function (val) {
maxVal = parseObservedDateValue(val);
ctrl.$validate();
});
}
function isValidDate(value) {
// Invalid Date: getTime() returns NaN
return value && !(value.getTime && value.getTime() !== value.getTime());
}
function parseObservedDateValue(val) {
return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;
}
};
}
function badInputChecker(scope, element, attr, ctrl) {
var node = element[0];
var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);
if (nativeValidation) {
ctrl.$parsers.push(function (value) {
var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};
return validity.badInput || validity.typeMismatch ? undefined : value;
});
}
}
function numberFormatterParser(ctrl) {
ctrl.$$parserName = 'number';
ctrl.$parsers.push(function (value) {
if (ctrl.$isEmpty(value)) return null;
if (NUMBER_REGEXP.test(value)) return parseFloat(value);
return undefined;
});
ctrl.$formatters.push(function (value) {
if (!ctrl.$isEmpty(value)) {
if (!isNumber(value)) {
throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);
}
value = value.toString();
}
return value;
});
}
function parseNumberAttrVal(val) {
if (isDefined(val) && !isNumber(val)) {
val = parseFloat(val);
}
return !isNumberNaN(val) ? val : undefined;
}
function isNumberInteger(num) {
// See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066
// (minus the assumption that `num` is a number)
// eslint-disable-next-line no-bitwise
return (num | 0) === num;
}
function countDecimals(num) {
var numString = num.toString();
var decimalSymbolIndex = numString.indexOf('.');
if (decimalSymbolIndex === -1) {
if (-1 < num && num < 1) {
// It may be in the exponential notation format (`1e-X`)
var match = /e-(\d+)$/.exec(numString);
if (match) {
return Number(match[1]);
}
}
return 0;
}
return numString.length - decimalSymbolIndex - 1;
}
function isValidForStep(viewValue, stepBase, step) {
// At this point `stepBase` and `step` are expected to be non-NaN values
// and `viewValue` is expected to be a valid stringified number.
var value = Number(viewValue);
var isNonIntegerValue = !isNumberInteger(value);
var isNonIntegerStepBase = !isNumberInteger(stepBase);
var isNonIntegerStep = !isNumberInteger(step);
// Due to limitations in Floating Point Arithmetic (e.g. `0.3 - 0.2 !== 0.1` or
// `0.5 % 0.1 !== 0`), we need to convert all numbers to integers.
if (isNonIntegerValue || isNonIntegerStepBase || isNonIntegerStep) {
var valueDecimals = isNonIntegerValue ? countDecimals(value) : 0;
var stepBaseDecimals = isNonIntegerStepBase ? countDecimals(stepBase) : 0;
var stepDecimals = isNonIntegerStep ? countDecimals(step) : 0;
var decimalCount = Math.max(valueDecimals, stepBaseDecimals, stepDecimals);
var multiplier = Math.pow(10, decimalCount);
value = value * multiplier;
stepBase = stepBase * multiplier;
step = step * multiplier;
if (isNonIntegerValue) value = Math.round(value);
if (isNonIntegerStepBase) stepBase = Math.round(stepBase);
if (isNonIntegerStep) step = Math.round(step);
}
return (value - stepBase) % step === 0;
}
function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
badInputChecker(scope, element, attr, ctrl);
numberFormatterParser(ctrl);
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
var minVal;
var maxVal;
if (isDefined(attr.min) || attr.ngMin) {
ctrl.$validators.min = function (value) {
return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;
};
attr.$observe('min', function (val) {
minVal = parseNumberAttrVal(val);
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
});
}
if (isDefined(attr.max) || attr.ngMax) {
ctrl.$validators.max = function (value) {
return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;
};
attr.$observe('max', function (val) {
maxVal = parseNumberAttrVal(val);
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
});
}
if (isDefined(attr.step) || attr.ngStep) {
var stepVal;
ctrl.$validators.step = function (modelValue, viewValue) {
return ctrl.$isEmpty(viewValue) || isUndefined(stepVal) || isValidForStep(viewValue, minVal || 0, stepVal);
};
attr.$observe('step', function (val) {
stepVal = parseNumberAttrVal(val);
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
});
}
}
function rangeInputType(scope, element, attr, ctrl, $sniffer, $browser) {
badInputChecker(scope, element, attr, ctrl);
numberFormatterParser(ctrl);
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
var supportsRange = ctrl.$$hasNativeValidators && element[0].type === 'range',
minVal = supportsRange ? 0 : undefined,
maxVal = supportsRange ? 100 : undefined,
stepVal = supportsRange ? 1 : undefined,
validity = element[0].validity,
hasMinAttr = isDefined(attr.min),
hasMaxAttr = isDefined(attr.max),
hasStepAttr = isDefined(attr.step);
var originalRender = ctrl.$render;
ctrl.$render = supportsRange && isDefined(validity.rangeUnderflow) && isDefined(validity.rangeOverflow) ?
//Browsers that implement range will set these values automatically, but reading the adjusted values after
//$render would cause the min / max validators to be applied with the wrong value
function rangeRender() {
originalRender();
ctrl.$setViewValue(element.val());
} : originalRender;
if (hasMinAttr) {
ctrl.$validators.min = supportsRange ?
// Since all browsers set the input to a valid value, we don't need to check validity
function noopMinValidator() {
return true;
} :
// non-support browsers validate the min val
function minValidator(modelValue, viewValue) {
return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= minVal;
};
setInitialValueAndObserver('min', minChange);
}
if (hasMaxAttr) {
ctrl.$validators.max = supportsRange ?
// Since all browsers set the input to a valid value, we don't need to check validity
function noopMaxValidator() {
return true;
} :
// non-support browsers validate the max val
function maxValidator(modelValue, viewValue) {
return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= maxVal;
};
setInitialValueAndObserver('max', maxChange);
}
if (hasStepAttr) {
ctrl.$validators.step = supportsRange ? function nativeStepValidator() {
// Currently, only FF implements the spec on step change correctly (i.e. adjusting the
// input element value to a valid value). It's possible that other browsers set the stepMismatch
// validity error instead, so we can at least report an error in that case.
return !validity.stepMismatch;
} :
// ngStep doesn't set the setp attr, so the browser doesn't adjust the input value as setting step would
function stepValidator(modelValue, viewValue) {
return ctrl.$isEmpty(viewValue) || isUndefined(stepVal) || isValidForStep(viewValue, minVal || 0, stepVal);
};
setInitialValueAndObserver('step', stepChange);
}
function setInitialValueAndObserver(htmlAttrName, changeFn) {
// interpolated attributes set the attribute value only after a digest, but we need the
// attribute value when the input is first rendered, so that the browser can adjust the
// input value based on the min/max value
element.attr(htmlAttrName, attr[htmlAttrName]);
attr.$observe(htmlAttrName, changeFn);
}
function minChange(val) {
minVal = parseNumberAttrVal(val);
// ignore changes before model is initialized
if (isNumberNaN(ctrl.$modelValue)) {
return;
}
if (supportsRange) {
var elVal = element.val();
// IE11 doesn't set the el val correctly if the minVal is greater than the element value
if (minVal > elVal) {
elVal = minVal;
element.val(elVal);
}
ctrl.$setViewValue(elVal);
} else {
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
}
}
function maxChange(val) {
maxVal = parseNumberAttrVal(val);
// ignore changes before model is initialized
if (isNumberNaN(ctrl.$modelValue)) {
return;
}
if (supportsRange) {
var elVal = element.val();
// IE11 doesn't set the el val correctly if the maxVal is less than the element value
if (maxVal < elVal) {
element.val(maxVal);
// IE11 and Chrome don't set the value to the minVal when max < min
elVal = maxVal < minVal ? minVal : maxVal;
}
ctrl.$setViewValue(elVal);
} else {
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
}
}
function stepChange(val) {
stepVal = parseNumberAttrVal(val);
// ignore changes before model is initialized
if (isNumberNaN(ctrl.$modelValue)) {
return;
}
// Some browsers don't adjust the input value correctly, but set the stepMismatch error
if (supportsRange && ctrl.$viewValue !== element.val()) {
ctrl.$setViewValue(element.val());
} else {
// TODO(matsko): implement validateLater to reduce number of validations
ctrl.$validate();
}
}
}
function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
// Note: no badInputChecker here by purpose as `url` is only a validation
// in browsers, i.e. we can always read out input.value even if it is not valid!
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
stringBasedInputType(ctrl);
ctrl.$$parserName = 'url';
ctrl.$validators.url = function (modelValue, viewValue) {
var value = modelValue || viewValue;
return ctrl.$isEmpty(value) || URL_REGEXP.test(value);
};
}
function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
// Note: no badInputChecker here by purpose as `url` is only a validation
// in browsers, i.e. we can always read out input.value even if it is not valid!
baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
stringBasedInputType(ctrl);
ctrl.$$parserName = 'email';
ctrl.$validators.email = function (modelValue, viewValue) {
var value = modelValue || viewValue;
return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);
};
}
function radioInputType(scope, element, attr, ctrl) {
var doTrim = !attr.ngTrim || trim(attr.ngTrim) !== 'false';
// make the name unique, if not defined
if (isUndefined(attr.name)) {
element.attr('name', nextUid());
}
var listener = function listener(ev) {
var value;
if (element[0].checked) {
value = attr.value;
if (doTrim) {
value = trim(value);
}
ctrl.$setViewValue(value, ev && ev.type);
}
};
element.on('click', listener);
ctrl.$render = function () {
var value = attr.value;
if (doTrim) {
value = trim(value);
}
element[0].checked = value === ctrl.$viewValue;
};
attr.$observe('value', ctrl.$render);
}
function parseConstantExpr($parse, context, name, expression, fallback) {
var parseFn;
if (isDefined(expression)) {
parseFn = $parse(expression);
if (!parseFn.constant) {
throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' + '`{1}`.', name, expression);
}
return parseFn(context);
}
return fallback;
}
function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {
var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);
var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);
var listener = function listener(ev) {
ctrl.$setViewValue(element[0].checked, ev && ev.type);
};
element.on('click', listener);
ctrl.$render = function () {
element[0].checked = ctrl.$viewValue;
};
// Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`
// This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert
// it to a boolean.
ctrl.$isEmpty = function (value) {
return value === false;
};
ctrl.$formatters.push(function (value) {
return equals(value, trueValue);
});
ctrl.$parsers.push(function (value) {
return value ? trueValue : falseValue;
});
}
/**
* @ngdoc directive
* @name textarea
* @restrict E
*
* @description
* HTML textarea element control with angular data-binding. The data-binding and validation
* properties of this element are exactly the same as those of the
* {@link ng.directive:input input element}.
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
* length.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
*
* @knownIssue
*
* When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
* insert the placeholder value as the textarea's content. If the placeholder value contains
* interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update
* the value of the by-then-removed text node. This doesn't affect the functionality of the
* textarea, but can be undesirable.
*
* You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
* `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
* find more details on `ngAttr` in the
* [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
* Developer Guide.
*/
/**
* @ngdoc directive
* @name input
* @restrict E
*
* @description
* HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,
* input state control, and validation.
* Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
*
* <div class="alert alert-warning">
* **Note:** Not every feature offered is available for all input types.
* Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.
* </div>
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {boolean=} ngRequired Sets `required` attribute if set to true
* @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
* minlength.
* @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
* maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
* length.
* @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
* value does not match a RegExp found by evaluating the Angular expression given in the attribute value.
* If the expression evaluates to a RegExp object, then this is used directly.
* If the expression evaluates to a string, then it will be converted to a RegExp
* after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
* `new RegExp('^abc$')`.<br />
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
* This parameter is ignored for input[type=password] controls, which will never trim the
* input.
*
* @example
<example name="input-directive" module="inputExample">
<file name="index.html">
<script>
angular.module('inputExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.user = {name: 'guest', last: 'visitor'};
}]);
</script>
<div ng-controller="ExampleController">
<form name="myForm">
<label>
User name:
<input type="text" name="userName" ng-model="user.name" required>
</label>
<div role="alert">
<span class="error" ng-show="myForm.userName.$error.required">
Required!</span>
</div>
<label>
Last name:
<input type="text" name="lastName" ng-model="user.last"
ng-minlength="3" ng-maxlength="10">
</label>
<div role="alert">
<span class="error" ng-show="myForm.lastName.$error.minlength">
Too short!</span>
<span class="error" ng-show="myForm.lastName.$error.maxlength">
Too long!</span>
</div>
</form>
<hr>
<tt>user = {{user}}</tt><br/>
<tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>
<tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>
<tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>
<tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>
<tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
<tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>
<tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>
</div>
</file>
<file name="protractor.js" type="protractor">
var user = element(by.exactBinding('user'));
var userNameValid = element(by.binding('myForm.userName.$valid'));
var lastNameValid = element(by.binding('myForm.lastName.$valid'));
var lastNameError = element(by.binding('myForm.lastName.$error'));
var formValid = element(by.binding('myForm.$valid'));
var userNameInput = element(by.model('user.name'));
var userLastInput = element(by.model('user.last'));
it('should initialize to model', function() {
expect(user.getText()).toContain('{"name":"guest","last":"visitor"}');
expect(userNameValid.getText()).toContain('true');
expect(formValid.getText()).toContain('true');
});
it('should be invalid if empty when required', function() {
userNameInput.clear();
userNameInput.sendKeys('');
expect(user.getText()).toContain('{"last":"visitor"}');
expect(userNameValid.getText()).toContain('false');
expect(formValid.getText()).toContain('false');
});
it('should be valid if empty when min length is set', function() {
userLastInput.clear();
userLastInput.sendKeys('');
expect(user.getText()).toContain('{"name":"guest","last":""}');
expect(lastNameValid.getText()).toContain('true');
expect(formValid.getText()).toContain('true');
});
it('should be invalid if less than required min length', function() {
userLastInput.clear();
userLastInput.sendKeys('xx');
expect(user.getText()).toContain('{"name":"guest"}');
expect(lastNameValid.getText()).toContain('false');
expect(lastNameError.getText()).toContain('minlength');
expect(formValid.getText()).toContain('false');
});
it('should be invalid if longer than max length', function() {
userLastInput.clear();
userLastInput.sendKeys('some ridiculously long name');
expect(user.getText()).toContain('{"name":"guest"}');
expect(lastNameValid.getText()).toContain('false');
expect(lastNameError.getText()).toContain('maxlength');
expect(formValid.getText()).toContain('false');
});
</file>
</example>
*/
var inputDirective = ['$browser', '$sniffer', '$filter', '$parse', function ($browser, $sniffer, $filter, $parse) {
return {
restrict: 'E',
require: ['?ngModel'],
link: {
pre: function pre(scope, element, attr, ctrls) {
if (ctrls[0]) {
(inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer, $browser, $filter, $parse);
}
}
}
};
}];
var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
/**
* @ngdoc directive
* @name ngValue
* @restrict A
* @priority 100
*
* @description
* Binds the given expression to the value of the element.
*
* It is mainly used on {@link input[radio] `input[radio]`} and option elements,
* so that when the element is selected, the {@link ngModel `ngModel`} of that element (or its
* {@link select `select`} parent element) is set to the bound value. It is especially useful
* for dynamically generated lists using {@link ngRepeat `ngRepeat`}, as shown below.
*
* It can also be used to achieve one-way binding of a given expression to an input element
* such as an `input[text]` or a `textarea`, when that element does not use ngModel.
*
* @element ANY
* @param {string=} ngValue AngularJS expression, whose value will be bound to the `value` attribute
* and `value` property of the element.
*
* @example
<example name="ngValue-directive" module="valueExample">
<file name="index.html">
<script>
angular.module('valueExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.names = ['pizza', 'unicorns', 'robots'];
$scope.my = { favorite: 'unicorns' };
}]);
</script>
<form ng-controller="ExampleController">
<h2>Which is your favorite?</h2>
<label ng-repeat="name in names" for="{{name}}">
{{name}}
<input type="radio"
ng-model="my.favorite"
ng-value="name"
id="{{name}}"
name="favorite">
</label>
<div>You chose {{my.favorite}}</div>
</form>
</file>
<file name="protractor.js" type="protractor">
var favorite = element(by.binding('my.favorite'));
it('should initialize to model', function() {
expect(favorite.getText()).toContain('unicorns');
});
it('should bind the values to the inputs', function() {
element.all(by.model('my.favorite')).get(0).click();
expect(favorite.getText()).toContain('pizza');
});
</file>
</example>
*/
var ngValueDirective = function ngValueDirective() {
/**
* inputs use the value attribute as their default value if the value property is not set.
* Once the value property has been set (by adding input), it will not react to changes to
* the value attribute anymore. Setting both attribute and property fixes this behavior, and
* makes it possible to use ngValue as a sort of one-way bind.
*/
function updateElementValue(element, attr, value) {
// Support: IE9 only
// In IE9 values are converted to string (e.g. `input.value = null` results in `input.value === 'null'`).
var propValue = isDefined(value) ? value : msie === 9 ? '' : null;
element.prop('value', propValue);
attr.$set('value', value);
}
return {
restrict: 'A',
priority: 100,
compile: function compile(tpl, tplAttr) {
if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {
return function ngValueConstantLink(scope, elm, attr) {
var value = scope.$eval(attr.ngValue);
updateElementValue(elm, attr, value);
};
} else {
return function ngValueLink(scope, elm, attr) {
scope.$watch(attr.ngValue, function valueWatchAction(value) {
updateElementValue(elm, attr, value);
});
};
}
}
};
};
/**
* @ngdoc directive
* @name ngBind
* @restrict AC
*
* @description
* The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
* with the value of a given expression, and to update the text content when the value of that
* expression changes.
*
* Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
* `{{ expression }}` which is similar but less verbose.
*
* It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily
* displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an
* element attribute, it makes the bindings invisible to the user while the page is loading.
*
* An alternative solution to this problem would be using the
* {@link ng.directive:ngCloak ngCloak} directive.
*
*
* @element ANY
* @param {expression} ngBind {@link guide/expression Expression} to evaluate.
*
* @example
* Enter a name in the Live Preview text box; the greeting below the text box changes instantly.
<example module="bindExample" name="ng-bind">
<file name="index.html">
<script>
angular.module('bindExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.name = 'Whirled';
}]);
</script>
<div ng-controller="ExampleController">
<label>Enter name: <input type="text" ng-model="name"></label><br>
Hello <span ng-bind="name"></span>!
</div>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-bind', function() {
var nameInput = element(by.model('name'));
expect(element(by.binding('name')).getText()).toBe('Whirled');
nameInput.clear();
nameInput.sendKeys('world');
expect(element(by.binding('name')).getText()).toBe('world');
});
</file>
</example>
*/
var ngBindDirective = ['$compile', function ($compile) {
return {
restrict: 'AC',
compile: function ngBindCompile(templateElement) {
$compile.$$addBindingClass(templateElement);
return function ngBindLink(scope, element, attr) {
$compile.$$addBindingInfo(element, attr.ngBind);
element = element[0];
scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
element.textContent = stringify(value);
});
};
}
};
}];
/**
* @ngdoc directive
* @name ngBindTemplate
*
* @description
* The `ngBindTemplate` directive specifies that the element
* text content should be replaced with the interpolation of the template
* in the `ngBindTemplate` attribute.
* Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`
* expressions. This directive is needed since some HTML elements
* (such as TITLE and OPTION) cannot contain SPAN elements.
*
* @element ANY
* @param {string} ngBindTemplate template of form
* <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.
*
* @example
* Try it here: enter text in text box and watch the greeting change.
<example module="bindExample" name="ng-bind-template">
<file name="index.html">
<script>
angular.module('bindExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.salutation = 'Hello';
$scope.name = 'World';
}]);
</script>
<div ng-controller="ExampleController">
<label>Salutation: <input type="text" ng-model="salutation"></label><br>
<label>Name: <input type="text" ng-model="name"></label><br>
<pre ng-bind-template="{{salutation}} {{name}}!"></pre>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-bind', function() {
var salutationElem = element(by.binding('salutation'));
var salutationInput = element(by.model('salutation'));
var nameInput = element(by.model('name'));
expect(salutationElem.getText()).toBe('Hello World!');
salutationInput.clear();
salutationInput.sendKeys('Greetings');
nameInput.clear();
nameInput.sendKeys('user');
expect(salutationElem.getText()).toBe('Greetings user!');
});
</file>
</example>
*/
var ngBindTemplateDirective = ['$interpolate', '$compile', function ($interpolate, $compile) {
return {
compile: function ngBindTemplateCompile(templateElement) {
$compile.$$addBindingClass(templateElement);
return function ngBindTemplateLink(scope, element, attr) {
var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));
$compile.$$addBindingInfo(element, interpolateFn.expressions);
element = element[0];
attr.$observe('ngBindTemplate', function (value) {
element.textContent = isUndefined(value) ? '' : value;
});
};
}
};
}];
/**
* @ngdoc directive
* @name ngBindHtml
*
* @description
* Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
* the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.
* To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link
* ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}
* in your module's dependencies, you need to include "angular-sanitize.js" in your application.
*
* You may also bypass sanitization for values you know are safe. To do so, bind to
* an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
* under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.
*
* Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you
* will have an exception (instead of an exploit.)
*
* @element ANY
* @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
*
* @example
<example module="bindHtmlExample" deps="angular-sanitize.js" name="ng-bind-html">
<file name="index.html">
<div ng-controller="ExampleController">
<p ng-bind-html="myHTML"></p>
</div>
</file>
<file name="script.js">
angular.module('bindHtmlExample', ['ngSanitize'])
.controller('ExampleController', ['$scope', function($scope) {
$scope.myHTML =
'I am an <code>HTML</code>string with ' +
'<a href="#">links!</a> and other <em>stuff</em>';
}]);
</file>
<file name="protractor.js" type="protractor">
it('should check ng-bind-html', function() {
expect(element(by.binding('myHTML')).getText()).toBe(
'I am an HTMLstring with links! and other stuff');
});
</file>
</example>
*/
var ngBindHtmlDirective = ['$sce', '$parse', '$compile', function ($sce, $parse, $compile) {
return {
restrict: 'A',
compile: function ngBindHtmlCompile(tElement, tAttrs) {
var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);
var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function sceValueOf(val) {
// Unwrap the value to compare the actual inner safe value, not the wrapper object.
return $sce.valueOf(val);
});
$compile.$$addBindingClass(tElement);
return function ngBindHtmlLink(scope, element, attr) {
$compile.$$addBindingInfo(element, attr.ngBindHtml);
scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {
// The watched value is the unwrapped value. To avoid re-escaping, use the direct getter.
var value = ngBindHtmlGetter(scope);
element.html($sce.getTrustedHtml(value) || '');
});
};
}
};
}];
/**
* @ngdoc directive
* @name ngChange
* @restrict A
*
* @description
* Evaluate the given expression when the user changes the input.
* The expression is evaluated immediately, unlike the JavaScript onchange event
* which only triggers at the end of a change (usually, when the user leaves the
* form element or presses the return key).
*
* The `ngChange` expression is only evaluated when a change in the input value causes
* a new value to be committed to the model.
*
* It will not be evaluated:
* * if the value returned from the `$parsers` transformation pipeline has not changed
* * if the input has continued to be invalid since the model will stay `null`
* * if the model is changed programmatically and not by a change to the input value
*
*
* Note, this directive requires `ngModel` to be present.
*
* @element ANY
* @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change
* in input value.
*
* @example
* <example name="ngChange-directive" module="changeExample">
* <file name="index.html">
* <script>
* angular.module('changeExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.counter = 0;
* $scope.change = function() {
* $scope.counter++;
* };
* }]);
* </script>
* <div ng-controller="ExampleController">
* <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
* <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
* <label for="ng-change-example2">Confirmed</label><br />
* <tt>debug = {{confirmed}}</tt><br/>
* <tt>counter = {{counter}}</tt><br/>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
* var counter = element(by.binding('counter'));
* var debug = element(by.binding('confirmed'));
*
* it('should evaluate the expression if changing from view', function() {
* expect(counter.getText()).toContain('0');
*
* element(by.id('ng-change-example1')).click();
*
* expect(counter.getText()).toContain('1');
* expect(debug.getText()).toContain('true');
* });
*
* it('should not evaluate the expression if changing from model', function() {
* element(by.id('ng-change-example2')).click();
* expect(counter.getText()).toContain('0');
* expect(debug.getText()).toContain('true');
* });
* </file>
* </example>
*/
var ngChangeDirective = valueFn({
restrict: 'A',
require: 'ngModel',
link: function link(scope, element, attr, ctrl) {
ctrl.$viewChangeListeners.push(function () {
scope.$eval(attr.ngChange);
});
}
});
/* exported
ngClassDirective,
ngClassEvenDirective,
ngClassOddDirective
*/
function classDirective(name, selector) {
name = 'ngClass' + name;
var indexWatchExpression;
return ['$parse', function ($parse) {
return {
restrict: 'AC',
link: function link(scope, element, attr) {
var expression = attr[name].trim();
var isOneTime = expression.charAt(0) === ':' && expression.charAt(1) === ':';
var watchInterceptor = isOneTime ? toFlatValue : toClassString;
var watchExpression = $parse(expression, watchInterceptor);
var watchAction = isOneTime ? ngClassOneTimeWatchAction : ngClassWatchAction;
var classCounts = element.data('$classCounts');
var oldModulo = true;
var oldClassString;
if (!classCounts) {
// Use createMap() to prevent class assumptions involving property
// names in Object.prototype
classCounts = createMap();
element.data('$classCounts', classCounts);
}
if (name !== 'ngClass') {
if (!indexWatchExpression) {
indexWatchExpression = $parse('$index', function moduloTwo($index) {
// eslint-disable-next-line no-bitwise
return $index & 1;
});
}
scope.$watch(indexWatchExpression, ngClassIndexWatchAction);
}
scope.$watch(watchExpression, watchAction, isOneTime);
function addClasses(classString) {
classString = digestClassCounts(split(classString), 1);
attr.$addClass(classString);
}
function removeClasses(classString) {
classString = digestClassCounts(split(classString), -1);
attr.$removeClass(classString);
}
function updateClasses(oldClassString, newClassString) {
var oldClassArray = split(oldClassString);
var newClassArray = split(newClassString);
var toRemoveArray = arrayDifference(oldClassArray, newClassArray);
var toAddArray = arrayDifference(newClassArray, oldClassArray);
var toRemoveString = digestClassCounts(toRemoveArray, -1);
var toAddString = digestClassCounts(toAddArray, 1);
attr.$addClass(toAddString);
attr.$removeClass(toRemoveString);
}
function digestClassCounts(classArray, count) {
var classesToUpdate = [];
forEach(classArray, function (className) {
if (count > 0 || classCounts[className]) {
classCounts[className] = (classCounts[className] || 0) + count;
if (classCounts[className] === +(count > 0)) {
classesToUpdate.push(className);
}
}
});
return classesToUpdate.join(' ');
}
function ngClassIndexWatchAction(newModulo) {
// This watch-action should run before the `ngClass[OneTime]WatchAction()`, thus it
// adds/removes `oldClassString`. If the `ngClass` expression has changed as well, the
// `ngClass[OneTime]WatchAction()` will update the classes.
if (newModulo === selector) {
addClasses(oldClassString);
} else {
removeClasses(oldClassString);
}
oldModulo = newModulo;
}
function ngClassOneTimeWatchAction(newClassValue) {
var newClassString = toClassString(newClassValue);
if (newClassString !== oldClassString) {
ngClassWatchAction(newClassString);
}
}
function ngClassWatchAction(newClassString) {
if (oldModulo === selector) {
updateClasses(oldClassString, newClassString);
}
oldClassString = newClassString;
}
}
};
}];
// Helpers
function arrayDifference(tokens1, tokens2) {
if (!tokens1 || !tokens1.length) return [];
if (!tokens2 || !tokens2.length) return tokens1;
var values = [];
outer: for (var i = 0; i < tokens1.length; i++) {
var token = tokens1[i];
for (var j = 0; j < tokens2.length; j++) {
if (token === tokens2[j]) continue outer;
}
values.push(token);
}
return values;
}
function split(classString) {
return classString && classString.split(' ');
}
function toClassString(classValue) {
var classString = classValue;
if (isArray(classValue)) {
classString = classValue.map(toClassString).join(' ');
} else if (isObject(classValue)) {
classString = Object.keys(classValue).filter(function (key) {
return classValue[key];
}).join(' ');
}
return classString;
}
function toFlatValue(classValue) {
var flatValue = classValue;
if (isArray(classValue)) {
flatValue = classValue.map(toFlatValue);
} else if (isObject(classValue)) {
var hasUndefined = false;
flatValue = Object.keys(classValue).filter(function (key) {
var value = classValue[key];
if (!hasUndefined && isUndefined(value)) {
hasUndefined = true;
}
return value;
});
if (hasUndefined) {
// Prevent the `oneTimeLiteralWatchInterceptor` from unregistering
// the watcher, by including at least one `undefined` value.
flatValue.push(undefined);
}
}
return flatValue;
}
}
/**
* @ngdoc directive
* @name ngClass
* @restrict AC
* @element ANY
*
* @description
* The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding
* an expression that represents all classes to be added.
*
* The directive operates in three different ways, depending on which of three types the expression
* evaluates to:
*
* 1. If the expression evaluates to a string, the string should be one or more space-delimited class
* names.
*
* 2. If the expression evaluates to an object, then for each key-value pair of the
* object with a truthy value the corresponding key is used as a class name.
*
* 3. If the expression evaluates to an array, each element of the array should either be a string as in
* type 1 or an object as in type 2. This means that you can mix strings and objects together in an array
* to give you more control over what CSS classes appear. See the code below for an example of this.
*
*
* The directive won't add duplicate classes if a particular class was already set.
*
* When the expression changes, the previously added classes are removed and only then are the
* new classes added.
*
* @knownIssue
* You should not use {@link guide/interpolation interpolation} in the value of the `class`
* attribute, when using the `ngClass` directive on the same element.
* See {@link guide/interpolation#known-issues here} for more info.
*
* @animations
* | Animation | Occurs |
* |----------------------------------|-------------------------------------|
* | {@link ng.$animate#addClass addClass} | just before the class is applied to the element |
* | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
*
* ### ngClass and pre-existing CSS3 Transitions/Animations
The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.
Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
to view the step by step details of {@link $animate#addClass $animate.addClass} and
{@link $animate#removeClass $animate.removeClass}.
*
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
* of the evaluation can be a string representing space delimited class
* names, an array, or a map of class names to boolean values. In the case of a map, the
* names of the properties whose values are truthy will be added as css classes to the
* element.
*
* @example
* ### Basic
<example name="ng-class">
<file name="index.html">
<p ng-class="{strike: deleted, bold: important, 'has-error': error}">Map Syntax Example</p>
<label>
<input type="checkbox" ng-model="deleted">
deleted (apply "strike" class)
</label><br>
<label>
<input type="checkbox" ng-model="important">
important (apply "bold" class)
</label><br>
<label>
<input type="checkbox" ng-model="error">
error (apply "has-error" class)
</label>
<hr>
<p ng-class="style">Using String Syntax</p>
<input type="text" ng-model="style"
placeholder="Type: bold strike red" aria-label="Type: bold strike red">
<hr>
<p ng-class="[style1, style2, style3]">Using Array Syntax</p>
<input ng-model="style1"
placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red"><br>
<input ng-model="style2"
placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 2"><br>
<input ng-model="style3"
placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 3"><br>
<hr>
<p ng-class="[style4, {orange: warning}]">Using Array and Map Syntax</p>
<input ng-model="style4" placeholder="Type: bold, strike" aria-label="Type: bold, strike"><br>
<label><input type="checkbox" ng-model="warning"> warning (apply "orange" class)</label>
</file>
<file name="style.css">
.strike {
text-decoration: line-through;
}
.bold {
font-weight: bold;
}
.red {
color: red;
}
.has-error {
color: red;
background-color: yellow;
}
.orange {
color: orange;
}
</file>
<file name="protractor.js" type="protractor">
var ps = element.all(by.css('p'));
it('should let you toggle the class', function() {
expect(ps.first().getAttribute('class')).not.toMatch(/bold/);
expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);
element(by.model('important')).click();
expect(ps.first().getAttribute('class')).toMatch(/bold/);
element(by.model('error')).click();
expect(ps.first().getAttribute('class')).toMatch(/has-error/);
});
it('should let you toggle string example', function() {
expect(ps.get(1).getAttribute('class')).toBe('');
element(by.model('style')).clear();
element(by.model('style')).sendKeys('red');
expect(ps.get(1).getAttribute('class')).toBe('red');
});
it('array example should have 3 classes', function() {
expect(ps.get(2).getAttribute('class')).toBe('');
element(by.model('style1')).sendKeys('bold');
element(by.model('style2')).sendKeys('strike');
element(by.model('style3')).sendKeys('red');
expect(ps.get(2).getAttribute('class')).toBe('bold strike red');
});
it('array with map example should have 2 classes', function() {
expect(ps.last().getAttribute('class')).toBe('');
element(by.model('style4')).sendKeys('bold');
element(by.model('warning')).click();
expect(ps.last().getAttribute('class')).toBe('bold orange');
});
</file>
</example>
@example
### Animations
The example below demonstrates how to perform animations using ngClass.
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-class">
<file name="index.html">
<input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
<input id="clearbtn" type="button" value="clear" ng-click="myVar=''">
<br>
<span class="base-class" ng-class="myVar">Sample Text</span>
</file>
<file name="style.css">
.base-class {
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}
.base-class.my-class {
color: red;
font-size:3em;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ng-class', function() {
expect(element(by.css('.base-class')).getAttribute('class')).not.
toMatch(/my-class/);
element(by.id('setbtn')).click();
expect(element(by.css('.base-class')).getAttribute('class')).
toMatch(/my-class/);
element(by.id('clearbtn')).click();
expect(element(by.css('.base-class')).getAttribute('class')).not.
toMatch(/my-class/);
});
</file>
</example>
*/
var ngClassDirective = classDirective('', true);
/**
* @ngdoc directive
* @name ngClassOdd
* @restrict AC
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
* {@link ng.directive:ngClass ngClass}, except they work in
* conjunction with `ngRepeat` and take effect only on odd (even) rows.
*
* This directive can be applied only within the scope of an
* {@link ng.directive:ngRepeat ngRepeat}.
*
* @element ANY
* @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result
* of the evaluation can be a string representing space delimited class names or an array.
*
* @example
<example name="ng-class-odd">
<file name="index.html">
<ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
<li ng-repeat="name in names">
<span ng-class-odd="'odd'" ng-class-even="'even'">
{{name}}
</span>
</li>
</ol>
</file>
<file name="style.css">
.odd {
color: red;
}
.even {
color: blue;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ng-class-odd and ng-class-even', function() {
expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
toMatch(/odd/);
expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
toMatch(/even/);
});
</file>
</example>
*/
var ngClassOddDirective = classDirective('Odd', 0);
/**
* @ngdoc directive
* @name ngClassEven
* @restrict AC
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
* {@link ng.directive:ngClass ngClass}, except they work in
* conjunction with `ngRepeat` and take effect only on odd (even) rows.
*
* This directive can be applied only within the scope of an
* {@link ng.directive:ngRepeat ngRepeat}.
*
* @element ANY
* @param {expression} ngClassEven {@link guide/expression Expression} to eval. The
* result of the evaluation can be a string representing space delimited class names or an array.
*
* @example
<example name="ng-class-even">
<file name="index.html">
<ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
<li ng-repeat="name in names">
<span ng-class-odd="'odd'" ng-class-even="'even'">
{{name}} &nbsp; &nbsp; &nbsp;
</span>
</li>
</ol>
</file>
<file name="style.css">
.odd {
color: red;
}
.even {
color: blue;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ng-class-odd and ng-class-even', function() {
expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
toMatch(/odd/);
expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
toMatch(/even/);
});
</file>
</example>
*/
var ngClassEvenDirective = classDirective('Even', 1);
/**
* @ngdoc directive
* @name ngCloak
* @restrict AC
*
* @description
* The `ngCloak` directive is used to prevent the Angular html template from being briefly
* displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
* directive to avoid the undesirable flicker effect caused by the html template display.
*
* The directive can be applied to the `<body>` element, but the preferred usage is to apply
* multiple `ngCloak` directives to small portions of the page to permit progressive rendering
* of the browser view.
*
* `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and
* `angular.min.js`.
* For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
*
* ```css
* [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
* display: none !important;
* }
* ```
*
* When this css rule is loaded by the browser, all html elements (including their children) that
* are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive
* during the compilation of the template it deletes the `ngCloak` element attribute, making
* the compiled element visible.
*
* For the best result, the `angular.js` script must be loaded in the head section of the html
* document; alternatively, the css rule above must be included in the external stylesheet of the
* application.
*
* @element ANY
*
* @example
<example name="ng-cloak">
<file name="index.html">
<div id="template1" ng-cloak>{{ 'hello' }}</div>
<div id="template2" class="ng-cloak">{{ 'world' }}</div>
</file>
<file name="protractor.js" type="protractor">
it('should remove the template directive and css class', function() {
expect($('#template1').getAttribute('ng-cloak')).
toBeNull();
expect($('#template2').getAttribute('ng-cloak')).
toBeNull();
});
</file>
</example>
*
*/
var ngCloakDirective = ngDirective({
compile: function compile(element, attr) {
attr.$set('ngCloak', undefined);
element.removeClass('ng-cloak');
}
});
/**
* @ngdoc directive
* @name ngController
*
* @description
* The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
* supports the principles behind the Model-View-Controller design pattern.
*
* MVC components in angular:
*
* * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties
* are accessed through bindings.
* * View — The template (HTML with data bindings) that is rendered into the View.
* * Controller — The `ngController` directive specifies a Controller class; the class contains business
* logic behind the application to decorate the scope with functions and values
*
* Note that you can also attach controllers to the DOM by declaring it in a route definition
* via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller
* again using `ng-controller` in the template itself. This will cause the controller to be attached
* and executed twice.
*
* @element ANY
* @scope
* @priority 500
* @param {expression} ngController Name of a constructor function registered with the current
* {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
* that on the current scope evaluates to a constructor function.
*
* The controller instance can be published into a scope property by specifying
* `ng-controller="as propertyName"`.
*
* If the current `$controllerProvider` is configured to use globals (via
* {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may
* also be the name of a globally accessible constructor function (deprecated, not recommended).
*
* @example
* Here is a simple form for editing user contact information. Adding, removing, clearing, and
* greeting are methods declared on the controller (see source tab). These methods can
* easily be called from the angular markup. Any changes to the data are automatically reflected
* in the View without the need for a manual update.
*
* Two different declaration styles are included below:
*
* * one binds methods and properties directly onto the controller using `this`:
* `ng-controller="SettingsController1 as settings"`
* * one injects `$scope` into the controller:
* `ng-controller="SettingsController2"`
*
* The second option is more common in the Angular community, and is generally used in boilerplates
* and in this guide. However, there are advantages to binding properties directly to the controller
* and avoiding scope.
*
* * Using `controller as` makes it obvious which controller you are accessing in the template when
* multiple controllers apply to an element.
* * If you are writing your controllers as classes you have easier access to the properties and
* methods, which will appear on the scope, from inside the controller code.
* * Since there is always a `.` in the bindings, you don't have to worry about prototypal
* inheritance masking primitives.
*
* This example demonstrates the `controller as` syntax.
*
* <example name="ngControllerAs" module="controllerAsExample">
* <file name="index.html">
* <div id="ctrl-as-exmpl" ng-controller="SettingsController1 as settings">
* <label>Name: <input type="text" ng-model="settings.name"/></label>
* <button ng-click="settings.greet()">greet</button><br/>
* Contact:
* <ul>
* <li ng-repeat="contact in settings.contacts">
* <select ng-model="contact.type" aria-label="Contact method" id="select_{{$index}}">
* <option>phone</option>
* <option>email</option>
* </select>
* <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
* <button ng-click="settings.clearContact(contact)">clear</button>
* <button ng-click="settings.removeContact(contact)" aria-label="Remove">X</button>
* </li>
* <li><button ng-click="settings.addContact()">add</button></li>
* </ul>
* </div>
* </file>
* <file name="app.js">
* angular.module('controllerAsExample', [])
* .controller('SettingsController1', SettingsController1);
*
* function SettingsController1() {
* this.name = 'John Smith';
* this.contacts = [
* {type: 'phone', value: '408 555 1212'},
* {type: 'email', value: 'john.smith@example.org'}
* ];
* }
*
* SettingsController1.prototype.greet = function() {
* alert(this.name);
* };
*
* SettingsController1.prototype.addContact = function() {
* this.contacts.push({type: 'email', value: 'yourname@example.org'});
* };
*
* SettingsController1.prototype.removeContact = function(contactToRemove) {
* var index = this.contacts.indexOf(contactToRemove);
* this.contacts.splice(index, 1);
* };
*
* SettingsController1.prototype.clearContact = function(contact) {
* contact.type = 'phone';
* contact.value = '';
* };
* </file>
* <file name="protractor.js" type="protractor">
* it('should check controller as', function() {
* var container = element(by.id('ctrl-as-exmpl'));
* expect(container.element(by.model('settings.name'))
* .getAttribute('value')).toBe('John Smith');
*
* var firstRepeat =
* container.element(by.repeater('contact in settings.contacts').row(0));
* var secondRepeat =
* container.element(by.repeater('contact in settings.contacts').row(1));
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('408 555 1212');
*
* expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('john.smith@example.org');
*
* firstRepeat.element(by.buttonText('clear')).click();
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('');
*
* container.element(by.buttonText('add')).click();
*
* expect(container.element(by.repeater('contact in settings.contacts').row(2))
* .element(by.model('contact.value'))
* .getAttribute('value'))
* .toBe('yourname@example.org');
* });
* </file>
* </example>
*
* This example demonstrates the "attach to `$scope`" style of controller.
*
* <example name="ngController" module="controllerExample">
* <file name="index.html">
* <div id="ctrl-exmpl" ng-controller="SettingsController2">
* <label>Name: <input type="text" ng-model="name"/></label>
* <button ng-click="greet()">greet</button><br/>
* Contact:
* <ul>
* <li ng-repeat="contact in contacts">
* <select ng-model="contact.type" id="select_{{$index}}">
* <option>phone</option>
* <option>email</option>
* </select>
* <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
* <button ng-click="clearContact(contact)">clear</button>
* <button ng-click="removeContact(contact)">X</button>
* </li>
* <li>[ <button ng-click="addContact()">add</button> ]</li>
* </ul>
* </div>
* </file>
* <file name="app.js">
* angular.module('controllerExample', [])
* .controller('SettingsController2', ['$scope', SettingsController2]);
*
* function SettingsController2($scope) {
* $scope.name = 'John Smith';
* $scope.contacts = [
* {type:'phone', value:'408 555 1212'},
* {type:'email', value:'john.smith@example.org'}
* ];
*
* $scope.greet = function() {
* alert($scope.name);
* };
*
* $scope.addContact = function() {
* $scope.contacts.push({type:'email', value:'yourname@example.org'});
* };
*
* $scope.removeContact = function(contactToRemove) {
* var index = $scope.contacts.indexOf(contactToRemove);
* $scope.contacts.splice(index, 1);
* };
*
* $scope.clearContact = function(contact) {
* contact.type = 'phone';
* contact.value = '';
* };
* }
* </file>
* <file name="protractor.js" type="protractor">
* it('should check controller', function() {
* var container = element(by.id('ctrl-exmpl'));
*
* expect(container.element(by.model('name'))
* .getAttribute('value')).toBe('John Smith');
*
* var firstRepeat =
* container.element(by.repeater('contact in contacts').row(0));
* var secondRepeat =
* container.element(by.repeater('contact in contacts').row(1));
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('408 555 1212');
* expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('john.smith@example.org');
*
* firstRepeat.element(by.buttonText('clear')).click();
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('');
*
* container.element(by.buttonText('add')).click();
*
* expect(container.element(by.repeater('contact in contacts').row(2))
* .element(by.model('contact.value'))
* .getAttribute('value'))
* .toBe('yourname@example.org');
* });
* </file>
*</example>
*/
var ngControllerDirective = [function () {
return {
restrict: 'A',
scope: true,
controller: '@',
priority: 500
};
}];
/**
* @ngdoc directive
* @name ngCsp
*
* @restrict A
* @element ANY
* @description
*
* Angular has some features that can conflict with certain restrictions that are applied when using
* [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.
*
* If you intend to implement CSP with these rules then you must tell Angular not to use these
* features.
*
* This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.
*
*
* The following default rules in CSP affect Angular:
*
* * The use of `eval()`, `Function(string)` and similar functions to dynamically create and execute
* code from strings is forbidden. Angular makes use of this in the {@link $parse} service to
* provide a 30% increase in the speed of evaluating Angular expressions. (This CSP rule can be
* disabled with the CSP keyword `unsafe-eval`, but it is generally not recommended as it would
* weaken the protections offered by CSP.)
*
* * The use of inline resources, such as inline `<script>` and `<style>` elements, are forbidden.
* This prevents apps from injecting custom styles directly into the document. Angular makes use of
* this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}). To make these
* directives work when a CSP rule is blocking inline styles, you must link to the `angular-csp.css`
* in your HTML manually. (This CSP rule can be disabled with the CSP keyword `unsafe-inline`, but
* it is generally not recommended as it would weaken the protections offered by CSP.)
*
* If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking dynamic code
* creation from strings (e.g., `unsafe-eval` not specified in CSP header) and automatically
* deactivates this feature in the {@link $parse} service. This autodetection, however, triggers a
* CSP error to be logged in the console:
*
* ```
* Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of
* script in the following Content Security Policy directive: "default-src 'self'". Note that
* 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
* ```
*
* This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`
* directive on an element of the HTML document that appears before the `<script>` tag that loads
* the `angular.js` file.
*
* *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*
*
* You can specify which of the CSP related Angular features should be deactivated by providing
* a value for the `ng-csp` attribute. The options are as follows:
*
* * no-inline-style: this stops Angular from injecting CSS styles into the DOM
*
* * no-unsafe-eval: this stops Angular from optimizing $parse with unsafe eval of strings
*
* You can use these values in the following combinations:
*
*
* * No declaration means that Angular will assume that you can do inline styles, but it will do
* a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous
* versions of Angular.
*
* * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline
* styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous
* versions of Angular.
*
* * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can
* inject inline styles. E.g. `<body ng-csp="no-unsafe-eval">`.
*
* * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can
* run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
*
* * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject
* styles nor use eval, which is the same as an empty: ng-csp.
* E.g.`<body ng-csp="no-inline-style;no-unsafe-eval">`
*
* @example
*
* This example shows how to apply the `ngCsp` directive to the `html` tag.
```html
<!doctype html>
<html ng-app ng-csp>
...
...
</html>
```
<!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->
<example name="example.csp" module="cspExample" ng-csp="true">
<file name="index.html">
<div ng-controller="MainController as ctrl">
<div>
<button ng-click="ctrl.inc()" id="inc">Increment</button>
<span id="counter">
{{ctrl.counter}}
</span>
</div>
<div>
<button ng-click="ctrl.evil()" id="evil">Evil</button>
<span id="evilError">
{{ctrl.evilError}}
</span>
</div>
</div>
</file>
<file name="script.js">
angular.module('cspExample', [])
.controller('MainController', function MainController() {
this.counter = 0;
this.inc = function() {
this.counter++;
};
this.evil = function() {
try {
eval('1+2'); // eslint-disable-line no-eval
} catch (e) {
this.evilError = e.message;
}
};
});
</file>
<file name="protractor.js" type="protractor">
var util, webdriver;
var incBtn = element(by.id('inc'));
var counter = element(by.id('counter'));
var evilBtn = element(by.id('evil'));
var evilError = element(by.id('evilError'));
function getAndClearSevereErrors() {
return browser.manage().logs().get('browser').then(function(browserLog) {
return browserLog.filter(function(logEntry) {
return logEntry.level.value > webdriver.logging.Level.WARNING.value;
});
});
}
function clearErrors() {
getAndClearSevereErrors();
}
function expectNoErrors() {
getAndClearSevereErrors().then(function(filteredLog) {
expect(filteredLog.length).toEqual(0);
if (filteredLog.length) {
console.log('browser console errors: ' + util.inspect(filteredLog));
}
});
}
function expectError(regex) {
getAndClearSevereErrors().then(function(filteredLog) {
var found = false;
filteredLog.forEach(function(log) {
if (log.message.match(regex)) {
found = true;
}
});
if (!found) {
throw new Error('expected an error that matches ' + regex);
}
});
}
beforeEach(function() {
util = require('util');
webdriver = require('selenium-webdriver');
});
// For now, we only test on Chrome,
// as Safari does not load the page with Protractor's injected scripts,
// and Firefox webdriver always disables content security policy (#6358)
if (browser.params.browser !== 'chrome') {
return;
}
it('should not report errors when the page is loaded', function() {
// clear errors so we are not dependent on previous tests
clearErrors();
// Need to reload the page as the page is already loaded when
// we come here
browser.driver.getCurrentUrl().then(function(url) {
browser.get(url);
});
expectNoErrors();
});
it('should evaluate expressions', function() {
expect(counter.getText()).toEqual('0');
incBtn.click();
expect(counter.getText()).toEqual('1');
expectNoErrors();
});
it('should throw and report an error when using "eval"', function() {
evilBtn.click();
expect(evilError.getText()).toMatch(/Content Security Policy/);
expectError(/Content Security Policy/);
});
</file>
</example>
*/
// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while
// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()`
// fn that looks for the `ng-csp` attribute anywhere in the current doc.
/**
* @ngdoc directive
* @name ngClick
* @restrict A
* @element ANY
* @priority 0
*
* @description
* The ngClick directive allows you to specify custom behavior when
* an element is clicked.
*
* @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
* click. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-click">
<file name="index.html">
<button ng-click="count = count + 1" ng-init="count=0">
Increment
</button>
<span>
count: {{count}}
</span>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-click', function() {
expect(element(by.binding('count')).getText()).toMatch('0');
element(by.css('button')).click();
expect(element(by.binding('count')).getText()).toMatch('1');
});
</file>
</example>
*/
/*
* A collection of directives that allows creation of custom event handlers that are defined as
* angular expressions and are compiled and executed within the current scope.
*/
var ngEventDirectives = {};
// For events that might fire synchronously during DOM manipulation
// we need to execute their event handlers asynchronously using $evalAsync,
// so that they are not executed in an inconsistent state.
var forceAsyncEvents = {
'blur': true,
'focus': true
};
forEach('click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '), function (eventName) {
var directiveName = directiveNormalize('ng-' + eventName);
ngEventDirectives[directiveName] = ['$parse', '$rootScope', function ($parse, $rootScope) {
return {
restrict: 'A',
compile: function compile($element, attr) {
// NOTE:
// We expose the powerful `$event` object on the scope that provides access to the Window,
// etc. This is OK, because expressions are not sandboxed any more (and the expression
// sandbox was never meant to be a security feature anyway).
var fn = $parse(attr[directiveName]);
return function ngEventHandler(scope, element) {
element.on(eventName, function (event) {
var callback = function callback() {
fn(scope, { $event: event });
};
if (forceAsyncEvents[eventName] && $rootScope.$$phase) {
scope.$evalAsync(callback);
} else {
scope.$apply(callback);
}
});
};
}
};
}];
});
/**
* @ngdoc directive
* @name ngDblclick
* @restrict A
* @element ANY
* @priority 0
*
* @description
* The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.
*
* @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
* a dblclick. (The Event object is available as `$event`)
*
* @example
<example name="ng-dblclick">
<file name="index.html">
<button ng-dblclick="count = count + 1" ng-init="count=0">
Increment (on double click)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMousedown
* @restrict A
* @element ANY
* @priority 0
*
* @description
* The ngMousedown directive allows you to specify custom behavior on mousedown event.
*
* @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
* mousedown. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mousedown">
<file name="index.html">
<button ng-mousedown="count = count + 1" ng-init="count=0">
Increment (on mouse down)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMouseup
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on mouseup event.
*
* @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
* mouseup. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mouseup">
<file name="index.html">
<button ng-mouseup="count = count + 1" ng-init="count=0">
Increment (on mouse up)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMouseover
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on mouseover event.
*
* @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
* mouseover. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mouseover">
<file name="index.html">
<button ng-mouseover="count = count + 1" ng-init="count=0">
Increment (when mouse is over)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMouseenter
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on mouseenter event.
*
* @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
* mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mouseenter">
<file name="index.html">
<button ng-mouseenter="count = count + 1" ng-init="count=0">
Increment (when mouse enters)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMouseleave
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on mouseleave event.
*
* @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
* mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mouseleave">
<file name="index.html">
<button ng-mouseleave="count = count + 1" ng-init="count=0">
Increment (when mouse leaves)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngMousemove
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on mousemove event.
*
* @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
* mousemove. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-mousemove">
<file name="index.html">
<button ng-mousemove="count = count + 1" ng-init="count=0">
Increment (when mouse moves)
</button>
count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngKeydown
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on keydown event.
*
* @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
* keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
*
* @example
<example name="ng-keydown">
<file name="index.html">
<input ng-keydown="count = count + 1" ng-init="count=0">
key down count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngKeyup
* @restrict A
* @element ANY
* @priority 0
*
* @description
* Specify custom behavior on keyup event.
*
* @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
* keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
*
* @example
<example name="ng-keyup">
<file name="index.html">
<p>Typing in the input box below updates the key count</p>
<input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
<p>Typing in the input box below updates the keycode</p>
<input ng-keyup="event=$event">
<p>event keyCode: {{ event.keyCode }}</p>
<p>event altKey: {{ event.altKey }}</p>
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngKeypress
* @restrict A
* @element ANY
*
* @description
* Specify custom behavior on keypress event.
*
* @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon
* keypress. ({@link guide/expression#-event- Event object is available as `$event`}
* and can be interrogated for keyCode, altKey, etc.)
*
* @example
<example name="ng-keypress">
<file name="index.html">
<input ng-keypress="count = count + 1" ng-init="count=0">
key press count: {{count}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngSubmit
* @restrict A
* @element form
* @priority 0
*
* @description
* Enables binding angular expressions to onsubmit events.
*
* Additionally it prevents the default action (which for form means sending the request to the
* server and reloading the current page), but only if the form does not contain `action`,
* `data-action`, or `x-action` attributes.
*
* <div class="alert alert-warning">
* **Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and
* `ngSubmit` handlers together. See the
* {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}
* for a detailed discussion of when `ngSubmit` may be triggered.
* </div>
*
* @param {expression} ngSubmit {@link guide/expression Expression} to eval.
* ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example module="submitExample" name="ng-submit">
<file name="index.html">
<script>
angular.module('submitExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.list = [];
$scope.text = 'hello';
$scope.submit = function() {
if ($scope.text) {
$scope.list.push(this.text);
$scope.text = '';
}
};
}]);
</script>
<form ng-submit="submit()" ng-controller="ExampleController">
Enter text and hit enter:
<input type="text" ng-model="text" name="text" />
<input type="submit" id="submit" value="Submit" />
<pre>list={{list}}</pre>
</form>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-submit', function() {
expect(element(by.binding('list')).getText()).toBe('list=[]');
element(by.css('#submit')).click();
expect(element(by.binding('list')).getText()).toContain('hello');
expect(element(by.model('text')).getAttribute('value')).toBe('');
});
it('should ignore empty strings', function() {
expect(element(by.binding('list')).getText()).toBe('list=[]');
element(by.css('#submit')).click();
element(by.css('#submit')).click();
expect(element(by.binding('list')).getText()).toContain('hello');
});
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngFocus
* @restrict A
* @element window, input, select, textarea, a
* @priority 0
*
* @description
* Specify custom behavior on focus event.
*
* Note: As the `focus` event is executed synchronously when calling `input.focus()`
* AngularJS executes the expression using `scope.$evalAsync` if the event is fired
* during an `$apply` to ensure a consistent state.
*
* @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon
* focus. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ngBlur
* @restrict A
* @element window, input, select, textarea, a
* @priority 0
*
* @description
* Specify custom behavior on blur event.
*
* A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when
* an element has lost focus.
*
* Note: As the `blur` event is executed synchronously also during DOM manipulations
* (e.g. removing a focussed input),
* AngularJS executes the expression using `scope.$evalAsync` if the event is fired
* during an `$apply` to ensure a consistent state.
*
* @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon
* blur. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
* See {@link ng.directive:ngClick ngClick}
*/
/**
* @ngdoc directive
* @name ngCopy
* @restrict A
* @element window, input, select, textarea, a
* @priority 0
*
* @description
* Specify custom behavior on copy event.
*
* @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon
* copy. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-copy">
<file name="index.html">
<input ng-copy="copied=true" ng-init="copied=false; value='copy me'" ng-model="value">
copied: {{copied}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngCut
* @restrict A
* @element window, input, select, textarea, a
* @priority 0
*
* @description
* Specify custom behavior on cut event.
*
* @param {expression} ngCut {@link guide/expression Expression} to evaluate upon
* cut. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-cut">
<file name="index.html">
<input ng-cut="cut=true" ng-init="cut=false; value='cut me'" ng-model="value">
cut: {{cut}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngPaste
* @restrict A
* @element window, input, select, textarea, a
* @priority 0
*
* @description
* Specify custom behavior on paste event.
*
* @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon
* paste. ({@link guide/expression#-event- Event object is available as `$event`})
*
* @example
<example name="ng-paste">
<file name="index.html">
<input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
pasted: {{paste}}
</file>
</example>
*/
/**
* @ngdoc directive
* @name ngIf
* @restrict A
* @multiElement
*
* @description
* The `ngIf` directive removes or recreates a portion of the DOM tree based on an
* {expression}. If the expression assigned to `ngIf` evaluates to a false
* value then the element is removed from the DOM, otherwise a clone of the
* element is reinserted into the DOM.
*
* `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
* element in the DOM rather than changing its visibility via the `display` css property. A common
* case when this difference is significant is when using css selectors that rely on an element's
* position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
*
* Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
* is created when the element is restored. The scope created within `ngIf` inherits from
* its parent scope using
* [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).
* An important implication of this is if `ngModel` is used within `ngIf` to bind to
* a javascript primitive defined in the parent scope. In this case any modifications made to the
* variable within the child scope will override (hide) the value in the parent scope.
*
* Also, `ngIf` recreates elements using their compiled state. An example of this behavior
* is if an element's class attribute is directly modified after it's compiled, using something like
* jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
* the added class will be lost because the original compiled state is used to regenerate the element.
*
* Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`
* and `leave` effects.
*
* @animations
* | Animation | Occurs |
* |----------------------------------|-------------------------------------|
* | {@link ng.$animate#enter enter} | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |
* | {@link ng.$animate#leave leave} | just before the `ngIf` contents are removed from the DOM |
*
* @element ANY
* @scope
* @priority 600
* @param {expression} ngIf If the {@link guide/expression expression} is falsy then
* the element is removed from the DOM tree. If it is truthy a copy of the compiled
* element is added to the DOM tree.
*
* @example
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-if">
<file name="index.html">
<label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
Show when checked:
<span ng-if="checked" class="animate-if">
This is removed when the checkbox is unchecked.
</span>
</file>
<file name="animations.css">
.animate-if {
background:white;
border:1px solid black;
padding:10px;
}
.animate-if.ng-enter, .animate-if.ng-leave {
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}
.animate-if.ng-enter,
.animate-if.ng-leave.ng-leave-active {
opacity:0;
}
.animate-if.ng-leave,
.animate-if.ng-enter.ng-enter-active {
opacity:1;
}
</file>
</example>
*/
var ngIfDirective = ['$animate', '$compile', function ($animate, $compile) {
return {
multiElement: true,
transclude: 'element',
priority: 600,
terminal: true,
restrict: 'A',
$$tlb: true,
link: function link($scope, $element, $attr, ctrl, $transclude) {
var block, childScope, previousElements;
$scope.$watch($attr.ngIf, function ngIfWatchAction(value) {
if (value) {
if (!childScope) {
$transclude(function (clone, newScope) {
childScope = newScope;
clone[clone.length++] = $compile.$$createComment('end ngIf', $attr.ngIf);
// Note: We only need the first/last node of the cloned nodes.
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
// by a directive with templateUrl when its template arrives.
block = {
clone: clone
};
$animate.enter(clone, $element.parent(), $element);
});
}
} else {
if (previousElements) {
previousElements.remove();
previousElements = null;
}
if (childScope) {
childScope.$destroy();
childScope = null;
}
if (block) {
previousElements = getBlockNodes(block.clone);
$animate.leave(previousElements).done(function (response) {
if (response !== false) previousElements = null;
});
block = null;
}
}
});
}
};
}];
/**
* @ngdoc directive
* @name ngInclude
* @restrict ECA
* @scope
* @priority -400
*
* @description
* Fetches, compiles and includes an external HTML fragment.
*
* By default, the template URL is restricted to the same domain and protocol as the
* application document. This is done by calling {@link $sce#getTrustedResourceUrl
* $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols
* you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or
* {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link
* ng.$sce Strict Contextual Escaping}.
*
* In addition, the browser's
* [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
* and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
* policy may further restrict whether the template is successfully loaded.
* For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`
* access on some browsers.
*
* @animations
* | Animation | Occurs |
* |----------------------------------|-------------------------------------|
* | {@link ng.$animate#enter enter} | when the expression changes, on the new include |
* | {@link ng.$animate#leave leave} | when the expression changes, on the old include |
*
* The enter and leave animation occur concurrently.
*
* @param {string} ngInclude|src AngularJS expression evaluating to URL. If the source is a string constant,
* make sure you wrap it in **single** quotes, e.g. `src="'myPartialTemplate.html'"`.
* @param {string=} onload Expression to evaluate when a new partial is loaded.
* <div class="alert alert-warning">
* **Note:** When using onload on SVG elements in IE11, the browser will try to call
* a function with the name on the window element, which will usually throw a
* "function is undefined" error. To fix this, you can instead use `data-onload` or a
* different form that {@link guide/directive#normalization matches} `onload`.
* </div>
*
* @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
* $anchorScroll} to scroll the viewport after the content is loaded.
*
* - If the attribute is not set, disable scrolling.
* - If the attribute is set without value, enable scrolling.
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
*
* @example
<example module="includeExample" deps="angular-animate.js" animations="true" name="ng-include">
<file name="index.html">
<div ng-controller="ExampleController">
<select ng-model="template" ng-options="t.name for t in templates">
<option value="">(blank)</option>
</select>
url of the template: <code>{{template.url}}</code>
<hr/>
<div class="slide-animate-container">
<div class="slide-animate" ng-include="template.url"></div>
</div>
</div>
</file>
<file name="script.js">
angular.module('includeExample', ['ngAnimate'])
.controller('ExampleController', ['$scope', function($scope) {
$scope.templates =
[{ name: 'template1.html', url: 'template1.html'},
{ name: 'template2.html', url: 'template2.html'}];
$scope.template = $scope.templates[0];
}]);
</file>
<file name="template1.html">
Content of template1.html
</file>
<file name="template2.html">
Content of template2.html
</file>
<file name="animations.css">
.slide-animate-container {
position:relative;
background:white;
border:1px solid black;
height:40px;
overflow:hidden;
}
.slide-animate {
padding:10px;
}
.slide-animate.ng-enter, .slide-animate.ng-leave {
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
display:block;
padding:10px;
}
.slide-animate.ng-enter {
top:-50px;
}
.slide-animate.ng-enter.ng-enter-active {
top:0;
}
.slide-animate.ng-leave {
top:0;
}
.slide-animate.ng-leave.ng-leave-active {
top:50px;
}
</file>
<file name="protractor.js" type="protractor">
var templateSelect = element(by.model('template'));
var includeElem = element(by.css('[ng-include]'));
it('should load template1.html', function() {
expect(includeElem.getText()).toMatch(/Content of template1.html/);
});
it('should load template2.html', function() {
if (browser.params.browser === 'firefox') {
// Firefox can't handle using selects
// See https://github.com/angular/protractor/issues/480
return;
}
templateSelect.click();
templateSelect.all(by.css('option')).get(2).click();
expect(includeElem.getText()).toMatch(/Content of template2.html/);
});
it('should change to blank', function() {
if (browser.params.browser === 'firefox') {
// Firefox can't handle using selects
return;
}
templateSelect.click();
templateSelect.all(by.css('option')).get(0).click();
expect(includeElem.isPresent()).toBe(false);
});
</file>
</example>
*/
/**
* @ngdoc event
* @name ngInclude#$includeContentRequested
* @eventType emit on the scope ngInclude was declared in
* @description
* Emitted every time the ngInclude content is requested.
*
* @param {Object} angularEvent Synthetic event object.
* @param {String} src URL of content to load.
*/
/**
* @ngdoc event
* @name ngInclude#$includeContentLoaded
* @eventType emit on the current ngInclude scope
* @description
* Emitted every time the ngInclude content is reloaded.
*
* @param {Object} angularEvent Synthetic event object.
* @param {String} src URL of content to load.
*/
/**
* @ngdoc event
* @name ngInclude#$includeContentError
* @eventType emit on the scope ngInclude was declared in
* @description
* Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)
*
* @param {Object} angularEvent Synthetic event object.
* @param {String} src URL of content to load.
*/
var ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate', function ($templateRequest, $anchorScroll, $animate) {
return {
restrict: 'ECA',
priority: 400,
terminal: true,
transclude: 'element',
controller: angular.noop,
compile: function compile(element, attr) {
var srcExp = attr.ngInclude || attr.src,
onloadExp = attr.onload || '',
autoScrollExp = attr.autoscroll;
return function (scope, $element, $attr, ctrl, $transclude) {
var changeCounter = 0,
currentScope,
previousElement,
currentElement;
var cleanupLastIncludeContent = function cleanupLastIncludeContent() {
if (previousElement) {
previousElement.remove();
previousElement = null;
}
if (currentScope) {
currentScope.$destroy();
currentScope = null;
}
if (currentElement) {
$animate.leave(currentElement).done(function (response) {
if (response !== false) previousElement = null;
});
previousElement = currentElement;
currentElement = null;
}
};
scope.$watch(srcExp, function ngIncludeWatchAction(src) {
var afterAnimation = function afterAnimation(response) {
if (response !== false && isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {
$anchorScroll();
}
};
var thisChangeId = ++changeCounter;
if (src) {
//set the 2nd param to true to ignore the template request error so that the inner
//contents and scope can be cleaned up.
$templateRequest(src, true).then(function (response) {
if (scope.$$destroyed) return;
if (thisChangeId !== changeCounter) return;
var newScope = scope.$new();
ctrl.template = response;
// Note: This will also link all children of ng-include that were contained in the original
// html. If that content contains controllers, ... they could pollute/change the scope.
// However, using ng-include on an element with additional content does not make sense...
// Note: We can't remove them in the cloneAttchFn of $transclude as that
// function is called before linking the content, which would apply child
// directives to non existing elements.
var clone = $transclude(newScope, function (clone) {
cleanupLastIncludeContent();
$animate.enter(clone, null, $element).done(afterAnimation);
});
currentScope = newScope;
currentElement = clone;
currentScope.$emit('$includeContentLoaded', src);
scope.$eval(onloadExp);
}, function () {
if (scope.$$destroyed) return;
if (thisChangeId === changeCounter) {
cleanupLastIncludeContent();
scope.$emit('$includeContentError', src);
}
});
scope.$emit('$includeContentRequested', src);
} else {
cleanupLastIncludeContent();
ctrl.template = null;
}
});
};
}
};
}];
// This directive is called during the $transclude call of the first `ngInclude` directive.
// It will replace and compile the content of the element with the loaded template.
// We need this directive so that the element content is already filled when
// the link function of another directive on the same element as ngInclude
// is called.
var ngIncludeFillContentDirective = ['$compile', function ($compile) {
return {
restrict: 'ECA',
priority: -400,
require: 'ngInclude',
link: function link(scope, $element, $attr, ctrl) {
if (toString.call($element[0]).match(/SVG/)) {
// WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not
// support innerHTML, so detect this here and try to generate the contents
// specially.
$element.empty();
$compile(jqLiteBuildFragment(ctrl.template, window.document).childNodes)(scope, function namespaceAdaptedClone(clone) {
$element.append(clone);
}, { futureParentElement: $element });
return;
}
$element.html(ctrl.template);
$compile($element.contents())(scope);
}
};
}];
/**
* @ngdoc directive
* @name ngInit
* @restrict AC
* @priority 450
* @element ANY
*
* @param {expression} ngInit {@link guide/expression Expression} to eval.
*
* @description
* The `ngInit` directive allows you to evaluate an expression in the
* current scope.
*
* <div class="alert alert-danger">
* This directive can be abused to add unnecessary amounts of logic into your templates.
* There are only a few appropriate uses of `ngInit`:
* <ul>
* <li>aliasing special properties of {@link ng.directive:ngRepeat `ngRepeat`},
* as seen in the demo below.</li>
* <li>initializing data during development, or for examples, as seen throughout these docs.</li>
* <li>injecting data via server side scripting.</li>
* </ul>
*
* Besides these few cases, you should use {@link guide/component Components} or
* {@link guide/controller Controllers} rather than `ngInit` to initialize values on a scope.
* </div>
*
* <div class="alert alert-warning">
* **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make
* sure you have parentheses to ensure correct operator precedence:
* <pre class="prettyprint">
* `<div ng-init="test1 = ($index | toString)"></div>`
* </pre>
* </div>
*
* @example
<example module="initExample" name="ng-init">
<file name="index.html">
<script>
angular.module('initExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.list = [['a', 'b'], ['c', 'd']];
}]);
</script>
<div ng-controller="ExampleController">
<div ng-repeat="innerList in list" ng-init="outerIndex = $index">
<div ng-repeat="value in innerList" ng-init="innerIndex = $index">
<span class="example-init">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>
</div>
</div>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should alias index positions', function() {
var elements = element.all(by.css('.example-init'));
expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');
expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');
expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');
expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');
});
</file>
</example>
*/
var ngInitDirective = ngDirective({
priority: 450,
compile: function compile() {
return {
pre: function pre(scope, element, attrs) {
scope.$eval(attrs.ngInit);
}
};
}
});
/**
* @ngdoc directive
* @name ngList
* @restrict A
* @priority 100
*
* @param {string=} ngList optional delimiter that should be used to split the value.
*
* @description
* Text input that converts between a delimited string and an array of strings. The default
* delimiter is a comma followed by a space - equivalent to `ng-list=", "`. You can specify a custom
* delimiter as the value of the `ngList` attribute - for example, `ng-list=" | "`.
*
* The behaviour of the directive is affected by the use of the `ngTrim` attribute.
* * If `ngTrim` is set to `"false"` then whitespace around both the separator and each
* list item is respected. This implies that the user of the directive is responsible for
* dealing with whitespace but also allows you to use whitespace as a delimiter, such as a
* tab or newline character.
* * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected
* when joining the list items back together) and whitespace around each list item is stripped
* before it is added to the model.
*
* @example
* ### Validation
*
* <example name="ngList-directive" module="listExample">
* <file name="app.js">
* angular.module('listExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.names = ['morpheus', 'neo', 'trinity'];
* }]);
* </file>
* <file name="index.html">
* <form name="myForm" ng-controller="ExampleController">
* <label>List: <input name="namesInput" ng-model="names" ng-list required></label>
* <span role="alert">
* <span class="error" ng-show="myForm.namesInput.$error.required">
* Required!</span>
* </span>
* <br>
* <tt>names = {{names}}</tt><br/>
* <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>
* <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>
* <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
* <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
* </form>
* </file>
* <file name="protractor.js" type="protractor">
* var listInput = element(by.model('names'));
* var names = element(by.exactBinding('names'));
* var valid = element(by.binding('myForm.namesInput.$valid'));
* var error = element(by.css('span.error'));
*
* it('should initialize to model', function() {
* expect(names.getText()).toContain('["morpheus","neo","trinity"]');
* expect(valid.getText()).toContain('true');
* expect(error.getCssValue('display')).toBe('none');
* });
*
* it('should be invalid if empty', function() {
* listInput.clear();
* listInput.sendKeys('');
*
* expect(names.getText()).toContain('');
* expect(valid.getText()).toContain('false');
* expect(error.getCssValue('display')).not.toBe('none');
* });
* </file>
* </example>
*
* @example
* ### Splitting on newline
*
* <example name="ngList-directive-newlines">
* <file name="index.html">
* <textarea ng-model="list" ng-list="&#10;" ng-trim="false"></textarea>
* <pre>{{ list | json }}</pre>
* </file>
* <file name="protractor.js" type="protractor">
* it("should split the text by newlines", function() {
* var listInput = element(by.model('list'));
* var output = element(by.binding('list | json'));
* listInput.sendKeys('abc\ndef\nghi');
* expect(output.getText()).toContain('[\n "abc",\n "def",\n "ghi"\n]');
* });
* </file>
* </example>
*
*/
var ngListDirective = function ngListDirective() {
return {
restrict: 'A',
priority: 100,
require: 'ngModel',
link: function link(scope, element, attr, ctrl) {
var ngList = attr.ngList || ', ';
var trimValues = attr.ngTrim !== 'false';
var separator = trimValues ? trim(ngList) : ngList;
var parse = function parse(viewValue) {
// If the viewValue is invalid (say required but empty) it will be `undefined`
if (isUndefined(viewValue)) return;
var list = [];
if (viewValue) {
forEach(viewValue.split(separator), function (value) {
if (value) list.push(trimValues ? trim(value) : value);
});
}
return list;
};
ctrl.$parsers.push(parse);
ctrl.$formatters.push(function (value) {
if (isArray(value)) {
return value.join(ngList);
}
return undefined;
});
// Override the standard $isEmpty because an empty array means the input is empty.
ctrl.$isEmpty = function (value) {
return !value || !value.length;
};
}
};
};
/* global VALID_CLASS: true,
INVALID_CLASS: true,
PRISTINE_CLASS: true,
DIRTY_CLASS: true,
UNTOUCHED_CLASS: true,
TOUCHED_CLASS: true,
PENDING_CLASS: true,
addSetValidityMethod: true,
setupValidity: true,
defaultModelOptions: false
*/
var VALID_CLASS = 'ng-valid',
INVALID_CLASS = 'ng-invalid',
PRISTINE_CLASS = 'ng-pristine',
DIRTY_CLASS = 'ng-dirty',
UNTOUCHED_CLASS = 'ng-untouched',
TOUCHED_CLASS = 'ng-touched',
EMPTY_CLASS = 'ng-empty',
NOT_EMPTY_CLASS = 'ng-not-empty';
var ngModelMinErr = minErr('ngModel');
/**
* @ngdoc type
* @name ngModel.NgModelController
* @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a
* String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue
* is set.
*
* @property {*} $modelValue The value in the model that the control is bound to.
*
* @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever
* the control updates the ngModelController with a new {@link ngModel.NgModelController#$viewValue
`$viewValue`} from the DOM, usually via user input.
See {@link ngModel.NgModelController#$setViewValue `$setViewValue()`} for a detailed lifecycle explanation.
Note that the `$parsers` are not called when the bound ngModel expression changes programmatically.
The functions are called in array order, each passing
its return value through to the next. The last return value is forwarded to the
{@link ngModel.NgModelController#$validators `$validators`} collection.
Parsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue
`$viewValue`}.
Returning `undefined` from a parser means a parse error occurred. In that case,
no {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`
will be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}
is set to `true`. The parse error is stored in `ngModel.$error.parse`.
This simple example shows a parser that would convert text input value to lowercase:
* ```js
* function parse(value) {
* if (value) {
* return value.toLowerCase();
* }
* }
* ngModelController.$parsers.push(parse);
* ```
*
* @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever
the bound ngModel expression changes programmatically. The `$formatters` are not called when the
value of the control is changed by user interaction.
Formatters are used to format / convert the {@link ngModel.NgModelController#$modelValue
`$modelValue`} for display in the control.
The functions are called in reverse array order, each passing the value through to the
next. The last return value is used as the actual DOM value.
This simple example shows a formatter that would convert the model value to uppercase:
* ```js
* function format(value) {
* if (value) {
* return value.toUpperCase();
* }
* }
* ngModel.$formatters.push(format);
* ```
*
* @property {Object.<string, function>} $validators A collection of validators that are applied
* whenever the model value changes. The key value within the object refers to the name of the
* validator while the function refers to the validation operation. The validation operation is
* provided with the model value as an argument and must return a true or false value depending
* on the response of that validation.
*
* ```js
* ngModel.$validators.validCharacters = function(modelValue, viewValue) {
* var value = modelValue || viewValue;
* return /[0-9]+/.test(value) &&
* /[a-z]+/.test(value) &&
* /[A-Z]+/.test(value) &&
* /\W+/.test(value);
* };
* ```
*
* @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to
* perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided
* is expected to return a promise when it is run during the model validation process. Once the promise
* is delivered then the validation status will be set to true when fulfilled and false when rejected.
* When the asynchronous validators are triggered, each of the validators will run in parallel and the model
* value will only be updated once all validators have been fulfilled. As long as an asynchronous validator
* is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators
* will only run once all synchronous validators have passed.
*
* Please note that if $http is used then it is important that the server returns a success HTTP response code
* in order to fulfill the validation and a status level of `4xx` in order to reject the validation.
*
* ```js
* ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {
* var value = modelValue || viewValue;
*
* // Lookup user by username
* return $http.get('/api/users/' + value).
* then(function resolved() {
* //username exists, this means validation fails
* return $q.reject('exists');
* }, function rejected() {
* //username does not exist, therefore this validation passes
* return true;
* });
* };
* ```
*
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
* view value has changed. It is called with no arguments, and its return value is ignored.
* This can be used in place of additional $watches against the model value.
*
* @property {Object} $error An object hash with all failing validator ids as keys.
* @property {Object} $pending An object hash with all pending validator ids as keys.
*
* @property {boolean} $untouched True if control has not lost focus yet.
* @property {boolean} $touched True if control has lost focus.
* @property {boolean} $pristine True if user has not interacted with the control yet.
* @property {boolean} $dirty True if user has already interacted with the control.
* @property {boolean} $valid True if there is no error.
* @property {boolean} $invalid True if at least one error on the control.
* @property {string} $name The name attribute of the control.
*
* @description
*
* `NgModelController` provides API for the {@link ngModel `ngModel`} directive.
* The controller contains services for data-binding, validation, CSS updates, and value formatting
* and parsing. It purposefully does not contain any logic which deals with DOM rendering or
* listening to DOM events.
* Such DOM related logic should be provided by other directives which make use of
* `NgModelController` for data-binding to control elements.
* Angular provides this DOM logic for most {@link input `input`} elements.
* At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example
* custom control example} that uses `ngModelController` to bind to `contenteditable` elements.
*
* @example
* ### Custom Control Example
* This example shows how to use `NgModelController` with a custom control to achieve
* data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
* collaborate together to achieve the desired result.
*
* `contenteditable` is an HTML5 attribute, which tells the browser to let the element
* contents be edited in place by the user.
*
* We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}
* module to automatically remove "bad" content like inline event listener (e.g. `<span onclick="...">`).
* However, as we are using `$sce` the model can still decide to provide unsafe content if it marks
* that content using the `$sce` service.
*
* <example name="NgModelController" module="customControl" deps="angular-sanitize.js">
<file name="style.css">
[contenteditable] {
border: 1px solid black;
background-color: white;
min-height: 20px;
}
.ng-invalid {
border: 1px solid red;
}
</file>
<file name="script.js">
angular.module('customControl', ['ngSanitize']).
directive('contenteditable', ['$sce', function($sce) {
return {
restrict: 'A', // only activate on element attribute
require: '?ngModel', // get a hold of NgModelController
link: function(scope, element, attrs, ngModel) {
if (!ngModel) return; // do nothing if no ng-model
// Specify how UI should be updated
ngModel.$render = function() {
element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));
};
// Listen for change events to enable binding
element.on('blur keyup change', function() {
scope.$evalAsync(read);
});
read(); // initialize
// Write data to the model
function read() {
var html = element.html();
// When we clear the content editable the browser leaves a <br> behind
// If strip-br attribute is provided then we strip this out
if (attrs.stripBr && html === '<br>') {
html = '';
}
ngModel.$setViewValue(html);
}
}
};
}]);
</file>
<file name="index.html">
<form name="myForm">
<div contenteditable
name="myWidget" ng-model="userContent"
strip-br="true"
required>Change me!</div>
<span ng-show="myForm.myWidget.$error.required">Required!</span>
<hr>
<textarea ng-model="userContent" aria-label="Dynamic textarea"></textarea>
</form>
</file>
<file name="protractor.js" type="protractor">
it('should data-bind and become invalid', function() {
if (browser.params.browser === 'safari' || browser.params.browser === 'firefox') {
// SafariDriver can't handle contenteditable
// and Firefox driver can't clear contenteditables very well
return;
}
var contentEditable = element(by.css('[contenteditable]'));
var content = 'Change me!';
expect(contentEditable.getText()).toEqual(content);
contentEditable.clear();
contentEditable.sendKeys(protractor.Key.BACK_SPACE);
expect(contentEditable.getText()).toEqual('');
expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);
});
</file>
* </example>
*
*
*/
NgModelController.$inject = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$q', '$interpolate'];
function NgModelController($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $q, $interpolate) {
this.$viewValue = Number.NaN;
this.$modelValue = Number.NaN;
this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.
this.$validators = {};
this.$asyncValidators = {};
this.$parsers = [];
this.$formatters = [];
this.$viewChangeListeners = [];
this.$untouched = true;
this.$touched = false;
this.$pristine = true;
this.$dirty = false;
this.$valid = true;
this.$invalid = false;
this.$error = {}; // keep invalid keys here
this.$$success = {}; // keep valid keys here
this.$pending = undefined; // keep pending keys here
this.$name = $interpolate($attr.name || '', false)($scope);
this.$$parentForm = nullFormCtrl;
this.$options = defaultModelOptions;
this.$$updateEvents = '';
// Attach the correct context to the event handler function for updateOn
this.$$updateEventHandler = this.$$updateEventHandler.bind(this);
this.$$parsedNgModel = $parse($attr.ngModel);
this.$$parsedNgModelAssign = this.$$parsedNgModel.assign;
this.$$ngModelGet = this.$$parsedNgModel;
this.$$ngModelSet = this.$$parsedNgModelAssign;
this.$$pendingDebounce = null;
this.$$parserValid = undefined;
this.$$currentValidationRunId = 0;
// https://github.com/angular/angular.js/issues/15833
// Prevent `$$scope` from being iterated over by `copy` when NgModelController is deep watched
Object.defineProperty(this, '$$scope', { value: $scope });
this.$$attr = $attr;
this.$$element = $element;
this.$$animate = $animate;
this.$$timeout = $timeout;
this.$$parse = $parse;
this.$$q = $q;
this.$$exceptionHandler = $exceptionHandler;
setupValidity(this);
setupModelWatcher(this);
}
NgModelController.prototype = {
$$initGetterSetters: function $$initGetterSetters() {
if (this.$options.getOption('getterSetter')) {
var invokeModelGetter = this.$$parse(this.$$attr.ngModel + '()'),
invokeModelSetter = this.$$parse(this.$$attr.ngModel + '($$$p)');
this.$$ngModelGet = function ($scope) {
var modelValue = this.$$parsedNgModel($scope);
if (isFunction(modelValue)) {
modelValue = invokeModelGetter($scope);
}
return modelValue;
};
this.$$ngModelSet = function ($scope, newValue) {
if (isFunction(this.$$parsedNgModel($scope))) {
invokeModelSetter($scope, { $$$p: newValue });
} else {
this.$$parsedNgModelAssign($scope, newValue);
}
};
} else if (!this.$$parsedNgModel.assign) {
throw ngModelMinErr('nonassign', 'Expression \'{0}\' is non-assignable. Element: {1}', this.$$attr.ngModel, startingTag(this.$$element));
}
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$render
*
* @description
* Called when the view needs to be updated. It is expected that the user of the ng-model
* directive will implement this method.
*
* The `$render()` method is invoked in the following situations:
*
* * `$rollbackViewValue()` is called. If we are rolling back the view value to the last
* committed value then `$render()` is called to update the input control.
* * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and
* the `$viewValue` are different from last time.
*
* Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of
* `$modelValue` and `$viewValue` are actually different from their previous values. If `$modelValue`
* or `$viewValue` are objects (rather than a string or number) then `$render()` will not be
* invoked if you only change a property on the objects.
*/
$render: noop,
/**
* @ngdoc method
* @name ngModel.NgModelController#$isEmpty
*
* @description
* This is called when we need to determine if the value of an input is empty.
*
* For instance, the required directive does this to work out if the input has data or not.
*
* The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.
*
* You can override this for input directives whose concept of being empty is different from the
* default. The `checkboxInputType` directive does this because in its case a value of `false`
* implies empty.
*
* @param {*} value The value of the input to check for emptiness.
* @returns {boolean} True if `value` is "empty".
*/
$isEmpty: function $isEmpty(value) {
// eslint-disable-next-line no-self-compare
return isUndefined(value) || value === '' || value === null || value !== value;
},
$$updateEmptyClasses: function $$updateEmptyClasses(value) {
if (this.$isEmpty(value)) {
this.$$animate.removeClass(this.$$element, NOT_EMPTY_CLASS);
this.$$animate.addClass(this.$$element, EMPTY_CLASS);
} else {
this.$$animate.removeClass(this.$$element, EMPTY_CLASS);
this.$$animate.addClass(this.$$element, NOT_EMPTY_CLASS);
}
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$setPristine
*
* @description
* Sets the control to its pristine state.
*
* This method can be called to remove the `ng-dirty` class and set the control to its pristine
* state (`ng-pristine` class). A model is considered to be pristine when the control
* has not been changed from when first compiled.
*/
$setPristine: function $setPristine() {
this.$dirty = false;
this.$pristine = true;
this.$$animate.removeClass(this.$$element, DIRTY_CLASS);
this.$$animate.addClass(this.$$element, PRISTINE_CLASS);
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$setDirty
*
* @description
* Sets the control to its dirty state.
*
* This method can be called to remove the `ng-pristine` class and set the control to its dirty
* state (`ng-dirty` class). A model is considered to be dirty when the control has been changed
* from when first compiled.
*/
$setDirty: function $setDirty() {
this.$dirty = true;
this.$pristine = false;
this.$$animate.removeClass(this.$$element, PRISTINE_CLASS);
this.$$animate.addClass(this.$$element, DIRTY_CLASS);
this.$$parentForm.$setDirty();
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$setUntouched
*
* @description
* Sets the control to its untouched state.
*
* This method can be called to remove the `ng-touched` class and set the control to its
* untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched
* by default, however this function can be used to restore that state if the model has
* already been touched by the user.
*/
$setUntouched: function $setUntouched() {
this.$touched = false;
this.$untouched = true;
this.$$animate.setClass(this.$$element, UNTOUCHED_CLASS, TOUCHED_CLASS);
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$setTouched
*
* @description
* Sets the control to its touched state.
*
* This method can be called to remove the `ng-untouched` class and set the control to its
* touched state (`ng-touched` class). A model is considered to be touched when the user has
* first focused the control element and then shifted focus away from the control (blur event).
*/
$setTouched: function $setTouched() {
this.$touched = true;
this.$untouched = false;
this.$$animate.setClass(this.$$element, TOUCHED_CLASS, UNTOUCHED_CLASS);
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$rollbackViewValue
*
* @description
* Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,
* which may be caused by a pending debounced event or because the input is waiting for some
* future event.
*
* If you have an input that uses `ng-model-options` to set up debounced updates or updates that
* depend on special events such as `blur`, there can be a period when the `$viewValue` is out of
* sync with the ngModel's `$modelValue`.
*
* In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update
* and reset the input to the last committed view value.
*
* It is also possible that you run into difficulties if you try to update the ngModel's `$modelValue`
* programmatically before these debounced/future events have resolved/occurred, because Angular's
* dirty checking mechanism is not able to tell whether the model has actually changed or not.
*
* The `$rollbackViewValue()` method should be called before programmatically changing the model of an
* input which may have such events pending. This is important in order to make sure that the
* input field will be updated with the new model value and any pending operations are cancelled.
*
* @example
* <example name="ng-model-cancel-update" module="cancel-update-example">
* <file name="app.js">
* angular.module('cancel-update-example', [])
*
* .controller('CancelUpdateController', ['$scope', function($scope) {
* $scope.model = {value1: '', value2: ''};
*
* $scope.setEmpty = function(e, value, rollback) {
* if (e.keyCode === 27) {
* e.preventDefault();
* if (rollback) {
* $scope.myForm[value].$rollbackViewValue();
* }
* $scope.model[value] = '';
* }
* };
* }]);
* </file>
* <file name="index.html">
* <div ng-controller="CancelUpdateController">
* <p>Both of these inputs are only updated if they are blurred. Hitting escape should
* empty them. Follow these steps and observe the difference:</p>
* <ol>
* <li>Type something in the input. You will see that the model is not yet updated</li>
* <li>Press the Escape key.
* <ol>
* <li> In the first example, nothing happens, because the model is already '', and no
* update is detected. If you blur the input, the model will be set to the current view.
* </li>
* <li> In the second example, the pending update is cancelled, and the input is set back
* to the last committed view value (''). Blurring the input does nothing.
* </li>
* </ol>
* </li>
* </ol>
*
* <form name="myForm" ng-model-options="{ updateOn: 'blur' }">
* <div>
* <p id="inputDescription1">Without $rollbackViewValue():</p>
* <input name="value1" aria-describedby="inputDescription1" ng-model="model.value1"
* ng-keydown="setEmpty($event, 'value1')">
* value1: "{{ model.value1 }}"
* </div>
*
* <div>
* <p id="inputDescription2">With $rollbackViewValue():</p>
* <input name="value2" aria-describedby="inputDescription2" ng-model="model.value2"
* ng-keydown="setEmpty($event, 'value2', true)">
* value2: "{{ model.value2 }}"
* </div>
* </form>
* </div>
* </file>
<file name="style.css">
div {
display: table-cell;
}
div:nth-child(1) {
padding-right: 30px;
}
</file>
* </example>
*/
$rollbackViewValue: function $rollbackViewValue() {
this.$$timeout.cancel(this.$$pendingDebounce);
this.$viewValue = this.$$lastCommittedViewValue;
this.$render();
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$validate
*
* @description
* Runs each of the registered validators (first synchronous validators and then
* asynchronous validators).
* If the validity changes to invalid, the model will be set to `undefined`,
* unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.
* If the validity changes to valid, it will set the model to the last available valid
* `$modelValue`, i.e. either the last parsed value or the last value set from the scope.
*/
$validate: function $validate() {
// ignore $validate before model is initialized
if (isNumberNaN(this.$modelValue)) {
return;
}
var viewValue = this.$$lastCommittedViewValue;
// Note: we use the $$rawModelValue as $modelValue might have been
// set to undefined during a view -> model update that found validation
// errors. We can't parse the view here, since that could change
// the model although neither viewValue nor the model on the scope changed
var modelValue = this.$$rawModelValue;
var prevValid = this.$valid;
var prevModelValue = this.$modelValue;
var allowInvalid = this.$options.getOption('allowInvalid');
var that = this;
this.$$runValidators(modelValue, viewValue, function (allValid) {
// If there was no change in validity, don't update the model
// This prevents changing an invalid modelValue to undefined
if (!allowInvalid && prevValid !== allValid) {
// Note: Don't check this.$valid here, as we could have
// external validators (e.g. calculated on the server),
// that just call $setValidity and need the model value
// to calculate their validity.
that.$modelValue = allValid ? modelValue : undefined;
if (that.$modelValue !== prevModelValue) {
that.$$writeModelToScope();
}
}
});
},
$$runValidators: function $$runValidators(modelValue, viewValue, doneCallback) {
this.$$currentValidationRunId++;
var localValidationRunId = this.$$currentValidationRunId;
var that = this;
// check parser error
if (!processParseErrors()) {
validationDone(false);
return;
}
if (!processSyncValidators()) {
validationDone(false);
return;
}
processAsyncValidators();
function processParseErrors() {
var errorKey = that.$$parserName || 'parse';
if (isUndefined(that.$$parserValid)) {
setValidity(errorKey, null);
} else {
if (!that.$$parserValid) {
forEach(that.$validators, function (v, name) {
setValidity(name, null);
});
forEach(that.$asyncValidators, function (v, name) {
setValidity(name, null);
});
}
// Set the parse error last, to prevent unsetting it, should a $validators key == parserName
setValidity(errorKey, that.$$parserValid);
return that.$$parserValid;
}
return true;
}
function processSyncValidators() {
var syncValidatorsValid = true;
forEach(that.$validators, function (validator, name) {
var result = Boolean(validator(modelValue, viewValue));
syncValidatorsValid = syncValidatorsValid && result;
setValidity(name, result);
});
if (!syncValidatorsValid) {
forEach(that.$asyncValidators, function (v, name) {
setValidity(name, null);
});
return false;
}
return true;
}
function processAsyncValidators() {
var validatorPromises = [];
var allValid = true;
forEach(that.$asyncValidators, function (validator, name) {
var promise = validator(modelValue, viewValue);
if (!isPromiseLike(promise)) {
throw ngModelMinErr('nopromise', 'Expected asynchronous validator to return a promise but got \'{0}\' instead.', promise);
}
setValidity(name, undefined);
validatorPromises.push(promise.then(function () {
setValidity(name, true);
}, function () {
allValid = false;
setValidity(name, false);
}));
});
if (!validatorPromises.length) {
validationDone(true);
} else {
that.$$q.all(validatorPromises).then(function () {
validationDone(allValid);
}, noop);
}
}
function setValidity(name, isValid) {
if (localValidationRunId === that.$$currentValidationRunId) {
that.$setValidity(name, isValid);
}
}
function validationDone(allValid) {
if (localValidationRunId === that.$$currentValidationRunId) {
doneCallback(allValid);
}
}
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$commitViewValue
*
* @description
* Commit a pending update to the `$modelValue`.
*
* Updates may be pending by a debounced event or because the input is waiting for a some future
* event defined in `ng-model-options`. this method is rarely needed as `NgModelController`
* usually handles calling this in response to input events.
*/
$commitViewValue: function $commitViewValue() {
var viewValue = this.$viewValue;
this.$$timeout.cancel(this.$$pendingDebounce);
// If the view value has not changed then we should just exit, except in the case where there is
// a native validator on the element. In this case the validation state may have changed even though
// the viewValue has stayed empty.
if (this.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !this.$$hasNativeValidators)) {
return;
}
this.$$updateEmptyClasses(viewValue);
this.$$lastCommittedViewValue = viewValue;
// change to dirty
if (this.$pristine) {
this.$setDirty();
}
this.$$parseAndValidate();
},
$$parseAndValidate: function $$parseAndValidate() {
var viewValue = this.$$lastCommittedViewValue;
var modelValue = viewValue;
var that = this;
this.$$parserValid = isUndefined(modelValue) ? undefined : true;
if (this.$$parserValid) {
for (var i = 0; i < this.$parsers.length; i++) {
modelValue = this.$parsers[i](modelValue);
if (isUndefined(modelValue)) {
this.$$parserValid = false;
break;
}
}
}
if (isNumberNaN(this.$modelValue)) {
// this.$modelValue has not been touched yet...
this.$modelValue = this.$$ngModelGet(this.$$scope);
}
var prevModelValue = this.$modelValue;
var allowInvalid = this.$options.getOption('allowInvalid');
this.$$rawModelValue = modelValue;
if (allowInvalid) {
this.$modelValue = modelValue;
writeToModelIfNeeded();
}
// Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.
// This can happen if e.g. $setViewValue is called from inside a parser
this.$$runValidators(modelValue, this.$$lastCommittedViewValue, function (allValid) {
if (!allowInvalid) {
// Note: Don't check this.$valid here, as we could have
// external validators (e.g. calculated on the server),
// that just call $setValidity and need the model value
// to calculate their validity.
that.$modelValue = allValid ? modelValue : undefined;
writeToModelIfNeeded();
}
});
function writeToModelIfNeeded() {
if (that.$modelValue !== prevModelValue) {
that.$$writeModelToScope();
}
}
},
$$writeModelToScope: function $$writeModelToScope() {
this.$$ngModelSet(this.$$scope, this.$modelValue);
forEach(this.$viewChangeListeners, function (listener) {
try {
listener();
} catch (e) {
// eslint-disable-next-line no-invalid-this
this.$$exceptionHandler(e);
}
}, this);
},
/**
* @ngdoc method
* @name ngModel.NgModelController#$setViewValue
*
* @description
* Update the view value.
*
* This method should be called when a control wants to change the view value; typically,
* this is done from within a DOM event handler. For example, the {@link ng.directive:input input}
* directive calls it when the value of the input changes and {@link ng.directive:select select}
* calls it when an option is selected.
*
* When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`
* and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged
* value is sent directly for processing through the `$parsers` pipeline. After this, the `$validators` and
* `$asyncValidators` are called and the value is applied to `$modelValue`.
* Finally, the value is set to the **expression** specified in the `ng-model` attribute and
* all the registered change listeners, in the `$viewChangeListeners` list are called.
*
* In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`
* and the `default` trigger is not listed, all those actions will remain pending until one of the
* `updateOn` events is triggered on the DOM element.
* All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}
* directive is used with a custom debounce for this particular event.
* Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`
* is specified, once the timer runs out.
*
* When used with standard inputs, the view value will always be a string (which is in some cases
* parsed into another type, such as a `Date` object for `input[date]`.)
* However, custom controls might also pass objects to this method. In this case, we should make
* a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not
* perform a deep watch of objects, it only looks for a change of identity. If you only change
* the property of the object then ngModel will not realize that the object has changed and
* will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should
* not change properties of the copy once it has been passed to `$setViewValue`.
* Otherwise you may cause the model value on the scope to change incorrectly.
*
* <div class="alert alert-info">
* In any case, the value passed to the method should always reflect the current value
* of the control. For example, if you are calling `$setViewValue` for an input element,
* you should pass the input DOM value. Otherwise, the control and the scope model become
* out of sync. It's also important to note that `$setViewValue` does not call `$render` or change
* the control's DOM value in any way. If we want to change the control's DOM value
* programmatically, we should update the `ngModel` scope expression. Its new value will be
* picked up by the model controller, which will run it through the `$formatters`, `$render` it
* to update the DOM, and finally call `$validate` on it.
* </div>
*
* @param {*} value value from the view.
* @param {string} trigger Event that triggered the update.
*/
$setViewValue: function $setViewValue(value, trigger) {
this.$viewValue = value;
if (this.$options.getOption('updateOnDefault')) {
this.$$debounceViewValueCommit(trigger);
}
},
$$debounceViewValueCommit: function $$debounceViewValueCommit(trigger) {
var debounceDelay = this.$options.getOption('debounce');
if (isNumber(debounceDelay[trigger])) {
debounceDelay = debounceDelay[trigger];
} else if (isNumber(debounceDelay['default'])) {
debounceDelay = debounceDelay['default'];
}
this.$$timeout.cancel(this.$$pendingDebounce);
var that = this;
if (debounceDelay > 0) {
// this fails if debounceDelay is an object
this.$$pendingDebounce = this.$$timeout(function () {
that.$commitViewValue();
}, debounceDelay);
} else if (this.$$scope.$root.$$phase) {
this.$commitViewValue();
} else {
this.$$scope.$apply(function () {
that.$commitViewValue();
});
}
},
/**
* @ngdoc method
*
* @name ngModel.NgModelController#$overrideModelOptions
*
* @description
*
* Override the current model options settings programmatically.
*
* The previous `ModelOptions` value will not be modified. Instead, a
* new `ModelOptions` object will inherit from the previous one overriding
* or inheriting settings that are defined in the given parameter.
*
* See {@link ngModelOptions} for information about what options can be specified
* and how model option inheritance works.
*
* <div class="alert alert-warning">
* **Note:** this function only affects the options set on the `ngModelController`,
* and not the options on the {@link ngModelOptions} directive from which they might have been
* obtained initially.
* </div>
*
* <div class="alert alert-danger">
* **Note:** it is not possible to override the `getterSetter` option.
* </div>
*
* @param {Object} options a hash of settings to override the previous options
*
*/
$overrideModelOptions: function $overrideModelOptions(options) {
this.$options = this.$options.createChild(options);
this.$$setUpdateOnEvents();
},
/**
* @ngdoc method
*
* @name ngModel.NgModelController#$processModelValue
* @description
*
* Runs the model -> view pipeline on the current
* {@link ngModel.NgModelController#$modelValue $modelValue}.
*
* The following actions are performed by this method:
*
* - the `$modelValue` is run through the {@link ngModel.NgModelController#$formatters $formatters}
* and the result is set to the {@link ngModel.NgModelController#$viewValue $viewValue}
* - the `ng-empty` or `ng-not-empty` class is set on the element
* - if the `$viewValue` has changed:
* - {@link ngModel.NgModelController#$render $render} is called on the control
* - the {@link ngModel.NgModelController#$validators $validators} are run and
* the validation status is set.
*
* This method is called by ngModel internally when the bound scope value changes.
* Application developers usually do not have to call this function themselves.
*
* This function can be used when the `$viewValue` or the rendered DOM value are not correctly
* formatted and the `$modelValue` must be run through the `$formatters` again.
*
* @example
* Consider a text input with an autocomplete list (for fruit), where the items are
* objects with a name and an id.
* A user enters `ap` and then selects `Apricot` from the list.
* Based on this, the autocomplete widget will call `$setViewValue({name: 'Apricot', id: 443})`,
* but the rendered value will still be `ap`.
* The widget can then call `ctrl.$processModelValue()` to run the model -> view
* pipeline again, which formats the object to the string `Apricot`,
* then updates the `$viewValue`, and finally renders it in the DOM.
*
* <example module="inputExample" name="ng-model-process">
<file name="index.html">
<div ng-controller="inputController" style="display: flex;">
<div style="margin-right: 30px;">
Search Fruit:
<basic-autocomplete items="items" on-select="selectedFruit = item"></basic-autocomplete>
</div>
<div>
Model:<br>
<pre>{{selectedFruit | json}}</pre>
</div>
</div>
</file>
<file name="app.js">
angular.module('inputExample', [])
.controller('inputController', function($scope) {
$scope.items = [
{name: 'Apricot', id: 443},
{name: 'Clementine', id: 972},
{name: 'Durian', id: 169},
{name: 'Jackfruit', id: 982},
{name: 'Strawberry', id: 863}
];
})
.component('basicAutocomplete', {
bindings: {
items: '<',
onSelect: '&'
},
templateUrl: 'autocomplete.html',
controller: function($element, $scope) {
var that = this;
var ngModel;
that.$postLink = function() {
ngModel = $element.find('input').controller('ngModel');
ngModel.$formatters.push(function(value) {
return (value && value.name) || value;
});
ngModel.$parsers.push(function(value) {
var match = value;
for (var i = 0; i < that.items.length; i++) {
if (that.items[i].name === value) {
match = that.items[i];
break;
}
}
return match;
});
};
that.selectItem = function(item) {
ngModel.$setViewValue(item);
ngModel.$processModelValue();
that.onSelect({item: item});
};
}
});
</file>
<file name="autocomplete.html">
<div>
<input type="search" ng-model="$ctrl.searchTerm" />
<ul>
<li ng-repeat="item in $ctrl.items | filter:$ctrl.searchTerm">
<button ng-click="$ctrl.selectItem(item)">{{ item.name }}</button>
</li>
</ul>
</div>
</file>
* </example>
*
*/
$processModelValue: function $processModelValue() {
var viewValue = this.$$format();
if (this.$viewValue !== viewValue) {
this.$$updateEmptyClasses(viewValue);
this.$viewValue = this.$$lastCommittedViewValue = viewValue;
this.$render();
// It is possible that model and view value have been updated during render
this.$$runValidators(this.$modelValue, this.$viewValue, noop);
}
},
/**
* This method is called internally to run the $formatters on the $modelValue
*/
$$format: function $$format() {
var formatters = this.$formatters,
idx = formatters.length;
var viewValue = this.$modelValue;
while (idx--) {
viewValue = formatters[idx](viewValue);
}
return viewValue;
},
/**
* This method is called internally when the bound scope value changes.
*/
$$setModelValue: function $$setModelValue(modelValue) {
this.$modelValue = this.$$rawModelValue = modelValue;
this.$$parserValid = undefined;
this.$processModelValue();
},
$$setUpdateOnEvents: function $$setUpdateOnEvents() {
if (this.$$updateEvents) {
this.$$element.off(this.$$updateEvents, this.$$updateEventHandler);
}
this.$$updateEvents = this.$options.getOption('updateOn');
if (this.$$updateEvents) {
this.$$element.on(this.$$updateEvents, this.$$updateEventHandler);
}
},
$$updateEventHandler: function $$updateEventHandler(ev) {
this.$$debounceViewValueCommit(ev && ev.type);
}
};
function setupModelWatcher(ctrl) {
// model -> value
// Note: we cannot use a normal scope.$watch as we want to detect the following:
// 1. scope value is 'a'
// 2. user enters 'b'
// 3. ng-change kicks in and reverts scope value to 'a'
// -> scope value did not change since the last digest as
// ng-change executes in apply phase
// 4. view should be changed back to 'a'
ctrl.$$scope.$watch(function ngModelWatch(scope) {
var modelValue = ctrl.$$ngModelGet(scope);
// if scope model value and ngModel value are out of sync
// This cannot be moved to the action function, because it would not catch the
// case where the model is changed in the ngChange function or the model setter
if (modelValue !== ctrl.$modelValue && (
// checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator
// eslint-disable-next-line no-self-compare
ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)) {
ctrl.$$setModelValue(modelValue);
}
return modelValue;
});
}
/**
* @ngdoc method
* @name ngModel.NgModelController#$setValidity
*
* @description
* Change the validity state, and notify the form.
*
* This method can be called within $parsers/$formatters or a custom validation implementation.
* However, in most cases it should be sufficient to use the `ngModel.$validators` and
* `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.
*
* @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned
* to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`
* (for unfulfilled `$asyncValidators`), so that it is available for data-binding.
* The `validationErrorKey` should be in camelCase and will get converted into dash-case
* for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`
* classes and can be bound to as `{{ someForm.someControl.$error.myError }}`.
* @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),
* or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
* Skipped is used by Angular when validators do not run because of parse errors and
* when `$asyncValidators` do not run because any of the `$validators` failed.
*/
addSetValidityMethod({
clazz: NgModelController,
set: function set(object, property) {
object[property] = true;
},
unset: function unset(object, property) {
delete object[property];
}
});
/**
* @ngdoc directive
* @name ngModel
* @restrict A
* @priority 1
* @param {expression} ngModel assignable {@link guide/expression Expression} to bind to.
*
* @description
* The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
* property on the scope using {@link ngModel.NgModelController NgModelController},
* which is created and exposed by this directive.
*
* `ngModel` is responsible for:
*
* - Binding the view into the model, which other directives such as `input`, `textarea` or `select`
* require.
* - Providing validation behavior (i.e. required, number, email, url).
* - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
* - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
* `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
* - Registering the control with its parent {@link ng.directive:form form}.
*
* Note: `ngModel` will try to bind to the property given by evaluating the expression on the
* current scope. If the property doesn't already exist on this scope, it will be created
* implicitly and added to the scope.
*
* For best practices on using `ngModel`, see:
*
* - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)
*
* For basic examples, how to use `ngModel`, see:
*
* - {@link ng.directive:input input}
* - {@link input[text] text}
* - {@link input[checkbox] checkbox}
* - {@link input[radio] radio}
* - {@link input[number] number}
* - {@link input[email] email}
* - {@link input[url] url}
* - {@link input[date] date}
* - {@link input[datetime-local] datetime-local}
* - {@link input[time] time}
* - {@link input[month] month}
* - {@link input[week] week}
* - {@link ng.directive:select select}
* - {@link ng.directive:textarea textarea}
*
* ## Complex Models (objects or collections)
*
* By default, `ngModel` watches the model by reference, not value. This is important to know when
* binding inputs to models that are objects (e.g. `Date`) or collections (e.g. arrays). If only properties of the
* object or collection change, `ngModel` will not be notified and so the input will not be re-rendered.
*
* The model must be assigned an entirely new object or collection before a re-rendering will occur.
*
* Some directives have options that will cause them to use a custom `$watchCollection` on the model expression
* - for example, `ngOptions` will do so when a `track by` clause is included in the comprehension expression or
* if the select is given the `multiple` attribute.
*
* The `$watchCollection()` method only does a shallow comparison, meaning that changing properties deeper than the
* first level of the object (or only changing the properties of an item in the collection if it's an array) will still
* not trigger a re-rendering of the model.
*
* ## CSS classes
* The following CSS classes are added and removed on the associated input/select/textarea element
* depending on the validity of the model.
*
* - `ng-valid`: the model is valid
* - `ng-invalid`: the model is invalid
* - `ng-valid-[key]`: for each valid key added by `$setValidity`
* - `ng-invalid-[key]`: for each invalid key added by `$setValidity`
* - `ng-pristine`: the control hasn't been interacted with yet
* - `ng-dirty`: the control has been interacted with
* - `ng-touched`: the control has been blurred
* - `ng-untouched`: the control hasn't been blurred
* - `ng-pending`: any `$asyncValidators` are unfulfilled
* - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
* by the {@link ngModel.NgModelController#$isEmpty} method
* - `ng-not-empty`: the view contains a non-empty value
*
* Keep in mind that ngAnimate can detect each of these classes when added and removed.
*
* @animations
* Animations within models are triggered when any of the associated CSS classes are added and removed
* on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
* `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
* The animations that are triggered within ngModel are similar to how they work in ngClass and
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.
*
* The following example shows a simple way to utilize CSS transitions to style an input element
* that has been rendered as invalid after it has been validated:
*
* <pre>
* //be sure to include ngAnimate as a module to hook into more
* //advanced animations
* .my-input {
* transition:0.5s linear all;
* background: white;
* }
* .my-input.ng-invalid {
* background: red;
* color:white;
* }
* </pre>
*
* @example
* ### Basic Usage
* <example deps="angular-animate.js" animations="true" fixBase="true" module="inputExample" name="ng-model">
<file name="index.html">
<script>
angular.module('inputExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.val = '1';
}]);
</script>
<style>
.my-input {
transition:all linear 0.5s;
background: transparent;
}
.my-input.ng-invalid {
color:white;
background: red;
}
</style>
<p id="inputDescription">
Update input to see transitions when valid/invalid.
Integer is a valid value.
</p>
<form name="testForm" ng-controller="ExampleController">
<input ng-model="val" ng-pattern="/^\d+$/" name="anim" class="my-input"
aria-describedby="inputDescription" />
</form>
</file>
* </example>
*
* @example
* ### Binding to a getter/setter
*
* Sometimes it's helpful to bind `ngModel` to a getter/setter function. A getter/setter is a
* function that returns a representation of the model when called with zero arguments, and sets
* the internal state of a model when called with an argument. It's sometimes useful to use this
* for models that have an internal representation that's different from what the model exposes
* to the view.
*
* <div class="alert alert-success">
* **Best Practice:** It's best to keep getters fast because Angular is likely to call them more
* frequently than other parts of your code.
* </div>
*
* You use this behavior by adding `ng-model-options="{ getterSetter: true }"` to an element that
* has `ng-model` attached to it. You can also add `ng-model-options="{ getterSetter: true }"` to
* a `<form>`, which will enable this behavior for all `<input>`s within it. See
* {@link ng.directive:ngModelOptions `ngModelOptions`} for more.
*
* The following example shows how to use `ngModel` with a getter/setter:
*
* @example
* <example name="ngModel-getter-setter" module="getterSetterExample">
<file name="index.html">
<div ng-controller="ExampleController">
<form name="userForm">
<label>Name:
<input type="text" name="userName"
ng-model="user.name"
ng-model-options="{ getterSetter: true }" />
</label>
</form>
<pre>user.name = <span ng-bind="user.name()"></span></pre>
</div>
</file>
<file name="app.js">
angular.module('getterSetterExample', [])
.controller('ExampleController', ['$scope', function($scope) {
var _name = 'Brian';
$scope.user = {
name: function(newName) {
// Note that newName can be undefined for two reasons:
// 1. Because it is called as a getter and thus called with no arguments
// 2. Because the property should actually be set to undefined. This happens e.g. if the
// input is invalid
return arguments.length ? (_name = newName) : _name;
}
};
}]);
</file>
* </example>
*/
var ngModelDirective = ['$rootScope', function ($rootScope) {
return {
restrict: 'A',
require: ['ngModel', '^?form', '^?ngModelOptions'],
controller: NgModelController,
// Prelink needs to run before any input directive
// so that we can set the NgModelOptions in NgModelController
// before anyone else uses it.
priority: 1,
compile: function ngModelCompile(element) {
// Setup initial state of the control
element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);
return {
pre: function ngModelPreLink(scope, element, attr, ctrls) {
var modelCtrl = ctrls[0],
formCtrl = ctrls[1] || modelCtrl.$$parentForm,
optionsCtrl = ctrls[2];
if (optionsCtrl) {
modelCtrl.$options = optionsCtrl.$options;
}
modelCtrl.$$initGetterSetters();
// notify others, especially parent forms
formCtrl.$addControl(modelCtrl);
attr.$observe('name', function (newValue) {
if (modelCtrl.$name !== newValue) {
modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);
}
});
scope.$on('$destroy', function () {
modelCtrl.$$parentForm.$removeControl(modelCtrl);
});
},
post: function ngModelPostLink(scope, element, attr, ctrls) {
var modelCtrl = ctrls[0];
modelCtrl.$$setUpdateOnEvents();
function setTouched() {
modelCtrl.$setTouched();
}
element.on('blur', function () {
if (modelCtrl.$touched) return;
if ($rootScope.$$phase) {
scope.$evalAsync(setTouched);
} else {
scope.$apply(setTouched);
}
});
}
};
}
};
}];
/* exported defaultModelOptions */
var defaultModelOptions;
var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
/**
* @ngdoc type
* @name ModelOptions
* @description
* A container for the options set by the {@link ngModelOptions} directive
*/
function ModelOptions(options) {
this.$$options = options;
}
ModelOptions.prototype = {
/**
* @ngdoc method
* @name ModelOptions#getOption
* @param {string} name the name of the option to retrieve
* @returns {*} the value of the option
* @description
* Returns the value of the given option
*/
getOption: function getOption(name) {
return this.$$options[name];
},
/**
* @ngdoc method
* @name ModelOptions#createChild
* @param {Object} options a hash of options for the new child that will override the parent's options
* @return {ModelOptions} a new `ModelOptions` object initialized with the given options.
*/
createChild: function createChild(options) {
var inheritAll = false;
// make a shallow copy
options = extend({}, options);
// Inherit options from the parent if specified by the value `"$inherit"`
forEach(options, /* @this */function (option, key) {
if (option === '$inherit') {
if (key === '*') {
inheritAll = true;
} else {
options[key] = this.$$options[key];
// `updateOn` is special so we must also inherit the `updateOnDefault` option
if (key === 'updateOn') {
options.updateOnDefault = this.$$options.updateOnDefault;
}
}
} else {
if (key === 'updateOn') {
// If the `updateOn` property contains the `default` event then we have to remove
// it from the event list and set the `updateOnDefault` flag.
options.updateOnDefault = false;
options[key] = trim(option.replace(DEFAULT_REGEXP, function () {
options.updateOnDefault = true;
return ' ';
}));
}
}
}, this);
if (inheritAll) {
// We have a property of the form: `"*": "$inherit"`
delete options['*'];
defaults(options, this.$$options);
}
// Finally add in any missing defaults
defaults(options, defaultModelOptions.$$options);
return new ModelOptions(options);
}
};
defaultModelOptions = new ModelOptions({
updateOn: '',
updateOnDefault: true,
debounce: 0,
getterSetter: false,
allowInvalid: false,
timezone: null
});
/**
* @ngdoc directive
* @name ngModelOptions
* @restrict A
* @priority 10
*
* @description
* This directive allows you to modify the behaviour of {@link ngModel} directives within your
* application. You can specify an `ngModelOptions` directive on any element. All {@link ngModel}
* directives will use the options of their nearest `ngModelOptions` ancestor.
*
* The `ngModelOptions` settings are found by evaluating the value of the attribute directive as
* an Angular expression. This expression should evaluate to an object, whose properties contain
* the settings. For example: `<div ng-model-options="{ debounce: 100 }"`.
*
* ## Inheriting Options
*
* You can specify that an `ngModelOptions` setting should be inherited from a parent `ngModelOptions`
* directive by giving it the value of `"$inherit"`.
* Then it will inherit that setting from the first `ngModelOptions` directive found by traversing up the
* DOM tree. If there is no ancestor element containing an `ngModelOptions` directive then default settings
* will be used.
*
* For example given the following fragment of HTML
*
*
* ```html
* <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
* <form ng-model-options="{ updateOn: 'blur', allowInvalid: '$inherit' }">
* <input ng-model-options="{ updateOn: 'default', allowInvalid: '$inherit' }" />
* </form>
* </div>
* ```
*
* the `input` element will have the following settings
*
* ```js
* { allowInvalid: true, updateOn: 'default', debounce: 0 }
* ```
*
* Notice that the `debounce` setting was not inherited and used the default value instead.
*
* You can specify that all undefined settings are automatically inherited from an ancestor by
* including a property with key of `"*"` and value of `"$inherit"`.
*
* For example given the following fragment of HTML
*
*
* ```html
* <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
* <form ng-model-options="{ updateOn: 'blur', "*": '$inherit' }">
* <input ng-model-options="{ updateOn: 'default', "*": '$inherit' }" />
* </form>
* </div>
* ```
*
* the `input` element will have the following settings
*
* ```js
* { allowInvalid: true, updateOn: 'default', debounce: 200 }
* ```
*
* Notice that the `debounce` setting now inherits the value from the outer `<div>` element.
*
* If you are creating a reusable component then you should be careful when using `"*": "$inherit"`
* since you may inadvertently inherit a setting in the future that changes the behavior of your component.
*
*
* ## Triggering and debouncing model updates
*
* The `updateOn` and `debounce` properties allow you to specify a custom list of events that will
* trigger a model update and/or a debouncing delay so that the actual update only takes place when
* a timer expires; this timer will be reset after another change takes place.
*
* Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might
* be different from the value in the actual model. This means that if you update the model you
* should also invoke {@link ngModel.NgModelController#$rollbackViewValue} on the relevant input field in
* order to make sure it is synchronized with the model and that any debounced action is canceled.
*
* The easiest way to reference the control's {@link ngModel.NgModelController#$rollbackViewValue}
* method is by making sure the input is placed inside a form that has a `name` attribute. This is
* important because `form` controllers are published to the related scope under the name in their
* `name` attribute.
*
* Any pending changes will take place immediately when an enclosing form is submitted via the
* `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
* to have access to the updated model.
*
* ### Overriding immediate updates
*
* The following example shows how to override immediate updates. Changes on the inputs within the
* form will update the model only when the control loses focus (blur event). If `escape` key is
* pressed while the input field is focused, the value is reset to the value in the current model.
*
* <example name="ngModelOptions-directive-blur" module="optionsExample">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="userForm">
* <label>
* Name:
* <input type="text" name="userName"
* ng-model="user.name"
* ng-model-options="{ updateOn: 'blur' }"
* ng-keyup="cancel($event)" />
* </label><br />
* <label>
* Other data:
* <input type="text" ng-model="user.data" />
* </label><br />
* </form>
* <pre>user.name = <span ng-bind="user.name"></span></pre>
* </div>
* </file>
* <file name="app.js">
* angular.module('optionsExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.user = { name: 'say', data: '' };
*
* $scope.cancel = function(e) {
* if (e.keyCode === 27) {
* $scope.userForm.userName.$rollbackViewValue();
* }
* };
* }]);
* </file>
* <file name="protractor.js" type="protractor">
* var model = element(by.binding('user.name'));
* var input = element(by.model('user.name'));
* var other = element(by.model('user.data'));
*
* it('should allow custom events', function() {
* input.sendKeys(' hello');
* input.click();
* expect(model.getText()).toEqual('say');
* other.click();
* expect(model.getText()).toEqual('say hello');
* });
*
* it('should $rollbackViewValue when model changes', function() {
* input.sendKeys(' hello');
* expect(input.getAttribute('value')).toEqual('say hello');
* input.sendKeys(protractor.Key.ESCAPE);
* expect(input.getAttribute('value')).toEqual('say');
* other.click();
* expect(model.getText()).toEqual('say');
* });
* </file>
* </example>
*
* ### Debouncing updates
*
* The next example shows how to debounce model changes. Model will be updated only 1 sec after last change.
* If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.
*
* <example name="ngModelOptions-directive-debounce" module="optionsExample">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="userForm">
* Name:
* <input type="text" name="userName"
* ng-model="user.name"
* ng-model-options="{ debounce: 1000 }" />
* <button ng-click="userForm.userName.$rollbackViewValue(); user.name=''">Clear</button><br />
* </form>
* <pre>user.name = <span ng-bind="user.name"></span></pre>
* </div>
* </file>
* <file name="app.js">
* angular.module('optionsExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.user = { name: 'say' };
* }]);
* </file>
* </example>
*
*
* ## Model updates and validation
*
* The default behaviour in `ngModel` is that the model value is set to `undefined` when the
* validation determines that the value is invalid. By setting the `allowInvalid` property to true,
* the model will still be updated even if the value is invalid.
*
*
* ## Connecting to the scope
*
* By setting the `getterSetter` property to true you are telling ngModel that the `ngModel` expression
* on the scope refers to a "getter/setter" function rather than the value itself.
*
* The following example shows how to bind to getter/setters:
*
* <example name="ngModelOptions-directive-getter-setter" module="getterSetterExample">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="userForm">
* <label>
* Name:
* <input type="text" name="userName"
* ng-model="user.name"
* ng-model-options="{ getterSetter: true }" />
* </label>
* </form>
* <pre>user.name = <span ng-bind="user.name()"></span></pre>
* </div>
* </file>
* <file name="app.js">
* angular.module('getterSetterExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* var _name = 'Brian';
* $scope.user = {
* name: function(newName) {
* return angular.isDefined(newName) ? (_name = newName) : _name;
* }
* };
* }]);
* </file>
* </example>
*
*
* ## Specifying timezones
*
* You can specify the timezone that date/time input directives expect by providing its name in the
* `timezone` property.
*
*
* ## Programmatically changing options
*
* The `ngModelOptions` expression is only evaluated once when the directive is linked; it is not
* watched for changes. However, it is possible to override the options on a single
* {@link ngModel.NgModelController} instance with
* {@link ngModel.NgModelController#$overrideModelOptions `NgModelController#$overrideModelOptions()`}.
*
*
* @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and
* and its descendents. Valid keys are:
* - `updateOn`: string specifying which event should the input be bound to. You can set several
* events using an space delimited list. There is a special event called `default` that
* matches the default events belonging to the control. These are the events that are bound to
* the control, and when fired, update the `$viewValue` via `$setViewValue`.
*
* `ngModelOptions` considers every event that is not listed in `updateOn` a "default" event,
* since different control types use different default events.
*
* See also the section {@link ngModelOptions#triggering-and-debouncing-model-updates
* Triggering and debouncing model updates}.
*
* - `debounce`: integer value which contains the debounce model update value in milliseconds. A
* value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
* custom value for each event. For example:
* ```
* ng-model-options="{
* updateOn: 'default blur click',
* debounce: { 'default': 500, 'blur': 0 }
* }"
* ```
*
* "default" also applies to all events that are listed in `updateOn` but are not
* listed in `debounce`, i.e. "click" would also be debounced by 500 milliseconds.
*
* - `allowInvalid`: boolean value which indicates that the model can be set with values that did
* not validate correctly instead of the default behavior of setting the model to undefined.
* - `getterSetter`: boolean value which determines whether or not to treat functions bound to
* `ngModel` as getters/setters.
* - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for
* `<input type="date" />`, `<input type="time" />`, ... . It understands UTC/GMT and the
* continental US time zone abbreviations, but for general use, use a time zone offset, for
* example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
* If not specified, the timezone of the browser will be used.
*
*/
var ngModelOptionsDirective = function ngModelOptionsDirective() {
NgModelOptionsController.$inject = ['$attrs', '$scope'];
function NgModelOptionsController($attrs, $scope) {
this.$$attrs = $attrs;
this.$$scope = $scope;
}
NgModelOptionsController.prototype = {
$onInit: function $onInit() {
var parentOptions = this.parentCtrl ? this.parentCtrl.$options : defaultModelOptions;
var modelOptionsDefinition = this.$$scope.$eval(this.$$attrs.ngModelOptions);
this.$options = parentOptions.createChild(modelOptionsDefinition);
}
};
return {
restrict: 'A',
// ngModelOptions needs to run before ngModel and input directives
priority: 10,
require: { parentCtrl: '?^^ngModelOptions' },
bindToController: true,
controller: NgModelOptionsController
};
};
// shallow copy over values from `src` that are not already specified on `dst`
function defaults(dst, src) {
forEach(src, function (value, key) {
if (!isDefined(dst[key])) {
dst[key] = value;
}
});
}
/**
* @ngdoc directive
* @name ngNonBindable
* @restrict AC
* @priority 1000
* @element ANY
*
* @description
* The `ngNonBindable` directive tells AngularJS not to compile or bind the contents of the current
* DOM element, including directives on the element itself that have a lower priority than
* `ngNonBindable`. This is useful if the element contains what appears to be AngularJS directives
* and bindings but which should be ignored by AngularJS. This could be the case if you have a site
* that displays snippets of code, for instance.
*
* @example
* In this example there are two locations where a simple interpolation binding (`{{}}`) is present,
* but the one wrapped in `ngNonBindable` is left alone.
*
<example name="ng-non-bindable">
<file name="index.html">
<div>Normal: {{1 + 2}}</div>
<div ng-non-bindable>Ignored: {{1 + 2}}</div>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-non-bindable', function() {
expect(element(by.binding('1 + 2')).getText()).toContain('3');
expect(element.all(by.css('div')).last().getText()).toMatch(/1 \+ 2/);
});
</file>
</example>
*/
var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });
/* exported ngOptionsDirective */
/* global jqLiteRemove */
var ngOptionsMinErr = minErr('ngOptions');
/**
* @ngdoc directive
* @name ngOptions
* @restrict A
*
* @description
*
* The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
* elements for the `<select>` element using the array or object obtained by evaluating the
* `ngOptions` comprehension expression.
*
* In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements instead of
* `ngOptions` to achieve a similar result. However, `ngOptions` provides some benefits:
* - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
* comprehension expression
* - reduced memory consumption by not creating a new scope for each repeated instance
* - increased render speed by creating the options in a documentFragment instead of individually
*
* When an item in the `<select>` menu is selected, the array element or object property
* represented by the selected option will be bound to the model identified by the `ngModel`
* directive.
*
* Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
* be nested into the `<select>` element. This element will then represent the `null` or "not selected"
* option. See example below for demonstration.
*
* ## Complex Models (objects or collections)
*
* By default, `ngModel` watches the model by reference, not value. This is important to know when
* binding the select to a model that is an object or a collection.
*
* One issue occurs if you want to preselect an option. For example, if you set
* the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,
* because the objects are not identical. So by default, you should always reference the item in your collection
* for preselections, e.g.: `$scope.selected = $scope.collection[3]`.
*
* Another solution is to use a `track by` clause, because then `ngOptions` will track the identity
* of the item not by reference, but by the result of the `track by` expression. For example, if your
* collection items have an id property, you would `track by item.id`.
*
* A different issue with objects or collections is that ngModel won't detect if an object property or
* a collection item changes. For that reason, `ngOptions` additionally watches the model using
* `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.
* This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection
* has not changed identity, but only a property on the object or an item in the collection changes.
*
* Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection
* if the model is an array). This means that changing a property deeper than the first level inside the
* object/collection will not trigger a re-rendering.
*
* ## `select` **`as`**
*
* Using `select` **`as`** will bind the result of the `select` expression to the model, but
* the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)
* or property name (for object data sources) of the value within the collection. If a **`track by`** expression
* is used, the result of that expression will be set as the value of the `option` and `select` elements.
*
*
* ### `select` **`as`** and **`track by`**
*
* <div class="alert alert-warning">
* Be careful when using `select` **`as`** and **`track by`** in the same expression.
* </div>
*
* Given this array of items on the $scope:
*
* ```js
* $scope.items = [{
* id: 1,
* label: 'aLabel',
* subItem: { name: 'aSubItem' }
* }, {
* id: 2,
* label: 'bLabel',
* subItem: { name: 'bSubItem' }
* }];
* ```
*
* This will work:
*
* ```html
* <select ng-options="item as item.label for item in items track by item.id" ng-model="selected"></select>
* ```
* ```js
* $scope.selected = $scope.items[0];
* ```
*
* but this will not work:
*
* ```html
* <select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
* ```
* ```js
* $scope.selected = $scope.items[0].subItem;
* ```
*
* In both examples, the **`track by`** expression is applied successfully to each `item` in the
* `items` array. Because the selected option has been set programmatically in the controller, the
* **`track by`** expression is also applied to the `ngModel` value. In the first example, the
* `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with
* no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**
* expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value
* is not matched against any `<option>` and the `<select>` appears as having no selected value.
*
*
* @param {string} ngModel Assignable AngularJS expression to data-bind to.
* @param {comprehension_expression} ngOptions in one of the following forms:
*
* * for array data sources:
* * `label` **`for`** `value` **`in`** `array`
* * `select` **`as`** `label` **`for`** `value` **`in`** `array`
* * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
* * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`
* * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
* * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
* * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`
* (for including a filter with `track by`)
* * for object data sources:
* * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
* * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
* * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`group by`** `group`
* **`for` `(`**`key`**`,`** `value`**`) in`** `object`
* * `select` **`as`** `label` **`disable when`** `disable`
* **`for` `(`**`key`**`,`** `value`**`) in`** `object`
*
* Where:
*
* * `array` / `object`: an expression which evaluates to an array / object to iterate over.
* * `value`: local variable which will refer to each item in the `array` or each property value
* of `object` during iteration.
* * `key`: local variable which will refer to a property name in `object` during iteration.
* * `label`: The result of this expression will be the label for `<option>` element. The
* `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).
* * `select`: The result of this expression will be bound to the model of the parent `<select>`
* element. If not specified, `select` expression will default to `value`.
* * `group`: The result of this expression will be used to group options using the `<optgroup>`
* DOM element.
* * `disable`: The result of this expression will be used to disable the rendered `<option>`
* element. Return `true` to disable.
* * `trackexpr`: Used when working with an array of objects. The result of this expression will be
* used to identify the objects in the array. The `trackexpr` will most likely refer to the
* `value` variable (e.g. `value.propertyName`). With this the selection is preserved
* even when the options are recreated (e.g. reloaded from the server).
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} required The control is considered valid only if value is entered.
* @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
* the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
* `required` when you want to data-bind to the `required` attribute.
* @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
* {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
*
* @example
<example module="selectExample" name="select">
<file name="index.html">
<script>
angular.module('selectExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.colors = [
{name:'black', shade:'dark'},
{name:'white', shade:'light', notAnOption: true},
{name:'red', shade:'dark'},
{name:'blue', shade:'dark', notAnOption: true},
{name:'yellow', shade:'light', notAnOption: false}
];
$scope.myColor = $scope.colors[2]; // red
}]);
</script>
<div ng-controller="ExampleController">
<ul>
<li ng-repeat="color in colors">
<label>Name: <input ng-model="color.name"></label>
<label><input type="checkbox" ng-model="color.notAnOption"> Disabled?</label>
<button ng-click="colors.splice($index, 1)" aria-label="Remove">X</button>
</li>
<li>
<button ng-click="colors.push({})">add</button>
</li>
</ul>
<hr/>
<label>Color (null not allowed):
<select ng-model="myColor" ng-options="color.name for color in colors"></select>
</label><br/>
<label>Color (null allowed):
<span class="nullable">
<select ng-model="myColor" ng-options="color.name for color in colors">
<option value="">-- choose color --</option>
</select>
</span></label><br/>
<label>Color grouped by shade:
<select ng-model="myColor" ng-options="color.name group by color.shade for color in colors">
</select>
</label><br/>
<label>Color grouped by shade, with some disabled:
<select ng-model="myColor"
ng-options="color.name group by color.shade disable when color.notAnOption for color in colors">
</select>
</label><br/>
Select <button ng-click="myColor = { name:'not in list', shade: 'other' }">bogus</button>.
<br/>
<hr/>
Currently selected: {{ {selected_color:myColor} }}
<div style="border:solid 1px black; height:20px"
ng-style="{'background-color':myColor.name}">
</div>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should check ng-options', function() {
expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');
element.all(by.model('myColor')).first().click();
element.all(by.css('select[ng-model="myColor"] option')).first().click();
expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');
element(by.css('.nullable select[ng-model="myColor"]')).click();
element.all(by.css('.nullable select[ng-model="myColor"] option')).first().click();
expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');
});
</file>
</example>
*/
/* eslint-disable max-len */
// //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555000000000666666666666600000007777777777777000000000000000888888888800000000000000000009999999999
var NG_OPTIONS_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;
// 1: value expression (valueFn)
// 2: label expression (displayFn)
// 3: group by expression (groupByFn)
// 4: disable when expression (disableWhenFn)
// 5: array item variable name
// 6: object item key variable name
// 7: object item value variable name
// 8: collection expression
// 9: track by expression
/* eslint-enable */
var ngOptionsDirective = ['$compile', '$document', '$parse', function ($compile, $document, $parse) {
function parseOptionsExpression(optionsExp, selectElement, scope) {
var match = optionsExp.match(NG_OPTIONS_REGEXP);
if (!match) {
throw ngOptionsMinErr('iexp', 'Expected expression in form of ' + '\'_select_ (as _label_)? for (_key_,)?_value_ in _collection_\'' + ' but got \'{0}\'. Element: {1}', optionsExp, startingTag(selectElement));
}
// Extract the parts from the ngOptions expression
// The variable name for the value of the item in the collection
var valueName = match[5] || match[7];
// The variable name for the key of the item in the collection
var keyName = match[6];
// An expression that generates the viewValue for an option if there is a label expression
var selectAs = / as /.test(match[0]) && match[1];
// An expression that is used to track the id of each object in the options collection
var trackBy = match[9];
// An expression that generates the viewValue for an option if there is no label expression
var valueFn = $parse(match[2] ? match[1] : valueName);
var selectAsFn = selectAs && $parse(selectAs);
var viewValueFn = selectAsFn || valueFn;
var trackByFn = trackBy && $parse(trackBy);
// Get the value by which we are going to track the option
// if we have a trackFn then use that (passing scope and locals)
// otherwise just hash the given viewValue
var getTrackByValueFn = trackBy ? function (value, locals) {
return trackByFn(scope, locals);
} : function getHashOfValue(value) {
return hashKey(value);
};
var getTrackByValue = function getTrackByValue(value, key) {
return getTrackByValueFn(value, getLocals(value, key));
};
var displayFn = $parse(match[2] || match[1]);
var groupByFn = $parse(match[3] || '');
var disableWhenFn = $parse(match[4] || '');
var valuesFn = $parse(match[8]);
var locals = {};
var getLocals = keyName ? function (value, key) {
locals[keyName] = key;
locals[valueName] = value;
return locals;
} : function (value) {
locals[valueName] = value;
return locals;
};
function Option(selectValue, viewValue, label, group, disabled) {
this.selectValue = selectValue;
this.viewValue = viewValue;
this.label = label;
this.group = group;
this.disabled = disabled;
}
function getOptionValuesKeys(optionValues) {
var optionValuesKeys;
if (!keyName && isArrayLike(optionValues)) {
optionValuesKeys = optionValues;
} else {
// if object, extract keys, in enumeration order, unsorted
optionValuesKeys = [];
for (var itemKey in optionValues) {
if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
optionValuesKeys.push(itemKey);
}
}
}
return optionValuesKeys;
}
return {
trackBy: trackBy,
getTrackByValue: getTrackByValue,
getWatchables: $parse(valuesFn, function (optionValues) {
// Create a collection of things that we would like to watch (watchedArray)
// so that they can all be watched using a single $watchCollection
// that only runs the handler once if anything changes
var watchedArray = [];
optionValues = optionValues || [];
var optionValuesKeys = getOptionValuesKeys(optionValues);
var optionValuesLength = optionValuesKeys.length;
for (var index = 0; index < optionValuesLength; index++) {
var key = optionValues === optionValuesKeys ? index : optionValuesKeys[index];
var value = optionValues[key];
var locals = getLocals(value, key);
var selectValue = getTrackByValueFn(value, locals);
watchedArray.push(selectValue);
// Only need to watch the displayFn if there is a specific label expression
if (match[2] || match[1]) {
var label = displayFn(scope, locals);
watchedArray.push(label);
}
// Only need to watch the disableWhenFn if there is a specific disable expression
if (match[4]) {
var disableWhen = disableWhenFn(scope, locals);
watchedArray.push(disableWhen);
}
}
return watchedArray;
}),
getOptions: function getOptions() {
var optionItems = [];
var selectValueMap = {};
// The option values were already computed in the `getWatchables` fn,
// which must have been called to trigger `getOptions`
var optionValues = valuesFn(scope) || [];
var optionValuesKeys = getOptionValuesKeys(optionValues);
var optionValuesLength = optionValuesKeys.length;
for (var index = 0; index < optionValuesLength; index++) {
var key = optionValues === optionValuesKeys ? index : optionValuesKeys[index];
var value = optionValues[key];
var locals = getLocals(value, key);
var viewValue = viewValueFn(scope, locals);
var selectValue = getTrackByValueFn(viewValue, locals);
var label = displayFn(scope, locals);
var group = groupByFn(scope, locals);
var disabled = disableWhenFn(scope, locals);
var optionItem = new Option(selectValue, viewValue, label, group, disabled);
optionItems.push(optionItem);
selectValueMap[selectValue] = optionItem;
}
return {
items: optionItems,
selectValueMap: selectValueMap,
getOptionFromViewValue: function getOptionFromViewValue(value) {
return selectValueMap[getTrackByValue(value)];
},
getViewValueFromOption: function getViewValueFromOption(option) {
// If the viewValue could be an object that may be mutated by the application,
// we need to make a copy and not return the reference to the value on the option.
return trackBy ? copy(option.viewValue) : option.viewValue;
}
};
}
};
}
// Support: IE 9 only
// We can't just jqLite('<option>') since jqLite is not smart enough
// to create it in <select> and IE barfs otherwise.
var optionTemplate = window.document.createElement('option'),
optGroupTemplate = window.document.createElement('optgroup');
function ngOptionsPostLink(scope, selectElement, attr, ctrls) {
var selectCtrl = ctrls[0];
var ngModelCtrl = ctrls[1];
var multiple = attr.multiple;
// The emptyOption allows the application developer to provide their own custom "empty"
// option when the viewValue does not match any of the option values.
for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {
if (children[i].value === '') {
selectCtrl.hasEmptyOption = true;
selectCtrl.emptyOption = children.eq(i);
break;
}
}
// The empty option will be compiled and rendered before we first generate the options
selectElement.empty();
var providedEmptyOption = !!selectCtrl.emptyOption;
var unknownOption = jqLite(optionTemplate.cloneNode(false));
unknownOption.val('?');
var options;
var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);
// This stores the newly created options before they are appended to the select.
// Since the contents are removed from the fragment when it is appended,
// we only need to create it once.
var listFragment = $document[0].createDocumentFragment();
// Overwrite the implementation. ngOptions doesn't use hashes
selectCtrl.generateUnknownOptionValue = function (val) {
return '?';
};
// Update the controller methods for multiple selectable options
if (!multiple) {
selectCtrl.writeValue = function writeNgOptionsValue(value) {
// The options might not be defined yet when ngModel tries to render
if (!options) return;
var selectedOption = selectElement[0].options[selectElement[0].selectedIndex];
var option = options.getOptionFromViewValue(value);
// Make sure to remove the selected attribute from the previously selected option
// Otherwise, screen readers might get confused
if (selectedOption) selectedOption.removeAttribute('selected');
if (option) {
// Don't update the option when it is already selected.
// For example, the browser will select the first option by default. In that case,
// most properties are set automatically - except the `selected` attribute, which we
// set always
if (selectElement[0].value !== option.selectValue) {
selectCtrl.removeUnknownOption();
selectElement[0].value = option.selectValue;
option.element.selected = true;
}
option.element.setAttribute('selected', 'selected');
} else {
selectCtrl.selectUnknownOrEmptyOption(value);
}
};
selectCtrl.readValue = function readNgOptionsValue() {
var selectedOption = options.selectValueMap[selectElement.val()];
if (selectedOption && !selectedOption.disabled) {
selectCtrl.unselectEmptyOption();
selectCtrl.removeUnknownOption();
return options.getViewValueFromOption(selectedOption);
}
return null;
};
// If we are using `track by` then we must watch the tracked value on the model
// since ngModel only watches for object identity change
// FIXME: When a user selects an option, this watch will fire needlessly
if (ngOptions.trackBy) {
scope.$watch(function () {
return ngOptions.getTrackByValue(ngModelCtrl.$viewValue);
}, function () {
ngModelCtrl.$render();
});
}
} else {
selectCtrl.writeValue = function writeNgOptionsMultiple(values) {
// The options might not be defined yet when ngModel tries to render
if (!options) return;
// Only set `<option>.selected` if necessary, in order to prevent some browsers from
// scrolling to `<option>` elements that are outside the `<select>` element's viewport.
var selectedOptions = values && values.map(getAndUpdateSelectedOption) || [];
options.items.forEach(function (option) {
if (option.element.selected && !includes(selectedOptions, option)) {
option.element.selected = false;
}
});
};
selectCtrl.readValue = function readNgOptionsMultiple() {
var selectedValues = selectElement.val() || [],
selections = [];
forEach(selectedValues, function (value) {
var option = options.selectValueMap[value];
if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));
});
return selections;
};
// If we are using `track by` then we must watch these tracked values on the model
// since ngModel only watches for object identity change
if (ngOptions.trackBy) {
scope.$watchCollection(function () {
if (isArray(ngModelCtrl.$viewValue)) {
return ngModelCtrl.$viewValue.map(function (value) {
return ngOptions.getTrackByValue(value);
});
}
}, function () {
ngModelCtrl.$render();
});
}
}
if (providedEmptyOption) {
// compile the element since there might be bindings in it
$compile(selectCtrl.emptyOption)(scope);
selectElement.prepend(selectCtrl.emptyOption);
if (selectCtrl.emptyOption[0].nodeType === NODE_TYPE_COMMENT) {
// This means the empty option has currently no actual DOM node, probably because
// it has been modified by a transclusion directive.
selectCtrl.hasEmptyOption = false;
// Redefine the registerOption function, which will catch
// options that are added by ngIf etc. (rendering of the node is async because of
// lazy transclusion)
selectCtrl.registerOption = function (optionScope, optionEl) {
if (optionEl.val() === '') {
selectCtrl.hasEmptyOption = true;
selectCtrl.emptyOption = optionEl;
selectCtrl.emptyOption.removeClass('ng-scope');
// This ensures the new empty option is selected if previously no option was selected
ngModelCtrl.$render();
optionEl.on('$destroy', function () {
var needsRerender = selectCtrl.$isEmptyOptionSelected();
selectCtrl.hasEmptyOption = false;
selectCtrl.emptyOption = undefined;
if (needsRerender) ngModelCtrl.$render();
});
}
};
} else {
// remove the class, which is added automatically because we recompile the element and it
// becomes the compilation root
selectCtrl.emptyOption.removeClass('ng-scope');
}
}
// We will re-render the option elements if the option values or labels change
scope.$watchCollection(ngOptions.getWatchables, updateOptions);
// ------------------------------------------------------------------ //
function addOptionElement(option, parent) {
var optionElement = optionTemplate.cloneNode(false);
parent.appendChild(optionElement);
updateOptionElement(option, optionElement);
}
function getAndUpdateSelectedOption(viewValue) {
var option = options.getOptionFromViewValue(viewValue);
var element = option && option.element;
if (element && !element.selected) element.selected = true;
return option;
}
function updateOptionElement(option, element) {
option.element = element;
element.disabled = option.disabled;
// Support: IE 11 only, Edge 12-13 only
// NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive
// selects in certain circumstances when multiple selects are next to each other and display
// the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
// See https://github.com/angular/angular.js/issues/11314 for more info.
// This is unfortunately untestable with unit / e2e tests
if (option.label !== element.label) {
element.label = option.label;
element.textContent = option.label;
}
element.value = option.selectValue;
}
function updateOptions() {
var previousValue = options && selectCtrl.readValue();
// We must remove all current options, but cannot simply set innerHTML = null
// since the providedEmptyOption might have an ngIf on it that inserts comments which we
// must preserve.
// Instead, iterate over the current option elements and remove them or their optgroup
// parents
if (options) {
for (var i = options.items.length - 1; i >= 0; i--) {
var option = options.items[i];
if (isDefined(option.group)) {
jqLiteRemove(option.element.parentNode);
} else {
jqLiteRemove(option.element);
}
}
}
options = ngOptions.getOptions();
var groupElementMap = {};
options.items.forEach(function addOption(option) {
var groupElement;
if (isDefined(option.group)) {
// This option is to live in a group
// See if we have already created this group
groupElement = groupElementMap[option.group];
if (!groupElement) {
groupElement = optGroupTemplate.cloneNode(false);
listFragment.appendChild(groupElement);
// Update the label on the group element
// "null" is special cased because of Safari
groupElement.label = option.group === null ? 'null' : option.group;
// Store it for use later
groupElementMap[option.group] = groupElement;
}
addOptionElement(option, groupElement);
} else {
// This option is not in a group
addOptionElement(option, listFragment);
}
});
selectElement[0].appendChild(listFragment);
ngModelCtrl.$render();
// Check to see if the value has changed due to the update to the options
if (!ngModelCtrl.$isEmpty(previousValue)) {
var nextValue = selectCtrl.readValue();
var isNotPrimitive = ngOptions.trackBy || multiple;
if (isNotPrimitive ? !equals(previousValue, nextValue) : previousValue !== nextValue) {
ngModelCtrl.$setViewValue(nextValue);
ngModelCtrl.$render();
}
}
}
}
return {
restrict: 'A',
terminal: true,
require: ['select', 'ngModel'],
link: {
pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {
// Deactivate the SelectController.register method to prevent
// option directives from accidentally registering themselves
// (and unwanted $destroy handlers etc.)
ctrls[0].registerOption = noop;
},
post: ngOptionsPostLink
}
};
}];
/**
* @ngdoc directive
* @name ngPluralize
* @restrict EA
*
* @description
* `ngPluralize` is a directive that displays messages according to en-US localization rules.
* These rules are bundled with angular.js, but can be overridden
* (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive
* by specifying the mappings between
* [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
* and the strings to be displayed.
*
* ## Plural categories and explicit number rules
* There are two
* [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
* in Angular's default en-US locale: "one" and "other".
*
* While a plural category may match many numbers (for example, in en-US locale, "other" can match
* any number that is not 1), an explicit number rule can only match one number. For example, the
* explicit number rule for "3" matches the number 3. There are examples of plural categories
* and explicit number rules throughout the rest of this documentation.
*
* ## Configuring ngPluralize
* You configure ngPluralize by providing 2 attributes: `count` and `when`.
* You can also provide an optional attribute, `offset`.
*
* The value of the `count` attribute can be either a string or an {@link guide/expression
* Angular expression}; these are evaluated on the current scope for its bound value.
*
* The `when` attribute specifies the mappings between plural categories and the actual
* string to be displayed. The value of the attribute should be a JSON object.
*
* The following example shows how to configure ngPluralize:
*
* ```html
* <ng-pluralize count="personCount"
when="{'0': 'Nobody is viewing.',
* 'one': '1 person is viewing.',
* 'other': '{} people are viewing.'}">
* </ng-pluralize>
*```
*
* In the example, `"0: Nobody is viewing."` is an explicit number rule. If you did not
* specify this rule, 0 would be matched to the "other" category and "0 people are viewing"
* would be shown instead of "Nobody is viewing". You can specify an explicit number rule for
* other numbers, for example 12, so that instead of showing "12 people are viewing", you can
* show "a dozen people are viewing".
*
* You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted
* into pluralized strings. In the previous example, Angular will replace `{}` with
* <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
* for <span ng-non-bindable>{{numberExpression}}</span>.
*
* If no rule is defined for a category, then an empty string is displayed and a warning is generated.
* Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.
*
* ## Configuring ngPluralize with offset
* The `offset` attribute allows further customization of pluralized text, which can result in
* a better user experience. For example, instead of the message "4 people are viewing this document",
* you might display "John, Kate and 2 others are viewing this document".
* The offset attribute allows you to offset a number by any desired value.
* Let's take a look at an example:
*
* ```html
* <ng-pluralize count="personCount" offset=2
* when="{'0': 'Nobody is viewing.',
* '1': '{{person1}} is viewing.',
* '2': '{{person1}} and {{person2}} are viewing.',
* 'one': '{{person1}}, {{person2}} and one other person are viewing.',
* 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
* </ng-pluralize>
* ```
*
* Notice that we are still using two plural categories(one, other), but we added
* three explicit number rules 0, 1 and 2.
* When one person, perhaps John, views the document, "John is viewing" will be shown.
* When three people view the document, no explicit number rule is found, so
* an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.
* In this case, plural category 'one' is matched and "John, Mary and one other person are viewing"
* is shown.
*
* Note that when you specify offsets, you must provide explicit number rules for
* numbers from 0 up to and including the offset. If you use an offset of 3, for example,
* you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for
* plural categories "one" and "other".
*
* @param {string|expression} count The variable to be bound to.
* @param {string} when The mapping between plural category to its corresponding strings.
* @param {number=} offset Offset to deduct from the total number.
*
* @example
<example module="pluralizeExample" name="ng-pluralize">
<file name="index.html">
<script>
angular.module('pluralizeExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.person1 = 'Igor';
$scope.person2 = 'Misko';
$scope.personCount = 1;
}]);
</script>
<div ng-controller="ExampleController">
<label>Person 1:<input type="text" ng-model="person1" value="Igor" /></label><br/>
<label>Person 2:<input type="text" ng-model="person2" value="Misko" /></label><br/>
<label>Number of People:<input type="text" ng-model="personCount" value="1" /></label><br/>
<!--- Example with simple pluralization rules for en locale --->
Without Offset:
<ng-pluralize count="personCount"
when="{'0': 'Nobody is viewing.',
'one': '1 person is viewing.',
'other': '{} people are viewing.'}">
</ng-pluralize><br>
<!--- Example with offset --->
With Offset(2):
<ng-pluralize count="personCount" offset=2
when="{'0': 'Nobody is viewing.',
'1': '{{person1}} is viewing.',
'2': '{{person1}} and {{person2}} are viewing.',
'one': '{{person1}}, {{person2}} and one other person are viewing.',
'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
</ng-pluralize>
</div>
</file>
<file name="protractor.js" type="protractor">
it('should show correct pluralized string', function() {
var withoutOffset = element.all(by.css('ng-pluralize')).get(0);
var withOffset = element.all(by.css('ng-pluralize')).get(1);
var countInput = element(by.model('personCount'));
expect(withoutOffset.getText()).toEqual('1 person is viewing.');
expect(withOffset.getText()).toEqual('Igor is viewing.');
countInput.clear();
countInput.sendKeys('0');
expect(withoutOffset.getText()).toEqual('Nobody is viewing.');
expect(withOffset.getText()).toEqual('Nobody is viewing.');
countInput.clear();
countInput.sendKeys('2');
expect(withoutOffset.getText()).toEqual('2 people are viewing.');
expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');
countInput.clear();
countInput.sendKeys('3');
expect(withoutOffset.getText()).toEqual('3 people are viewing.');
expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');
countInput.clear();
countInput.sendKeys('4');
expect(withoutOffset.getText()).toEqual('4 people are viewing.');
expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');
});
it('should show data-bound names', function() {
var withOffset = element.all(by.css('ng-pluralize')).get(1);
var personCount = element(by.model('personCount'));
var person1 = element(by.model('person1'));
var person2 = element(by.model('person2'));
personCount.clear();
personCount.sendKeys('4');
person1.clear();
person1.sendKeys('Di');
person2.clear();
person2.sendKeys('Vojta');
expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');
});
</file>
</example>
*/
var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function ($locale, $interpolate, $log) {
var BRACE = /{}/g,
IS_WHEN = /^when(Minus)?(.+)$/;
return {
link: function link(scope, element, attr) {
var numberExp = attr.count,
whenExp = attr.$attr.when && element.attr(attr.$attr.when),
// we have {{}} in attrs
offset = attr.offset || 0,
whens = scope.$eval(whenExp) || {},
whensExpFns = {},
startSymbol = $interpolate.startSymbol(),
endSymbol = $interpolate.endSymbol(),
braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,
watchRemover = angular.noop,
lastCount;
forEach(attr, function (expression, attributeName) {
var tmpMatch = IS_WHEN.exec(attributeName);
if (tmpMatch) {
var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);
whens[whenKey] = element.attr(attr.$attr[attributeName]);
}
});
forEach(whens, function (expression, key) {
whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));
});
scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {
var count = parseFloat(newVal);
var countIsNaN = isNumberNaN(count);
if (!countIsNaN && !(count in whens)) {
// If an explicit number rule such as 1, 2, 3... is defined, just use it.
// Otherwise, check it against pluralization rules in $locale service.
count = $locale.pluralCat(count - offset);
}
// If both `count` and `lastCount` are NaN, we don't need to re-register a watch.
// In JS `NaN !== NaN`, so we have to explicitly check.
if (count !== lastCount && !(countIsNaN && isNumberNaN(lastCount))) {
watchRemover();
var whenExpFn = whensExpFns[count];
if (isUndefined(whenExpFn)) {
if (newVal != null) {
$log.debug('ngPluralize: no rule defined for \'' + count + '\' in ' + whenExp);
}
watchRemover = noop;
updateElementText();
} else {
watchRemover = scope.$watch(whenExpFn, updateElementText);
}
lastCount = count;
}
});
function updateElementText(newText) {
element.text(newText || '');
}
}
};
}];
/* exported ngRepeatDirective */
/**
* @ngdoc directive
* @name ngRepeat
* @multiElement
* @restrict A
*
* @description
* The `ngRepeat` directive instantiates a template once per item from a collection. Each template
* instance gets its own scope, where the given loop variable is set to the current collection item,
* and `$index` is set to the item index or key.
*
* Special properties are exposed on the local scope of each template instance, including:
*
* | Variable | Type | Details |
* |-----------|-----------------|-----------------------------------------------------------------------------|
* | `$index` | {@type number} | iterator offset of the repeated element (0..length-1) |
* | `$first` | {@type boolean} | true if the repeated element is first in the iterator. |
* | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |
* | `$last` | {@type boolean} | true if the repeated element is last in the iterator. |
* | `$even` | {@type boolean} | true if the iterator position `$index` is even (otherwise false). |
* | `$odd` | {@type boolean} | true if the iterator position `$index` is odd (otherwise false). |
*
* <div class="alert alert-info">
* Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.
* This may be useful when, for instance, nesting ngRepeats.
* </div>
*
*
* ## Iterating over object properties
*
* It is possible to get `ngRepeat` to iterate over the properties of an object using the following
* syntax:
*
* ```js
* <div ng-repeat="(key, value) in myObj"> ... </div>
* ```
*
* However, there are a few limitations compared to array iteration:
*
* - The JavaScript specification does not define the order of keys
* returned for an object, so Angular relies on the order returned by the browser
* when running `for key in myObj`. Browsers generally follow the strategy of providing
* keys in the order in which they were defined, although there are exceptions when keys are deleted
* and reinstated. See the
* [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).
*
* - `ngRepeat` will silently *ignore* object keys starting with `$`, because
* it's a prefix used by Angular for public (`$`) and private (`$$`) properties.
*
* - The built-in filters {@link ng.orderBy orderBy} and {@link ng.filter filter} do not work with
* objects, and will throw an error if used with one.
*
* If you are hitting any of these limitations, the recommended workaround is to convert your object into an array
* that is sorted into the order that you prefer before providing it to `ngRepeat`. You could
* do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)
* or implement a `$watch` on the object yourself.
*
*
* ## Tracking and Duplicates
*
* `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in
* the collection. When a change happens, `ngRepeat` then makes the corresponding changes to the DOM:
*
* * When an item is added, a new instance of the template is added to the DOM.
* * When an item is removed, its template instance is removed from the DOM.
* * When items are reordered, their respective templates are reordered in the DOM.
*
* To minimize creation of DOM elements, `ngRepeat` uses a function
* to "keep track" of all items in the collection and their corresponding DOM elements.
* For example, if an item is added to the collection, `ngRepeat` will know that all other items
* already have DOM elements, and will not re-render them.
*
* The default tracking function (which tracks items by their identity) does not allow
* duplicate items in arrays. This is because when there are duplicates, it is not possible
* to maintain a one-to-one mapping between collection items and DOM elements.
*
* If you do need to repeat duplicate items, you can substitute the default tracking behavior
* with your own using the `track by` expression.
*
* For example, you may track items by the index of each item in the collection, using the
* special scope property `$index`:
* ```html
* <div ng-repeat="n in [42, 42, 43, 43] track by $index">
* {{n}}
* </div>
* ```
*
* You may also use arbitrary expressions in `track by`, including references to custom functions
* on the scope:
* ```html
* <div ng-repeat="n in [42, 42, 43, 43] track by myTrackingFunction(n)">
* {{n}}
* </div>
* ```
*
* <div class="alert alert-success">
* If you are working with objects that have a unique identifier property, you should track
* by this identifier instead of the object instance. Should you reload your data later, `ngRepeat`
* will not have to rebuild the DOM elements for items it has already rendered, even if the
* JavaScript objects in the collection have been substituted for new ones. For large collections,
* this significantly improves rendering performance. If you don't have a unique identifier,
* `track by $index` can also provide a performance boost.
* </div>
*
* ```html
* <div ng-repeat="model in collection track by model.id">
* {{model.name}}
* </div>
* ```
*
* <br />
* <div class="alert alert-warning">
* Avoid using `track by $index` when the repeated template contains
* {@link guide/expression#one-time-binding one-time bindings}. In such cases, the `nth` DOM
* element will always be matched with the `nth` item of the array, so the bindings on that element
* will not be updated even when the corresponding item changes, essentially causing the view to get
* out-of-sync with the underlying data.
* </div>
*
* When no `track by` expression is provided, it is equivalent to tracking by the built-in
* `$id` function, which tracks items by their identity:
* ```html
* <div ng-repeat="obj in collection track by $id(obj)">
* {{obj.prop}}
* </div>
* ```
*
* <br />
* <div class="alert alert-warning">
* **Note:** `track by` must always be the last expression:
* </div>
* ```
* <div ng-repeat="model in collection | orderBy: 'id' as filtered_result track by model.id">
* {{model.name}}
* </div>
* ```
*
*
* ## Special repeat start and end points
* To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
* the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
* The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)
* up to and including the ending HTML tag where **ng-repeat-end** is placed.
*
* The example below makes use of this feature:
* ```html
* <header ng-repeat-start="item in items">
* Header {{ item }}
* </header>
* <div class="body">
* Body {{ item }}
* </div>
* <footer ng-repeat-end>
* Footer {{ item }}
* </footer>
* ```
*
* And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:
* ```html
* <header>
* Header A
* </header>
* <div class="body">
* Body A
* </div>
* <footer>
* Footer A
* </footer>
* <header>
* Header B
* </header>
* <div class="body">
* Body B
* </div>
* <footer>
* Footer B
* </footer>
* ```
*
* The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such
* as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
*
* @animations
* | Animation | Occurs |
* |----------------------------------|-------------------------------------|
* | {@link ng.$animate#enter enter} | when a new item is added to the list or when an item is revealed after a filter |
* | {@link ng.$animate#leave leave} | when an item is removed from the list or when an item is filtered out |
* | {@link ng.$animate#move move } | when an adjacent item is filtered out causing a reorder or when the item contents are reordered |
*
* See the example below for defining CSS animations with ngRepeat.
*
* @element ANY
* @scope
* @priority 1000
* @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These
* formats are currently supported:
*
* * `variable in expression` where variable is the user defined loop variable and `expression`
* is a scope expression giving the collection to enumerate.
*
* For example: `album in artist.albums`.
*
* * `(key, value) in expression` where `key` and `value` can be any user defined identifiers,
* and `expression` is the scope expression giving the collection to enumerate.
*
* For example: `(name, age) in {'adam':10, 'amalie':12}`.
*
* * `variable in expression track by tracking_expression` You can also provide an optional tracking expression
* which can be used to associate the objects in the collection with the DOM elements. If no tracking expression
* is specified, ng-repeat associates elements by identity. It is an error to have
* more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are
* mapped to the same DOM element, which is not possible.)
*
* <div class="alert alert-warning">
* <strong>Note:</strong> the `track by` expression must come last - after any filters, and the alias expression.
* </div>
*
* For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
* will be associated by item identity in the array.
*
* For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique
* `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements
* with the corresponding item in the array by identity. Moving the same object in array would move the DOM
* element in the same way in the DOM.
*
* For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this
* case the object identity does not matter. Two objects are considered equivalent as long as their `id`
* property is same.
*
* For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter
* to items in conjunction with a tracking expression.
*
* * `variable in expression as alias_expression` You can also provide an optional alias expression which will then store the
* intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
* when a filter is active on the repeater, but the filtered result set is empty.
*
* For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
* the items have been processed through the filter.
*
* Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end
* (and not as operator, inside an expression).
*
* For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .
*
* @example
* This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
* results by name or by age. New (entering) and removed (leaving) items are animated.
<example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-controller="repeatController">
I have {{friends.length}} friends. They are:
<input type="search" ng-model="q" placeholder="filter friends..." aria-label="filter friends" />
<ul class="example-animate-container">
<li class="animate-repeat" ng-repeat="friend in friends | filter:q as results">
[{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.
</li>
<li class="animate-repeat" ng-if="results.length === 0">
<strong>No results found...</strong>
</li>
</ul>
</div>
</file>
<file name="script.js">
angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {
$scope.friends = [
{name:'John', age:25, gender:'boy'},
{name:'Jessie', age:30, gender:'girl'},
{name:'Johanna', age:28, gender:'girl'},
{name:'Joy', age:15, gender:'girl'},
{name:'Mary', age:28, gender:'girl'},
{name:'Peter', age:95, gender:'boy'},
{name:'Sebastian', age:50, gender:'boy'},
{name:'Erika', age:27, gender:'girl'},
{name:'Patrick', age:40, gender:'boy'},
{name:'Samantha', age:60, gender:'girl'}
];
});
</file>
<file name="animations.css">
.example-animate-container {
background:white;
border:1px solid black;
list-style:none;
margin:0;
padding:0 10px;
}
.animate-repeat {
line-height:30px;
list-style:none;
box-sizing:border-box;
}
.animate-repeat.ng-move,
.animate-repeat.ng-enter,
.animate-repeat.ng-leave {
transition:all linear 0.5s;
}
.animate-repeat.ng-leave.ng-leave-active,
.animate-repeat.ng-move,
.animate-repeat.ng-enter {
opacity:0;
max-height:0;
}
.animate-repeat.ng-leave,
.animate-repeat.ng-move.ng-move-active,
.animate-repeat.ng-enter.ng-enter-active {
opacity:1;
max-height:30px;
}
</file>
<file name="protractor.js" type="protractor">
var friends = element.all(by.repeater('friend in friends'));
it('should render initial data set', function() {
expect(friends.count()).toBe(10);
expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');
expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');
expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');
expect(element(by.binding('friends.length')).getText())
.toMatch("I have 10 friends. They are:");
});
it('should update repeater when filter predicate changes', function() {
expect(friends.count()).toBe(10);
element(by.model('q')).sendKeys('ma');
expect(friends.count()).toBe(2);
expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');
expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');
});
</file>
</example>
*/
var ngRepeatDirective = ['$parse', '$animate', '$compile', function ($parse, $animate, $compile) {
var NG_REMOVED = '$$NG_REMOVED';
var ngRepeatMinErr = minErr('ngRepeat');
var updateScope = function updateScope(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {
// TODO(perf): generate setters to shave off ~40ms or 1-1.5%
scope[valueIdentifier] = value;
if (keyIdentifier) scope[keyIdentifier] = key;
scope.$index = index;
scope.$first = index === 0;
scope.$last = index === arrayLength - 1;
scope.$middle = !(scope.$first || scope.$last);
// eslint-disable-next-line no-bitwise
scope.$odd = !(scope.$even = (index & 1) === 0);
};
var getBlockStart = function getBlockStart(block) {
return block.clone[0];
};
var getBlockEnd = function getBlockEnd(block) {
return block.clone[block.clone.length - 1];
};
return {
restrict: 'A',
multiElement: true,
transclude: 'element',
priority: 1000,
terminal: true,
$$tlb: true,
compile: function ngRepeatCompile($element, $attr) {
var expression = $attr.ngRepeat;
var ngRepeatEndComment = $compile.$$createComment('end ngRepeat', expression);
var match = expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
if (!match) {
throw ngRepeatMinErr('iexp', 'Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.', expression);
}
var lhs = match[1];
var rhs = match[2];
var aliasAs = match[3];
var trackByExp = match[4];
match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);
if (!match) {
throw ngRepeatMinErr('iidexp', '\'_item_\' in \'_item_ in _collection_\' should be an identifier or \'(_key_, _value_)\' expression, but got \'{0}\'.', lhs);
}
var valueIdentifier = match[3] || match[1];
var keyIdentifier = match[2];
if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) || /^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(aliasAs))) {
throw ngRepeatMinErr('badident', 'alias \'{0}\' is invalid --- must be a valid JS identifier which is not a reserved name.', aliasAs);
}
var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;
var hashFnLocals = { $id: hashKey };
if (trackByExp) {
trackByExpGetter = $parse(trackByExp);
} else {
trackByIdArrayFn = function trackByIdArrayFn(key, value) {
return hashKey(value);
};
trackByIdObjFn = function trackByIdObjFn(key) {
return key;
};
}
return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {
if (trackByExpGetter) {
trackByIdExpFn = function trackByIdExpFn(key, value, index) {
// assign key, value, and $index to the locals so that they can be used in hash functions
if (keyIdentifier) hashFnLocals[keyIdentifier] = key;
hashFnLocals[valueIdentifier] = value;
hashFnLocals.$index = index;
return trackByExpGetter($scope, hashFnLocals);
};
}
// Store a list of elements from previous run. This is a hash where key is the item from the
// iterator, and the value is objects with following properties.
// - scope: bound scope
// - clone: previous element.
// - index: position
//
// We are using no-proto object so that we don't need to guard against inherited props via
// hasOwnProperty.
var lastBlockMap = createMap();
//watch props
$scope.$watchCollection(rhs, function ngRepeatAction(collection) {
var index,
length,
previousNode = $element[0],
// node that cloned nodes should be inserted after
// initialized to the comment node anchor
nextNode,
// Same as lastBlockMap but it has the current state. It will become the
// lastBlockMap on the next iteration.
nextBlockMap = createMap(),
collectionLength,
key,
value,
// key/value of iteration
trackById,
trackByIdFn,
collectionKeys,
block,
// last object information {scope, element, id}
nextBlockOrder,
elementsToRemove;
if (aliasAs) {
$scope[aliasAs] = collection;
}
if (isArrayLike(collection)) {
collectionKeys = collection;
trackByIdFn = trackByIdExpFn || trackByIdArrayFn;
} else {
trackByIdFn = trackByIdExpFn || trackByIdObjFn;
// if object, extract keys, in enumeration order, unsorted
collectionKeys = [];
for (var itemKey in collection) {
if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {
collectionKeys.push(itemKey);
}
}
}
collectionLength = collectionKeys.length;
nextBlockOrder = new Array(collectionLength);
// locate existing items
for (index = 0; index < collectionLength; index++) {
key = collection === collectionKeys ? index : collectionKeys[index];
value = collection[key];
trackById = trackByIdFn(key, value, index);
if (lastBlockMap[trackById]) {
// found previously seen block
block = lastBlockMap[trackById];
delete lastBlockMap[trackById];
nextBlockMap[trackById] = block;
nextBlockOrder[index] = block;
} else if (nextBlockMap[trackById]) {
// if collision detected. restore lastBlockMap and throw an error
forEach(nextBlockOrder, function (block) {
if (block && block.scope) lastBlockMap[block.id] = block;
});
throw ngRepeatMinErr('dupes', 'Duplicates in a repeater are not allowed. Use \'track by\' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}', expression, trackById, value);
} else {
// new never before seen block
nextBlockOrder[index] = { id: trackById, scope: undefined, clone: undefined };
nextBlockMap[trackById] = true;
}
}
// remove leftover items
for (var blockKey in lastBlockMap) {
block = lastBlockMap[blockKey];
elementsToRemove = getBlockNodes(block.clone);
$animate.leave(elementsToRemove);
if (elementsToRemove[0].parentNode) {
// if the element was not removed yet because of pending animation, mark it as deleted
// so that we can ignore it later
for (index = 0, length = elementsToRemove.length; index < length; index++) {
elementsToRemove[index][NG_REMOVED] = true;
}
}
block.scope.$destroy();
}
// we are not using forEach for perf reasons (trying to avoid #call)
for (index = 0; index < collectionLength; index++) {
key = collection === collectionKeys ? index : collectionKeys[index];
value = collection[key];
block = nextBlockOrder[index];
if (block.scope) {
// if we have already seen this object, then we need to reuse the
// associated scope/element
nextNode = previousNode;
// skip nodes that are already pending removal via leave animation
do {
nextNode = nextNode.nextSibling;
} while (nextNode && nextNode[NG_REMOVED]);
if (getBlockStart(block) !== nextNode) {
// existing item which got moved
$animate.move(getBlockNodes(block.clone), null, previousNode);
}
previousNode = getBlockEnd(block);
updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
} else {
// new item which we don't know about
$transclude(function ngRepeatTransclude(clone, scope) {
block.scope = scope;
// http://jsperf.com/clone-vs-createcomment
var endNode = ngRepeatEndComment.cloneNode(false);
clone[clone.length++] = endNode;
$animate.enter(clone, null, previousNode);
previousNode = endNode;
// Note: We only need the first/last node of the cloned nodes.
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
// by a directive with templateUrl when its template arrives.
block.clone = clone;
nextBlockMap[block.id] = block;
updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
});
}
}
lastBlockMap = nextBlockMap;
});
};
}
};
}];
var NG_HIDE_CLASS = 'ng-hide';
var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
/**
* @ngdoc directive
* @name ngShow
* @multiElement
*
* @description
* The `ngShow` directive shows or hides the given HTML element based on the expression provided to
* the `ngShow` attribute.
*
* The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
* The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
* `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
* {@link ng.directive:ngCsp ngCsp}).
*
* ```html
* <!-- when $scope.myValue is truthy (element is visible) -->
* <div ng-show="myValue"></div>
*
* <!-- when $scope.myValue is falsy (element is hidden) -->
* <div ng-show="myValue" class="ng-hide"></div>
* ```
*
* When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added
* to the class attribute on the element causing it to become hidden. When truthy, the `.ng-hide`
* CSS class is removed from the element causing the element not to appear hidden.
*
* ## Why is `!important` used?
*
* You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
* `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
* simple as changing the display style on a HTML list item would make hidden elements appear
* visible. This also becomes a bigger issue when dealing with CSS frameworks.
*
* By using `!important`, the show and hide behavior will work as expected despite any clash between
* CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
* developer chooses to override the styling to change how to hide an element then it is just a
* matter of using `!important` in their own CSS code.
*
* ### Overriding `.ng-hide`
*
* By default, the `.ng-hide` class will style the element with `display: none !important`. If you
* wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
* the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
* `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
*
* ```css
* .ng-hide:not(.ng-hide-animate) {
* /&#42; These are just alternative ways of hiding an element &#42;/
* display: block!important;
* position: absolute;
* top: -9999px;
* left: -9999px;
* }
* ```
*
* By default you don't need to override anything in CSS and the animations will work around the
* display style.
*
* @animations
* | Animation | Occurs |
* |-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
* | {@link $animate#addClass addClass} `.ng-hide` | After the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden. |
* | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngShow` expression evaluates to a truthy value and just before contents are set to visible. |
*
* Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
* directive expression is true and false. This system works like the animation system present with
* `ngClass` except that you must also include the `!important` flag to override the display
* property so that the elements are not actually hidden during the animation.
*
* ```css
* /&#42; A working example can be found at the bottom of this page. &#42;/
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
* transition: all 0.5s linear;
* }
*
* .my-element.ng-hide-add { ... }
* .my-element.ng-hide-add.ng-hide-add-active { ... }
* .my-element.ng-hide-remove { ... }
* .my-element.ng-hide-remove.ng-hide-remove-active { ... }
* ```
*
* Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
* to block during animation states - ngAnimate will automatically handle the style toggling for you.
*
* @element ANY
* @param {expression} ngShow If the {@link guide/expression expression} is truthy/falsy then the
* element is shown/hidden respectively.
*
* @example
* A simple example, animating the element's opacity:
*
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-simple">
<file name="index.html">
Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
<div class="check-element animate-show-hide" ng-show="checked">
I show up when your checkbox is checked.
</div>
</file>
<file name="animations.css">
.animate-show-hide.ng-hide {
opacity: 0;
}
.animate-show-hide.ng-hide-add,
.animate-show-hide.ng-hide-remove {
transition: all linear 0.5s;
}
.check-element {
border: 1px solid black;
opacity: 1;
padding: 10px;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ngShow', function() {
var checkbox = element(by.model('checked'));
var checkElem = element(by.css('.check-element'));
expect(checkElem.isDisplayed()).toBe(false);
checkbox.click();
expect(checkElem.isDisplayed()).toBe(true);
});
</file>
</example>
*
* <hr />
* @example
* A more complex example, featuring different show/hide animations:
*
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-complex">
<file name="index.html">
Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
<div class="check-element funky-show-hide" ng-show="checked">
I show up when your checkbox is checked.
</div>
</file>
<file name="animations.css">
body {
overflow: hidden;
perspective: 1000px;
}
.funky-show-hide.ng-hide-add {
transform: rotateZ(0);
transform-origin: right;
transition: all 0.5s ease-in-out;
}
.funky-show-hide.ng-hide-add.ng-hide-add-active {
transform: rotateZ(-135deg);
}
.funky-show-hide.ng-hide-remove {
transform: rotateY(90deg);
transform-origin: left;
transition: all 0.5s ease;
}
.funky-show-hide.ng-hide-remove.ng-hide-remove-active {
transform: rotateY(0);
}
.check-element {
border: 1px solid black;
opacity: 1;
padding: 10px;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ngShow', function() {
var checkbox = element(by.model('checked'));
var checkElem = element(by.css('.check-element'));
expect(checkElem.isDisplayed()).toBe(false);
checkbox.click();
expect(checkElem.isDisplayed()).toBe(true);
});
</file>
</example>
*/
var ngShowDirective = ['$animate', function ($animate) {
return {
restrict: 'A',
multiElement: true,
link: function link(scope, element, attr) {
scope.$watch(attr.ngShow, function ngShowWatchAction(value) {
// we're adding a temporary, animation-specific class for ng-hide since this way
// we can control when the element is actually displayed on screen without having
// to have a global/greedy CSS selector that breaks when other animations are run.
// Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845
$animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {
tempClasses: NG_HIDE_IN_PROGRESS_CLASS
});
});
}
};
}];
/**
* @ngdoc directive
* @name ngHide
* @multiElement
*
* @description
* The `ngHide` directive shows or hides the given HTML element based on the expression provided to
* the `ngHide` attribute.
*
* The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
* The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
* `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
* {@link ng.directive:ngCsp ngCsp}).
*
* ```html
* <!-- when $scope.myValue is truthy (element is hidden) -->
* <div ng-hide="myValue" class="ng-hide"></div>
*
* <!-- when $scope.myValue is falsy (element is visible) -->
* <div ng-hide="myValue"></div>
* ```
*
* When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added
* to the class attribute on the element causing it to become hidden. When falsy, the `.ng-hide`
* CSS class is removed from the element causing the element not to appear hidden.
*
* ## Why is `!important` used?
*
* You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
* `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
* simple as changing the display style on a HTML list item would make hidden elements appear
* visible. This also becomes a bigger issue when dealing with CSS frameworks.
*
* By using `!important`, the show and hide behavior will work as expected despite any clash between
* CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
* developer chooses to override the styling to change how to hide an element then it is just a
* matter of using `!important` in their own CSS code.
*
* ### Overriding `.ng-hide`
*
* By default, the `.ng-hide` class will style the element with `display: none !important`. If you
* wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
* the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
* `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
*
* ```css
* .ng-hide:not(.ng-hide-animate) {
* /&#42; These are just alternative ways of hiding an element &#42;/
* display: block!important;
* position: absolute;
* top: -9999px;
* left: -9999px;
* }
* ```
*
* By default you don't need to override in CSS anything and the animations will work around the
* display style.
*
* @animations
* | Animation | Occurs |
* |-----------------------------------------------------|------------------------------------------------------------------------------------------------------------|
* | {@link $animate#addClass addClass} `.ng-hide` | After the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden. |
* | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngHide` expression evaluates to a non truthy value and just before contents are set to visible. |
*
* Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
* directive expression is true and false. This system works like the animation system present with
* `ngClass` except that you must also include the `!important` flag to override the display
* property so that the elements are not actually hidden during the animation.
*
* ```css
* /&#42; A working example can be found at the bottom of this page. &#42;/
* .my-element.ng-hide-add, .my-element.ng-hide-remove {
* transition: all 0.5s linear;
* }
*
* .my-element.ng-hide-add { ... }
* .my-element.ng-hide-add.ng-hide-add-active { ... }
* .my-element.ng-hide-remove { ... }
* .my-element.ng-hide-remove.ng-hide-remove-active { ... }
* ```
*
* Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
* to block during animation states - ngAnimate will automatically handle the style toggling for you.
*
* @element ANY
* @param {expression} ngHide If the {@link guide/expression expression} is truthy/falsy then the
* element is hidden/shown respectively.
*
* @example
* A simple example, animating the element's opacity:
*
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-simple">
<file name="index.html">
Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
<div class="check-element animate-show-hide" ng-hide="checked">
I hide when your checkbox is checked.
</div>
</file>
<file name="animations.css">
.animate-show-hide.ng-hide {
opacity: 0;
}
.animate-show-hide.ng-hide-add,
.animate-show-hide.ng-hide-remove {
transition: all linear 0.5s;
}
.check-element {
border: 1px solid black;
opacity: 1;
padding: 10px;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ngHide', function() {
var checkbox = element(by.model('checked'));
var checkElem = element(by.css('.check-element'));
expect(checkElem.isDisplayed()).toBe(true);
checkbox.click();
expect(checkElem.isDisplayed()).toBe(false);
});
</file>
</example>
*
* <hr />
* @example
* A more complex example, featuring different show/hide animations:
*
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-complex">
<file name="index.html">
Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
<div class="check-element funky-show-hide" ng-hide="checked">
I hide when your checkbox is checked.
</div>
</file>
<file name="animations.css">
body {
overflow: hidden;
perspective: 1000px;
}
.funky-show-hide.ng-hide-add {
transform: rotateZ(0);
transform-origin: right;
transition: all 0.5s ease-in-out;
}
.funky-show-hide.ng-hide-add.ng-hide-add-active {
transform: rotateZ(-135deg);
}
.funky-show-hide.ng-hide-remove {
transform: rotateY(90deg);
transform-origin: left;
transition: all 0.5s ease;
}
.funky-show-hide.ng-hide-remove.ng-hide-remove-active {
transform: rotateY(0);
}
.check-element {
border: 1px solid black;
opacity: 1;
padding: 10px;
}
</file>
<file name="protractor.js" type="protractor">
it('should check ngHide', function() {
var checkbox = element(by.model('checked'));
var checkElem = element(by.css('.check-element'));
expect(checkElem.isDisplayed()).toBe(true);
checkbox.click();
expect(checkElem.isDisplayed()).toBe(false);
});
</file>
</example>
*/
var ngHideDirective = ['$animate', function ($animate) {
return {
restrict: 'A',
multiElement: true,
link: function link(scope, element, attr) {
scope.$watch(attr.ngHide, function ngHideWatchAction(value) {
// The comment inside of the ngShowDirective explains why we add and
// remove a temporary class for the show/hide animation
$animate[value ? 'addClass' : 'removeClass'](element, NG_HIDE_CLASS, {
tempClasses: NG_HIDE_IN_PROGRESS_CLASS
});
});
}
};
}];
/**
* @ngdoc directive
* @name ngStyle
* @restrict AC
*
* @description
* The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
*
* @knownIssue
* You should not use {@link guide/interpolation interpolation} in the value of the `style`
* attribute, when using the `ngStyle` directive on the same element.
* See {@link guide/interpolation#known-issues here} for more info.
*
* @element ANY
* @param {expression} ngStyle
*
* {@link guide/expression Expression} which evals to an
* object whose keys are CSS style names and values are corresponding values for those CSS
* keys.
*
* Since some CSS style names are not valid keys for an object, they must be quoted.
* See the 'background-color' style in the example below.
*
* @example
<example name="ng-style">
<file name="index.html">
<input type="button" value="set color" ng-click="myStyle={color:'red'}">
<input type="button" value="set background" ng-click="myStyle={'background-color':'blue'}">
<input type="button" value="clear" ng-click="myStyle={}">
<br/>
<span ng-style="myStyle">Sample Text</span>
<pre>myStyle={{myStyle}}</pre>
</file>
<file name="style.css">
span {
color: black;
}
</file>
<file name="protractor.js" type="protractor">
var colorSpan = element(by.css('span'));
it('should check ng-style', function() {
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
element(by.css('input[value=\'set color\']')).click();
expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');
element(by.css('input[value=clear]')).click();
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
});
</file>
</example>
*/
var ngStyleDirective = ngDirective(function (scope, element, attr) {
scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {
if (oldStyles && newStyles !== oldStyles) {
forEach(oldStyles, function (val, style) {
element.css(style, '');
});
}
if (newStyles) element.css(newStyles);
}, true);
});
/**
* @ngdoc directive
* @name ngSwitch
* @restrict EA
*
* @description
* The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
* Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location
* as specified in the template.
*
* The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it
* from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element
* matches the value obtained from the evaluated expression. In other words, you define a container element
* (where you place the directive), place an expression on the **`on="..."` attribute**
* (or the **`ng-switch="..."` attribute**), define any inner elements inside of the directive and place
* a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on
* expression is evaluated. If a matching expression is not found via a when attribute then an element with the default
* attribute is displayed.
*
* <div class="alert alert-info">
* Be aware that the attribute values to match against cannot be expressions. They are interpreted
* as literal string values to match against.
* For example, **`ng-switch-when="someVal"`** will match against the string `"someVal"` not against the
* value of the expression `$scope.someVal`.
* </div>
* @animations
* | Animation | Occurs |
* |----------------------------------|-------------------------------------|
* | {@link ng.$animate#enter enter} | after the ngSwitch contents change and the matched child element is placed inside the container |
* | {@link ng.$animate#leave leave} | after the ngSwitch contents change and just before the former contents are removed from the DOM |
*
* @usage
*
* ```
* <ANY ng-switch="expression">
* <ANY ng-switch-when="matchValue1">...</ANY>
* <ANY ng-switch-when="matchValue2">...</ANY>
* <ANY ng-switch-default>...</ANY>
* </ANY>
* ```
*
*
* @scope
* @priority 1200
* @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.
* On child elements add:
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
* case will be displayed. If the same match appears multiple times, all the
* elements will be displayed. It is possible to associate multiple values to
* the same `ngSwitchWhen` by defining the optional attribute
* `ngSwitchWhenSeparator`. The separator will be used to split the value of
* the `ngSwitchWhen` attribute into multiple tokens, and the element will show
* if any of the `ngSwitch` evaluates to any of these tokens.
* * `ngSwitchDefault`: the default case when no other case match. If there
* are multiple default cases, all of them will be displayed when no other
* case match.
*
*
* @example
<example module="switchExample" deps="angular-animate.js" animations="true" name="ng-switch">
<file name="index.html">
<div ng-controller="ExampleController">
<select ng-model="selection" ng-options="item for item in items">
</select>
<code>selection={{selection}}</code>
<hr/>
<div class="animate-switch-container"
ng-switch on="selection">
<div class="animate-switch" ng-switch-when="settings|options" ng-switch-when-separator="|">Settings Div</div>
<div class="animate-switch" ng-switch-when="home">Home Span</div>
<div class="animate-switch" ng-switch-default>default</div>
</div>
</div>
</file>
<file name="script.js">
angular.module('switchExample', ['ngAnimate'])
.controller('ExampleController', ['$scope', function($scope) {
$scope.items = ['settings', 'home', 'options', 'other'];
$scope.selection = $scope.items[0];
}]);
</file>
<file name="animations.css">
.animate-switch-container {
position:relative;
background:white;
border:1px solid black;
height:40px;
overflow:hidden;
}
.animate-switch {
padding:10px;
}
.animate-switch.ng-animate {
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
.animate-switch.ng-leave.ng-leave-active,
.animate-switch.ng-enter {
top:-50px;
}
.animate-switch.ng-leave,
.animate-switch.ng-enter.ng-enter-active {
top:0;
}
</file>
<file name="protractor.js" type="protractor">
var switchElem = element(by.css('[ng-switch]'));
var select = element(by.model('selection'));
it('should start in settings', function() {
expect(switchElem.getText()).toMatch(/Settings Div/);
});
it('should change to home', function() {
select.all(by.css('option')).get(1).click();
expect(switchElem.getText()).toMatch(/Home Span/);
});
it('should change to settings via "options"', function() {
select.all(by.css('option')).get(2).click();
expect(switchElem.getText()).toMatch(/Settings Div/);
});
it('should select default', function() {
select.all(by.css('option')).get(3).click();
expect(switchElem.getText()).toMatch(/default/);
});
</file>
</example>
*/
var ngSwitchDirective = ['$animate', '$compile', function ($animate, $compile) {
return {
require: 'ngSwitch',
// asks for $scope to fool the BC controller module
controller: ['$scope', function NgSwitchController() {
this.cases = {};
}],
link: function link(scope, element, attr, ngSwitchController) {
var watchExpr = attr.ngSwitch || attr.on,
selectedTranscludes = [],
selectedElements = [],
previousLeaveAnimations = [],
selectedScopes = [];
var spliceFactory = function spliceFactory(array, index) {
return function (response) {
if (response !== false) array.splice(index, 1);
};
};
scope.$watch(watchExpr, function ngSwitchWatchAction(value) {
var i, ii;
// Start with the last, in case the array is modified during the loop
while (previousLeaveAnimations.length) {
$animate.cancel(previousLeaveAnimations.pop());
}
for (i = 0, ii = selectedScopes.length; i < ii; ++i) {
var selected = getBlockNodes(selectedElements[i].clone);
selectedScopes[i].$destroy();
var runner = previousLeaveAnimations[i] = $animate.leave(selected);
runner.done(spliceFactory(previousLeaveAnimations, i));
}
selectedElements.length = 0;
selectedScopes.length = 0;
if (selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?']) {
forEach(selectedTranscludes, function (selectedTransclude) {
selectedTransclude.transclude(function (caseElement, selectedScope) {
selectedScopes.push(selectedScope);
var anchor = selectedTransclude.element;
caseElement[caseElement.length++] = $compile.$$createComment('end ngSwitchWhen');
var block = { clone: caseElement };
selectedElements.push(block);
$animate.enter(caseElement, anchor.parent(), anchor);
});
});
}
});
}
};
}];
var ngSwitchWhenDirective = ngDirective({
transclude: 'element',
priority: 1200,
require: '^ngSwitch',
multiElement: true,
link: function link(scope, element, attrs, ctrl, $transclude) {
var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter(
// Filter duplicate cases
function (element, index, array) {
return array[index - 1] !== element;
});
forEach(cases, function (whenCase) {
ctrl.cases['!' + whenCase] = ctrl.cases['!' + whenCase] || [];
ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element });
});
}
});
var ngSwitchDefaultDirective = ngDirective({
transclude: 'element',
priority: 1200,
require: '^ngSwitch',
multiElement: true,
link: function link(scope, element, attr, ctrl, $transclude) {
ctrl.cases['?'] = ctrl.cases['?'] || [];
ctrl.cases['?'].push({ transclude: $transclude, element: element });
}
});
/**
* @ngdoc directive
* @name ngTransclude
* @restrict EAC
*
* @description
* Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
*
* You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name
* as the value of the `ng-transclude` or `ng-transclude-slot` attribute.
*
* If the transcluded content is not empty (i.e. contains one or more DOM nodes, including whitespace text nodes), any existing
* content of this element will be removed before the transcluded content is inserted.
* If the transcluded content is empty (or only whitespace), the existing content is left intact. This lets you provide fallback
* content in the case that no transcluded content is provided.
*
* @element ANY
*
* @param {string} ngTransclude|ngTranscludeSlot the name of the slot to insert at this point. If this is not provided, is empty
* or its value is the same as the name of the attribute then the default slot is used.
*
* @example
* ### Basic transclusion
* This example demonstrates basic transclusion of content into a component directive.
* <example name="simpleTranscludeExample" module="transcludeExample">
* <file name="index.html">
* <script>
* angular.module('transcludeExample', [])
* .directive('pane', function(){
* return {
* restrict: 'E',
* transclude: true,
* scope: { title:'@' },
* template: '<div style="border: 1px solid black;">' +
* '<div style="background-color: gray">{{title}}</div>' +
* '<ng-transclude></ng-transclude>' +
* '</div>'
* };
* })
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.title = 'Lorem Ipsum';
* $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
* }]);
* </script>
* <div ng-controller="ExampleController">
* <input ng-model="title" aria-label="title"> <br/>
* <textarea ng-model="text" aria-label="text"></textarea> <br/>
* <pane title="{{title}}"><span>{{text}}</span></pane>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
* it('should have transcluded', function() {
* var titleElement = element(by.model('title'));
* titleElement.clear();
* titleElement.sendKeys('TITLE');
* var textElement = element(by.model('text'));
* textElement.clear();
* textElement.sendKeys('TEXT');
* expect(element(by.binding('title')).getText()).toEqual('TITLE');
* expect(element(by.binding('text')).getText()).toEqual('TEXT');
* });
* </file>
* </example>
*
* @example
* ### Transclude fallback content
* This example shows how to use `NgTransclude` with fallback content, that
* is displayed if no transcluded content is provided.
*
* <example module="transcludeFallbackContentExample" name="ng-transclude">
* <file name="index.html">
* <script>
* angular.module('transcludeFallbackContentExample', [])
* .directive('myButton', function(){
* return {
* restrict: 'E',
* transclude: true,
* scope: true,
* template: '<button style="cursor: pointer;">' +
* '<ng-transclude>' +
* '<b style="color: red;">Button1</b>' +
* '</ng-transclude>' +
* '</button>'
* };
* });
* </script>
* <!-- fallback button content -->
* <my-button id="fallback"></my-button>
* <!-- modified button content -->
* <my-button id="modified">
* <i style="color: green;">Button2</i>
* </my-button>
* </file>
* <file name="protractor.js" type="protractor">
* it('should have different transclude element content', function() {
* expect(element(by.id('fallback')).getText()).toBe('Button1');
* expect(element(by.id('modified')).getText()).toBe('Button2');
* });
* </file>
* </example>
*
* @example
* ### Multi-slot transclusion
* This example demonstrates using multi-slot transclusion in a component directive.
* <example name="multiSlotTranscludeExample" module="multiSlotTranscludeExample">
* <file name="index.html">
* <style>
* .title, .footer {
* background-color: gray
* }
* </style>
* <div ng-controller="ExampleController">
* <input ng-model="title" aria-label="title"> <br/>
* <textarea ng-model="text" aria-label="text"></textarea> <br/>
* <pane>
* <pane-title><a ng-href="{{link}}">{{title}}</a></pane-title>
* <pane-body><p>{{text}}</p></pane-body>
* </pane>
* </div>
* </file>
* <file name="app.js">
* angular.module('multiSlotTranscludeExample', [])
* .directive('pane', function() {
* return {
* restrict: 'E',
* transclude: {
* 'title': '?paneTitle',
* 'body': 'paneBody',
* 'footer': '?paneFooter'
* },
* template: '<div style="border: 1px solid black;">' +
* '<div class="title" ng-transclude="title">Fallback Title</div>' +
* '<div ng-transclude="body"></div>' +
* '<div class="footer" ng-transclude="footer">Fallback Footer</div>' +
* '</div>'
* };
* })
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.title = 'Lorem Ipsum';
* $scope.link = 'https://google.com';
* $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
* }]);
* </file>
* <file name="protractor.js" type="protractor">
* it('should have transcluded the title and the body', function() {
* var titleElement = element(by.model('title'));
* titleElement.clear();
* titleElement.sendKeys('TITLE');
* var textElement = element(by.model('text'));
* textElement.clear();
* textElement.sendKeys('TEXT');
* expect(element(by.css('.title')).getText()).toEqual('TITLE');
* expect(element(by.binding('text')).getText()).toEqual('TEXT');
* expect(element(by.css('.footer')).getText()).toEqual('Fallback Footer');
* });
* </file>
* </example>
*/
var ngTranscludeMinErr = minErr('ngTransclude');
var ngTranscludeDirective = ['$compile', function ($compile) {
return {
restrict: 'EAC',
terminal: true,
compile: function ngTranscludeCompile(tElement) {
// Remove and cache any original content to act as a fallback
var fallbackLinkFn = $compile(tElement.contents());
tElement.empty();
return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) {
if (!$transclude) {
throw ngTranscludeMinErr('orphan', 'Illegal use of ngTransclude directive in the template! ' + 'No parent directive that requires a transclusion found. ' + 'Element: {0}', startingTag($element));
}
// If the attribute is of the form: `ng-transclude="ng-transclude"` then treat it like the default
if ($attrs.ngTransclude === $attrs.$attr.ngTransclude) {
$attrs.ngTransclude = '';
}
var slotName = $attrs.ngTransclude || $attrs.ngTranscludeSlot;
// If the slot is required and no transclusion content is provided then this call will throw an error
$transclude(ngTranscludeCloneAttachFn, null, slotName);
// If the slot is optional and no transclusion content is provided then use the fallback content
if (slotName && !$transclude.isSlotFilled(slotName)) {
useFallbackContent();
}
function ngTranscludeCloneAttachFn(clone, transcludedScope) {
if (clone.length && notWhitespace(clone)) {
$element.append(clone);
} else {
useFallbackContent();
// There is nothing linked against the transcluded scope since no content was available,
// so it should be safe to clean up the generated scope.
transcludedScope.$destroy();
}
}
function useFallbackContent() {
// Since this is the fallback content rather than the transcluded content,
// we link against the scope of this directive rather than the transcluded scope
fallbackLinkFn($scope, function (clone) {
$element.append(clone);
});
}
function notWhitespace(nodes) {
for (var i = 0, ii = nodes.length; i < ii; i++) {
var node = nodes[i];
if (node.nodeType !== NODE_TYPE_TEXT || node.nodeValue.trim()) {
return true;
}
}
}
};
}
};
}];
/**
* @ngdoc directive
* @name script
* @restrict E
*
* @description
* Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
* template can be used by {@link ng.directive:ngInclude `ngInclude`},
* {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
* `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
* assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
*
* @param {string} type Must be set to `'text/ng-template'`.
* @param {string} id Cache name of the template.
*
* @example
<example name="script-tag">
<file name="index.html">
<script type="text/ng-template" id="/tpl.html">
Content of the template.
</script>
<a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
<div id="tpl-content" ng-include src="currentTpl"></div>
</file>
<file name="protractor.js" type="protractor">
it('should load template defined inside script tag', function() {
element(by.css('#tpl-link')).click();
expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);
});
</file>
</example>
*/
var scriptDirective = ['$templateCache', function ($templateCache) {
return {
restrict: 'E',
terminal: true,
compile: function compile(element, attr) {
if (attr.type === 'text/ng-template') {
var templateUrl = attr.id,
text = element[0].text;
$templateCache.put(templateUrl, text);
}
}
};
}];
/* exported selectDirective, optionDirective */
var noopNgModelController = { $setViewValue: noop, $render: noop };
function setOptionSelectedStatus(optionEl, value) {
optionEl.prop('selected', value);
/**
* When unselecting an option, setting the property to null / false should be enough
* However, screenreaders might react to the selected attribute instead, see
* https://github.com/angular/angular.js/issues/14419
* Note: "selected" is a boolean attr and will be removed when the "value" arg in attr() is false
* or null
*/
optionEl.attr('selected', value);
}
/**
* @ngdoc type
* @name select.SelectController
*
* @description
* The controller for the {@link ng.select select} directive. The controller exposes
* a few utility methods that can be used to augment the behavior of a regular or an
* {@link ng.ngOptions ngOptions} select element.
*
* @example
* ### Set a custom error when the unknown option is selected
*
* This example sets a custom error "unknownValue" on the ngModelController
* when the select element's unknown option is selected, i.e. when the model is set to a value
* that is not matched by any option.
*
* <example name="select-unknown-value-error" module="staticSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="testSelect"> Single select: </label><br>
* <select name="testSelect" ng-model="selected" unknown-value-error>
* <option value="option-1">Option 1</option>
* <option value="option-2">Option 2</option>
* </select><br>
* <span class="error" ng-if="myForm.testSelect.$error.unknownValue">
* Error: The current model doesn't match any option</span><br>
*
* <button ng-click="forceUnknownOption()">Force unknown option</button><br>
* </form>
* </div>
* </file>
* <file name="app.js">
* angular.module('staticSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.selected = null;
*
* $scope.forceUnknownOption = function() {
* $scope.selected = 'nonsense';
* };
* }])
* .directive('unknownValueError', function() {
* return {
* require: ['ngModel', 'select'],
* link: function(scope, element, attrs, ctrls) {
* var ngModelCtrl = ctrls[0];
* var selectCtrl = ctrls[1];
*
* ngModelCtrl.$validators.unknownValue = function(modelValue, viewValue) {
* if (selectCtrl.$isUnknownOptionSelected()) {
* return false;
* }
*
* return true;
* };
* }
*
* };
* });
* </file>
*</example>
*
*
* @example
* ### Set the "required" error when the unknown option is selected.
*
* By default, the "required" error on the ngModelController is only set on a required select
* when the empty option is selected. This example adds a custom directive that also sets the
* error when the unknown option is selected.
*
* <example name="select-unknown-value-required" module="staticSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="testSelect"> Select: </label><br>
* <select name="testSelect" ng-model="selected" required unknown-value-required>
* <option value="option-1">Option 1</option>
* <option value="option-2">Option 2</option>
* </select><br>
* <span class="error" ng-if="myForm.testSelect.$error.required">Error: Please select a value</span><br>
*
* <button ng-click="forceUnknownOption()">Force unknown option</button><br>
* </form>
* </div>
* </file>
* <file name="app.js">
* angular.module('staticSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.selected = null;
*
* $scope.forceUnknownOption = function() {
* $scope.selected = 'nonsense';
* };
* }])
* .directive('unknownValueRequired', function() {
* return {
* priority: 1, // This directive must run after the required directive has added its validator
* require: ['ngModel', 'select'],
* link: function(scope, element, attrs, ctrls) {
* var ngModelCtrl = ctrls[0];
* var selectCtrl = ctrls[1];
*
* var originalRequiredValidator = ngModelCtrl.$validators.required;
*
* ngModelCtrl.$validators.required = function() {
* if (attrs.required && selectCtrl.$isUnknownOptionSelected()) {
* return false;
* }
*
* return originalRequiredValidator.apply(this, arguments);
* };
* }
* };
* });
* </file>
* <file name="protractor.js" type="protractor">
* it('should show the error message when the unknown option is selected', function() {
var error = element(by.className('error'));
expect(error.getText()).toBe('Error: Please select a value');
element(by.cssContainingText('option', 'Option 1')).click();
expect(error.isPresent()).toBe(false);
element(by.tagName('button')).click();
expect(error.getText()).toBe('Error: Please select a value');
});
* </file>
*</example>
*
*
*/
var SelectController = ['$element', '$scope', /** @this */function ($element, $scope) {
var self = this,
optionsMap = new NgMap();
self.selectValueMap = {}; // Keys are the hashed values, values the original values
// If the ngModel doesn't get provided then provide a dummy noop version to prevent errors
self.ngModelCtrl = noopNgModelController;
self.multiple = false;
// The "unknown" option is one that is prepended to the list if the viewValue
// does not match any of the options. When it is rendered the value of the unknown
// option is '? XXX ?' where XXX is the hashKey of the value that is not known.
//
// Support: IE 9 only
// We can't just jqLite('<option>') since jqLite is not smart enough
// to create it in <select> and IE barfs otherwise.
self.unknownOption = jqLite(window.document.createElement('option'));
// The empty option is an option with the value '' that the application developer can
// provide inside the select. It is always selectable and indicates that a "null" selection has
// been made by the user.
// If the select has an empty option, and the model of the select is set to "undefined" or "null",
// the empty option is selected.
// If the model is set to a different unmatched value, the unknown option is rendered and
// selected, i.e both are present, because a "null" selection and an unknown value are different.
self.hasEmptyOption = false;
self.emptyOption = undefined;
self.renderUnknownOption = function (val) {
var unknownVal = self.generateUnknownOptionValue(val);
self.unknownOption.val(unknownVal);
$element.prepend(self.unknownOption);
setOptionSelectedStatus(self.unknownOption, true);
$element.val(unknownVal);
};
self.updateUnknownOption = function (val) {
var unknownVal = self.generateUnknownOptionValue(val);
self.unknownOption.val(unknownVal);
setOptionSelectedStatus(self.unknownOption, true);
$element.val(unknownVal);
};
self.generateUnknownOptionValue = function (val) {
return '? ' + hashKey(val) + ' ?';
};
self.removeUnknownOption = function () {
if (self.unknownOption.parent()) self.unknownOption.remove();
};
self.selectEmptyOption = function () {
if (self.emptyOption) {
$element.val('');
setOptionSelectedStatus(self.emptyOption, true);
}
};
self.unselectEmptyOption = function () {
if (self.hasEmptyOption) {
setOptionSelectedStatus(self.emptyOption, false);
}
};
$scope.$on('$destroy', function () {
// disable unknown option so that we don't do work when the whole select is being destroyed
self.renderUnknownOption = noop;
});
// Read the value of the select control, the implementation of this changes depending
// upon whether the select can have multiple values and whether ngOptions is at work.
self.readValue = function readSingleValue() {
var val = $element.val();
// ngValue added option values are stored in the selectValueMap, normal interpolations are not
var realVal = val in self.selectValueMap ? self.selectValueMap[val] : val;
if (self.hasOption(realVal)) {
return realVal;
}
return null;
};
// Write the value to the select control, the implementation of this changes depending
// upon whether the select can have multiple values and whether ngOptions is at work.
self.writeValue = function writeSingleValue(value) {
// Make sure to remove the selected attribute from the previously selected option
// Otherwise, screen readers might get confused
var currentlySelectedOption = $element[0].options[$element[0].selectedIndex];
if (currentlySelectedOption) setOptionSelectedStatus(jqLite(currentlySelectedOption), false);
if (self.hasOption(value)) {
self.removeUnknownOption();
var hashedVal = hashKey(value);
$element.val(hashedVal in self.selectValueMap ? hashedVal : value);
// Set selected attribute and property on selected option for screen readers
var selectedOption = $element[0].options[$element[0].selectedIndex];
setOptionSelectedStatus(jqLite(selectedOption), true);
} else {
self.selectUnknownOrEmptyOption(value);
}
};
// Tell the select control that an option, with the given value, has been added
self.addOption = function (value, element) {
// Skip comment nodes, as they only pollute the `optionsMap`
if (element[0].nodeType === NODE_TYPE_COMMENT) return;
assertNotHasOwnProperty(value, '"option value"');
if (value === '') {
self.hasEmptyOption = true;
self.emptyOption = element;
}
var count = optionsMap.get(value) || 0;
optionsMap.set(value, count + 1);
// Only render at the end of a digest. This improves render performance when many options
// are added during a digest and ensures all relevant options are correctly marked as selected
scheduleRender();
};
// Tell the select control that an option, with the given value, has been removed
self.removeOption = function (value) {
var count = optionsMap.get(value);
if (count) {
if (count === 1) {
optionsMap.delete(value);
if (value === '') {
self.hasEmptyOption = false;
self.emptyOption = undefined;
}
} else {
optionsMap.set(value, count - 1);
}
}
};
// Check whether the select control has an option matching the given value
self.hasOption = function (value) {
return !!optionsMap.get(value);
};
/**
* @ngdoc method
* @name select.SelectController#$hasEmptyOption
*
* @description
*
* Returns `true` if the select element currently has an empty option
* element, i.e. an option that signifies that the select is empty / the selection is null.
*
*/
self.$hasEmptyOption = function () {
return self.hasEmptyOption;
};
/**
* @ngdoc method
* @name select.SelectController#$isUnknownOptionSelected
*
* @description
*
* Returns `true` if the select element's unknown option is selected. The unknown option is added
* and automatically selected whenever the select model doesn't match any option.
*
*/
self.$isUnknownOptionSelected = function () {
// Presence of the unknown option means it is selected
return $element[0].options[0] === self.unknownOption[0];
};
/**
* @ngdoc method
* @name select.SelectController#$isEmptyOptionSelected
*
* @description
*
* Returns `true` if the select element has an empty option and this empty option is currently
* selected. Returns `false` if the select element has no empty option or it is not selected.
*
*/
self.$isEmptyOptionSelected = function () {
return self.hasEmptyOption && $element[0].options[$element[0].selectedIndex] === self.emptyOption[0];
};
self.selectUnknownOrEmptyOption = function (value) {
if (value == null && self.emptyOption) {
self.removeUnknownOption();
self.selectEmptyOption();
} else if (self.unknownOption.parent().length) {
self.updateUnknownOption(value);
} else {
self.renderUnknownOption(value);
}
};
var renderScheduled = false;
function scheduleRender() {
if (renderScheduled) return;
renderScheduled = true;
$scope.$$postDigest(function () {
renderScheduled = false;
self.ngModelCtrl.$render();
});
}
var updateScheduled = false;
function scheduleViewValueUpdate(renderAfter) {
if (updateScheduled) return;
updateScheduled = true;
$scope.$$postDigest(function () {
if ($scope.$$destroyed) return;
updateScheduled = false;
self.ngModelCtrl.$setViewValue(self.readValue());
if (renderAfter) self.ngModelCtrl.$render();
});
}
self.registerOption = function (optionScope, optionElement, optionAttrs, interpolateValueFn, interpolateTextFn) {
if (optionAttrs.$attr.ngValue) {
// The value attribute is set by ngValue
var oldVal,
hashedVal = NaN;
optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {
var removal;
var previouslySelected = optionElement.prop('selected');
if (isDefined(hashedVal)) {
self.removeOption(oldVal);
delete self.selectValueMap[hashedVal];
removal = true;
}
hashedVal = hashKey(newVal);
oldVal = newVal;
self.selectValueMap[hashedVal] = newVal;
self.addOption(newVal, optionElement);
// Set the attribute directly instead of using optionAttrs.$set - this stops the observer
// from firing a second time. Other $observers on value will also get the result of the
// ngValue expression, not the hashed value
optionElement.attr('value', hashedVal);
if (removal && previouslySelected) {
scheduleViewValueUpdate();
}
});
} else if (interpolateValueFn) {
// The value attribute is interpolated
optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {
// This method is overwritten in ngOptions and has side-effects!
self.readValue();
var removal;
var previouslySelected = optionElement.prop('selected');
if (isDefined(oldVal)) {
self.removeOption(oldVal);
removal = true;
}
oldVal = newVal;
self.addOption(newVal, optionElement);
if (removal && previouslySelected) {
scheduleViewValueUpdate();
}
});
} else if (interpolateTextFn) {
// The text content is interpolated
optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {
optionAttrs.$set('value', newVal);
var previouslySelected = optionElement.prop('selected');
if (oldVal !== newVal) {
self.removeOption(oldVal);
}
self.addOption(newVal, optionElement);
if (oldVal && previouslySelected) {
scheduleViewValueUpdate();
}
});
} else {
// The value attribute is static
self.addOption(optionAttrs.value, optionElement);
}
optionAttrs.$observe('disabled', function (newVal) {
// Since model updates will also select disabled options (like ngOptions),
// we only have to handle options becoming disabled, not enabled
if (newVal === 'true' || newVal && optionElement.prop('selected')) {
if (self.multiple) {
scheduleViewValueUpdate(true);
} else {
self.ngModelCtrl.$setViewValue(null);
self.ngModelCtrl.$render();
}
}
});
optionElement.on('$destroy', function () {
var currentValue = self.readValue();
var removeValue = optionAttrs.value;
self.removeOption(removeValue);
scheduleRender();
if (self.multiple && currentValue && currentValue.indexOf(removeValue) !== -1 || currentValue === removeValue) {
// When multiple (selected) options are destroyed at the same time, we don't want
// to run a model update for each of them. Instead, run a single update in the $$postDigest
scheduleViewValueUpdate(true);
}
});
};
}];
/**
* @ngdoc directive
* @name select
* @restrict E
*
* @description
* HTML `select` element with angular data-binding.
*
* The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding
* between the scope and the `<select>` control (including setting default values).
* It also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or
* {@link ngOptions `ngOptions`} directives.
*
* When an item in the `<select>` menu is selected, the value of the selected option will be bound
* to the model identified by the `ngModel` directive. With static or repeated options, this is
* the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.
* Value and textContent can be interpolated.
*
* The {@link select.SelectController select controller} exposes utility functions that can be used
* to manipulate the select's behavior.
*
* ## Matching model and option values
*
* In general, the match between the model and an option is evaluated by strictly comparing the model
* value against the value of the available options.
*
* If you are setting the option value with the option's `value` attribute, or textContent, the
* value will always be a `string` which means that the model value must also be a string.
* Otherwise the `select` directive cannot match them correctly.
*
* To bind the model to a non-string value, you can use one of the following strategies:
* - the {@link ng.ngOptions `ngOptions`} directive
* ({@link ng.select#using-select-with-ngoptions-and-setting-a-default-value})
* - the {@link ng.ngValue `ngValue`} directive, which allows arbitrary expressions to be
* option values ({@link ng.select#using-ngvalue-to-bind-the-model-to-an-array-of-objects Example})
* - model $parsers / $formatters to convert the string value
* ({@link ng.select#binding-select-to-a-non-string-value-via-ngmodel-parsing-formatting Example})
*
* If the viewValue of `ngModel` does not match any of the options, then the control
* will automatically add an "unknown" option, which it then removes when the mismatch is resolved.
*
* Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
* be nested into the `<select>` element. This element will then represent the `null` or "not selected"
* option. See example below for demonstration.
*
* ## Choosing between `ngRepeat` and `ngOptions`
*
* In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions
* ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits:
* - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
* comprehension expression
* - reduced memory consumption by not creating a new scope for each repeated instance
* - increased render speed by creating the options in a documentFragment instead of individually
*
* Specifically, select with repeated options slows down significantly starting at 2000 options in
* Chrome and Internet Explorer / Edge.
*
*
* @param {string} ngModel Assignable angular expression to data-bind to.
* @param {string=} name Property name of the form under which the control is published.
* @param {string=} multiple Allows multiple options to be selected. The selected values will be
* bound to the model as an array.
* @param {string=} required Sets `required` validation error key if the value is not entered.
* @param {string=} ngRequired Adds required attribute and required validation constraint to
* the element when the ngRequired expression evaluates to true. Use ngRequired instead of required
* when you want to data-bind to the required attribute.
* @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user
* interaction with the select element.
* @param {string=} ngOptions sets the options that the select is populated with and defines what is
* set on the model on selection. See {@link ngOptions `ngOptions`}.
* @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
* {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
*
*
* @knownIssue
*
* In Firefox, the select model is only updated when the select element is blurred. For example,
* when switching between options with the keyboard, the select model is only set to the
* currently selected option when the select is blurred, e.g via tab key or clicking the mouse
* outside the select.
*
* This is due to an ambiguity in the select element specification. See the
* [issue on the Firefox bug tracker](https://bugzilla.mozilla.org/show_bug.cgi?id=126379)
* for more information, and this
* [Github comment for a workaround](https://github.com/angular/angular.js/issues/9134#issuecomment-130800488)
*
* @example
* ### Simple `select` elements with static options
*
* <example name="static-select" module="staticSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="singleSelect"> Single select: </label><br>
* <select name="singleSelect" ng-model="data.singleSelect">
* <option value="option-1">Option 1</option>
* <option value="option-2">Option 2</option>
* </select><br>
*
* <label for="singleSelect"> Single select with "not selected" option and dynamic option values: </label><br>
* <select name="singleSelect" id="singleSelect" ng-model="data.singleSelect">
* <option value="">---Please select---</option> <!-- not selected / blank option -->
* <option value="{{data.option1}}">Option 1</option> <!-- interpolation -->
* <option value="option-2">Option 2</option>
* </select><br>
* <button ng-click="forceUnknownOption()">Force unknown option</button><br>
* <tt>singleSelect = {{data.singleSelect}}</tt>
*
* <hr>
* <label for="multipleSelect"> Multiple select: </label><br>
* <select name="multipleSelect" id="multipleSelect" ng-model="data.multipleSelect" multiple>
* <option value="option-1">Option 1</option>
* <option value="option-2">Option 2</option>
* <option value="option-3">Option 3</option>
* </select><br>
* <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>
* </form>
* </div>
* </file>
* <file name="app.js">
* angular.module('staticSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.data = {
* singleSelect: null,
* multipleSelect: [],
* option1: 'option-1'
* };
*
* $scope.forceUnknownOption = function() {
* $scope.data.singleSelect = 'nonsense';
* };
* }]);
* </file>
*</example>
*
* @example
* ### Using `ngRepeat` to generate `select` options
* <example name="select-ngrepeat" module="ngrepeatSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="repeatSelect"> Repeat select: </label>
* <select name="repeatSelect" id="repeatSelect" ng-model="data.model">
* <option ng-repeat="option in data.availableOptions" value="{{option.id}}">{{option.name}}</option>
* </select>
* </form>
* <hr>
* <tt>model = {{data.model}}</tt><br/>
* </div>
* </file>
* <file name="app.js">
* angular.module('ngrepeatSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.data = {
* model: null,
* availableOptions: [
* {id: '1', name: 'Option A'},
* {id: '2', name: 'Option B'},
* {id: '3', name: 'Option C'}
* ]
* };
* }]);
* </file>
*</example>
*
* @example
* ### Using `ngValue` to bind the model to an array of objects
* <example name="select-ngvalue" module="ngvalueSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="ngvalueselect"> ngvalue select: </label>
* <select size="6" name="ngvalueselect" ng-model="data.model" multiple>
* <option ng-repeat="option in data.availableOptions" ng-value="option.value">{{option.name}}</option>
* </select>
* </form>
* <hr>
* <pre>model = {{data.model | json}}</pre><br/>
* </div>
* </file>
* <file name="app.js">
* angular.module('ngvalueSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.data = {
* model: null,
* availableOptions: [
{value: 'myString', name: 'string'},
{value: 1, name: 'integer'},
{value: true, name: 'boolean'},
{value: null, name: 'null'},
{value: {prop: 'value'}, name: 'object'},
{value: ['a'], name: 'array'}
* ]
* };
* }]);
* </file>
*</example>
*
* @example
* ### Using `select` with `ngOptions` and setting a default value
* See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.
*
* <example name="select-with-default-values" module="defaultValueSelect">
* <file name="index.html">
* <div ng-controller="ExampleController">
* <form name="myForm">
* <label for="mySelect">Make a choice:</label>
* <select name="mySelect" id="mySelect"
* ng-options="option.name for option in data.availableOptions track by option.id"
* ng-model="data.selectedOption"></select>
* </form>
* <hr>
* <tt>option = {{data.selectedOption}}</tt><br/>
* </div>
* </file>
* <file name="app.js">
* angular.module('defaultValueSelect', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.data = {
* availableOptions: [
* {id: '1', name: 'Option A'},
* {id: '2', name: 'Option B'},
* {id: '3', name: 'Option C'}
* ],
* selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui
* };
* }]);
* </file>
*</example>
*
* @example
* ### Binding `select` to a non-string value via `ngModel` parsing / formatting
*
* <example name="select-with-non-string-options" module="nonStringSelect">
* <file name="index.html">
* <select ng-model="model.id" convert-to-number>
* <option value="0">Zero</option>
* <option value="1">One</option>
* <option value="2">Two</option>
* </select>
* {{ model }}
* </file>
* <file name="app.js">
* angular.module('nonStringSelect', [])
* .run(function($rootScope) {
* $rootScope.model = { id: 2 };
* })
* .directive('convertToNumber', function() {
* return {
* require: 'ngModel',
* link: function(scope, element, attrs, ngModel) {
* ngModel.$parsers.push(function(val) {
* return parseInt(val, 10);
* });
* ngModel.$formatters.push(function(val) {
* return '' + val;
* });
* }
* };
* });
* </file>
* <file name="protractor.js" type="protractor">
* it('should initialize to model', function() {
* expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');
* });
* </file>
* </example>
*
*/
var selectDirective = function selectDirective() {
return {
restrict: 'E',
require: ['select', '?ngModel'],
controller: SelectController,
priority: 1,
link: {
pre: selectPreLink,
post: selectPostLink
}
};
function selectPreLink(scope, element, attr, ctrls) {
var selectCtrl = ctrls[0];
var ngModelCtrl = ctrls[1];
// if ngModel is not defined, we don't need to do anything but set the registerOption
// function to noop, so options don't get added internally
if (!ngModelCtrl) {
selectCtrl.registerOption = noop;
return;
}
selectCtrl.ngModelCtrl = ngModelCtrl;
// When the selected item(s) changes we delegate getting the value of the select control
// to the `readValue` method, which can be changed if the select can have multiple
// selected values or if the options are being generated by `ngOptions`
element.on('change', function () {
selectCtrl.removeUnknownOption();
scope.$apply(function () {
ngModelCtrl.$setViewValue(selectCtrl.readValue());
});
});
// If the select allows multiple values then we need to modify how we read and write
// values from and to the control; also what it means for the value to be empty and
// we have to add an extra watch since ngModel doesn't work well with arrays - it
// doesn't trigger rendering if only an item in the array changes.
if (attr.multiple) {
selectCtrl.multiple = true;
// Read value now needs to check each option to see if it is selected
selectCtrl.readValue = function readMultipleValue() {
var array = [];
forEach(element.find('option'), function (option) {
if (option.selected && !option.disabled) {
var val = option.value;
array.push(val in selectCtrl.selectValueMap ? selectCtrl.selectValueMap[val] : val);
}
});
return array;
};
// Write value now needs to set the selected property of each matching option
selectCtrl.writeValue = function writeMultipleValue(value) {
forEach(element.find('option'), function (option) {
var shouldBeSelected = !!value && (includes(value, option.value) || includes(value, selectCtrl.selectValueMap[option.value]));
var currentlySelected = option.selected;
// Support: IE 9-11 only, Edge 12-15+
// In IE and Edge adding options to the selection via shift+click/UP/DOWN
// will de-select already selected options if "selected" on those options was set
// more than once (i.e. when the options were already selected)
// So we only modify the selected property if necessary.
// Note: this behavior cannot be replicated via unit tests because it only shows in the
// actual user interface.
if (shouldBeSelected !== currentlySelected) {
setOptionSelectedStatus(jqLite(option), shouldBeSelected);
}
});
};
// we have to do it on each watch since ngModel watches reference, but
// we need to work of an array, so we need to see if anything was inserted/removed
var lastView,
lastViewRef = NaN;
scope.$watch(function selectMultipleWatch() {
if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {
lastView = shallowCopy(ngModelCtrl.$viewValue);
ngModelCtrl.$render();
}
lastViewRef = ngModelCtrl.$viewValue;
});
// If we are a multiple select then value is now a collection
// so the meaning of $isEmpty changes
ngModelCtrl.$isEmpty = function (value) {
return !value || value.length === 0;
};
}
}
function selectPostLink(scope, element, attrs, ctrls) {
// if ngModel is not defined, we don't need to do anything
var ngModelCtrl = ctrls[1];
if (!ngModelCtrl) return;
var selectCtrl = ctrls[0];
// We delegate rendering to the `writeValue` method, which can be changed
// if the select can have multiple selected values or if the options are being
// generated by `ngOptions`.
// This must be done in the postLink fn to prevent $render to be called before
// all nodes have been linked correctly.
ngModelCtrl.$render = function () {
selectCtrl.writeValue(ngModelCtrl.$viewValue);
};
}
};
// The option directive is purely designed to communicate the existence (or lack of)
// of dynamically created (and destroyed) option elements to their containing select
// directive via its controller.
var optionDirective = ['$interpolate', function ($interpolate) {
return {
restrict: 'E',
priority: 100,
compile: function compile(element, attr) {
var interpolateValueFn, interpolateTextFn;
if (isDefined(attr.ngValue)) {
// Will be handled by registerOption
} else if (isDefined(attr.value)) {
// If the value attribute is defined, check if it contains an interpolation
interpolateValueFn = $interpolate(attr.value, true);
} else {
// If the value attribute is not defined then we fall back to the
// text content of the option element, which may be interpolated
interpolateTextFn = $interpolate(element.text(), true);
if (!interpolateTextFn) {
attr.$set('value', element.text());
}
}
return function (scope, element, attr) {
// This is an optimization over using ^^ since we don't want to have to search
// all the way to the root of the DOM for every single option element
var selectCtrlName = '$selectController',
parent = element.parent(),
selectCtrl = parent.data(selectCtrlName) || parent.parent().data(selectCtrlName); // in case we are in optgroup
if (selectCtrl) {
selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn);
}
};
}
};
}];
/**
* @ngdoc directive
* @name ngRequired
* @restrict A
*
* @param {expression} ngRequired AngularJS expression. If it evaluates to `true`, it sets the
* `required` attribute to the element and adds the `required`
* {@link ngModel.NgModelController#$validators `validator`}.
*
* @description
*
* ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
* It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
* applied to custom controls.
*
* The directive sets the `required` attribute on the element if the Angular expression inside
* `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
* cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
* for more info.
*
* The validator will set the `required` error key to true if the `required` attribute is set and
* calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
* {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
* `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
* custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
*
* @example
* <example name="ngRequiredDirective" module="ngRequiredExample">
* <file name="index.html">
* <script>
* angular.module('ngRequiredExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.required = true;
* }]);
* </script>
* <div ng-controller="ExampleController">
* <form name="form">
* <label for="required">Toggle required: </label>
* <input type="checkbox" ng-model="required" id="required" />
* <br>
* <label for="input">This input must be filled if `required` is true: </label>
* <input type="text" ng-model="model" id="input" name="input" ng-required="required" /><br>
* <hr>
* required error set? = <code>{{form.input.$error.required}}</code><br>
* model = <code>{{model}}</code>
* </form>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
var required = element(by.binding('form.input.$error.required'));
var model = element(by.binding('model'));
var input = element(by.id('input'));
it('should set the required error', function() {
expect(required.getText()).toContain('true');
input.sendKeys('123');
expect(required.getText()).not.toContain('true');
expect(model.getText()).toContain('123');
});
* </file>
* </example>
*/
var requiredDirective = function requiredDirective() {
return {
restrict: 'A',
require: '?ngModel',
link: function link(scope, elm, attr, ctrl) {
if (!ctrl) return;
attr.required = true; // force truthy in case we are on non input element
ctrl.$validators.required = function (modelValue, viewValue) {
return !attr.required || !ctrl.$isEmpty(viewValue);
};
attr.$observe('required', function () {
ctrl.$validate();
});
}
};
};
/**
* @ngdoc directive
* @name ngPattern
* @restrict A
*
* @param {expression|RegExp} ngPattern AngularJS expression that must evaluate to a `RegExp` or a `String`
* parsable into a `RegExp`, or a `RegExp` literal. See above for
* more details.
*
* @description
*
* ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
*
* The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
* does not match a RegExp which is obtained from the `ngPattern` attribute value:
* - the value is an AngularJS expression:
* - If the expression evaluates to a RegExp object, then this is used directly.
* - If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
* in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
* - If the value is a RegExp literal, e.g. `ngPattern="/^\d+$/"`, it is used directly.
*
* <div class="alert alert-info">
* **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
* start at the index of the last search's match, thus not taking the whole input value into
* account.
* </div>
*
* <div class="alert alert-info">
* **Note:** This directive is also added when the plain `pattern` attribute is used, with two
* differences:
* <ol>
* <li>
* `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
* not available.
* </li>
* <li>
* The `ngPattern` attribute must be an expression, while the `pattern` value must be
* interpolated.
* </li>
* </ol>
* </div>
*
* @example
* <example name="ngPatternDirective" module="ngPatternExample">
* <file name="index.html">
* <script>
* angular.module('ngPatternExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.regex = '\\d+';
* }]);
* </script>
* <div ng-controller="ExampleController">
* <form name="form">
* <label for="regex">Set a pattern (regex string): </label>
* <input type="text" ng-model="regex" id="regex" />
* <br>
* <label for="input">This input is restricted by the current pattern: </label>
* <input type="text" ng-model="model" id="input" name="input" ng-pattern="regex" /><br>
* <hr>
* input valid? = <code>{{form.input.$valid}}</code><br>
* model = <code>{{model}}</code>
* </form>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
var model = element(by.binding('model'));
var input = element(by.id('input'));
it('should validate the input with the default pattern', function() {
input.sendKeys('aaa');
expect(model.getText()).not.toContain('aaa');
input.clear().then(function() {
input.sendKeys('123');
expect(model.getText()).toContain('123');
});
});
* </file>
* </example>
*/
var patternDirective = function patternDirective() {
return {
restrict: 'A',
require: '?ngModel',
link: function link(scope, elm, attr, ctrl) {
if (!ctrl) return;
var regexp,
patternExp = attr.ngPattern || attr.pattern;
attr.$observe('pattern', function (regex) {
if (isString(regex) && regex.length > 0) {
regex = new RegExp('^' + regex + '$');
}
if (regex && !regex.test) {
throw minErr('ngPattern')('noregexp', 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp, regex, startingTag(elm));
}
regexp = regex || undefined;
ctrl.$validate();
});
ctrl.$validators.pattern = function (modelValue, viewValue) {
// HTML5 pattern constraint validates the input value, so we validate the viewValue
return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);
};
}
};
};
/**
* @ngdoc directive
* @name ngMaxlength
* @restrict A
*
* @param {expression} ngMaxlength AngularJS expression that must evaluate to a `Number` or `String`
* parsable into a `Number`. Used as value for the `maxlength`
* {@link ngModel.NgModelController#$validators validator}.
*
* @description
*
* ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
*
* The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
* is longer than the integer obtained by evaluating the Angular expression given in the
* `ngMaxlength` attribute value.
*
* <div class="alert alert-info">
* **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
* differences:
* <ol>
* <li>
* `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
* validation is not available.
* </li>
* <li>
* The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
* interpolated.
* </li>
* </ol>
* </div>
*
* @example
* <example name="ngMaxlengthDirective" module="ngMaxlengthExample">
* <file name="index.html">
* <script>
* angular.module('ngMaxlengthExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.maxlength = 5;
* }]);
* </script>
* <div ng-controller="ExampleController">
* <form name="form">
* <label for="maxlength">Set a maxlength: </label>
* <input type="number" ng-model="maxlength" id="maxlength" />
* <br>
* <label for="input">This input is restricted by the current maxlength: </label>
* <input type="text" ng-model="model" id="input" name="input" ng-maxlength="maxlength" /><br>
* <hr>
* input valid? = <code>{{form.input.$valid}}</code><br>
* model = <code>{{model}}</code>
* </form>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
var model = element(by.binding('model'));
var input = element(by.id('input'));
it('should validate the input with the default maxlength', function() {
input.sendKeys('abcdef');
expect(model.getText()).not.toContain('abcdef');
input.clear().then(function() {
input.sendKeys('abcde');
expect(model.getText()).toContain('abcde');
});
});
* </file>
* </example>
*/
var maxlengthDirective = function maxlengthDirective() {
return {
restrict: 'A',
require: '?ngModel',
link: function link(scope, elm, attr, ctrl) {
if (!ctrl) return;
var maxlength = -1;
attr.$observe('maxlength', function (value) {
var intVal = toInt(value);
maxlength = isNumberNaN(intVal) ? -1 : intVal;
ctrl.$validate();
});
ctrl.$validators.maxlength = function (modelValue, viewValue) {
return maxlength < 0 || ctrl.$isEmpty(viewValue) || viewValue.length <= maxlength;
};
}
};
};
/**
* @ngdoc directive
* @name ngMinlength
* @restrict A
*
* @param {expression} ngMinlength AngularJS expression that must evaluate to a `Number` or `String`
* parsable into a `Number`. Used as value for the `minlength`
* {@link ngModel.NgModelController#$validators validator}.
*
* @description
*
* ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
* It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
*
* The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
* is shorter than the integer obtained by evaluating the Angular expression given in the
* `ngMinlength` attribute value.
*
* <div class="alert alert-info">
* **Note:** This directive is also added when the plain `minlength` attribute is used, with two
* differences:
* <ol>
* <li>
* `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
* validation is not available.
* </li>
* <li>
* The `ngMinlength` value must be an expression, while the `minlength` value must be
* interpolated.
* </li>
* </ol>
* </div>
*
* @example
* <example name="ngMinlengthDirective" module="ngMinlengthExample">
* <file name="index.html">
* <script>
* angular.module('ngMinlengthExample', [])
* .controller('ExampleController', ['$scope', function($scope) {
* $scope.minlength = 3;
* }]);
* </script>
* <div ng-controller="ExampleController">
* <form name="form">
* <label for="minlength">Set a minlength: </label>
* <input type="number" ng-model="minlength" id="minlength" />
* <br>
* <label for="input">This input is restricted by the current minlength: </label>
* <input type="text" ng-model="model" id="input" name="input" ng-minlength="minlength" /><br>
* <hr>
* input valid? = <code>{{form.input.$valid}}</code><br>
* model = <code>{{model}}</code>
* </form>
* </div>
* </file>
* <file name="protractor.js" type="protractor">
var model = element(by.binding('model'));
var input = element(by.id('input'));
it('should validate the input with the default minlength', function() {
input.sendKeys('ab');
expect(model.getText()).not.toContain('ab');
input.sendKeys('abc');
expect(model.getText()).toContain('abc');
});
* </file>
* </example>
*/
var minlengthDirective = function minlengthDirective() {
return {
restrict: 'A',
require: '?ngModel',
link: function link(scope, elm, attr, ctrl) {
if (!ctrl) return;
var minlength = 0;
attr.$observe('minlength', function (value) {
minlength = toInt(value) || 0;
ctrl.$validate();
});
ctrl.$validators.minlength = function (modelValue, viewValue) {
return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;
};
}
};
};
if (window.angular.bootstrap) {
// AngularJS is already loaded, so we can return here...
if (window.console) {
console.log('WARNING: Tried to load angular more than once.');
}
return;
}
// try to bind to jquery now so that one can write jqLite(fn)
// but we will rebind on bootstrap again.
bindJQuery();
publishExternalAPI(angular);
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = { ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other" };
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return i == -1 ? 0 : n.length - i - 1;
}
function getVF(n, opt_precision) {
var v = opt_precision;
if (undefined === v) {
v = Math.min(getDecimals(n), 3);
}
var base = Math.pow(10, v);
var f = (n * base | 0) % base;
return { v: v, f: f };
}
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": ["AM", "PM"],
"DAY": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"ERANAMES": ["Before Christ", "Anno Domini"],
"ERAS": ["BC", "AD"],
"FIRSTDAYOFWEEK": 6,
"MONTH": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
"SHORTDAY": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
"SHORTMONTH": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
"STANDALONEMONTH": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
"WEEKENDRANGE": [5, 6],
"fullDate": "EEEE, MMMM d, y",
"longDate": "MMMM d, y",
"medium": "MMM d, y h:mm:ss a",
"mediumDate": "MMM d, y",
"mediumTime": "h:mm:ss a",
"short": "M/d/yy h:mm a",
"shortDate": "M/d/yy",
"shortTime": "h:mm a"
},
"NUMBER_FORMATS": {
"CURRENCY_SYM": "$",
"DECIMAL_SEP": ".",
"GROUP_SEP": ",",
"PATTERNS": [{
"gSize": 3,
"lgSize": 3,
"maxFrac": 3,
"minFrac": 0,
"minInt": 1,
"negPre": "-",
"negSuf": "",
"posPre": "",
"posSuf": ""
}, {
"gSize": 3,
"lgSize": 3,
"maxFrac": 2,
"minFrac": 2,
"minInt": 1,
"negPre": '-\xA4',
"negSuf": "",
"posPre": '\xA4',
"posSuf": ""
}]
},
"id": "en-us",
"localeID": "en_US",
"pluralCat": function pluralCat(n, opt_precision) {
var i = n | 0;var vf = getVF(n, opt_precision);if (i == 1 && vf.v == 0) {
return PLURAL_CATEGORY.ONE;
}return PLURAL_CATEGORY.OTHER;
}
});
}]);
jqLite(function () {
angularInit(window.document, bootstrap);
});
})(window);
!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');
},{}],141:[function(require,module,exports){
'use strict';
require('./angular');
module.exports = angular;
},{"./angular":140}],142:[function(require,module,exports){
'use strict';
var asn1 = exports;
asn1.bignum = require('bn.js');
asn1.define = require('./asn1/api').define;
asn1.base = require('./asn1/base');
asn1.constants = require('./asn1/constants');
asn1.decoders = require('./asn1/decoders');
asn1.encoders = require('./asn1/encoders');
},{"./asn1/api":143,"./asn1/base":145,"./asn1/constants":149,"./asn1/decoders":151,"./asn1/encoders":154,"bn.js":169}],143:[function(require,module,exports){
'use strict';
var asn1 = require('../asn1');
var inherits = require('inherits');
var api = exports;
api.define = function define(name, body) {
return new Entity(name, body);
};
function Entity(name, body) {
this.name = name;
this.body = body;
this.decoders = {};
this.encoders = {};
};
Entity.prototype._createNamed = function createNamed(base) {
var named;
try {
named = require('vm').runInThisContext('(function ' + this.name + '(entity) {\n' + ' this._initNamed(entity);\n' + '})');
} catch (e) {
named = function named(entity) {
this._initNamed(entity);
};
}
inherits(named, base);
named.prototype._initNamed = function initnamed(entity) {
base.call(this, entity);
};
return new named(this);
};
Entity.prototype._getDecoder = function _getDecoder(enc) {
enc = enc || 'der';
// Lazily create decoder
if (!this.decoders.hasOwnProperty(enc)) this.decoders[enc] = this._createNamed(asn1.decoders[enc]);
return this.decoders[enc];
};
Entity.prototype.decode = function decode(data, enc, options) {
return this._getDecoder(enc).decode(data, options);
};
Entity.prototype._getEncoder = function _getEncoder(enc) {
enc = enc || 'der';
// Lazily create encoder
if (!this.encoders.hasOwnProperty(enc)) this.encoders[enc] = this._createNamed(asn1.encoders[enc]);
return this.encoders[enc];
};
Entity.prototype.encode = function encode(data, enc, /* internal */reporter) {
return this._getEncoder(enc).encode(data, reporter);
};
},{"../asn1":142,"inherits":266,"vm":350}],144:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var inherits = require('inherits');
var Reporter = require('../base').Reporter;
var Buffer = require('buffer').Buffer;
function DecoderBuffer(base, options) {
Reporter.call(this, options);
if (!Buffer.isBuffer(base)) {
this.error('Input not Buffer');
return;
}
this.base = base;
this.offset = 0;
this.length = base.length;
}
inherits(DecoderBuffer, Reporter);
exports.DecoderBuffer = DecoderBuffer;
DecoderBuffer.prototype.save = function save() {
return { offset: this.offset, reporter: Reporter.prototype.save.call(this) };
};
DecoderBuffer.prototype.restore = function restore(save) {
// Return skipped data
var res = new DecoderBuffer(this.base);
res.offset = save.offset;
res.length = this.offset;
this.offset = save.offset;
Reporter.prototype.restore.call(this, save.reporter);
return res;
};
DecoderBuffer.prototype.isEmpty = function isEmpty() {
return this.offset === this.length;
};
DecoderBuffer.prototype.readUInt8 = function readUInt8(fail) {
if (this.offset + 1 <= this.length) return this.base.readUInt8(this.offset++, true);else return this.error(fail || 'DecoderBuffer overrun');
};
DecoderBuffer.prototype.skip = function skip(bytes, fail) {
if (!(this.offset + bytes <= this.length)) return this.error(fail || 'DecoderBuffer overrun');
var res = new DecoderBuffer(this.base);
// Share reporter state
res._reporterState = this._reporterState;
res.offset = this.offset;
res.length = this.offset + bytes;
this.offset += bytes;
return res;
};
DecoderBuffer.prototype.raw = function raw(save) {
return this.base.slice(save ? save.offset : this.offset, this.length);
};
function EncoderBuffer(value, reporter) {
if (Array.isArray(value)) {
this.length = 0;
this.value = value.map(function (item) {
if (!(item instanceof EncoderBuffer)) item = new EncoderBuffer(item, reporter);
this.length += item.length;
return item;
}, this);
} else if (typeof value === 'number') {
if (!(0 <= value && value <= 0xff)) return reporter.error('non-byte EncoderBuffer value');
this.value = value;
this.length = 1;
} else if (typeof value === 'string') {
this.value = value;
this.length = Buffer.byteLength(value);
} else if (Buffer.isBuffer(value)) {
this.value = value;
this.length = value.length;
} else {
return reporter.error('Unsupported type: ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)));
}
}
exports.EncoderBuffer = EncoderBuffer;
EncoderBuffer.prototype.join = function join(out, offset) {
if (!out) out = new Buffer(this.length);
if (!offset) offset = 0;
if (this.length === 0) return out;
if (Array.isArray(this.value)) {
this.value.forEach(function (item) {
item.join(out, offset);
offset += item.length;
});
} else {
if (typeof this.value === 'number') out[offset] = this.value;else if (typeof this.value === 'string') out.write(this.value, offset);else if (Buffer.isBuffer(this.value)) this.value.copy(out, offset);
offset += this.length;
}
return out;
};
},{"../base":145,"buffer":201,"inherits":266}],145:[function(require,module,exports){
'use strict';
var base = exports;
base.Reporter = require('./reporter').Reporter;
base.DecoderBuffer = require('./buffer').DecoderBuffer;
base.EncoderBuffer = require('./buffer').EncoderBuffer;
base.Node = require('./node');
},{"./buffer":144,"./node":146,"./reporter":147}],146:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var Reporter = require('../base').Reporter;
var EncoderBuffer = require('../base').EncoderBuffer;
var DecoderBuffer = require('../base').DecoderBuffer;
var assert = require('minimalistic-assert');
// Supported tags
var tags = ['seq', 'seqof', 'set', 'setof', 'objid', 'bool', 'gentime', 'utctime', 'null_', 'enum', 'int', 'objDesc', 'bitstr', 'bmpstr', 'charstr', 'genstr', 'graphstr', 'ia5str', 'iso646str', 'numstr', 'octstr', 'printstr', 't61str', 'unistr', 'utf8str', 'videostr'];
// Public methods list
var methods = ['key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', 'any', 'contains'].concat(tags);
// Overrided methods list
var overrided = ['_peekTag', '_decodeTag', '_use', '_decodeStr', '_decodeObjid', '_decodeTime', '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', '_encodeNull', '_encodeInt', '_encodeBool'];
function Node(enc, parent) {
var state = {};
this._baseState = state;
state.enc = enc;
state.parent = parent || null;
state.children = null;
// State
state.tag = null;
state.args = null;
state.reverseArgs = null;
state.choice = null;
state.optional = false;
state.any = false;
state.obj = false;
state.use = null;
state.useDecoder = null;
state.key = null;
state['default'] = null;
state.explicit = null;
state.implicit = null;
state.contains = null;
// Should create new instance on each method
if (!state.parent) {
state.children = [];
this._wrap();
}
}
module.exports = Node;
var stateProps = ['enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice', 'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit', 'implicit', 'contains'];
Node.prototype.clone = function clone() {
var state = this._baseState;
var cstate = {};
stateProps.forEach(function (prop) {
cstate[prop] = state[prop];
});
var res = new this.constructor(cstate.parent);
res._baseState = cstate;
return res;
};
Node.prototype._wrap = function wrap() {
var state = this._baseState;
methods.forEach(function (method) {
this[method] = function _wrappedMethod() {
var clone = new this.constructor(this);
state.children.push(clone);
return clone[method].apply(clone, arguments);
};
}, this);
};
Node.prototype._init = function init(body) {
var state = this._baseState;
assert(state.parent === null);
body.call(this);
// Filter children
state.children = state.children.filter(function (child) {
return child._baseState.parent === this;
}, this);
assert.equal(state.children.length, 1, 'Root node can have only one child');
};
Node.prototype._useArgs = function useArgs(args) {
var state = this._baseState;
// Filter children and args
var children = args.filter(function (arg) {
return arg instanceof this.constructor;
}, this);
args = args.filter(function (arg) {
return !(arg instanceof this.constructor);
}, this);
if (children.length !== 0) {
assert(state.children === null);
state.children = children;
// Replace parent to maintain backward link
children.forEach(function (child) {
child._baseState.parent = this;
}, this);
}
if (args.length !== 0) {
assert(state.args === null);
state.args = args;
state.reverseArgs = args.map(function (arg) {
if ((typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) !== 'object' || arg.constructor !== Object) return arg;
var res = {};
Object.keys(arg).forEach(function (key) {
if (key == (key | 0)) key |= 0;
var value = arg[key];
res[value] = key;
});
return res;
});
}
};
//
// Overrided methods
//
overrided.forEach(function (method) {
Node.prototype[method] = function _overrided() {
var state = this._baseState;
throw new Error(method + ' not implemented for encoding: ' + state.enc);
};
});
//
// Public methods
//
tags.forEach(function (tag) {
Node.prototype[tag] = function _tagMethod() {
var state = this._baseState;
var args = Array.prototype.slice.call(arguments);
assert(state.tag === null);
state.tag = tag;
this._useArgs(args);
return this;
};
});
Node.prototype.use = function use(item) {
assert(item);
var state = this._baseState;
assert(state.use === null);
state.use = item;
return this;
};
Node.prototype.optional = function optional() {
var state = this._baseState;
state.optional = true;
return this;
};
Node.prototype.def = function def(val) {
var state = this._baseState;
assert(state['default'] === null);
state['default'] = val;
state.optional = true;
return this;
};
Node.prototype.explicit = function explicit(num) {
var state = this._baseState;
assert(state.explicit === null && state.implicit === null);
state.explicit = num;
return this;
};
Node.prototype.implicit = function implicit(num) {
var state = this._baseState;
assert(state.explicit === null && state.implicit === null);
state.implicit = num;
return this;
};
Node.prototype.obj = function obj() {
var state = this._baseState;
var args = Array.prototype.slice.call(arguments);
state.obj = true;
if (args.length !== 0) this._useArgs(args);
return this;
};
Node.prototype.key = function key(newKey) {
var state = this._baseState;
assert(state.key === null);
state.key = newKey;
return this;
};
Node.prototype.any = function any() {
var state = this._baseState;
state.any = true;
return this;
};
Node.prototype.choice = function choice(obj) {
var state = this._baseState;
assert(state.choice === null);
state.choice = obj;
this._useArgs(Object.keys(obj).map(function (key) {
return obj[key];
}));
return this;
};
Node.prototype.contains = function contains(item) {
var state = this._baseState;
assert(state.use === null);
state.contains = item;
return this;
};
//
// Decoding
//
Node.prototype._decode = function decode(input, options) {
var state = this._baseState;
// Decode root node
if (state.parent === null) return input.wrapResult(state.children[0]._decode(input, options));
var result = state['default'];
var present = true;
var prevKey = null;
if (state.key !== null) prevKey = input.enterKey(state.key);
// Check if tag is there
if (state.optional) {
var tag = null;
if (state.explicit !== null) tag = state.explicit;else if (state.implicit !== null) tag = state.implicit;else if (state.tag !== null) tag = state.tag;
if (tag === null && !state.any) {
// Trial and Error
var save = input.save();
try {
if (state.choice === null) this._decodeGeneric(state.tag, input, options);else this._decodeChoice(input, options);
present = true;
} catch (e) {
present = false;
}
input.restore(save);
} else {
present = this._peekTag(input, tag, state.any);
if (input.isError(present)) return present;
}
}
// Push object on stack
var prevObj;
if (state.obj && present) prevObj = input.enterObject();
if (present) {
// Unwrap explicit values
if (state.explicit !== null) {
var explicit = this._decodeTag(input, state.explicit);
if (input.isError(explicit)) return explicit;
input = explicit;
}
var start = input.offset;
// Unwrap implicit and normal values
if (state.use === null && state.choice === null) {
if (state.any) var save = input.save();
var body = this._decodeTag(input, state.implicit !== null ? state.implicit : state.tag, state.any);
if (input.isError(body)) return body;
if (state.any) result = input.raw(save);else input = body;
}
if (options && options.track && state.tag !== null) options.track(input.path(), start, input.length, 'tagged');
if (options && options.track && state.tag !== null) options.track(input.path(), input.offset, input.length, 'content');
// Select proper method for tag
if (state.any) result = result;else if (state.choice === null) result = this._decodeGeneric(state.tag, input, options);else result = this._decodeChoice(input, options);
if (input.isError(result)) return result;
// Decode children
if (!state.any && state.choice === null && state.children !== null) {
state.children.forEach(function decodeChildren(child) {
// NOTE: We are ignoring errors here, to let parser continue with other
// parts of encoded data
child._decode(input, options);
});
}
// Decode contained/encoded by schema, only in bit or octet strings
if (state.contains && (state.tag === 'octstr' || state.tag === 'bitstr')) {
var data = new DecoderBuffer(result);
result = this._getUse(state.contains, input._reporterState.obj)._decode(data, options);
}
}
// Pop object
if (state.obj && present) result = input.leaveObject(prevObj);
// Set key
if (state.key !== null && (result !== null || present === true)) input.leaveKey(prevKey, state.key, result);else if (prevKey !== null) input.exitKey(prevKey);
return result;
};
Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) {
var state = this._baseState;
if (tag === 'seq' || tag === 'set') return null;
if (tag === 'seqof' || tag === 'setof') return this._decodeList(input, tag, state.args[0], options);else if (/str$/.test(tag)) return this._decodeStr(input, tag, options);else if (tag === 'objid' && state.args) return this._decodeObjid(input, state.args[0], state.args[1], options);else if (tag === 'objid') return this._decodeObjid(input, null, null, options);else if (tag === 'gentime' || tag === 'utctime') return this._decodeTime(input, tag, options);else if (tag === 'null_') return this._decodeNull(input, options);else if (tag === 'bool') return this._decodeBool(input, options);else if (tag === 'objDesc') return this._decodeStr(input, tag, options);else if (tag === 'int' || tag === 'enum') return this._decodeInt(input, state.args && state.args[0], options);
if (state.use !== null) {
return this._getUse(state.use, input._reporterState.obj)._decode(input, options);
} else {
return input.error('unknown tag: ' + tag);
}
};
Node.prototype._getUse = function _getUse(entity, obj) {
var state = this._baseState;
// Create altered use decoder if implicit is set
state.useDecoder = this._use(entity, obj);
assert(state.useDecoder._baseState.parent === null);
state.useDecoder = state.useDecoder._baseState.children[0];
if (state.implicit !== state.useDecoder._baseState.implicit) {
state.useDecoder = state.useDecoder.clone();
state.useDecoder._baseState.implicit = state.implicit;
}
return state.useDecoder;
};
Node.prototype._decodeChoice = function decodeChoice(input, options) {
var state = this._baseState;
var result = null;
var match = false;
Object.keys(state.choice).some(function (key) {
var save = input.save();
var node = state.choice[key];
try {
var value = node._decode(input, options);
if (input.isError(value)) return false;
result = { type: key, value: value };
match = true;
} catch (e) {
input.restore(save);
return false;
}
return true;
}, this);
if (!match) return input.error('Choice not matched');
return result;
};
//
// Encoding
//
Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) {
return new EncoderBuffer(data, this.reporter);
};
Node.prototype._encode = function encode(data, reporter, parent) {
var state = this._baseState;
if (state['default'] !== null && state['default'] === data) return;
var result = this._encodeValue(data, reporter, parent);
if (result === undefined) return;
if (this._skipDefault(result, reporter, parent)) return;
return result;
};
Node.prototype._encodeValue = function encode(data, reporter, parent) {
var state = this._baseState;
// Decode root node
if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter());
var result = null;
// Set reporter to share it with a child class
this.reporter = reporter;
// Check if data is there
if (state.optional && data === undefined) {
if (state['default'] !== null) data = state['default'];else return;
}
// Encode children first
var content = null;
var primitive = false;
if (state.any) {
// Anything that was given is translated to buffer
result = this._createEncoderBuffer(data);
} else if (state.choice) {
result = this._encodeChoice(data, reporter);
} else if (state.contains) {
content = this._getUse(state.contains, parent)._encode(data, reporter);
primitive = true;
} else if (state.children) {
content = state.children.map(function (child) {
if (child._baseState.tag === 'null_') return child._encode(null, reporter, data);
if (child._baseState.key === null) return reporter.error('Child should have a key');
var prevKey = reporter.enterKey(child._baseState.key);
if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) !== 'object') return reporter.error('Child expected, but input is not object');
var res = child._encode(data[child._baseState.key], reporter, data);
reporter.leaveKey(prevKey);
return res;
}, this).filter(function (child) {
return child;
});
content = this._createEncoderBuffer(content);
} else {
if (state.tag === 'seqof' || state.tag === 'setof') {
// TODO(indutny): this should be thrown on DSL level
if (!(state.args && state.args.length === 1)) return reporter.error('Too many args for : ' + state.tag);
if (!Array.isArray(data)) return reporter.error('seqof/setof, but data is not Array');
var child = this.clone();
child._baseState.implicit = null;
content = this._createEncoderBuffer(data.map(function (item) {
var state = this._baseState;
return this._getUse(state.args[0], data)._encode(item, reporter);
}, child));
} else if (state.use !== null) {
result = this._getUse(state.use, parent)._encode(data, reporter);
} else {
content = this._encodePrimitive(state.tag, data);
primitive = true;
}
}
// Encode data itself
var result;
if (!state.any && state.choice === null) {
var tag = state.implicit !== null ? state.implicit : state.tag;
var cls = state.implicit === null ? 'universal' : 'context';
if (tag === null) {
if (state.use === null) reporter.error('Tag could be omitted only for .use()');
} else {
if (state.use === null) result = this._encodeComposite(tag, primitive, cls, content);
}
}
// Wrap in explicit
if (state.explicit !== null) result = this._encodeComposite(state.explicit, false, 'context', result);
return result;
};
Node.prototype._encodeChoice = function encodeChoice(data, reporter) {
var state = this._baseState;
var node = state.choice[data.type];
if (!node) {
assert(false, data.type + ' not found in ' + JSON.stringify(Object.keys(state.choice)));
}
return node._encode(data.value, reporter);
};
Node.prototype._encodePrimitive = function encodePrimitive(tag, data) {
var state = this._baseState;
if (/str$/.test(tag)) return this._encodeStr(data, tag);else if (tag === 'objid' && state.args) return this._encodeObjid(data, state.reverseArgs[0], state.args[1]);else if (tag === 'objid') return this._encodeObjid(data, null, null);else if (tag === 'gentime' || tag === 'utctime') return this._encodeTime(data, tag);else if (tag === 'null_') return this._encodeNull();else if (tag === 'int' || tag === 'enum') return this._encodeInt(data, state.args && state.reverseArgs[0]);else if (tag === 'bool') return this._encodeBool(data);else if (tag === 'objDesc') return this._encodeStr(data, tag);else throw new Error('Unsupported tag: ' + tag);
};
Node.prototype._isNumstr = function isNumstr(str) {
return (/^[0-9 ]*$/.test(str)
);
};
Node.prototype._isPrintstr = function isPrintstr(str) {
return (/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str)
);
};
},{"../base":145,"minimalistic-assert":281}],147:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
function Reporter(options) {
this._reporterState = {
obj: null,
path: [],
options: options || {},
errors: []
};
}
exports.Reporter = Reporter;
Reporter.prototype.isError = function isError(obj) {
return obj instanceof ReporterError;
};
Reporter.prototype.save = function save() {
var state = this._reporterState;
return { obj: state.obj, pathLen: state.path.length };
};
Reporter.prototype.restore = function restore(data) {
var state = this._reporterState;
state.obj = data.obj;
state.path = state.path.slice(0, data.pathLen);
};
Reporter.prototype.enterKey = function enterKey(key) {
return this._reporterState.path.push(key);
};
Reporter.prototype.exitKey = function exitKey(index) {
var state = this._reporterState;
state.path = state.path.slice(0, index - 1);
};
Reporter.prototype.leaveKey = function leaveKey(index, key, value) {
var state = this._reporterState;
this.exitKey(index);
if (state.obj !== null) state.obj[key] = value;
};
Reporter.prototype.path = function path() {
return this._reporterState.path.join('/');
};
Reporter.prototype.enterObject = function enterObject() {
var state = this._reporterState;
var prev = state.obj;
state.obj = {};
return prev;
};
Reporter.prototype.leaveObject = function leaveObject(prev) {
var state = this._reporterState;
var now = state.obj;
state.obj = prev;
return now;
};
Reporter.prototype.error = function error(msg) {
var err;
var state = this._reporterState;
var inherited = msg instanceof ReporterError;
if (inherited) {
err = msg;
} else {
err = new ReporterError(state.path.map(function (elem) {
return '[' + JSON.stringify(elem) + ']';
}).join(''), msg.message || msg, msg.stack);
}
if (!state.options.partial) throw err;
if (!inherited) state.errors.push(err);
return err;
};
Reporter.prototype.wrapResult = function wrapResult(result) {
var state = this._reporterState;
if (!state.options.partial) return result;
return {
result: this.isError(result) ? null : result,
errors: state.errors
};
};
function ReporterError(path, msg) {
this.path = path;
this.rethrow(msg);
};
inherits(ReporterError, Error);
ReporterError.prototype.rethrow = function rethrow(msg) {
this.message = msg + ' at: ' + (this.path || '(shallow)');
if (Error.captureStackTrace) Error.captureStackTrace(this, ReporterError);
if (!this.stack) {
try {
// IE only adds stack when thrown
throw new Error(this.message);
} catch (e) {
this.stack = e.stack;
}
}
return this;
};
},{"inherits":266}],148:[function(require,module,exports){
'use strict';
var constants = require('../constants');
exports.tagClass = {
0: 'universal',
1: 'application',
2: 'context',
3: 'private'
};
exports.tagClassByName = constants._reverse(exports.tagClass);
exports.tag = {
0x00: 'end',
0x01: 'bool',
0x02: 'int',
0x03: 'bitstr',
0x04: 'octstr',
0x05: 'null_',
0x06: 'objid',
0x07: 'objDesc',
0x08: 'external',
0x09: 'real',
0x0a: 'enum',
0x0b: 'embed',
0x0c: 'utf8str',
0x0d: 'relativeOid',
0x10: 'seq',
0x11: 'set',
0x12: 'numstr',
0x13: 'printstr',
0x14: 't61str',
0x15: 'videostr',
0x16: 'ia5str',
0x17: 'utctime',
0x18: 'gentime',
0x19: 'graphstr',
0x1a: 'iso646str',
0x1b: 'genstr',
0x1c: 'unistr',
0x1d: 'charstr',
0x1e: 'bmpstr'
};
exports.tagByName = constants._reverse(exports.tag);
},{"../constants":149}],149:[function(require,module,exports){
'use strict';
var constants = exports;
// Helper
constants._reverse = function reverse(map) {
var res = {};
Object.keys(map).forEach(function (key) {
// Convert key to integer if it is stringified
if ((key | 0) == key) key = key | 0;
var value = map[key];
res[value] = key;
});
return res;
};
constants.der = require('./der');
},{"./der":148}],150:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var asn1 = require('../../asn1');
var base = asn1.base;
var bignum = asn1.bignum;
// Import DER constants
var der = asn1.constants.der;
function DERDecoder(entity) {
this.enc = 'der';
this.name = entity.name;
this.entity = entity;
// Construct base tree
this.tree = new DERNode();
this.tree._init(entity.body);
};
module.exports = DERDecoder;
DERDecoder.prototype.decode = function decode(data, options) {
if (!(data instanceof base.DecoderBuffer)) data = new base.DecoderBuffer(data, options);
return this.tree._decode(data, options);
};
// Tree methods
function DERNode(parent) {
base.Node.call(this, 'der', parent);
}
inherits(DERNode, base.Node);
DERNode.prototype._peekTag = function peekTag(buffer, tag, any) {
if (buffer.isEmpty()) return false;
var state = buffer.save();
var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"');
if (buffer.isError(decodedTag)) return decodedTag;
buffer.restore(state);
return decodedTag.tag === tag || decodedTag.tagStr === tag || decodedTag.tagStr + 'of' === tag || any;
};
DERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) {
var decodedTag = derDecodeTag(buffer, 'Failed to decode tag of "' + tag + '"');
if (buffer.isError(decodedTag)) return decodedTag;
var len = derDecodeLen(buffer, decodedTag.primitive, 'Failed to get length of "' + tag + '"');
// Failure
if (buffer.isError(len)) return len;
if (!any && decodedTag.tag !== tag && decodedTag.tagStr !== tag && decodedTag.tagStr + 'of' !== tag) {
return buffer.error('Failed to match tag: "' + tag + '"');
}
if (decodedTag.primitive || len !== null) return buffer.skip(len, 'Failed to match body of: "' + tag + '"');
// Indefinite length... find END tag
var state = buffer.save();
var res = this._skipUntilEnd(buffer, 'Failed to skip indefinite length body: "' + this.tag + '"');
if (buffer.isError(res)) return res;
len = buffer.offset - state.offset;
buffer.restore(state);
return buffer.skip(len, 'Failed to match body of: "' + tag + '"');
};
DERNode.prototype._skipUntilEnd = function skipUntilEnd(buffer, fail) {
while (true) {
var tag = derDecodeTag(buffer, fail);
if (buffer.isError(tag)) return tag;
var len = derDecodeLen(buffer, tag.primitive, fail);
if (buffer.isError(len)) return len;
var res;
if (tag.primitive || len !== null) res = buffer.skip(len);else res = this._skipUntilEnd(buffer, fail);
// Failure
if (buffer.isError(res)) return res;
if (tag.tagStr === 'end') break;
}
};
DERNode.prototype._decodeList = function decodeList(buffer, tag, decoder, options) {
var result = [];
while (!buffer.isEmpty()) {
var possibleEnd = this._peekTag(buffer, 'end');
if (buffer.isError(possibleEnd)) return possibleEnd;
var res = decoder.decode(buffer, 'der', options);
if (buffer.isError(res) && possibleEnd) break;
result.push(res);
}
return result;
};
DERNode.prototype._decodeStr = function decodeStr(buffer, tag) {
if (tag === 'bitstr') {
var unused = buffer.readUInt8();
if (buffer.isError(unused)) return unused;
return { unused: unused, data: buffer.raw() };
} else if (tag === 'bmpstr') {
var raw = buffer.raw();
if (raw.length % 2 === 1) return buffer.error('Decoding of string type: bmpstr length mismatch');
var str = '';
for (var i = 0; i < raw.length / 2; i++) {
str += String.fromCharCode(raw.readUInt16BE(i * 2));
}
return str;
} else if (tag === 'numstr') {
var numstr = buffer.raw().toString('ascii');
if (!this._isNumstr(numstr)) {
return buffer.error('Decoding of string type: ' + 'numstr unsupported characters');
}
return numstr;
} else if (tag === 'octstr') {
return buffer.raw();
} else if (tag === 'objDesc') {
return buffer.raw();
} else if (tag === 'printstr') {
var printstr = buffer.raw().toString('ascii');
if (!this._isPrintstr(printstr)) {
return buffer.error('Decoding of string type: ' + 'printstr unsupported characters');
}
return printstr;
} else if (/str$/.test(tag)) {
return buffer.raw().toString();
} else {
return buffer.error('Decoding of string type: ' + tag + ' unsupported');
}
};
DERNode.prototype._decodeObjid = function decodeObjid(buffer, values, relative) {
var result;
var identifiers = [];
var ident = 0;
while (!buffer.isEmpty()) {
var subident = buffer.readUInt8();
ident <<= 7;
ident |= subident & 0x7f;
if ((subident & 0x80) === 0) {
identifiers.push(ident);
ident = 0;
}
}
if (subident & 0x80) identifiers.push(ident);
var first = identifiers[0] / 40 | 0;
var second = identifiers[0] % 40;
if (relative) result = identifiers;else result = [first, second].concat(identifiers.slice(1));
if (values) {
var tmp = values[result.join(' ')];
if (tmp === undefined) tmp = values[result.join('.')];
if (tmp !== undefined) result = tmp;
}
return result;
};
DERNode.prototype._decodeTime = function decodeTime(buffer, tag) {
var str = buffer.raw().toString();
if (tag === 'gentime') {
var year = str.slice(0, 4) | 0;
var mon = str.slice(4, 6) | 0;
var day = str.slice(6, 8) | 0;
var hour = str.slice(8, 10) | 0;
var min = str.slice(10, 12) | 0;
var sec = str.slice(12, 14) | 0;
} else if (tag === 'utctime') {
var year = str.slice(0, 2) | 0;
var mon = str.slice(2, 4) | 0;
var day = str.slice(4, 6) | 0;
var hour = str.slice(6, 8) | 0;
var min = str.slice(8, 10) | 0;
var sec = str.slice(10, 12) | 0;
if (year < 70) year = 2000 + year;else year = 1900 + year;
} else {
return buffer.error('Decoding ' + tag + ' time is not supported yet');
}
return Date.UTC(year, mon - 1, day, hour, min, sec, 0);
};
DERNode.prototype._decodeNull = function decodeNull(buffer) {
return null;
};
DERNode.prototype._decodeBool = function decodeBool(buffer) {
var res = buffer.readUInt8();
if (buffer.isError(res)) return res;else return res !== 0;
};
DERNode.prototype._decodeInt = function decodeInt(buffer, values) {
// Bigint, return as it is (assume big endian)
var raw = buffer.raw();
var res = new bignum(raw);
if (values) res = values[res.toString(10)] || res;
return res;
};
DERNode.prototype._use = function use(entity, obj) {
if (typeof entity === 'function') entity = entity(obj);
return entity._getDecoder('der').tree;
};
// Utility methods
function derDecodeTag(buf, fail) {
var tag = buf.readUInt8(fail);
if (buf.isError(tag)) return tag;
var cls = der.tagClass[tag >> 6];
var primitive = (tag & 0x20) === 0;
// Multi-octet tag - load
if ((tag & 0x1f) === 0x1f) {
var oct = tag;
tag = 0;
while ((oct & 0x80) === 0x80) {
oct = buf.readUInt8(fail);
if (buf.isError(oct)) return oct;
tag <<= 7;
tag |= oct & 0x7f;
}
} else {
tag &= 0x1f;
}
var tagStr = der.tag[tag];
return {
cls: cls,
primitive: primitive,
tag: tag,
tagStr: tagStr
};
}
function derDecodeLen(buf, primitive, fail) {
var len = buf.readUInt8(fail);
if (buf.isError(len)) return len;
// Indefinite form
if (!primitive && len === 0x80) return null;
// Definite form
if ((len & 0x80) === 0) {
// Short form
return len;
}
// Long form
var num = len & 0x7f;
if (num > 4) return buf.error('length octect is too long');
len = 0;
for (var i = 0; i < num; i++) {
len <<= 8;
var j = buf.readUInt8(fail);
if (buf.isError(j)) return j;
len |= j;
}
return len;
}
},{"../../asn1":142,"inherits":266}],151:[function(require,module,exports){
'use strict';
var decoders = exports;
decoders.der = require('./der');
decoders.pem = require('./pem');
},{"./der":150,"./pem":152}],152:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var Buffer = require('buffer').Buffer;
var DERDecoder = require('./der');
function PEMDecoder(entity) {
DERDecoder.call(this, entity);
this.enc = 'pem';
};
inherits(PEMDecoder, DERDecoder);
module.exports = PEMDecoder;
PEMDecoder.prototype.decode = function decode(data, options) {
var lines = data.toString().split(/[\r\n]+/g);
var label = options.label.toUpperCase();
var re = /^-----(BEGIN|END) ([^-]+)-----$/;
var start = -1;
var end = -1;
for (var i = 0; i < lines.length; i++) {
var match = lines[i].match(re);
if (match === null) continue;
if (match[2] !== label) continue;
if (start === -1) {
if (match[1] !== 'BEGIN') break;
start = i;
} else {
if (match[1] !== 'END') break;
end = i;
break;
}
}
if (start === -1 || end === -1) throw new Error('PEM section not found for: ' + label);
var base64 = lines.slice(start + 1, end).join('');
// Remove excessive symbols
base64.replace(/[^a-z0-9\+\/=]+/gi, '');
var input = new Buffer(base64, 'base64');
return DERDecoder.prototype.decode.call(this, input, options);
};
},{"./der":150,"buffer":201,"inherits":266}],153:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var Buffer = require('buffer').Buffer;
var asn1 = require('../../asn1');
var base = asn1.base;
// Import DER constants
var der = asn1.constants.der;
function DEREncoder(entity) {
this.enc = 'der';
this.name = entity.name;
this.entity = entity;
// Construct base tree
this.tree = new DERNode();
this.tree._init(entity.body);
};
module.exports = DEREncoder;
DEREncoder.prototype.encode = function encode(data, reporter) {
return this.tree._encode(data, reporter).join();
};
// Tree methods
function DERNode(parent) {
base.Node.call(this, 'der', parent);
}
inherits(DERNode, base.Node);
DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) {
var encodedTag = encodeTag(tag, primitive, cls, this.reporter);
// Short form
if (content.length < 0x80) {
var header = new Buffer(2);
header[0] = encodedTag;
header[1] = content.length;
return this._createEncoderBuffer([header, content]);
}
// Long form
// Count octets required to store length
var lenOctets = 1;
for (var i = content.length; i >= 0x100; i >>= 8) {
lenOctets++;
}var header = new Buffer(1 + 1 + lenOctets);
header[0] = encodedTag;
header[1] = 0x80 | lenOctets;
for (var i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8) {
header[i] = j & 0xff;
}return this._createEncoderBuffer([header, content]);
};
DERNode.prototype._encodeStr = function encodeStr(str, tag) {
if (tag === 'bitstr') {
return this._createEncoderBuffer([str.unused | 0, str.data]);
} else if (tag === 'bmpstr') {
var buf = new Buffer(str.length * 2);
for (var i = 0; i < str.length; i++) {
buf.writeUInt16BE(str.charCodeAt(i), i * 2);
}
return this._createEncoderBuffer(buf);
} else if (tag === 'numstr') {
if (!this._isNumstr(str)) {
return this.reporter.error('Encoding of string type: numstr supports ' + 'only digits and space');
}
return this._createEncoderBuffer(str);
} else if (tag === 'printstr') {
if (!this._isPrintstr(str)) {
return this.reporter.error('Encoding of string type: printstr supports ' + 'only latin upper and lower case letters, ' + 'digits, space, apostrophe, left and rigth ' + 'parenthesis, plus sign, comma, hyphen, ' + 'dot, slash, colon, equal sign, ' + 'question mark');
}
return this._createEncoderBuffer(str);
} else if (/str$/.test(tag)) {
return this._createEncoderBuffer(str);
} else if (tag === 'objDesc') {
return this._createEncoderBuffer(str);
} else {
return this.reporter.error('Encoding of string type: ' + tag + ' unsupported');
}
};
DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {
if (typeof id === 'string') {
if (!values) return this.reporter.error('string objid given, but no values map found');
if (!values.hasOwnProperty(id)) return this.reporter.error('objid not found in values map');
id = values[id].split(/[\s\.]+/g);
for (var i = 0; i < id.length; i++) {
id[i] |= 0;
}
} else if (Array.isArray(id)) {
id = id.slice();
for (var i = 0; i < id.length; i++) {
id[i] |= 0;
}
}
if (!Array.isArray(id)) {
return this.reporter.error('objid() should be either array or string, ' + 'got: ' + JSON.stringify(id));
}
if (!relative) {
if (id[1] >= 40) return this.reporter.error('Second objid identifier OOB');
id.splice(0, 2, id[0] * 40 + id[1]);
}
// Count number of octets
var size = 0;
for (var i = 0; i < id.length; i++) {
var ident = id[i];
for (size++; ident >= 0x80; ident >>= 7) {
size++;
}
}
var objid = new Buffer(size);
var offset = objid.length - 1;
for (var i = id.length - 1; i >= 0; i--) {
var ident = id[i];
objid[offset--] = ident & 0x7f;
while ((ident >>= 7) > 0) {
objid[offset--] = 0x80 | ident & 0x7f;
}
}
return this._createEncoderBuffer(objid);
};
function two(num) {
if (num < 10) return '0' + num;else return num;
}
DERNode.prototype._encodeTime = function encodeTime(time, tag) {
var str;
var date = new Date(time);
if (tag === 'gentime') {
str = [two(date.getFullYear()), two(date.getUTCMonth() + 1), two(date.getUTCDate()), two(date.getUTCHours()), two(date.getUTCMinutes()), two(date.getUTCSeconds()), 'Z'].join('');
} else if (tag === 'utctime') {
str = [two(date.getFullYear() % 100), two(date.getUTCMonth() + 1), two(date.getUTCDate()), two(date.getUTCHours()), two(date.getUTCMinutes()), two(date.getUTCSeconds()), 'Z'].join('');
} else {
this.reporter.error('Encoding ' + tag + ' time is not supported yet');
}
return this._encodeStr(str, 'octstr');
};
DERNode.prototype._encodeNull = function encodeNull() {
return this._createEncoderBuffer('');
};
DERNode.prototype._encodeInt = function encodeInt(num, values) {
if (typeof num === 'string') {
if (!values) return this.reporter.error('String int or enum given, but no values map');
if (!values.hasOwnProperty(num)) {
return this.reporter.error('Values map doesn\'t contain: ' + JSON.stringify(num));
}
num = values[num];
}
// Bignum, assume big endian
if (typeof num !== 'number' && !Buffer.isBuffer(num)) {
var numArray = num.toArray();
if (!num.sign && numArray[0] & 0x80) {
numArray.unshift(0);
}
num = new Buffer(numArray);
}
if (Buffer.isBuffer(num)) {
var size = num.length;
if (num.length === 0) size++;
var out = new Buffer(size);
num.copy(out);
if (num.length === 0) out[0] = 0;
return this._createEncoderBuffer(out);
}
if (num < 0x80) return this._createEncoderBuffer(num);
if (num < 0x100) return this._createEncoderBuffer([0, num]);
var size = 1;
for (var i = num; i >= 0x100; i >>= 8) {
size++;
}var out = new Array(size);
for (var i = out.length - 1; i >= 0; i--) {
out[i] = num & 0xff;
num >>= 8;
}
if (out[0] & 0x80) {
out.unshift(0);
}
return this._createEncoderBuffer(new Buffer(out));
};
DERNode.prototype._encodeBool = function encodeBool(value) {
return this._createEncoderBuffer(value ? 0xff : 0);
};
DERNode.prototype._use = function use(entity, obj) {
if (typeof entity === 'function') entity = entity(obj);
return entity._getEncoder('der').tree;
};
DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) {
var state = this._baseState;
var i;
if (state['default'] === null) return false;
var data = dataBuffer.join();
if (state.defaultBuffer === undefined) state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join();
if (data.length !== state.defaultBuffer.length) return false;
for (i = 0; i < data.length; i++) {
if (data[i] !== state.defaultBuffer[i]) return false;
}return true;
};
// Utility methods
function encodeTag(tag, primitive, cls, reporter) {
var res;
if (tag === 'seqof') tag = 'seq';else if (tag === 'setof') tag = 'set';
if (der.tagByName.hasOwnProperty(tag)) res = der.tagByName[tag];else if (typeof tag === 'number' && (tag | 0) === tag) res = tag;else return reporter.error('Unknown tag: ' + tag);
if (res >= 0x1f) return reporter.error('Multi-octet tag encoding unsupported');
if (!primitive) res |= 0x20;
res |= der.tagClassByName[cls || 'universal'] << 6;
return res;
}
},{"../../asn1":142,"buffer":201,"inherits":266}],154:[function(require,module,exports){
'use strict';
var encoders = exports;
encoders.der = require('./der');
encoders.pem = require('./pem');
},{"./der":153,"./pem":155}],155:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var DEREncoder = require('./der');
function PEMEncoder(entity) {
DEREncoder.call(this, entity);
this.enc = 'pem';
};
inherits(PEMEncoder, DEREncoder);
module.exports = PEMEncoder;
PEMEncoder.prototype.encode = function encode(data, options) {
var buf = DEREncoder.prototype.encode.call(this, data);
var p = buf.toString('base64');
var out = ['-----BEGIN ' + options.label + '-----'];
for (var i = 0; i < p.length; i += 64) {
out.push(p.slice(i, i + 64));
}out.push('-----END ' + options.label + '-----');
return out.join('\n');
};
},{"./der":153,"inherits":266}],156:[function(require,module,exports){
(function (global){
'use strict';
// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js
// original notice:
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
function compare(a, b) {
if (a === b) {
return 0;
}
var x = a.length;
var y = b.length;
for (var i = 0, len = Math.min(x, y); i < len; ++i) {
if (a[i] !== b[i]) {
x = a[i];
y = b[i];
break;
}
}
if (x < y) {
return -1;
}
if (y < x) {
return 1;
}
return 0;
}
function isBuffer(b) {
if (global.Buffer && typeof global.Buffer.isBuffer === 'function') {
return global.Buffer.isBuffer(b);
}
return !!(b != null && b._isBuffer);
}
// based on node assert, original notice:
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
//
// Originally from narwhal.js (http://narwhaljs.org)
// Copyright (c) 2009 Thomas Robinson <280north.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the 'Software'), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var util = require('util/');
var hasOwn = Object.prototype.hasOwnProperty;
var pSlice = Array.prototype.slice;
var functionsHaveNames = function () {
return function foo() {}.name === 'foo';
}();
function pToString(obj) {
return Object.prototype.toString.call(obj);
}
function isView(arrbuf) {
if (isBuffer(arrbuf)) {
return false;
}
if (typeof global.ArrayBuffer !== 'function') {
return false;
}
if (typeof ArrayBuffer.isView === 'function') {
return ArrayBuffer.isView(arrbuf);
}
if (!arrbuf) {
return false;
}
if (arrbuf instanceof DataView) {
return true;
}
if (arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer) {
return true;
}
return false;
}
// 1. The assert module provides functions that throw
// AssertionError's when particular conditions are not met. The
// assert module must conform to the following interface.
var assert = module.exports = ok;
// 2. The AssertionError is defined in assert.
// new assert.AssertionError({ message: message,
// actual: actual,
// expected: expected })
var regex = /\s*function\s+([^\(\s]*)\s*/;
// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js
function getName(func) {
if (!util.isFunction(func)) {
return;
}
if (functionsHaveNames) {
return func.name;
}
var str = func.toString();
var match = str.match(regex);
return match && match[1];
}
assert.AssertionError = function AssertionError(options) {
this.name = 'AssertionError';
this.actual = options.actual;
this.expected = options.expected;
this.operator = options.operator;
if (options.message) {
this.message = options.message;
this.generatedMessage = false;
} else {
this.message = getMessage(this);
this.generatedMessage = true;
}
var stackStartFunction = options.stackStartFunction || fail;
if (Error.captureStackTrace) {
Error.captureStackTrace(this, stackStartFunction);
} else {
// non v8 browsers so we can have a stacktrace
var err = new Error();
if (err.stack) {
var out = err.stack;
// try to strip useless frames
var fn_name = getName(stackStartFunction);
var idx = out.indexOf('\n' + fn_name);
if (idx >= 0) {
// once we have located the function frame
// we need to strip out everything before it (and its line)
var next_line = out.indexOf('\n', idx + 1);
out = out.substring(next_line + 1);
}
this.stack = out;
}
}
};
// assert.AssertionError instanceof Error
util.inherits(assert.AssertionError, Error);
function truncate(s, n) {
if (typeof s === 'string') {
return s.length < n ? s : s.slice(0, n);
} else {
return s;
}
}
function inspect(something) {
if (functionsHaveNames || !util.isFunction(something)) {
return util.inspect(something);
}
var rawname = getName(something);
var name = rawname ? ': ' + rawname : '';
return '[Function' + name + ']';
}
function getMessage(self) {
return truncate(inspect(self.actual), 128) + ' ' + self.operator + ' ' + truncate(inspect(self.expected), 128);
}
// At present only the three keys mentioned above are used and
// understood by the spec. Implementations or sub modules can pass
// other keys to the AssertionError's constructor - they will be
// ignored.
// 3. All of the following functions must throw an AssertionError
// when a corresponding condition is not met, with a message that
// may be undefined if not provided. All assertion methods provide
// both the actual and expected values to the assertion error for
// display purposes.
function fail(actual, expected, message, operator, stackStartFunction) {
throw new assert.AssertionError({
message: message,
actual: actual,
expected: expected,
operator: operator,
stackStartFunction: stackStartFunction
});
}
// EXTENSION! allows for well behaved errors defined elsewhere.
assert.fail = fail;
// 4. Pure assertion tests whether a value is truthy, as determined
// by !!guard.
// assert.ok(guard, message_opt);
// This statement is equivalent to assert.equal(true, !!guard,
// message_opt);. To test strictly for the value true, use
// assert.strictEqual(true, guard, message_opt);.
function ok(value, message) {
if (!value) fail(value, true, message, '==', assert.ok);
}
assert.ok = ok;
// 5. The equality assertion tests shallow, coercive equality with
// ==.
// assert.equal(actual, expected, message_opt);
assert.equal = function equal(actual, expected, message) {
if (actual != expected) fail(actual, expected, message, '==', assert.equal);
};
// 6. The non-equality assertion tests for whether two objects are not equal
// with != assert.notEqual(actual, expected, message_opt);
assert.notEqual = function notEqual(actual, expected, message) {
if (actual == expected) {
fail(actual, expected, message, '!=', assert.notEqual);
}
};
// 7. The equivalence assertion tests a deep equality relation.
// assert.deepEqual(actual, expected, message_opt);
assert.deepEqual = function deepEqual(actual, expected, message) {
if (!_deepEqual(actual, expected, false)) {
fail(actual, expected, message, 'deepEqual', assert.deepEqual);
}
};
assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {
if (!_deepEqual(actual, expected, true)) {
fail(actual, expected, message, 'deepStrictEqual', assert.deepStrictEqual);
}
};
function _deepEqual(actual, expected, strict, memos) {
// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
return true;
} else if (isBuffer(actual) && isBuffer(expected)) {
return compare(actual, expected) === 0;
// 7.2. If the expected value is a Date object, the actual value is
// equivalent if it is also a Date object that refers to the same time.
} else if (util.isDate(actual) && util.isDate(expected)) {
return actual.getTime() === expected.getTime();
// 7.3 If the expected value is a RegExp object, the actual value is
// equivalent if it is also a RegExp object with the same source and
// properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
} else if (util.isRegExp(actual) && util.isRegExp(expected)) {
return actual.source === expected.source && actual.global === expected.global && actual.multiline === expected.multiline && actual.lastIndex === expected.lastIndex && actual.ignoreCase === expected.ignoreCase;
// 7.4. Other pairs that do not both pass typeof value == 'object',
// equivalence is determined by ==.
} else if ((actual === null || (typeof actual === 'undefined' ? 'undefined' : _typeof(actual)) !== 'object') && (expected === null || (typeof expected === 'undefined' ? 'undefined' : _typeof(expected)) !== 'object')) {
return strict ? actual === expected : actual == expected;
// If both values are instances of typed arrays, wrap their underlying
// ArrayBuffers in a Buffer each to increase performance
// This optimization requires the arrays to have the same type as checked by
// Object.prototype.toString (aka pToString). Never perform binary
// comparisons for Float*Arrays, though, since e.g. +0 === -0 but their
// bit patterns are not identical.
} else if (isView(actual) && isView(expected) && pToString(actual) === pToString(expected) && !(actual instanceof Float32Array || actual instanceof Float64Array)) {
return compare(new Uint8Array(actual.buffer), new Uint8Array(expected.buffer)) === 0;
// 7.5 For all other Object pairs, including Array objects, equivalence is
// determined by having the same number of owned properties (as verified
// with Object.prototype.hasOwnProperty.call), the same set of keys
// (although not necessarily the same order), equivalent values for every
// corresponding key, and an identical 'prototype' property. Note: this
// accounts for both named and indexed properties on Arrays.
} else if (isBuffer(actual) !== isBuffer(expected)) {
return false;
} else {
memos = memos || { actual: [], expected: [] };
var actualIndex = memos.actual.indexOf(actual);
if (actualIndex !== -1) {
if (actualIndex === memos.expected.indexOf(expected)) {
return true;
}
}
memos.actual.push(actual);
memos.expected.push(expected);
return objEquiv(actual, expected, strict, memos);
}
}
function isArguments(object) {
return Object.prototype.toString.call(object) == '[object Arguments]';
}
function objEquiv(a, b, strict, actualVisitedObjects) {
if (a === null || a === undefined || b === null || b === undefined) return false;
// if one is a primitive, the other must be same
if (util.isPrimitive(a) || util.isPrimitive(b)) return a === b;
if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return false;
var aIsArgs = isArguments(a);
var bIsArgs = isArguments(b);
if (aIsArgs && !bIsArgs || !aIsArgs && bIsArgs) return false;
if (aIsArgs) {
a = pSlice.call(a);
b = pSlice.call(b);
return _deepEqual(a, b, strict);
}
var ka = objectKeys(a);
var kb = objectKeys(b);
var key, i;
// having the same number of owned properties (keys incorporates
// hasOwnProperty)
if (ka.length !== kb.length) return false;
//the same set of keys (although not necessarily the same order),
ka.sort();
kb.sort();
//~~~cheap key test
for (i = ka.length - 1; i >= 0; i--) {
if (ka[i] !== kb[i]) return false;
}
//equivalent values for every corresponding key, and
//~~~possibly expensive deep test
for (i = ka.length - 1; i >= 0; i--) {
key = ka[i];
if (!_deepEqual(a[key], b[key], strict, actualVisitedObjects)) return false;
}
return true;
}
// 8. The non-equivalence assertion tests for any deep inequality.
// assert.notDeepEqual(actual, expected, message_opt);
assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
if (_deepEqual(actual, expected, false)) {
fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);
}
};
assert.notDeepStrictEqual = notDeepStrictEqual;
function notDeepStrictEqual(actual, expected, message) {
if (_deepEqual(actual, expected, true)) {
fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual);
}
}
// 9. The strict equality assertion tests strict equality, as determined by ===.
// assert.strictEqual(actual, expected, message_opt);
assert.strictEqual = function strictEqual(actual, expected, message) {
if (actual !== expected) {
fail(actual, expected, message, '===', assert.strictEqual);
}
};
// 10. The strict non-equality assertion tests for strict inequality, as
// determined by !==. assert.notStrictEqual(actual, expected, message_opt);
assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
if (actual === expected) {
fail(actual, expected, message, '!==', assert.notStrictEqual);
}
};
function expectedException(actual, expected) {
if (!actual || !expected) {
return false;
}
if (Object.prototype.toString.call(expected) == '[object RegExp]') {
return expected.test(actual);
}
try {
if (actual instanceof expected) {
return true;
}
} catch (e) {
// Ignore. The instanceof check doesn't work for arrow functions.
}
if (Error.isPrototypeOf(expected)) {
return false;
}
return expected.call({}, actual) === true;
}
function _tryBlock(block) {
var error;
try {
block();
} catch (e) {
error = e;
}
return error;
}
function _throws(shouldThrow, block, expected, message) {
var actual;
if (typeof block !== 'function') {
throw new TypeError('"block" argument must be a function');
}
if (typeof expected === 'string') {
message = expected;
expected = null;
}
actual = _tryBlock(block);
message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + (message ? ' ' + message : '.');
if (shouldThrow && !actual) {
fail(actual, expected, 'Missing expected exception' + message);
}
var userProvidedMessage = typeof message === 'string';
var isUnwantedException = !shouldThrow && util.isError(actual);
var isUnexpectedException = !shouldThrow && actual && !expected;
if (isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) {
fail(actual, expected, 'Got unwanted exception' + message);
}
if (shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) {
throw actual;
}
}
// 11. Expected to throw an error:
// assert.throws(block, Error_opt, message_opt);
assert.throws = function (block, /*optional*/error, /*optional*/message) {
_throws(true, block, error, message);
};
// EXTENSION! This is annoying to write outside this module.
assert.doesNotThrow = function (block, /*optional*/error, /*optional*/message) {
_throws(false, block, error, message);
};
assert.ifError = function (err) {
if (err) throw err;
};
var objectKeys = Object.keys || function (obj) {
var keys = [];
for (var key in obj) {
if (hasOwn.call(obj, key)) keys.push(key);
}
return keys;
};
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"util/":344}],157:[function(require,module,exports){
'use strict';
exports.byteLength = byteLength;
exports.toByteArray = toByteArray;
exports.fromByteArray = fromByteArray;
var lookup = [];
var revLookup = [];
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;
var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
for (var i = 0, len = code.length; i < len; ++i) {
lookup[i] = code[i];
revLookup[code.charCodeAt(i)] = i;
}
revLookup['-'.charCodeAt(0)] = 62;
revLookup['_'.charCodeAt(0)] = 63;
function placeHoldersCount(b64) {
var len = b64.length;
if (len % 4 > 0) {
throw new Error('Invalid string. Length must be a multiple of 4');
}
// the number of equal signs (place holders)
// if there are two placeholders, than the two characters before it
// represent one byte
// if there is only one, then the three characters before it represent 2 bytes
// this is just a cheap hack to not do indexOf twice
return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0;
}
function byteLength(b64) {
// base64 is 4/3 + up to two characters of the original data
return b64.length * 3 / 4 - placeHoldersCount(b64);
}
function toByteArray(b64) {
var i, l, tmp, placeHolders, arr;
var len = b64.length;
placeHolders = placeHoldersCount(b64);
arr = new Arr(len * 3 / 4 - placeHolders);
// if there are placeholders, only get up to the last complete 4 chars
l = placeHolders > 0 ? len - 4 : len;
var L = 0;
for (i = 0; i < l; i += 4) {
tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];
arr[L++] = tmp >> 16 & 0xFF;
arr[L++] = tmp >> 8 & 0xFF;
arr[L++] = tmp & 0xFF;
}
if (placeHolders === 2) {
tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;
arr[L++] = tmp & 0xFF;
} else if (placeHolders === 1) {
tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;
arr[L++] = tmp >> 8 & 0xFF;
arr[L++] = tmp & 0xFF;
}
return arr;
}
function tripletToBase64(num) {
return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];
}
function encodeChunk(uint8, start, end) {
var tmp;
var output = [];
for (var i = start; i < end; i += 3) {
tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + uint8[i + 2];
output.push(tripletToBase64(tmp));
}
return output.join('');
}
function fromByteArray(uint8) {
var tmp;
var len = uint8.length;
var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes
var output = '';
var parts = [];
var maxChunkLength = 16383; // must be multiple of 3
// go through the array every three bytes, we'll deal with trailing stuff later
for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));
}
// pad the end with zeros, but make sure to not forget the extra bytes
if (extraBytes === 1) {
tmp = uint8[len - 1];
output += lookup[tmp >> 2];
output += lookup[tmp << 4 & 0x3F];
output += '==';
} else if (extraBytes === 2) {
tmp = (uint8[len - 2] << 8) + uint8[len - 1];
output += lookup[tmp >> 10];
output += lookup[tmp >> 4 & 0x3F];
output += lookup[tmp << 2 & 0x3F];
output += '=';
}
parts.push(output);
return parts.join('');
}
},{}],158:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*! bignumber.js v4.1.0 https://github.com/MikeMcl/bignumber.js/LICENCE */
;(function (globalObj) {
'use strict';
/*
bignumber.js v4.1.0
A JavaScript library for arbitrary-precision arithmetic.
https://github.com/MikeMcl/bignumber.js
Copyright (c) 2017 Michael Mclaughlin <M8ch88l@gmail.com>
MIT Expat Licence
*/
var BigNumber,
isNumeric = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
mathceil = Math.ceil,
mathfloor = Math.floor,
notBool = ' not a boolean or binary digit',
roundingMode = 'rounding mode',
tooManyDigits = 'number type has more than 15 significant digits',
ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_',
BASE = 1e14,
LOG_BASE = 14,
MAX_SAFE_INTEGER = 0x1fffffffffffff,
// 2^53 - 1
// MAX_INT32 = 0x7fffffff, // 2^31 - 1
POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],
SQRT_BASE = 1e7,
/*
* The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and
* the arguments to toExponential, toFixed, toFormat, and toPrecision, beyond which an
* exception is thrown (if ERRORS is true).
*/
MAX = 1E9; // 0 to MAX_INT32
/*
* Create and return a BigNumber constructor.
*/
function constructorFactory(config) {
var div,
parseNumeric,
// id tracks the caller function, so its name can be included in error messages.
id = 0,
P = BigNumber.prototype,
ONE = new BigNumber(1),
/********************************* EDITABLE DEFAULTS **********************************/
/*
* The default values below must be integers within the inclusive ranges stated.
* The values can also be changed at run-time using BigNumber.config.
*/
// The maximum number of decimal places for operations involving division.
DECIMAL_PLACES = 20,
// 0 to MAX
/*
* The rounding mode used when rounding to the above decimal places, and when using
* toExponential, toFixed, toFormat and toPrecision, and round (default value).
* UP 0 Away from zero.
* DOWN 1 Towards zero.
* CEIL 2 Towards +Infinity.
* FLOOR 3 Towards -Infinity.
* HALF_UP 4 Towards nearest neighbour. If equidistant, up.
* HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
* HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
* HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
* HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
*/
ROUNDING_MODE = 4,
// 0 to 8
// EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]
// The exponent value at and beneath which toString returns exponential notation.
// Number type: -7
TO_EXP_NEG = -7,
// 0 to -MAX
// The exponent value at and above which toString returns exponential notation.
// Number type: 21
TO_EXP_POS = 21,
// 0 to MAX
// RANGE : [MIN_EXP, MAX_EXP]
// The minimum exponent value, beneath which underflow to zero occurs.
// Number type: -324 (5e-324)
MIN_EXP = -1e7,
// -1 to -MAX
// The maximum exponent value, above which overflow to Infinity occurs.
// Number type: 308 (1.7976931348623157e+308)
// For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.
MAX_EXP = 1e7,
// 1 to MAX
// Whether BigNumber Errors are ever thrown.
ERRORS = true,
// true or false
// Change to intValidatorNoErrors if ERRORS is false.
isValidInt = intValidatorWithErrors,
// intValidatorWithErrors/intValidatorNoErrors
// Whether to use cryptographically-secure random number generation, if available.
CRYPTO = false,
// true or false
/*
* The modulo mode used when calculating the modulus: a mod n.
* The quotient (q = a / n) is calculated according to the corresponding rounding mode.
* The remainder (r) is calculated as: r = a - n * q.
*
* UP 0 The remainder is positive if the dividend is negative, else is negative.
* DOWN 1 The remainder has the same sign as the dividend.
* This modulo mode is commonly known as 'truncated division' and is
* equivalent to (a % n) in JavaScript.
* FLOOR 3 The remainder has the same sign as the divisor (Python %).
* HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.
* EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).
* The remainder is always positive.
*
* The truncated division, floored division, Euclidian division and IEEE 754 remainder
* modes are commonly used for the modulus operation.
* Although the other rounding modes can also be used, they may not give useful results.
*/
MODULO_MODE = 1,
// 0 to 9
// The maximum number of significant digits of the result of the toPower operation.
// If POW_PRECISION is 0, there will be unlimited significant digits.
POW_PRECISION = 0,
// 0 to MAX
// The format specification used by the BigNumber.prototype.toFormat method.
FORMAT = {
decimalSeparator: '.',
groupSeparator: ',',
groupSize: 3,
secondaryGroupSize: 0,
fractionGroupSeparator: '\xA0', // non-breaking space
fractionGroupSize: 0
};
/******************************************************************************************/
// CONSTRUCTOR
/*
* The BigNumber constructor and exported function.
* Create and return a new instance of a BigNumber object.
*
* n {number|string|BigNumber} A numeric value.
* [b] {number} The base of n. Integer, 2 to 64 inclusive.
*/
function BigNumber(n, b) {
var c,
e,
i,
num,
len,
str,
x = this;
// Enable constructor usage without new.
if (!(x instanceof BigNumber)) {
// 'BigNumber() constructor call without new: {n}'
if (ERRORS) raise(26, 'constructor call without new', n);
return new BigNumber(n, b);
}
// 'new BigNumber() base not an integer: {b}'
// 'new BigNumber() base out of range: {b}'
if (b == null || !isValidInt(b, 2, 64, id, 'base')) {
// Duplicate.
if (n instanceof BigNumber) {
x.s = n.s;
x.e = n.e;
x.c = (n = n.c) ? n.slice() : n;
id = 0;
return;
}
if ((num = typeof n == 'number') && n * 0 == 0) {
x.s = 1 / n < 0 ? (n = -n, -1) : 1;
// Fast path for integers.
if (n === ~~n) {
for (e = 0, i = n; i >= 10; i /= 10, e++) {}
x.e = e;
x.c = [n];
id = 0;
return;
}
str = n + '';
} else {
if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, num);
x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
}
} else {
b = b | 0;
str = n + '';
// Ensure return value is rounded to DECIMAL_PLACES as with other bases.
// Allow exponential notation to be used with base 10 argument.
if (b == 10) {
x = new BigNumber(n instanceof BigNumber ? n : str);
return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);
}
// Avoid potential interpretation of Infinity and NaN as base 44+ values.
// Any number in exponential form will fail due to the [Ee][+-].
if ((num = typeof n == 'number') && n * 0 != 0 || !new RegExp('^-?' + (c = '[' + ALPHABET.slice(0, b) + ']+') + '(?:\\.' + c + ')?$', b < 37 ? 'i' : '').test(str)) {
return parseNumeric(x, str, num, b);
}
if (num) {
x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;
if (ERRORS && str.replace(/^0\.0*|\./, '').length > 15) {
// 'new BigNumber() number type has more than 15 significant digits: {n}'
raise(id, tooManyDigits, n);
}
// Prevent later check for length on converted number.
num = false;
} else {
x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
}
str = convertBase(str, 10, b, x.s);
}
// Decimal point?
if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');
// Exponential form?
if ((i = str.search(/e/i)) > 0) {
// Determine exponent.
if (e < 0) e = i;
e += +str.slice(i + 1);
str = str.substring(0, i);
} else if (e < 0) {
// Integer.
e = str.length;
}
// Determine leading zeros.
for (i = 0; str.charCodeAt(i) === 48; i++) {}
// Determine trailing zeros.
for (len = str.length; str.charCodeAt(--len) === 48;) {}
str = str.slice(i, len + 1);
if (str) {
len = str.length;
// Disallow numbers with over 15 significant digits if number type.
// 'new BigNumber() number type has more than 15 significant digits: {n}'
if (num && ERRORS && len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {
raise(id, tooManyDigits, x.s * n);
}
e = e - i - 1;
// Overflow?
if (e > MAX_EXP) {
// Infinity.
x.c = x.e = null;
// Underflow?
} else if (e < MIN_EXP) {
// Zero.
x.c = [x.e = 0];
} else {
x.e = e;
x.c = [];
// Transform base
// e is the base 10 exponent.
// i is where to slice str to get the first element of the coefficient array.
i = (e + 1) % LOG_BASE;
if (e < 0) i += LOG_BASE;
if (i < len) {
if (i) x.c.push(+str.slice(0, i));
for (len -= LOG_BASE; i < len;) {
x.c.push(+str.slice(i, i += LOG_BASE));
}
str = str.slice(i);
i = LOG_BASE - str.length;
} else {
i -= len;
}
for (; i--; str += '0') {}
x.c.push(+str);
}
} else {
// Zero.
x.c = [x.e = 0];
}
id = 0;
}
// CONSTRUCTOR PROPERTIES
BigNumber.another = constructorFactory;
BigNumber.ROUND_UP = 0;
BigNumber.ROUND_DOWN = 1;
BigNumber.ROUND_CEIL = 2;
BigNumber.ROUND_FLOOR = 3;
BigNumber.ROUND_HALF_UP = 4;
BigNumber.ROUND_HALF_DOWN = 5;
BigNumber.ROUND_HALF_EVEN = 6;
BigNumber.ROUND_HALF_CEIL = 7;
BigNumber.ROUND_HALF_FLOOR = 8;
BigNumber.EUCLID = 9;
/*
* Configure infrequently-changing library-wide settings.
*
* Accept an object or an argument list, with one or many of the following properties or
* parameters respectively:
*
* DECIMAL_PLACES {number} Integer, 0 to MAX inclusive
* ROUNDING_MODE {number} Integer, 0 to 8 inclusive
* EXPONENTIAL_AT {number|number[]} Integer, -MAX to MAX inclusive or
* [integer -MAX to 0 incl., 0 to MAX incl.]
* RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or
* [integer -MAX to -1 incl., integer 1 to MAX incl.]
* ERRORS {boolean|number} true, false, 1 or 0
* CRYPTO {boolean|number} true, false, 1 or 0
* MODULO_MODE {number} 0 to 9 inclusive
* POW_PRECISION {number} 0 to MAX inclusive
* FORMAT {object} See BigNumber.prototype.toFormat
* decimalSeparator {string}
* groupSeparator {string}
* groupSize {number}
* secondaryGroupSize {number}
* fractionGroupSeparator {string}
* fractionGroupSize {number}
*
* (The values assigned to the above FORMAT object properties are not checked for validity.)
*
* E.g.
* BigNumber.config(20, 4) is equivalent to
* BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })
*
* Ignore properties/parameters set to null or undefined.
* Return an object with the properties current values.
*/
BigNumber.config = BigNumber.set = function () {
var v,
p,
i = 0,
r = {},
a = arguments,
o = a[0],
has = o && (typeof o === 'undefined' ? 'undefined' : _typeof(o)) == 'object' ? function () {
if (o.hasOwnProperty(p)) return (v = o[p]) != null;
} : function () {
if (a.length > i) return (v = a[i++]) != null;
};
// DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.
// 'config() DECIMAL_PLACES not an integer: {v}'
// 'config() DECIMAL_PLACES out of range: {v}'
if (has(p = 'DECIMAL_PLACES') && isValidInt(v, 0, MAX, 2, p)) {
DECIMAL_PLACES = v | 0;
}
r[p] = DECIMAL_PLACES;
// ROUNDING_MODE {number} Integer, 0 to 8 inclusive.
// 'config() ROUNDING_MODE not an integer: {v}'
// 'config() ROUNDING_MODE out of range: {v}'
if (has(p = 'ROUNDING_MODE') && isValidInt(v, 0, 8, 2, p)) {
ROUNDING_MODE = v | 0;
}
r[p] = ROUNDING_MODE;
// EXPONENTIAL_AT {number|number[]}
// Integer, -MAX to MAX inclusive or [integer -MAX to 0 inclusive, 0 to MAX inclusive].
// 'config() EXPONENTIAL_AT not an integer: {v}'
// 'config() EXPONENTIAL_AT out of range: {v}'
if (has(p = 'EXPONENTIAL_AT')) {
if (isArray(v)) {
if (isValidInt(v[0], -MAX, 0, 2, p) && isValidInt(v[1], 0, MAX, 2, p)) {
TO_EXP_NEG = v[0] | 0;
TO_EXP_POS = v[1] | 0;
}
} else if (isValidInt(v, -MAX, MAX, 2, p)) {
TO_EXP_NEG = -(TO_EXP_POS = (v < 0 ? -v : v) | 0);
}
}
r[p] = [TO_EXP_NEG, TO_EXP_POS];
// RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or
// [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].
// 'config() RANGE not an integer: {v}'
// 'config() RANGE cannot be zero: {v}'
// 'config() RANGE out of range: {v}'
if (has(p = 'RANGE')) {
if (isArray(v)) {
if (isValidInt(v[0], -MAX, -1, 2, p) && isValidInt(v[1], 1, MAX, 2, p)) {
MIN_EXP = v[0] | 0;
MAX_EXP = v[1] | 0;
}
} else if (isValidInt(v, -MAX, MAX, 2, p)) {
if (v | 0) MIN_EXP = -(MAX_EXP = (v < 0 ? -v : v) | 0);else if (ERRORS) raise(2, p + ' cannot be zero', v);
}
}
r[p] = [MIN_EXP, MAX_EXP];
// ERRORS {boolean|number} true, false, 1 or 0.
// 'config() ERRORS not a boolean or binary digit: {v}'
if (has(p = 'ERRORS')) {
if (v === !!v || v === 1 || v === 0) {
id = 0;
isValidInt = (ERRORS = !!v) ? intValidatorWithErrors : intValidatorNoErrors;
} else if (ERRORS) {
raise(2, p + notBool, v);
}
}
r[p] = ERRORS;
// CRYPTO {boolean|number} true, false, 1 or 0.
// 'config() CRYPTO not a boolean or binary digit: {v}'
// 'config() crypto unavailable: {crypto}'
if (has(p = 'CRYPTO')) {
if (v === true || v === false || v === 1 || v === 0) {
if (v) {
v = typeof crypto == 'undefined';
if (!v && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
CRYPTO = true;
} else if (ERRORS) {
raise(2, 'crypto unavailable', v ? void 0 : crypto);
} else {
CRYPTO = false;
}
} else {
CRYPTO = false;
}
} else if (ERRORS) {
raise(2, p + notBool, v);
}
}
r[p] = CRYPTO;
// MODULO_MODE {number} Integer, 0 to 9 inclusive.
// 'config() MODULO_MODE not an integer: {v}'
// 'config() MODULO_MODE out of range: {v}'
if (has(p = 'MODULO_MODE') && isValidInt(v, 0, 9, 2, p)) {
MODULO_MODE = v | 0;
}
r[p] = MODULO_MODE;
// POW_PRECISION {number} Integer, 0 to MAX inclusive.
// 'config() POW_PRECISION not an integer: {v}'
// 'config() POW_PRECISION out of range: {v}'
if (has(p = 'POW_PRECISION') && isValidInt(v, 0, MAX, 2, p)) {
POW_PRECISION = v | 0;
}
r[p] = POW_PRECISION;
// FORMAT {object}
// 'config() FORMAT not an object: {v}'
if (has(p = 'FORMAT')) {
if ((typeof v === 'undefined' ? 'undefined' : _typeof(v)) == 'object') {
FORMAT = v;
} else if (ERRORS) {
raise(2, p + ' not an object', v);
}
}
r[p] = FORMAT;
return r;
};
/*
* Return a new BigNumber whose value is the maximum of the arguments.
*
* arguments {number|string|BigNumber}
*/
BigNumber.max = function () {
return maxOrMin(arguments, P.lt);
};
/*
* Return a new BigNumber whose value is the minimum of the arguments.
*
* arguments {number|string|BigNumber}
*/
BigNumber.min = function () {
return maxOrMin(arguments, P.gt);
};
/*
* Return a new BigNumber with a random value equal to or greater than 0 and less than 1,
* and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing
* zeros are produced).
*
* [dp] {number} Decimal places. Integer, 0 to MAX inclusive.
*
* 'random() decimal places not an integer: {dp}'
* 'random() decimal places out of range: {dp}'
* 'random() crypto unavailable: {crypto}'
*/
BigNumber.random = function () {
var pow2_53 = 0x20000000000000;
// Return a 53 bit integer n, where 0 <= n < 9007199254740992.
// Check if Math.random() produces more than 32 bits of randomness.
// If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.
// 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.
var random53bitInt = Math.random() * pow2_53 & 0x1fffff ? function () {
return mathfloor(Math.random() * pow2_53);
} : function () {
return (Math.random() * 0x40000000 | 0) * 0x800000 + (Math.random() * 0x800000 | 0);
};
return function (dp) {
var a,
b,
e,
k,
v,
i = 0,
c = [],
rand = new BigNumber(ONE);
dp = dp == null || !isValidInt(dp, 0, MAX, 14) ? DECIMAL_PLACES : dp | 0;
k = mathceil(dp / LOG_BASE);
if (CRYPTO) {
// Browsers supporting crypto.getRandomValues.
if (crypto.getRandomValues) {
a = crypto.getRandomValues(new Uint32Array(k *= 2));
for (; i < k;) {
// 53 bits:
// ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)
// 11111 11111111 11111111 11111111 11100000 00000000 00000000
// ((Math.pow(2, 32) - 1) >>> 11).toString(2)
// 11111 11111111 11111111
// 0x20000 is 2^21.
v = a[i] * 0x20000 + (a[i + 1] >>> 11);
// Rejection sampling:
// 0 <= v < 9007199254740992
// Probability that v >= 9e15, is
// 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251
if (v >= 9e15) {
b = crypto.getRandomValues(new Uint32Array(2));
a[i] = b[0];
a[i + 1] = b[1];
} else {
// 0 <= v <= 8999999999999999
// 0 <= (v % 1e14) <= 99999999999999
c.push(v % 1e14);
i += 2;
}
}
i = k / 2;
// Node.js supporting crypto.randomBytes.
} else if (crypto.randomBytes) {
// buffer
a = crypto.randomBytes(k *= 7);
for (; i < k;) {
// 0x1000000000000 is 2^48, 0x10000000000 is 2^40
// 0x100000000 is 2^32, 0x1000000 is 2^24
// 11111 11111111 11111111 11111111 11111111 11111111 11111111
// 0 <= v < 9007199254740992
v = (a[i] & 31) * 0x1000000000000 + a[i + 1] * 0x10000000000 + a[i + 2] * 0x100000000 + a[i + 3] * 0x1000000 + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];
if (v >= 9e15) {
crypto.randomBytes(7).copy(a, i);
} else {
// 0 <= (v % 1e14) <= 99999999999999
c.push(v % 1e14);
i += 7;
}
}
i = k / 7;
} else {
CRYPTO = false;
if (ERRORS) raise(14, 'crypto unavailable', crypto);
}
}
// Use Math.random.
if (!CRYPTO) {
for (; i < k;) {
v = random53bitInt();
if (v < 9e15) c[i++] = v % 1e14;
}
}
k = c[--i];
dp %= LOG_BASE;
// Convert trailing digits to zeros according to dp.
if (k && dp) {
v = POWS_TEN[LOG_BASE - dp];
c[i] = mathfloor(k / v) * v;
}
// Remove trailing elements which are zero.
for (; c[i] === 0; c.pop(), i--) {}
// Zero?
if (i < 0) {
c = [e = 0];
} else {
// Remove leading elements which are zero and adjust exponent accordingly.
for (e = -1; c[0] === 0; c.splice(0, 1), e -= LOG_BASE) {}
// Count the digits of the first element of c to determine leading zeros, and...
for (i = 1, v = c[0]; v >= 10; v /= 10, i++) {}
// adjust the exponent accordingly.
if (i < LOG_BASE) e -= LOG_BASE - i;
}
rand.e = e;
rand.c = c;
return rand;
};
}();
// PRIVATE FUNCTIONS
// Convert a numeric string of baseIn to a numeric string of baseOut.
function convertBase(str, baseOut, baseIn, sign) {
var d,
e,
k,
r,
x,
xc,
y,
i = str.indexOf('.'),
dp = DECIMAL_PLACES,
rm = ROUNDING_MODE;
if (baseIn < 37) str = str.toLowerCase();
// Non-integer.
if (i >= 0) {
k = POW_PRECISION;
// Unlimited precision.
POW_PRECISION = 0;
str = str.replace('.', '');
y = new BigNumber(baseIn);
x = y.pow(str.length - i);
POW_PRECISION = k;
// Convert str as if an integer, then restore the fraction part by dividing the
// result by its base raised to a power.
y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e), 10, baseOut);
y.e = y.c.length;
}
// Convert the number as integer.
xc = toBaseOut(str, baseIn, baseOut);
e = k = xc.length;
// Remove trailing zeros.
for (; xc[--k] == 0; xc.pop()) {}
if (!xc[0]) return '0';
if (i < 0) {
--e;
} else {
x.c = xc;
x.e = e;
// sign is needed for correct rounding.
x.s = sign;
x = div(x, y, dp, rm, baseOut);
xc = x.c;
r = x.r;
e = x.e;
}
d = e + dp + 1;
// The rounding digit, i.e. the digit to the right of the digit that may be rounded up.
i = xc[d];
k = baseOut / 2;
r = r || d < 0 || xc[d + 1] != null;
r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : i > k || i == k && (rm == 4 || r || rm == 6 && xc[d - 1] & 1 || rm == (x.s < 0 ? 8 : 7));
if (d < 1 || !xc[0]) {
// 1^-dp or 0.
str = r ? toFixedPoint('1', -dp) : '0';
} else {
xc.length = d;
if (r) {
// Rounding up may mean the previous digit has to be rounded up and so on.
for (--baseOut; ++xc[--d] > baseOut;) {
xc[d] = 0;
if (!d) {
++e;
xc = [1].concat(xc);
}
}
}
// Determine trailing zeros.
for (k = xc.length; !xc[--k];) {}
// E.g. [4, 11, 15] becomes 4bf.
for (i = 0, str = ''; i <= k; str += ALPHABET.charAt(xc[i++])) {}
str = toFixedPoint(str, e);
}
// The caller will add the sign.
return str;
}
// Perform division in the specified base. Called by div and convertBase.
div = function () {
// Assume non-zero x and k.
function multiply(x, k, base) {
var m,
temp,
xlo,
xhi,
carry = 0,
i = x.length,
klo = k % SQRT_BASE,
khi = k / SQRT_BASE | 0;
for (x = x.slice(); i--;) {
xlo = x[i] % SQRT_BASE;
xhi = x[i] / SQRT_BASE | 0;
m = khi * xlo + xhi * klo;
temp = klo * xlo + m % SQRT_BASE * SQRT_BASE + carry;
carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;
x[i] = temp % base;
}
if (carry) x = [carry].concat(x);
return x;
}
function compare(a, b, aL, bL) {
var i, cmp;
if (aL != bL) {
cmp = aL > bL ? 1 : -1;
} else {
for (i = cmp = 0; i < aL; i++) {
if (a[i] != b[i]) {
cmp = a[i] > b[i] ? 1 : -1;
break;
}
}
}
return cmp;
}
function subtract(a, b, aL, base) {
var i = 0;
// Subtract b from a.
for (; aL--;) {
a[aL] -= i;
i = a[aL] < b[aL] ? 1 : 0;
a[aL] = i * base + a[aL] - b[aL];
}
// Remove leading zeros.
for (; !a[0] && a.length > 1; a.splice(0, 1)) {}
}
// x: dividend, y: divisor.
return function (x, y, dp, rm, base) {
var cmp,
e,
i,
more,
n,
prod,
prodL,
q,
qc,
rem,
remL,
rem0,
xi,
xL,
yc0,
yL,
yz,
s = x.s == y.s ? 1 : -1,
xc = x.c,
yc = y.c;
// Either NaN, Infinity or 0?
if (!xc || !xc[0] || !yc || !yc[0]) {
return new BigNumber(
// Return NaN if either NaN, or both Infinity or 0.
!x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
xc && xc[0] == 0 || !yc ? s * 0 : s / 0);
}
q = new BigNumber(s);
qc = q.c = [];
e = x.e - y.e;
s = dp + e + 1;
if (!base) {
base = BASE;
e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);
s = s / LOG_BASE | 0;
}
// Result exponent may be one less then the current value of e.
// The coefficients of the BigNumbers from convertBase may have trailing zeros.
for (i = 0; yc[i] == (xc[i] || 0); i++) {}
if (yc[i] > (xc[i] || 0)) e--;
if (s < 0) {
qc.push(1);
more = true;
} else {
xL = xc.length;
yL = yc.length;
i = 0;
s += 2;
// Normalise xc and yc so highest order digit of yc is >= base / 2.
n = mathfloor(base / (yc[0] + 1));
// Not necessary, but to handle odd bases where yc[0] == ( base / 2 ) - 1.
// if ( n > 1 || n++ == 1 && yc[0] < base / 2 ) {
if (n > 1) {
yc = multiply(yc, n, base);
xc = multiply(xc, n, base);
yL = yc.length;
xL = xc.length;
}
xi = yL;
rem = xc.slice(0, yL);
remL = rem.length;
// Add zeros to make remainder as long as divisor.
for (; remL < yL; rem[remL++] = 0) {}
yz = yc.slice();
yz = [0].concat(yz);
yc0 = yc[0];
if (yc[1] >= base / 2) yc0++;
// Not necessary, but to prevent trial digit n > base, when using base 3.
// else if ( base == 3 && yc0 == 1 ) yc0 = 1 + 1e-15;
do {
n = 0;
// Compare divisor and remainder.
cmp = compare(yc, rem, yL, remL);
// If divisor < remainder.
if (cmp < 0) {
// Calculate trial digit, n.
rem0 = rem[0];
if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
// n is how many times the divisor goes into the current remainder.
n = mathfloor(rem0 / yc0);
// Algorithm:
// 1. product = divisor * trial digit (n)
// 2. if product > remainder: product -= divisor, n--
// 3. remainder -= product
// 4. if product was < remainder at 2:
// 5. compare new remainder and divisor
// 6. If remainder > divisor: remainder -= divisor, n++
if (n > 1) {
// n may be > base only when base is 3.
if (n >= base) n = base - 1;
// product = divisor * trial digit.
prod = multiply(yc, n, base);
prodL = prod.length;
remL = rem.length;
// Compare product and remainder.
// If product > remainder.
// Trial digit n too high.
// n is 1 too high about 5% of the time, and is not known to have
// ever been more than 1 too high.
while (compare(prod, rem, prodL, remL) == 1) {
n--;
// Subtract divisor from product.
subtract(prod, yL < prodL ? yz : yc, prodL, base);
prodL = prod.length;
cmp = 1;
}
} else {
// n is 0 or 1, cmp is -1.
// If n is 0, there is no need to compare yc and rem again below,
// so change cmp to 1 to avoid it.
// If n is 1, leave cmp as -1, so yc and rem are compared again.
if (n == 0) {
// divisor < remainder, so n must be at least 1.
cmp = n = 1;
}
// product = divisor
prod = yc.slice();
prodL = prod.length;
}
if (prodL < remL) prod = [0].concat(prod);
// Subtract product from remainder.
subtract(rem, prod, remL, base);
remL = rem.length;
// If product was < remainder.
if (cmp == -1) {
// Compare divisor and new remainder.
// If divisor < new remainder, subtract divisor from remainder.
// Trial digit n too low.
// n is 1 too low about 5% of the time, and very rarely 2 too low.
while (compare(yc, rem, yL, remL) < 1) {
n++;
// Subtract divisor from remainder.
subtract(rem, yL < remL ? yz : yc, remL, base);
remL = rem.length;
}
}
} else if (cmp === 0) {
n++;
rem = [0];
} // else cmp === 1 and n will be 0
// Add the next digit, n, to the result array.
qc[i++] = n;
// Update the remainder.
if (rem[0]) {
rem[remL++] = xc[xi] || 0;
} else {
rem = [xc[xi]];
remL = 1;
}
} while ((xi++ < xL || rem[0] != null) && s--);
more = rem[0] != null;
// Leading zero?
if (!qc[0]) qc.splice(0, 1);
}
if (base == BASE) {
// To calculate q.e, first get the number of digits of qc[0].
for (i = 1, s = qc[0]; s >= 10; s /= 10, i++) {}
round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);
// Caller is convertBase.
} else {
q.e = e;
q.r = +more;
}
return q;
};
}();
/*
* Return a string representing the value of BigNumber n in fixed-point or exponential
* notation rounded to the specified decimal places or significant digits.
*
* n is a BigNumber.
* i is the index of the last digit required (i.e. the digit that may be rounded up).
* rm is the rounding mode.
* caller is caller id: toExponential 19, toFixed 20, toFormat 21, toPrecision 24.
*/
function format(n, i, rm, caller) {
var c0, e, ne, len, str;
rm = rm != null && isValidInt(rm, 0, 8, caller, roundingMode) ? rm | 0 : ROUNDING_MODE;
if (!n.c) return n.toString();
c0 = n.c[0];
ne = n.e;
if (i == null) {
str = coeffToString(n.c);
str = caller == 19 || caller == 24 && ne <= TO_EXP_NEG ? toExponential(str, ne) : toFixedPoint(str, ne);
} else {
n = round(new BigNumber(n), i, rm);
// n.e may have changed if the value was rounded up.
e = n.e;
str = coeffToString(n.c);
len = str.length;
// toPrecision returns exponential notation if the number of significant digits
// specified is less than the number of digits necessary to represent the integer
// part of the value in fixed-point notation.
// Exponential notation.
if (caller == 19 || caller == 24 && (i <= e || e <= TO_EXP_NEG)) {
// Append zeros?
for (; len < i; str += '0', len++) {}
str = toExponential(str, e);
// Fixed-point notation.
} else {
i -= ne;
str = toFixedPoint(str, e);
// Append zeros?
if (e + 1 > len) {
if (--i > 0) for (str += '.'; i--; str += '0') {}
} else {
i += e - len;
if (i > 0) {
if (e + 1 == len) str += '.';
for (; i--; str += '0') {}
}
}
}
}
return n.s < 0 && c0 ? '-' + str : str;
}
// Handle BigNumber.max and BigNumber.min.
function maxOrMin(args, method) {
var m,
n,
i = 0;
if (isArray(args[0])) args = args[0];
m = new BigNumber(args[0]);
for (; ++i < args.length;) {
n = new BigNumber(args[i]);
// If any number is NaN, return NaN.
if (!n.s) {
m = n;
break;
} else if (method.call(m, n)) {
m = n;
}
}
return m;
}
/*
* Return true if n is an integer in range, otherwise throw.
* Use for argument validation when ERRORS is true.
*/
function intValidatorWithErrors(n, min, max, caller, name) {
if (n < min || n > max || n != truncate(n)) {
raise(caller, (name || 'decimal places') + (n < min || n > max ? ' out of range' : ' not an integer'), n);
}
return true;
}
/*
* Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.
* Called by minus, plus and times.
*/
function normalise(n, c, e) {
var i = 1,
j = c.length;
// Remove trailing zeros.
for (; !c[--j]; c.pop()) {}
// Calculate the base 10 exponent. First get the number of digits of c[0].
for (j = c[0]; j >= 10; j /= 10, i++) {}
// Overflow?
if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {
// Infinity.
n.c = n.e = null;
// Underflow?
} else if (e < MIN_EXP) {
// Zero.
n.c = [n.e = 0];
} else {
n.e = e;
n.c = c;
}
return n;
}
// Handle values that fail the validity test in BigNumber.
parseNumeric = function () {
var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i,
dotAfter = /^([^.]+)\.$/,
dotBefore = /^\.([^.]+)$/,
isInfinityOrNaN = /^-?(Infinity|NaN)$/,
whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
return function (x, str, num, b) {
var base,
s = num ? str : str.replace(whitespaceOrPlus, '');
// No exception on ±Infinity or NaN.
if (isInfinityOrNaN.test(s)) {
x.s = isNaN(s) ? null : s < 0 ? -1 : 1;
} else {
if (!num) {
// basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i
s = s.replace(basePrefix, function (m, p1, p2) {
base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;
return !b || b == base ? p1 : m;
});
if (b) {
base = b;
// E.g. '1.' to '1', '.1' to '0.1'
s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');
}
if (str != s) return new BigNumber(s, base);
}
// 'new BigNumber() not a number: {n}'
// 'new BigNumber() not a base {b} number: {n}'
if (ERRORS) raise(id, 'not a' + (b ? ' base ' + b : '') + ' number', str);
x.s = null;
}
x.c = x.e = null;
id = 0;
};
}();
// Throw a BigNumber Error.
function raise(caller, msg, val) {
var error = new Error(['new BigNumber', // 0
'cmp', // 1
'config', // 2
'div', // 3
'divToInt', // 4
'eq', // 5
'gt', // 6
'gte', // 7
'lt', // 8
'lte', // 9
'minus', // 10
'mod', // 11
'plus', // 12
'precision', // 13
'random', // 14
'round', // 15
'shift', // 16
'times', // 17
'toDigits', // 18
'toExponential', // 19
'toFixed', // 20
'toFormat', // 21
'toFraction', // 22
'pow', // 23
'toPrecision', // 24
'toString', // 25
'BigNumber' // 26
][caller] + '() ' + msg + ': ' + val);
error.name = 'BigNumber Error';
id = 0;
throw error;
}
/*
* Round x to sd significant digits using rounding mode rm. Check for over/under-flow.
* If r is truthy, it is known that there are more digits after the rounding digit.
*/
function round(x, sd, rm, r) {
var d,
i,
j,
k,
n,
ni,
rd,
xc = x.c,
pows10 = POWS_TEN;
// if x is not Infinity or NaN...
if (xc) {
// rd is the rounding digit, i.e. the digit after the digit that may be rounded up.
// n is a base 1e14 number, the value of the element of array x.c containing rd.
// ni is the index of n within x.c.
// d is the number of digits of n.
// i is the index of rd within n including leading zeros.
// j is the actual index of rd within n (if < 0, rd is a leading zero).
out: {
// Get the number of digits of the first element of xc.
for (d = 1, k = xc[0]; k >= 10; k /= 10, d++) {}
i = sd - d;
// If the rounding digit is in the first element of xc...
if (i < 0) {
i += LOG_BASE;
j = sd;
n = xc[ni = 0];
// Get the rounding digit at index j of n.
rd = n / pows10[d - j - 1] % 10 | 0;
} else {
ni = mathceil((i + 1) / LOG_BASE);
if (ni >= xc.length) {
if (r) {
// Needed by sqrt.
for (; xc.length <= ni; xc.push(0)) {}
n = rd = 0;
d = 1;
i %= LOG_BASE;
j = i - LOG_BASE + 1;
} else {
break out;
}
} else {
n = k = xc[ni];
// Get the number of digits of n.
for (d = 1; k >= 10; k /= 10, d++) {}
// Get the index of rd within n.
i %= LOG_BASE;
// Get the index of rd within n, adjusted for leading zeros.
// The number of leading zeros of n is given by LOG_BASE - d.
j = i - LOG_BASE + d;
// Get the rounding digit at index j of n.
rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;
}
}
r = r || sd < 0 ||
// Are there any non-zero digits after the rounding digit?
// The expression n % pows10[ d - j - 1 ] returns all digits of n to the right
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);
r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&
// Check whether the digit to the left of the rounding digit is odd.
(i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7));
if (sd < 1 || !xc[0]) {
xc.length = 0;
if (r) {
// Convert sd to decimal places.
sd -= x.e + 1;
// 1, 0.1, 0.01, 0.001, 0.0001 etc.
xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];
x.e = -sd || 0;
} else {
// Zero.
xc[0] = x.e = 0;
}
return x;
}
// Remove excess digits.
if (i == 0) {
xc.length = ni;
k = 1;
ni--;
} else {
xc.length = ni + 1;
k = pows10[LOG_BASE - i];
// E.g. 56700 becomes 56000 if 7 is the rounding digit.
// j > 0 means i > number of leading zeros of n.
xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;
}
// Round up?
if (r) {
for (;;) {
// If the digit to be rounded up is in the first element of xc...
if (ni == 0) {
// i will be the length of xc[0] before k is added.
for (i = 1, j = xc[0]; j >= 10; j /= 10, i++) {}
j = xc[0] += k;
for (k = 1; j >= 10; j /= 10, k++) {}
// if i != k the length has increased.
if (i != k) {
x.e++;
if (xc[0] == BASE) xc[0] = 1;
}
break;
} else {
xc[ni] += k;
if (xc[ni] != BASE) break;
xc[ni--] = 0;
k = 1;
}
}
}
// Remove trailing zeros.
for (i = xc.length; xc[--i] === 0; xc.pop()) {}
}
// Overflow? Infinity.
if (x.e > MAX_EXP) {
x.c = x.e = null;
// Underflow? Zero.
} else if (x.e < MIN_EXP) {
x.c = [x.e = 0];
}
}
return x;
}
// PROTOTYPE/INSTANCE METHODS
/*
* Return a new BigNumber whose value is the absolute value of this BigNumber.
*/
P.absoluteValue = P.abs = function () {
var x = new BigNumber(this);
if (x.s < 0) x.s = 1;
return x;
};
/*
* Return a new BigNumber whose value is the value of this BigNumber rounded to a whole
* number in the direction of Infinity.
*/
P.ceil = function () {
return round(new BigNumber(this), this.e + 1, 2);
};
/*
* Return
* 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),
* -1 if the value of this BigNumber is less than the value of BigNumber(y, b),
* 0 if they have the same value,
* or null if the value of either is NaN.
*/
P.comparedTo = P.cmp = function (y, b) {
id = 1;
return compare(this, new BigNumber(y, b));
};
/*
* Return the number of decimal places of the value of this BigNumber, or null if the value
* of this BigNumber is ±Infinity or NaN.
*/
P.decimalPlaces = P.dp = function () {
var n,
v,
c = this.c;
if (!c) return null;
n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;
// Subtract the number of trailing zeros of the last number.
if (v = c[v]) for (; v % 10 == 0; v /= 10, n--) {}
if (n < 0) n = 0;
return n;
};
/*
* n / 0 = I
* n / N = N
* n / I = 0
* 0 / n = 0
* 0 / 0 = N
* 0 / N = N
* 0 / I = 0
* N / n = N
* N / 0 = N
* N / N = N
* N / I = N
* I / n = I
* I / 0 = I
* I / N = N
* I / I = N
*
* Return a new BigNumber whose value is the value of this BigNumber divided by the value of
* BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.
*/
P.dividedBy = P.div = function (y, b) {
id = 3;
return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);
};
/*
* Return a new BigNumber whose value is the integer part of dividing the value of this
* BigNumber by the value of BigNumber(y, b).
*/
P.dividedToIntegerBy = P.divToInt = function (y, b) {
id = 4;
return div(this, new BigNumber(y, b), 0, 1);
};
/*
* Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),
* otherwise returns false.
*/
P.equals = P.eq = function (y, b) {
id = 5;
return compare(this, new BigNumber(y, b)) === 0;
};
/*
* Return a new BigNumber whose value is the value of this BigNumber rounded to a whole
* number in the direction of -Infinity.
*/
P.floor = function () {
return round(new BigNumber(this), this.e + 1, 3);
};
/*
* Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),
* otherwise returns false.
*/
P.greaterThan = P.gt = function (y, b) {
id = 6;
return compare(this, new BigNumber(y, b)) > 0;
};
/*
* Return true if the value of this BigNumber is greater than or equal to the value of
* BigNumber(y, b), otherwise returns false.
*/
P.greaterThanOrEqualTo = P.gte = function (y, b) {
id = 7;
return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;
};
/*
* Return true if the value of this BigNumber is a finite number, otherwise returns false.
*/
P.isFinite = function () {
return !!this.c;
};
/*
* Return true if the value of this BigNumber is an integer, otherwise return false.
*/
P.isInteger = P.isInt = function () {
return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;
};
/*
* Return true if the value of this BigNumber is NaN, otherwise returns false.
*/
P.isNaN = function () {
return !this.s;
};
/*
* Return true if the value of this BigNumber is negative, otherwise returns false.
*/
P.isNegative = P.isNeg = function () {
return this.s < 0;
};
/*
* Return true if the value of this BigNumber is 0 or -0, otherwise returns false.
*/
P.isZero = function () {
return !!this.c && this.c[0] == 0;
};
/*
* Return true if the value of this BigNumber is less than the value of BigNumber(y, b),
* otherwise returns false.
*/
P.lessThan = P.lt = function (y, b) {
id = 8;
return compare(this, new BigNumber(y, b)) < 0;
};
/*
* Return true if the value of this BigNumber is less than or equal to the value of
* BigNumber(y, b), otherwise returns false.
*/
P.lessThanOrEqualTo = P.lte = function (y, b) {
id = 9;
return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;
};
/*
* n - 0 = n
* n - N = N
* n - I = -I
* 0 - n = -n
* 0 - 0 = 0
* 0 - N = N
* 0 - I = -I
* N - n = N
* N - 0 = N
* N - N = N
* N - I = N
* I - n = I
* I - 0 = I
* I - N = N
* I - I = N
*
* Return a new BigNumber whose value is the value of this BigNumber minus the value of
* BigNumber(y, b).
*/
P.minus = P.sub = function (y, b) {
var i,
j,
t,
xLTy,
x = this,
a = x.s;
id = 10;
y = new BigNumber(y, b);
b = y.s;
// Either NaN?
if (!a || !b) return new BigNumber(NaN);
// Signs differ?
if (a != b) {
y.s = -b;
return x.plus(y);
}
var xe = x.e / LOG_BASE,
ye = y.e / LOG_BASE,
xc = x.c,
yc = y.c;
if (!xe || !ye) {
// Either Infinity?
if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);
// Either zero?
if (!xc[0] || !yc[0]) {
// Return y if y is non-zero, x if x is non-zero, or zero if both are zero.
return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
ROUNDING_MODE == 3 ? -0 : 0);
}
}
xe = bitFloor(xe);
ye = bitFloor(ye);
xc = xc.slice();
// Determine which is the bigger number.
if (a = xe - ye) {
if (xLTy = a < 0) {
a = -a;
t = xc;
} else {
ye = xe;
t = yc;
}
t.reverse();
// Prepend zeros to equalise exponents.
for (b = a; b--; t.push(0)) {}
t.reverse();
} else {
// Exponents equal. Check digit by digit.
j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;
for (a = b = 0; b < j; b++) {
if (xc[b] != yc[b]) {
xLTy = xc[b] < yc[b];
break;
}
}
}
// x < y? Point xc to the array of the bigger number.
if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;
b = (j = yc.length) - (i = xc.length);
// Append zeros to xc if shorter.
// No need to add zeros to yc if shorter as subtract only needs to start at yc.length.
if (b > 0) for (; b--; xc[i++] = 0) {}
b = BASE - 1;
// Subtract yc from xc.
for (; j > a;) {
if (xc[--j] < yc[j]) {
for (i = j; i && !xc[--i]; xc[i] = b) {}
--xc[i];
xc[j] += BASE;
}
xc[j] -= yc[j];
}
// Remove leading zeros and adjust exponent accordingly.
for (; xc[0] == 0; xc.splice(0, 1), --ye) {}
// Zero?
if (!xc[0]) {
// Following IEEE 754 (2008) 6.3,
// n - n = +0 but n - n = -0 when rounding towards -Infinity.
y.s = ROUNDING_MODE == 3 ? -1 : 1;
y.c = [y.e = 0];
return y;
}
// No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity
// for finite x and y.
return normalise(y, xc, ye);
};
/*
* n % 0 = N
* n % N = N
* n % I = n
* 0 % n = 0
* -0 % n = -0
* 0 % 0 = N
* 0 % N = N
* 0 % I = 0
* N % n = N
* N % 0 = N
* N % N = N
* N % I = N
* I % n = N
* I % 0 = N
* I % N = N
* I % I = N
*
* Return a new BigNumber whose value is the value of this BigNumber modulo the value of
* BigNumber(y, b). The result depends on the value of MODULO_MODE.
*/
P.modulo = P.mod = function (y, b) {
var q,
s,
x = this;
id = 11;
y = new BigNumber(y, b);
// Return NaN if x is Infinity or NaN, or y is NaN or zero.
if (!x.c || !y.s || y.c && !y.c[0]) {
return new BigNumber(NaN);
// Return x if y is Infinity or x is zero.
} else if (!y.c || x.c && !x.c[0]) {
return new BigNumber(x);
}
if (MODULO_MODE == 9) {
// Euclidian division: q = sign(y) * floor(x / abs(y))
// r = x - qy where 0 <= r < abs(y)
s = y.s;
y.s = 1;
q = div(x, y, 0, 3);
y.s = s;
q.s *= s;
} else {
q = div(x, y, 0, MODULO_MODE);
}
return x.minus(q.times(y));
};
/*
* Return a new BigNumber whose value is the value of this BigNumber negated,
* i.e. multiplied by -1.
*/
P.negated = P.neg = function () {
var x = new BigNumber(this);
x.s = -x.s || null;
return x;
};
/*
* n + 0 = n
* n + N = N
* n + I = I
* 0 + n = n
* 0 + 0 = 0
* 0 + N = N
* 0 + I = I
* N + n = N
* N + 0 = N
* N + N = N
* N + I = N
* I + n = I
* I + 0 = I
* I + N = N
* I + I = I
*
* Return a new BigNumber whose value is the value of this BigNumber plus the value of
* BigNumber(y, b).
*/
P.plus = P.add = function (y, b) {
var t,
x = this,
a = x.s;
id = 12;
y = new BigNumber(y, b);
b = y.s;
// Either NaN?
if (!a || !b) return new BigNumber(NaN);
// Signs differ?
if (a != b) {
y.s = -b;
return x.minus(y);
}
var xe = x.e / LOG_BASE,
ye = y.e / LOG_BASE,
xc = x.c,
yc = y.c;
if (!xe || !ye) {
// Return ±Infinity if either ±Infinity.
if (!xc || !yc) return new BigNumber(a / 0);
// Either zero?
// Return y if y is non-zero, x if x is non-zero, or zero if both are zero.
if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);
}
xe = bitFloor(xe);
ye = bitFloor(ye);
xc = xc.slice();
// Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.
if (a = xe - ye) {
if (a > 0) {
ye = xe;
t = yc;
} else {
a = -a;
t = xc;
}
t.reverse();
for (; a--; t.push(0)) {}
t.reverse();
}
a = xc.length;
b = yc.length;
// Point xc to the longer array, and b to the shorter length.
if (a - b < 0) t = yc, yc = xc, xc = t, b = a;
// Only start adding at yc.length - 1 as the further digits of xc can be ignored.
for (a = 0; b;) {
a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
}
if (a) {
xc = [a].concat(xc);
++ye;
}
// No need to check for zero, as +x + +y != 0 && -x + -y != 0
// ye = MAX_EXP + 1 possible
return normalise(y, xc, ye);
};
/*
* Return the number of significant digits of the value of this BigNumber.
*
* [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0.
*/
P.precision = P.sd = function (z) {
var n,
v,
x = this,
c = x.c;
// 'precision() argument not a boolean or binary digit: {z}'
if (z != null && z !== !!z && z !== 1 && z !== 0) {
if (ERRORS) raise(13, 'argument' + notBool, z);
if (z != !!z) z = null;
}
if (!c) return null;
v = c.length - 1;
n = v * LOG_BASE + 1;
if (v = c[v]) {
// Subtract the number of trailing zeros of the last element.
for (; v % 10 == 0; v /= 10, n--) {}
// Add the number of digits of the first element.
for (v = c[0]; v >= 10; v /= 10, n++) {}
}
if (z && x.e + 1 > n) n = x.e + 1;
return n;
};
/*
* Return a new BigNumber whose value is the value of this BigNumber rounded to a maximum of
* dp decimal places using rounding mode rm, or to 0 and ROUNDING_MODE respectively if
* omitted.
*
* [dp] {number} Decimal places. Integer, 0 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'round() decimal places out of range: {dp}'
* 'round() decimal places not an integer: {dp}'
* 'round() rounding mode not an integer: {rm}'
* 'round() rounding mode out of range: {rm}'
*/
P.round = function (dp, rm) {
var n = new BigNumber(this);
if (dp == null || isValidInt(dp, 0, MAX, 15)) {
round(n, ~~dp + this.e + 1, rm == null || !isValidInt(rm, 0, 8, 15, roundingMode) ? ROUNDING_MODE : rm | 0);
}
return n;
};
/*
* Return a new BigNumber whose value is the value of this BigNumber shifted by k places
* (powers of 10). Shift to the right if n > 0, and to the left if n < 0.
*
* k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.
*
* If k is out of range and ERRORS is false, the result will be ±0 if k < 0, or ±Infinity
* otherwise.
*
* 'shift() argument not an integer: {k}'
* 'shift() argument out of range: {k}'
*/
P.shift = function (k) {
var n = this;
return isValidInt(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER, 16, 'argument')
// k < 1e+21, or truncate(k) will produce exponential notation.
? n.times('1e' + truncate(k)) : new BigNumber(n.c && n.c[0] && (k < -MAX_SAFE_INTEGER || k > MAX_SAFE_INTEGER) ? n.s * (k < 0 ? 0 : 1 / 0) : n);
};
/*
* sqrt(-n) = N
* sqrt( N) = N
* sqrt(-I) = N
* sqrt( I) = I
* sqrt( 0) = 0
* sqrt(-0) = -0
*
* Return a new BigNumber whose value is the square root of the value of this BigNumber,
* rounded according to DECIMAL_PLACES and ROUNDING_MODE.
*/
P.squareRoot = P.sqrt = function () {
var m,
n,
r,
rep,
t,
x = this,
c = x.c,
s = x.s,
e = x.e,
dp = DECIMAL_PLACES + 4,
half = new BigNumber('0.5');
// Negative/NaN/Infinity/zero?
if (s !== 1 || !c || !c[0]) {
return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);
}
// Initial estimate.
s = Math.sqrt(+x);
// Math.sqrt underflow/overflow?
// Pass x to Math.sqrt as integer, then adjust the exponent of the result.
if (s == 0 || s == 1 / 0) {
n = coeffToString(c);
if ((n.length + e) % 2 == 0) n += '0';
s = Math.sqrt(n);
e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);
if (s == 1 / 0) {
n = '1e' + e;
} else {
n = s.toExponential();
n = n.slice(0, n.indexOf('e') + 1) + e;
}
r = new BigNumber(n);
} else {
r = new BigNumber(s + '');
}
// Check for zero.
// r could be zero if MIN_EXP is changed after the this value was created.
// This would cause a division by zero (x/t) and hence Infinity below, which would cause
// coeffToString to throw.
if (r.c[0]) {
e = r.e;
s = e + dp;
if (s < 3) s = 0;
// Newton-Raphson iteration.
for (;;) {
t = r;
r = half.times(t.plus(div(x, t, dp, 1)));
if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) {
// The exponent of r may here be one less than the final result exponent,
// e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits
// are indexed correctly.
if (r.e < e) --s;
n = n.slice(s - 3, s + 1);
// The 4th rounding digit may be in error by -1 so if the 4 rounding digits
// are 9999 or 4999 (i.e. approaching a rounding boundary) continue the
// iteration.
if (n == '9999' || !rep && n == '4999') {
// On the first iteration only, check to see if rounding up gives the
// exact result as the nines may infinitely repeat.
if (!rep) {
round(t, t.e + DECIMAL_PLACES + 2, 0);
if (t.times(t).eq(x)) {
r = t;
break;
}
}
dp += 4;
s += 4;
rep = 1;
} else {
// If rounding digits are null, 0{0,4} or 50{0,3}, check for exact
// result. If not, then there are further digits and m will be truthy.
if (!+n || !+n.slice(1) && n.charAt(0) == '5') {
// Truncate to the first rounding digit.
round(r, r.e + DECIMAL_PLACES + 2, 1);
m = !r.times(r).eq(x);
}
break;
}
}
}
}
return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);
};
/*
* n * 0 = 0
* n * N = N
* n * I = I
* 0 * n = 0
* 0 * 0 = 0
* 0 * N = N
* 0 * I = N
* N * n = N
* N * 0 = N
* N * N = N
* N * I = N
* I * n = I
* I * 0 = N
* I * N = N
* I * I = I
*
* Return a new BigNumber whose value is the value of this BigNumber times the value of
* BigNumber(y, b).
*/
P.times = P.mul = function (y, b) {
var c,
e,
i,
j,
k,
m,
xcL,
xlo,
xhi,
ycL,
ylo,
yhi,
zc,
base,
sqrtBase,
x = this,
xc = x.c,
yc = (id = 17, y = new BigNumber(y, b)).c;
// Either NaN, ±Infinity or ±0?
if (!xc || !yc || !xc[0] || !yc[0]) {
// Return NaN if either is NaN, or one is 0 and the other is Infinity.
if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {
y.c = y.e = y.s = null;
} else {
y.s *= x.s;
// Return ±Infinity if either is ±Infinity.
if (!xc || !yc) {
y.c = y.e = null;
// Return ±0 if either is ±0.
} else {
y.c = [0];
y.e = 0;
}
}
return y;
}
e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);
y.s *= x.s;
xcL = xc.length;
ycL = yc.length;
// Ensure xc points to longer array and xcL to its length.
if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;
// Initialise the result array with zeros.
for (i = xcL + ycL, zc = []; i--; zc.push(0)) {}
base = BASE;
sqrtBase = SQRT_BASE;
for (i = ycL; --i >= 0;) {
c = 0;
ylo = yc[i] % sqrtBase;
yhi = yc[i] / sqrtBase | 0;
for (k = xcL, j = i + k; j > i;) {
xlo = xc[--k] % sqrtBase;
xhi = xc[k] / sqrtBase | 0;
m = yhi * xlo + xhi * ylo;
xlo = ylo * xlo + m % sqrtBase * sqrtBase + zc[j] + c;
c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;
zc[j--] = xlo % base;
}
zc[j] = c;
}
if (c) {
++e;
} else {
zc.splice(0, 1);
}
return normalise(y, zc, e);
};
/*
* Return a new BigNumber whose value is the value of this BigNumber rounded to a maximum of
* sd significant digits using rounding mode rm, or ROUNDING_MODE if rm is omitted.
*
* [sd] {number} Significant digits. Integer, 1 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'toDigits() precision out of range: {sd}'
* 'toDigits() precision not an integer: {sd}'
* 'toDigits() rounding mode not an integer: {rm}'
* 'toDigits() rounding mode out of range: {rm}'
*/
P.toDigits = function (sd, rm) {
var n = new BigNumber(this);
sd = sd == null || !isValidInt(sd, 1, MAX, 18, 'precision') ? null : sd | 0;
rm = rm == null || !isValidInt(rm, 0, 8, 18, roundingMode) ? ROUNDING_MODE : rm | 0;
return sd ? round(n, sd, rm) : n;
};
/*
* Return a string representing the value of this BigNumber in exponential notation and
* rounded using ROUNDING_MODE to dp fixed decimal places.
*
* [dp] {number} Decimal places. Integer, 0 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'toExponential() decimal places not an integer: {dp}'
* 'toExponential() decimal places out of range: {dp}'
* 'toExponential() rounding mode not an integer: {rm}'
* 'toExponential() rounding mode out of range: {rm}'
*/
P.toExponential = function (dp, rm) {
return format(this, dp != null && isValidInt(dp, 0, MAX, 19) ? ~~dp + 1 : null, rm, 19);
};
/*
* Return a string representing the value of this BigNumber in fixed-point notation rounding
* to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.
*
* Note: as with JavaScript's number type, (-0).toFixed(0) is '0',
* but e.g. (-0.00001).toFixed(0) is '-0'.
*
* [dp] {number} Decimal places. Integer, 0 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'toFixed() decimal places not an integer: {dp}'
* 'toFixed() decimal places out of range: {dp}'
* 'toFixed() rounding mode not an integer: {rm}'
* 'toFixed() rounding mode out of range: {rm}'
*/
P.toFixed = function (dp, rm) {
return format(this, dp != null && isValidInt(dp, 0, MAX, 20) ? ~~dp + this.e + 1 : null, rm, 20);
};
/*
* Return a string representing the value of this BigNumber in fixed-point notation rounded
* using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties
* of the FORMAT object (see BigNumber.config).
*
* FORMAT = {
* decimalSeparator : '.',
* groupSeparator : ',',
* groupSize : 3,
* secondaryGroupSize : 0,
* fractionGroupSeparator : '\xA0', // non-breaking space
* fractionGroupSize : 0
* };
*
* [dp] {number} Decimal places. Integer, 0 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'toFormat() decimal places not an integer: {dp}'
* 'toFormat() decimal places out of range: {dp}'
* 'toFormat() rounding mode not an integer: {rm}'
* 'toFormat() rounding mode out of range: {rm}'
*/
P.toFormat = function (dp, rm) {
var str = format(this, dp != null && isValidInt(dp, 0, MAX, 21) ? ~~dp + this.e + 1 : null, rm, 21);
if (this.c) {
var i,
arr = str.split('.'),
g1 = +FORMAT.groupSize,
g2 = +FORMAT.secondaryGroupSize,
groupSeparator = FORMAT.groupSeparator,
intPart = arr[0],
fractionPart = arr[1],
isNeg = this.s < 0,
intDigits = isNeg ? intPart.slice(1) : intPart,
len = intDigits.length;
if (g2) i = g1, g1 = g2, g2 = i, len -= i;
if (g1 > 0 && len > 0) {
i = len % g1 || g1;
intPart = intDigits.substr(0, i);
for (; i < len; i += g1) {
intPart += groupSeparator + intDigits.substr(i, g1);
}
if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);
if (isNeg) intPart = '-' + intPart;
}
str = fractionPart ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize) ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), '$&' + FORMAT.fractionGroupSeparator) : fractionPart) : intPart;
}
return str;
};
/*
* Return a string array representing the value of this BigNumber as a simple fraction with
* an integer numerator and an integer denominator. The denominator will be a positive
* non-zero value less than or equal to the specified maximum denominator. If a maximum
* denominator is not specified, the denominator will be the lowest value necessary to
* represent the number exactly.
*
* [md] {number|string|BigNumber} Integer >= 1 and < Infinity. The maximum denominator.
*
* 'toFraction() max denominator not an integer: {md}'
* 'toFraction() max denominator out of range: {md}'
*/
P.toFraction = function (md) {
var arr,
d0,
d2,
e,
exp,
n,
n0,
q,
s,
k = ERRORS,
x = this,
xc = x.c,
d = new BigNumber(ONE),
n1 = d0 = new BigNumber(ONE),
d1 = n0 = new BigNumber(ONE);
if (md != null) {
ERRORS = false;
n = new BigNumber(md);
ERRORS = k;
if (!(k = n.isInt()) || n.lt(ONE)) {
if (ERRORS) {
raise(22, 'max denominator ' + (k ? 'out of range' : 'not an integer'), md);
}
// ERRORS is false:
// If md is a finite non-integer >= 1, round it to an integer and use it.
md = !k && n.c && round(n, n.e + 1, 1).gte(ONE) ? n : null;
}
}
if (!xc) return x.toString();
s = coeffToString(xc);
// Determine initial denominator.
// d is a power of 10 and the minimum max denominator that specifies the value exactly.
e = d.e = s.length - x.e - 1;
d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];
md = !md || n.cmp(d) > 0 ? e > 0 ? d : n1 : n;
exp = MAX_EXP;
MAX_EXP = 1 / 0;
n = new BigNumber(s);
// n0 = d1 = 0
n0.c[0] = 0;
for (;;) {
q = div(n, d, 0, 1);
d2 = d0.plus(q.times(d1));
if (d2.cmp(md) == 1) break;
d0 = d1;
d1 = d2;
n1 = n0.plus(q.times(d2 = n1));
n0 = d2;
d = n.minus(q.times(d2 = d));
n = d2;
}
d2 = div(md.minus(d0), d1, 0, 1);
n0 = n0.plus(d2.times(n1));
d0 = d0.plus(d2.times(d1));
n0.s = n1.s = x.s;
e *= 2;
// Determine which fraction is closer to x, n0/d0 or n1/d1
arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().cmp(div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 ? [n1.toString(), d1.toString()] : [n0.toString(), d0.toString()];
MAX_EXP = exp;
return arr;
};
/*
* Return the value of this BigNumber converted to a number primitive.
*/
P.toNumber = function () {
return +this;
};
/*
* Return a BigNumber whose value is the value of this BigNumber raised to the power n.
* If m is present, return the result modulo m.
* If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.
* If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using
* ROUNDING_MODE.
*
* The modular power operation works efficiently when x, n, and m are positive integers,
* otherwise it is equivalent to calculating x.toPower(n).modulo(m) (with POW_PRECISION 0).
*
* n {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.
* [m] {number|string|BigNumber} The modulus.
*
* 'pow() exponent not an integer: {n}'
* 'pow() exponent out of range: {n}'
*
* Performs 54 loop iterations for n of 9007199254740991.
*/
P.toPower = P.pow = function (n, m) {
var k,
y,
z,
i = mathfloor(n < 0 ? -n : +n),
x = this;
if (m != null) {
id = 23;
m = new BigNumber(m);
}
// Pass ±Infinity to Math.pow if exponent is out of range.
if (!isValidInt(n, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER, 23, 'exponent') && (!isFinite(n) || i > MAX_SAFE_INTEGER && (n /= 0) || parseFloat(n) != n && !(n = NaN)) || n == 0) {
k = Math.pow(+x, n);
return new BigNumber(m ? k % m : k);
}
if (m) {
if (n > 1 && x.gt(ONE) && x.isInt() && m.gt(ONE) && m.isInt()) {
x = x.mod(m);
} else {
z = m;
// Nullify m so only a single mod operation is performed at the end.
m = null;
}
} else if (POW_PRECISION) {
// Truncating each coefficient array to a length of k after each multiplication
// equates to truncating significant digits to POW_PRECISION + [28, 41],
// i.e. there will be a minimum of 28 guard digits retained.
// (Using + 1.5 would give [9, 21] guard digits.)
k = mathceil(POW_PRECISION / LOG_BASE + 2);
}
y = new BigNumber(ONE);
for (;;) {
if (i % 2) {
y = y.times(x);
if (!y.c) break;
if (k) {
if (y.c.length > k) y.c.length = k;
} else if (m) {
y = y.mod(m);
}
}
i = mathfloor(i / 2);
if (!i) break;
x = x.times(x);
if (k) {
if (x.c && x.c.length > k) x.c.length = k;
} else if (m) {
x = x.mod(m);
}
}
if (m) return y;
if (n < 0) y = ONE.div(y);
return z ? y.mod(z) : k ? round(y, POW_PRECISION, ROUNDING_MODE) : y;
};
/*
* Return a string representing the value of this BigNumber rounded to sd significant digits
* using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits
* necessary to represent the integer part of the value in fixed-point notation, then use
* exponential notation.
*
* [sd] {number} Significant digits. Integer, 1 to MAX inclusive.
* [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
*
* 'toPrecision() precision not an integer: {sd}'
* 'toPrecision() precision out of range: {sd}'
* 'toPrecision() rounding mode not an integer: {rm}'
* 'toPrecision() rounding mode out of range: {rm}'
*/
P.toPrecision = function (sd, rm) {
return format(this, sd != null && isValidInt(sd, 1, MAX, 24, 'precision') ? sd | 0 : null, rm, 24);
};
/*
* Return a string representing the value of this BigNumber in base b, or base 10 if b is
* omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and
* ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent
* that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than
* TO_EXP_NEG, return exponential notation.
*
* [b] {number} Integer, 2 to 64 inclusive.
*
* 'toString() base not an integer: {b}'
* 'toString() base out of range: {b}'
*/
P.toString = function (b) {
var str,
n = this,
s = n.s,
e = n.e;
// Infinity or NaN?
if (e === null) {
if (s) {
str = 'Infinity';
if (s < 0) str = '-' + str;
} else {
str = 'NaN';
}
} else {
str = coeffToString(n.c);
if (b == null || !isValidInt(b, 2, 64, 25, 'base')) {
str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(str, e) : toFixedPoint(str, e);
} else {
str = convertBase(toFixedPoint(str, e), b | 0, 10, s);
}
if (s < 0 && n.c[0]) str = '-' + str;
}
return str;
};
/*
* Return a new BigNumber whose value is the value of this BigNumber truncated to a whole
* number.
*/
P.truncated = P.trunc = function () {
return round(new BigNumber(this), this.e + 1, 1);
};
/*
* Return as toString, but do not accept a base argument, and include the minus sign for
* negative zero.
*/
P.valueOf = P.toJSON = function () {
var str,
n = this,
e = n.e;
if (e === null) return n.toString();
str = coeffToString(n.c);
str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(str, e) : toFixedPoint(str, e);
return n.s < 0 ? '-' + str : str;
};
P.isBigNumber = true;
if (config != null) BigNumber.config(config);
return BigNumber;
}
// PRIVATE HELPER FUNCTIONS
function bitFloor(n) {
var i = n | 0;
return n > 0 || n === i ? i : i - 1;
}
// Return a coefficient array as a string of base 10 digits.
function coeffToString(a) {
var s,
z,
i = 1,
j = a.length,
r = a[0] + '';
for (; i < j;) {
s = a[i++] + '';
z = LOG_BASE - s.length;
for (; z--; s = '0' + s) {}
r += s;
}
// Determine trailing zeros.
for (j = r.length; r.charCodeAt(--j) === 48;) {}
return r.slice(0, j + 1 || 1);
}
// Compare the value of BigNumbers x and y.
function compare(x, y) {
var a,
b,
xc = x.c,
yc = y.c,
i = x.s,
j = y.s,
k = x.e,
l = y.e;
// Either NaN?
if (!i || !j) return null;
a = xc && !xc[0];
b = yc && !yc[0];
// Either zero?
if (a || b) return a ? b ? 0 : -j : i;
// Signs differ?
if (i != j) return i;
a = i < 0;
b = k == l;
// Either Infinity?
if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;
// Compare exponents.
if (!b) return k > l ^ a ? 1 : -1;
j = (k = xc.length) < (l = yc.length) ? k : l;
// Compare digit by digit.
for (i = 0; i < j; i++) {
if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;
} // Compare lengths.
return k == l ? 0 : k > l ^ a ? 1 : -1;
}
/*
* Return true if n is a valid number in range, otherwise false.
* Use for argument validation when ERRORS is false.
* Note: parseInt('1e+1') == 1 but parseFloat('1e+1') == 10.
*/
function intValidatorNoErrors(n, min, max) {
return (n = truncate(n)) >= min && n <= max;
}
function isArray(obj) {
return Object.prototype.toString.call(obj) == '[object Array]';
}
/*
* Convert string of baseIn to an array of numbers of baseOut.
* Eg. convertBase('255', 10, 16) returns [15, 15].
* Eg. convertBase('ff', 16, 10) returns [2, 5, 5].
*/
function toBaseOut(str, baseIn, baseOut) {
var j,
arr = [0],
arrL,
i = 0,
len = str.length;
for (; i < len;) {
for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) {}
arr[j = 0] += ALPHABET.indexOf(str.charAt(i++));
for (; j < arr.length; j++) {
if (arr[j] > baseOut - 1) {
if (arr[j + 1] == null) arr[j + 1] = 0;
arr[j + 1] += arr[j] / baseOut | 0;
arr[j] %= baseOut;
}
}
}
return arr.reverse();
}
function toExponential(str, e) {
return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + (e < 0 ? 'e' : 'e+') + e;
}
function toFixedPoint(str, e) {
var len, z;
// Negative exponent?
if (e < 0) {
// Prepend zeros.
for (z = '0.'; ++e; z += '0') {}
str = z + str;
// Positive exponent
} else {
len = str.length;
// Append zeros.
if (++e > len) {
for (z = '0', e -= len; --e; z += '0') {}
str += z;
} else if (e < len) {
str = str.slice(0, e) + '.' + str.slice(e);
}
}
return str;
}
function truncate(n) {
n = parseFloat(n);
return n < 0 ? mathceil(n) : mathfloor(n);
}
// EXPORT
BigNumber = constructorFactory();
BigNumber['default'] = BigNumber.BigNumber = BigNumber;
// AMD.
if (typeof define == 'function' && define.amd) {
define(function () {
return BigNumber;
});
// Node.js and other environments that support module.exports.
} else if (typeof module != 'undefined' && module.exports) {
module.exports = BigNumber;
// Browser.
} else {
if (!globalObj) globalObj = typeof self != 'undefined' ? self : Function('return this')();
globalObj.BigNumber = BigNumber;
}
})(undefined);
},{}],159:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var createHash = require('create-hash');
var pbkdf2 = require('pbkdf2').pbkdf2Sync;
var randomBytes = require('randombytes');
// use unorm until String.prototype.normalize gets better browser support
var unorm = require('unorm');
var CHINESE_SIMPLIFIED_WORDLIST = require('./wordlists/chinese_simplified.json');
var CHINESE_TRADITIONAL_WORDLIST = require('./wordlists/chinese_traditional.json');
var ENGLISH_WORDLIST = require('./wordlists/english.json');
var FRENCH_WORDLIST = require('./wordlists/french.json');
var ITALIAN_WORDLIST = require('./wordlists/italian.json');
var JAPANESE_WORDLIST = require('./wordlists/japanese.json');
var KOREAN_WORDLIST = require('./wordlists/korean.json');
var SPANISH_WORDLIST = require('./wordlists/spanish.json');
var DEFAULT_WORDLIST = ENGLISH_WORDLIST;
var INVALID_MNEMONIC = 'Invalid mnemonic';
var INVALID_ENTROPY = 'Invalid entropy';
var INVALID_CHECKSUM = 'Invalid mnemonic checksum';
function lpad(str, padString, length) {
while (str.length < length) {
str = padString + str;
}return str;
}
function binaryToByte(bin) {
return parseInt(bin, 2);
}
function bytesToBinary(bytes) {
return bytes.map(function (x) {
return lpad(x.toString(2), '0', 8);
}).join('');
}
function deriveChecksumBits(entropyBuffer) {
var ENT = entropyBuffer.length * 8;
var CS = ENT / 32;
var hash = createHash('sha256').update(entropyBuffer).digest();
return bytesToBinary([].slice.call(hash)).slice(0, CS);
}
function salt(password) {
return 'mnemonic' + (password || '');
}
function mnemonicToSeed(mnemonic, password) {
var mnemonicBuffer = Buffer.from(unorm.nfkd(mnemonic), 'utf8');
var saltBuffer = Buffer.from(salt(unorm.nfkd(password)), 'utf8');
return pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'sha512');
}
function mnemonicToSeedHex(mnemonic, password) {
return mnemonicToSeed(mnemonic, password).toString('hex');
}
function mnemonicToEntropy(mnemonic, wordlist) {
wordlist = wordlist || DEFAULT_WORDLIST;
var words = unorm.nfkd(mnemonic).split(' ');
if (words.length % 3 !== 0) throw new Error(INVALID_MNEMONIC);
// convert word indices to 11 bit binary strings
var bits = words.map(function (word) {
var index = wordlist.indexOf(word);
if (index === -1) throw new Error(INVALID_MNEMONIC);
return lpad(index.toString(2), '0', 11);
}).join('');
// split the binary string into ENT/CS
var dividerIndex = Math.floor(bits.length / 33) * 32;
var entropyBits = bits.slice(0, dividerIndex);
var checksumBits = bits.slice(dividerIndex);
// calculate the checksum and compare
var entropyBytes = entropyBits.match(/(.{1,8})/g).map(binaryToByte);
if (entropyBytes.length < 16) throw new Error(INVALID_ENTROPY);
if (entropyBytes.length > 32) throw new Error(INVALID_ENTROPY);
if (entropyBytes.length % 4 !== 0) throw new Error(INVALID_ENTROPY);
var entropy = Buffer.from(entropyBytes);
var newChecksum = deriveChecksumBits(entropy);
if (newChecksum !== checksumBits) throw new Error(INVALID_CHECKSUM);
return entropy.toString('hex');
}
function entropyToMnemonic(entropy, wordlist) {
if (!Buffer.isBuffer(entropy)) entropy = Buffer.from(entropy, 'hex');
wordlist = wordlist || DEFAULT_WORDLIST;
// 128 <= ENT <= 256
if (entropy.length < 16) throw new TypeError(INVALID_ENTROPY);
if (entropy.length > 32) throw new TypeError(INVALID_ENTROPY);
if (entropy.length % 4 !== 0) throw new TypeError(INVALID_ENTROPY);
var entropyBits = bytesToBinary([].slice.call(entropy));
var checksumBits = deriveChecksumBits(entropy);
var bits = entropyBits + checksumBits;
var chunks = bits.match(/(.{1,11})/g);
var words = chunks.map(function (binary) {
var index = binaryToByte(binary);
return wordlist[index];
});
return wordlist === JAPANESE_WORDLIST ? words.join('\u3000') : words.join(' ');
}
function generateMnemonic(strength, rng, wordlist) {
strength = strength || 128;
if (strength % 32 !== 0) throw new TypeError(INVALID_ENTROPY);
rng = rng || randomBytes;
return entropyToMnemonic(rng(strength / 8), wordlist);
}
function validateMnemonic(mnemonic, wordlist) {
try {
mnemonicToEntropy(mnemonic, wordlist);
} catch (e) {
return false;
}
return true;
}
module.exports = {
mnemonicToSeed: mnemonicToSeed,
mnemonicToSeedHex: mnemonicToSeedHex,
mnemonicToEntropy: mnemonicToEntropy,
entropyToMnemonic: entropyToMnemonic,
generateMnemonic: generateMnemonic,
validateMnemonic: validateMnemonic,
wordlists: {
EN: ENGLISH_WORDLIST,
JA: JAPANESE_WORDLIST,
chinese_simplified: CHINESE_SIMPLIFIED_WORDLIST,
chinese_traditional: CHINESE_TRADITIONAL_WORDLIST,
english: ENGLISH_WORDLIST,
french: FRENCH_WORDLIST,
italian: ITALIAN_WORDLIST,
japanese: JAPANESE_WORDLIST,
korean: KOREAN_WORDLIST,
spanish: SPANISH_WORDLIST
}
};
},{"./wordlists/chinese_simplified.json":160,"./wordlists/chinese_traditional.json":161,"./wordlists/english.json":162,"./wordlists/french.json":163,"./wordlists/italian.json":164,"./wordlists/japanese.json":165,"./wordlists/korean.json":166,"./wordlists/spanish.json":167,"create-hash":206,"pbkdf2":288,"randombytes":302,"safe-buffer":319,"unorm":339}],160:[function(require,module,exports){
module.exports=[
"的",
"一",
"是",
"在",
"不",
"了",
"有",
"和",
"人",
"这",
"中",
"大",
"为",
"上",
"个",
"国",
"我",
"以",
"要",
"他",
"时",
"来",
"用",
"们",
"生",
"到",
"作",
"地",
"于",
"出",
"就",
"分",
"对",
"成",
"会",
"可",
"主",
"发",
"年",
"动",
"同",
"工",
"也",
"能",
"下",
"过",
"子",
"说",
"产",
"种",
"面",
"而",
"方",
"后",
"多",
"定",
"行",
"学",
"法",
"所",
"民",
"得",
"经",
"十",
"三",
"之",
"进",
"着",
"等",
"部",
"度",
"家",
"电",
"力",
"里",
"如",
"水",
"化",
"高",
"自",
"二",
"理",
"起",
"小",
"物",
"现",
"实",
"加",
"量",
"都",
"两",
"体",
"制",
"机",
"当",
"使",
"点",
"从",
"业",
"本",
"去",
"把",
"性",
"好",
"应",
"开",
"它",
"合",
"还",
"因",
"由",
"其",
"些",
"然",
"前",
"外",
"天",
"政",
"四",
"日",
"那",
"社",
"义",
"事",
"平",
"形",
"相",
"全",
"表",
"间",
"样",
"与",
"关",
"各",
"重",
"新",
"线",
"内",
"数",
"正",
"心",
"反",
"你",
"明",
"看",
"原",
"又",
"么",
"利",
"比",
"或",
"但",
"质",
"气",
"第",
"向",
"道",
"命",
"此",
"变",
"条",
"只",
"没",
"结",
"解",
"问",
"意",
"建",
"月",
"公",
"无",
"系",
"军",
"很",
"情",
"者",
"最",
"立",
"代",
"想",
"已",
"通",
"并",
"提",
"直",
"题",
"党",
"程",
"展",
"五",
"果",
"料",
"象",
"员",
"革",
"位",
"入",
"常",
"文",
"总",
"次",
"品",
"式",
"活",
"设",
"及",
"管",
"特",
"件",
"长",
"求",
"老",
"头",
"基",
"资",
"边",
"流",
"路",
"级",
"少",
"图",
"山",
"统",
"接",
"知",
"较",
"将",
"组",
"见",
"计",
"别",
"她",
"手",
"角",
"期",
"根",
"论",
"运",
"农",
"指",
"几",
"九",
"区",
"强",
"放",
"决",
"西",
"被",
"干",
"做",
"必",
"战",
"先",
"回",
"则",
"任",
"取",
"据",
"处",
"队",
"南",
"给",
"色",
"光",
"门",
"即",
"保",
"治",
"北",
"造",
"百",
"规",
"热",
"领",
"七",
"海",
"口",
"东",
"导",
"器",
"压",
"志",
"世",
"金",
"增",
"争",
"济",
"阶",
"油",
"思",
"术",
"极",
"交",
"受",
"联",
"什",
"认",
"六",
"共",
"权",
"收",
"证",
"改",
"清",
"美",
"再",
"采",
"转",
"更",
"单",
"风",
"切",
"打",
"白",
"教",
"速",
"花",
"带",
"安",
"场",
"身",
"车",
"例",
"真",
"务",
"具",
"万",
"每",
"目",
"至",
"达",
"走",
"积",
"示",
"议",
"声",
"报",
"斗",
"完",
"类",
"八",
"离",
"华",
"名",
"确",
"才",
"科",
"张",
"信",
"马",
"节",
"话",
"米",
"整",
"空",
"元",
"况",
"今",
"集",
"温",
"传",
"土",
"许",
"步",
"群",
"广",
"石",
"记",
"需",
"段",
"研",
"界",
"拉",
"林",
"律",
"叫",
"且",
"究",
"观",
"越",
"织",
"装",
"影",
"算",
"低",
"持",
"音",
"众",
"书",
"布",
"复",
"容",
"儿",
"须",
"际",
"商",
"非",
"验",
"连",
"断",
"深",
"难",
"近",
"矿",
"千",
"周",
"委",
"素",
"技",
"备",
"半",
"办",
"青",
"省",
"列",
"习",
"响",
"约",
"支",
"般",
"史",
"感",
"劳",
"便",
"团",
"往",
"酸",
"历",
"市",
"克",
"何",
"除",
"消",
"构",
"府",
"称",
"太",
"准",
"精",
"值",
"号",
"率",
"族",
"维",
"划",
"选",
"标",
"写",
"存",
"候",
"毛",
"亲",
"快",
"效",
"斯",
"院",
"查",
"江",
"型",
"眼",
"王",
"按",
"格",
"养",
"易",
"置",
"派",
"层",
"片",
"始",
"却",
"专",
"状",
"育",
"厂",
"京",
"识",
"适",
"属",
"圆",
"包",
"火",
"住",
"调",
"满",
"县",
"局",
"照",
"参",
"红",
"细",
"引",
"听",
"该",
"铁",
"价",
"严",
"首",
"底",
"液",
"官",
"德",
"随",
"病",
"苏",
"失",
"尔",
"死",
"讲",
"配",
"女",
"黄",
"推",
"显",
"谈",
"罪",
"神",
"艺",
"呢",
"席",
"含",
"企",
"望",
"密",
"批",
"营",
"项",
"防",
"举",
"球",
"英",
"氧",
"势",
"告",
"李",
"台",
"落",
"木",
"帮",
"轮",
"破",
"亚",
"师",
"围",
"注",
"远",
"字",
"材",
"排",
"供",
"河",
"态",
"封",
"另",
"施",
"减",
"树",
"溶",
"怎",
"止",
"案",
"言",
"士",
"均",
"武",
"固",
"叶",
"鱼",
"波",
"视",
"仅",
"费",
"紧",
"爱",
"左",
"章",
"早",
"朝",
"害",
"续",
"轻",
"服",
"试",
"食",
"充",
"兵",
"源",
"判",
"护",
"司",
"足",
"某",
"练",
"差",
"致",
"板",
"田",
"降",
"黑",
"犯",
"负",
"击",
"范",
"继",
"兴",
"似",
"余",
"坚",
"曲",
"输",
"修",
"故",
"城",
"夫",
"够",
"送",
"笔",
"船",
"占",
"右",
"财",
"吃",
"富",
"春",
"职",
"觉",
"汉",
"画",
"功",
"巴",
"跟",
"虽",
"杂",
"飞",
"检",
"吸",
"助",
"升",
"阳",
"互",
"初",
"创",
"抗",
"考",
"投",
"坏",
"策",
"古",
"径",
"换",
"未",
"跑",
"留",
"钢",
"曾",
"端",
"责",
"站",
"简",
"述",
"钱",
"副",
"尽",
"帝",
"射",
"草",
"冲",
"承",
"独",
"令",
"限",
"阿",
"宣",
"环",
"双",
"请",
"超",
"微",
"让",
"控",
"州",
"良",
"轴",
"找",
"否",
"纪",
"益",
"依",
"优",
"顶",
"础",
"载",
"倒",
"房",
"突",
"坐",
"粉",
"敌",
"略",
"客",
"袁",
"冷",
"胜",
"绝",
"析",
"块",
"剂",
"测",
"丝",
"协",
"诉",
"念",
"陈",
"仍",
"罗",
"盐",
"友",
"洋",
"错",
"苦",
"夜",
"刑",
"移",
"频",
"逐",
"靠",
"混",
"母",
"短",
"皮",
"终",
"聚",
"汽",
"村",
"云",
"哪",
"既",
"距",
"卫",
"停",
"烈",
"央",
"察",
"烧",
"迅",
"境",
"若",
"印",
"洲",
"刻",
"括",
"激",
"孔",
"搞",
"甚",
"室",
"待",
"核",
"校",
"散",
"侵",
"吧",
"甲",
"游",
"久",
"菜",
"味",
"旧",
"模",
"湖",
"货",
"损",
"预",
"阻",
"毫",
"普",
"稳",
"乙",
"妈",
"植",
"息",
"扩",
"银",
"语",
"挥",
"酒",
"守",
"拿",
"序",
"纸",
"医",
"缺",
"雨",
"吗",
"针",
"刘",
"啊",
"急",
"唱",
"误",
"训",
"愿",
"审",
"附",
"获",
"茶",
"鲜",
"粮",
"斤",
"孩",
"脱",
"硫",
"肥",
"善",
"龙",
"演",
"父",
"渐",
"血",
"欢",
"械",
"掌",
"歌",
"沙",
"刚",
"攻",
"谓",
"盾",
"讨",
"晚",
"粒",
"乱",
"燃",
"矛",
"乎",
"杀",
"药",
"宁",
"鲁",
"贵",
"钟",
"煤",
"读",
"班",
"伯",
"香",
"介",
"迫",
"句",
"丰",
"培",
"握",
"兰",
"担",
"弦",
"蛋",
"沉",
"假",
"穿",
"执",
"答",
"乐",
"谁",
"顺",
"烟",
"缩",
"征",
"脸",
"喜",
"松",
"脚",
"困",
"异",
"免",
"背",
"星",
"福",
"买",
"染",
"井",
"概",
"慢",
"怕",
"磁",
"倍",
"祖",
"皇",
"促",
"静",
"补",
"评",
"翻",
"肉",
"践",
"尼",
"衣",
"宽",
"扬",
"棉",
"希",
"伤",
"操",
"垂",
"秋",
"宜",
"氢",
"套",
"督",
"振",
"架",
"亮",
"末",
"宪",
"庆",
"编",
"牛",
"触",
"映",
"雷",
"销",
"诗",
"座",
"居",
"抓",
"裂",
"胞",
"呼",
"娘",
"景",
"威",
"绿",
"晶",
"厚",
"盟",
"衡",
"鸡",
"孙",
"延",
"危",
"胶",
"屋",
"乡",
"临",
"陆",
"顾",
"掉",
"呀",
"灯",
"岁",
"措",
"束",
"耐",
"剧",
"玉",
"赵",
"跳",
"哥",
"季",
"课",
"凯",
"胡",
"额",
"款",
"绍",
"卷",
"齐",
"伟",
"蒸",
"殖",
"永",
"宗",
"苗",
"川",
"炉",
"岩",
"弱",
"零",
"杨",
"奏",
"沿",
"露",
"杆",
"探",
"滑",
"镇",
"饭",
"浓",
"航",
"怀",
"赶",
"库",
"夺",
"伊",
"灵",
"税",
"途",
"灭",
"赛",
"归",
"召",
"鼓",
"播",
"盘",
"裁",
"险",
"康",
"唯",
"录",
"菌",
"纯",
"借",
"糖",
"盖",
"横",
"符",
"私",
"努",
"堂",
"域",
"枪",
"润",
"幅",
"哈",
"竟",
"熟",
"虫",
"泽",
"脑",
"壤",
"碳",
"欧",
"遍",
"侧",
"寨",
"敢",
"彻",
"虑",
"斜",
"薄",
"庭",
"纳",
"弹",
"饲",
"伸",
"折",
"麦",
"湿",
"暗",
"荷",
"瓦",
"塞",
"床",
"筑",
"恶",
"户",
"访",
"塔",
"奇",
"透",
"梁",
"刀",
"旋",
"迹",
"卡",
"氯",
"遇",
"份",
"毒",
"泥",
"退",
"洗",
"摆",
"灰",
"彩",
"卖",
"耗",
"夏",
"择",
"忙",
"铜",
"献",
"硬",
"予",
"繁",
"圈",
"雪",
"函",
"亦",
"抽",
"篇",
"阵",
"阴",
"丁",
"尺",
"追",
"堆",
"雄",
"迎",
"泛",
"爸",
"楼",
"避",
"谋",
"吨",
"野",
"猪",
"旗",
"累",
"偏",
"典",
"馆",
"索",
"秦",
"脂",
"潮",
"爷",
"豆",
"忽",
"托",
"惊",
"塑",
"遗",
"愈",
"朱",
"替",
"纤",
"粗",
"倾",
"尚",
"痛",
"楚",
"谢",
"奋",
"购",
"磨",
"君",
"池",
"旁",
"碎",
"骨",
"监",
"捕",
"弟",
"暴",
"割",
"贯",
"殊",
"释",
"词",
"亡",
"壁",
"顿",
"宝",
"午",
"尘",
"闻",
"揭",
"炮",
"残",
"冬",
"桥",
"妇",
"警",
"综",
"招",
"吴",
"付",
"浮",
"遭",
"徐",
"您",
"摇",
"谷",
"赞",
"箱",
"隔",
"订",
"男",
"吹",
"园",
"纷",
"唐",
"败",
"宋",
"玻",
"巨",
"耕",
"坦",
"荣",
"闭",
"湾",
"键",
"凡",
"驻",
"锅",
"救",
"恩",
"剥",
"凝",
"碱",
"齿",
"截",
"炼",
"麻",
"纺",
"禁",
"废",
"盛",
"版",
"缓",
"净",
"睛",
"昌",
"婚",
"涉",
"筒",
"嘴",
"插",
"岸",
"朗",
"庄",
"街",
"藏",
"姑",
"贸",
"腐",
"奴",
"啦",
"惯",
"乘",
"伙",
"恢",
"匀",
"纱",
"扎",
"辩",
"耳",
"彪",
"臣",
"亿",
"璃",
"抵",
"脉",
"秀",
"萨",
"俄",
"网",
"舞",
"店",
"喷",
"纵",
"寸",
"汗",
"挂",
"洪",
"贺",
"闪",
"柬",
"爆",
"烯",
"津",
"稻",
"墙",
"软",
"勇",
"像",
"滚",
"厘",
"蒙",
"芳",
"肯",
"坡",
"柱",
"荡",
"腿",
"仪",
"旅",
"尾",
"轧",
"冰",
"贡",
"登",
"黎",
"削",
"钻",
"勒",
"逃",
"障",
"氨",
"郭",
"峰",
"币",
"港",
"伏",
"轨",
"亩",
"毕",
"擦",
"莫",
"刺",
"浪",
"秘",
"援",
"株",
"健",
"售",
"股",
"岛",
"甘",
"泡",
"睡",
"童",
"铸",
"汤",
"阀",
"休",
"汇",
"舍",
"牧",
"绕",
"炸",
"哲",
"磷",
"绩",
"朋",
"淡",
"尖",
"启",
"陷",
"柴",
"呈",
"徒",
"颜",
"泪",
"稍",
"忘",
"泵",
"蓝",
"拖",
"洞",
"授",
"镜",
"辛",
"壮",
"锋",
"贫",
"虚",
"弯",
"摩",
"泰",
"幼",
"廷",
"尊",
"窗",
"纲",
"弄",
"隶",
"疑",
"氏",
"宫",
"姐",
"震",
"瑞",
"怪",
"尤",
"琴",
"循",
"描",
"膜",
"违",
"夹",
"腰",
"缘",
"珠",
"穷",
"森",
"枝",
"竹",
"沟",
"催",
"绳",
"忆",
"邦",
"剩",
"幸",
"浆",
"栏",
"拥",
"牙",
"贮",
"礼",
"滤",
"钠",
"纹",
"罢",
"拍",
"咱",
"喊",
"袖",
"埃",
"勤",
"罚",
"焦",
"潜",
"伍",
"墨",
"欲",
"缝",
"姓",
"刊",
"饱",
"仿",
"奖",
"铝",
"鬼",
"丽",
"跨",
"默",
"挖",
"链",
"扫",
"喝",
"袋",
"炭",
"污",
"幕",
"诸",
"弧",
"励",
"梅",
"奶",
"洁",
"灾",
"舟",
"鉴",
"苯",
"讼",
"抱",
"毁",
"懂",
"寒",
"智",
"埔",
"寄",
"届",
"跃",
"渡",
"挑",
"丹",
"艰",
"贝",
"碰",
"拔",
"爹",
"戴",
"码",
"梦",
"芽",
"熔",
"赤",
"渔",
"哭",
"敬",
"颗",
"奔",
"铅",
"仲",
"虎",
"稀",
"妹",
"乏",
"珍",
"申",
"桌",
"遵",
"允",
"隆",
"螺",
"仓",
"魏",
"锐",
"晓",
"氮",
"兼",
"隐",
"碍",
"赫",
"拨",
"忠",
"肃",
"缸",
"牵",
"抢",
"博",
"巧",
"壳",
"兄",
"杜",
"讯",
"诚",
"碧",
"祥",
"柯",
"页",
"巡",
"矩",
"悲",
"灌",
"龄",
"伦",
"票",
"寻",
"桂",
"铺",
"圣",
"恐",
"恰",
"郑",
"趣",
"抬",
"荒",
"腾",
"贴",
"柔",
"滴",
"猛",
"阔",
"辆",
"妻",
"填",
"撤",
"储",
"签",
"闹",
"扰",
"紫",
"砂",
"递",
"戏",
"吊",
"陶",
"伐",
"喂",
"疗",
"瓶",
"婆",
"抚",
"臂",
"摸",
"忍",
"虾",
"蜡",
"邻",
"胸",
"巩",
"挤",
"偶",
"弃",
"槽",
"劲",
"乳",
"邓",
"吉",
"仁",
"烂",
"砖",
"租",
"乌",
"舰",
"伴",
"瓜",
"浅",
"丙",
"暂",
"燥",
"橡",
"柳",
"迷",
"暖",
"牌",
"秧",
"胆",
"详",
"簧",
"踏",
"瓷",
"谱",
"呆",
"宾",
"糊",
"洛",
"辉",
"愤",
"竞",
"隙",
"怒",
"粘",
"乃",
"绪",
"肩",
"籍",
"敏",
"涂",
"熙",
"皆",
"侦",
"悬",
"掘",
"享",
"纠",
"醒",
"狂",
"锁",
"淀",
"恨",
"牲",
"霸",
"爬",
"赏",
"逆",
"玩",
"陵",
"祝",
"秒",
"浙",
"貌",
"役",
"彼",
"悉",
"鸭",
"趋",
"凤",
"晨",
"畜",
"辈",
"秩",
"卵",
"署",
"梯",
"炎",
"滩",
"棋",
"驱",
"筛",
"峡",
"冒",
"啥",
"寿",
"译",
"浸",
"泉",
"帽",
"迟",
"硅",
"疆",
"贷",
"漏",
"稿",
"冠",
"嫩",
"胁",
"芯",
"牢",
"叛",
"蚀",
"奥",
"鸣",
"岭",
"羊",
"凭",
"串",
"塘",
"绘",
"酵",
"融",
"盆",
"锡",
"庙",
"筹",
"冻",
"辅",
"摄",
"袭",
"筋",
"拒",
"僚",
"旱",
"钾",
"鸟",
"漆",
"沈",
"眉",
"疏",
"添",
"棒",
"穗",
"硝",
"韩",
"逼",
"扭",
"侨",
"凉",
"挺",
"碗",
"栽",
"炒",
"杯",
"患",
"馏",
"劝",
"豪",
"辽",
"勃",
"鸿",
"旦",
"吏",
"拜",
"狗",
"埋",
"辊",
"掩",
"饮",
"搬",
"骂",
"辞",
"勾",
"扣",
"估",
"蒋",
"绒",
"雾",
"丈",
"朵",
"姆",
"拟",
"宇",
"辑",
"陕",
"雕",
"偿",
"蓄",
"崇",
"剪",
"倡",
"厅",
"咬",
"驶",
"薯",
"刷",
"斥",
"番",
"赋",
"奉",
"佛",
"浇",
"漫",
"曼",
"扇",
"钙",
"桃",
"扶",
"仔",
"返",
"俗",
"亏",
"腔",
"鞋",
"棱",
"覆",
"框",
"悄",
"叔",
"撞",
"骗",
"勘",
"旺",
"沸",
"孤",
"吐",
"孟",
"渠",
"屈",
"疾",
"妙",
"惜",
"仰",
"狠",
"胀",
"谐",
"抛",
"霉",
"桑",
"岗",
"嘛",
"衰",
"盗",
"渗",
"脏",
"赖",
"涌",
"甜",
"曹",
"阅",
"肌",
"哩",
"厉",
"烃",
"纬",
"毅",
"昨",
"伪",
"症",
"煮",
"叹",
"钉",
"搭",
"茎",
"笼",
"酷",
"偷",
"弓",
"锥",
"恒",
"杰",
"坑",
"鼻",
"翼",
"纶",
"叙",
"狱",
"逮",
"罐",
"络",
"棚",
"抑",
"膨",
"蔬",
"寺",
"骤",
"穆",
"冶",
"枯",
"册",
"尸",
"凸",
"绅",
"坯",
"牺",
"焰",
"轰",
"欣",
"晋",
"瘦",
"御",
"锭",
"锦",
"丧",
"旬",
"锻",
"垄",
"搜",
"扑",
"邀",
"亭",
"酯",
"迈",
"舒",
"脆",
"酶",
"闲",
"忧",
"酚",
"顽",
"羽",
"涨",
"卸",
"仗",
"陪",
"辟",
"惩",
"杭",
"姚",
"肚",
"捉",
"飘",
"漂",
"昆",
"欺",
"吾",
"郎",
"烷",
"汁",
"呵",
"饰",
"萧",
"雅",
"邮",
"迁",
"燕",
"撒",
"姻",
"赴",
"宴",
"烦",
"债",
"帐",
"斑",
"铃",
"旨",
"醇",
"董",
"饼",
"雏",
"姿",
"拌",
"傅",
"腹",
"妥",
"揉",
"贤",
"拆",
"歪",
"葡",
"胺",
"丢",
"浩",
"徽",
"昂",
"垫",
"挡",
"览",
"贪",
"慰",
"缴",
"汪",
"慌",
"冯",
"诺",
"姜",
"谊",
"凶",
"劣",
"诬",
"耀",
"昏",
"躺",
"盈",
"骑",
"乔",
"溪",
"丛",
"卢",
"抹",
"闷",
"咨",
"刮",
"驾",
"缆",
"悟",
"摘",
"铒",
"掷",
"颇",
"幻",
"柄",
"惠",
"惨",
"佳",
"仇",
"腊",
"窝",
"涤",
"剑",
"瞧",
"堡",
"泼",
"葱",
"罩",
"霍",
"捞",
"胎",
"苍",
"滨",
"俩",
"捅",
"湘",
"砍",
"霞",
"邵",
"萄",
"疯",
"淮",
"遂",
"熊",
"粪",
"烘",
"宿",
"档",
"戈",
"驳",
"嫂",
"裕",
"徙",
"箭",
"捐",
"肠",
"撑",
"晒",
"辨",
"殿",
"莲",
"摊",
"搅",
"酱",
"屏",
"疫",
"哀",
"蔡",
"堵",
"沫",
"皱",
"畅",
"叠",
"阁",
"莱",
"敲",
"辖",
"钩",
"痕",
"坝",
"巷",
"饿",
"祸",
"丘",
"玄",
"溜",
"曰",
"逻",
"彭",
"尝",
"卿",
"妨",
"艇",
"吞",
"韦",
"怨",
"矮",
"歇"
]
},{}],161:[function(require,module,exports){
module.exports=[
"的",
"一",
"是",
"在",
"不",
"了",
"有",
"和",
"人",
"這",
"中",
"大",
"為",
"上",
"個",
"國",
"我",
"以",
"要",
"他",
"時",
"來",
"用",
"們",
"生",
"到",
"作",
"地",
"於",
"出",
"就",
"分",
"對",
"成",
"會",
"可",
"主",
"發",
"年",
"動",
"同",
"工",
"也",
"能",
"下",
"過",
"子",
"說",
"產",
"種",
"面",
"而",
"方",
"後",
"多",
"定",
"行",
"學",
"法",
"所",
"民",
"得",
"經",
"十",
"三",
"之",
"進",
"著",
"等",
"部",
"度",
"家",
"電",
"力",
"裡",
"如",
"水",
"化",
"高",
"自",
"二",
"理",
"起",
"小",
"物",
"現",
"實",
"加",
"量",
"都",
"兩",
"體",
"制",
"機",
"當",
"使",
"點",
"從",
"業",
"本",
"去",
"把",
"性",
"好",
"應",
"開",
"它",
"合",
"還",
"因",
"由",
"其",
"些",
"然",
"前",
"外",
"天",
"政",
"四",
"日",
"那",
"社",
"義",
"事",
"平",
"形",
"相",
"全",
"表",
"間",
"樣",
"與",
"關",
"各",
"重",
"新",
"線",
"內",
"數",
"正",
"心",
"反",
"你",
"明",
"看",
"原",
"又",
"麼",
"利",
"比",
"或",
"但",
"質",
"氣",
"第",
"向",
"道",
"命",
"此",
"變",
"條",
"只",
"沒",
"結",
"解",
"問",
"意",
"建",
"月",
"公",
"無",
"系",
"軍",
"很",
"情",
"者",
"最",
"立",
"代",
"想",
"已",
"通",
"並",
"提",
"直",
"題",
"黨",
"程",
"展",
"五",
"果",
"料",
"象",
"員",
"革",
"位",
"入",
"常",
"文",
"總",
"次",
"品",
"式",
"活",
"設",
"及",
"管",
"特",
"件",
"長",
"求",
"老",
"頭",
"基",
"資",
"邊",
"流",
"路",
"級",
"少",
"圖",
"山",
"統",
"接",
"知",
"較",
"將",
"組",
"見",
"計",
"別",
"她",
"手",
"角",
"期",
"根",
"論",
"運",
"農",
"指",
"幾",
"九",
"區",
"強",
"放",
"決",
"西",
"被",
"幹",
"做",
"必",
"戰",
"先",
"回",
"則",
"任",
"取",
"據",
"處",
"隊",
"南",
"給",
"色",
"光",
"門",
"即",
"保",
"治",
"北",
"造",
"百",
"規",
"熱",
"領",
"七",
"海",
"口",
"東",
"導",
"器",
"壓",
"志",
"世",
"金",
"增",
"爭",
"濟",
"階",
"油",
"思",
"術",
"極",
"交",
"受",
"聯",
"什",
"認",
"六",
"共",
"權",
"收",
"證",
"改",
"清",
"美",
"再",
"採",
"轉",
"更",
"單",
"風",
"切",
"打",
"白",
"教",
"速",
"花",
"帶",
"安",
"場",
"身",
"車",
"例",
"真",
"務",
"具",
"萬",
"每",
"目",
"至",
"達",
"走",
"積",
"示",
"議",
"聲",
"報",
"鬥",
"完",
"類",
"八",
"離",
"華",
"名",
"確",
"才",
"科",
"張",
"信",
"馬",
"節",
"話",
"米",
"整",
"空",
"元",
"況",
"今",
"集",
"溫",
"傳",
"土",
"許",
"步",
"群",
"廣",
"石",
"記",
"需",
"段",
"研",
"界",
"拉",
"林",
"律",
"叫",
"且",
"究",
"觀",
"越",
"織",
"裝",
"影",
"算",
"低",
"持",
"音",
"眾",
"書",
"布",
"复",
"容",
"兒",
"須",
"際",
"商",
"非",
"驗",
"連",
"斷",
"深",
"難",
"近",
"礦",
"千",
"週",
"委",
"素",
"技",
"備",
"半",
"辦",
"青",
"省",
"列",
"習",
"響",
"約",
"支",
"般",
"史",
"感",
"勞",
"便",
"團",
"往",
"酸",
"歷",
"市",
"克",
"何",
"除",
"消",
"構",
"府",
"稱",
"太",
"準",
"精",
"值",
"號",
"率",
"族",
"維",
"劃",
"選",
"標",
"寫",
"存",
"候",
"毛",
"親",
"快",
"效",
"斯",
"院",
"查",
"江",
"型",
"眼",
"王",
"按",
"格",
"養",
"易",
"置",
"派",
"層",
"片",
"始",
"卻",
"專",
"狀",
"育",
"廠",
"京",
"識",
"適",
"屬",
"圓",
"包",
"火",
"住",
"調",
"滿",
"縣",
"局",
"照",
"參",
"紅",
"細",
"引",
"聽",
"該",
"鐵",
"價",
"嚴",
"首",
"底",
"液",
"官",
"德",
"隨",
"病",
"蘇",
"失",
"爾",
"死",
"講",
"配",
"女",
"黃",
"推",
"顯",
"談",
"罪",
"神",
"藝",
"呢",
"席",
"含",
"企",
"望",
"密",
"批",
"營",
"項",
"防",
"舉",
"球",
"英",
"氧",
"勢",
"告",
"李",
"台",
"落",
"木",
"幫",
"輪",
"破",
"亞",
"師",
"圍",
"注",
"遠",
"字",
"材",
"排",
"供",
"河",
"態",
"封",
"另",
"施",
"減",
"樹",
"溶",
"怎",
"止",
"案",
"言",
"士",
"均",
"武",
"固",
"葉",
"魚",
"波",
"視",
"僅",
"費",
"緊",
"愛",
"左",
"章",
"早",
"朝",
"害",
"續",
"輕",
"服",
"試",
"食",
"充",
"兵",
"源",
"判",
"護",
"司",
"足",
"某",
"練",
"差",
"致",
"板",
"田",
"降",
"黑",
"犯",
"負",
"擊",
"范",
"繼",
"興",
"似",
"餘",
"堅",
"曲",
"輸",
"修",
"故",
"城",
"夫",
"夠",
"送",
"筆",
"船",
"佔",
"右",
"財",
"吃",
"富",
"春",
"職",
"覺",
"漢",
"畫",
"功",
"巴",
"跟",
"雖",
"雜",
"飛",
"檢",
"吸",
"助",
"昇",
"陽",
"互",
"初",
"創",
"抗",
"考",
"投",
"壞",
"策",
"古",
"徑",
"換",
"未",
"跑",
"留",
"鋼",
"曾",
"端",
"責",
"站",
"簡",
"述",
"錢",
"副",
"盡",
"帝",
"射",
"草",
"衝",
"承",
"獨",
"令",
"限",
"阿",
"宣",
"環",
"雙",
"請",
"超",
"微",
"讓",
"控",
"州",
"良",
"軸",
"找",
"否",
"紀",
"益",
"依",
"優",
"頂",
"礎",
"載",
"倒",
"房",
"突",
"坐",
"粉",
"敵",
"略",
"客",
"袁",
"冷",
"勝",
"絕",
"析",
"塊",
"劑",
"測",
"絲",
"協",
"訴",
"念",
"陳",
"仍",
"羅",
"鹽",
"友",
"洋",
"錯",
"苦",
"夜",
"刑",
"移",
"頻",
"逐",
"靠",
"混",
"母",
"短",
"皮",
"終",
"聚",
"汽",
"村",
"雲",
"哪",
"既",
"距",
"衛",
"停",
"烈",
"央",
"察",
"燒",
"迅",
"境",
"若",
"印",
"洲",
"刻",
"括",
"激",
"孔",
"搞",
"甚",
"室",
"待",
"核",
"校",
"散",
"侵",
"吧",
"甲",
"遊",
"久",
"菜",
"味",
"舊",
"模",
"湖",
"貨",
"損",
"預",
"阻",
"毫",
"普",
"穩",
"乙",
"媽",
"植",
"息",
"擴",
"銀",
"語",
"揮",
"酒",
"守",
"拿",
"序",
"紙",
"醫",
"缺",
"雨",
"嗎",
"針",
"劉",
"啊",
"急",
"唱",
"誤",
"訓",
"願",
"審",
"附",
"獲",
"茶",
"鮮",
"糧",
"斤",
"孩",
"脫",
"硫",
"肥",
"善",
"龍",
"演",
"父",
"漸",
"血",
"歡",
"械",
"掌",
"歌",
"沙",
"剛",
"攻",
"謂",
"盾",
"討",
"晚",
"粒",
"亂",
"燃",
"矛",
"乎",
"殺",
"藥",
"寧",
"魯",
"貴",
"鐘",
"煤",
"讀",
"班",
"伯",
"香",
"介",
"迫",
"句",
"豐",
"培",
"握",
"蘭",
"擔",
"弦",
"蛋",
"沉",
"假",
"穿",
"執",
"答",
"樂",
"誰",
"順",
"煙",
"縮",
"徵",
"臉",
"喜",
"松",
"腳",
"困",
"異",
"免",
"背",
"星",
"福",
"買",
"染",
"井",
"概",
"慢",
"怕",
"磁",
"倍",
"祖",
"皇",
"促",
"靜",
"補",
"評",
"翻",
"肉",
"踐",
"尼",
"衣",
"寬",
"揚",
"棉",
"希",
"傷",
"操",
"垂",
"秋",
"宜",
"氫",
"套",
"督",
"振",
"架",
"亮",
"末",
"憲",
"慶",
"編",
"牛",
"觸",
"映",
"雷",
"銷",
"詩",
"座",
"居",
"抓",
"裂",
"胞",
"呼",
"娘",
"景",
"威",
"綠",
"晶",
"厚",
"盟",
"衡",
"雞",
"孫",
"延",
"危",
"膠",
"屋",
"鄉",
"臨",
"陸",
"顧",
"掉",
"呀",
"燈",
"歲",
"措",
"束",
"耐",
"劇",
"玉",
"趙",
"跳",
"哥",
"季",
"課",
"凱",
"胡",
"額",
"款",
"紹",
"卷",
"齊",
"偉",
"蒸",
"殖",
"永",
"宗",
"苗",
"川",
"爐",
"岩",
"弱",
"零",
"楊",
"奏",
"沿",
"露",
"桿",
"探",
"滑",
"鎮",
"飯",
"濃",
"航",
"懷",
"趕",
"庫",
"奪",
"伊",
"靈",
"稅",
"途",
"滅",
"賽",
"歸",
"召",
"鼓",
"播",
"盤",
"裁",
"險",
"康",
"唯",
"錄",
"菌",
"純",
"借",
"糖",
"蓋",
"橫",
"符",
"私",
"努",
"堂",
"域",
"槍",
"潤",
"幅",
"哈",
"竟",
"熟",
"蟲",
"澤",
"腦",
"壤",
"碳",
"歐",
"遍",
"側",
"寨",
"敢",
"徹",
"慮",
"斜",
"薄",
"庭",
"納",
"彈",
"飼",
"伸",
"折",
"麥",
"濕",
"暗",
"荷",
"瓦",
"塞",
"床",
"築",
"惡",
"戶",
"訪",
"塔",
"奇",
"透",
"梁",
"刀",
"旋",
"跡",
"卡",
"氯",
"遇",
"份",
"毒",
"泥",
"退",
"洗",
"擺",
"灰",
"彩",
"賣",
"耗",
"夏",
"擇",
"忙",
"銅",
"獻",
"硬",
"予",
"繁",
"圈",
"雪",
"函",
"亦",
"抽",
"篇",
"陣",
"陰",
"丁",
"尺",
"追",
"堆",
"雄",
"迎",
"泛",
"爸",
"樓",
"避",
"謀",
"噸",
"野",
"豬",
"旗",
"累",
"偏",
"典",
"館",
"索",
"秦",
"脂",
"潮",
"爺",
"豆",
"忽",
"托",
"驚",
"塑",
"遺",
"愈",
"朱",
"替",
"纖",
"粗",
"傾",
"尚",
"痛",
"楚",
"謝",
"奮",
"購",
"磨",
"君",
"池",
"旁",
"碎",
"骨",
"監",
"捕",
"弟",
"暴",
"割",
"貫",
"殊",
"釋",
"詞",
"亡",
"壁",
"頓",
"寶",
"午",
"塵",
"聞",
"揭",
"炮",
"殘",
"冬",
"橋",
"婦",
"警",
"綜",
"招",
"吳",
"付",
"浮",
"遭",
"徐",
"您",
"搖",
"谷",
"贊",
"箱",
"隔",
"訂",
"男",
"吹",
"園",
"紛",
"唐",
"敗",
"宋",
"玻",
"巨",
"耕",
"坦",
"榮",
"閉",
"灣",
"鍵",
"凡",
"駐",
"鍋",
"救",
"恩",
"剝",
"凝",
"鹼",
"齒",
"截",
"煉",
"麻",
"紡",
"禁",
"廢",
"盛",
"版",
"緩",
"淨",
"睛",
"昌",
"婚",
"涉",
"筒",
"嘴",
"插",
"岸",
"朗",
"莊",
"街",
"藏",
"姑",
"貿",
"腐",
"奴",
"啦",
"慣",
"乘",
"夥",
"恢",
"勻",
"紗",
"扎",
"辯",
"耳",
"彪",
"臣",
"億",
"璃",
"抵",
"脈",
"秀",
"薩",
"俄",
"網",
"舞",
"店",
"噴",
"縱",
"寸",
"汗",
"掛",
"洪",
"賀",
"閃",
"柬",
"爆",
"烯",
"津",
"稻",
"牆",
"軟",
"勇",
"像",
"滾",
"厘",
"蒙",
"芳",
"肯",
"坡",
"柱",
"盪",
"腿",
"儀",
"旅",
"尾",
"軋",
"冰",
"貢",
"登",
"黎",
"削",
"鑽",
"勒",
"逃",
"障",
"氨",
"郭",
"峰",
"幣",
"港",
"伏",
"軌",
"畝",
"畢",
"擦",
"莫",
"刺",
"浪",
"秘",
"援",
"株",
"健",
"售",
"股",
"島",
"甘",
"泡",
"睡",
"童",
"鑄",
"湯",
"閥",
"休",
"匯",
"舍",
"牧",
"繞",
"炸",
"哲",
"磷",
"績",
"朋",
"淡",
"尖",
"啟",
"陷",
"柴",
"呈",
"徒",
"顏",
"淚",
"稍",
"忘",
"泵",
"藍",
"拖",
"洞",
"授",
"鏡",
"辛",
"壯",
"鋒",
"貧",
"虛",
"彎",
"摩",
"泰",
"幼",
"廷",
"尊",
"窗",
"綱",
"弄",
"隸",
"疑",
"氏",
"宮",
"姐",
"震",
"瑞",
"怪",
"尤",
"琴",
"循",
"描",
"膜",
"違",
"夾",
"腰",
"緣",
"珠",
"窮",
"森",
"枝",
"竹",
"溝",
"催",
"繩",
"憶",
"邦",
"剩",
"幸",
"漿",
"欄",
"擁",
"牙",
"貯",
"禮",
"濾",
"鈉",
"紋",
"罷",
"拍",
"咱",
"喊",
"袖",
"埃",
"勤",
"罰",
"焦",
"潛",
"伍",
"墨",
"欲",
"縫",
"姓",
"刊",
"飽",
"仿",
"獎",
"鋁",
"鬼",
"麗",
"跨",
"默",
"挖",
"鏈",
"掃",
"喝",
"袋",
"炭",
"污",
"幕",
"諸",
"弧",
"勵",
"梅",
"奶",
"潔",
"災",
"舟",
"鑑",
"苯",
"訟",
"抱",
"毀",
"懂",
"寒",
"智",
"埔",
"寄",
"屆",
"躍",
"渡",
"挑",
"丹",
"艱",
"貝",
"碰",
"拔",
"爹",
"戴",
"碼",
"夢",
"芽",
"熔",
"赤",
"漁",
"哭",
"敬",
"顆",
"奔",
"鉛",
"仲",
"虎",
"稀",
"妹",
"乏",
"珍",
"申",
"桌",
"遵",
"允",
"隆",
"螺",
"倉",
"魏",
"銳",
"曉",
"氮",
"兼",
"隱",
"礙",
"赫",
"撥",
"忠",
"肅",
"缸",
"牽",
"搶",
"博",
"巧",
"殼",
"兄",
"杜",
"訊",
"誠",
"碧",
"祥",
"柯",
"頁",
"巡",
"矩",
"悲",
"灌",
"齡",
"倫",
"票",
"尋",
"桂",
"鋪",
"聖",
"恐",
"恰",
"鄭",
"趣",
"抬",
"荒",
"騰",
"貼",
"柔",
"滴",
"猛",
"闊",
"輛",
"妻",
"填",
"撤",
"儲",
"簽",
"鬧",
"擾",
"紫",
"砂",
"遞",
"戲",
"吊",
"陶",
"伐",
"餵",
"療",
"瓶",
"婆",
"撫",
"臂",
"摸",
"忍",
"蝦",
"蠟",
"鄰",
"胸",
"鞏",
"擠",
"偶",
"棄",
"槽",
"勁",
"乳",
"鄧",
"吉",
"仁",
"爛",
"磚",
"租",
"烏",
"艦",
"伴",
"瓜",
"淺",
"丙",
"暫",
"燥",
"橡",
"柳",
"迷",
"暖",
"牌",
"秧",
"膽",
"詳",
"簧",
"踏",
"瓷",
"譜",
"呆",
"賓",
"糊",
"洛",
"輝",
"憤",
"競",
"隙",
"怒",
"粘",
"乃",
"緒",
"肩",
"籍",
"敏",
"塗",
"熙",
"皆",
"偵",
"懸",
"掘",
"享",
"糾",
"醒",
"狂",
"鎖",
"淀",
"恨",
"牲",
"霸",
"爬",
"賞",
"逆",
"玩",
"陵",
"祝",
"秒",
"浙",
"貌",
"役",
"彼",
"悉",
"鴨",
"趨",
"鳳",
"晨",
"畜",
"輩",
"秩",
"卵",
"署",
"梯",
"炎",
"灘",
"棋",
"驅",
"篩",
"峽",
"冒",
"啥",
"壽",
"譯",
"浸",
"泉",
"帽",
"遲",
"矽",
"疆",
"貸",
"漏",
"稿",
"冠",
"嫩",
"脅",
"芯",
"牢",
"叛",
"蝕",
"奧",
"鳴",
"嶺",
"羊",
"憑",
"串",
"塘",
"繪",
"酵",
"融",
"盆",
"錫",
"廟",
"籌",
"凍",
"輔",
"攝",
"襲",
"筋",
"拒",
"僚",
"旱",
"鉀",
"鳥",
"漆",
"沈",
"眉",
"疏",
"添",
"棒",
"穗",
"硝",
"韓",
"逼",
"扭",
"僑",
"涼",
"挺",
"碗",
"栽",
"炒",
"杯",
"患",
"餾",
"勸",
"豪",
"遼",
"勃",
"鴻",
"旦",
"吏",
"拜",
"狗",
"埋",
"輥",
"掩",
"飲",
"搬",
"罵",
"辭",
"勾",
"扣",
"估",
"蔣",
"絨",
"霧",
"丈",
"朵",
"姆",
"擬",
"宇",
"輯",
"陝",
"雕",
"償",
"蓄",
"崇",
"剪",
"倡",
"廳",
"咬",
"駛",
"薯",
"刷",
"斥",
"番",
"賦",
"奉",
"佛",
"澆",
"漫",
"曼",
"扇",
"鈣",
"桃",
"扶",
"仔",
"返",
"俗",
"虧",
"腔",
"鞋",
"棱",
"覆",
"框",
"悄",
"叔",
"撞",
"騙",
"勘",
"旺",
"沸",
"孤",
"吐",
"孟",
"渠",
"屈",
"疾",
"妙",
"惜",
"仰",
"狠",
"脹",
"諧",
"拋",
"黴",
"桑",
"崗",
"嘛",
"衰",
"盜",
"滲",
"臟",
"賴",
"湧",
"甜",
"曹",
"閱",
"肌",
"哩",
"厲",
"烴",
"緯",
"毅",
"昨",
"偽",
"症",
"煮",
"嘆",
"釘",
"搭",
"莖",
"籠",
"酷",
"偷",
"弓",
"錐",
"恆",
"傑",
"坑",
"鼻",
"翼",
"綸",
"敘",
"獄",
"逮",
"罐",
"絡",
"棚",
"抑",
"膨",
"蔬",
"寺",
"驟",
"穆",
"冶",
"枯",
"冊",
"屍",
"凸",
"紳",
"坯",
"犧",
"焰",
"轟",
"欣",
"晉",
"瘦",
"禦",
"錠",
"錦",
"喪",
"旬",
"鍛",
"壟",
"搜",
"撲",
"邀",
"亭",
"酯",
"邁",
"舒",
"脆",
"酶",
"閒",
"憂",
"酚",
"頑",
"羽",
"漲",
"卸",
"仗",
"陪",
"闢",
"懲",
"杭",
"姚",
"肚",
"捉",
"飄",
"漂",
"昆",
"欺",
"吾",
"郎",
"烷",
"汁",
"呵",
"飾",
"蕭",
"雅",
"郵",
"遷",
"燕",
"撒",
"姻",
"赴",
"宴",
"煩",
"債",
"帳",
"斑",
"鈴",
"旨",
"醇",
"董",
"餅",
"雛",
"姿",
"拌",
"傅",
"腹",
"妥",
"揉",
"賢",
"拆",
"歪",
"葡",
"胺",
"丟",
"浩",
"徽",
"昂",
"墊",
"擋",
"覽",
"貪",
"慰",
"繳",
"汪",
"慌",
"馮",
"諾",
"姜",
"誼",
"兇",
"劣",
"誣",
"耀",
"昏",
"躺",
"盈",
"騎",
"喬",
"溪",
"叢",
"盧",
"抹",
"悶",
"諮",
"刮",
"駕",
"纜",
"悟",
"摘",
"鉺",
"擲",
"頗",
"幻",
"柄",
"惠",
"慘",
"佳",
"仇",
"臘",
"窩",
"滌",
"劍",
"瞧",
"堡",
"潑",
"蔥",
"罩",
"霍",
"撈",
"胎",
"蒼",
"濱",
"倆",
"捅",
"湘",
"砍",
"霞",
"邵",
"萄",
"瘋",
"淮",
"遂",
"熊",
"糞",
"烘",
"宿",
"檔",
"戈",
"駁",
"嫂",
"裕",
"徙",
"箭",
"捐",
"腸",
"撐",
"曬",
"辨",
"殿",
"蓮",
"攤",
"攪",
"醬",
"屏",
"疫",
"哀",
"蔡",
"堵",
"沫",
"皺",
"暢",
"疊",
"閣",
"萊",
"敲",
"轄",
"鉤",
"痕",
"壩",
"巷",
"餓",
"禍",
"丘",
"玄",
"溜",
"曰",
"邏",
"彭",
"嘗",
"卿",
"妨",
"艇",
"吞",
"韋",
"怨",
"矮",
"歇"
]
},{}],162:[function(require,module,exports){
module.exports=[
"abandon",
"ability",
"able",
"about",
"above",
"absent",
"absorb",
"abstract",
"absurd",
"abuse",
"access",
"accident",
"account",
"accuse",
"achieve",
"acid",
"acoustic",
"acquire",
"across",
"act",
"action",
"actor",
"actress",
"actual",
"adapt",
"add",
"addict",
"address",
"adjust",
"admit",
"adult",
"advance",
"advice",
"aerobic",
"affair",
"afford",
"afraid",
"again",
"age",
"agent",
"agree",
"ahead",
"aim",
"air",
"airport",
"aisle",
"alarm",
"album",
"alcohol",
"alert",
"alien",
"all",
"alley",
"allow",
"almost",
"alone",
"alpha",
"already",
"also",
"alter",
"always",
"amateur",
"amazing",
"among",
"amount",
"amused",
"analyst",
"anchor",
"ancient",
"anger",
"angle",
"angry",
"animal",
"ankle",
"announce",
"annual",
"another",
"answer",
"antenna",
"antique",
"anxiety",
"any",
"apart",
"apology",
"appear",
"apple",
"approve",
"april",
"arch",
"arctic",
"area",
"arena",
"argue",
"arm",
"armed",
"armor",
"army",
"around",
"arrange",
"arrest",
"arrive",
"arrow",
"art",
"artefact",
"artist",
"artwork",
"ask",
"aspect",
"assault",
"asset",
"assist",
"assume",
"asthma",
"athlete",
"atom",
"attack",
"attend",
"attitude",
"attract",
"auction",
"audit",
"august",
"aunt",
"author",
"auto",
"autumn",
"average",
"avocado",
"avoid",
"awake",
"aware",
"away",
"awesome",
"awful",
"awkward",
"axis",
"baby",
"bachelor",
"bacon",
"badge",
"bag",
"balance",
"balcony",
"ball",
"bamboo",
"banana",
"banner",
"bar",
"barely",
"bargain",
"barrel",
"base",
"basic",
"basket",
"battle",
"beach",
"bean",
"beauty",
"because",
"become",
"beef",
"before",
"begin",
"behave",
"behind",
"believe",
"below",
"belt",
"bench",
"benefit",
"best",
"betray",
"better",
"between",
"beyond",
"bicycle",
"bid",
"bike",
"bind",
"biology",
"bird",
"birth",
"bitter",
"black",
"blade",
"blame",
"blanket",
"blast",
"bleak",
"bless",
"blind",
"blood",
"blossom",
"blouse",
"blue",
"blur",
"blush",
"board",
"boat",
"body",
"boil",
"bomb",
"bone",
"bonus",
"book",
"boost",
"border",
"boring",
"borrow",
"boss",
"bottom",
"bounce",
"box",
"boy",
"bracket",
"brain",
"brand",
"brass",
"brave",
"bread",
"breeze",
"brick",
"bridge",
"brief",
"bright",
"bring",
"brisk",
"broccoli",
"broken",
"bronze",
"broom",
"brother",
"brown",
"brush",
"bubble",
"buddy",
"budget",
"buffalo",
"build",
"bulb",
"bulk",
"bullet",
"bundle",
"bunker",
"burden",
"burger",
"burst",
"bus",
"business",
"busy",
"butter",
"buyer",
"buzz",
"cabbage",
"cabin",
"cable",
"cactus",
"cage",
"cake",
"call",
"calm",
"camera",
"camp",
"can",
"canal",
"cancel",
"candy",
"cannon",
"canoe",
"canvas",
"canyon",
"capable",
"capital",
"captain",
"car",
"carbon",
"card",
"cargo",
"carpet",
"carry",
"cart",
"case",
"cash",
"casino",
"castle",
"casual",
"cat",
"catalog",
"catch",
"category",
"cattle",
"caught",
"cause",
"caution",
"cave",
"ceiling",
"celery",
"cement",
"census",
"century",
"cereal",
"certain",
"chair",
"chalk",
"champion",
"change",
"chaos",
"chapter",
"charge",
"chase",
"chat",
"cheap",
"check",
"cheese",
"chef",
"cherry",
"chest",
"chicken",
"chief",
"child",
"chimney",
"choice",
"choose",
"chronic",
"chuckle",
"chunk",
"churn",
"cigar",
"cinnamon",
"circle",
"citizen",
"city",
"civil",
"claim",
"clap",
"clarify",
"claw",
"clay",
"clean",
"clerk",
"clever",
"click",
"client",
"cliff",
"climb",
"clinic",
"clip",
"clock",
"clog",
"close",
"cloth",
"cloud",
"clown",
"club",
"clump",
"cluster",
"clutch",
"coach",
"coast",
"coconut",
"code",
"coffee",
"coil",
"coin",
"collect",
"color",
"column",
"combine",
"come",
"comfort",
"comic",
"common",
"company",
"concert",
"conduct",
"confirm",
"congress",
"connect",
"consider",
"control",
"convince",
"cook",
"cool",
"copper",
"copy",
"coral",
"core",
"corn",
"correct",
"cost",
"cotton",
"couch",
"country",
"couple",
"course",
"cousin",
"cover",
"coyote",
"crack",
"cradle",
"craft",
"cram",
"crane",
"crash",
"crater",
"crawl",
"crazy",
"cream",
"credit",
"creek",
"crew",
"cricket",
"crime",
"crisp",
"critic",
"crop",
"cross",
"crouch",
"crowd",
"crucial",
"cruel",
"cruise",
"crumble",
"crunch",
"crush",
"cry",
"crystal",
"cube",
"culture",
"cup",
"cupboard",
"curious",
"current",
"curtain",
"curve",
"cushion",
"custom",
"cute",
"cycle",
"dad",
"damage",
"damp",
"dance",
"danger",
"daring",
"dash",
"daughter",
"dawn",
"day",
"deal",
"debate",
"debris",
"decade",
"december",
"decide",
"decline",
"decorate",
"decrease",
"deer",
"defense",
"define",
"defy",
"degree",
"delay",
"deliver",
"demand",
"demise",
"denial",
"dentist",
"deny",
"depart",
"depend",
"deposit",
"depth",
"deputy",
"derive",
"describe",
"desert",
"design",
"desk",
"despair",
"destroy",
"detail",
"detect",
"develop",
"device",
"devote",
"diagram",
"dial",
"diamond",
"diary",
"dice",
"diesel",
"diet",
"differ",
"digital",
"dignity",
"dilemma",
"dinner",
"dinosaur",
"direct",
"dirt",
"disagree",
"discover",
"disease",
"dish",
"dismiss",
"disorder",
"display",
"distance",
"divert",
"divide",
"divorce",
"dizzy",
"doctor",
"document",
"dog",
"doll",
"dolphin",
"domain",
"donate",
"donkey",
"donor",
"door",
"dose",
"double",
"dove",
"draft",
"dragon",
"drama",
"drastic",
"draw",
"dream",
"dress",
"drift",
"drill",
"drink",
"drip",
"drive",
"drop",
"drum",
"dry",
"duck",
"dumb",
"dune",
"during",
"dust",
"dutch",
"duty",
"dwarf",
"dynamic",
"eager",
"eagle",
"early",
"earn",
"earth",
"easily",
"east",
"easy",
"echo",
"ecology",
"economy",
"edge",
"edit",
"educate",
"effort",
"egg",
"eight",
"either",
"elbow",
"elder",
"electric",
"elegant",
"element",
"elephant",
"elevator",
"elite",
"else",
"embark",
"embody",
"embrace",
"emerge",
"emotion",
"employ",
"empower",
"empty",
"enable",
"enact",
"end",
"endless",
"endorse",
"enemy",
"energy",
"enforce",
"engage",
"engine",
"enhance",
"enjoy",
"enlist",
"enough",
"enrich",
"enroll",
"ensure",
"enter",
"entire",
"entry",
"envelope",
"episode",
"equal",
"equip",
"era",
"erase",
"erode",
"erosion",
"error",
"erupt",
"escape",
"essay",
"essence",
"estate",
"eternal",
"ethics",
"evidence",
"evil",
"evoke",
"evolve",
"exact",
"example",
"excess",
"exchange",
"excite",
"exclude",
"excuse",
"execute",
"exercise",
"exhaust",
"exhibit",
"exile",
"exist",
"exit",
"exotic",
"expand",
"expect",
"expire",
"explain",
"expose",
"express",
"extend",
"extra",
"eye",
"eyebrow",
"fabric",
"face",
"faculty",
"fade",
"faint",
"faith",
"fall",
"false",
"fame",
"family",
"famous",
"fan",
"fancy",
"fantasy",
"farm",
"fashion",
"fat",
"fatal",
"father",
"fatigue",
"fault",
"favorite",
"feature",
"february",
"federal",
"fee",
"feed",
"feel",
"female",
"fence",
"festival",
"fetch",
"fever",
"few",
"fiber",
"fiction",
"field",
"figure",
"file",
"film",
"filter",
"final",
"find",
"fine",
"finger",
"finish",
"fire",
"firm",
"first",
"fiscal",
"fish",
"fit",
"fitness",
"fix",
"flag",
"flame",
"flash",
"flat",
"flavor",
"flee",
"flight",
"flip",
"float",
"flock",
"floor",
"flower",
"fluid",
"flush",
"fly",
"foam",
"focus",
"fog",
"foil",
"fold",
"follow",
"food",
"foot",
"force",
"forest",
"forget",
"fork",
"fortune",
"forum",
"forward",
"fossil",
"foster",
"found",
"fox",
"fragile",
"frame",
"frequent",
"fresh",
"friend",
"fringe",
"frog",
"front",
"frost",
"frown",
"frozen",
"fruit",
"fuel",
"fun",
"funny",
"furnace",
"fury",
"future",
"gadget",
"gain",
"galaxy",
"gallery",
"game",
"gap",
"garage",
"garbage",
"garden",
"garlic",
"garment",
"gas",
"gasp",
"gate",
"gather",
"gauge",
"gaze",
"general",
"genius",
"genre",
"gentle",
"genuine",
"gesture",
"ghost",
"giant",
"gift",
"giggle",
"ginger",
"giraffe",
"girl",
"give",
"glad",
"glance",
"glare",
"glass",
"glide",
"glimpse",
"globe",
"gloom",
"glory",
"glove",
"glow",
"glue",
"goat",
"goddess",
"gold",
"good",
"goose",
"gorilla",
"gospel",
"gossip",
"govern",
"gown",
"grab",
"grace",
"grain",
"grant",
"grape",
"grass",
"gravity",
"great",
"green",
"grid",
"grief",
"grit",
"grocery",
"group",
"grow",
"grunt",
"guard",
"guess",
"guide",
"guilt",
"guitar",
"gun",
"gym",
"habit",
"hair",
"half",
"hammer",
"hamster",
"hand",
"happy",
"harbor",
"hard",
"harsh",
"harvest",
"hat",
"have",
"hawk",
"hazard",
"head",
"health",
"heart",
"heavy",
"hedgehog",
"height",
"hello",
"helmet",
"help",
"hen",
"hero",
"hidden",
"high",
"hill",
"hint",
"hip",
"hire",
"history",
"hobby",
"hockey",
"hold",
"hole",
"holiday",
"hollow",
"home",
"honey",
"hood",
"hope",
"horn",
"horror",
"horse",
"hospital",
"host",
"hotel",
"hour",
"hover",
"hub",
"huge",
"human",
"humble",
"humor",
"hundred",
"hungry",
"hunt",
"hurdle",
"hurry",
"hurt",
"husband",
"hybrid",
"ice",
"icon",
"idea",
"identify",
"idle",
"ignore",
"ill",
"illegal",
"illness",
"image",
"imitate",
"immense",
"immune",
"impact",
"impose",
"improve",
"impulse",
"inch",
"include",
"income",
"increase",
"index",
"indicate",
"indoor",
"industry",
"infant",
"inflict",
"inform",
"inhale",
"inherit",
"initial",
"inject",
"injury",
"inmate",
"inner",
"innocent",
"input",
"inquiry",
"insane",
"insect",
"inside",
"inspire",
"install",
"intact",
"interest",
"into",
"invest",
"invite",
"involve",
"iron",
"island",
"isolate",
"issue",
"item",
"ivory",
"jacket",
"jaguar",
"jar",
"jazz",
"jealous",
"jeans",
"jelly",
"jewel",
"job",
"join",
"joke",
"journey",
"joy",
"judge",
"juice",
"jump",
"jungle",
"junior",
"junk",
"just",
"kangaroo",
"keen",
"keep",
"ketchup",
"key",
"kick",
"kid",
"kidney",
"kind",
"kingdom",
"kiss",
"kit",
"kitchen",
"kite",
"kitten",
"kiwi",
"knee",
"knife",
"knock",
"know",
"lab",
"label",
"labor",
"ladder",
"lady",
"lake",
"lamp",
"language",
"laptop",
"large",
"later",
"latin",
"laugh",
"laundry",
"lava",
"law",
"lawn",
"lawsuit",
"layer",
"lazy",
"leader",
"leaf",
"learn",
"leave",
"lecture",
"left",
"leg",
"legal",
"legend",
"leisure",
"lemon",
"lend",
"length",
"lens",
"leopard",
"lesson",
"letter",
"level",
"liar",
"liberty",
"library",
"license",
"life",
"lift",
"light",
"like",
"limb",
"limit",
"link",
"lion",
"liquid",
"list",
"little",
"live",
"lizard",
"load",
"loan",
"lobster",
"local",
"lock",
"logic",
"lonely",
"long",
"loop",
"lottery",
"loud",
"lounge",
"love",
"loyal",
"lucky",
"luggage",
"lumber",
"lunar",
"lunch",
"luxury",
"lyrics",
"machine",
"mad",
"magic",
"magnet",
"maid",
"mail",
"main",
"major",
"make",
"mammal",
"man",
"manage",
"mandate",
"mango",
"mansion",
"manual",
"maple",
"marble",
"march",
"margin",
"marine",
"market",
"marriage",
"mask",
"mass",
"master",
"match",
"material",
"math",
"matrix",
"matter",
"maximum",
"maze",
"meadow",
"mean",
"measure",
"meat",
"mechanic",
"medal",
"media",
"melody",
"melt",
"member",
"memory",
"mention",
"menu",
"mercy",
"merge",
"merit",
"merry",
"mesh",
"message",
"metal",
"method",
"middle",
"midnight",
"milk",
"million",
"mimic",
"mind",
"minimum",
"minor",
"minute",
"miracle",
"mirror",
"misery",
"miss",
"mistake",
"mix",
"mixed",
"mixture",
"mobile",
"model",
"modify",
"mom",
"moment",
"monitor",
"monkey",
"monster",
"month",
"moon",
"moral",
"more",
"morning",
"mosquito",
"mother",
"motion",
"motor",
"mountain",
"mouse",
"move",
"movie",
"much",
"muffin",
"mule",
"multiply",
"muscle",
"museum",
"mushroom",
"music",
"must",
"mutual",
"myself",
"mystery",
"myth",
"naive",
"name",
"napkin",
"narrow",
"nasty",
"nation",
"nature",
"near",
"neck",
"need",
"negative",
"neglect",
"neither",
"nephew",
"nerve",
"nest",
"net",
"network",
"neutral",
"never",
"news",
"next",
"nice",
"night",
"noble",
"noise",
"nominee",
"noodle",
"normal",
"north",
"nose",
"notable",
"note",
"nothing",
"notice",
"novel",
"now",
"nuclear",
"number",
"nurse",
"nut",
"oak",
"obey",
"object",
"oblige",
"obscure",
"observe",
"obtain",
"obvious",
"occur",
"ocean",
"october",
"odor",
"off",
"offer",
"office",
"often",
"oil",
"okay",
"old",
"olive",
"olympic",
"omit",
"once",
"one",
"onion",
"online",
"only",
"open",
"opera",
"opinion",
"oppose",
"option",
"orange",
"orbit",
"orchard",
"order",
"ordinary",
"organ",
"orient",
"original",
"orphan",
"ostrich",
"other",
"outdoor",
"outer",
"output",
"outside",
"oval",
"oven",
"over",
"own",
"owner",
"oxygen",
"oyster",
"ozone",
"pact",
"paddle",
"page",
"pair",
"palace",
"palm",
"panda",
"panel",
"panic",
"panther",
"paper",
"parade",
"parent",
"park",
"parrot",
"party",
"pass",
"patch",
"path",
"patient",
"patrol",
"pattern",
"pause",
"pave",
"payment",
"peace",
"peanut",
"pear",
"peasant",
"pelican",
"pen",
"penalty",
"pencil",
"people",
"pepper",
"perfect",
"permit",
"person",
"pet",
"phone",
"photo",
"phrase",
"physical",
"piano",
"picnic",
"picture",
"piece",
"pig",
"pigeon",
"pill",
"pilot",
"pink",
"pioneer",
"pipe",
"pistol",
"pitch",
"pizza",
"place",
"planet",
"plastic",
"plate",
"play",
"please",
"pledge",
"pluck",
"plug",
"plunge",
"poem",
"poet",
"point",
"polar",
"pole",
"police",
"pond",
"pony",
"pool",
"popular",
"portion",
"position",
"possible",
"post",
"potato",
"pottery",
"poverty",
"powder",
"power",
"practice",
"praise",
"predict",
"prefer",
"prepare",
"present",
"pretty",
"prevent",
"price",
"pride",
"primary",
"print",
"priority",
"prison",
"private",
"prize",
"problem",
"process",
"produce",
"profit",
"program",
"project",
"promote",
"proof",
"property",
"prosper",
"protect",
"proud",
"provide",
"public",
"pudding",
"pull",
"pulp",
"pulse",
"pumpkin",
"punch",
"pupil",
"puppy",
"purchase",
"purity",
"purpose",
"purse",
"push",
"put",
"puzzle",
"pyramid",
"quality",
"quantum",
"quarter",
"question",
"quick",
"quit",
"quiz",
"quote",
"rabbit",
"raccoon",
"race",
"rack",
"radar",
"radio",
"rail",
"rain",
"raise",
"rally",
"ramp",
"ranch",
"random",
"range",
"rapid",
"rare",
"rate",
"rather",
"raven",
"raw",
"razor",
"ready",
"real",
"reason",
"rebel",
"rebuild",
"recall",
"receive",
"recipe",
"record",
"recycle",
"reduce",
"reflect",
"reform",
"refuse",
"region",
"regret",
"regular",
"reject",
"relax",
"release",
"relief",
"rely",
"remain",
"remember",
"remind",
"remove",
"render",
"renew",
"rent",
"reopen",
"repair",
"repeat",
"replace",
"report",
"require",
"rescue",
"resemble",
"resist",
"resource",
"response",
"result",
"retire",
"retreat",
"return",
"reunion",
"reveal",
"review",
"reward",
"rhythm",
"rib",
"ribbon",
"rice",
"rich",
"ride",
"ridge",
"rifle",
"right",
"rigid",
"ring",
"riot",
"ripple",
"risk",
"ritual",
"rival",
"river",
"road",
"roast",
"robot",
"robust",
"rocket",
"romance",
"roof",
"rookie",
"room",
"rose",
"rotate",
"rough",
"round",
"route",
"royal",
"rubber",
"rude",
"rug",
"rule",
"run",
"runway",
"rural",
"sad",
"saddle",
"sadness",
"safe",
"sail",
"salad",
"salmon",
"salon",
"salt",
"salute",
"same",
"sample",
"sand",
"satisfy",
"satoshi",
"sauce",
"sausage",
"save",
"say",
"scale",
"scan",
"scare",
"scatter",
"scene",
"scheme",
"school",
"science",
"scissors",
"scorpion",
"scout",
"scrap",
"screen",
"script",
"scrub",
"sea",
"search",
"season",
"seat",
"second",
"secret",
"section",
"security",
"seed",
"seek",
"segment",
"select",
"sell",
"seminar",
"senior",
"sense",
"sentence",
"series",
"service",
"session",
"settle",
"setup",
"seven",
"shadow",
"shaft",
"shallow",
"share",
"shed",
"shell",
"sheriff",
"shield",
"shift",
"shine",
"ship",
"shiver",
"shock",
"shoe",
"shoot",
"shop",
"short",
"shoulder",
"shove",
"shrimp",
"shrug",
"shuffle",
"shy",
"sibling",
"sick",
"side",
"siege",
"sight",
"sign",
"silent",
"silk",
"silly",
"silver",
"similar",
"simple",
"since",
"sing",
"siren",
"sister",
"situate",
"six",
"size",
"skate",
"sketch",
"ski",
"skill",
"skin",
"skirt",
"skull",
"slab",
"slam",
"sleep",
"slender",
"slice",
"slide",
"slight",
"slim",
"slogan",
"slot",
"slow",
"slush",
"small",
"smart",
"smile",
"smoke",
"smooth",
"snack",
"snake",
"snap",
"sniff",
"snow",
"soap",
"soccer",
"social",
"sock",
"soda",
"soft",
"solar",
"soldier",
"solid",
"solution",
"solve",
"someone",
"song",
"soon",
"sorry",
"sort",
"soul",
"sound",
"soup",
"source",
"south",
"space",
"spare",
"spatial",
"spawn",
"speak",
"special",
"speed",
"spell",
"spend",
"sphere",
"spice",
"spider",
"spike",
"spin",
"spirit",
"split",
"spoil",
"sponsor",
"spoon",
"sport",
"spot",
"spray",
"spread",
"spring",
"spy",
"square",
"squeeze",
"squirrel",
"stable",
"stadium",
"staff",
"stage",
"stairs",
"stamp",
"stand",
"start",
"state",
"stay",
"steak",
"steel",
"stem",
"step",
"stereo",
"stick",
"still",
"sting",
"stock",
"stomach",
"stone",
"stool",
"story",
"stove",
"strategy",
"street",
"strike",
"strong",
"struggle",
"student",
"stuff",
"stumble",
"style",
"subject",
"submit",
"subway",
"success",
"such",
"sudden",
"suffer",
"sugar",
"suggest",
"suit",
"summer",
"sun",
"sunny",
"sunset",
"super",
"supply",
"supreme",
"sure",
"surface",
"surge",
"surprise",
"surround",
"survey",
"suspect",
"sustain",
"swallow",
"swamp",
"swap",
"swarm",
"swear",
"sweet",
"swift",
"swim",
"swing",
"switch",
"sword",
"symbol",
"symptom",
"syrup",
"system",
"table",
"tackle",
"tag",
"tail",
"talent",
"talk",
"tank",
"tape",
"target",
"task",
"taste",
"tattoo",
"taxi",
"teach",
"team",
"tell",
"ten",
"tenant",
"tennis",
"tent",
"term",
"test",
"text",
"thank",
"that",
"theme",
"then",
"theory",
"there",
"they",
"thing",
"this",
"thought",
"three",
"thrive",
"throw",
"thumb",
"thunder",
"ticket",
"tide",
"tiger",
"tilt",
"timber",
"time",
"tiny",
"tip",
"tired",
"tissue",
"title",
"toast",
"tobacco",
"today",
"toddler",
"toe",
"together",
"toilet",
"token",
"tomato",
"tomorrow",
"tone",
"tongue",
"tonight",
"tool",
"tooth",
"top",
"topic",
"topple",
"torch",
"tornado",
"tortoise",
"toss",
"total",
"tourist",
"toward",
"tower",
"town",
"toy",
"track",
"trade",
"traffic",
"tragic",
"train",
"transfer",
"trap",
"trash",
"travel",
"tray",
"treat",
"tree",
"trend",
"trial",
"tribe",
"trick",
"trigger",
"trim",
"trip",
"trophy",
"trouble",
"truck",
"true",
"truly",
"trumpet",
"trust",
"truth",
"try",
"tube",
"tuition",
"tumble",
"tuna",
"tunnel",
"turkey",
"turn",
"turtle",
"twelve",
"twenty",
"twice",
"twin",
"twist",
"two",
"type",
"typical",
"ugly",
"umbrella",
"unable",
"unaware",
"uncle",
"uncover",
"under",
"undo",
"unfair",
"unfold",
"unhappy",
"uniform",
"unique",
"unit",
"universe",
"unknown",
"unlock",
"until",
"unusual",
"unveil",
"update",
"upgrade",
"uphold",
"upon",
"upper",
"upset",
"urban",
"urge",
"usage",
"use",
"used",
"useful",
"useless",
"usual",
"utility",
"vacant",
"vacuum",
"vague",
"valid",
"valley",
"valve",
"van",
"vanish",
"vapor",
"various",
"vast",
"vault",
"vehicle",
"velvet",
"vendor",
"venture",
"venue",
"verb",
"verify",
"version",
"very",
"vessel",
"veteran",
"viable",
"vibrant",
"vicious",
"victory",
"video",
"view",
"village",
"vintage",
"violin",
"virtual",
"virus",
"visa",
"visit",
"visual",
"vital",
"vivid",
"vocal",
"voice",
"void",
"volcano",
"volume",
"vote",
"voyage",
"wage",
"wagon",
"wait",
"walk",
"wall",
"walnut",
"want",
"warfare",
"warm",
"warrior",
"wash",
"wasp",
"waste",
"water",
"wave",
"way",
"wealth",
"weapon",
"wear",
"weasel",
"weather",
"web",
"wedding",
"weekend",
"weird",
"welcome",
"west",
"wet",
"whale",
"what",
"wheat",
"wheel",
"when",
"where",
"whip",
"whisper",
"wide",
"width",
"wife",
"wild",
"will",
"win",
"window",
"wine",
"wing",
"wink",
"winner",
"winter",
"wire",
"wisdom",
"wise",
"wish",
"witness",
"wolf",
"woman",
"wonder",
"wood",
"wool",
"word",
"work",
"world",
"worry",
"worth",
"wrap",
"wreck",
"wrestle",
"wrist",
"write",
"wrong",
"yard",
"year",
"yellow",
"you",
"young",
"youth",
"zebra",
"zero",
"zone",
"zoo"
]
},{}],163:[function(require,module,exports){
module.exports=[
"abaisser",
"abandon",
"abdiquer",
"abeille",
"abolir",
"aborder",
"aboutir",
"aboyer",
"abrasif",
"abreuver",
"abriter",
"abroger",
"abrupt",
"absence",
"absolu",
"absurde",
"abusif",
"abyssal",
"académie",
"acajou",
"acarien",
"accabler",
"accepter",
"acclamer",
"accolade",
"accroche",
"accuser",
"acerbe",
"achat",
"acheter",
"aciduler",
"acier",
"acompte",
"acquérir",
"acronyme",
"acteur",
"actif",
"actuel",
"adepte",
"adéquat",
"adhésif",
"adjectif",
"adjuger",
"admettre",
"admirer",
"adopter",
"adorer",
"adoucir",
"adresse",
"adroit",
"adulte",
"adverbe",
"aérer",
"aéronef",
"affaire",
"affecter",
"affiche",
"affreux",
"affubler",
"agacer",
"agencer",
"agile",
"agiter",
"agrafer",
"agréable",
"agrume",
"aider",
"aiguille",
"ailier",
"aimable",
"aisance",
"ajouter",
"ajuster",
"alarmer",
"alchimie",
"alerte",
"algèbre",
"algue",
"aliéner",
"aliment",
"alléger",
"alliage",
"allouer",
"allumer",
"alourdir",
"alpaga",
"altesse",
"alvéole",
"amateur",
"ambigu",
"ambre",
"aménager",
"amertume",
"amidon",
"amiral",
"amorcer",
"amour",
"amovible",
"amphibie",
"ampleur",
"amusant",
"analyse",
"anaphore",
"anarchie",
"anatomie",
"ancien",
"anéantir",
"angle",
"angoisse",
"anguleux",
"animal",
"annexer",
"annonce",
"annuel",
"anodin",
"anomalie",
"anonyme",
"anormal",
"antenne",
"antidote",
"anxieux",
"apaiser",
"apéritif",
"aplanir",
"apologie",
"appareil",
"appeler",
"apporter",
"appuyer",
"aquarium",
"aqueduc",
"arbitre",
"arbuste",
"ardeur",
"ardoise",
"argent",
"arlequin",
"armature",
"armement",
"armoire",
"armure",
"arpenter",
"arracher",
"arriver",
"arroser",
"arsenic",
"artériel",
"article",
"aspect",
"asphalte",
"aspirer",
"assaut",
"asservir",
"assiette",
"associer",
"assurer",
"asticot",
"astre",
"astuce",
"atelier",
"atome",
"atrium",
"atroce",
"attaque",
"attentif",
"attirer",
"attraper",
"aubaine",
"auberge",
"audace",
"audible",
"augurer",
"aurore",
"automne",
"autruche",
"avaler",
"avancer",
"avarice",
"avenir",
"averse",
"aveugle",
"aviateur",
"avide",
"avion",
"aviser",
"avoine",
"avouer",
"avril",
"axial",
"axiome",
"badge",
"bafouer",
"bagage",
"baguette",
"baignade",
"balancer",
"balcon",
"baleine",
"balisage",
"bambin",
"bancaire",
"bandage",
"banlieue",
"bannière",
"banquier",
"barbier",
"baril",
"baron",
"barque",
"barrage",
"bassin",
"bastion",
"bataille",
"bateau",
"batterie",
"baudrier",
"bavarder",
"belette",
"bélier",
"belote",
"bénéfice",
"berceau",
"berger",
"berline",
"bermuda",
"besace",
"besogne",
"bétail",
"beurre",
"biberon",
"bicycle",
"bidule",
"bijou",
"bilan",
"bilingue",
"billard",
"binaire",
"biologie",
"biopsie",
"biotype",
"biscuit",
"bison",
"bistouri",
"bitume",
"bizarre",
"blafard",
"blague",
"blanchir",
"blessant",
"blinder",
"blond",
"bloquer",
"blouson",
"bobard",
"bobine",
"boire",
"boiser",
"bolide",
"bonbon",
"bondir",
"bonheur",
"bonifier",
"bonus",
"bordure",
"borne",
"botte",
"boucle",
"boueux",
"bougie",
"boulon",
"bouquin",
"bourse",
"boussole",
"boutique",
"boxeur",
"branche",
"brasier",
"brave",
"brebis",
"brèche",
"breuvage",
"bricoler",
"brigade",
"brillant",
"brioche",
"brique",
"brochure",
"broder",
"bronzer",
"brousse",
"broyeur",
"brume",
"brusque",
"brutal",
"bruyant",
"buffle",
"buisson",
"bulletin",
"bureau",
"burin",
"bustier",
"butiner",
"butoir",
"buvable",
"buvette",
"cabanon",
"cabine",
"cachette",
"cadeau",
"cadre",
"caféine",
"caillou",
"caisson",
"calculer",
"calepin",
"calibre",
"calmer",
"calomnie",
"calvaire",
"camarade",
"caméra",
"camion",
"campagne",
"canal",
"caneton",
"canon",
"cantine",
"canular",
"capable",
"caporal",
"caprice",
"capsule",
"capter",
"capuche",
"carabine",
"carbone",
"caresser",
"caribou",
"carnage",
"carotte",
"carreau",
"carton",
"cascade",
"casier",
"casque",
"cassure",
"causer",
"caution",
"cavalier",
"caverne",
"caviar",
"cédille",
"ceinture",
"céleste",
"cellule",
"cendrier",
"censurer",
"central",
"cercle",
"cérébral",
"cerise",
"cerner",
"cerveau",
"cesser",
"chagrin",
"chaise",
"chaleur",
"chambre",
"chance",
"chapitre",
"charbon",
"chasseur",
"chaton",
"chausson",
"chavirer",
"chemise",
"chenille",
"chéquier",
"chercher",
"cheval",
"chien",
"chiffre",
"chignon",
"chimère",
"chiot",
"chlorure",
"chocolat",
"choisir",
"chose",
"chouette",
"chrome",
"chute",
"cigare",
"cigogne",
"cimenter",
"cinéma",
"cintrer",
"circuler",
"cirer",
"cirque",
"citerne",
"citoyen",
"citron",
"civil",
"clairon",
"clameur",
"claquer",
"classe",
"clavier",
"client",
"cligner",
"climat",
"clivage",
"cloche",
"clonage",
"cloporte",
"cobalt",
"cobra",
"cocasse",
"cocotier",
"coder",
"codifier",
"coffre",
"cogner",
"cohésion",
"coiffer",
"coincer",
"colère",
"colibri",
"colline",
"colmater",
"colonel",
"combat",
"comédie",
"commande",
"compact",
"concert",
"conduire",
"confier",
"congeler",
"connoter",
"consonne",
"contact",
"convexe",
"copain",
"copie",
"corail",
"corbeau",
"cordage",
"corniche",
"corpus",
"correct",
"cortège",
"cosmique",
"costume",
"coton",
"coude",
"coupure",
"courage",
"couteau",
"couvrir",
"coyote",
"crabe",
"crainte",
"cravate",
"crayon",
"créature",
"créditer",
"crémeux",
"creuser",
"crevette",
"cribler",
"crier",
"cristal",
"critère",
"croire",
"croquer",
"crotale",
"crucial",
"cruel",
"crypter",
"cubique",
"cueillir",
"cuillère",
"cuisine",
"cuivre",
"culminer",
"cultiver",
"cumuler",
"cupide",
"curatif",
"curseur",
"cyanure",
"cycle",
"cylindre",
"cynique",
"daigner",
"damier",
"danger",
"danseur",
"dauphin",
"débattre",
"débiter",
"déborder",
"débrider",
"débutant",
"décaler",
"décembre",
"déchirer",
"décider",
"déclarer",
"décorer",
"décrire",
"décupler",
"dédale",
"déductif",
"déesse",
"défensif",
"défiler",
"défrayer",
"dégager",
"dégivrer",
"déglutir",
"dégrafer",
"déjeuner",
"délice",
"déloger",
"demander",
"demeurer",
"démolir",
"dénicher",
"dénouer",
"dentelle",
"dénuder",
"départ",
"dépenser",
"déphaser",
"déplacer",
"déposer",
"déranger",
"dérober",
"désastre",
"descente",
"désert",
"désigner",
"désobéir",
"dessiner",
"destrier",
"détacher",
"détester",
"détourer",
"détresse",
"devancer",
"devenir",
"deviner",
"devoir",
"diable",
"dialogue",
"diamant",
"dicter",
"différer",
"digérer",
"digital",
"digne",
"diluer",
"dimanche",
"diminuer",
"dioxyde",
"directif",
"diriger",
"discuter",
"disposer",
"dissiper",
"distance",
"divertir",
"diviser",
"docile",
"docteur",
"dogme",
"doigt",
"domaine",
"domicile",
"dompter",
"donateur",
"donjon",
"donner",
"dopamine",
"dortoir",
"dorure",
"dosage",
"doseur",
"dossier",
"dotation",
"douanier",
"double",
"douceur",
"douter",
"doyen",
"dragon",
"draper",
"dresser",
"dribbler",
"droiture",
"duperie",
"duplexe",
"durable",
"durcir",
"dynastie",
"éblouir",
"écarter",
"écharpe",
"échelle",
"éclairer",
"éclipse",
"éclore",
"écluse",
"école",
"économie",
"écorce",
"écouter",
"écraser",
"écrémer",
"écrivain",
"écrou",
"écume",
"écureuil",
"édifier",
"éduquer",
"effacer",
"effectif",
"effigie",
"effort",
"effrayer",
"effusion",
"égaliser",
"égarer",
"éjecter",
"élaborer",
"élargir",
"électron",
"élégant",
"éléphant",
"élève",
"éligible",
"élitisme",
"éloge",
"élucider",
"éluder",
"emballer",
"embellir",
"embryon",
"émeraude",
"émission",
"emmener",
"émotion",
"émouvoir",
"empereur",
"employer",
"emporter",
"emprise",
"émulsion",
"encadrer",
"enchère",
"enclave",
"encoche",
"endiguer",
"endosser",
"endroit",
"enduire",
"énergie",
"enfance",
"enfermer",
"enfouir",
"engager",
"engin",
"englober",
"énigme",
"enjamber",
"enjeu",
"enlever",
"ennemi",
"ennuyeux",
"enrichir",
"enrobage",
"enseigne",
"entasser",
"entendre",
"entier",
"entourer",
"entraver",
"énumérer",
"envahir",
"enviable",
"envoyer",
"enzyme",
"éolien",
"épaissir",
"épargne",
"épatant",
"épaule",
"épicerie",
"épidémie",
"épier",
"épilogue",
"épine",
"épisode",
"épitaphe",
"époque",
"épreuve",
"éprouver",
"épuisant",
"équerre",
"équipe",
"ériger",
"érosion",
"erreur",
"éruption",
"escalier",
"espadon",
"espèce",
"espiègle",
"espoir",
"esprit",
"esquiver",
"essayer",
"essence",
"essieu",
"essorer",
"estime",
"estomac",
"estrade",
"étagère",
"étaler",
"étanche",
"étatique",
"éteindre",
"étendoir",
"éternel",
"éthanol",
"éthique",
"ethnie",
"étirer",
"étoffer",
"étoile",
"étonnant",
"étourdir",
"étrange",
"étroit",
"étude",
"euphorie",
"évaluer",
"évasion",
"éventail",
"évidence",
"éviter",
"évolutif",
"évoquer",
"exact",
"exagérer",
"exaucer",
"exceller",
"excitant",
"exclusif",
"excuse",
"exécuter",
"exemple",
"exercer",
"exhaler",
"exhorter",
"exigence",
"exiler",
"exister",
"exotique",
"expédier",
"explorer",
"exposer",
"exprimer",
"exquis",
"extensif",
"extraire",
"exulter",
"fable",
"fabuleux",
"facette",
"facile",
"facture",
"faiblir",
"falaise",
"fameux",
"famille",
"farceur",
"farfelu",
"farine",
"farouche",
"fasciner",
"fatal",
"fatigue",
"faucon",
"fautif",
"faveur",
"favori",
"fébrile",
"féconder",
"fédérer",
"félin",
"femme",
"fémur",
"fendoir",
"féodal",
"fermer",
"féroce",
"ferveur",
"festival",
"feuille",
"feutre",
"février",
"fiasco",
"ficeler",
"fictif",
"fidèle",
"figure",
"filature",
"filetage",
"filière",
"filleul",
"filmer",
"filou",
"filtrer",
"financer",
"finir",
"fiole",
"firme",
"fissure",
"fixer",
"flairer",
"flamme",
"flasque",
"flatteur",
"fléau",
"flèche",
"fleur",
"flexion",
"flocon",
"flore",
"fluctuer",
"fluide",
"fluvial",
"folie",
"fonderie",
"fongible",
"fontaine",
"forcer",
"forgeron",
"formuler",
"fortune",
"fossile",
"foudre",
"fougère",
"fouiller",
"foulure",
"fourmi",
"fragile",
"fraise",
"franchir",
"frapper",
"frayeur",
"frégate",
"freiner",
"frelon",
"frémir",
"frénésie",
"frère",
"friable",
"friction",
"frisson",
"frivole",
"froid",
"fromage",
"frontal",
"frotter",
"fruit",
"fugitif",
"fuite",
"fureur",
"furieux",
"furtif",
"fusion",
"futur",
"gagner",
"galaxie",
"galerie",
"gambader",
"garantir",
"gardien",
"garnir",
"garrigue",
"gazelle",
"gazon",
"géant",
"gélatine",
"gélule",
"gendarme",
"général",
"génie",
"genou",
"gentil",
"géologie",
"géomètre",
"géranium",
"germe",
"gestuel",
"geyser",
"gibier",
"gicler",
"girafe",
"givre",
"glace",
"glaive",
"glisser",
"globe",
"gloire",
"glorieux",
"golfeur",
"gomme",
"gonfler",
"gorge",
"gorille",
"goudron",
"gouffre",
"goulot",
"goupille",
"gourmand",
"goutte",
"graduel",
"graffiti",
"graine",
"grand",
"grappin",
"gratuit",
"gravir",
"grenat",
"griffure",
"griller",
"grimper",
"grogner",
"gronder",
"grotte",
"groupe",
"gruger",
"grutier",
"gruyère",
"guépard",
"guerrier",
"guide",
"guimauve",
"guitare",
"gustatif",
"gymnaste",
"gyrostat",
"habitude",
"hachoir",
"halte",
"hameau",
"hangar",
"hanneton",
"haricot",
"harmonie",
"harpon",
"hasard",
"hélium",
"hématome",
"herbe",
"hérisson",
"hermine",
"héron",
"hésiter",
"heureux",
"hiberner",
"hibou",
"hilarant",
"histoire",
"hiver",
"homard",
"hommage",
"homogène",
"honneur",
"honorer",
"honteux",
"horde",
"horizon",
"horloge",
"hormone",
"horrible",
"houleux",
"housse",
"hublot",
"huileux",
"humain",
"humble",
"humide",
"humour",
"hurler",
"hydromel",
"hygiène",
"hymne",
"hypnose",
"idylle",
"ignorer",
"iguane",
"illicite",
"illusion",
"image",
"imbiber",
"imiter",
"immense",
"immobile",
"immuable",
"impact",
"impérial",
"implorer",
"imposer",
"imprimer",
"imputer",
"incarner",
"incendie",
"incident",
"incliner",
"incolore",
"indexer",
"indice",
"inductif",
"inédit",
"ineptie",
"inexact",
"infini",
"infliger",
"informer",
"infusion",
"ingérer",
"inhaler",
"inhiber",
"injecter",
"injure",
"innocent",
"inoculer",
"inonder",
"inscrire",
"insecte",
"insigne",
"insolite",
"inspirer",
"instinct",
"insulter",
"intact",
"intense",
"intime",
"intrigue",
"intuitif",
"inutile",
"invasion",
"inventer",
"inviter",
"invoquer",
"ironique",
"irradier",
"irréel",
"irriter",
"isoler",
"ivoire",
"ivresse",
"jaguar",
"jaillir",
"jambe",
"janvier",
"jardin",
"jauger",
"jaune",
"javelot",
"jetable",
"jeton",
"jeudi",
"jeunesse",
"joindre",
"joncher",
"jongler",
"joueur",
"jouissif",
"journal",
"jovial",
"joyau",
"joyeux",
"jubiler",
"jugement",
"junior",
"jupon",
"juriste",
"justice",
"juteux",
"juvénile",
"kayak",
"kimono",
"kiosque",
"label",
"labial",
"labourer",
"lacérer",
"lactose",
"lagune",
"laine",
"laisser",
"laitier",
"lambeau",
"lamelle",
"lampe",
"lanceur",
"langage",
"lanterne",
"lapin",
"largeur",
"larme",
"laurier",
"lavabo",
"lavoir",
"lecture",
"légal",
"léger",
"légume",
"lessive",
"lettre",
"levier",
"lexique",
"lézard",
"liasse",
"libérer",
"libre",
"licence",
"licorne",
"liège",
"lièvre",
"ligature",
"ligoter",
"ligue",
"limer",
"limite",
"limonade",
"limpide",
"linéaire",
"lingot",
"lionceau",
"liquide",
"lisière",
"lister",
"lithium",
"litige",
"littoral",
"livreur",
"logique",
"lointain",
"loisir",
"lombric",
"loterie",
"louer",
"lourd",
"loutre",
"louve",
"loyal",
"lubie",
"lucide",
"lucratif",
"lueur",
"lugubre",
"luisant",
"lumière",
"lunaire",
"lundi",
"luron",
"lutter",
"luxueux",
"machine",
"magasin",
"magenta",
"magique",
"maigre",
"maillon",
"maintien",
"mairie",
"maison",
"majorer",
"malaxer",
"maléfice",
"malheur",
"malice",
"mallette",
"mammouth",
"mandater",
"maniable",
"manquant",
"manteau",
"manuel",
"marathon",
"marbre",
"marchand",
"mardi",
"maritime",
"marqueur",
"marron",
"marteler",
"mascotte",
"massif",
"matériel",
"matière",
"matraque",
"maudire",
"maussade",
"mauve",
"maximal",
"méchant",
"méconnu",
"médaille",
"médecin",
"méditer",
"méduse",
"meilleur",
"mélange",
"mélodie",
"membre",
"mémoire",
"menacer",
"mener",
"menhir",
"mensonge",
"mentor",
"mercredi",
"mérite",
"merle",
"messager",
"mesure",
"métal",
"météore",
"méthode",
"métier",
"meuble",
"miauler",
"microbe",
"miette",
"mignon",
"migrer",
"milieu",
"million",
"mimique",
"mince",
"minéral",
"minimal",
"minorer",
"minute",
"miracle",
"miroiter",
"missile",
"mixte",
"mobile",
"moderne",
"moelleux",
"mondial",
"moniteur",
"monnaie",
"monotone",
"monstre",
"montagne",
"monument",
"moqueur",
"morceau",
"morsure",
"mortier",
"moteur",
"motif",
"mouche",
"moufle",
"moulin",
"mousson",
"mouton",
"mouvant",
"multiple",
"munition",
"muraille",
"murène",
"murmure",
"muscle",
"muséum",
"musicien",
"mutation",
"muter",
"mutuel",
"myriade",
"myrtille",
"mystère",
"mythique",
"nageur",
"nappe",
"narquois",
"narrer",
"natation",
"nation",
"nature",
"naufrage",
"nautique",
"navire",
"nébuleux",
"nectar",
"néfaste",
"négation",
"négliger",
"négocier",
"neige",
"nerveux",
"nettoyer",
"neurone",
"neutron",
"neveu",
"niche",
"nickel",
"nitrate",
"niveau",
"noble",
"nocif",
"nocturne",
"noirceur",
"noisette",
"nomade",
"nombreux",
"nommer",
"normatif",
"notable",
"notifier",
"notoire",
"nourrir",
"nouveau",
"novateur",
"novembre",
"novice",
"nuage",
"nuancer",
"nuire",
"nuisible",
"numéro",
"nuptial",
"nuque",
"nutritif",
"obéir",
"objectif",
"obliger",
"obscur",
"observer",
"obstacle",
"obtenir",
"obturer",
"occasion",
"occuper",
"océan",
"octobre",
"octroyer",
"octupler",
"oculaire",
"odeur",
"odorant",
"offenser",
"officier",
"offrir",
"ogive",
"oiseau",
"oisillon",
"olfactif",
"olivier",
"ombrage",
"omettre",
"onctueux",
"onduler",
"onéreux",
"onirique",
"opale",
"opaque",
"opérer",
"opinion",
"opportun",
"opprimer",
"opter",
"optique",
"orageux",
"orange",
"orbite",
"ordonner",
"oreille",
"organe",
"orgueil",
"orifice",
"ornement",
"orque",
"ortie",
"osciller",
"osmose",
"ossature",
"otarie",
"ouragan",
"ourson",
"outil",
"outrager",
"ouvrage",
"ovation",
"oxyde",
"oxygène",
"ozone",
"paisible",
"palace",
"palmarès",
"palourde",
"palper",
"panache",
"panda",
"pangolin",
"paniquer",
"panneau",
"panorama",
"pantalon",
"papaye",
"papier",
"papoter",
"papyrus",
"paradoxe",
"parcelle",
"paresse",
"parfumer",
"parler",
"parole",
"parrain",
"parsemer",
"partager",
"parure",
"parvenir",
"passion",
"pastèque",
"paternel",
"patience",
"patron",
"pavillon",
"pavoiser",
"payer",
"paysage",
"peigne",
"peintre",
"pelage",
"pélican",
"pelle",
"pelouse",
"peluche",
"pendule",
"pénétrer",
"pénible",
"pensif",
"pénurie",
"pépite",
"péplum",
"perdrix",
"perforer",
"période",
"permuter",
"perplexe",
"persil",
"perte",
"peser",
"pétale",
"petit",
"pétrir",
"peuple",
"pharaon",
"phobie",
"phoque",
"photon",
"phrase",
"physique",
"piano",
"pictural",
"pièce",
"pierre",
"pieuvre",
"pilote",
"pinceau",
"pipette",
"piquer",
"pirogue",
"piscine",
"piston",
"pivoter",
"pixel",
"pizza",
"placard",
"plafond",
"plaisir",
"planer",
"plaque",
"plastron",
"plateau",
"pleurer",
"plexus",
"pliage",
"plomb",
"plonger",
"pluie",
"plumage",
"pochette",
"poésie",
"poète",
"pointe",
"poirier",
"poisson",
"poivre",
"polaire",
"policier",
"pollen",
"polygone",
"pommade",
"pompier",
"ponctuel",
"pondérer",
"poney",
"portique",
"position",
"posséder",
"posture",
"potager",
"poteau",
"potion",
"pouce",
"poulain",
"poumon",
"pourpre",
"poussin",
"pouvoir",
"prairie",
"pratique",
"précieux",
"prédire",
"préfixe",
"prélude",
"prénom",
"présence",
"prétexte",
"prévoir",
"primitif",
"prince",
"prison",
"priver",
"problème",
"procéder",
"prodige",
"profond",
"progrès",
"proie",
"projeter",
"prologue",
"promener",
"propre",
"prospère",
"protéger",
"prouesse",
"proverbe",
"prudence",
"pruneau",
"psychose",
"public",
"puceron",
"puiser",
"pulpe",
"pulsar",
"punaise",
"punitif",
"pupitre",
"purifier",
"puzzle",
"pyramide",
"quasar",
"querelle",
"question",
"quiétude",
"quitter",
"quotient",
"racine",
"raconter",
"radieux",
"ragondin",
"raideur",
"raisin",
"ralentir",
"rallonge",
"ramasser",
"rapide",
"rasage",
"ratisser",
"ravager",
"ravin",
"rayonner",
"réactif",
"réagir",
"réaliser",
"réanimer",
"recevoir",
"réciter",
"réclamer",
"récolter",
"recruter",
"reculer",
"recycler",
"rédiger",
"redouter",
"refaire",
"réflexe",
"réformer",
"refrain",
"refuge",
"régalien",
"région",
"réglage",
"régulier",
"réitérer",
"rejeter",
"rejouer",
"relatif",
"relever",
"relief",
"remarque",
"remède",
"remise",
"remonter",
"remplir",
"remuer",
"renard",
"renfort",
"renifler",
"renoncer",
"rentrer",
"renvoi",
"replier",
"reporter",
"reprise",
"reptile",
"requin",
"réserve",
"résineux",
"résoudre",
"respect",
"rester",
"résultat",
"rétablir",
"retenir",
"réticule",
"retomber",
"retracer",
"réunion",
"réussir",
"revanche",
"revivre",
"révolte",
"révulsif",
"richesse",
"rideau",
"rieur",
"rigide",
"rigoler",
"rincer",
"riposter",
"risible",
"risque",
"rituel",
"rival",
"rivière",
"rocheux",
"romance",
"rompre",
"ronce",
"rondin",
"roseau",
"rosier",
"rotatif",
"rotor",
"rotule",
"rouge",
"rouille",
"rouleau",
"routine",
"royaume",
"ruban",
"rubis",
"ruche",
"ruelle",
"rugueux",
"ruiner",
"ruisseau",
"ruser",
"rustique",
"rythme",
"sabler",
"saboter",
"sabre",
"sacoche",
"safari",
"sagesse",
"saisir",
"salade",
"salive",
"salon",
"saluer",
"samedi",
"sanction",
"sanglier",
"sarcasme",
"sardine",
"saturer",
"saugrenu",
"saumon",
"sauter",
"sauvage",
"savant",
"savonner",
"scalpel",
"scandale",
"scélérat",
"scénario",
"sceptre",
"schéma",
"science",
"scinder",
"score",
"scrutin",
"sculpter",
"séance",
"sécable",
"sécher",
"secouer",
"sécréter",
"sédatif",
"séduire",
"seigneur",
"séjour",
"sélectif",
"semaine",
"sembler",
"semence",
"séminal",
"sénateur",
"sensible",
"sentence",
"séparer",
"séquence",
"serein",
"sergent",
"sérieux",
"serrure",
"sérum",
"service",
"sésame",
"sévir",
"sevrage",
"sextuple",
"sidéral",
"siècle",
"siéger",
"siffler",
"sigle",
"signal",
"silence",
"silicium",
"simple",
"sincère",
"sinistre",
"siphon",
"sirop",
"sismique",
"situer",
"skier",
"social",
"socle",
"sodium",
"soigneux",
"soldat",
"soleil",
"solitude",
"soluble",
"sombre",
"sommeil",
"somnoler",
"sonde",
"songeur",
"sonnette",
"sonore",
"sorcier",
"sortir",
"sosie",
"sottise",
"soucieux",
"soudure",
"souffle",
"soulever",
"soupape",
"source",
"soutirer",
"souvenir",
"spacieux",
"spatial",
"spécial",
"sphère",
"spiral",
"stable",
"station",
"sternum",
"stimulus",
"stipuler",
"strict",
"studieux",
"stupeur",
"styliste",
"sublime",
"substrat",
"subtil",
"subvenir",
"succès",
"sucre",
"suffixe",
"suggérer",
"suiveur",
"sulfate",
"superbe",
"supplier",
"surface",
"suricate",
"surmener",
"surprise",
"sursaut",
"survie",
"suspect",
"syllabe",
"symbole",
"symétrie",
"synapse",
"syntaxe",
"système",
"tabac",
"tablier",
"tactile",
"tailler",
"talent",
"talisman",
"talonner",
"tambour",
"tamiser",
"tangible",
"tapis",
"taquiner",
"tarder",
"tarif",
"tartine",
"tasse",
"tatami",
"tatouage",
"taupe",
"taureau",
"taxer",
"témoin",
"temporel",
"tenaille",
"tendre",
"teneur",
"tenir",
"tension",
"terminer",
"terne",
"terrible",
"tétine",
"texte",
"thème",
"théorie",
"thérapie",
"thorax",
"tibia",
"tiède",
"timide",
"tirelire",
"tiroir",
"tissu",
"titane",
"titre",
"tituber",
"toboggan",
"tolérant",
"tomate",
"tonique",
"tonneau",
"toponyme",
"torche",
"tordre",
"tornade",
"torpille",
"torrent",
"torse",
"tortue",
"totem",
"toucher",
"tournage",
"tousser",
"toxine",
"traction",
"trafic",
"tragique",
"trahir",
"train",
"trancher",
"travail",
"trèfle",
"tremper",
"trésor",
"treuil",
"triage",
"tribunal",
"tricoter",
"trilogie",
"triomphe",
"tripler",
"triturer",
"trivial",
"trombone",
"tronc",
"tropical",
"troupeau",
"tuile",
"tulipe",
"tumulte",
"tunnel",
"turbine",
"tuteur",
"tutoyer",
"tuyau",
"tympan",
"typhon",
"typique",
"tyran",
"ubuesque",
"ultime",
"ultrason",
"unanime",
"unifier",
"union",
"unique",
"unitaire",
"univers",
"uranium",
"urbain",
"urticant",
"usage",
"usine",
"usuel",
"usure",
"utile",
"utopie",
"vacarme",
"vaccin",
"vagabond",
"vague",
"vaillant",
"vaincre",
"vaisseau",
"valable",
"valise",
"vallon",
"valve",
"vampire",
"vanille",
"vapeur",
"varier",
"vaseux",
"vassal",
"vaste",
"vecteur",
"vedette",
"végétal",
"véhicule",
"veinard",
"véloce",
"vendredi",
"vénérer",
"venger",
"venimeux",
"ventouse",
"verdure",
"vérin",
"vernir",
"verrou",
"verser",
"vertu",
"veston",
"vétéran",
"vétuste",
"vexant",
"vexer",
"viaduc",
"viande",
"victoire",
"vidange",
"vidéo",
"vignette",
"vigueur",
"vilain",
"village",
"vinaigre",
"violon",
"vipère",
"virement",
"virtuose",
"virus",
"visage",
"viseur",
"vision",
"visqueux",
"visuel",
"vital",
"vitesse",
"viticole",
"vitrine",
"vivace",
"vivipare",
"vocation",
"voguer",
"voile",
"voisin",
"voiture",
"volaille",
"volcan",
"voltiger",
"volume",
"vorace",
"vortex",
"voter",
"vouloir",
"voyage",
"voyelle",
"wagon",
"xénon",
"yacht",
"zèbre",
"zénith",
"zeste",
"zoologie"
]
},{}],164:[function(require,module,exports){
module.exports=[
"abaco",
"abbaglio",
"abbinato",
"abete",
"abisso",
"abolire",
"abrasivo",
"abrogato",
"accadere",
"accenno",
"accusato",
"acetone",
"achille",
"acido",
"acqua",
"acre",
"acrilico",
"acrobata",
"acuto",
"adagio",
"addebito",
"addome",
"adeguato",
"aderire",
"adipe",
"adottare",
"adulare",
"affabile",
"affetto",
"affisso",
"affranto",
"aforisma",
"afoso",
"africano",
"agave",
"agente",
"agevole",
"aggancio",
"agire",
"agitare",
"agonismo",
"agricolo",
"agrumeto",
"aguzzo",
"alabarda",
"alato",
"albatro",
"alberato",
"albo",
"albume",
"alce",
"alcolico",
"alettone",
"alfa",
"algebra",
"aliante",
"alibi",
"alimento",
"allagato",
"allegro",
"allievo",
"allodola",
"allusivo",
"almeno",
"alogeno",
"alpaca",
"alpestre",
"altalena",
"alterno",
"alticcio",
"altrove",
"alunno",
"alveolo",
"alzare",
"amalgama",
"amanita",
"amarena",
"ambito",
"ambrato",
"ameba",
"america",
"ametista",
"amico",
"ammasso",
"ammenda",
"ammirare",
"ammonito",
"amore",
"ampio",
"ampliare",
"amuleto",
"anacardo",
"anagrafe",
"analista",
"anarchia",
"anatra",
"anca",
"ancella",
"ancora",
"andare",
"andrea",
"anello",
"angelo",
"angolare",
"angusto",
"anima",
"annegare",
"annidato",
"anno",
"annuncio",
"anonimo",
"anticipo",
"anzi",
"apatico",
"apertura",
"apode",
"apparire",
"appetito",
"appoggio",
"approdo",
"appunto",
"aprile",
"arabica",
"arachide",
"aragosta",
"araldica",
"arancio",
"aratura",
"arazzo",
"arbitro",
"archivio",
"ardito",
"arenile",
"argento",
"argine",
"arguto",
"aria",
"armonia",
"arnese",
"arredato",
"arringa",
"arrosto",
"arsenico",
"arso",
"artefice",
"arzillo",
"asciutto",
"ascolto",
"asepsi",
"asettico",
"asfalto",
"asino",
"asola",
"aspirato",
"aspro",
"assaggio",
"asse",
"assoluto",
"assurdo",
"asta",
"astenuto",
"astice",
"astratto",
"atavico",
"ateismo",
"atomico",
"atono",
"attesa",
"attivare",
"attorno",
"attrito",
"attuale",
"ausilio",
"austria",
"autista",
"autonomo",
"autunno",
"avanzato",
"avere",
"avvenire",
"avviso",
"avvolgere",
"azione",
"azoto",
"azzimo",
"azzurro",
"babele",
"baccano",
"bacino",
"baco",
"badessa",
"badilata",
"bagnato",
"baita",
"balcone",
"baldo",
"balena",
"ballata",
"balzano",
"bambino",
"bandire",
"baraonda",
"barbaro",
"barca",
"baritono",
"barlume",
"barocco",
"basilico",
"basso",
"batosta",
"battuto",
"baule",
"bava",
"bavosa",
"becco",
"beffa",
"belgio",
"belva",
"benda",
"benevole",
"benigno",
"benzina",
"bere",
"berlina",
"beta",
"bibita",
"bici",
"bidone",
"bifido",
"biga",
"bilancia",
"bimbo",
"binocolo",
"biologo",
"bipede",
"bipolare",
"birbante",
"birra",
"biscotto",
"bisesto",
"bisnonno",
"bisonte",
"bisturi",
"bizzarro",
"blando",
"blatta",
"bollito",
"bonifico",
"bordo",
"bosco",
"botanico",
"bottino",
"bozzolo",
"braccio",
"bradipo",
"brama",
"branca",
"bravura",
"bretella",
"brevetto",
"brezza",
"briglia",
"brillante",
"brindare",
"broccolo",
"brodo",
"bronzina",
"brullo",
"bruno",
"bubbone",
"buca",
"budino",
"buffone",
"buio",
"bulbo",
"buono",
"burlone",
"burrasca",
"bussola",
"busta",
"cadetto",
"caduco",
"calamaro",
"calcolo",
"calesse",
"calibro",
"calmo",
"caloria",
"cambusa",
"camerata",
"camicia",
"cammino",
"camola",
"campale",
"canapa",
"candela",
"cane",
"canino",
"canotto",
"cantina",
"capace",
"capello",
"capitolo",
"capogiro",
"cappero",
"capra",
"capsula",
"carapace",
"carcassa",
"cardo",
"carisma",
"carovana",
"carretto",
"cartolina",
"casaccio",
"cascata",
"caserma",
"caso",
"cassone",
"castello",
"casuale",
"catasta",
"catena",
"catrame",
"cauto",
"cavillo",
"cedibile",
"cedrata",
"cefalo",
"celebre",
"cellulare",
"cena",
"cenone",
"centesimo",
"ceramica",
"cercare",
"certo",
"cerume",
"cervello",
"cesoia",
"cespo",
"ceto",
"chela",
"chiaro",
"chicca",
"chiedere",
"chimera",
"china",
"chirurgo",
"chitarra",
"ciao",
"ciclismo",
"cifrare",
"cigno",
"cilindro",
"ciottolo",
"circa",
"cirrosi",
"citrico",
"cittadino",
"ciuffo",
"civetta",
"civile",
"classico",
"clinica",
"cloro",
"cocco",
"codardo",
"codice",
"coerente",
"cognome",
"collare",
"colmato",
"colore",
"colposo",
"coltivato",
"colza",
"coma",
"cometa",
"commando",
"comodo",
"computer",
"comune",
"conciso",
"condurre",
"conferma",
"congelare",
"coniuge",
"connesso",
"conoscere",
"consumo",
"continuo",
"convegno",
"coperto",
"copione",
"coppia",
"copricapo",
"corazza",
"cordata",
"coricato",
"cornice",
"corolla",
"corpo",
"corredo",
"corsia",
"cortese",
"cosmico",
"costante",
"cottura",
"covato",
"cratere",
"cravatta",
"creato",
"credere",
"cremoso",
"crescita",
"creta",
"criceto",
"crinale",
"crisi",
"critico",
"croce",
"cronaca",
"crostata",
"cruciale",
"crusca",
"cucire",
"cuculo",
"cugino",
"cullato",
"cupola",
"curatore",
"cursore",
"curvo",
"cuscino",
"custode",
"dado",
"daino",
"dalmata",
"damerino",
"daniela",
"dannoso",
"danzare",
"datato",
"davanti",
"davvero",
"debutto",
"decennio",
"deciso",
"declino",
"decollo",
"decreto",
"dedicato",
"definito",
"deforme",
"degno",
"delegare",
"delfino",
"delirio",
"delta",
"demenza",
"denotato",
"dentro",
"deposito",
"derapata",
"derivare",
"deroga",
"descritto",
"deserto",
"desiderio",
"desumere",
"detersivo",
"devoto",
"diametro",
"dicembre",
"diedro",
"difeso",
"diffuso",
"digerire",
"digitale",
"diluvio",
"dinamico",
"dinnanzi",
"dipinto",
"diploma",
"dipolo",
"diradare",
"dire",
"dirotto",
"dirupo",
"disagio",
"discreto",
"disfare",
"disgelo",
"disposto",
"distanza",
"disumano",
"dito",
"divano",
"divelto",
"dividere",
"divorato",
"doblone",
"docente",
"doganale",
"dogma",
"dolce",
"domato",
"domenica",
"dominare",
"dondolo",
"dono",
"dormire",
"dote",
"dottore",
"dovuto",
"dozzina",
"drago",
"druido",
"dubbio",
"dubitare",
"ducale",
"duna",
"duomo",
"duplice",
"duraturo",
"ebano",
"eccesso",
"ecco",
"eclissi",
"economia",
"edera",
"edicola",
"edile",
"editoria",
"educare",
"egemonia",
"egli",
"egoismo",
"egregio",
"elaborato",
"elargire",
"elegante",
"elencato",
"eletto",
"elevare",
"elfico",
"elica",
"elmo",
"elsa",
"eluso",
"emanato",
"emblema",
"emesso",
"emiro",
"emotivo",
"emozione",
"empirico",
"emulo",
"endemico",
"enduro",
"energia",
"enfasi",
"enoteca",
"entrare",
"enzima",
"epatite",
"epilogo",
"episodio",
"epocale",
"eppure",
"equatore",
"erario",
"erba",
"erboso",
"erede",
"eremita",
"erigere",
"ermetico",
"eroe",
"erosivo",
"errante",
"esagono",
"esame",
"esanime",
"esaudire",
"esca",
"esempio",
"esercito",
"esibito",
"esigente",
"esistere",
"esito",
"esofago",
"esortato",
"esoso",
"espanso",
"espresso",
"essenza",
"esso",
"esteso",
"estimare",
"estonia",
"estroso",
"esultare",
"etilico",
"etnico",
"etrusco",
"etto",
"euclideo",
"europa",
"evaso",
"evidenza",
"evitato",
"evoluto",
"evviva",
"fabbrica",
"faccenda",
"fachiro",
"falco",
"famiglia",
"fanale",
"fanfara",
"fango",
"fantasma",
"fare",
"farfalla",
"farinoso",
"farmaco",
"fascia",
"fastoso",
"fasullo",
"faticare",
"fato",
"favoloso",
"febbre",
"fecola",
"fede",
"fegato",
"felpa",
"feltro",
"femmina",
"fendere",
"fenomeno",
"fermento",
"ferro",
"fertile",
"fessura",
"festivo",
"fetta",
"feudo",
"fiaba",
"fiducia",
"fifa",
"figurato",
"filo",
"finanza",
"finestra",
"finire",
"fiore",
"fiscale",
"fisico",
"fiume",
"flacone",
"flamenco",
"flebo",
"flemma",
"florido",
"fluente",
"fluoro",
"fobico",
"focaccia",
"focoso",
"foderato",
"foglio",
"folata",
"folclore",
"folgore",
"fondente",
"fonetico",
"fonia",
"fontana",
"forbito",
"forchetta",
"foresta",
"formica",
"fornaio",
"foro",
"fortezza",
"forzare",
"fosfato",
"fosso",
"fracasso",
"frana",
"frassino",
"fratello",
"freccetta",
"frenata",
"fresco",
"frigo",
"frollino",
"fronde",
"frugale",
"frutta",
"fucilata",
"fucsia",
"fuggente",
"fulmine",
"fulvo",
"fumante",
"fumetto",
"fumoso",
"fune",
"funzione",
"fuoco",
"furbo",
"furgone",
"furore",
"fuso",
"futile",
"gabbiano",
"gaffe",
"galateo",
"gallina",
"galoppo",
"gambero",
"gamma",
"garanzia",
"garbo",
"garofano",
"garzone",
"gasdotto",
"gasolio",
"gastrico",
"gatto",
"gaudio",
"gazebo",
"gazzella",
"geco",
"gelatina",
"gelso",
"gemello",
"gemmato",
"gene",
"genitore",
"gennaio",
"genotipo",
"gergo",
"ghepardo",
"ghiaccio",
"ghisa",
"giallo",
"gilda",
"ginepro",
"giocare",
"gioiello",
"giorno",
"giove",
"girato",
"girone",
"gittata",
"giudizio",
"giurato",
"giusto",
"globulo",
"glutine",
"gnomo",
"gobba",
"golf",
"gomito",
"gommone",
"gonfio",
"gonna",
"governo",
"gracile",
"grado",
"grafico",
"grammo",
"grande",
"grattare",
"gravoso",
"grazia",
"greca",
"gregge",
"grifone",
"grigio",
"grinza",
"grotta",
"gruppo",
"guadagno",
"guaio",
"guanto",
"guardare",
"gufo",
"guidare",
"ibernato",
"icona",
"identico",
"idillio",
"idolo",
"idra",
"idrico",
"idrogeno",
"igiene",
"ignaro",
"ignorato",
"ilare",
"illeso",
"illogico",
"illudere",
"imballo",
"imbevuto",
"imbocco",
"imbuto",
"immane",
"immerso",
"immolato",
"impacco",
"impeto",
"impiego",
"importo",
"impronta",
"inalare",
"inarcare",
"inattivo",
"incanto",
"incendio",
"inchino",
"incisivo",
"incluso",
"incontro",
"incrocio",
"incubo",
"indagine",
"india",
"indole",
"inedito",
"infatti",
"infilare",
"inflitto",
"ingaggio",
"ingegno",
"inglese",
"ingordo",
"ingrosso",
"innesco",
"inodore",
"inoltrare",
"inondato",
"insano",
"insetto",
"insieme",
"insonnia",
"insulina",
"intasato",
"intero",
"intonaco",
"intuito",
"inumidire",
"invalido",
"invece",
"invito",
"iperbole",
"ipnotico",
"ipotesi",
"ippica",
"iride",
"irlanda",
"ironico",
"irrigato",
"irrorare",
"isolato",
"isotopo",
"isterico",
"istituto",
"istrice",
"italia",
"iterare",
"labbro",
"labirinto",
"lacca",
"lacerato",
"lacrima",
"lacuna",
"laddove",
"lago",
"lampo",
"lancetta",
"lanterna",
"lardoso",
"larga",
"laringe",
"lastra",
"latenza",
"latino",
"lattuga",
"lavagna",
"lavoro",
"legale",
"leggero",
"lembo",
"lentezza",
"lenza",
"leone",
"lepre",
"lesivo",
"lessato",
"lesto",
"letterale",
"leva",
"levigato",
"libero",
"lido",
"lievito",
"lilla",
"limatura",
"limitare",
"limpido",
"lineare",
"lingua",
"liquido",
"lira",
"lirica",
"lisca",
"lite",
"litigio",
"livrea",
"locanda",
"lode",
"logica",
"lombare",
"londra",
"longevo",
"loquace",
"lorenzo",
"loto",
"lotteria",
"luce",
"lucidato",
"lumaca",
"luminoso",
"lungo",
"lupo",
"luppolo",
"lusinga",
"lusso",
"lutto",
"macabro",
"macchina",
"macero",
"macinato",
"madama",
"magico",
"maglia",
"magnete",
"magro",
"maiolica",
"malafede",
"malgrado",
"malinteso",
"malsano",
"malto",
"malumore",
"mana",
"mancia",
"mandorla",
"mangiare",
"manifesto",
"mannaro",
"manovra",
"mansarda",
"mantide",
"manubrio",
"mappa",
"maratona",
"marcire",
"maretta",
"marmo",
"marsupio",
"maschera",
"massaia",
"mastino",
"materasso",
"matricola",
"mattone",
"maturo",
"mazurca",
"meandro",
"meccanico",
"mecenate",
"medesimo",
"meditare",
"mega",
"melassa",
"melis",
"melodia",
"meninge",
"meno",
"mensola",
"mercurio",
"merenda",
"merlo",
"meschino",
"mese",
"messere",
"mestolo",
"metallo",
"metodo",
"mettere",
"miagolare",
"mica",
"micelio",
"michele",
"microbo",
"midollo",
"miele",
"migliore",
"milano",
"milite",
"mimosa",
"minerale",
"mini",
"minore",
"mirino",
"mirtillo",
"miscela",
"missiva",
"misto",
"misurare",
"mitezza",
"mitigare",
"mitra",
"mittente",
"mnemonico",
"modello",
"modifica",
"modulo",
"mogano",
"mogio",
"mole",
"molosso",
"monastero",
"monco",
"mondina",
"monetario",
"monile",
"monotono",
"monsone",
"montato",
"monviso",
"mora",
"mordere",
"morsicato",
"mostro",
"motivato",
"motosega",
"motto",
"movenza",
"movimento",
"mozzo",
"mucca",
"mucosa",
"muffa",
"mughetto",
"mugnaio",
"mulatto",
"mulinello",
"multiplo",
"mummia",
"munto",
"muovere",
"murale",
"musa",
"muscolo",
"musica",
"mutevole",
"muto",
"nababbo",
"nafta",
"nanometro",
"narciso",
"narice",
"narrato",
"nascere",
"nastrare",
"naturale",
"nautica",
"naviglio",
"nebulosa",
"necrosi",
"negativo",
"negozio",
"nemmeno",
"neofita",
"neretto",
"nervo",
"nessuno",
"nettuno",
"neutrale",
"neve",
"nevrotico",
"nicchia",
"ninfa",
"nitido",
"nobile",
"nocivo",
"nodo",
"nome",
"nomina",
"nordico",
"normale",
"norvegese",
"nostrano",
"notare",
"notizia",
"notturno",
"novella",
"nucleo",
"nulla",
"numero",
"nuovo",
"nutrire",
"nuvola",
"nuziale",
"oasi",
"obbedire",
"obbligo",
"obelisco",
"oblio",
"obolo",
"obsoleto",
"occasione",
"occhio",
"occidente",
"occorrere",
"occultare",
"ocra",
"oculato",
"odierno",
"odorare",
"offerta",
"offrire",
"offuscato",
"oggetto",
"oggi",
"ognuno",
"olandese",
"olfatto",
"oliato",
"oliva",
"ologramma",
"oltre",
"omaggio",
"ombelico",
"ombra",
"omega",
"omissione",
"ondoso",
"onere",
"onice",
"onnivoro",
"onorevole",
"onta",
"operato",
"opinione",
"opposto",
"oracolo",
"orafo",
"ordine",
"orecchino",
"orefice",
"orfano",
"organico",
"origine",
"orizzonte",
"orma",
"ormeggio",
"ornativo",
"orologio",
"orrendo",
"orribile",
"ortensia",
"ortica",
"orzata",
"orzo",
"osare",
"oscurare",
"osmosi",
"ospedale",
"ospite",
"ossa",
"ossidare",
"ostacolo",
"oste",
"otite",
"otre",
"ottagono",
"ottimo",
"ottobre",
"ovale",
"ovest",
"ovino",
"oviparo",
"ovocito",
"ovunque",
"ovviare",
"ozio",
"pacchetto",
"pace",
"pacifico",
"padella",
"padrone",
"paese",
"paga",
"pagina",
"palazzina",
"palesare",
"pallido",
"palo",
"palude",
"pandoro",
"pannello",
"paolo",
"paonazzo",
"paprica",
"parabola",
"parcella",
"parere",
"pargolo",
"pari",
"parlato",
"parola",
"partire",
"parvenza",
"parziale",
"passivo",
"pasticca",
"patacca",
"patologia",
"pattume",
"pavone",
"peccato",
"pedalare",
"pedonale",
"peggio",
"peloso",
"penare",
"pendice",
"penisola",
"pennuto",
"penombra",
"pensare",
"pentola",
"pepe",
"pepita",
"perbene",
"percorso",
"perdonato",
"perforare",
"pergamena",
"periodo",
"permesso",
"perno",
"perplesso",
"persuaso",
"pertugio",
"pervaso",
"pesatore",
"pesista",
"peso",
"pestifero",
"petalo",
"pettine",
"petulante",
"pezzo",
"piacere",
"pianta",
"piattino",
"piccino",
"picozza",
"piega",
"pietra",
"piffero",
"pigiama",
"pigolio",
"pigro",
"pila",
"pilifero",
"pillola",
"pilota",
"pimpante",
"pineta",
"pinna",
"pinolo",
"pioggia",
"piombo",
"piramide",
"piretico",
"pirite",
"pirolisi",
"pitone",
"pizzico",
"placebo",
"planare",
"plasma",
"platano",
"plenario",
"pochezza",
"poderoso",
"podismo",
"poesia",
"poggiare",
"polenta",
"poligono",
"pollice",
"polmonite",
"polpetta",
"polso",
"poltrona",
"polvere",
"pomice",
"pomodoro",
"ponte",
"popoloso",
"porfido",
"poroso",
"porpora",
"porre",
"portata",
"posa",
"positivo",
"possesso",
"postulato",
"potassio",
"potere",
"pranzo",
"prassi",
"pratica",
"precluso",
"predica",
"prefisso",
"pregiato",
"prelievo",
"premere",
"prenotare",
"preparato",
"presenza",
"pretesto",
"prevalso",
"prima",
"principe",
"privato",
"problema",
"procura",
"produrre",
"profumo",
"progetto",
"prolunga",
"promessa",
"pronome",
"proposta",
"proroga",
"proteso",
"prova",
"prudente",
"prugna",
"prurito",
"psiche",
"pubblico",
"pudica",
"pugilato",
"pugno",
"pulce",
"pulito",
"pulsante",
"puntare",
"pupazzo",
"pupilla",
"puro",
"quadro",
"qualcosa",
"quasi",
"querela",
"quota",
"raccolto",
"raddoppio",
"radicale",
"radunato",
"raffica",
"ragazzo",
"ragione",
"ragno",
"ramarro",
"ramingo",
"ramo",
"randagio",
"rantolare",
"rapato",
"rapina",
"rappreso",
"rasatura",
"raschiato",
"rasente",
"rassegna",
"rastrello",
"rata",
"ravveduto",
"reale",
"recepire",
"recinto",
"recluta",
"recondito",
"recupero",
"reddito",
"redimere",
"regalato",
"registro",
"regola",
"regresso",
"relazione",
"remare",
"remoto",
"renna",
"replica",
"reprimere",
"reputare",
"resa",
"residente",
"responso",
"restauro",
"rete",
"retina",
"retorica",
"rettifica",
"revocato",
"riassunto",
"ribadire",
"ribelle",
"ribrezzo",
"ricarica",
"ricco",
"ricevere",
"riciclato",
"ricordo",
"ricreduto",
"ridicolo",
"ridurre",
"rifasare",
"riflesso",
"riforma",
"rifugio",
"rigare",
"rigettato",
"righello",
"rilassato",
"rilevato",
"rimanere",
"rimbalzo",
"rimedio",
"rimorchio",
"rinascita",
"rincaro",
"rinforzo",
"rinnovo",
"rinomato",
"rinsavito",
"rintocco",
"rinuncia",
"rinvenire",
"riparato",
"ripetuto",
"ripieno",
"riportare",
"ripresa",
"ripulire",
"risata",
"rischio",
"riserva",
"risibile",
"riso",
"rispetto",
"ristoro",
"risultato",
"risvolto",
"ritardo",
"ritegno",
"ritmico",
"ritrovo",
"riunione",
"riva",
"riverso",
"rivincita",
"rivolto",
"rizoma",
"roba",
"robotico",
"robusto",
"roccia",
"roco",
"rodaggio",
"rodere",
"roditore",
"rogito",
"rollio",
"romantico",
"rompere",
"ronzio",
"rosolare",
"rospo",
"rotante",
"rotondo",
"rotula",
"rovescio",
"rubizzo",
"rubrica",
"ruga",
"rullino",
"rumine",
"rumoroso",
"ruolo",
"rupe",
"russare",
"rustico",
"sabato",
"sabbiare",
"sabotato",
"sagoma",
"salasso",
"saldatura",
"salgemma",
"salivare",
"salmone",
"salone",
"saltare",
"saluto",
"salvo",
"sapere",
"sapido",
"saporito",
"saraceno",
"sarcasmo",
"sarto",
"sassoso",
"satellite",
"satira",
"satollo",
"saturno",
"savana",
"savio",
"saziato",
"sbadiglio",
"sbalzo",
"sbancato",
"sbarra",
"sbattere",
"sbavare",
"sbendare",
"sbirciare",
"sbloccato",
"sbocciato",
"sbrinare",
"sbruffone",
"sbuffare",
"scabroso",
"scadenza",
"scala",
"scambiare",
"scandalo",
"scapola",
"scarso",
"scatenare",
"scavato",
"scelto",
"scenico",
"scettro",
"scheda",
"schiena",
"sciarpa",
"scienza",
"scindere",
"scippo",
"sciroppo",
"scivolo",
"sclerare",
"scodella",
"scolpito",
"scomparto",
"sconforto",
"scoprire",
"scorta",
"scossone",
"scozzese",
"scriba",
"scrollare",
"scrutinio",
"scuderia",
"scultore",
"scuola",
"scuro",
"scusare",
"sdebitare",
"sdoganare",
"seccatura",
"secondo",
"sedano",
"seggiola",
"segnalato",
"segregato",
"seguito",
"selciato",
"selettivo",
"sella",
"selvaggio",
"semaforo",
"sembrare",
"seme",
"seminato",
"sempre",
"senso",
"sentire",
"sepolto",
"sequenza",
"serata",
"serbato",
"sereno",
"serio",
"serpente",
"serraglio",
"servire",
"sestina",
"setola",
"settimana",
"sfacelo",
"sfaldare",
"sfamato",
"sfarzoso",
"sfaticato",
"sfera",
"sfida",
"sfilato",
"sfinge",
"sfocato",
"sfoderare",
"sfogo",
"sfoltire",
"sforzato",
"sfratto",
"sfruttato",
"sfuggito",
"sfumare",
"sfuso",
"sgabello",
"sgarbato",
"sgonfiare",
"sgorbio",
"sgrassato",
"sguardo",
"sibilo",
"siccome",
"sierra",
"sigla",
"signore",
"silenzio",
"sillaba",
"simbolo",
"simpatico",
"simulato",
"sinfonia",
"singolo",
"sinistro",
"sino",
"sintesi",
"sinusoide",
"sipario",
"sisma",
"sistole",
"situato",
"slitta",
"slogatura",
"sloveno",
"smarrito",
"smemorato",
"smentito",
"smeraldo",
"smilzo",
"smontare",
"smottato",
"smussato",
"snellire",
"snervato",
"snodo",
"sobbalzo",
"sobrio",
"soccorso",
"sociale",
"sodale",
"soffitto",
"sogno",
"soldato",
"solenne",
"solido",
"sollazzo",
"solo",
"solubile",
"solvente",
"somatico",
"somma",
"sonda",
"sonetto",
"sonnifero",
"sopire",
"soppeso",
"sopra",
"sorgere",
"sorpasso",
"sorriso",
"sorso",
"sorteggio",
"sorvolato",
"sospiro",
"sosta",
"sottile",
"spada",
"spalla",
"spargere",
"spatola",
"spavento",
"spazzola",
"specie",
"spedire",
"spegnere",
"spelatura",
"speranza",
"spessore",
"spettrale",
"spezzato",
"spia",
"spigoloso",
"spillato",
"spinoso",
"spirale",
"splendido",
"sportivo",
"sposo",
"spranga",
"sprecare",
"spronato",
"spruzzo",
"spuntino",
"squillo",
"sradicare",
"srotolato",
"stabile",
"stacco",
"staffa",
"stagnare",
"stampato",
"stantio",
"starnuto",
"stasera",
"statuto",
"stelo",
"steppa",
"sterzo",
"stiletto",
"stima",
"stirpe",
"stivale",
"stizzoso",
"stonato",
"storico",
"strappo",
"stregato",
"stridulo",
"strozzare",
"strutto",
"stuccare",
"stufo",
"stupendo",
"subentro",
"succoso",
"sudore",
"suggerito",
"sugo",
"sultano",
"suonare",
"superbo",
"supporto",
"surgelato",
"surrogato",
"sussurro",
"sutura",
"svagare",
"svedese",
"sveglio",
"svelare",
"svenuto",
"svezia",
"sviluppo",
"svista",
"svizzera",
"svolta",
"svuotare",
"tabacco",
"tabulato",
"tacciare",
"taciturno",
"tale",
"talismano",
"tampone",
"tannino",
"tara",
"tardivo",
"targato",
"tariffa",
"tarpare",
"tartaruga",
"tasto",
"tattico",
"taverna",
"tavolata",
"tazza",
"teca",
"tecnico",
"telefono",
"temerario",
"tempo",
"temuto",
"tendone",
"tenero",
"tensione",
"tentacolo",
"teorema",
"terme",
"terrazzo",
"terzetto",
"tesi",
"tesserato",
"testato",
"tetro",
"tettoia",
"tifare",
"tigella",
"timbro",
"tinto",
"tipico",
"tipografo",
"tiraggio",
"tiro",
"titanio",
"titolo",
"titubante",
"tizio",
"tizzone",
"toccare",
"tollerare",
"tolto",
"tombola",
"tomo",
"tonfo",
"tonsilla",
"topazio",
"topologia",
"toppa",
"torba",
"tornare",
"torrone",
"tortora",
"toscano",
"tossire",
"tostatura",
"totano",
"trabocco",
"trachea",
"trafila",
"tragedia",
"tralcio",
"tramonto",
"transito",
"trapano",
"trarre",
"trasloco",
"trattato",
"trave",
"treccia",
"tremolio",
"trespolo",
"tributo",
"tricheco",
"trifoglio",
"trillo",
"trincea",
"trio",
"tristezza",
"triturato",
"trivella",
"tromba",
"trono",
"troppo",
"trottola",
"trovare",
"truccato",
"tubatura",
"tuffato",
"tulipano",
"tumulto",
"tunisia",
"turbare",
"turchino",
"tuta",
"tutela",
"ubicato",
"uccello",
"uccisore",
"udire",
"uditivo",
"uffa",
"ufficio",
"uguale",
"ulisse",
"ultimato",
"umano",
"umile",
"umorismo",
"uncinetto",
"ungere",
"ungherese",
"unicorno",
"unificato",
"unisono",
"unitario",
"unte",
"uovo",
"upupa",
"uragano",
"urgenza",
"urlo",
"usanza",
"usato",
"uscito",
"usignolo",
"usuraio",
"utensile",
"utilizzo",
"utopia",
"vacante",
"vaccinato",
"vagabondo",
"vagliato",
"valanga",
"valgo",
"valico",
"valletta",
"valoroso",
"valutare",
"valvola",
"vampata",
"vangare",
"vanitoso",
"vano",
"vantaggio",
"vanvera",
"vapore",
"varano",
"varcato",
"variante",
"vasca",
"vedetta",
"vedova",
"veduto",
"vegetale",
"veicolo",
"velcro",
"velina",
"velluto",
"veloce",
"venato",
"vendemmia",
"vento",
"verace",
"verbale",
"vergogna",
"verifica",
"vero",
"verruca",
"verticale",
"vescica",
"vessillo",
"vestale",
"veterano",
"vetrina",
"vetusto",
"viandante",
"vibrante",
"vicenda",
"vichingo",
"vicinanza",
"vidimare",
"vigilia",
"vigneto",
"vigore",
"vile",
"villano",
"vimini",
"vincitore",
"viola",
"vipera",
"virgola",
"virologo",
"virulento",
"viscoso",
"visione",
"vispo",
"vissuto",
"visura",
"vita",
"vitello",
"vittima",
"vivanda",
"vivido",
"viziare",
"voce",
"voga",
"volatile",
"volere",
"volpe",
"voragine",
"vulcano",
"zampogna",
"zanna",
"zappato",
"zattera",
"zavorra",
"zefiro",
"zelante",
"zelo",
"zenzero",
"zerbino",
"zibetto",
"zinco",
"zircone",
"zitto",
"zolla",
"zotico",
"zucchero",
"zufolo",
"zulu",
"zuppa"
]
},{}],165:[function(require,module,exports){
module.exports=[
"あいこくしん",
"あいさつ",
"あいだ",
"あおぞら",
"あかちゃん",
"あきる",
"あけがた",
"あける",
"あこがれる",
"あさい",
"あさひ",
"あしあと",
"あじわう",
"あずかる",
"あずき",
"あそぶ",
"あたえる",
"あたためる",
"あたりまえ",
"あたる",
"あつい",
"あつかう",
"あっしゅく",
"あつまり",
"あつめる",
"あてな",
"あてはまる",
"あひる",
"あぶら",
"あぶる",
"あふれる",
"あまい",
"あまど",
"あまやかす",
"あまり",
"あみもの",
"あめりか",
"あやまる",
"あゆむ",
"あらいぐま",
"あらし",
"あらすじ",
"あらためる",
"あらゆる",
"あらわす",
"ありがとう",
"あわせる",
"あわてる",
"あんい",
"あんがい",
"あんこ",
"あんぜん",
"あんてい",
"あんない",
"あんまり",
"いいだす",
"いおん",
"いがい",
"いがく",
"いきおい",
"いきなり",
"いきもの",
"いきる",
"いくじ",
"いくぶん",
"いけばな",
"いけん",
"いこう",
"いこく",
"いこつ",
"いさましい",
"いさん",
"いしき",
"いじゅう",
"いじょう",
"いじわる",
"いずみ",
"いずれ",
"いせい",
"いせえび",
"いせかい",
"いせき",
"いぜん",
"いそうろう",
"いそがしい",
"いだい",
"いだく",
"いたずら",
"いたみ",
"いたりあ",
"いちおう",
"いちじ",
"いちど",
"いちば",
"いちぶ",
"いちりゅう",
"いつか",
"いっしゅん",
"いっせい",
"いっそう",
"いったん",
"いっち",
"いってい",
"いっぽう",
"いてざ",
"いてん",
"いどう",
"いとこ",
"いない",
"いなか",
"いねむり",
"いのち",
"いのる",
"いはつ",
"いばる",
"いはん",
"いびき",
"いひん",
"いふく",
"いへん",
"いほう",
"いみん",
"いもうと",
"いもたれ",
"いもり",
"いやがる",
"いやす",
"いよかん",
"いよく",
"いらい",
"いらすと",
"いりぐち",
"いりょう",
"いれい",
"いれもの",
"いれる",
"いろえんぴつ",
"いわい",
"いわう",
"いわかん",
"いわば",
"いわゆる",
"いんげんまめ",
"いんさつ",
"いんしょう",
"いんよう",
"うえき",
"うえる",
"うおざ",
"うがい",
"うかぶ",
"うかべる",
"うきわ",
"うくらいな",
"うくれれ",
"うけたまわる",
"うけつけ",
"うけとる",
"うけもつ",
"うける",
"うごかす",
"うごく",
"うこん",
"うさぎ",
"うしなう",
"うしろがみ",
"うすい",
"うすぎ",
"うすぐらい",
"うすめる",
"うせつ",
"うちあわせ",
"うちがわ",
"うちき",
"うちゅう",
"うっかり",
"うつくしい",
"うったえる",
"うつる",
"うどん",
"うなぎ",
"うなじ",
"うなずく",
"うなる",
"うねる",
"うのう",
"うぶげ",
"うぶごえ",
"うまれる",
"うめる",
"うもう",
"うやまう",
"うよく",
"うらがえす",
"うらぐち",
"うらない",
"うりあげ",
"うりきれ",
"うるさい",
"うれしい",
"うれゆき",
"うれる",
"うろこ",
"うわき",
"うわさ",
"うんこう",
"うんちん",
"うんてん",
"うんどう",
"えいえん",
"えいが",
"えいきょう",
"えいご",
"えいせい",
"えいぶん",
"えいよう",
"えいわ",
"えおり",
"えがお",
"えがく",
"えきたい",
"えくせる",
"えしゃく",
"えすて",
"えつらん",
"えのぐ",
"えほうまき",
"えほん",
"えまき",
"えもじ",
"えもの",
"えらい",
"えらぶ",
"えりあ",
"えんえん",
"えんかい",
"えんぎ",
"えんげき",
"えんしゅう",
"えんぜつ",
"えんそく",
"えんちょう",
"えんとつ",
"おいかける",
"おいこす",
"おいしい",
"おいつく",
"おうえん",
"おうさま",
"おうじ",
"おうせつ",
"おうたい",
"おうふく",
"おうべい",
"おうよう",
"おえる",
"おおい",
"おおう",
"おおどおり",
"おおや",
"おおよそ",
"おかえり",
"おかず",
"おがむ",
"おかわり",
"おぎなう",
"おきる",
"おくさま",
"おくじょう",
"おくりがな",
"おくる",
"おくれる",
"おこす",
"おこなう",
"おこる",
"おさえる",
"おさない",
"おさめる",
"おしいれ",
"おしえる",
"おじぎ",
"おじさん",
"おしゃれ",
"おそらく",
"おそわる",
"おたがい",
"おたく",
"おだやか",
"おちつく",
"おっと",
"おつり",
"おでかけ",
"おとしもの",
"おとなしい",
"おどり",
"おどろかす",
"おばさん",
"おまいり",
"おめでとう",
"おもいで",
"おもう",
"おもたい",
"おもちゃ",
"おやつ",
"おやゆび",
"およぼす",
"おらんだ",
"おろす",
"おんがく",
"おんけい",
"おんしゃ",
"おんせん",
"おんだん",
"おんちゅう",
"おんどけい",
"かあつ",
"かいが",
"がいき",
"がいけん",
"がいこう",
"かいさつ",
"かいしゃ",
"かいすいよく",
"かいぜん",
"かいぞうど",
"かいつう",
"かいてん",
"かいとう",
"かいふく",
"がいへき",
"かいほう",
"かいよう",
"がいらい",
"かいわ",
"かえる",
"かおり",
"かかえる",
"かがく",
"かがし",
"かがみ",
"かくご",
"かくとく",
"かざる",
"がぞう",
"かたい",
"かたち",
"がちょう",
"がっきゅう",
"がっこう",
"がっさん",
"がっしょう",
"かなざわし",
"かのう",
"がはく",
"かぶか",
"かほう",
"かほご",
"かまう",
"かまぼこ",
"かめれおん",
"かゆい",
"かようび",
"からい",
"かるい",
"かろう",
"かわく",
"かわら",
"がんか",
"かんけい",
"かんこう",
"かんしゃ",
"かんそう",
"かんたん",
"かんち",
"がんばる",
"きあい",
"きあつ",
"きいろ",
"ぎいん",
"きうい",
"きうん",
"きえる",
"きおう",
"きおく",
"きおち",
"きおん",
"きかい",
"きかく",
"きかんしゃ",
"ききて",
"きくばり",
"きくらげ",
"きけんせい",
"きこう",
"きこえる",
"きこく",
"きさい",
"きさく",
"きさま",
"きさらぎ",
"ぎじかがく",
"ぎしき",
"ぎじたいけん",
"ぎじにってい",
"ぎじゅつしゃ",
"きすう",
"きせい",
"きせき",
"きせつ",
"きそう",
"きぞく",
"きぞん",
"きたえる",
"きちょう",
"きつえん",
"ぎっちり",
"きつつき",
"きつね",
"きてい",
"きどう",
"きどく",
"きない",
"きなが",
"きなこ",
"きぬごし",
"きねん",
"きのう",
"きのした",
"きはく",
"きびしい",
"きひん",
"きふく",
"きぶん",
"きぼう",
"きほん",
"きまる",
"きみつ",
"きむずかしい",
"きめる",
"きもだめし",
"きもち",
"きもの",
"きゃく",
"きやく",
"ぎゅうにく",
"きよう",
"きょうりゅう",
"きらい",
"きらく",
"きりん",
"きれい",
"きれつ",
"きろく",
"ぎろん",
"きわめる",
"ぎんいろ",
"きんかくじ",
"きんじょ",
"きんようび",
"ぐあい",
"くいず",
"くうかん",
"くうき",
"くうぐん",
"くうこう",
"ぐうせい",
"くうそう",
"ぐうたら",
"くうふく",
"くうぼ",
"くかん",
"くきょう",
"くげん",
"ぐこう",
"くさい",
"くさき",
"くさばな",
"くさる",
"くしゃみ",
"くしょう",
"くすのき",
"くすりゆび",
"くせげ",
"くせん",
"ぐたいてき",
"くださる",
"くたびれる",
"くちこみ",
"くちさき",
"くつした",
"ぐっすり",
"くつろぐ",
"くとうてん",
"くどく",
"くなん",
"くねくね",
"くのう",
"くふう",
"くみあわせ",
"くみたてる",
"くめる",
"くやくしょ",
"くらす",
"くらべる",
"くるま",
"くれる",
"くろう",
"くわしい",
"ぐんかん",
"ぐんしょく",
"ぐんたい",
"ぐんて",
"けあな",
"けいかく",
"けいけん",
"けいこ",
"けいさつ",
"げいじゅつ",
"けいたい",
"げいのうじん",
"けいれき",
"けいろ",
"けおとす",
"けおりもの",
"げきか",
"げきげん",
"げきだん",
"げきちん",
"げきとつ",
"げきは",
"げきやく",
"げこう",
"げこくじょう",
"げざい",
"けさき",
"げざん",
"けしき",
"けしごむ",
"けしょう",
"げすと",
"けたば",
"けちゃっぷ",
"けちらす",
"けつあつ",
"けつい",
"けつえき",
"けっこん",
"けつじょ",
"けっせき",
"けってい",
"けつまつ",
"げつようび",
"げつれい",
"けつろん",
"げどく",
"けとばす",
"けとる",
"けなげ",
"けなす",
"けなみ",
"けぬき",
"げねつ",
"けねん",
"けはい",
"げひん",
"けぶかい",
"げぼく",
"けまり",
"けみかる",
"けむし",
"けむり",
"けもの",
"けらい",
"けろけろ",
"けわしい",
"けんい",
"けんえつ",
"けんお",
"けんか",
"げんき",
"けんげん",
"けんこう",
"けんさく",
"けんしゅう",
"けんすう",
"げんそう",
"けんちく",
"けんてい",
"けんとう",
"けんない",
"けんにん",
"げんぶつ",
"けんま",
"けんみん",
"けんめい",
"けんらん",
"けんり",
"こあくま",
"こいぬ",
"こいびと",
"ごうい",
"こうえん",
"こうおん",
"こうかん",
"ごうきゅう",
"ごうけい",
"こうこう",
"こうさい",
"こうじ",
"こうすい",
"ごうせい",
"こうそく",
"こうたい",
"こうちゃ",
"こうつう",
"こうてい",
"こうどう",
"こうない",
"こうはい",
"ごうほう",
"ごうまん",
"こうもく",
"こうりつ",
"こえる",
"こおり",
"ごかい",
"ごがつ",
"ごかん",
"こくご",
"こくさい",
"こくとう",
"こくない",
"こくはく",
"こぐま",
"こけい",
"こける",
"ここのか",
"こころ",
"こさめ",
"こしつ",
"こすう",
"こせい",
"こせき",
"こぜん",
"こそだて",
"こたい",
"こたえる",
"こたつ",
"こちょう",
"こっか",
"こつこつ",
"こつばん",
"こつぶ",
"こてい",
"こてん",
"ことがら",
"ことし",
"ことば",
"ことり",
"こなごな",
"こねこね",
"このまま",
"このみ",
"このよ",
"ごはん",
"こひつじ",
"こふう",
"こふん",
"こぼれる",
"ごまあぶら",
"こまかい",
"ごますり",
"こまつな",
"こまる",
"こむぎこ",
"こもじ",
"こもち",
"こもの",
"こもん",
"こやく",
"こやま",
"こゆう",
"こゆび",
"こよい",
"こよう",
"こりる",
"これくしょん",
"ころっけ",
"こわもて",
"こわれる",
"こんいん",
"こんかい",
"こんき",
"こんしゅう",
"こんすい",
"こんだて",
"こんとん",
"こんなん",
"こんびに",
"こんぽん",
"こんまけ",
"こんや",
"こんれい",
"こんわく",
"ざいえき",
"さいかい",
"さいきん",
"ざいげん",
"ざいこ",
"さいしょ",
"さいせい",
"ざいたく",
"ざいちゅう",
"さいてき",
"ざいりょう",
"さうな",
"さかいし",
"さがす",
"さかな",
"さかみち",
"さがる",
"さぎょう",
"さくし",
"さくひん",
"さくら",
"さこく",
"さこつ",
"さずかる",
"ざせき",
"さたん",
"さつえい",
"ざつおん",
"ざっか",
"ざつがく",
"さっきょく",
"ざっし",
"さつじん",
"ざっそう",
"さつたば",
"さつまいも",
"さてい",
"さといも",
"さとう",
"さとおや",
"さとし",
"さとる",
"さのう",
"さばく",
"さびしい",
"さべつ",
"さほう",
"さほど",
"さます",
"さみしい",
"さみだれ",
"さむけ",
"さめる",
"さやえんどう",
"さゆう",
"さよう",
"さよく",
"さらだ",
"ざるそば",
"さわやか",
"さわる",
"さんいん",
"さんか",
"さんきゃく",
"さんこう",
"さんさい",
"ざんしょ",
"さんすう",
"さんせい",
"さんそ",
"さんち",
"さんま",
"さんみ",
"さんらん",
"しあい",
"しあげ",
"しあさって",
"しあわせ",
"しいく",
"しいん",
"しうち",
"しえい",
"しおけ",
"しかい",
"しかく",
"じかん",
"しごと",
"しすう",
"じだい",
"したうけ",
"したぎ",
"したて",
"したみ",
"しちょう",
"しちりん",
"しっかり",
"しつじ",
"しつもん",
"してい",
"してき",
"してつ",
"じてん",
"じどう",
"しなぎれ",
"しなもの",
"しなん",
"しねま",
"しねん",
"しのぐ",
"しのぶ",
"しはい",
"しばかり",
"しはつ",
"しはらい",
"しはん",
"しひょう",
"しふく",
"じぶん",
"しへい",
"しほう",
"しほん",
"しまう",
"しまる",
"しみん",
"しむける",
"じむしょ",
"しめい",
"しめる",
"しもん",
"しゃいん",
"しゃうん",
"しゃおん",
"じゃがいも",
"しやくしょ",
"しゃくほう",
"しゃけん",
"しゃこ",
"しゃざい",
"しゃしん",
"しゃせん",
"しゃそう",
"しゃたい",
"しゃちょう",
"しゃっきん",
"じゃま",
"しゃりん",
"しゃれい",
"じゆう",
"じゅうしょ",
"しゅくはく",
"じゅしん",
"しゅっせき",
"しゅみ",
"しゅらば",
"じゅんばん",
"しょうかい",
"しょくたく",
"しょっけん",
"しょどう",
"しょもつ",
"しらせる",
"しらべる",
"しんか",
"しんこう",
"じんじゃ",
"しんせいじ",
"しんちく",
"しんりん",
"すあげ",
"すあし",
"すあな",
"ずあん",
"すいえい",
"すいか",
"すいとう",
"ずいぶん",
"すいようび",
"すうがく",
"すうじつ",
"すうせん",
"すおどり",
"すきま",
"すくう",
"すくない",
"すける",
"すごい",
"すこし",
"ずさん",
"すずしい",
"すすむ",
"すすめる",
"すっかり",
"ずっしり",
"ずっと",
"すてき",
"すてる",
"すねる",
"すのこ",
"すはだ",
"すばらしい",
"ずひょう",
"ずぶぬれ",
"すぶり",
"すふれ",
"すべて",
"すべる",
"ずほう",
"すぼん",
"すまい",
"すめし",
"すもう",
"すやき",
"すらすら",
"するめ",
"すれちがう",
"すろっと",
"すわる",
"すんぜん",
"すんぽう",
"せあぶら",
"せいかつ",
"せいげん",
"せいじ",
"せいよう",
"せおう",
"せかいかん",
"せきにん",
"せきむ",
"せきゆ",
"せきらんうん",
"せけん",
"せこう",
"せすじ",
"せたい",
"せたけ",
"せっかく",
"せっきゃく",
"ぜっく",
"せっけん",
"せっこつ",
"せっさたくま",
"せつぞく",
"せつだん",
"せつでん",
"せっぱん",
"せつび",
"せつぶん",
"せつめい",
"せつりつ",
"せなか",
"せのび",
"せはば",
"せびろ",
"せぼね",
"せまい",
"せまる",
"せめる",
"せもたれ",
"せりふ",
"ぜんあく",
"せんい",
"せんえい",
"せんか",
"せんきょ",
"せんく",
"せんげん",
"ぜんご",
"せんさい",
"せんしゅ",
"せんすい",
"せんせい",
"せんぞ",
"せんたく",
"せんちょう",
"せんてい",
"せんとう",
"せんぬき",
"せんねん",
"せんぱい",
"ぜんぶ",
"ぜんぽう",
"せんむ",
"せんめんじょ",
"せんもん",
"せんやく",
"せんゆう",
"せんよう",
"ぜんら",
"ぜんりゃく",
"せんれい",
"せんろ",
"そあく",
"そいとげる",
"そいね",
"そうがんきょう",
"そうき",
"そうご",
"そうしん",
"そうだん",
"そうなん",
"そうび",
"そうめん",
"そうり",
"そえもの",
"そえん",
"そがい",
"そげき",
"そこう",
"そこそこ",
"そざい",
"そしな",
"そせい",
"そせん",
"そそぐ",
"そだてる",
"そつう",
"そつえん",
"そっかん",
"そつぎょう",
"そっけつ",
"そっこう",
"そっせん",
"そっと",
"そとがわ",
"そとづら",
"そなえる",
"そなた",
"そふぼ",
"そぼく",
"そぼろ",
"そまつ",
"そまる",
"そむく",
"そむりえ",
"そめる",
"そもそも",
"そよかぜ",
"そらまめ",
"そろう",
"そんかい",
"そんけい",
"そんざい",
"そんしつ",
"そんぞく",
"そんちょう",
"ぞんび",
"ぞんぶん",
"そんみん",
"たあい",
"たいいん",
"たいうん",
"たいえき",
"たいおう",
"だいがく",
"たいき",
"たいぐう",
"たいけん",
"たいこ",
"たいざい",
"だいじょうぶ",
"だいすき",
"たいせつ",
"たいそう",
"だいたい",
"たいちょう",
"たいてい",
"だいどころ",
"たいない",
"たいねつ",
"たいのう",
"たいはん",
"だいひょう",
"たいふう",
"たいへん",
"たいほ",
"たいまつばな",
"たいみんぐ",
"たいむ",
"たいめん",
"たいやき",
"たいよう",
"たいら",
"たいりょく",
"たいる",
"たいわん",
"たうえ",
"たえる",
"たおす",
"たおる",
"たおれる",
"たかい",
"たかね",
"たきび",
"たくさん",
"たこく",
"たこやき",
"たさい",
"たしざん",
"だじゃれ",
"たすける",
"たずさわる",
"たそがれ",
"たたかう",
"たたく",
"ただしい",
"たたみ",
"たちばな",
"だっかい",
"だっきゃく",
"だっこ",
"だっしゅつ",
"だったい",
"たてる",
"たとえる",
"たなばた",
"たにん",
"たぬき",
"たのしみ",
"たはつ",
"たぶん",
"たべる",
"たぼう",
"たまご",
"たまる",
"だむる",
"ためいき",
"ためす",
"ためる",
"たもつ",
"たやすい",
"たよる",
"たらす",
"たりきほんがん",
"たりょう",
"たりる",
"たると",
"たれる",
"たれんと",
"たろっと",
"たわむれる",
"だんあつ",
"たんい",
"たんおん",
"たんか",
"たんき",
"たんけん",
"たんご",
"たんさん",
"たんじょうび",
"だんせい",
"たんそく",
"たんたい",
"だんち",
"たんてい",
"たんとう",
"だんな",
"たんにん",
"だんねつ",
"たんのう",
"たんぴん",
"だんぼう",
"たんまつ",
"たんめい",
"だんれつ",
"だんろ",
"だんわ",
"ちあい",
"ちあん",
"ちいき",
"ちいさい",
"ちえん",
"ちかい",
"ちから",
"ちきゅう",
"ちきん",
"ちけいず",
"ちけん",
"ちこく",
"ちさい",
"ちしき",
"ちしりょう",
"ちせい",
"ちそう",
"ちたい",
"ちたん",
"ちちおや",
"ちつじょ",
"ちてき",
"ちてん",
"ちぬき",
"ちぬり",
"ちのう",
"ちひょう",
"ちへいせん",
"ちほう",
"ちまた",
"ちみつ",
"ちみどろ",
"ちめいど",
"ちゃんこなべ",
"ちゅうい",
"ちゆりょく",
"ちょうし",
"ちょさくけん",
"ちらし",
"ちらみ",
"ちりがみ",
"ちりょう",
"ちるど",
"ちわわ",
"ちんたい",
"ちんもく",
"ついか",
"ついたち",
"つうか",
"つうじょう",
"つうはん",
"つうわ",
"つかう",
"つかれる",
"つくね",
"つくる",
"つけね",
"つける",
"つごう",
"つたえる",
"つづく",
"つつじ",
"つつむ",
"つとめる",
"つながる",
"つなみ",
"つねづね",
"つのる",
"つぶす",
"つまらない",
"つまる",
"つみき",
"つめたい",
"つもり",
"つもる",
"つよい",
"つるぼ",
"つるみく",
"つわもの",
"つわり",
"てあし",
"てあて",
"てあみ",
"ていおん",
"ていか",
"ていき",
"ていけい",
"ていこく",
"ていさつ",
"ていし",
"ていせい",
"ていたい",
"ていど",
"ていねい",
"ていひょう",
"ていへん",
"ていぼう",
"てうち",
"ておくれ",
"てきとう",
"てくび",
"でこぼこ",
"てさぎょう",
"てさげ",
"てすり",
"てそう",
"てちがい",
"てちょう",
"てつがく",
"てつづき",
"でっぱ",
"てつぼう",
"てつや",
"でぬかえ",
"てぬき",
"てぬぐい",
"てのひら",
"てはい",
"てぶくろ",
"てふだ",
"てほどき",
"てほん",
"てまえ",
"てまきずし",
"てみじか",
"てみやげ",
"てらす",
"てれび",
"てわけ",
"てわたし",
"でんあつ",
"てんいん",
"てんかい",
"てんき",
"てんぐ",
"てんけん",
"てんごく",
"てんさい",
"てんし",
"てんすう",
"でんち",
"てんてき",
"てんとう",
"てんない",
"てんぷら",
"てんぼうだい",
"てんめつ",
"てんらんかい",
"でんりょく",
"でんわ",
"どあい",
"といれ",
"どうかん",
"とうきゅう",
"どうぐ",
"とうし",
"とうむぎ",
"とおい",
"とおか",
"とおく",
"とおす",
"とおる",
"とかい",
"とかす",
"ときおり",
"ときどき",
"とくい",
"とくしゅう",
"とくてん",
"とくに",
"とくべつ",
"とけい",
"とける",
"とこや",
"とさか",
"としょかん",
"とそう",
"とたん",
"とちゅう",
"とっきゅう",
"とっくん",
"とつぜん",
"とつにゅう",
"とどける",
"ととのえる",
"とない",
"となえる",
"となり",
"とのさま",
"とばす",
"どぶがわ",
"とほう",
"とまる",
"とめる",
"ともだち",
"ともる",
"どようび",
"とらえる",
"とんかつ",
"どんぶり",
"ないかく",
"ないこう",
"ないしょ",
"ないす",
"ないせん",
"ないそう",
"なおす",
"ながい",
"なくす",
"なげる",
"なこうど",
"なさけ",
"なたでここ",
"なっとう",
"なつやすみ",
"ななおし",
"なにごと",
"なにもの",
"なにわ",
"なのか",
"なふだ",
"なまいき",
"なまえ",
"なまみ",
"なみだ",
"なめらか",
"なめる",
"なやむ",
"ならう",
"ならび",
"ならぶ",
"なれる",
"なわとび",
"なわばり",
"にあう",
"にいがた",
"にうけ",
"におい",
"にかい",
"にがて",
"にきび",
"にくしみ",
"にくまん",
"にげる",
"にさんかたんそ",
"にしき",
"にせもの",
"にちじょう",
"にちようび",
"にっか",
"にっき",
"にっけい",
"にっこう",
"にっさん",
"にっしょく",
"にっすう",
"にっせき",
"にってい",
"になう",
"にほん",
"にまめ",
"にもつ",
"にやり",
"にゅういん",
"にりんしゃ",
"にわとり",
"にんい",
"にんか",
"にんき",
"にんげん",
"にんしき",
"にんずう",
"にんそう",
"にんたい",
"にんち",
"にんてい",
"にんにく",
"にんぷ",
"にんまり",
"にんむ",
"にんめい",
"にんよう",
"ぬいくぎ",
"ぬかす",
"ぬぐいとる",
"ぬぐう",
"ぬくもり",
"ぬすむ",
"ぬまえび",
"ぬめり",
"ぬらす",
"ぬんちゃく",
"ねあげ",
"ねいき",
"ねいる",
"ねいろ",
"ねぐせ",
"ねくたい",
"ねくら",
"ねこぜ",
"ねこむ",
"ねさげ",
"ねすごす",
"ねそべる",
"ねだん",
"ねつい",
"ねっしん",
"ねつぞう",
"ねったいぎょ",
"ねぶそく",
"ねふだ",
"ねぼう",
"ねほりはほり",
"ねまき",
"ねまわし",
"ねみみ",
"ねむい",
"ねむたい",
"ねもと",
"ねらう",
"ねわざ",
"ねんいり",
"ねんおし",
"ねんかん",
"ねんきん",
"ねんぐ",
"ねんざ",
"ねんし",
"ねんちゃく",
"ねんど",
"ねんぴ",
"ねんぶつ",
"ねんまつ",
"ねんりょう",
"ねんれい",
"のいず",
"のおづま",
"のがす",
"のきなみ",
"のこぎり",
"のこす",
"のこる",
"のせる",
"のぞく",
"のぞむ",
"のたまう",
"のちほど",
"のっく",
"のばす",
"のはら",
"のべる",
"のぼる",
"のみもの",
"のやま",
"のらいぬ",
"のらねこ",
"のりもの",
"のりゆき",
"のれん",
"のんき",
"ばあい",
"はあく",
"ばあさん",
"ばいか",
"ばいく",
"はいけん",
"はいご",
"はいしん",
"はいすい",
"はいせん",
"はいそう",
"はいち",
"ばいばい",
"はいれつ",
"はえる",
"はおる",
"はかい",
"ばかり",
"はかる",
"はくしゅ",
"はけん",
"はこぶ",
"はさみ",
"はさん",
"はしご",
"ばしょ",
"はしる",
"はせる",
"ぱそこん",
"はそん",
"はたん",
"はちみつ",
"はつおん",
"はっかく",
"はづき",
"はっきり",
"はっくつ",
"はっけん",
"はっこう",
"はっさん",
"はっしん",
"はったつ",
"はっちゅう",
"はってん",
"はっぴょう",
"はっぽう",
"はなす",
"はなび",
"はにかむ",
"はぶらし",
"はみがき",
"はむかう",
"はめつ",
"はやい",
"はやし",
"はらう",
"はろうぃん",
"はわい",
"はんい",
"はんえい",
"はんおん",
"はんかく",
"はんきょう",
"ばんぐみ",
"はんこ",
"はんしゃ",
"はんすう",
"はんだん",
"ぱんち",
"ぱんつ",
"はんてい",
"はんとし",
"はんのう",
"はんぱ",
"はんぶん",
"はんぺん",
"はんぼうき",
"はんめい",
"はんらん",
"はんろん",
"ひいき",
"ひうん",
"ひえる",
"ひかく",
"ひかり",
"ひかる",
"ひかん",
"ひくい",
"ひけつ",
"ひこうき",
"ひこく",
"ひさい",
"ひさしぶり",
"ひさん",
"びじゅつかん",
"ひしょ",
"ひそか",
"ひそむ",
"ひたむき",
"ひだり",
"ひたる",
"ひつぎ",
"ひっこし",
"ひっし",
"ひつじゅひん",
"ひっす",
"ひつぜん",
"ぴったり",
"ぴっちり",
"ひつよう",
"ひてい",
"ひとごみ",
"ひなまつり",
"ひなん",
"ひねる",
"ひはん",
"ひびく",
"ひひょう",
"ひほう",
"ひまわり",
"ひまん",
"ひみつ",
"ひめい",
"ひめじし",
"ひやけ",
"ひやす",
"ひよう",
"びょうき",
"ひらがな",
"ひらく",
"ひりつ",
"ひりょう",
"ひるま",
"ひるやすみ",
"ひれい",
"ひろい",
"ひろう",
"ひろき",
"ひろゆき",
"ひんかく",
"ひんけつ",
"ひんこん",
"ひんしゅ",
"ひんそう",
"ぴんち",
"ひんぱん",
"びんぼう",
"ふあん",
"ふいうち",
"ふうけい",
"ふうせん",
"ぷうたろう",
"ふうとう",
"ふうふ",
"ふえる",
"ふおん",
"ふかい",
"ふきん",
"ふくざつ",
"ふくぶくろ",
"ふこう",
"ふさい",
"ふしぎ",
"ふじみ",
"ふすま",
"ふせい",
"ふせぐ",
"ふそく",
"ぶたにく",
"ふたん",
"ふちょう",
"ふつう",
"ふつか",
"ふっかつ",
"ふっき",
"ふっこく",
"ぶどう",
"ふとる",
"ふとん",
"ふのう",
"ふはい",
"ふひょう",
"ふへん",
"ふまん",
"ふみん",
"ふめつ",
"ふめん",
"ふよう",
"ふりこ",
"ふりる",
"ふるい",
"ふんいき",
"ぶんがく",
"ぶんぐ",
"ふんしつ",
"ぶんせき",
"ふんそう",
"ぶんぽう",
"へいあん",
"へいおん",
"へいがい",
"へいき",
"へいげん",
"へいこう",
"へいさ",
"へいしゃ",
"へいせつ",
"へいそ",
"へいたく",
"へいてん",
"へいねつ",
"へいわ",
"へきが",
"へこむ",
"べにいろ",
"べにしょうが",
"へらす",
"へんかん",
"べんきょう",
"べんごし",
"へんさい",
"へんたい",
"べんり",
"ほあん",
"ほいく",
"ぼうぎょ",
"ほうこく",
"ほうそう",
"ほうほう",
"ほうもん",
"ほうりつ",
"ほえる",
"ほおん",
"ほかん",
"ほきょう",
"ぼきん",
"ほくろ",
"ほけつ",
"ほけん",
"ほこう",
"ほこる",
"ほしい",
"ほしつ",
"ほしゅ",
"ほしょう",
"ほせい",
"ほそい",
"ほそく",
"ほたて",
"ほたる",
"ぽちぶくろ",
"ほっきょく",
"ほっさ",
"ほったん",
"ほとんど",
"ほめる",
"ほんい",
"ほんき",
"ほんけ",
"ほんしつ",
"ほんやく",
"まいにち",
"まかい",
"まかせる",
"まがる",
"まける",
"まこと",
"まさつ",
"まじめ",
"ますく",
"まぜる",
"まつり",
"まとめ",
"まなぶ",
"まぬけ",
"まねく",
"まほう",
"まもる",
"まゆげ",
"まよう",
"まろやか",
"まわす",
"まわり",
"まわる",
"まんが",
"まんきつ",
"まんぞく",
"まんなか",
"みいら",
"みうち",
"みえる",
"みがく",
"みかた",
"みかん",
"みけん",
"みこん",
"みじかい",
"みすい",
"みすえる",
"みせる",
"みっか",
"みつかる",
"みつける",
"みてい",
"みとめる",
"みなと",
"みなみかさい",
"みねらる",
"みのう",
"みのがす",
"みほん",
"みもと",
"みやげ",
"みらい",
"みりょく",
"みわく",
"みんか",
"みんぞく",
"むいか",
"むえき",
"むえん",
"むかい",
"むかう",
"むかえ",
"むかし",
"むぎちゃ",
"むける",
"むげん",
"むさぼる",
"むしあつい",
"むしば",
"むじゅん",
"むしろ",
"むすう",
"むすこ",
"むすぶ",
"むすめ",
"むせる",
"むせん",
"むちゅう",
"むなしい",
"むのう",
"むやみ",
"むよう",
"むらさき",
"むりょう",
"むろん",
"めいあん",
"めいうん",
"めいえん",
"めいかく",
"めいきょく",
"めいさい",
"めいし",
"めいそう",
"めいぶつ",
"めいれい",
"めいわく",
"めぐまれる",
"めざす",
"めした",
"めずらしい",
"めだつ",
"めまい",
"めやす",
"めんきょ",
"めんせき",
"めんどう",
"もうしあげる",
"もうどうけん",
"もえる",
"もくし",
"もくてき",
"もくようび",
"もちろん",
"もどる",
"もらう",
"もんく",
"もんだい",
"やおや",
"やける",
"やさい",
"やさしい",
"やすい",
"やすたろう",
"やすみ",
"やせる",
"やそう",
"やたい",
"やちん",
"やっと",
"やっぱり",
"やぶる",
"やめる",
"ややこしい",
"やよい",
"やわらかい",
"ゆうき",
"ゆうびんきょく",
"ゆうべ",
"ゆうめい",
"ゆけつ",
"ゆしゅつ",
"ゆせん",
"ゆそう",
"ゆたか",
"ゆちゃく",
"ゆでる",
"ゆにゅう",
"ゆびわ",
"ゆらい",
"ゆれる",
"ようい",
"ようか",
"ようきゅう",
"ようじ",
"ようす",
"ようちえん",
"よかぜ",
"よかん",
"よきん",
"よくせい",
"よくぼう",
"よけい",
"よごれる",
"よさん",
"よしゅう",
"よそう",
"よそく",
"よっか",
"よてい",
"よどがわく",
"よねつ",
"よやく",
"よゆう",
"よろこぶ",
"よろしい",
"らいう",
"らくがき",
"らくご",
"らくさつ",
"らくだ",
"らしんばん",
"らせん",
"らぞく",
"らたい",
"らっか",
"られつ",
"りえき",
"りかい",
"りきさく",
"りきせつ",
"りくぐん",
"りくつ",
"りけん",
"りこう",
"りせい",
"りそう",
"りそく",
"りてん",
"りねん",
"りゆう",
"りゅうがく",
"りよう",
"りょうり",
"りょかん",
"りょくちゃ",
"りょこう",
"りりく",
"りれき",
"りろん",
"りんご",
"るいけい",
"るいさい",
"るいじ",
"るいせき",
"るすばん",
"るりがわら",
"れいかん",
"れいぎ",
"れいせい",
"れいぞうこ",
"れいとう",
"れいぼう",
"れきし",
"れきだい",
"れんあい",
"れんけい",
"れんこん",
"れんさい",
"れんしゅう",
"れんぞく",
"れんらく",
"ろうか",
"ろうご",
"ろうじん",
"ろうそく",
"ろくが",
"ろこつ",
"ろじうら",
"ろしゅつ",
"ろせん",
"ろてん",
"ろめん",
"ろれつ",
"ろんぎ",
"ろんぱ",
"ろんぶん",
"ろんり",
"わかす",
"わかめ",
"わかやま",
"わかれる",
"わしつ",
"わじまし",
"わすれもの",
"わらう",
"われる"
]
},{}],166:[function(require,module,exports){
module.exports=[
"가격",
"가끔",
"가난",
"가능",
"가득",
"가르침",
"가뭄",
"가방",
"가상",
"가슴",
"가운데",
"가을",
"가이드",
"가입",
"가장",
"가정",
"가족",
"가죽",
"각오",
"각자",
"간격",
"간부",
"간섭",
"간장",
"간접",
"간판",
"갈등",
"갈비",
"갈색",
"갈증",
"감각",
"감기",
"감소",
"감수성",
"감자",
"감정",
"갑자기",
"강남",
"강당",
"강도",
"강력히",
"강변",
"강북",
"강사",
"강수량",
"강아지",
"강원도",
"강의",
"강제",
"강조",
"같이",
"개구리",
"개나리",
"개방",
"개별",
"개선",
"개성",
"개인",
"객관적",
"거실",
"거액",
"거울",
"거짓",
"거품",
"걱정",
"건강",
"건물",
"건설",
"건조",
"건축",
"걸음",
"검사",
"검토",
"게시판",
"게임",
"겨울",
"견해",
"결과",
"결국",
"결론",
"결석",
"결승",
"결심",
"결정",
"결혼",
"경계",
"경고",
"경기",
"경력",
"경복궁",
"경비",
"경상도",
"경영",
"경우",
"경쟁",
"경제",
"경주",
"경찰",
"경치",
"경향",
"경험",
"계곡",
"계단",
"계란",
"계산",
"계속",
"계약",
"계절",
"계층",
"계획",
"고객",
"고구려",
"고궁",
"고급",
"고등학생",
"고무신",
"고민",
"고양이",
"고장",
"고전",
"고집",
"고춧가루",
"고통",
"고향",
"곡식",
"골목",
"골짜기",
"골프",
"공간",
"공개",
"공격",
"공군",
"공급",
"공기",
"공동",
"공무원",
"공부",
"공사",
"공식",
"공업",
"공연",
"공원",
"공장",
"공짜",
"공책",
"공통",
"공포",
"공항",
"공휴일",
"과목",
"과일",
"과장",
"과정",
"과학",
"관객",
"관계",
"관광",
"관념",
"관람",
"관련",
"관리",
"관습",
"관심",
"관점",
"관찰",
"광경",
"광고",
"광장",
"광주",
"괴로움",
"굉장히",
"교과서",
"교문",
"교복",
"교실",
"교양",
"교육",
"교장",
"교직",
"교통",
"교환",
"교훈",
"구경",
"구름",
"구멍",
"구별",
"구분",
"구석",
"구성",
"구속",
"구역",
"구입",
"구청",
"구체적",
"국가",
"국기",
"국내",
"국립",
"국물",
"국민",
"국수",
"국어",
"국왕",
"국적",
"국제",
"국회",
"군대",
"군사",
"군인",
"궁극적",
"권리",
"권위",
"권투",
"귀국",
"귀신",
"규정",
"규칙",
"균형",
"그날",
"그냥",
"그늘",
"그러나",
"그룹",
"그릇",
"그림",
"그제서야",
"그토록",
"극복",
"극히",
"근거",
"근교",
"근래",
"근로",
"근무",
"근본",
"근원",
"근육",
"근처",
"글씨",
"글자",
"금강산",
"금고",
"금년",
"금메달",
"금액",
"금연",
"금요일",
"금지",
"긍정적",
"기간",
"기관",
"기념",
"기능",
"기독교",
"기둥",
"기록",
"기름",
"기법",
"기본",
"기분",
"기쁨",
"기숙사",
"기술",
"기억",
"기업",
"기온",
"기운",
"기원",
"기적",
"기준",
"기침",
"기혼",
"기획",
"긴급",
"긴장",
"길이",
"김밥",
"김치",
"김포공항",
"깍두기",
"깜빡",
"깨달음",
"깨소금",
"껍질",
"꼭대기",
"꽃잎",
"나들이",
"나란히",
"나머지",
"나물",
"나침반",
"나흘",
"낙엽",
"난방",
"날개",
"날씨",
"날짜",
"남녀",
"남대문",
"남매",
"남산",
"남자",
"남편",
"남학생",
"낭비",
"낱말",
"내년",
"내용",
"내일",
"냄비",
"냄새",
"냇물",
"냉동",
"냉면",
"냉방",
"냉장고",
"넥타이",
"넷째",
"노동",
"노란색",
"노력",
"노인",
"녹음",
"녹차",
"녹화",
"논리",
"논문",
"논쟁",
"놀이",
"농구",
"농담",
"농민",
"농부",
"농업",
"농장",
"농촌",
"높이",
"눈동자",
"눈물",
"눈썹",
"뉴욕",
"느낌",
"늑대",
"능동적",
"능력",
"다방",
"다양성",
"다음",
"다이어트",
"다행",
"단계",
"단골",
"단독",
"단맛",
"단순",
"단어",
"단위",
"단점",
"단체",
"단추",
"단편",
"단풍",
"달걀",
"달러",
"달력",
"달리",
"닭고기",
"담당",
"담배",
"담요",
"담임",
"답변",
"답장",
"당근",
"당분간",
"당연히",
"당장",
"대규모",
"대낮",
"대단히",
"대답",
"대도시",
"대략",
"대량",
"대륙",
"대문",
"대부분",
"대신",
"대응",
"대장",
"대전",
"대접",
"대중",
"대책",
"대출",
"대충",
"대통령",
"대학",
"대한민국",
"대합실",
"대형",
"덩어리",
"데이트",
"도대체",
"도덕",
"도둑",
"도망",
"도서관",
"도심",
"도움",
"도입",
"도자기",
"도저히",
"도전",
"도중",
"도착",
"독감",
"독립",
"독서",
"독일",
"독창적",
"동화책",
"뒷모습",
"뒷산",
"딸아이",
"마누라",
"마늘",
"마당",
"마라톤",
"마련",
"마무리",
"마사지",
"마약",
"마요네즈",
"마을",
"마음",
"마이크",
"마중",
"마지막",
"마찬가지",
"마찰",
"마흔",
"막걸리",
"막내",
"막상",
"만남",
"만두",
"만세",
"만약",
"만일",
"만점",
"만족",
"만화",
"많이",
"말기",
"말씀",
"말투",
"맘대로",
"망원경",
"매년",
"매달",
"매력",
"매번",
"매스컴",
"매일",
"매장",
"맥주",
"먹이",
"먼저",
"먼지",
"멀리",
"메일",
"며느리",
"며칠",
"면담",
"멸치",
"명단",
"명령",
"명예",
"명의",
"명절",
"명칭",
"명함",
"모금",
"모니터",
"모델",
"모든",
"모범",
"모습",
"모양",
"모임",
"모조리",
"모집",
"모퉁이",
"목걸이",
"목록",
"목사",
"목소리",
"목숨",
"목적",
"목표",
"몰래",
"몸매",
"몸무게",
"몸살",
"몸속",
"몸짓",
"몸통",
"몹시",
"무관심",
"무궁화",
"무더위",
"무덤",
"무릎",
"무슨",
"무엇",
"무역",
"무용",
"무조건",
"무지개",
"무척",
"문구",
"문득",
"문법",
"문서",
"문제",
"문학",
"문화",
"물가",
"물건",
"물결",
"물고기",
"물론",
"물리학",
"물음",
"물질",
"물체",
"미국",
"미디어",
"미사일",
"미술",
"미역",
"미용실",
"미움",
"미인",
"미팅",
"미혼",
"민간",
"민족",
"민주",
"믿음",
"밀가루",
"밀리미터",
"밑바닥",
"바가지",
"바구니",
"바나나",
"바늘",
"바닥",
"바닷가",
"바람",
"바이러스",
"바탕",
"박물관",
"박사",
"박수",
"반대",
"반드시",
"반말",
"반발",
"반성",
"반응",
"반장",
"반죽",
"반지",
"반찬",
"받침",
"발가락",
"발걸음",
"발견",
"발달",
"발레",
"발목",
"발바닥",
"발생",
"발음",
"발자국",
"발전",
"발톱",
"발표",
"밤하늘",
"밥그릇",
"밥맛",
"밥상",
"밥솥",
"방금",
"방면",
"방문",
"방바닥",
"방법",
"방송",
"방식",
"방안",
"방울",
"방지",
"방학",
"방해",
"방향",
"배경",
"배꼽",
"배달",
"배드민턴",
"백두산",
"백색",
"백성",
"백인",
"백제",
"백화점",
"버릇",
"버섯",
"버튼",
"번개",
"번역",
"번지",
"번호",
"벌금",
"벌레",
"벌써",
"범위",
"범인",
"범죄",
"법률",
"법원",
"법적",
"법칙",
"베이징",
"벨트",
"변경",
"변동",
"변명",
"변신",
"변호사",
"변화",
"별도",
"별명",
"별일",
"병실",
"병아리",
"병원",
"보관",
"보너스",
"보라색",
"보람",
"보름",
"보상",
"보안",
"보자기",
"보장",
"보전",
"보존",
"보통",
"보편적",
"보험",
"복도",
"복사",
"복숭아",
"복습",
"볶음",
"본격적",
"본래",
"본부",
"본사",
"본성",
"본인",
"본질",
"볼펜",
"봉사",
"봉지",
"봉투",
"부근",
"부끄러움",
"부담",
"부동산",
"부문",
"부분",
"부산",
"부상",
"부엌",
"부인",
"부작용",
"부장",
"부정",
"부족",
"부지런히",
"부친",
"부탁",
"부품",
"부회장",
"북부",
"북한",
"분노",
"분량",
"분리",
"분명",
"분석",
"분야",
"분위기",
"분필",
"분홍색",
"불고기",
"불과",
"불교",
"불꽃",
"불만",
"불법",
"불빛",
"불안",
"불이익",
"불행",
"브랜드",
"비극",
"비난",
"비닐",
"비둘기",
"비디오",
"비로소",
"비만",
"비명",
"비밀",
"비바람",
"비빔밥",
"비상",
"비용",
"비율",
"비중",
"비타민",
"비판",
"빌딩",
"빗물",
"빗방울",
"빗줄기",
"빛깔",
"빨간색",
"빨래",
"빨리",
"사건",
"사계절",
"사나이",
"사냥",
"사람",
"사랑",
"사립",
"사모님",
"사물",
"사방",
"사상",
"사생활",
"사설",
"사슴",
"사실",
"사업",
"사용",
"사월",
"사장",
"사전",
"사진",
"사촌",
"사춘기",
"사탕",
"사투리",
"사흘",
"산길",
"산부인과",
"산업",
"산책",
"살림",
"살인",
"살짝",
"삼계탕",
"삼국",
"삼십",
"삼월",
"삼촌",
"상관",
"상금",
"상대",
"상류",
"상반기",
"상상",
"상식",
"상업",
"상인",
"상자",
"상점",
"상처",
"상추",
"상태",
"상표",
"상품",
"상황",
"새벽",
"색깔",
"색연필",
"생각",
"생명",
"생물",
"생방송",
"생산",
"생선",
"생신",
"생일",
"생활",
"서랍",
"서른",
"서명",
"서민",
"서비스",
"서양",
"서울",
"서적",
"서점",
"서쪽",
"서클",
"석사",
"석유",
"선거",
"선물",
"선배",
"선생",
"선수",
"선원",
"선장",
"선전",
"선택",
"선풍기",
"설거지",
"설날",
"설렁탕",
"설명",
"설문",
"설사",
"설악산",
"설치",
"설탕",
"섭씨",
"성공",
"성당",
"성명",
"성별",
"성인",
"성장",
"성적",
"성질",
"성함",
"세금",
"세미나",
"세상",
"세월",
"세종대왕",
"세탁",
"센터",
"센티미터",
"셋째",
"소규모",
"소극적",
"소금",
"소나기",
"소년",
"소득",
"소망",
"소문",
"소설",
"소속",
"소아과",
"소용",
"소원",
"소음",
"소중히",
"소지품",
"소질",
"소풍",
"소형",
"속담",
"속도",
"속옷",
"손가락",
"손길",
"손녀",
"손님",
"손등",
"손목",
"손뼉",
"손실",
"손질",
"손톱",
"손해",
"솔직히",
"솜씨",
"송아지",
"송이",
"송편",
"쇠고기",
"쇼핑",
"수건",
"수년",
"수단",
"수돗물",
"수동적",
"수면",
"수명",
"수박",
"수상",
"수석",
"수술",
"수시로",
"수업",
"수염",
"수영",
"수입",
"수준",
"수집",
"수출",
"수컷",
"수필",
"수학",
"수험생",
"수화기",
"숙녀",
"숙소",
"숙제",
"순간",
"순서",
"순수",
"순식간",
"순위",
"숟가락",
"술병",
"술집",
"숫자",
"스님",
"스물",
"스스로",
"스승",
"스웨터",
"스위치",
"스케이트",
"스튜디오",
"스트레스",
"스포츠",
"슬쩍",
"슬픔",
"습관",
"습기",
"승객",
"승리",
"승부",
"승용차",
"승진",
"시각",
"시간",
"시골",
"시금치",
"시나리오",
"시댁",
"시리즈",
"시멘트",
"시민",
"시부모",
"시선",
"시설",
"시스템",
"시아버지",
"시어머니",
"시월",
"시인",
"시일",
"시작",
"시장",
"시절",
"시점",
"시중",
"시즌",
"시집",
"시청",
"시합",
"시험",
"식구",
"식기",
"식당",
"식량",
"식료품",
"식물",
"식빵",
"식사",
"식생활",
"식초",
"식탁",
"식품",
"신고",
"신규",
"신념",
"신문",
"신발",
"신비",
"신사",
"신세",
"신용",
"신제품",
"신청",
"신체",
"신화",
"실감",
"실내",
"실력",
"실례",
"실망",
"실수",
"실습",
"실시",
"실장",
"실정",
"실질적",
"실천",
"실체",
"실컷",
"실태",
"실패",
"실험",
"실현",
"심리",
"심부름",
"심사",
"심장",
"심정",
"심판",
"쌍둥이",
"씨름",
"씨앗",
"아가씨",
"아나운서",
"아드님",
"아들",
"아쉬움",
"아스팔트",
"아시아",
"아울러",
"아저씨",
"아줌마",
"아직",
"아침",
"아파트",
"아프리카",
"아픔",
"아홉",
"아흔",
"악기",
"악몽",
"악수",
"안개",
"안경",
"안과",
"안내",
"안녕",
"안동",
"안방",
"안부",
"안주",
"알루미늄",
"알코올",
"암시",
"암컷",
"압력",
"앞날",
"앞문",
"애인",
"애정",
"액수",
"앨범",
"야간",
"야단",
"야옹",
"약간",
"약국",
"약속",
"약수",
"약점",
"약품",
"약혼녀",
"양념",
"양력",
"양말",
"양배추",
"양주",
"양파",
"어둠",
"어려움",
"어른",
"어젯밤",
"어쨌든",
"어쩌다가",
"어쩐지",
"언니",
"언덕",
"언론",
"언어",
"얼굴",
"얼른",
"얼음",
"얼핏",
"엄마",
"업무",
"업종",
"업체",
"엉덩이",
"엉망",
"엉터리",
"엊그제",
"에너지",
"에어컨",
"엔진",
"여건",
"여고생",
"여관",
"여군",
"여권",
"여대생",
"여덟",
"여동생",
"여든",
"여론",
"여름",
"여섯",
"여성",
"여왕",
"여인",
"여전히",
"여직원",
"여학생",
"여행",
"역사",
"역시",
"역할",
"연결",
"연구",
"연극",
"연기",
"연락",
"연설",
"연세",
"연속",
"연습",
"연애",
"연예인",
"연인",
"연장",
"연주",
"연출",
"연필",
"연합",
"연휴",
"열기",
"열매",
"열쇠",
"열심히",
"열정",
"열차",
"열흘",
"염려",
"엽서",
"영국",
"영남",
"영상",
"영양",
"영역",
"영웅",
"영원히",
"영하",
"영향",
"영혼",
"영화",
"옆구리",
"옆방",
"옆집",
"예감",
"예금",
"예방",
"예산",
"예상",
"예선",
"예술",
"예습",
"예식장",
"예약",
"예전",
"예절",
"예정",
"예컨대",
"옛날",
"오늘",
"오락",
"오랫동안",
"오렌지",
"오로지",
"오른발",
"오븐",
"오십",
"오염",
"오월",
"오전",
"오직",
"오징어",
"오페라",
"오피스텔",
"오히려",
"옥상",
"옥수수",
"온갖",
"온라인",
"온몸",
"온종일",
"온통",
"올가을",
"올림픽",
"올해",
"옷차림",
"와이셔츠",
"와인",
"완성",
"완전",
"왕비",
"왕자",
"왜냐하면",
"왠지",
"외갓집",
"외국",
"외로움",
"외삼촌",
"외출",
"외침",
"외할머니",
"왼발",
"왼손",
"왼쪽",
"요금",
"요일",
"요즘",
"요청",
"용기",
"용서",
"용어",
"우산",
"우선",
"우승",
"우연히",
"우정",
"우체국",
"우편",
"운동",
"운명",
"운반",
"운전",
"운행",
"울산",
"울음",
"움직임",
"웃어른",
"웃음",
"워낙",
"원고",
"원래",
"원서",
"원숭이",
"원인",
"원장",
"원피스",
"월급",
"월드컵",
"월세",
"월요일",
"웨이터",
"위반",
"위법",
"위성",
"위원",
"위험",
"위협",
"윗사람",
"유난히",
"유럽",
"유명",
"유물",
"유산",
"유적",
"유치원",
"유학",
"유행",
"유형",
"육군",
"육상",
"육십",
"육체",
"은행",
"음력",
"음료",
"음반",
"음성",
"음식",
"음악",
"음주",
"의견",
"의논",
"의문",
"의복",
"의식",
"의심",
"의외로",
"의욕",
"의원",
"의학",
"이것",
"이곳",
"이념",
"이놈",
"이달",
"이대로",
"이동",
"이렇게",
"이력서",
"이론적",
"이름",
"이민",
"이발소",
"이별",
"이불",
"이빨",
"이상",
"이성",
"이슬",
"이야기",
"이용",
"이웃",
"이월",
"이윽고",
"이익",
"이전",
"이중",
"이튿날",
"이틀",
"이혼",
"인간",
"인격",
"인공",
"인구",
"인근",
"인기",
"인도",
"인류",
"인물",
"인생",
"인쇄",
"인연",
"인원",
"인재",
"인종",
"인천",
"인체",
"인터넷",
"인하",
"인형",
"일곱",
"일기",
"일단",
"일대",
"일등",
"일반",
"일본",
"일부",
"일상",
"일생",
"일손",
"일요일",
"일월",
"일정",
"일종",
"일주일",
"일찍",
"일체",
"일치",
"일행",
"일회용",
"임금",
"임무",
"입대",
"입력",
"입맛",
"입사",
"입술",
"입시",
"입원",
"입장",
"입학",
"자가용",
"자격",
"자극",
"자동",
"자랑",
"자부심",
"자식",
"자신",
"자연",
"자원",
"자율",
"자전거",
"자정",
"자존심",
"자판",
"작가",
"작년",
"작성",
"작업",
"작용",
"작은딸",
"작품",
"잔디",
"잔뜩",
"잔치",
"잘못",
"잠깐",
"잠수함",
"잠시",
"잠옷",
"잠자리",
"잡지",
"장관",
"장군",
"장기간",
"장래",
"장례",
"장르",
"장마",
"장면",
"장모",
"장미",
"장비",
"장사",
"장소",
"장식",
"장애인",
"장인",
"장점",
"장차",
"장학금",
"재능",
"재빨리",
"재산",
"재생",
"재작년",
"재정",
"재채기",
"재판",
"재학",
"재활용",
"저것",
"저고리",
"저곳",
"저녁",
"저런",
"저렇게",
"저번",
"저울",
"저절로",
"저축",
"적극",
"적당히",
"적성",
"적용",
"적응",
"전개",
"전공",
"전기",
"전달",
"전라도",
"전망",
"전문",
"전반",
"전부",
"전세",
"전시",
"전용",
"전자",
"전쟁",
"전주",
"전철",
"전체",
"전통",
"전혀",
"전후",
"절대",
"절망",
"절반",
"절약",
"절차",
"점검",
"점수",
"점심",
"점원",
"점점",
"점차",
"접근",
"접시",
"접촉",
"젓가락",
"정거장",
"정도",
"정류장",
"정리",
"정말",
"정면",
"정문",
"정반대",
"정보",
"정부",
"정비",
"정상",
"정성",
"정오",
"정원",
"정장",
"정지",
"정치",
"정확히",
"제공",
"제과점",
"제대로",
"제목",
"제발",
"제법",
"제삿날",
"제안",
"제일",
"제작",
"제주도",
"제출",
"제품",
"제한",
"조각",
"조건",
"조금",
"조깅",
"조명",
"조미료",
"조상",
"조선",
"조용히",
"조절",
"조정",
"조직",
"존댓말",
"존재",
"졸업",
"졸음",
"종교",
"종로",
"종류",
"종소리",
"종업원",
"종종",
"종합",
"좌석",
"죄인",
"주관적",
"주름",
"주말",
"주머니",
"주먹",
"주문",
"주민",
"주방",
"주변",
"주식",
"주인",
"주일",
"주장",
"주전자",
"주택",
"준비",
"줄거리",
"줄기",
"줄무늬",
"중간",
"중계방송",
"중국",
"중년",
"중단",
"중독",
"중반",
"중부",
"중세",
"중소기업",
"중순",
"중앙",
"중요",
"중학교",
"즉석",
"즉시",
"즐거움",
"증가",
"증거",
"증권",
"증상",
"증세",
"지각",
"지갑",
"지경",
"지극히",
"지금",
"지급",
"지능",
"지름길",
"지리산",
"지방",
"지붕",
"지식",
"지역",
"지우개",
"지원",
"지적",
"지점",
"지진",
"지출",
"직선",
"직업",
"직원",
"직장",
"진급",
"진동",
"진로",
"진료",
"진리",
"진짜",
"진찰",
"진출",
"진통",
"진행",
"질문",
"질병",
"질서",
"짐작",
"집단",
"집안",
"집중",
"짜증",
"찌꺼기",
"차남",
"차라리",
"차량",
"차림",
"차별",
"차선",
"차츰",
"착각",
"찬물",
"찬성",
"참가",
"참기름",
"참새",
"참석",
"참여",
"참외",
"참조",
"찻잔",
"창가",
"창고",
"창구",
"창문",
"창밖",
"창작",
"창조",
"채널",
"채점",
"책가방",
"책방",
"책상",
"책임",
"챔피언",
"처벌",
"처음",
"천국",
"천둥",
"천장",
"천재",
"천천히",
"철도",
"철저히",
"철학",
"첫날",
"첫째",
"청년",
"청바지",
"청소",
"청춘",
"체계",
"체력",
"체온",
"체육",
"체중",
"체험",
"초등학생",
"초반",
"초밥",
"초상화",
"초순",
"초여름",
"초원",
"초저녁",
"초점",
"초청",
"초콜릿",
"촛불",
"총각",
"총리",
"총장",
"촬영",
"최근",
"최상",
"최선",
"최신",
"최악",
"최종",
"추석",
"추억",
"추진",
"추천",
"추측",
"축구",
"축소",
"축제",
"축하",
"출근",
"출발",
"출산",
"출신",
"출연",
"출입",
"출장",
"출판",
"충격",
"충고",
"충돌",
"충분히",
"충청도",
"취업",
"취직",
"취향",
"치약",
"친구",
"친척",
"칠십",
"칠월",
"칠판",
"침대",
"침묵",
"침실",
"칫솔",
"칭찬",
"카메라",
"카운터",
"칼국수",
"캐릭터",
"캠퍼스",
"캠페인",
"커튼",
"컨디션",
"컬러",
"컴퓨터",
"코끼리",
"코미디",
"콘서트",
"콜라",
"콤플렉스",
"콩나물",
"쾌감",
"쿠데타",
"크림",
"큰길",
"큰딸",
"큰소리",
"큰아들",
"큰어머니",
"큰일",
"큰절",
"클래식",
"클럽",
"킬로",
"타입",
"타자기",
"탁구",
"탁자",
"탄생",
"태권도",
"태양",
"태풍",
"택시",
"탤런트",
"터널",
"터미널",
"테니스",
"테스트",
"테이블",
"텔레비전",
"토론",
"토마토",
"토요일",
"통계",
"통과",
"통로",
"통신",
"통역",
"통일",
"통장",
"통제",
"통증",
"통합",
"통화",
"퇴근",
"퇴원",
"퇴직금",
"튀김",
"트럭",
"특급",
"특별",
"특성",
"특수",
"특징",
"특히",
"튼튼히",
"티셔츠",
"파란색",
"파일",
"파출소",
"판결",
"판단",
"판매",
"판사",
"팔십",
"팔월",
"팝송",
"패션",
"팩스",
"팩시밀리",
"팬티",
"퍼센트",
"페인트",
"편견",
"편의",
"편지",
"편히",
"평가",
"평균",
"평생",
"평소",
"평양",
"평일",
"평화",
"포스터",
"포인트",
"포장",
"포함",
"표면",
"표정",
"표준",
"표현",
"품목",
"품질",
"풍경",
"풍속",
"풍습",
"프랑스",
"프린터",
"플라스틱",
"피곤",
"피망",
"피아노",
"필름",
"필수",
"필요",
"필자",
"필통",
"핑계",
"하느님",
"하늘",
"하드웨어",
"하룻밤",
"하반기",
"하숙집",
"하순",
"하여튼",
"하지만",
"하천",
"하품",
"하필",
"학과",
"학교",
"학급",
"학기",
"학년",
"학력",
"학번",
"학부모",
"학비",
"학생",
"학술",
"학습",
"학용품",
"학원",
"학위",
"학자",
"학점",
"한계",
"한글",
"한꺼번에",
"한낮",
"한눈",
"한동안",
"한때",
"한라산",
"한마디",
"한문",
"한번",
"한복",
"한식",
"한여름",
"한쪽",
"할머니",
"할아버지",
"할인",
"함께",
"함부로",
"합격",
"합리적",
"항공",
"항구",
"항상",
"항의",
"해결",
"해군",
"해답",
"해당",
"해물",
"해석",
"해설",
"해수욕장",
"해안",
"핵심",
"핸드백",
"햄버거",
"햇볕",
"햇살",
"행동",
"행복",
"행사",
"행운",
"행위",
"향기",
"향상",
"향수",
"허락",
"허용",
"헬기",
"현관",
"현금",
"현대",
"현상",
"현실",
"현장",
"현재",
"현지",
"혈액",
"협력",
"형부",
"형사",
"형수",
"형식",
"형제",
"형태",
"형편",
"혜택",
"호기심",
"호남",
"호랑이",
"호박",
"호텔",
"호흡",
"혹시",
"홀로",
"홈페이지",
"홍보",
"홍수",
"홍차",
"화면",
"화분",
"화살",
"화요일",
"화장",
"화학",
"확보",
"확인",
"확장",
"확정",
"환갑",
"환경",
"환영",
"환율",
"환자",
"활기",
"활동",
"활발히",
"활용",
"활짝",
"회견",
"회관",
"회복",
"회색",
"회원",
"회장",
"회전",
"횟수",
"횡단보도",
"효율적",
"후반",
"후춧가루",
"훈련",
"훨씬",
"휴식",
"휴일",
"흉내",
"흐름",
"흑백",
"흑인",
"흔적",
"흔히",
"흥미",
"흥분",
"희곡",
"희망",
"희생",
"흰색",
"힘껏"
]
},{}],167:[function(require,module,exports){
module.exports=[
"ábaco",
"abdomen",
"abeja",
"abierto",
"abogado",
"abono",
"aborto",
"abrazo",
"abrir",
"abuelo",
"abuso",
"acabar",
"academia",
"acceso",
"acción",
"aceite",
"acelga",
"acento",
"aceptar",
"ácido",
"aclarar",
"acné",
"acoger",
"acoso",
"activo",
"acto",
"actriz",
"actuar",
"acudir",
"acuerdo",
"acusar",
"adicto",
"admitir",
"adoptar",
"adorno",
"aduana",
"adulto",
"aéreo",
"afectar",
"afición",
"afinar",
"afirmar",
"ágil",
"agitar",
"agonía",
"agosto",
"agotar",
"agregar",
"agrio",
"agua",
"agudo",
"águila",
"aguja",
"ahogo",
"ahorro",
"aire",
"aislar",
"ajedrez",
"ajeno",
"ajuste",
"alacrán",
"alambre",
"alarma",
"alba",
"álbum",
"alcalde",
"aldea",
"alegre",
"alejar",
"alerta",
"aleta",
"alfiler",
"alga",
"algodón",
"aliado",
"aliento",
"alivio",
"alma",
"almeja",
"almíbar",
"altar",
"alteza",
"altivo",
"alto",
"altura",
"alumno",
"alzar",
"amable",
"amante",
"amapola",
"amargo",
"amasar",
"ámbar",
"ámbito",
"ameno",
"amigo",
"amistad",
"amor",
"amparo",
"amplio",
"ancho",
"anciano",
"ancla",
"andar",
"andén",
"anemia",
"ángulo",
"anillo",
"ánimo",
"anís",
"anotar",
"antena",
"antiguo",
"antojo",
"anual",
"anular",
"anuncio",
"añadir",
"añejo",
"año",
"apagar",
"aparato",
"apetito",
"apio",
"aplicar",
"apodo",
"aporte",
"apoyo",
"aprender",
"aprobar",
"apuesta",
"apuro",
"arado",
"araña",
"arar",
"árbitro",
"árbol",
"arbusto",
"archivo",
"arco",
"arder",
"ardilla",
"arduo",
"área",
"árido",
"aries",
"armonía",
"arnés",
"aroma",
"arpa",
"arpón",
"arreglo",
"arroz",
"arruga",
"arte",
"artista",
"asa",
"asado",
"asalto",
"ascenso",
"asegurar",
"aseo",
"asesor",
"asiento",
"asilo",
"asistir",
"asno",
"asombro",
"áspero",
"astilla",
"astro",
"astuto",
"asumir",
"asunto",
"atajo",
"ataque",
"atar",
"atento",
"ateo",
"ático",
"atleta",
"átomo",
"atraer",
"atroz",
"atún",
"audaz",
"audio",
"auge",
"aula",
"aumento",
"ausente",
"autor",
"aval",
"avance",
"avaro",
"ave",
"avellana",
"avena",
"avestruz",
"avión",
"aviso",
"ayer",
"ayuda",
"ayuno",
"azafrán",
"azar",
"azote",
"azúcar",
"azufre",
"azul",
"baba",
"babor",
"bache",
"bahía",
"baile",
"bajar",
"balanza",
"balcón",
"balde",
"bambú",
"banco",
"banda",
"baño",
"barba",
"barco",
"barniz",
"barro",
"báscula",
"bastón",
"basura",
"batalla",
"batería",
"batir",
"batuta",
"baúl",
"bazar",
"bebé",
"bebida",
"bello",
"besar",
"beso",
"bestia",
"bicho",
"bien",
"bingo",
"blanco",
"bloque",
"blusa",
"boa",
"bobina",
"bobo",
"boca",
"bocina",
"boda",
"bodega",
"boina",
"bola",
"bolero",
"bolsa",
"bomba",
"bondad",
"bonito",
"bono",
"bonsái",
"borde",
"borrar",
"bosque",
"bote",
"botín",
"bóveda",
"bozal",
"bravo",
"brazo",
"brecha",
"breve",
"brillo",
"brinco",
"brisa",
"broca",
"broma",
"bronce",
"brote",
"bruja",
"brusco",
"bruto",
"buceo",
"bucle",
"bueno",
"buey",
"bufanda",
"bufón",
"búho",
"buitre",
"bulto",
"burbuja",
"burla",
"burro",
"buscar",
"butaca",
"buzón",
"caballo",
"cabeza",
"cabina",
"cabra",
"cacao",
"cadáver",
"cadena",
"caer",
"café",
"caída",
"caimán",
"caja",
"cajón",
"cal",
"calamar",
"calcio",
"caldo",
"calidad",
"calle",
"calma",
"calor",
"calvo",
"cama",
"cambio",
"camello",
"camino",
"campo",
"cáncer",
"candil",
"canela",
"canguro",
"canica",
"canto",
"caña",
"cañón",
"caoba",
"caos",
"capaz",
"capitán",
"capote",
"captar",
"capucha",
"cara",
"carbón",
"cárcel",
"careta",
"carga",
"cariño",
"carne",
"carpeta",
"carro",
"carta",
"casa",
"casco",
"casero",
"caspa",
"castor",
"catorce",
"catre",
"caudal",
"causa",
"cazo",
"cebolla",
"ceder",
"cedro",
"celda",
"célebre",
"celoso",
"célula",
"cemento",
"ceniza",
"centro",
"cerca",
"cerdo",
"cereza",
"cero",
"cerrar",
"certeza",
"césped",
"cetro",
"chacal",
"chaleco",
"champú",
"chancla",
"chapa",
"charla",
"chico",
"chiste",
"chivo",
"choque",
"choza",
"chuleta",
"chupar",
"ciclón",
"ciego",
"cielo",
"cien",
"cierto",
"cifra",
"cigarro",
"cima",
"cinco",
"cine",
"cinta",
"ciprés",
"circo",
"ciruela",
"cisne",
"cita",
"ciudad",
"clamor",
"clan",
"claro",
"clase",
"clave",
"cliente",
"clima",
"clínica",
"cobre",
"cocción",
"cochino",
"cocina",
"coco",
"código",
"codo",
"cofre",
"coger",
"cohete",
"cojín",
"cojo",
"cola",
"colcha",
"colegio",
"colgar",
"colina",
"collar",
"colmo",
"columna",
"combate",
"comer",
"comida",
"cómodo",
"compra",
"conde",
"conejo",
"conga",
"conocer",
"consejo",
"contar",
"copa",
"copia",
"corazón",
"corbata",
"corcho",
"cordón",
"corona",
"correr",
"coser",
"cosmos",
"costa",
"cráneo",
"cráter",
"crear",
"crecer",
"creído",
"crema",
"cría",
"crimen",
"cripta",
"crisis",
"cromo",
"crónica",
"croqueta",
"crudo",
"cruz",
"cuadro",
"cuarto",
"cuatro",
"cubo",
"cubrir",
"cuchara",
"cuello",
"cuento",
"cuerda",
"cuesta",
"cueva",
"cuidar",
"culebra",
"culpa",
"culto",
"cumbre",
"cumplir",
"cuna",
"cuneta",
"cuota",
"cupón",
"cúpula",
"curar",
"curioso",
"curso",
"curva",
"cutis",
"dama",
"danza",
"dar",
"dardo",
"dátil",
"deber",
"débil",
"década",
"decir",
"dedo",
"defensa",
"definir",
"dejar",
"delfín",
"delgado",
"delito",
"demora",
"denso",
"dental",
"deporte",
"derecho",
"derrota",
"desayuno",
"deseo",
"desfile",
"desnudo",
"destino",
"desvío",
"detalle",
"detener",
"deuda",
"día",
"diablo",
"diadema",
"diamante",
"diana",
"diario",
"dibujo",
"dictar",
"diente",
"dieta",
"diez",
"difícil",
"digno",
"dilema",
"diluir",
"dinero",
"directo",
"dirigir",
"disco",
"diseño",
"disfraz",
"diva",
"divino",
"doble",
"doce",
"dolor",
"domingo",
"don",
"donar",
"dorado",
"dormir",
"dorso",
"dos",
"dosis",
"dragón",
"droga",
"ducha",
"duda",
"duelo",
"dueño",
"dulce",
"dúo",
"duque",
"durar",
"dureza",
"duro",
"ébano",
"ebrio",
"echar",
"eco",
"ecuador",
"edad",
"edición",
"edificio",
"editor",
"educar",
"efecto",
"eficaz",
"eje",
"ejemplo",
"elefante",
"elegir",
"elemento",
"elevar",
"elipse",
"élite",
"elixir",
"elogio",
"eludir",
"embudo",
"emitir",
"emoción",
"empate",
"empeño",
"empleo",
"empresa",
"enano",
"encargo",
"enchufe",
"encía",
"enemigo",
"enero",
"enfado",
"enfermo",
"engaño",
"enigma",
"enlace",
"enorme",
"enredo",
"ensayo",
"enseñar",
"entero",
"entrar",
"envase",
"envío",
"época",
"equipo",
"erizo",
"escala",
"escena",
"escolar",
"escribir",
"escudo",
"esencia",
"esfera",
"esfuerzo",
"espada",
"espejo",
"espía",
"esposa",
"espuma",
"esquí",
"estar",
"este",
"estilo",
"estufa",
"etapa",
"eterno",
"ética",
"etnia",
"evadir",
"evaluar",
"evento",
"evitar",
"exacto",
"examen",
"exceso",
"excusa",
"exento",
"exigir",
"exilio",
"existir",
"éxito",
"experto",
"explicar",
"exponer",
"extremo",
"fábrica",
"fábula",
"fachada",
"fácil",
"factor",
"faena",
"faja",
"falda",
"fallo",
"falso",
"faltar",
"fama",
"familia",
"famoso",
"faraón",
"farmacia",
"farol",
"farsa",
"fase",
"fatiga",
"fauna",
"favor",
"fax",
"febrero",
"fecha",
"feliz",
"feo",
"feria",
"feroz",
"fértil",
"fervor",
"festín",
"fiable",
"fianza",
"fiar",
"fibra",
"ficción",
"ficha",
"fideo",
"fiebre",
"fiel",
"fiera",
"fiesta",
"figura",
"fijar",
"fijo",
"fila",
"filete",
"filial",
"filtro",
"fin",
"finca",
"fingir",
"finito",
"firma",
"flaco",
"flauta",
"flecha",
"flor",
"flota",
"fluir",
"flujo",
"flúor",
"fobia",
"foca",
"fogata",
"fogón",
"folio",
"folleto",
"fondo",
"forma",
"forro",
"fortuna",
"forzar",
"fosa",
"foto",
"fracaso",
"frágil",
"franja",
"frase",
"fraude",
"freír",
"freno",
"fresa",
"frío",
"frito",
"fruta",
"fuego",
"fuente",
"fuerza",
"fuga",
"fumar",
"función",
"funda",
"furgón",
"furia",
"fusil",
"fútbol",
"futuro",
"gacela",
"gafas",
"gaita",
"gajo",
"gala",
"galería",
"gallo",
"gamba",
"ganar",
"gancho",
"ganga",
"ganso",
"garaje",
"garza",
"gasolina",
"gastar",
"gato",
"gavilán",
"gemelo",
"gemir",
"gen",
"género",
"genio",
"gente",
"geranio",
"gerente",
"germen",
"gesto",
"gigante",
"gimnasio",
"girar",
"giro",
"glaciar",
"globo",
"gloria",
"gol",
"golfo",
"goloso",
"golpe",
"goma",
"gordo",
"gorila",
"gorra",
"gota",
"goteo",
"gozar",
"grada",
"gráfico",
"grano",
"grasa",
"gratis",
"grave",
"grieta",
"grillo",
"gripe",
"gris",
"grito",
"grosor",
"grúa",
"grueso",
"grumo",
"grupo",
"guante",
"guapo",
"guardia",
"guerra",
"guía",
"guiño",
"guion",
"guiso",
"guitarra",
"gusano",
"gustar",
"haber",
"hábil",
"hablar",
"hacer",
"hacha",
"hada",
"hallar",
"hamaca",
"harina",
"haz",
"hazaña",
"hebilla",
"hebra",
"hecho",
"helado",
"helio",
"hembra",
"herir",
"hermano",
"héroe",
"hervir",
"hielo",
"hierro",
"hígado",
"higiene",
"hijo",
"himno",
"historia",
"hocico",
"hogar",
"hoguera",
"hoja",
"hombre",
"hongo",
"honor",
"honra",
"hora",
"hormiga",
"horno",
"hostil",
"hoyo",
"hueco",
"huelga",
"huerta",
"hueso",
"huevo",
"huida",
"huir",
"humano",
"húmedo",
"humilde",
"humo",
"hundir",
"huracán",
"hurto",
"icono",
"ideal",
"idioma",
"ídolo",
"iglesia",
"iglú",
"igual",
"ilegal",
"ilusión",
"imagen",
"imán",
"imitar",
"impar",
"imperio",
"imponer",
"impulso",
"incapaz",
"índice",
"inerte",
"infiel",
"informe",
"ingenio",
"inicio",
"inmenso",
"inmune",
"innato",
"insecto",
"instante",
"interés",
"íntimo",
"intuir",
"inútil",
"invierno",
"ira",
"iris",
"ironía",
"isla",
"islote",
"jabalí",
"jabón",
"jamón",
"jarabe",
"jardín",
"jarra",
"jaula",
"jazmín",
"jefe",
"jeringa",
"jinete",
"jornada",
"joroba",
"joven",
"joya",
"juerga",
"jueves",
"juez",
"jugador",
"jugo",
"juguete",
"juicio",
"junco",
"jungla",
"junio",
"juntar",
"júpiter",
"jurar",
"justo",
"juvenil",
"juzgar",
"kilo",
"koala",
"labio",
"lacio",
"lacra",
"lado",
"ladrón",
"lagarto",
"lágrima",
"laguna",
"laico",
"lamer",
"lámina",
"lámpara",
"lana",
"lancha",
"langosta",
"lanza",
"lápiz",
"largo",
"larva",
"lástima",
"lata",
"látex",
"latir",
"laurel",
"lavar",
"lazo",
"leal",
"lección",
"leche",
"lector",
"leer",
"legión",
"legumbre",
"lejano",
"lengua",
"lento",
"leña",
"león",
"leopardo",
"lesión",
"letal",
"letra",
"leve",
"leyenda",
"libertad",
"libro",
"licor",
"líder",
"lidiar",
"lienzo",
"liga",
"ligero",
"lima",
"límite",
"limón",
"limpio",
"lince",
"lindo",
"línea",
"lingote",
"lino",
"linterna",
"líquido",
"liso",
"lista",
"litera",
"litio",
"litro",
"llaga",
"llama",
"llanto",
"llave",
"llegar",
"llenar",
"llevar",
"llorar",
"llover",
"lluvia",
"lobo",
"loción",
"loco",
"locura",
"lógica",
"logro",
"lombriz",
"lomo",
"lonja",
"lote",
"lucha",
"lucir",
"lugar",
"lujo",
"luna",
"lunes",
"lupa",
"lustro",
"luto",
"luz",
"maceta",
"macho",
"madera",
"madre",
"maduro",
"maestro",
"mafia",
"magia",
"mago",
"maíz",
"maldad",
"maleta",
"malla",
"malo",
"mamá",
"mambo",
"mamut",
"manco",
"mando",
"manejar",
"manga",
"maniquí",
"manjar",
"mano",
"manso",
"manta",
"mañana",
"mapa",
"máquina",
"mar",
"marco",
"marea",
"marfil",
"margen",
"marido",
"mármol",
"marrón",
"martes",
"marzo",
"masa",
"máscara",
"masivo",
"matar",
"materia",
"matiz",
"matriz",
"máximo",
"mayor",
"mazorca",
"mecha",
"medalla",
"medio",
"médula",
"mejilla",
"mejor",
"melena",
"melón",
"memoria",
"menor",
"mensaje",
"mente",
"menú",
"mercado",
"merengue",
"mérito",
"mes",
"mesón",
"meta",
"meter",
"método",
"metro",
"mezcla",
"miedo",
"miel",
"miembro",
"miga",
"mil",
"milagro",
"militar",
"millón",
"mimo",
"mina",
"minero",
"mínimo",
"minuto",
"miope",
"mirar",
"misa",
"miseria",
"misil",
"mismo",
"mitad",
"mito",
"mochila",
"moción",
"moda",
"modelo",
"moho",
"mojar",
"molde",
"moler",
"molino",
"momento",
"momia",
"monarca",
"moneda",
"monja",
"monto",
"moño",
"morada",
"morder",
"moreno",
"morir",
"morro",
"morsa",
"mortal",
"mosca",
"mostrar",
"motivo",
"mover",
"móvil",
"mozo",
"mucho",
"mudar",
"mueble",
"muela",
"muerte",
"muestra",
"mugre",
"mujer",
"mula",
"muleta",
"multa",
"mundo",
"muñeca",
"mural",
"muro",
"músculo",
"museo",
"musgo",
"música",
"muslo",
"nácar",
"nación",
"nadar",
"naipe",
"naranja",
"nariz",
"narrar",
"nasal",
"natal",
"nativo",
"natural",
"náusea",
"naval",
"nave",
"navidad",
"necio",
"néctar",
"negar",
"negocio",
"negro",
"neón",
"nervio",
"neto",
"neutro",
"nevar",
"nevera",
"nicho",
"nido",
"niebla",
"nieto",
"niñez",
"niño",
"nítido",
"nivel",
"nobleza",
"noche",
"nómina",
"noria",
"norma",
"norte",
"nota",
"noticia",
"novato",
"novela",
"novio",
"nube",
"nuca",
"núcleo",
"nudillo",
"nudo",
"nuera",
"nueve",
"nuez",
"nulo",
"número",
"nutria",
"oasis",
"obeso",
"obispo",
"objeto",
"obra",
"obrero",
"observar",
"obtener",
"obvio",
"oca",
"ocaso",
"océano",
"ochenta",
"ocho",
"ocio",
"ocre",
"octavo",
"octubre",
"oculto",
"ocupar",
"ocurrir",
"odiar",
"odio",
"odisea",
"oeste",
"ofensa",
"oferta",
"oficio",
"ofrecer",
"ogro",
"oído",
"oír",
"ojo",
"ola",
"oleada",
"olfato",
"olivo",
"olla",
"olmo",
"olor",
"olvido",
"ombligo",
"onda",
"onza",
"opaco",
"opción",
"ópera",
"opinar",
"oponer",
"optar",
"óptica",
"opuesto",
"oración",
"orador",
"oral",
"órbita",
"orca",
"orden",
"oreja",
"órgano",
"orgía",
"orgullo",
"oriente",
"origen",
"orilla",
"oro",
"orquesta",
"oruga",
"osadía",
"oscuro",
"osezno",
"oso",
"ostra",
"otoño",
"otro",
"oveja",
"óvulo",
"óxido",
"oxígeno",
"oyente",
"ozono",
"pacto",
"padre",
"paella",
"página",
"pago",
"país",
"pájaro",
"palabra",
"palco",
"paleta",
"pálido",
"palma",
"paloma",
"palpar",
"pan",
"panal",
"pánico",
"pantera",
"pañuelo",
"papá",
"papel",
"papilla",
"paquete",
"parar",
"parcela",
"pared",
"parir",
"paro",
"párpado",
"parque",
"párrafo",
"parte",
"pasar",
"paseo",
"pasión",
"paso",
"pasta",
"pata",
"patio",
"patria",
"pausa",
"pauta",
"pavo",
"payaso",
"peatón",
"pecado",
"pecera",
"pecho",
"pedal",
"pedir",
"pegar",
"peine",
"pelar",
"peldaño",
"pelea",
"peligro",
"pellejo",
"pelo",
"peluca",
"pena",
"pensar",
"peñón",
"peón",
"peor",
"pepino",
"pequeño",
"pera",
"percha",
"perder",
"pereza",
"perfil",
"perico",
"perla",
"permiso",
"perro",
"persona",
"pesa",
"pesca",
"pésimo",
"pestaña",
"pétalo",
"petróleo",
"pez",
"pezuña",
"picar",
"pichón",
"pie",
"piedra",
"pierna",
"pieza",
"pijama",
"pilar",
"piloto",
"pimienta",
"pino",
"pintor",
"pinza",
"piña",
"piojo",
"pipa",
"pirata",
"pisar",
"piscina",
"piso",
"pista",
"pitón",
"pizca",
"placa",
"plan",
"plata",
"playa",
"plaza",
"pleito",
"pleno",
"plomo",
"pluma",
"plural",
"pobre",
"poco",
"poder",
"podio",
"poema",
"poesía",
"poeta",
"polen",
"policía",
"pollo",
"polvo",
"pomada",
"pomelo",
"pomo",
"pompa",
"poner",
"porción",
"portal",
"posada",
"poseer",
"posible",
"poste",
"potencia",
"potro",
"pozo",
"prado",
"precoz",
"pregunta",
"premio",
"prensa",
"preso",
"previo",
"primo",
"príncipe",
"prisión",
"privar",
"proa",
"probar",
"proceso",
"producto",
"proeza",
"profesor",
"programa",
"prole",
"promesa",
"pronto",
"propio",
"próximo",
"prueba",
"público",
"puchero",
"pudor",
"pueblo",
"puerta",
"puesto",
"pulga",
"pulir",
"pulmón",
"pulpo",
"pulso",
"puma",
"punto",
"puñal",
"puño",
"pupa",
"pupila",
"puré",
"quedar",
"queja",
"quemar",
"querer",
"queso",
"quieto",
"química",
"quince",
"quitar",
"rábano",
"rabia",
"rabo",
"ración",
"radical",
"raíz",
"rama",
"rampa",
"rancho",
"rango",
"rapaz",
"rápido",
"rapto",
"rasgo",
"raspa",
"rato",
"rayo",
"raza",
"razón",
"reacción",
"realidad",
"rebaño",
"rebote",
"recaer",
"receta",
"rechazo",
"recoger",
"recreo",
"recto",
"recurso",
"red",
"redondo",
"reducir",
"reflejo",
"reforma",
"refrán",
"refugio",
"regalo",
"regir",
"regla",
"regreso",
"rehén",
"reino",
"reír",
"reja",
"relato",
"relevo",
"relieve",
"relleno",
"reloj",
"remar",
"remedio",
"remo",
"rencor",
"rendir",
"renta",
"reparto",
"repetir",
"reposo",
"reptil",
"res",
"rescate",
"resina",
"respeto",
"resto",
"resumen",
"retiro",
"retorno",
"retrato",
"reunir",
"revés",
"revista",
"rey",
"rezar",
"rico",
"riego",
"rienda",
"riesgo",
"rifa",
"rígido",
"rigor",
"rincón",
"riñón",
"río",
"riqueza",
"risa",
"ritmo",
"rito",
"rizo",
"roble",
"roce",
"rociar",
"rodar",
"rodeo",
"rodilla",
"roer",
"rojizo",
"rojo",
"romero",
"romper",
"ron",
"ronco",
"ronda",
"ropa",
"ropero",
"rosa",
"rosca",
"rostro",
"rotar",
"rubí",
"rubor",
"rudo",
"rueda",
"rugir",
"ruido",
"ruina",
"ruleta",
"rulo",
"rumbo",
"rumor",
"ruptura",
"ruta",
"rutina",
"sábado",
"saber",
"sabio",
"sable",
"sacar",
"sagaz",
"sagrado",
"sala",
"saldo",
"salero",
"salir",
"salmón",
"salón",
"salsa",
"salto",
"salud",
"salvar",
"samba",
"sanción",
"sandía",
"sanear",
"sangre",
"sanidad",
"sano",
"santo",
"sapo",
"saque",
"sardina",
"sartén",
"sastre",
"satán",
"sauna",
"saxofón",
"sección",
"seco",
"secreto",
"secta",
"sed",
"seguir",
"seis",
"sello",
"selva",
"semana",
"semilla",
"senda",
"sensor",
"señal",
"señor",
"separar",
"sepia",
"sequía",
"ser",
"serie",
"sermón",
"servir",
"sesenta",
"sesión",
"seta",
"setenta",
"severo",
"sexo",
"sexto",
"sidra",
"siesta",
"siete",
"siglo",
"signo",
"sílaba",
"silbar",
"silencio",
"silla",
"símbolo",
"simio",
"sirena",
"sistema",
"sitio",
"situar",
"sobre",
"socio",
"sodio",
"sol",
"solapa",
"soldado",
"soledad",
"sólido",
"soltar",
"solución",
"sombra",
"sondeo",
"sonido",
"sonoro",
"sonrisa",
"sopa",
"soplar",
"soporte",
"sordo",
"sorpresa",
"sorteo",
"sostén",
"sótano",
"suave",
"subir",
"suceso",
"sudor",
"suegra",
"suelo",
"sueño",
"suerte",
"sufrir",
"sujeto",
"sultán",
"sumar",
"superar",
"suplir",
"suponer",
"supremo",
"sur",
"surco",
"sureño",
"surgir",
"susto",
"sutil",
"tabaco",
"tabique",
"tabla",
"tabú",
"taco",
"tacto",
"tajo",
"talar",
"talco",
"talento",
"talla",
"talón",
"tamaño",
"tambor",
"tango",
"tanque",
"tapa",
"tapete",
"tapia",
"tapón",
"taquilla",
"tarde",
"tarea",
"tarifa",
"tarjeta",
"tarot",
"tarro",
"tarta",
"tatuaje",
"tauro",
"taza",
"tazón",
"teatro",
"techo",
"tecla",
"técnica",
"tejado",
"tejer",
"tejido",
"tela",
"teléfono",
"tema",
"temor",
"templo",
"tenaz",
"tender",
"tener",
"tenis",
"tenso",
"teoría",
"terapia",
"terco",
"término",
"ternura",
"terror",
"tesis",
"tesoro",
"testigo",
"tetera",
"texto",
"tez",
"tibio",
"tiburón",
"tiempo",
"tienda",
"tierra",
"tieso",
"tigre",
"tijera",
"tilde",
"timbre",
"tímido",
"timo",
"tinta",
"tío",
"típico",
"tipo",
"tira",
"tirón",
"titán",
"títere",
"título",
"tiza",
"toalla",
"tobillo",
"tocar",
"tocino",
"todo",
"toga",
"toldo",
"tomar",
"tono",
"tonto",
"topar",
"tope",
"toque",
"tórax",
"torero",
"tormenta",
"torneo",
"toro",
"torpedo",
"torre",
"torso",
"tortuga",
"tos",
"tosco",
"toser",
"tóxico",
"trabajo",
"tractor",
"traer",
"tráfico",
"trago",
"traje",
"tramo",
"trance",
"trato",
"trauma",
"trazar",
"trébol",
"tregua",
"treinta",
"tren",
"trepar",
"tres",
"tribu",
"trigo",
"tripa",
"triste",
"triunfo",
"trofeo",
"trompa",
"tronco",
"tropa",
"trote",
"trozo",
"truco",
"trueno",
"trufa",
"tubería",
"tubo",
"tuerto",
"tumba",
"tumor",
"túnel",
"túnica",
"turbina",
"turismo",
"turno",
"tutor",
"ubicar",
"úlcera",
"umbral",
"unidad",
"unir",
"universo",
"uno",
"untar",
"uña",
"urbano",
"urbe",
"urgente",
"urna",
"usar",
"usuario",
"útil",
"utopía",
"uva",
"vaca",
"vacío",
"vacuna",
"vagar",
"vago",
"vaina",
"vajilla",
"vale",
"válido",
"valle",
"valor",
"válvula",
"vampiro",
"vara",
"variar",
"varón",
"vaso",
"vecino",
"vector",
"vehículo",
"veinte",
"vejez",
"vela",
"velero",
"veloz",
"vena",
"vencer",
"venda",
"veneno",
"vengar",
"venir",
"venta",
"venus",
"ver",
"verano",
"verbo",
"verde",
"vereda",
"verja",
"verso",
"verter",
"vía",
"viaje",
"vibrar",
"vicio",
"víctima",
"vida",
"vídeo",
"vidrio",
"viejo",
"viernes",
"vigor",
"vil",
"villa",
"vinagre",
"vino",
"viñedo",
"violín",
"viral",
"virgo",
"virtud",
"visor",
"víspera",
"vista",
"vitamina",
"viudo",
"vivaz",
"vivero",
"vivir",
"vivo",
"volcán",
"volumen",
"volver",
"voraz",
"votar",
"voto",
"voz",
"vuelo",
"vulgar",
"yacer",
"yate",
"yegua",
"yema",
"yerno",
"yeso",
"yodo",
"yoga",
"yogur",
"zafiro",
"zanja",
"zapato",
"zarza",
"zona",
"zorro",
"zumo",
"zurdo"
]
},{}],168:[function(require,module,exports){
'use strict';
// Reference https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki
// Format: 0x30 [total-length] 0x02 [R-length] [R] 0x02 [S-length] [S]
// NOTE: SIGHASH byte ignored AND restricted, truncate before use
var Buffer = require('safe-buffer').Buffer;
function check(buffer) {
if (buffer.length < 8) return false;
if (buffer.length > 72) return false;
if (buffer[0] !== 0x30) return false;
if (buffer[1] !== buffer.length - 2) return false;
if (buffer[2] !== 0x02) return false;
var lenR = buffer[3];
if (lenR === 0) return false;
if (5 + lenR >= buffer.length) return false;
if (buffer[4 + lenR] !== 0x02) return false;
var lenS = buffer[5 + lenR];
if (lenS === 0) return false;
if (6 + lenR + lenS !== buffer.length) return false;
if (buffer[4] & 0x80) return false;
if (lenR > 1 && buffer[4] === 0x00 && !(buffer[5] & 0x80)) return false;
if (buffer[lenR + 6] & 0x80) return false;
if (lenS > 1 && buffer[lenR + 6] === 0x00 && !(buffer[lenR + 7] & 0x80)) return false;
return true;
}
function decode(buffer) {
if (buffer.length < 8) throw new Error('DER sequence length is too short');
if (buffer.length > 72) throw new Error('DER sequence length is too long');
if (buffer[0] !== 0x30) throw new Error('Expected DER sequence');
if (buffer[1] !== buffer.length - 2) throw new Error('DER sequence length is invalid');
if (buffer[2] !== 0x02) throw new Error('Expected DER integer');
var lenR = buffer[3];
if (lenR === 0) throw new Error('R length is zero');
if (5 + lenR >= buffer.length) throw new Error('R length is too long');
if (buffer[4 + lenR] !== 0x02) throw new Error('Expected DER integer (2)');
var lenS = buffer[5 + lenR];
if (lenS === 0) throw new Error('S length is zero');
if (6 + lenR + lenS !== buffer.length) throw new Error('S length is invalid');
if (buffer[4] & 0x80) throw new Error('R value is negative');
if (lenR > 1 && buffer[4] === 0x00 && !(buffer[5] & 0x80)) throw new Error('R value excessively padded');
if (buffer[lenR + 6] & 0x80) throw new Error('S value is negative');
if (lenS > 1 && buffer[lenR + 6] === 0x00 && !(buffer[lenR + 7] & 0x80)) throw new Error('S value excessively padded');
// non-BIP66 - extract R, S values
return {
r: buffer.slice(4, 4 + lenR),
s: buffer.slice(6 + lenR)
};
}
/*
* Expects r and s to be positive DER integers.
*
* The DER format uses the most significant bit as a sign bit (& 0x80).
* If the significant bit is set AND the integer is positive, a 0x00 is prepended.
*
* Examples:
*
* 0 => 0x00
* 1 => 0x01
* -1 => 0xff
* 127 => 0x7f
* -127 => 0x81
* 128 => 0x0080
* -128 => 0x80
* 255 => 0x00ff
* -255 => 0xff01
* 16300 => 0x3fac
* -16300 => 0xc054
* 62300 => 0x00f35c
* -62300 => 0xff0ca4
*/
function encode(r, s) {
var lenR = r.length;
var lenS = s.length;
if (lenR === 0) throw new Error('R length is zero');
if (lenS === 0) throw new Error('S length is zero');
if (lenR > 33) throw new Error('R length is too long');
if (lenS > 33) throw new Error('S length is too long');
if (r[0] & 0x80) throw new Error('R value is negative');
if (s[0] & 0x80) throw new Error('S value is negative');
if (lenR > 1 && r[0] === 0x00 && !(r[1] & 0x80)) throw new Error('R value excessively padded');
if (lenS > 1 && s[0] === 0x00 && !(s[1] & 0x80)) throw new Error('S value excessively padded');
var signature = Buffer.allocUnsafe(6 + lenR + lenS);
// 0x30 [total-length] 0x02 [R-length] [R] 0x02 [S-length] [S]
signature[0] = 0x30;
signature[1] = signature.length - 2;
signature[2] = 0x02;
signature[3] = r.length;
r.copy(signature, 4);
signature[4 + lenR] = 0x02;
signature[5 + lenR] = s.length;
s.copy(signature, 6 + lenR);
return signature;
}
module.exports = {
check: check,
decode: decode,
encode: encode
};
},{"safe-buffer":319}],169:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
(function (module, exports) {
'use strict';
// Utils
function assert(val, msg) {
if (!val) throw new Error(msg || 'Assertion failed');
}
// Could use `inherits` module, but don't want to move from single file
// architecture yet.
function inherits(ctor, superCtor) {
ctor.super_ = superCtor;
var TempCtor = function TempCtor() {};
TempCtor.prototype = superCtor.prototype;
ctor.prototype = new TempCtor();
ctor.prototype.constructor = ctor;
}
// BN
function BN(number, base, endian) {
if (BN.isBN(number)) {
return number;
}
this.negative = 0;
this.words = null;
this.length = 0;
// Reduction context
this.red = null;
if (number !== null) {
if (base === 'le' || base === 'be') {
endian = base;
base = 10;
}
this._init(number || 0, base || 10, endian || 'be');
}
}
if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object') {
module.exports = BN;
} else {
exports.BN = BN;
}
BN.BN = BN;
BN.wordSize = 26;
var Buffer;
try {
Buffer = require('buffer').Buffer;
} catch (e) {}
BN.isBN = function isBN(num) {
if (num instanceof BN) {
return true;
}
return num !== null && (typeof num === 'undefined' ? 'undefined' : _typeof(num)) === 'object' && num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);
};
BN.max = function max(left, right) {
if (left.cmp(right) > 0) return left;
return right;
};
BN.min = function min(left, right) {
if (left.cmp(right) < 0) return left;
return right;
};
BN.prototype._init = function init(number, base, endian) {
if (typeof number === 'number') {
return this._initNumber(number, base, endian);
}
if ((typeof number === 'undefined' ? 'undefined' : _typeof(number)) === 'object') {
return this._initArray(number, base, endian);
}
if (base === 'hex') {
base = 16;
}
assert(base === (base | 0) && base >= 2 && base <= 36);
number = number.toString().replace(/\s+/g, '');
var start = 0;
if (number[0] === '-') {
start++;
}
if (base === 16) {
this._parseHex(number, start);
} else {
this._parseBase(number, base, start);
}
if (number[0] === '-') {
this.negative = 1;
}
this.strip();
if (endian !== 'le') return;
this._initArray(this.toArray(), base, endian);
};
BN.prototype._initNumber = function _initNumber(number, base, endian) {
if (number < 0) {
this.negative = 1;
number = -number;
}
if (number < 0x4000000) {
this.words = [number & 0x3ffffff];
this.length = 1;
} else if (number < 0x10000000000000) {
this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff];
this.length = 2;
} else {
assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)
this.words = [number & 0x3ffffff, number / 0x4000000 & 0x3ffffff, 1];
this.length = 3;
}
if (endian !== 'le') return;
// Reverse the bytes
this._initArray(this.toArray(), base, endian);
};
BN.prototype._initArray = function _initArray(number, base, endian) {
// Perhaps a Uint8Array
assert(typeof number.length === 'number');
if (number.length <= 0) {
this.words = [0];
this.length = 1;
return this;
}
this.length = Math.ceil(number.length / 3);
this.words = new Array(this.length);
for (var i = 0; i < this.length; i++) {
this.words[i] = 0;
}
var j, w;
var off = 0;
if (endian === 'be') {
for (i = number.length - 1, j = 0; i >= 0; i -= 3) {
w = number[i] | number[i - 1] << 8 | number[i - 2] << 16;
this.words[j] |= w << off & 0x3ffffff;
this.words[j + 1] = w >>> 26 - off & 0x3ffffff;
off += 24;
if (off >= 26) {
off -= 26;
j++;
}
}
} else if (endian === 'le') {
for (i = 0, j = 0; i < number.length; i += 3) {
w = number[i] | number[i + 1] << 8 | number[i + 2] << 16;
this.words[j] |= w << off & 0x3ffffff;
this.words[j + 1] = w >>> 26 - off & 0x3ffffff;
off += 24;
if (off >= 26) {
off -= 26;
j++;
}
}
}
return this.strip();
};
function parseHex(str, start, end) {
var r = 0;
var len = Math.min(str.length, end);
for (var i = start; i < len; i++) {
var c = str.charCodeAt(i) - 48;
r <<= 4;
// 'a' - 'f'
if (c >= 49 && c <= 54) {
r |= c - 49 + 0xa;
// 'A' - 'F'
} else if (c >= 17 && c <= 22) {
r |= c - 17 + 0xa;
// '0' - '9'
} else {
r |= c & 0xf;
}
}
return r;
}
BN.prototype._parseHex = function _parseHex(number, start) {
// Create possibly bigger array to ensure that it fits the number
this.length = Math.ceil((number.length - start) / 6);
this.words = new Array(this.length);
for (var i = 0; i < this.length; i++) {
this.words[i] = 0;
}
var j, w;
// Scan 24-bit chunks and add them to the number
var off = 0;
for (i = number.length - 6, j = 0; i >= start; i -= 6) {
w = parseHex(number, i, i + 6);
this.words[j] |= w << off & 0x3ffffff;
// NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb
this.words[j + 1] |= w >>> 26 - off & 0x3fffff;
off += 24;
if (off >= 26) {
off -= 26;
j++;
}
}
if (i + 6 !== start) {
w = parseHex(number, start, i + 6);
this.words[j] |= w << off & 0x3ffffff;
this.words[j + 1] |= w >>> 26 - off & 0x3fffff;
}
this.strip();
};
function parseBase(str, start, end, mul) {
var r = 0;
var len = Math.min(str.length, end);
for (var i = start; i < len; i++) {
var c = str.charCodeAt(i) - 48;
r *= mul;
// 'a'
if (c >= 49) {
r += c - 49 + 0xa;
// 'A'
} else if (c >= 17) {
r += c - 17 + 0xa;
// '0' - '9'
} else {
r += c;
}
}
return r;
}
BN.prototype._parseBase = function _parseBase(number, base, start) {
// Initialize as zero
this.words = [0];
this.length = 1;
// Find length of limb in base
for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {
limbLen++;
}
limbLen--;
limbPow = limbPow / base | 0;
var total = number.length - start;
var mod = total % limbLen;
var end = Math.min(total, total - mod) + start;
var word = 0;
for (var i = start; i < end; i += limbLen) {
word = parseBase(number, i, i + limbLen, base);
this.imuln(limbPow);
if (this.words[0] + word < 0x4000000) {
this.words[0] += word;
} else {
this._iaddn(word);
}
}
if (mod !== 0) {
var pow = 1;
word = parseBase(number, i, number.length, base);
for (i = 0; i < mod; i++) {
pow *= base;
}
this.imuln(pow);
if (this.words[0] + word < 0x4000000) {
this.words[0] += word;
} else {
this._iaddn(word);
}
}
};
BN.prototype.copy = function copy(dest) {
dest.words = new Array(this.length);
for (var i = 0; i < this.length; i++) {
dest.words[i] = this.words[i];
}
dest.length = this.length;
dest.negative = this.negative;
dest.red = this.red;
};
BN.prototype.clone = function clone() {
var r = new BN(null);
this.copy(r);
return r;
};
BN.prototype._expand = function _expand(size) {
while (this.length < size) {
this.words[this.length++] = 0;
}
return this;
};
// Remove leading `0` from `this`
BN.prototype.strip = function strip() {
while (this.length > 1 && this.words[this.length - 1] === 0) {
this.length--;
}
return this._normSign();
};
BN.prototype._normSign = function _normSign() {
// -0 = 0
if (this.length === 1 && this.words[0] === 0) {
this.negative = 0;
}
return this;
};
BN.prototype.inspect = function inspect() {
return (this.red ? '<BN-R: ' : '<BN: ') + this.toString(16) + '>';
};
/*
var zeros = [];
var groupSizes = [];
var groupBases = [];
var s = '';
var i = -1;
while (++i < BN.wordSize) {
zeros[i] = s;
s += '0';
}
groupSizes[0] = 0;
groupSizes[1] = 0;
groupBases[0] = 0;
groupBases[1] = 0;
var base = 2 - 1;
while (++base < 36 + 1) {
var groupSize = 0;
var groupBase = 1;
while (groupBase < (1 << BN.wordSize) / base) {
groupBase *= base;
groupSize += 1;
}
groupSizes[base] = groupSize;
groupBases[base] = groupBase;
}
*/
var zeros = ['', '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'];
var groupSizes = [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];
var groupBases = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
BN.prototype.toString = function toString(base, padding) {
base = base || 10;
padding = padding | 0 || 1;
var out;
if (base === 16 || base === 'hex') {
out = '';
var off = 0;
var carry = 0;
for (var i = 0; i < this.length; i++) {
var w = this.words[i];
var word = ((w << off | carry) & 0xffffff).toString(16);
carry = w >>> 24 - off & 0xffffff;
if (carry !== 0 || i !== this.length - 1) {
out = zeros[6 - word.length] + word + out;
} else {
out = word + out;
}
off += 2;
if (off >= 26) {
off -= 26;
i--;
}
}
if (carry !== 0) {
out = carry.toString(16) + out;
}
while (out.length % padding !== 0) {
out = '0' + out;
}
if (this.negative !== 0) {
out = '-' + out;
}
return out;
}
if (base === (base | 0) && base >= 2 && base <= 36) {
// var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));
var groupSize = groupSizes[base];
// var groupBase = Math.pow(base, groupSize);
var groupBase = groupBases[base];
out = '';
var c = this.clone();
c.negative = 0;
while (!c.isZero()) {
var r = c.modn(groupBase).toString(base);
c = c.idivn(groupBase);
if (!c.isZero()) {
out = zeros[groupSize - r.length] + r + out;
} else {
out = r + out;
}
}
if (this.isZero()) {
out = '0' + out;
}
while (out.length % padding !== 0) {
out = '0' + out;
}
if (this.negative !== 0) {
out = '-' + out;
}
return out;
}
assert(false, 'Base should be between 2 and 36');
};
BN.prototype.toNumber = function toNumber() {
var ret = this.words[0];
if (this.length === 2) {
ret += this.words[1] * 0x4000000;
} else if (this.length === 3 && this.words[2] === 0x01) {
// NOTE: at this stage it is known that the top bit is set
ret += 0x10000000000000 + this.words[1] * 0x4000000;
} else if (this.length > 2) {
assert(false, 'Number can only safely store up to 53 bits');
}
return this.negative !== 0 ? -ret : ret;
};
BN.prototype.toJSON = function toJSON() {
return this.toString(16);
};
BN.prototype.toBuffer = function toBuffer(endian, length) {
assert(typeof Buffer !== 'undefined');
return this.toArrayLike(Buffer, endian, length);
};
BN.prototype.toArray = function toArray(endian, length) {
return this.toArrayLike(Array, endian, length);
};
BN.prototype.toArrayLike = function toArrayLike(ArrayType, endian, length) {
var byteLength = this.byteLength();
var reqLength = length || Math.max(1, byteLength);
assert(byteLength <= reqLength, 'byte array longer than desired length');
assert(reqLength > 0, 'Requested array length <= 0');
this.strip();
var littleEndian = endian === 'le';
var res = new ArrayType(reqLength);
var b, i;
var q = this.clone();
if (!littleEndian) {
// Assume big-endian
for (i = 0; i < reqLength - byteLength; i++) {
res[i] = 0;
}
for (i = 0; !q.isZero(); i++) {
b = q.andln(0xff);
q.iushrn(8);
res[reqLength - i - 1] = b;
}
} else {
for (i = 0; !q.isZero(); i++) {
b = q.andln(0xff);
q.iushrn(8);
res[i] = b;
}
for (; i < reqLength; i++) {
res[i] = 0;
}
}
return res;
};
if (Math.clz32) {
BN.prototype._countBits = function _countBits(w) {
return 32 - Math.clz32(w);
};
} else {
BN.prototype._countBits = function _countBits(w) {
var t = w;
var r = 0;
if (t >= 0x1000) {
r += 13;
t >>>= 13;
}
if (t >= 0x40) {
r += 7;
t >>>= 7;
}
if (t >= 0x8) {
r += 4;
t >>>= 4;
}
if (t >= 0x02) {
r += 2;
t >>>= 2;
}
return r + t;
};
}
BN.prototype._zeroBits = function _zeroBits(w) {
// Short-cut
if (w === 0) return 26;
var t = w;
var r = 0;
if ((t & 0x1fff) === 0) {
r += 13;
t >>>= 13;
}
if ((t & 0x7f) === 0) {
r += 7;
t >>>= 7;
}
if ((t & 0xf) === 0) {
r += 4;
t >>>= 4;
}
if ((t & 0x3) === 0) {
r += 2;
t >>>= 2;
}
if ((t & 0x1) === 0) {
r++;
}
return r;
};
// Return number of used bits in a BN
BN.prototype.bitLength = function bitLength() {
var w = this.words[this.length - 1];
var hi = this._countBits(w);
return (this.length - 1) * 26 + hi;
};
function toBitArray(num) {
var w = new Array(num.bitLength());
for (var bit = 0; bit < w.length; bit++) {
var off = bit / 26 | 0;
var wbit = bit % 26;
w[bit] = (num.words[off] & 1 << wbit) >>> wbit;
}
return w;
}
// Number of trailing zero bits
BN.prototype.zeroBits = function zeroBits() {
if (this.isZero()) return 0;
var r = 0;
for (var i = 0; i < this.length; i++) {
var b = this._zeroBits(this.words[i]);
r += b;
if (b !== 26) break;
}
return r;
};
BN.prototype.byteLength = function byteLength() {
return Math.ceil(this.bitLength() / 8);
};
BN.prototype.toTwos = function toTwos(width) {
if (this.negative !== 0) {
return this.abs().inotn(width).iaddn(1);
}
return this.clone();
};
BN.prototype.fromTwos = function fromTwos(width) {
if (this.testn(width - 1)) {
return this.notn(width).iaddn(1).ineg();
}
return this.clone();
};
BN.prototype.isNeg = function isNeg() {
return this.negative !== 0;
};
// Return negative clone of `this`
BN.prototype.neg = function neg() {
return this.clone().ineg();
};
BN.prototype.ineg = function ineg() {
if (!this.isZero()) {
this.negative ^= 1;
}
return this;
};
// Or `num` with `this` in-place
BN.prototype.iuor = function iuor(num) {
while (this.length < num.length) {
this.words[this.length++] = 0;
}
for (var i = 0; i < num.length; i++) {
this.words[i] = this.words[i] | num.words[i];
}
return this.strip();
};
BN.prototype.ior = function ior(num) {
assert((this.negative | num.negative) === 0);
return this.iuor(num);
};
// Or `num` with `this`
BN.prototype.or = function or(num) {
if (this.length > num.length) return this.clone().ior(num);
return num.clone().ior(this);
};
BN.prototype.uor = function uor(num) {
if (this.length > num.length) return this.clone().iuor(num);
return num.clone().iuor(this);
};
// And `num` with `this` in-place
BN.prototype.iuand = function iuand(num) {
// b = min-length(num, this)
var b;
if (this.length > num.length) {
b = num;
} else {
b = this;
}
for (var i = 0; i < b.length; i++) {
this.words[i] = this.words[i] & num.words[i];
}
this.length = b.length;
return this.strip();
};
BN.prototype.iand = function iand(num) {
assert((this.negative | num.negative) === 0);
return this.iuand(num);
};
// And `num` with `this`
BN.prototype.and = function and(num) {
if (this.length > num.length) return this.clone().iand(num);
return num.clone().iand(this);
};
BN.prototype.uand = function uand(num) {
if (this.length > num.length) return this.clone().iuand(num);
return num.clone().iuand(this);
};
// Xor `num` with `this` in-place
BN.prototype.iuxor = function iuxor(num) {
// a.length > b.length
var a;
var b;
if (this.length > num.length) {
a = this;
b = num;
} else {
a = num;
b = this;
}
for (var i = 0; i < b.length; i++) {
this.words[i] = a.words[i] ^ b.words[i];
}
if (this !== a) {
for (; i < a.length; i++) {
this.words[i] = a.words[i];
}
}
this.length = a.length;
return this.strip();
};
BN.prototype.ixor = function ixor(num) {
assert((this.negative | num.negative) === 0);
return this.iuxor(num);
};
// Xor `num` with `this`
BN.prototype.xor = function xor(num) {
if (this.length > num.length) return this.clone().ixor(num);
return num.clone().ixor(this);
};
BN.prototype.uxor = function uxor(num) {
if (this.length > num.length) return this.clone().iuxor(num);
return num.clone().iuxor(this);
};
// Not ``this`` with ``width`` bitwidth
BN.prototype.inotn = function inotn(width) {
assert(typeof width === 'number' && width >= 0);
var bytesNeeded = Math.ceil(width / 26) | 0;
var bitsLeft = width % 26;
// Extend the buffer with leading zeroes
this._expand(bytesNeeded);
if (bitsLeft > 0) {
bytesNeeded--;
}
// Handle complete words
for (var i = 0; i < bytesNeeded; i++) {
this.words[i] = ~this.words[i] & 0x3ffffff;
}
// Handle the residue
if (bitsLeft > 0) {
this.words[i] = ~this.words[i] & 0x3ffffff >> 26 - bitsLeft;
}
// And remove leading zeroes
return this.strip();
};
BN.prototype.notn = function notn(width) {
return this.clone().inotn(width);
};
// Set `bit` of `this`
BN.prototype.setn = function setn(bit, val) {
assert(typeof bit === 'number' && bit >= 0);
var off = bit / 26 | 0;
var wbit = bit % 26;
this._expand(off + 1);
if (val) {
this.words[off] = this.words[off] | 1 << wbit;
} else {
this.words[off] = this.words[off] & ~(1 << wbit);
}
return this.strip();
};
// Add `num` to `this` in-place
BN.prototype.iadd = function iadd(num) {
var r;
// negative + positive
if (this.negative !== 0 && num.negative === 0) {
this.negative = 0;
r = this.isub(num);
this.negative ^= 1;
return this._normSign();
// positive + negative
} else if (this.negative === 0 && num.negative !== 0) {
num.negative = 0;
r = this.isub(num);
num.negative = 1;
return r._normSign();
}
// a.length > b.length
var a, b;
if (this.length > num.length) {
a = this;
b = num;
} else {
a = num;
b = this;
}
var carry = 0;
for (var i = 0; i < b.length; i++) {
r = (a.words[i] | 0) + (b.words[i] | 0) + carry;
this.words[i] = r & 0x3ffffff;
carry = r >>> 26;
}
for (; carry !== 0 && i < a.length; i++) {
r = (a.words[i] | 0) + carry;
this.words[i] = r & 0x3ffffff;
carry = r >>> 26;
}
this.length = a.length;
if (carry !== 0) {
this.words[this.length] = carry;
this.length++;
// Copy the rest of the words
} else if (a !== this) {
for (; i < a.length; i++) {
this.words[i] = a.words[i];
}
}
return this;
};
// Add `num` to `this`
BN.prototype.add = function add(num) {
var res;
if (num.negative !== 0 && this.negative === 0) {
num.negative = 0;
res = this.sub(num);
num.negative ^= 1;
return res;
} else if (num.negative === 0 && this.negative !== 0) {
this.negative = 0;
res = num.sub(this);
this.negative = 1;
return res;
}
if (this.length > num.length) return this.clone().iadd(num);
return num.clone().iadd(this);
};
// Subtract `num` from `this` in-place
BN.prototype.isub = function isub(num) {
// this - (-num) = this + num
if (num.negative !== 0) {
num.negative = 0;
var r = this.iadd(num);
num.negative = 1;
return r._normSign();
// -this - num = -(this + num)
} else if (this.negative !== 0) {
this.negative = 0;
this.iadd(num);
this.negative = 1;
return this._normSign();
}
// At this point both numbers are positive
var cmp = this.cmp(num);
// Optimization - zeroify
if (cmp === 0) {
this.negative = 0;
this.length = 1;
this.words[0] = 0;
return this;
}
// a > b
var a, b;
if (cmp > 0) {
a = this;
b = num;
} else {
a = num;
b = this;
}
var carry = 0;
for (var i = 0; i < b.length; i++) {
r = (a.words[i] | 0) - (b.words[i] | 0) + carry;
carry = r >> 26;
this.words[i] = r & 0x3ffffff;
}
for (; carry !== 0 && i < a.length; i++) {
r = (a.words[i] | 0) + carry;
carry = r >> 26;
this.words[i] = r & 0x3ffffff;
}
// Copy rest of the words
if (carry === 0 && i < a.length && a !== this) {
for (; i < a.length; i++) {
this.words[i] = a.words[i];
}
}
this.length = Math.max(this.length, i);
if (a !== this) {
this.negative = 1;
}
return this.strip();
};
// Subtract `num` from `this`
BN.prototype.sub = function sub(num) {
return this.clone().isub(num);
};
function smallMulTo(self, num, out) {
out.negative = num.negative ^ self.negative;
var len = self.length + num.length | 0;
out.length = len;
len = len - 1 | 0;
// Peel one iteration (compiler can't do it, because of code complexity)
var a = self.words[0] | 0;
var b = num.words[0] | 0;
var r = a * b;
var lo = r & 0x3ffffff;
var carry = r / 0x4000000 | 0;
out.words[0] = lo;
for (var k = 1; k < len; k++) {
// Sum all words with the same `i + j = k` and accumulate `ncarry`,
// note that ncarry could be >= 0x3ffffff
var ncarry = carry >>> 26;
var rword = carry & 0x3ffffff;
var maxJ = Math.min(k, num.length - 1);
for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
var i = k - j | 0;
a = self.words[i] | 0;
b = num.words[j] | 0;
r = a * b + rword;
ncarry += r / 0x4000000 | 0;
rword = r & 0x3ffffff;
}
out.words[k] = rword | 0;
carry = ncarry | 0;
}
if (carry !== 0) {
out.words[k] = carry | 0;
} else {
out.length--;
}
return out.strip();
}
// TODO(indutny): it may be reasonable to omit it for users who don't need
// to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit
// multiplication (like elliptic secp256k1).
var comb10MulTo = function comb10MulTo(self, num, out) {
var a = self.words;
var b = num.words;
var o = out.words;
var c = 0;
var lo;
var mid;
var hi;
var a0 = a[0] | 0;
var al0 = a0 & 0x1fff;
var ah0 = a0 >>> 13;
var a1 = a[1] | 0;
var al1 = a1 & 0x1fff;
var ah1 = a1 >>> 13;
var a2 = a[2] | 0;
var al2 = a2 & 0x1fff;
var ah2 = a2 >>> 13;
var a3 = a[3] | 0;
var al3 = a3 & 0x1fff;
var ah3 = a3 >>> 13;
var a4 = a[4] | 0;
var al4 = a4 & 0x1fff;
var ah4 = a4 >>> 13;
var a5 = a[5] | 0;
var al5 = a5 & 0x1fff;
var ah5 = a5 >>> 13;
var a6 = a[6] | 0;
var al6 = a6 & 0x1fff;
var ah6 = a6 >>> 13;
var a7 = a[7] | 0;
var al7 = a7 & 0x1fff;
var ah7 = a7 >>> 13;
var a8 = a[8] | 0;
var al8 = a8 & 0x1fff;
var ah8 = a8 >>> 13;
var a9 = a[9] | 0;
var al9 = a9 & 0x1fff;
var ah9 = a9 >>> 13;
var b0 = b[0] | 0;
var bl0 = b0 & 0x1fff;
var bh0 = b0 >>> 13;
var b1 = b[1] | 0;
var bl1 = b1 & 0x1fff;
var bh1 = b1 >>> 13;
var b2 = b[2] | 0;
var bl2 = b2 & 0x1fff;
var bh2 = b2 >>> 13;
var b3 = b[3] | 0;
var bl3 = b3 & 0x1fff;
var bh3 = b3 >>> 13;
var b4 = b[4] | 0;
var bl4 = b4 & 0x1fff;
var bh4 = b4 >>> 13;
var b5 = b[5] | 0;
var bl5 = b5 & 0x1fff;
var bh5 = b5 >>> 13;
var b6 = b[6] | 0;
var bl6 = b6 & 0x1fff;
var bh6 = b6 >>> 13;
var b7 = b[7] | 0;
var bl7 = b7 & 0x1fff;
var bh7 = b7 >>> 13;
var b8 = b[8] | 0;
var bl8 = b8 & 0x1fff;
var bh8 = b8 >>> 13;
var b9 = b[9] | 0;
var bl9 = b9 & 0x1fff;
var bh9 = b9 >>> 13;
out.negative = self.negative ^ num.negative;
out.length = 19;
/* k = 0 */
lo = Math.imul(al0, bl0);
mid = Math.imul(al0, bh0);
mid = mid + Math.imul(ah0, bl0) | 0;
hi = Math.imul(ah0, bh0);
var w0 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w0 >>> 26) | 0;
w0 &= 0x3ffffff;
/* k = 1 */
lo = Math.imul(al1, bl0);
mid = Math.imul(al1, bh0);
mid = mid + Math.imul(ah1, bl0) | 0;
hi = Math.imul(ah1, bh0);
lo = lo + Math.imul(al0, bl1) | 0;
mid = mid + Math.imul(al0, bh1) | 0;
mid = mid + Math.imul(ah0, bl1) | 0;
hi = hi + Math.imul(ah0, bh1) | 0;
var w1 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w1 >>> 26) | 0;
w1 &= 0x3ffffff;
/* k = 2 */
lo = Math.imul(al2, bl0);
mid = Math.imul(al2, bh0);
mid = mid + Math.imul(ah2, bl0) | 0;
hi = Math.imul(ah2, bh0);
lo = lo + Math.imul(al1, bl1) | 0;
mid = mid + Math.imul(al1, bh1) | 0;
mid = mid + Math.imul(ah1, bl1) | 0;
hi = hi + Math.imul(ah1, bh1) | 0;
lo = lo + Math.imul(al0, bl2) | 0;
mid = mid + Math.imul(al0, bh2) | 0;
mid = mid + Math.imul(ah0, bl2) | 0;
hi = hi + Math.imul(ah0, bh2) | 0;
var w2 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w2 >>> 26) | 0;
w2 &= 0x3ffffff;
/* k = 3 */
lo = Math.imul(al3, bl0);
mid = Math.imul(al3, bh0);
mid = mid + Math.imul(ah3, bl0) | 0;
hi = Math.imul(ah3, bh0);
lo = lo + Math.imul(al2, bl1) | 0;
mid = mid + Math.imul(al2, bh1) | 0;
mid = mid + Math.imul(ah2, bl1) | 0;
hi = hi + Math.imul(ah2, bh1) | 0;
lo = lo + Math.imul(al1, bl2) | 0;
mid = mid + Math.imul(al1, bh2) | 0;
mid = mid + Math.imul(ah1, bl2) | 0;
hi = hi + Math.imul(ah1, bh2) | 0;
lo = lo + Math.imul(al0, bl3) | 0;
mid = mid + Math.imul(al0, bh3) | 0;
mid = mid + Math.imul(ah0, bl3) | 0;
hi = hi + Math.imul(ah0, bh3) | 0;
var w3 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w3 >>> 26) | 0;
w3 &= 0x3ffffff;
/* k = 4 */
lo = Math.imul(al4, bl0);
mid = Math.imul(al4, bh0);
mid = mid + Math.imul(ah4, bl0) | 0;
hi = Math.imul(ah4, bh0);
lo = lo + Math.imul(al3, bl1) | 0;
mid = mid + Math.imul(al3, bh1) | 0;
mid = mid + Math.imul(ah3, bl1) | 0;
hi = hi + Math.imul(ah3, bh1) | 0;
lo = lo + Math.imul(al2, bl2) | 0;
mid = mid + Math.imul(al2, bh2) | 0;
mid = mid + Math.imul(ah2, bl2) | 0;
hi = hi + Math.imul(ah2, bh2) | 0;
lo = lo + Math.imul(al1, bl3) | 0;
mid = mid + Math.imul(al1, bh3) | 0;
mid = mid + Math.imul(ah1, bl3) | 0;
hi = hi + Math.imul(ah1, bh3) | 0;
lo = lo + Math.imul(al0, bl4) | 0;
mid = mid + Math.imul(al0, bh4) | 0;
mid = mid + Math.imul(ah0, bl4) | 0;
hi = hi + Math.imul(ah0, bh4) | 0;
var w4 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w4 >>> 26) | 0;
w4 &= 0x3ffffff;
/* k = 5 */
lo = Math.imul(al5, bl0);
mid = Math.imul(al5, bh0);
mid = mid + Math.imul(ah5, bl0) | 0;
hi = Math.imul(ah5, bh0);
lo = lo + Math.imul(al4, bl1) | 0;
mid = mid + Math.imul(al4, bh1) | 0;
mid = mid + Math.imul(ah4, bl1) | 0;
hi = hi + Math.imul(ah4, bh1) | 0;
lo = lo + Math.imul(al3, bl2) | 0;
mid = mid + Math.imul(al3, bh2) | 0;
mid = mid + Math.imul(ah3, bl2) | 0;
hi = hi + Math.imul(ah3, bh2) | 0;
lo = lo + Math.imul(al2, bl3) | 0;
mid = mid + Math.imul(al2, bh3) | 0;
mid = mid + Math.imul(ah2, bl3) | 0;
hi = hi + Math.imul(ah2, bh3) | 0;
lo = lo + Math.imul(al1, bl4) | 0;
mid = mid + Math.imul(al1, bh4) | 0;
mid = mid + Math.imul(ah1, bl4) | 0;
hi = hi + Math.imul(ah1, bh4) | 0;
lo = lo + Math.imul(al0, bl5) | 0;
mid = mid + Math.imul(al0, bh5) | 0;
mid = mid + Math.imul(ah0, bl5) | 0;
hi = hi + Math.imul(ah0, bh5) | 0;
var w5 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w5 >>> 26) | 0;
w5 &= 0x3ffffff;
/* k = 6 */
lo = Math.imul(al6, bl0);
mid = Math.imul(al6, bh0);
mid = mid + Math.imul(ah6, bl0) | 0;
hi = Math.imul(ah6, bh0);
lo = lo + Math.imul(al5, bl1) | 0;
mid = mid + Math.imul(al5, bh1) | 0;
mid = mid + Math.imul(ah5, bl1) | 0;
hi = hi + Math.imul(ah5, bh1) | 0;
lo = lo + Math.imul(al4, bl2) | 0;
mid = mid + Math.imul(al4, bh2) | 0;
mid = mid + Math.imul(ah4, bl2) | 0;
hi = hi + Math.imul(ah4, bh2) | 0;
lo = lo + Math.imul(al3, bl3) | 0;
mid = mid + Math.imul(al3, bh3) | 0;
mid = mid + Math.imul(ah3, bl3) | 0;
hi = hi + Math.imul(ah3, bh3) | 0;
lo = lo + Math.imul(al2, bl4) | 0;
mid = mid + Math.imul(al2, bh4) | 0;
mid = mid + Math.imul(ah2, bl4) | 0;
hi = hi + Math.imul(ah2, bh4) | 0;
lo = lo + Math.imul(al1, bl5) | 0;
mid = mid + Math.imul(al1, bh5) | 0;
mid = mid + Math.imul(ah1, bl5) | 0;
hi = hi + Math.imul(ah1, bh5) | 0;
lo = lo + Math.imul(al0, bl6) | 0;
mid = mid + Math.imul(al0, bh6) | 0;
mid = mid + Math.imul(ah0, bl6) | 0;
hi = hi + Math.imul(ah0, bh6) | 0;
var w6 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w6 >>> 26) | 0;
w6 &= 0x3ffffff;
/* k = 7 */
lo = Math.imul(al7, bl0);
mid = Math.imul(al7, bh0);
mid = mid + Math.imul(ah7, bl0) | 0;
hi = Math.imul(ah7, bh0);
lo = lo + Math.imul(al6, bl1) | 0;
mid = mid + Math.imul(al6, bh1) | 0;
mid = mid + Math.imul(ah6, bl1) | 0;
hi = hi + Math.imul(ah6, bh1) | 0;
lo = lo + Math.imul(al5, bl2) | 0;
mid = mid + Math.imul(al5, bh2) | 0;
mid = mid + Math.imul(ah5, bl2) | 0;
hi = hi + Math.imul(ah5, bh2) | 0;
lo = lo + Math.imul(al4, bl3) | 0;
mid = mid + Math.imul(al4, bh3) | 0;
mid = mid + Math.imul(ah4, bl3) | 0;
hi = hi + Math.imul(ah4, bh3) | 0;
lo = lo + Math.imul(al3, bl4) | 0;
mid = mid + Math.imul(al3, bh4) | 0;
mid = mid + Math.imul(ah3, bl4) | 0;
hi = hi + Math.imul(ah3, bh4) | 0;
lo = lo + Math.imul(al2, bl5) | 0;
mid = mid + Math.imul(al2, bh5) | 0;
mid = mid + Math.imul(ah2, bl5) | 0;
hi = hi + Math.imul(ah2, bh5) | 0;
lo = lo + Math.imul(al1, bl6) | 0;
mid = mid + Math.imul(al1, bh6) | 0;
mid = mid + Math.imul(ah1, bl6) | 0;
hi = hi + Math.imul(ah1, bh6) | 0;
lo = lo + Math.imul(al0, bl7) | 0;
mid = mid + Math.imul(al0, bh7) | 0;
mid = mid + Math.imul(ah0, bl7) | 0;
hi = hi + Math.imul(ah0, bh7) | 0;
var w7 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w7 >>> 26) | 0;
w7 &= 0x3ffffff;
/* k = 8 */
lo = Math.imul(al8, bl0);
mid = Math.imul(al8, bh0);
mid = mid + Math.imul(ah8, bl0) | 0;
hi = Math.imul(ah8, bh0);
lo = lo + Math.imul(al7, bl1) | 0;
mid = mid + Math.imul(al7, bh1) | 0;
mid = mid + Math.imul(ah7, bl1) | 0;
hi = hi + Math.imul(ah7, bh1) | 0;
lo = lo + Math.imul(al6, bl2) | 0;
mid = mid + Math.imul(al6, bh2) | 0;
mid = mid + Math.imul(ah6, bl2) | 0;
hi = hi + Math.imul(ah6, bh2) | 0;
lo = lo + Math.imul(al5, bl3) | 0;
mid = mid + Math.imul(al5, bh3) | 0;
mid = mid + Math.imul(ah5, bl3) | 0;
hi = hi + Math.imul(ah5, bh3) | 0;
lo = lo + Math.imul(al4, bl4) | 0;
mid = mid + Math.imul(al4, bh4) | 0;
mid = mid + Math.imul(ah4, bl4) | 0;
hi = hi + Math.imul(ah4, bh4) | 0;
lo = lo + Math.imul(al3, bl5) | 0;
mid = mid + Math.imul(al3, bh5) | 0;
mid = mid + Math.imul(ah3, bl5) | 0;
hi = hi + Math.imul(ah3, bh5) | 0;
lo = lo + Math.imul(al2, bl6) | 0;
mid = mid + Math.imul(al2, bh6) | 0;
mid = mid + Math.imul(ah2, bl6) | 0;
hi = hi + Math.imul(ah2, bh6) | 0;
lo = lo + Math.imul(al1, bl7) | 0;
mid = mid + Math.imul(al1, bh7) | 0;
mid = mid + Math.imul(ah1, bl7) | 0;
hi = hi + Math.imul(ah1, bh7) | 0;
lo = lo + Math.imul(al0, bl8) | 0;
mid = mid + Math.imul(al0, bh8) | 0;
mid = mid + Math.imul(ah0, bl8) | 0;
hi = hi + Math.imul(ah0, bh8) | 0;
var w8 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w8 >>> 26) | 0;
w8 &= 0x3ffffff;
/* k = 9 */
lo = Math.imul(al9, bl0);
mid = Math.imul(al9, bh0);
mid = mid + Math.imul(ah9, bl0) | 0;
hi = Math.imul(ah9, bh0);
lo = lo + Math.imul(al8, bl1) | 0;
mid = mid + Math.imul(al8, bh1) | 0;
mid = mid + Math.imul(ah8, bl1) | 0;
hi = hi + Math.imul(ah8, bh1) | 0;
lo = lo + Math.imul(al7, bl2) | 0;
mid = mid + Math.imul(al7, bh2) | 0;
mid = mid + Math.imul(ah7, bl2) | 0;
hi = hi + Math.imul(ah7, bh2) | 0;
lo = lo + Math.imul(al6, bl3) | 0;
mid = mid + Math.imul(al6, bh3) | 0;
mid = mid + Math.imul(ah6, bl3) | 0;
hi = hi + Math.imul(ah6, bh3) | 0;
lo = lo + Math.imul(al5, bl4) | 0;
mid = mid + Math.imul(al5, bh4) | 0;
mid = mid + Math.imul(ah5, bl4) | 0;
hi = hi + Math.imul(ah5, bh4) | 0;
lo = lo + Math.imul(al4, bl5) | 0;
mid = mid + Math.imul(al4, bh5) | 0;
mid = mid + Math.imul(ah4, bl5) | 0;
hi = hi + Math.imul(ah4, bh5) | 0;
lo = lo + Math.imul(al3, bl6) | 0;
mid = mid + Math.imul(al3, bh6) | 0;
mid = mid + Math.imul(ah3, bl6) | 0;
hi = hi + Math.imul(ah3, bh6) | 0;
lo = lo + Math.imul(al2, bl7) | 0;
mid = mid + Math.imul(al2, bh7) | 0;
mid = mid + Math.imul(ah2, bl7) | 0;
hi = hi + Math.imul(ah2, bh7) | 0;
lo = lo + Math.imul(al1, bl8) | 0;
mid = mid + Math.imul(al1, bh8) | 0;
mid = mid + Math.imul(ah1, bl8) | 0;
hi = hi + Math.imul(ah1, bh8) | 0;
lo = lo + Math.imul(al0, bl9) | 0;
mid = mid + Math.imul(al0, bh9) | 0;
mid = mid + Math.imul(ah0, bl9) | 0;
hi = hi + Math.imul(ah0, bh9) | 0;
var w9 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w9 >>> 26) | 0;
w9 &= 0x3ffffff;
/* k = 10 */
lo = Math.imul(al9, bl1);
mid = Math.imul(al9, bh1);
mid = mid + Math.imul(ah9, bl1) | 0;
hi = Math.imul(ah9, bh1);
lo = lo + Math.imul(al8, bl2) | 0;
mid = mid + Math.imul(al8, bh2) | 0;
mid = mid + Math.imul(ah8, bl2) | 0;
hi = hi + Math.imul(ah8, bh2) | 0;
lo = lo + Math.imul(al7, bl3) | 0;
mid = mid + Math.imul(al7, bh3) | 0;
mid = mid + Math.imul(ah7, bl3) | 0;
hi = hi + Math.imul(ah7, bh3) | 0;
lo = lo + Math.imul(al6, bl4) | 0;
mid = mid + Math.imul(al6, bh4) | 0;
mid = mid + Math.imul(ah6, bl4) | 0;
hi = hi + Math.imul(ah6, bh4) | 0;
lo = lo + Math.imul(al5, bl5) | 0;
mid = mid + Math.imul(al5, bh5) | 0;
mid = mid + Math.imul(ah5, bl5) | 0;
hi = hi + Math.imul(ah5, bh5) | 0;
lo = lo + Math.imul(al4, bl6) | 0;
mid = mid + Math.imul(al4, bh6) | 0;
mid = mid + Math.imul(ah4, bl6) | 0;
hi = hi + Math.imul(ah4, bh6) | 0;
lo = lo + Math.imul(al3, bl7) | 0;
mid = mid + Math.imul(al3, bh7) | 0;
mid = mid + Math.imul(ah3, bl7) | 0;
hi = hi + Math.imul(ah3, bh7) | 0;
lo = lo + Math.imul(al2, bl8) | 0;
mid = mid + Math.imul(al2, bh8) | 0;
mid = mid + Math.imul(ah2, bl8) | 0;
hi = hi + Math.imul(ah2, bh8) | 0;
lo = lo + Math.imul(al1, bl9) | 0;
mid = mid + Math.imul(al1, bh9) | 0;
mid = mid + Math.imul(ah1, bl9) | 0;
hi = hi + Math.imul(ah1, bh9) | 0;
var w10 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w10 >>> 26) | 0;
w10 &= 0x3ffffff;
/* k = 11 */
lo = Math.imul(al9, bl2);
mid = Math.imul(al9, bh2);
mid = mid + Math.imul(ah9, bl2) | 0;
hi = Math.imul(ah9, bh2);
lo = lo + Math.imul(al8, bl3) | 0;
mid = mid + Math.imul(al8, bh3) | 0;
mid = mid + Math.imul(ah8, bl3) | 0;
hi = hi + Math.imul(ah8, bh3) | 0;
lo = lo + Math.imul(al7, bl4) | 0;
mid = mid + Math.imul(al7, bh4) | 0;
mid = mid + Math.imul(ah7, bl4) | 0;
hi = hi + Math.imul(ah7, bh4) | 0;
lo = lo + Math.imul(al6, bl5) | 0;
mid = mid + Math.imul(al6, bh5) | 0;
mid = mid + Math.imul(ah6, bl5) | 0;
hi = hi + Math.imul(ah6, bh5) | 0;
lo = lo + Math.imul(al5, bl6) | 0;
mid = mid + Math.imul(al5, bh6) | 0;
mid = mid + Math.imul(ah5, bl6) | 0;
hi = hi + Math.imul(ah5, bh6) | 0;
lo = lo + Math.imul(al4, bl7) | 0;
mid = mid + Math.imul(al4, bh7) | 0;
mid = mid + Math.imul(ah4, bl7) | 0;
hi = hi + Math.imul(ah4, bh7) | 0;
lo = lo + Math.imul(al3, bl8) | 0;
mid = mid + Math.imul(al3, bh8) | 0;
mid = mid + Math.imul(ah3, bl8) | 0;
hi = hi + Math.imul(ah3, bh8) | 0;
lo = lo + Math.imul(al2, bl9) | 0;
mid = mid + Math.imul(al2, bh9) | 0;
mid = mid + Math.imul(ah2, bl9) | 0;
hi = hi + Math.imul(ah2, bh9) | 0;
var w11 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w11 >>> 26) | 0;
w11 &= 0x3ffffff;
/* k = 12 */
lo = Math.imul(al9, bl3);
mid = Math.imul(al9, bh3);
mid = mid + Math.imul(ah9, bl3) | 0;
hi = Math.imul(ah9, bh3);
lo = lo + Math.imul(al8, bl4) | 0;
mid = mid + Math.imul(al8, bh4) | 0;
mid = mid + Math.imul(ah8, bl4) | 0;
hi = hi + Math.imul(ah8, bh4) | 0;
lo = lo + Math.imul(al7, bl5) | 0;
mid = mid + Math.imul(al7, bh5) | 0;
mid = mid + Math.imul(ah7, bl5) | 0;
hi = hi + Math.imul(ah7, bh5) | 0;
lo = lo + Math.imul(al6, bl6) | 0;
mid = mid + Math.imul(al6, bh6) | 0;
mid = mid + Math.imul(ah6, bl6) | 0;
hi = hi + Math.imul(ah6, bh6) | 0;
lo = lo + Math.imul(al5, bl7) | 0;
mid = mid + Math.imul(al5, bh7) | 0;
mid = mid + Math.imul(ah5, bl7) | 0;
hi = hi + Math.imul(ah5, bh7) | 0;
lo = lo + Math.imul(al4, bl8) | 0;
mid = mid + Math.imul(al4, bh8) | 0;
mid = mid + Math.imul(ah4, bl8) | 0;
hi = hi + Math.imul(ah4, bh8) | 0;
lo = lo + Math.imul(al3, bl9) | 0;
mid = mid + Math.imul(al3, bh9) | 0;
mid = mid + Math.imul(ah3, bl9) | 0;
hi = hi + Math.imul(ah3, bh9) | 0;
var w12 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w12 >>> 26) | 0;
w12 &= 0x3ffffff;
/* k = 13 */
lo = Math.imul(al9, bl4);
mid = Math.imul(al9, bh4);
mid = mid + Math.imul(ah9, bl4) | 0;
hi = Math.imul(ah9, bh4);
lo = lo + Math.imul(al8, bl5) | 0;
mid = mid + Math.imul(al8, bh5) | 0;
mid = mid + Math.imul(ah8, bl5) | 0;
hi = hi + Math.imul(ah8, bh5) | 0;
lo = lo + Math.imul(al7, bl6) | 0;
mid = mid + Math.imul(al7, bh6) | 0;
mid = mid + Math.imul(ah7, bl6) | 0;
hi = hi + Math.imul(ah7, bh6) | 0;
lo = lo + Math.imul(al6, bl7) | 0;
mid = mid + Math.imul(al6, bh7) | 0;
mid = mid + Math.imul(ah6, bl7) | 0;
hi = hi + Math.imul(ah6, bh7) | 0;
lo = lo + Math.imul(al5, bl8) | 0;
mid = mid + Math.imul(al5, bh8) | 0;
mid = mid + Math.imul(ah5, bl8) | 0;
hi = hi + Math.imul(ah5, bh8) | 0;
lo = lo + Math.imul(al4, bl9) | 0;
mid = mid + Math.imul(al4, bh9) | 0;
mid = mid + Math.imul(ah4, bl9) | 0;
hi = hi + Math.imul(ah4, bh9) | 0;
var w13 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w13 >>> 26) | 0;
w13 &= 0x3ffffff;
/* k = 14 */
lo = Math.imul(al9, bl5);
mid = Math.imul(al9, bh5);
mid = mid + Math.imul(ah9, bl5) | 0;
hi = Math.imul(ah9, bh5);
lo = lo + Math.imul(al8, bl6) | 0;
mid = mid + Math.imul(al8, bh6) | 0;
mid = mid + Math.imul(ah8, bl6) | 0;
hi = hi + Math.imul(ah8, bh6) | 0;
lo = lo + Math.imul(al7, bl7) | 0;
mid = mid + Math.imul(al7, bh7) | 0;
mid = mid + Math.imul(ah7, bl7) | 0;
hi = hi + Math.imul(ah7, bh7) | 0;
lo = lo + Math.imul(al6, bl8) | 0;
mid = mid + Math.imul(al6, bh8) | 0;
mid = mid + Math.imul(ah6, bl8) | 0;
hi = hi + Math.imul(ah6, bh8) | 0;
lo = lo + Math.imul(al5, bl9) | 0;
mid = mid + Math.imul(al5, bh9) | 0;
mid = mid + Math.imul(ah5, bl9) | 0;
hi = hi + Math.imul(ah5, bh9) | 0;
var w14 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w14 >>> 26) | 0;
w14 &= 0x3ffffff;
/* k = 15 */
lo = Math.imul(al9, bl6);
mid = Math.imul(al9, bh6);
mid = mid + Math.imul(ah9, bl6) | 0;
hi = Math.imul(ah9, bh6);
lo = lo + Math.imul(al8, bl7) | 0;
mid = mid + Math.imul(al8, bh7) | 0;
mid = mid + Math.imul(ah8, bl7) | 0;
hi = hi + Math.imul(ah8, bh7) | 0;
lo = lo + Math.imul(al7, bl8) | 0;
mid = mid + Math.imul(al7, bh8) | 0;
mid = mid + Math.imul(ah7, bl8) | 0;
hi = hi + Math.imul(ah7, bh8) | 0;
lo = lo + Math.imul(al6, bl9) | 0;
mid = mid + Math.imul(al6, bh9) | 0;
mid = mid + Math.imul(ah6, bl9) | 0;
hi = hi + Math.imul(ah6, bh9) | 0;
var w15 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w15 >>> 26) | 0;
w15 &= 0x3ffffff;
/* k = 16 */
lo = Math.imul(al9, bl7);
mid = Math.imul(al9, bh7);
mid = mid + Math.imul(ah9, bl7) | 0;
hi = Math.imul(ah9, bh7);
lo = lo + Math.imul(al8, bl8) | 0;
mid = mid + Math.imul(al8, bh8) | 0;
mid = mid + Math.imul(ah8, bl8) | 0;
hi = hi + Math.imul(ah8, bh8) | 0;
lo = lo + Math.imul(al7, bl9) | 0;
mid = mid + Math.imul(al7, bh9) | 0;
mid = mid + Math.imul(ah7, bl9) | 0;
hi = hi + Math.imul(ah7, bh9) | 0;
var w16 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w16 >>> 26) | 0;
w16 &= 0x3ffffff;
/* k = 17 */
lo = Math.imul(al9, bl8);
mid = Math.imul(al9, bh8);
mid = mid + Math.imul(ah9, bl8) | 0;
hi = Math.imul(ah9, bh8);
lo = lo + Math.imul(al8, bl9) | 0;
mid = mid + Math.imul(al8, bh9) | 0;
mid = mid + Math.imul(ah8, bl9) | 0;
hi = hi + Math.imul(ah8, bh9) | 0;
var w17 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w17 >>> 26) | 0;
w17 &= 0x3ffffff;
/* k = 18 */
lo = Math.imul(al9, bl9);
mid = Math.imul(al9, bh9);
mid = mid + Math.imul(ah9, bl9) | 0;
hi = Math.imul(ah9, bh9);
var w18 = (c + lo | 0) + ((mid & 0x1fff) << 13) | 0;
c = (hi + (mid >>> 13) | 0) + (w18 >>> 26) | 0;
w18 &= 0x3ffffff;
o[0] = w0;
o[1] = w1;
o[2] = w2;
o[3] = w3;
o[4] = w4;
o[5] = w5;
o[6] = w6;
o[7] = w7;
o[8] = w8;
o[9] = w9;
o[10] = w10;
o[11] = w11;
o[12] = w12;
o[13] = w13;
o[14] = w14;
o[15] = w15;
o[16] = w16;
o[17] = w17;
o[18] = w18;
if (c !== 0) {
o[19] = c;
out.length++;
}
return out;
};
// Polyfill comb
if (!Math.imul) {
comb10MulTo = smallMulTo;
}
function bigMulTo(self, num, out) {
out.negative = num.negative ^ self.negative;
out.length = self.length + num.length;
var carry = 0;
var hncarry = 0;
for (var k = 0; k < out.length - 1; k++) {
// Sum all words with the same `i + j = k` and accumulate `ncarry`,
// note that ncarry could be >= 0x3ffffff
var ncarry = hncarry;
hncarry = 0;
var rword = carry & 0x3ffffff;
var maxJ = Math.min(k, num.length - 1);
for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
var i = k - j;
var a = self.words[i] | 0;
var b = num.words[j] | 0;
var r = a * b;
var lo = r & 0x3ffffff;
ncarry = ncarry + (r / 0x4000000 | 0) | 0;
lo = lo + rword | 0;
rword = lo & 0x3ffffff;
ncarry = ncarry + (lo >>> 26) | 0;
hncarry += ncarry >>> 26;
ncarry &= 0x3ffffff;
}
out.words[k] = rword;
carry = ncarry;
ncarry = hncarry;
}
if (carry !== 0) {
out.words[k] = carry;
} else {
out.length--;
}
return out.strip();
}
function jumboMulTo(self, num, out) {
var fftm = new FFTM();
return fftm.mulp(self, num, out);
}
BN.prototype.mulTo = function mulTo(num, out) {
var res;
var len = this.length + num.length;
if (this.length === 10 && num.length === 10) {
res = comb10MulTo(this, num, out);
} else if (len < 63) {
res = smallMulTo(this, num, out);
} else if (len < 1024) {
res = bigMulTo(this, num, out);
} else {
res = jumboMulTo(this, num, out);
}
return res;
};
// Cooley-Tukey algorithm for FFT
// slightly revisited to rely on looping instead of recursion
function FFTM(x, y) {
this.x = x;
this.y = y;
}
FFTM.prototype.makeRBT = function makeRBT(N) {
var t = new Array(N);
var l = BN.prototype._countBits(N) - 1;
for (var i = 0; i < N; i++) {
t[i] = this.revBin(i, l, N);
}
return t;
};
// Returns binary-reversed representation of `x`
FFTM.prototype.revBin = function revBin(x, l, N) {
if (x === 0 || x === N - 1) return x;
var rb = 0;
for (var i = 0; i < l; i++) {
rb |= (x & 1) << l - i - 1;
x >>= 1;
}
return rb;
};
// Performs "tweedling" phase, therefore 'emulating'
// behaviour of the recursive algorithm
FFTM.prototype.permute = function permute(rbt, rws, iws, rtws, itws, N) {
for (var i = 0; i < N; i++) {
rtws[i] = rws[rbt[i]];
itws[i] = iws[rbt[i]];
}
};
FFTM.prototype.transform = function transform(rws, iws, rtws, itws, N, rbt) {
this.permute(rbt, rws, iws, rtws, itws, N);
for (var s = 1; s < N; s <<= 1) {
var l = s << 1;
var rtwdf = Math.cos(2 * Math.PI / l);
var itwdf = Math.sin(2 * Math.PI / l);
for (var p = 0; p < N; p += l) {
var rtwdf_ = rtwdf;
var itwdf_ = itwdf;
for (var j = 0; j < s; j++) {
var re = rtws[p + j];
var ie = itws[p + j];
var ro = rtws[p + j + s];
var io = itws[p + j + s];
var rx = rtwdf_ * ro - itwdf_ * io;
io = rtwdf_ * io + itwdf_ * ro;
ro = rx;
rtws[p + j] = re + ro;
itws[p + j] = ie + io;
rtws[p + j + s] = re - ro;
itws[p + j + s] = ie - io;
/* jshint maxdepth : false */
if (j !== l) {
rx = rtwdf * rtwdf_ - itwdf * itwdf_;
itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;
rtwdf_ = rx;
}
}
}
}
};
FFTM.prototype.guessLen13b = function guessLen13b(n, m) {
var N = Math.max(m, n) | 1;
var odd = N & 1;
var i = 0;
for (N = N / 2 | 0; N; N = N >>> 1) {
i++;
}
return 1 << i + 1 + odd;
};
FFTM.prototype.conjugate = function conjugate(rws, iws, N) {
if (N <= 1) return;
for (var i = 0; i < N / 2; i++) {
var t = rws[i];
rws[i] = rws[N - i - 1];
rws[N - i - 1] = t;
t = iws[i];
iws[i] = -iws[N - i - 1];
iws[N - i - 1] = -t;
}
};
FFTM.prototype.normalize13b = function normalize13b(ws, N) {
var carry = 0;
for (var i = 0; i < N / 2; i++) {
var w = Math.round(ws[2 * i + 1] / N) * 0x2000 + Math.round(ws[2 * i] / N) + carry;
ws[i] = w & 0x3ffffff;
if (w < 0x4000000) {
carry = 0;
} else {
carry = w / 0x4000000 | 0;
}
}
return ws;
};
FFTM.prototype.convert13b = function convert13b(ws, len, rws, N) {
var carry = 0;
for (var i = 0; i < len; i++) {
carry = carry + (ws[i] | 0);
rws[2 * i] = carry & 0x1fff;carry = carry >>> 13;
rws[2 * i + 1] = carry & 0x1fff;carry = carry >>> 13;
}
// Pad with zeroes
for (i = 2 * len; i < N; ++i) {
rws[i] = 0;
}
assert(carry === 0);
assert((carry & ~0x1fff) === 0);
};
FFTM.prototype.stub = function stub(N) {
var ph = new Array(N);
for (var i = 0; i < N; i++) {
ph[i] = 0;
}
return ph;
};
FFTM.prototype.mulp = function mulp(x, y, out) {
var N = 2 * this.guessLen13b(x.length, y.length);
var rbt = this.makeRBT(N);
var _ = this.stub(N);
var rws = new Array(N);
var rwst = new Array(N);
var iwst = new Array(N);
var nrws = new Array(N);
var nrwst = new Array(N);
var niwst = new Array(N);
var rmws = out.words;
rmws.length = N;
this.convert13b(x.words, x.length, rws, N);
this.convert13b(y.words, y.length, nrws, N);
this.transform(rws, _, rwst, iwst, N, rbt);
this.transform(nrws, _, nrwst, niwst, N, rbt);
for (var i = 0; i < N; i++) {
var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];
iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];
rwst[i] = rx;
}
this.conjugate(rwst, iwst, N);
this.transform(rwst, iwst, rmws, _, N, rbt);
this.conjugate(rmws, _, N);
this.normalize13b(rmws, N);
out.negative = x.negative ^ y.negative;
out.length = x.length + y.length;
return out.strip();
};
// Multiply `this` by `num`
BN.prototype.mul = function mul(num) {
var out = new BN(null);
out.words = new Array(this.length + num.length);
return this.mulTo(num, out);
};
// Multiply employing FFT
BN.prototype.mulf = function mulf(num) {
var out = new BN(null);
out.words = new Array(this.length + num.length);
return jumboMulTo(this, num, out);
};
// In-place Multiplication
BN.prototype.imul = function imul(num) {
return this.clone().mulTo(num, this);
};
BN.prototype.imuln = function imuln(num) {
assert(typeof num === 'number');
assert(num < 0x4000000);
// Carry
var carry = 0;
for (var i = 0; i < this.length; i++) {
var w = (this.words[i] | 0) * num;
var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);
carry >>= 26;
carry += w / 0x4000000 | 0;
// NOTE: lo is 27bit maximum
carry += lo >>> 26;
this.words[i] = lo & 0x3ffffff;
}
if (carry !== 0) {
this.words[i] = carry;
this.length++;
}
return this;
};
BN.prototype.muln = function muln(num) {
return this.clone().imuln(num);
};
// `this` * `this`
BN.prototype.sqr = function sqr() {
return this.mul(this);
};
// `this` * `this` in-place
BN.prototype.isqr = function isqr() {
return this.imul(this.clone());
};
// Math.pow(`this`, `num`)
BN.prototype.pow = function pow(num) {
var w = toBitArray(num);
if (w.length === 0) return new BN(1);
// Skip leading zeroes
var res = this;
for (var i = 0; i < w.length; i++, res = res.sqr()) {
if (w[i] !== 0) break;
}
if (++i < w.length) {
for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {
if (w[i] === 0) continue;
res = res.mul(q);
}
}
return res;
};
// Shift-left in-place
BN.prototype.iushln = function iushln(bits) {
assert(typeof bits === 'number' && bits >= 0);
var r = bits % 26;
var s = (bits - r) / 26;
var carryMask = 0x3ffffff >>> 26 - r << 26 - r;
var i;
if (r !== 0) {
var carry = 0;
for (i = 0; i < this.length; i++) {
var newCarry = this.words[i] & carryMask;
var c = (this.words[i] | 0) - newCarry << r;
this.words[i] = c | carry;
carry = newCarry >>> 26 - r;
}
if (carry) {
this.words[i] = carry;
this.length++;
}
}
if (s !== 0) {
for (i = this.length - 1; i >= 0; i--) {
this.words[i + s] = this.words[i];
}
for (i = 0; i < s; i++) {
this.words[i] = 0;
}
this.length += s;
}
return this.strip();
};
BN.prototype.ishln = function ishln(bits) {
// TODO(indutny): implement me
assert(this.negative === 0);
return this.iushln(bits);
};
// Shift-right in-place
// NOTE: `hint` is a lowest bit before trailing zeroes
// NOTE: if `extended` is present - it will be filled with destroyed bits
BN.prototype.iushrn = function iushrn(bits, hint, extended) {
assert(typeof bits === 'number' && bits >= 0);
var h;
if (hint) {
h = (hint - hint % 26) / 26;
} else {
h = 0;
}
var r = bits % 26;
var s = Math.min((bits - r) / 26, this.length);
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
var maskedWords = extended;
h -= s;
h = Math.max(0, h);
// Extended mode, copy masked part
if (maskedWords) {
for (var i = 0; i < s; i++) {
maskedWords.words[i] = this.words[i];
}
maskedWords.length = s;
}
if (s === 0) {
// No-op, we should not move anything at all
} else if (this.length > s) {
this.length -= s;
for (i = 0; i < this.length; i++) {
this.words[i] = this.words[i + s];
}
} else {
this.words[0] = 0;
this.length = 1;
}
var carry = 0;
for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {
var word = this.words[i] | 0;
this.words[i] = carry << 26 - r | word >>> r;
carry = word & mask;
}
// Push carried bits as a mask
if (maskedWords && carry !== 0) {
maskedWords.words[maskedWords.length++] = carry;
}
if (this.length === 0) {
this.words[0] = 0;
this.length = 1;
}
return this.strip();
};
BN.prototype.ishrn = function ishrn(bits, hint, extended) {
// TODO(indutny): implement me
assert(this.negative === 0);
return this.iushrn(bits, hint, extended);
};
// Shift-left
BN.prototype.shln = function shln(bits) {
return this.clone().ishln(bits);
};
BN.prototype.ushln = function ushln(bits) {
return this.clone().iushln(bits);
};
// Shift-right
BN.prototype.shrn = function shrn(bits) {
return this.clone().ishrn(bits);
};
BN.prototype.ushrn = function ushrn(bits) {
return this.clone().iushrn(bits);
};
// Test if n bit is set
BN.prototype.testn = function testn(bit) {
assert(typeof bit === 'number' && bit >= 0);
var r = bit % 26;
var s = (bit - r) / 26;
var q = 1 << r;
// Fast case: bit is much higher than all existing words
if (this.length <= s) return false;
// Check bit and return
var w = this.words[s];
return !!(w & q);
};
// Return only lowers bits of number (in-place)
BN.prototype.imaskn = function imaskn(bits) {
assert(typeof bits === 'number' && bits >= 0);
var r = bits % 26;
var s = (bits - r) / 26;
assert(this.negative === 0, 'imaskn works only with positive numbers');
if (this.length <= s) {
return this;
}
if (r !== 0) {
s++;
}
this.length = Math.min(s, this.length);
if (r !== 0) {
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
this.words[this.length - 1] &= mask;
}
return this.strip();
};
// Return only lowers bits of number
BN.prototype.maskn = function maskn(bits) {
return this.clone().imaskn(bits);
};
// Add plain number `num` to `this`
BN.prototype.iaddn = function iaddn(num) {
assert(typeof num === 'number');
assert(num < 0x4000000);
if (num < 0) return this.isubn(-num);
// Possible sign change
if (this.negative !== 0) {
if (this.length === 1 && (this.words[0] | 0) < num) {
this.words[0] = num - (this.words[0] | 0);
this.negative = 0;
return this;
}
this.negative = 0;
this.isubn(num);
this.negative = 1;
return this;
}
// Add without checks
return this._iaddn(num);
};
BN.prototype._iaddn = function _iaddn(num) {
this.words[0] += num;
// Carry
for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {
this.words[i] -= 0x4000000;
if (i === this.length - 1) {
this.words[i + 1] = 1;
} else {
this.words[i + 1]++;
}
}
this.length = Math.max(this.length, i + 1);
return this;
};
// Subtract plain number `num` from `this`
BN.prototype.isubn = function isubn(num) {
assert(typeof num === 'number');
assert(num < 0x4000000);
if (num < 0) return this.iaddn(-num);
if (this.negative !== 0) {
this.negative = 0;
this.iaddn(num);
this.negative = 1;
return this;
}
this.words[0] -= num;
if (this.length === 1 && this.words[0] < 0) {
this.words[0] = -this.words[0];
this.negative = 1;
} else {
// Carry
for (var i = 0; i < this.length && this.words[i] < 0; i++) {
this.words[i] += 0x4000000;
this.words[i + 1] -= 1;
}
}
return this.strip();
};
BN.prototype.addn = function addn(num) {
return this.clone().iaddn(num);
};
BN.prototype.subn = function subn(num) {
return this.clone().isubn(num);
};
BN.prototype.iabs = function iabs() {
this.negative = 0;
return this;
};
BN.prototype.abs = function abs() {
return this.clone().iabs();
};
BN.prototype._ishlnsubmul = function _ishlnsubmul(num, mul, shift) {
var len = num.length + shift;
var i;
this._expand(len);
var w;
var carry = 0;
for (i = 0; i < num.length; i++) {
w = (this.words[i + shift] | 0) + carry;
var right = (num.words[i] | 0) * mul;
w -= right & 0x3ffffff;
carry = (w >> 26) - (right / 0x4000000 | 0);
this.words[i + shift] = w & 0x3ffffff;
}
for (; i < this.length - shift; i++) {
w = (this.words[i + shift] | 0) + carry;
carry = w >> 26;
this.words[i + shift] = w & 0x3ffffff;
}
if (carry === 0) return this.strip();
// Subtraction overflow
assert(carry === -1);
carry = 0;
for (i = 0; i < this.length; i++) {
w = -(this.words[i] | 0) + carry;
carry = w >> 26;
this.words[i] = w & 0x3ffffff;
}
this.negative = 1;
return this.strip();
};
BN.prototype._wordDiv = function _wordDiv(num, mode) {
var shift = this.length - num.length;
var a = this.clone();
var b = num;
// Normalize
var bhi = b.words[b.length - 1] | 0;
var bhiBits = this._countBits(bhi);
shift = 26 - bhiBits;
if (shift !== 0) {
b = b.ushln(shift);
a.iushln(shift);
bhi = b.words[b.length - 1] | 0;
}
// Initialize quotient
var m = a.length - b.length;
var q;
if (mode !== 'mod') {
q = new BN(null);
q.length = m + 1;
q.words = new Array(q.length);
for (var i = 0; i < q.length; i++) {
q.words[i] = 0;
}
}
var diff = a.clone()._ishlnsubmul(b, 1, m);
if (diff.negative === 0) {
a = diff;
if (q) {
q.words[m] = 1;
}
}
for (var j = m - 1; j >= 0; j--) {
var qj = (a.words[b.length + j] | 0) * 0x4000000 + (a.words[b.length + j - 1] | 0);
// NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max
// (0x7ffffff)
qj = Math.min(qj / bhi | 0, 0x3ffffff);
a._ishlnsubmul(b, qj, j);
while (a.negative !== 0) {
qj--;
a.negative = 0;
a._ishlnsubmul(b, 1, j);
if (!a.isZero()) {
a.negative ^= 1;
}
}
if (q) {
q.words[j] = qj;
}
}
if (q) {
q.strip();
}
a.strip();
// Denormalize
if (mode !== 'div' && shift !== 0) {
a.iushrn(shift);
}
return {
div: q || null,
mod: a
};
};
// NOTE: 1) `mode` can be set to `mod` to request mod only,
// to `div` to request div only, or be absent to
// request both div & mod
// 2) `positive` is true if unsigned mod is requested
BN.prototype.divmod = function divmod(num, mode, positive) {
assert(!num.isZero());
if (this.isZero()) {
return {
div: new BN(0),
mod: new BN(0)
};
}
var div, mod, res;
if (this.negative !== 0 && num.negative === 0) {
res = this.neg().divmod(num, mode);
if (mode !== 'mod') {
div = res.div.neg();
}
if (mode !== 'div') {
mod = res.mod.neg();
if (positive && mod.negative !== 0) {
mod.iadd(num);
}
}
return {
div: div,
mod: mod
};
}
if (this.negative === 0 && num.negative !== 0) {
res = this.divmod(num.neg(), mode);
if (mode !== 'mod') {
div = res.div.neg();
}
return {
div: div,
mod: res.mod
};
}
if ((this.negative & num.negative) !== 0) {
res = this.neg().divmod(num.neg(), mode);
if (mode !== 'div') {
mod = res.mod.neg();
if (positive && mod.negative !== 0) {
mod.isub(num);
}
}
return {
div: res.div,
mod: mod
};
}
// Both numbers are positive at this point
// Strip both numbers to approximate shift value
if (num.length > this.length || this.cmp(num) < 0) {
return {
div: new BN(0),
mod: this
};
}
// Very short reduction
if (num.length === 1) {
if (mode === 'div') {
return {
div: this.divn(num.words[0]),
mod: null
};
}
if (mode === 'mod') {
return {
div: null,
mod: new BN(this.modn(num.words[0]))
};
}
return {
div: this.divn(num.words[0]),
mod: new BN(this.modn(num.words[0]))
};
}
return this._wordDiv(num, mode);
};
// Find `this` / `num`
BN.prototype.div = function div(num) {
return this.divmod(num, 'div', false).div;
};
// Find `this` % `num`
BN.prototype.mod = function mod(num) {
return this.divmod(num, 'mod', false).mod;
};
BN.prototype.umod = function umod(num) {
return this.divmod(num, 'mod', true).mod;
};
// Find Round(`this` / `num`)
BN.prototype.divRound = function divRound(num) {
var dm = this.divmod(num);
// Fast case - exact division
if (dm.mod.isZero()) return dm.div;
var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;
var half = num.ushrn(1);
var r2 = num.andln(1);
var cmp = mod.cmp(half);
// Round down
if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;
// Round up
return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);
};
BN.prototype.modn = function modn(num) {
assert(num <= 0x3ffffff);
var p = (1 << 26) % num;
var acc = 0;
for (var i = this.length - 1; i >= 0; i--) {
acc = (p * acc + (this.words[i] | 0)) % num;
}
return acc;
};
// In-place division by number
BN.prototype.idivn = function idivn(num) {
assert(num <= 0x3ffffff);
var carry = 0;
for (var i = this.length - 1; i >= 0; i--) {
var w = (this.words[i] | 0) + carry * 0x4000000;
this.words[i] = w / num | 0;
carry = w % num;
}
return this.strip();
};
BN.prototype.divn = function divn(num) {
return this.clone().idivn(num);
};
BN.prototype.egcd = function egcd(p) {
assert(p.negative === 0);
assert(!p.isZero());
var x = this;
var y = p.clone();
if (x.negative !== 0) {
x = x.umod(p);
} else {
x = x.clone();
}
// A * x + B * y = x
var A = new BN(1);
var B = new BN(0);
// C * x + D * y = y
var C = new BN(0);
var D = new BN(1);
var g = 0;
while (x.isEven() && y.isEven()) {
x.iushrn(1);
y.iushrn(1);
++g;
}
var yp = y.clone();
var xp = x.clone();
while (!x.isZero()) {
for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {}
if (i > 0) {
x.iushrn(i);
while (i-- > 0) {
if (A.isOdd() || B.isOdd()) {
A.iadd(yp);
B.isub(xp);
}
A.iushrn(1);
B.iushrn(1);
}
}
for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1) {}
if (j > 0) {
y.iushrn(j);
while (j-- > 0) {
if (C.isOdd() || D.isOdd()) {
C.iadd(yp);
D.isub(xp);
}
C.iushrn(1);
D.iushrn(1);
}
}
if (x.cmp(y) >= 0) {
x.isub(y);
A.isub(C);
B.isub(D);
} else {
y.isub(x);
C.isub(A);
D.isub(B);
}
}
return {
a: C,
b: D,
gcd: y.iushln(g)
};
};
// This is reduced incarnation of the binary EEA
// above, designated to invert members of the
// _prime_ fields F(p) at a maximal speed
BN.prototype._invmp = function _invmp(p) {
assert(p.negative === 0);
assert(!p.isZero());
var a = this;
var b = p.clone();
if (a.negative !== 0) {
a = a.umod(p);
} else {
a = a.clone();
}
var x1 = new BN(1);
var x2 = new BN(0);
var delta = b.clone();
while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {
for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1) {}
if (i > 0) {
a.iushrn(i);
while (i-- > 0) {
if (x1.isOdd()) {
x1.iadd(delta);
}
x1.iushrn(1);
}
}
for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1) {}
if (j > 0) {
b.iushrn(j);
while (j-- > 0) {
if (x2.isOdd()) {
x2.iadd(delta);
}
x2.iushrn(1);
}
}
if (a.cmp(b) >= 0) {
a.isub(b);
x1.isub(x2);
} else {
b.isub(a);
x2.isub(x1);
}
}
var res;
if (a.cmpn(1) === 0) {
res = x1;
} else {
res = x2;
}
if (res.cmpn(0) < 0) {
res.iadd(p);
}
return res;
};
BN.prototype.gcd = function gcd(num) {
if (this.isZero()) return num.abs();
if (num.isZero()) return this.abs();
var a = this.clone();
var b = num.clone();
a.negative = 0;
b.negative = 0;
// Remove common factor of two
for (var shift = 0; a.isEven() && b.isEven(); shift++) {
a.iushrn(1);
b.iushrn(1);
}
do {
while (a.isEven()) {
a.iushrn(1);
}
while (b.isEven()) {
b.iushrn(1);
}
var r = a.cmp(b);
if (r < 0) {
// Swap `a` and `b` to make `a` always bigger than `b`
var t = a;
a = b;
b = t;
} else if (r === 0 || b.cmpn(1) === 0) {
break;
}
a.isub(b);
} while (true);
return b.iushln(shift);
};
// Invert number in the field F(num)
BN.prototype.invm = function invm(num) {
return this.egcd(num).a.umod(num);
};
BN.prototype.isEven = function isEven() {
return (this.words[0] & 1) === 0;
};
BN.prototype.isOdd = function isOdd() {
return (this.words[0] & 1) === 1;
};
// And first word and num
BN.prototype.andln = function andln(num) {
return this.words[0] & num;
};
// Increment at the bit position in-line
BN.prototype.bincn = function bincn(bit) {
assert(typeof bit === 'number');
var r = bit % 26;
var s = (bit - r) / 26;
var q = 1 << r;
// Fast case: bit is much higher than all existing words
if (this.length <= s) {
this._expand(s + 1);
this.words[s] |= q;
return this;
}
// Add bit and propagate, if needed
var carry = q;
for (var i = s; carry !== 0 && i < this.length; i++) {
var w = this.words[i] | 0;
w += carry;
carry = w >>> 26;
w &= 0x3ffffff;
this.words[i] = w;
}
if (carry !== 0) {
this.words[i] = carry;
this.length++;
}
return this;
};
BN.prototype.isZero = function isZero() {
return this.length === 1 && this.words[0] === 0;
};
BN.prototype.cmpn = function cmpn(num) {
var negative = num < 0;
if (this.negative !== 0 && !negative) return -1;
if (this.negative === 0 && negative) return 1;
this.strip();
var res;
if (this.length > 1) {
res = 1;
} else {
if (negative) {
num = -num;
}
assert(num <= 0x3ffffff, 'Number is too big');
var w = this.words[0] | 0;
res = w === num ? 0 : w < num ? -1 : 1;
}
if (this.negative !== 0) return -res | 0;
return res;
};
// Compare two numbers and return:
// 1 - if `this` > `num`
// 0 - if `this` == `num`
// -1 - if `this` < `num`
BN.prototype.cmp = function cmp(num) {
if (this.negative !== 0 && num.negative === 0) return -1;
if (this.negative === 0 && num.negative !== 0) return 1;
var res = this.ucmp(num);
if (this.negative !== 0) return -res | 0;
return res;
};
// Unsigned comparison
BN.prototype.ucmp = function ucmp(num) {
// At this point both numbers have the same sign
if (this.length > num.length) return 1;
if (this.length < num.length) return -1;
var res = 0;
for (var i = this.length - 1; i >= 0; i--) {
var a = this.words[i] | 0;
var b = num.words[i] | 0;
if (a === b) continue;
if (a < b) {
res = -1;
} else if (a > b) {
res = 1;
}
break;
}
return res;
};
BN.prototype.gtn = function gtn(num) {
return this.cmpn(num) === 1;
};
BN.prototype.gt = function gt(num) {
return this.cmp(num) === 1;
};
BN.prototype.gten = function gten(num) {
return this.cmpn(num) >= 0;
};
BN.prototype.gte = function gte(num) {
return this.cmp(num) >= 0;
};
BN.prototype.ltn = function ltn(num) {
return this.cmpn(num) === -1;
};
BN.prototype.lt = function lt(num) {
return this.cmp(num) === -1;
};
BN.prototype.lten = function lten(num) {
return this.cmpn(num) <= 0;
};
BN.prototype.lte = function lte(num) {
return this.cmp(num) <= 0;
};
BN.prototype.eqn = function eqn(num) {
return this.cmpn(num) === 0;
};
BN.prototype.eq = function eq(num) {
return this.cmp(num) === 0;
};
//
// A reduce context, could be using montgomery or something better, depending
// on the `m` itself.
//
BN.red = function red(num) {
return new Red(num);
};
BN.prototype.toRed = function toRed(ctx) {
assert(!this.red, 'Already a number in reduction context');
assert(this.negative === 0, 'red works only with positives');
return ctx.convertTo(this)._forceRed(ctx);
};
BN.prototype.fromRed = function fromRed() {
assert(this.red, 'fromRed works only with numbers in reduction context');
return this.red.convertFrom(this);
};
BN.prototype._forceRed = function _forceRed(ctx) {
this.red = ctx;
return this;
};
BN.prototype.forceRed = function forceRed(ctx) {
assert(!this.red, 'Already a number in reduction context');
return this._forceRed(ctx);
};
BN.prototype.redAdd = function redAdd(num) {
assert(this.red, 'redAdd works only with red numbers');
return this.red.add(this, num);
};
BN.prototype.redIAdd = function redIAdd(num) {
assert(this.red, 'redIAdd works only with red numbers');
return this.red.iadd(this, num);
};
BN.prototype.redSub = function redSub(num) {
assert(this.red, 'redSub works only with red numbers');
return this.red.sub(this, num);
};
BN.prototype.redISub = function redISub(num) {
assert(this.red, 'redISub works only with red numbers');
return this.red.isub(this, num);
};
BN.prototype.redShl = function redShl(num) {
assert(this.red, 'redShl works only with red numbers');
return this.red.shl(this, num);
};
BN.prototype.redMul = function redMul(num) {
assert(this.red, 'redMul works only with red numbers');
this.red._verify2(this, num);
return this.red.mul(this, num);
};
BN.prototype.redIMul = function redIMul(num) {
assert(this.red, 'redMul works only with red numbers');
this.red._verify2(this, num);
return this.red.imul(this, num);
};
BN.prototype.redSqr = function redSqr() {
assert(this.red, 'redSqr works only with red numbers');
this.red._verify1(this);
return this.red.sqr(this);
};
BN.prototype.redISqr = function redISqr() {
assert(this.red, 'redISqr works only with red numbers');
this.red._verify1(this);
return this.red.isqr(this);
};
// Square root over p
BN.prototype.redSqrt = function redSqrt() {
assert(this.red, 'redSqrt works only with red numbers');
this.red._verify1(this);
return this.red.sqrt(this);
};
BN.prototype.redInvm = function redInvm() {
assert(this.red, 'redInvm works only with red numbers');
this.red._verify1(this);
return this.red.invm(this);
};
// Return negative clone of `this` % `red modulo`
BN.prototype.redNeg = function redNeg() {
assert(this.red, 'redNeg works only with red numbers');
this.red._verify1(this);
return this.red.neg(this);
};
BN.prototype.redPow = function redPow(num) {
assert(this.red && !num.red, 'redPow(normalNum)');
this.red._verify1(this);
return this.red.pow(this, num);
};
// Prime numbers with efficient reduction
var primes = {
k256: null,
p224: null,
p192: null,
p25519: null
};
// Pseudo-Mersenne prime
function MPrime(name, p) {
// P = 2 ^ N - K
this.name = name;
this.p = new BN(p, 16);
this.n = this.p.bitLength();
this.k = new BN(1).iushln(this.n).isub(this.p);
this.tmp = this._tmp();
}
MPrime.prototype._tmp = function _tmp() {
var tmp = new BN(null);
tmp.words = new Array(Math.ceil(this.n / 13));
return tmp;
};
MPrime.prototype.ireduce = function ireduce(num) {
// Assumes that `num` is less than `P^2`
// num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)
var r = num;
var rlen;
do {
this.split(r, this.tmp);
r = this.imulK(r);
r = r.iadd(this.tmp);
rlen = r.bitLength();
} while (rlen > this.n);
var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
if (cmp === 0) {
r.words[0] = 0;
r.length = 1;
} else if (cmp > 0) {
r.isub(this.p);
} else {
r.strip();
}
return r;
};
MPrime.prototype.split = function split(input, out) {
input.iushrn(this.n, 0, out);
};
MPrime.prototype.imulK = function imulK(num) {
return num.imul(this.k);
};
function K256() {
MPrime.call(this, 'k256', 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');
}
inherits(K256, MPrime);
K256.prototype.split = function split(input, output) {
// 256 = 9 * 26 + 22
var mask = 0x3fffff;
var outLen = Math.min(input.length, 9);
for (var i = 0; i < outLen; i++) {
output.words[i] = input.words[i];
}
output.length = outLen;
if (input.length <= 9) {
input.words[0] = 0;
input.length = 1;
return;
}
// Shift by 9 limbs
var prev = input.words[9];
output.words[output.length++] = prev & mask;
for (i = 10; i < input.length; i++) {
var next = input.words[i] | 0;
input.words[i - 10] = (next & mask) << 4 | prev >>> 22;
prev = next;
}
prev >>>= 22;
input.words[i - 10] = prev;
if (prev === 0 && input.length > 10) {
input.length -= 10;
} else {
input.length -= 9;
}
};
K256.prototype.imulK = function imulK(num) {
// K = 0x1000003d1 = [ 0x40, 0x3d1 ]
num.words[num.length] = 0;
num.words[num.length + 1] = 0;
num.length += 2;
// bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390
var lo = 0;
for (var i = 0; i < num.length; i++) {
var w = num.words[i] | 0;
lo += w * 0x3d1;
num.words[i] = lo & 0x3ffffff;
lo = w * 0x40 + (lo / 0x4000000 | 0);
}
// Fast length reduction
if (num.words[num.length - 1] === 0) {
num.length--;
if (num.words[num.length - 1] === 0) {
num.length--;
}
}
return num;
};
function P224() {
MPrime.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');
}
inherits(P224, MPrime);
function P192() {
MPrime.call(this, 'p192', 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');
}
inherits(P192, MPrime);
function P25519() {
// 2 ^ 255 - 19
MPrime.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');
}
inherits(P25519, MPrime);
P25519.prototype.imulK = function imulK(num) {
// K = 0x13
var carry = 0;
for (var i = 0; i < num.length; i++) {
var hi = (num.words[i] | 0) * 0x13 + carry;
var lo = hi & 0x3ffffff;
hi >>>= 26;
num.words[i] = lo;
carry = hi;
}
if (carry !== 0) {
num.words[num.length++] = carry;
}
return num;
};
// Exported mostly for testing purposes, use plain name instead
BN._prime = function prime(name) {
// Cached version of prime
if (primes[name]) return primes[name];
var prime;
if (name === 'k256') {
prime = new K256();
} else if (name === 'p224') {
prime = new P224();
} else if (name === 'p192') {
prime = new P192();
} else if (name === 'p25519') {
prime = new P25519();
} else {
throw new Error('Unknown prime ' + name);
}
primes[name] = prime;
return prime;
};
//
// Base reduction engine
//
function Red(m) {
if (typeof m === 'string') {
var prime = BN._prime(m);
this.m = prime.p;
this.prime = prime;
} else {
assert(m.gtn(1), 'modulus must be greater than 1');
this.m = m;
this.prime = null;
}
}
Red.prototype._verify1 = function _verify1(a) {
assert(a.negative === 0, 'red works only with positives');
assert(a.red, 'red works only with red numbers');
};
Red.prototype._verify2 = function _verify2(a, b) {
assert((a.negative | b.negative) === 0, 'red works only with positives');
assert(a.red && a.red === b.red, 'red works only with red numbers');
};
Red.prototype.imod = function imod(a) {
if (this.prime) return this.prime.ireduce(a)._forceRed(this);
return a.umod(this.m)._forceRed(this);
};
Red.prototype.neg = function neg(a) {
if (a.isZero()) {
return a.clone();
}
return this.m.sub(a)._forceRed(this);
};
Red.prototype.add = function add(a, b) {
this._verify2(a, b);
var res = a.add(b);
if (res.cmp(this.m) >= 0) {
res.isub(this.m);
}
return res._forceRed(this);
};
Red.prototype.iadd = function iadd(a, b) {
this._verify2(a, b);
var res = a.iadd(b);
if (res.cmp(this.m) >= 0) {
res.isub(this.m);
}
return res;
};
Red.prototype.sub = function sub(a, b) {
this._verify2(a, b);
var res = a.sub(b);
if (res.cmpn(0) < 0) {
res.iadd(this.m);
}
return res._forceRed(this);
};
Red.prototype.isub = function isub(a, b) {
this._verify2(a, b);
var res = a.isub(b);
if (res.cmpn(0) < 0) {
res.iadd(this.m);
}
return res;
};
Red.prototype.shl = function shl(a, num) {
this._verify1(a);
return this.imod(a.ushln(num));
};
Red.prototype.imul = function imul(a, b) {
this._verify2(a, b);
return this.imod(a.imul(b));
};
Red.prototype.mul = function mul(a, b) {
this._verify2(a, b);
return this.imod(a.mul(b));
};
Red.prototype.isqr = function isqr(a) {
return this.imul(a, a.clone());
};
Red.prototype.sqr = function sqr(a) {
return this.mul(a, a);
};
Red.prototype.sqrt = function sqrt(a) {
if (a.isZero()) return a.clone();
var mod3 = this.m.andln(3);
assert(mod3 % 2 === 1);
// Fast case
if (mod3 === 3) {
var pow = this.m.add(new BN(1)).iushrn(2);
return this.pow(a, pow);
}
// Tonelli-Shanks algorithm (Totally unoptimized and slow)
//
// Find Q and S, that Q * 2 ^ S = (P - 1)
var q = this.m.subn(1);
var s = 0;
while (!q.isZero() && q.andln(1) === 0) {
s++;
q.iushrn(1);
}
assert(!q.isZero());
var one = new BN(1).toRed(this);
var nOne = one.redNeg();
// Find quadratic non-residue
// NOTE: Max is such because of generalized Riemann hypothesis.
var lpow = this.m.subn(1).iushrn(1);
var z = this.m.bitLength();
z = new BN(2 * z * z).toRed(this);
while (this.pow(z, lpow).cmp(nOne) !== 0) {
z.redIAdd(nOne);
}
var c = this.pow(z, q);
var r = this.pow(a, q.addn(1).iushrn(1));
var t = this.pow(a, q);
var m = s;
while (t.cmp(one) !== 0) {
var tmp = t;
for (var i = 0; tmp.cmp(one) !== 0; i++) {
tmp = tmp.redSqr();
}
assert(i < m);
var b = this.pow(c, new BN(1).iushln(m - i - 1));
r = r.redMul(b);
c = b.redSqr();
t = t.redMul(c);
m = i;
}
return r;
};
Red.prototype.invm = function invm(a) {
var inv = a._invmp(this.m);
if (inv.negative !== 0) {
inv.negative = 0;
return this.imod(inv).redNeg();
} else {
return this.imod(inv);
}
};
Red.prototype.pow = function pow(a, num) {
if (num.isZero()) return new BN(1).toRed(this);
if (num.cmpn(1) === 0) return a.clone();
var windowSize = 4;
var wnd = new Array(1 << windowSize);
wnd[0] = new BN(1).toRed(this);
wnd[1] = a;
for (var i = 2; i < wnd.length; i++) {
wnd[i] = this.mul(wnd[i - 1], a);
}
var res = wnd[0];
var current = 0;
var currentLen = 0;
var start = num.bitLength() % 26;
if (start === 0) {
start = 26;
}
for (i = num.length - 1; i >= 0; i--) {
var word = num.words[i];
for (var j = start - 1; j >= 0; j--) {
var bit = word >> j & 1;
if (res !== wnd[0]) {
res = this.sqr(res);
}
if (bit === 0 && current === 0) {
currentLen = 0;
continue;
}
current <<= 1;
current |= bit;
currentLen++;
if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;
res = this.mul(res, wnd[current]);
currentLen = 0;
current = 0;
}
start = 26;
}
return res;
};
Red.prototype.convertTo = function convertTo(num) {
var r = num.umod(this.m);
return r === num ? r.clone() : r;
};
Red.prototype.convertFrom = function convertFrom(num) {
var res = num.clone();
res.red = null;
return res;
};
//
// Montgomery method engine
//
BN.mont = function mont(num) {
return new Mont(num);
};
function Mont(m) {
Red.call(this, m);
this.shift = this.m.bitLength();
if (this.shift % 26 !== 0) {
this.shift += 26 - this.shift % 26;
}
this.r = new BN(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);
}
inherits(Mont, Red);
Mont.prototype.convertTo = function convertTo(num) {
return this.imod(num.ushln(this.shift));
};
Mont.prototype.convertFrom = function convertFrom(num) {
var r = this.imod(num.mul(this.rinv));
r.red = null;
return r;
};
Mont.prototype.imul = function imul(a, b) {
if (a.isZero() || b.isZero()) {
a.words[0] = 0;
a.length = 1;
return a;
}
var t = a.imul(b);
var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
var u = t.isub(c).iushrn(this.shift);
var res = u;
if (u.cmp(this.m) >= 0) {
res = u.isub(this.m);
} else if (u.cmpn(0) < 0) {
res = u.iadd(this.m);
}
return res._forceRed(this);
};
Mont.prototype.mul = function mul(a, b) {
if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);
var t = a.mul(b);
var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
var u = t.isub(c).iushrn(this.shift);
var res = u;
if (u.cmp(this.m) >= 0) {
res = u.isub(this.m);
} else if (u.cmpn(0) < 0) {
res = u.iadd(this.m);
}
return res._forceRed(this);
};
Mont.prototype.invm = function invm(a) {
// (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R
var res = this.imod(a._invmp(this.m).mul(this.r2));
return res._forceRed(this);
};
})(typeof module === 'undefined' || module, undefined);
},{"buffer":171}],170:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var r;
module.exports = function rand(len) {
if (!r) r = new Rand(null);
return r.generate(len);
};
function Rand(rand) {
this.rand = rand;
}
module.exports.Rand = Rand;
Rand.prototype.generate = function generate(len) {
return this._rand(len);
};
// Emulate crypto API using randy
Rand.prototype._rand = function _rand(n) {
if (this.rand.getBytes) return this.rand.getBytes(n);
var res = new Uint8Array(n);
for (var i = 0; i < res.length; i++) {
res[i] = this.rand.getByte();
}return res;
};
if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object') {
if (self.crypto && self.crypto.getRandomValues) {
// Modern browsers
Rand.prototype._rand = function _rand(n) {
var arr = new Uint8Array(n);
self.crypto.getRandomValues(arr);
return arr;
};
} else if (self.msCrypto && self.msCrypto.getRandomValues) {
// IE
Rand.prototype._rand = function _rand(n) {
var arr = new Uint8Array(n);
self.msCrypto.getRandomValues(arr);
return arr;
};
// Safari's WebWorkers do not have `crypto`
} else if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object') {
// Old junk
Rand.prototype._rand = function () {
throw new Error('Not implemented yet');
};
}
} else {
// Node.js or Web worker with no crypto support
try {
var crypto = require('crypto');
if (typeof crypto.randomBytes !== 'function') throw new Error('Not supported');
Rand.prototype._rand = function _rand(n) {
return crypto.randomBytes(n);
};
} catch (e) {}
}
},{"crypto":171}],171:[function(require,module,exports){
"use strict";
},{}],172:[function(require,module,exports){
'use strict';
// based on the aes implimentation in triple sec
// https://github.com/keybase/triplesec
// which is in turn based on the one from crypto-js
// https://code.google.com/p/crypto-js/
var Buffer = require('safe-buffer').Buffer;
function asUInt32Array(buf) {
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf);
var len = buf.length / 4 | 0;
var out = new Array(len);
for (var i = 0; i < len; i++) {
out[i] = buf.readUInt32BE(i * 4);
}
return out;
}
function scrubVec(v) {
for (var i = 0; i < v.length; v++) {
v[i] = 0;
}
}
function cryptBlock(M, keySchedule, SUB_MIX, SBOX, nRounds) {
var SUB_MIX0 = SUB_MIX[0];
var SUB_MIX1 = SUB_MIX[1];
var SUB_MIX2 = SUB_MIX[2];
var SUB_MIX3 = SUB_MIX[3];
var s0 = M[0] ^ keySchedule[0];
var s1 = M[1] ^ keySchedule[1];
var s2 = M[2] ^ keySchedule[2];
var s3 = M[3] ^ keySchedule[3];
var t0, t1, t2, t3;
var ksRow = 4;
for (var round = 1; round < nRounds; round++) {
t0 = SUB_MIX0[s0 >>> 24] ^ SUB_MIX1[s1 >>> 16 & 0xff] ^ SUB_MIX2[s2 >>> 8 & 0xff] ^ SUB_MIX3[s3 & 0xff] ^ keySchedule[ksRow++];
t1 = SUB_MIX0[s1 >>> 24] ^ SUB_MIX1[s2 >>> 16 & 0xff] ^ SUB_MIX2[s3 >>> 8 & 0xff] ^ SUB_MIX3[s0 & 0xff] ^ keySchedule[ksRow++];
t2 = SUB_MIX0[s2 >>> 24] ^ SUB_MIX1[s3 >>> 16 & 0xff] ^ SUB_MIX2[s0 >>> 8 & 0xff] ^ SUB_MIX3[s1 & 0xff] ^ keySchedule[ksRow++];
t3 = SUB_MIX0[s3 >>> 24] ^ SUB_MIX1[s0 >>> 16 & 0xff] ^ SUB_MIX2[s1 >>> 8 & 0xff] ^ SUB_MIX3[s2 & 0xff] ^ keySchedule[ksRow++];
s0 = t0;
s1 = t1;
s2 = t2;
s3 = t3;
}
t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
t0 = t0 >>> 0;
t1 = t1 >>> 0;
t2 = t2 >>> 0;
t3 = t3 >>> 0;
return [t0, t1, t2, t3];
}
// AES constants
var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
var G = function () {
// Compute double table
var d = new Array(256);
for (var j = 0; j < 256; j++) {
if (j < 128) {
d[j] = j << 1;
} else {
d[j] = j << 1 ^ 0x11b;
}
}
var SBOX = [];
var INV_SBOX = [];
var SUB_MIX = [[], [], [], []];
var INV_SUB_MIX = [[], [], [], []];
// Walk GF(2^8)
var x = 0;
var xi = 0;
for (var i = 0; i < 256; ++i) {
// Compute sbox
var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;
sx = sx >>> 8 ^ sx & 0xff ^ 0x63;
SBOX[x] = sx;
INV_SBOX[sx] = x;
// Compute multiplication
var x2 = d[x];
var x4 = d[x2];
var x8 = d[x4];
// Compute sub bytes, mix columns tables
var t = d[sx] * 0x101 ^ sx * 0x1010100;
SUB_MIX[0][x] = t << 24 | t >>> 8;
SUB_MIX[1][x] = t << 16 | t >>> 16;
SUB_MIX[2][x] = t << 8 | t >>> 24;
SUB_MIX[3][x] = t;
// Compute inv sub bytes, inv mix columns tables
t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;
INV_SUB_MIX[0][sx] = t << 24 | t >>> 8;
INV_SUB_MIX[1][sx] = t << 16 | t >>> 16;
INV_SUB_MIX[2][sx] = t << 8 | t >>> 24;
INV_SUB_MIX[3][sx] = t;
if (x === 0) {
x = xi = 1;
} else {
x = x2 ^ d[d[d[x8 ^ x2]]];
xi ^= d[d[xi]];
}
}
return {
SBOX: SBOX,
INV_SBOX: INV_SBOX,
SUB_MIX: SUB_MIX,
INV_SUB_MIX: INV_SUB_MIX
};
}();
function AES(key) {
this._key = asUInt32Array(key);
this._reset();
}
AES.blockSize = 4 * 4;
AES.keySize = 256 / 8;
AES.prototype.blockSize = AES.blockSize;
AES.prototype.keySize = AES.keySize;
AES.prototype._reset = function () {
var keyWords = this._key;
var keySize = keyWords.length;
var nRounds = keySize + 6;
var ksRows = (nRounds + 1) * 4;
var keySchedule = [];
for (var k = 0; k < keySize; k++) {
keySchedule[k] = keyWords[k];
}
for (k = keySize; k < ksRows; k++) {
var t = keySchedule[k - 1];
if (k % keySize === 0) {
t = t << 8 | t >>> 24;
t = G.SBOX[t >>> 24] << 24 | G.SBOX[t >>> 16 & 0xff] << 16 | G.SBOX[t >>> 8 & 0xff] << 8 | G.SBOX[t & 0xff];
t ^= RCON[k / keySize | 0] << 24;
} else if (keySize > 6 && k % keySize === 4) {
t = G.SBOX[t >>> 24] << 24 | G.SBOX[t >>> 16 & 0xff] << 16 | G.SBOX[t >>> 8 & 0xff] << 8 | G.SBOX[t & 0xff];
}
keySchedule[k] = keySchedule[k - keySize] ^ t;
}
var invKeySchedule = [];
for (var ik = 0; ik < ksRows; ik++) {
var ksR = ksRows - ik;
var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)];
if (ik < 4 || ksR <= 4) {
invKeySchedule[ik] = tt;
} else {
invKeySchedule[ik] = G.INV_SUB_MIX[0][G.SBOX[tt >>> 24]] ^ G.INV_SUB_MIX[1][G.SBOX[tt >>> 16 & 0xff]] ^ G.INV_SUB_MIX[2][G.SBOX[tt >>> 8 & 0xff]] ^ G.INV_SUB_MIX[3][G.SBOX[tt & 0xff]];
}
}
this._nRounds = nRounds;
this._keySchedule = keySchedule;
this._invKeySchedule = invKeySchedule;
};
AES.prototype.encryptBlockRaw = function (M) {
M = asUInt32Array(M);
return cryptBlock(M, this._keySchedule, G.SUB_MIX, G.SBOX, this._nRounds);
};
AES.prototype.encryptBlock = function (M) {
var out = this.encryptBlockRaw(M);
var buf = Buffer.allocUnsafe(16);
buf.writeUInt32BE(out[0], 0);
buf.writeUInt32BE(out[1], 4);
buf.writeUInt32BE(out[2], 8);
buf.writeUInt32BE(out[3], 12);
return buf;
};
AES.prototype.decryptBlock = function (M) {
M = asUInt32Array(M);
// swap
var m1 = M[1];
M[1] = M[3];
M[3] = m1;
var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);
var buf = Buffer.allocUnsafe(16);
buf.writeUInt32BE(out[0], 0);
buf.writeUInt32BE(out[3], 4);
buf.writeUInt32BE(out[2], 8);
buf.writeUInt32BE(out[1], 12);
return buf;
};
AES.prototype.scrub = function () {
scrubVec(this._keySchedule);
scrubVec(this._invKeySchedule);
scrubVec(this._key);
};
module.exports.AES = AES;
},{"safe-buffer":319}],173:[function(require,module,exports){
'use strict';
var aes = require('./aes');
var Buffer = require('safe-buffer').Buffer;
var Transform = require('cipher-base');
var inherits = require('inherits');
var GHASH = require('./ghash');
var xor = require('buffer-xor');
var incr32 = require('./incr32');
function xorTest(a, b) {
var out = 0;
if (a.length !== b.length) out++;
var len = Math.min(a.length, b.length);
for (var i = 0; i < len; ++i) {
out += a[i] ^ b[i];
}
return out;
}
function calcIv(self, iv, ck) {
if (iv.length === 12) {
self._finID = Buffer.concat([iv, Buffer.from([0, 0, 0, 1])]);
return Buffer.concat([iv, Buffer.from([0, 0, 0, 2])]);
}
var ghash = new GHASH(ck);
var len = iv.length;
var toPad = len % 16;
ghash.update(iv);
if (toPad) {
toPad = 16 - toPad;
ghash.update(Buffer.alloc(toPad, 0));
}
ghash.update(Buffer.alloc(8, 0));
var ivBits = len * 8;
var tail = Buffer.alloc(8);
tail.writeUIntBE(ivBits, 0, 8);
ghash.update(tail);
self._finID = ghash.state;
var out = Buffer.from(self._finID);
incr32(out);
return out;
}
function StreamCipher(mode, key, iv, decrypt) {
Transform.call(this);
var h = Buffer.alloc(4, 0);
this._cipher = new aes.AES(key);
var ck = this._cipher.encryptBlock(h);
this._ghash = new GHASH(ck);
iv = calcIv(this, iv, ck);
this._prev = Buffer.from(iv);
this._cache = Buffer.allocUnsafe(0);
this._secCache = Buffer.allocUnsafe(0);
this._decrypt = decrypt;
this._alen = 0;
this._len = 0;
this._mode = mode;
this._authTag = null;
this._called = false;
}
inherits(StreamCipher, Transform);
StreamCipher.prototype._update = function (chunk) {
if (!this._called && this._alen) {
var rump = 16 - this._alen % 16;
if (rump < 16) {
rump = Buffer.alloc(rump, 0);
this._ghash.update(rump);
}
}
this._called = true;
var out = this._mode.encrypt(this, chunk);
if (this._decrypt) {
this._ghash.update(chunk);
} else {
this._ghash.update(out);
}
this._len += chunk.length;
return out;
};
StreamCipher.prototype._final = function () {
if (this._decrypt && !this._authTag) throw new Error('Unsupported state or unable to authenticate data');
var tag = xor(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID));
if (this._decrypt && xorTest(tag, this._authTag)) throw new Error('Unsupported state or unable to authenticate data');
this._authTag = tag;
this._cipher.scrub();
};
StreamCipher.prototype.getAuthTag = function getAuthTag() {
if (this._decrypt || !Buffer.isBuffer(this._authTag)) throw new Error('Attempting to get auth tag in unsupported state');
return this._authTag;
};
StreamCipher.prototype.setAuthTag = function setAuthTag(tag) {
if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state');
this._authTag = tag;
};
StreamCipher.prototype.setAAD = function setAAD(buf) {
if (this._called) throw new Error('Attempting to set AAD in unsupported state');
this._ghash.update(buf);
this._alen += buf.length;
};
module.exports = StreamCipher;
},{"./aes":172,"./ghash":177,"./incr32":178,"buffer-xor":200,"cipher-base":202,"inherits":266,"safe-buffer":319}],174:[function(require,module,exports){
'use strict';
var ciphers = require('./encrypter');
var deciphers = require('./decrypter');
var modes = require('./modes/list.json');
function getCiphers() {
return Object.keys(modes);
}
exports.createCipher = exports.Cipher = ciphers.createCipher;
exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv;
exports.createDecipher = exports.Decipher = deciphers.createDecipher;
exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv;
exports.listCiphers = exports.getCiphers = getCiphers;
},{"./decrypter":175,"./encrypter":176,"./modes/list.json":186}],175:[function(require,module,exports){
'use strict';
var AuthCipher = require('./authCipher');
var Buffer = require('safe-buffer').Buffer;
var MODES = require('./modes');
var StreamCipher = require('./streamCipher');
var Transform = require('cipher-base');
var aes = require('./aes');
var ebtk = require('evp_bytestokey');
var inherits = require('inherits');
function Decipher(mode, key, iv) {
Transform.call(this);
this._cache = new Splitter();
this._last = void 0;
this._cipher = new aes.AES(key);
this._prev = Buffer.from(iv);
this._mode = mode;
this._autopadding = true;
}
inherits(Decipher, Transform);
Decipher.prototype._update = function (data) {
this._cache.add(data);
var chunk;
var thing;
var out = [];
while (chunk = this._cache.get(this._autopadding)) {
thing = this._mode.decrypt(this, chunk);
out.push(thing);
}
return Buffer.concat(out);
};
Decipher.prototype._final = function () {
var chunk = this._cache.flush();
if (this._autopadding) {
return unpad(this._mode.decrypt(this, chunk));
} else if (chunk) {
throw new Error('data not multiple of block length');
}
};
Decipher.prototype.setAutoPadding = function (setTo) {
this._autopadding = !!setTo;
return this;
};
function Splitter() {
this.cache = Buffer.allocUnsafe(0);
}
Splitter.prototype.add = function (data) {
this.cache = Buffer.concat([this.cache, data]);
};
Splitter.prototype.get = function (autoPadding) {
var out;
if (autoPadding) {
if (this.cache.length > 16) {
out = this.cache.slice(0, 16);
this.cache = this.cache.slice(16);
return out;
}
} else {
if (this.cache.length >= 16) {
out = this.cache.slice(0, 16);
this.cache = this.cache.slice(16);
return out;
}
}
return null;
};
Splitter.prototype.flush = function () {
if (this.cache.length) return this.cache;
};
function unpad(last) {
var padded = last[15];
var i = -1;
while (++i < padded) {
if (last[i + (16 - padded)] !== padded) {
throw new Error('unable to decrypt data');
}
}
if (padded === 16) return;
return last.slice(0, 16 - padded);
}
function createDecipheriv(suite, password, iv) {
var config = MODES[suite.toLowerCase()];
if (!config) throw new TypeError('invalid suite type');
if (typeof iv === 'string') iv = Buffer.from(iv);
if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length);
if (typeof password === 'string') password = Buffer.from(password);
if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length);
if (config.type === 'stream') {
return new StreamCipher(config.module, password, iv, true);
} else if (config.type === 'auth') {
return new AuthCipher(config.module, password, iv, true);
}
return new Decipher(config.module, password, iv);
}
function createDecipher(suite, password) {
var config = MODES[suite.toLowerCase()];
if (!config) throw new TypeError('invalid suite type');
var keys = ebtk(password, false, config.key, config.iv);
return createDecipheriv(suite, keys.key, keys.iv);
}
exports.createDecipher = createDecipher;
exports.createDecipheriv = createDecipheriv;
},{"./aes":172,"./authCipher":173,"./modes":185,"./streamCipher":188,"cipher-base":202,"evp_bytestokey":246,"inherits":266,"safe-buffer":319}],176:[function(require,module,exports){
'use strict';
var MODES = require('./modes');
var AuthCipher = require('./authCipher');
var Buffer = require('safe-buffer').Buffer;
var StreamCipher = require('./streamCipher');
var Transform = require('cipher-base');
var aes = require('./aes');
var ebtk = require('evp_bytestokey');
var inherits = require('inherits');
function Cipher(mode, key, iv) {
Transform.call(this);
this._cache = new Splitter();
this._cipher = new aes.AES(key);
this._prev = Buffer.from(iv);
this._mode = mode;
this._autopadding = true;
}
inherits(Cipher, Transform);
Cipher.prototype._update = function (data) {
this._cache.add(data);
var chunk;
var thing;
var out = [];
while (chunk = this._cache.get()) {
thing = this._mode.encrypt(this, chunk);
out.push(thing);
}
return Buffer.concat(out);
};
var PADDING = Buffer.alloc(16, 0x10);
Cipher.prototype._final = function () {
var chunk = this._cache.flush();
if (this._autopadding) {
chunk = this._mode.encrypt(this, chunk);
this._cipher.scrub();
return chunk;
}
if (!chunk.equals(PADDING)) {
this._cipher.scrub();
throw new Error('data not multiple of block length');
}
};
Cipher.prototype.setAutoPadding = function (setTo) {
this._autopadding = !!setTo;
return this;
};
function Splitter() {
this.cache = Buffer.allocUnsafe(0);
}
Splitter.prototype.add = function (data) {
this.cache = Buffer.concat([this.cache, data]);
};
Splitter.prototype.get = function () {
if (this.cache.length > 15) {
var out = this.cache.slice(0, 16);
this.cache = this.cache.slice(16);
return out;
}
return null;
};
Splitter.prototype.flush = function () {
var len = 16 - this.cache.length;
var padBuff = Buffer.allocUnsafe(len);
var i = -1;
while (++i < len) {
padBuff.writeUInt8(len, i);
}
return Buffer.concat([this.cache, padBuff]);
};
function createCipheriv(suite, password, iv) {
var config = MODES[suite.toLowerCase()];
if (!config) throw new TypeError('invalid suite type');
if (typeof password === 'string') password = Buffer.from(password);
if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length);
if (typeof iv === 'string') iv = Buffer.from(iv);
if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length);
if (config.type === 'stream') {
return new StreamCipher(config.module, password, iv);
} else if (config.type === 'auth') {
return new AuthCipher(config.module, password, iv);
}
return new Cipher(config.module, password, iv);
}
function createCipher(suite, password) {
var config = MODES[suite.toLowerCase()];
if (!config) throw new TypeError('invalid suite type');
var keys = ebtk(password, false, config.key, config.iv);
return createCipheriv(suite, keys.key, keys.iv);
}
exports.createCipheriv = createCipheriv;
exports.createCipher = createCipher;
},{"./aes":172,"./authCipher":173,"./modes":185,"./streamCipher":188,"cipher-base":202,"evp_bytestokey":246,"inherits":266,"safe-buffer":319}],177:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var ZEROES = Buffer.alloc(16, 0);
function toArray(buf) {
return [buf.readUInt32BE(0), buf.readUInt32BE(4), buf.readUInt32BE(8), buf.readUInt32BE(12)];
}
function fromArray(out) {
var buf = Buffer.allocUnsafe(16);
buf.writeUInt32BE(out[0] >>> 0, 0);
buf.writeUInt32BE(out[1] >>> 0, 4);
buf.writeUInt32BE(out[2] >>> 0, 8);
buf.writeUInt32BE(out[3] >>> 0, 12);
return buf;
}
function GHASH(key) {
this.h = key;
this.state = Buffer.alloc(16, 0);
this.cache = Buffer.allocUnsafe(0);
}
// from http://bitwiseshiftleft.github.io/sjcl/doc/symbols/src/core_gcm.js.html
// by Juho Vähä-Herttua
GHASH.prototype.ghash = function (block) {
var i = -1;
while (++i < block.length) {
this.state[i] ^= block[i];
}
this._multiply();
};
GHASH.prototype._multiply = function () {
var Vi = toArray(this.h);
var Zi = [0, 0, 0, 0];
var j, xi, lsbVi;
var i = -1;
while (++i < 128) {
xi = (this.state[~~(i / 8)] & 1 << 7 - i % 8) !== 0;
if (xi) {
// Z_i+1 = Z_i ^ V_i
Zi[0] ^= Vi[0];
Zi[1] ^= Vi[1];
Zi[2] ^= Vi[2];
Zi[3] ^= Vi[3];
}
// Store the value of LSB(V_i)
lsbVi = (Vi[3] & 1) !== 0;
// V_i+1 = V_i >> 1
for (j = 3; j > 0; j--) {
Vi[j] = Vi[j] >>> 1 | (Vi[j - 1] & 1) << 31;
}
Vi[0] = Vi[0] >>> 1;
// If LSB(V_i) is 1, V_i+1 = (V_i >> 1) ^ R
if (lsbVi) {
Vi[0] = Vi[0] ^ 0xe1 << 24;
}
}
this.state = fromArray(Zi);
};
GHASH.prototype.update = function (buf) {
this.cache = Buffer.concat([this.cache, buf]);
var chunk;
while (this.cache.length >= 16) {
chunk = this.cache.slice(0, 16);
this.cache = this.cache.slice(16);
this.ghash(chunk);
}
};
GHASH.prototype.final = function (abl, bl) {
if (this.cache.length) {
this.ghash(Buffer.concat([this.cache, ZEROES], 16));
}
this.ghash(fromArray([0, abl, 0, bl]));
return this.state;
};
module.exports = GHASH;
},{"safe-buffer":319}],178:[function(require,module,exports){
"use strict";
function incr32(iv) {
var len = iv.length;
var item;
while (len--) {
item = iv.readUInt8(len);
if (item === 255) {
iv.writeUInt8(0, len);
} else {
item++;
iv.writeUInt8(item, len);
break;
}
}
}
module.exports = incr32;
},{}],179:[function(require,module,exports){
'use strict';
var xor = require('buffer-xor');
exports.encrypt = function (self, block) {
var data = xor(block, self._prev);
self._prev = self._cipher.encryptBlock(data);
return self._prev;
};
exports.decrypt = function (self, block) {
var pad = self._prev;
self._prev = block;
var out = self._cipher.decryptBlock(block);
return xor(out, pad);
};
},{"buffer-xor":200}],180:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var xor = require('buffer-xor');
function encryptStart(self, data, decrypt) {
var len = data.length;
var out = xor(data, self._cache);
self._cache = self._cache.slice(len);
self._prev = Buffer.concat([self._prev, decrypt ? data : out]);
return out;
}
exports.encrypt = function (self, data, decrypt) {
var out = Buffer.allocUnsafe(0);
var len;
while (data.length) {
if (self._cache.length === 0) {
self._cache = self._cipher.encryptBlock(self._prev);
self._prev = Buffer.allocUnsafe(0);
}
if (self._cache.length <= data.length) {
len = self._cache.length;
out = Buffer.concat([out, encryptStart(self, data.slice(0, len), decrypt)]);
data = data.slice(len);
} else {
out = Buffer.concat([out, encryptStart(self, data, decrypt)]);
break;
}
}
return out;
};
},{"buffer-xor":200,"safe-buffer":319}],181:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
function encryptByte(self, byteParam, decrypt) {
var pad;
var i = -1;
var len = 8;
var out = 0;
var bit, value;
while (++i < len) {
pad = self._cipher.encryptBlock(self._prev);
bit = byteParam & 1 << 7 - i ? 0x80 : 0;
value = pad[0] ^ bit;
out += (value & 0x80) >> i % 8;
self._prev = shiftIn(self._prev, decrypt ? bit : value);
}
return out;
}
function shiftIn(buffer, value) {
var len = buffer.length;
var i = -1;
var out = Buffer.allocUnsafe(buffer.length);
buffer = Buffer.concat([buffer, Buffer.from([value])]);
while (++i < len) {
out[i] = buffer[i] << 1 | buffer[i + 1] >> 7;
}
return out;
}
exports.encrypt = function (self, chunk, decrypt) {
var len = chunk.length;
var out = Buffer.allocUnsafe(len);
var i = -1;
while (++i < len) {
out[i] = encryptByte(self, chunk[i], decrypt);
}
return out;
};
},{"safe-buffer":319}],182:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
function encryptByte(self, byteParam, decrypt) {
var pad = self._cipher.encryptBlock(self._prev);
var out = pad[0] ^ byteParam;
self._prev = Buffer.concat([self._prev.slice(1), Buffer.from([decrypt ? byteParam : out])]);
return out;
}
exports.encrypt = function (self, chunk, decrypt) {
var len = chunk.length;
var out = Buffer.allocUnsafe(len);
var i = -1;
while (++i < len) {
out[i] = encryptByte(self, chunk[i], decrypt);
}
return out;
};
},{"safe-buffer":319}],183:[function(require,module,exports){
'use strict';
var xor = require('buffer-xor');
var Buffer = require('safe-buffer').Buffer;
var incr32 = require('../incr32');
function getBlock(self) {
var out = self._cipher.encryptBlockRaw(self._prev);
incr32(self._prev);
return out;
}
var blockSize = 16;
exports.encrypt = function (self, chunk) {
var chunkNum = Math.ceil(chunk.length / blockSize);
var start = self._cache.length;
self._cache = Buffer.concat([self._cache, Buffer.allocUnsafe(chunkNum * blockSize)]);
for (var i = 0; i < chunkNum; i++) {
var out = getBlock(self);
var offset = start + i * blockSize;
self._cache.writeUInt32BE(out[0], offset + 0);
self._cache.writeUInt32BE(out[1], offset + 4);
self._cache.writeUInt32BE(out[2], offset + 8);
self._cache.writeUInt32BE(out[3], offset + 12);
}
var pad = self._cache.slice(0, chunk.length);
self._cache = self._cache.slice(chunk.length);
return xor(chunk, pad);
};
},{"../incr32":178,"buffer-xor":200,"safe-buffer":319}],184:[function(require,module,exports){
"use strict";
exports.encrypt = function (self, block) {
return self._cipher.encryptBlock(block);
};
exports.decrypt = function (self, block) {
return self._cipher.decryptBlock(block);
};
},{}],185:[function(require,module,exports){
'use strict';
var modeModules = {
ECB: require('./ecb'),
CBC: require('./cbc'),
CFB: require('./cfb'),
CFB8: require('./cfb8'),
CFB1: require('./cfb1'),
OFB: require('./ofb'),
CTR: require('./ctr'),
GCM: require('./ctr')
};
var modes = require('./list.json');
for (var key in modes) {
modes[key].module = modeModules[modes[key].mode];
}
module.exports = modes;
},{"./cbc":179,"./cfb":180,"./cfb1":181,"./cfb8":182,"./ctr":183,"./ecb":184,"./list.json":186,"./ofb":187}],186:[function(require,module,exports){
module.exports={
"aes-128-ecb": {
"cipher": "AES",
"key": 128,
"iv": 0,
"mode": "ECB",
"type": "block"
},
"aes-192-ecb": {
"cipher": "AES",
"key": 192,
"iv": 0,
"mode": "ECB",
"type": "block"
},
"aes-256-ecb": {
"cipher": "AES",
"key": 256,
"iv": 0,
"mode": "ECB",
"type": "block"
},
"aes-128-cbc": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes-192-cbc": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes-256-cbc": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes128": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes192": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes256": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CBC",
"type": "block"
},
"aes-128-cfb": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CFB",
"type": "stream"
},
"aes-192-cfb": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CFB",
"type": "stream"
},
"aes-256-cfb": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CFB",
"type": "stream"
},
"aes-128-cfb8": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CFB8",
"type": "stream"
},
"aes-192-cfb8": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CFB8",
"type": "stream"
},
"aes-256-cfb8": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CFB8",
"type": "stream"
},
"aes-128-cfb1": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CFB1",
"type": "stream"
},
"aes-192-cfb1": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CFB1",
"type": "stream"
},
"aes-256-cfb1": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CFB1",
"type": "stream"
},
"aes-128-ofb": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "OFB",
"type": "stream"
},
"aes-192-ofb": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "OFB",
"type": "stream"
},
"aes-256-ofb": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "OFB",
"type": "stream"
},
"aes-128-ctr": {
"cipher": "AES",
"key": 128,
"iv": 16,
"mode": "CTR",
"type": "stream"
},
"aes-192-ctr": {
"cipher": "AES",
"key": 192,
"iv": 16,
"mode": "CTR",
"type": "stream"
},
"aes-256-ctr": {
"cipher": "AES",
"key": 256,
"iv": 16,
"mode": "CTR",
"type": "stream"
},
"aes-128-gcm": {
"cipher": "AES",
"key": 128,
"iv": 12,
"mode": "GCM",
"type": "auth"
},
"aes-192-gcm": {
"cipher": "AES",
"key": 192,
"iv": 12,
"mode": "GCM",
"type": "auth"
},
"aes-256-gcm": {
"cipher": "AES",
"key": 256,
"iv": 12,
"mode": "GCM",
"type": "auth"
}
}
},{}],187:[function(require,module,exports){
(function (Buffer){
'use strict';
var xor = require('buffer-xor');
function getBlock(self) {
self._prev = self._cipher.encryptBlock(self._prev);
return self._prev;
}
exports.encrypt = function (self, chunk) {
while (self._cache.length < chunk.length) {
self._cache = Buffer.concat([self._cache, getBlock(self)]);
}
var pad = self._cache.slice(0, chunk.length);
self._cache = self._cache.slice(chunk.length);
return xor(chunk, pad);
};
}).call(this,require("buffer").Buffer)
},{"buffer":201,"buffer-xor":200}],188:[function(require,module,exports){
'use strict';
var aes = require('./aes');
var Buffer = require('safe-buffer').Buffer;
var Transform = require('cipher-base');
var inherits = require('inherits');
function StreamCipher(mode, key, iv, decrypt) {
Transform.call(this);
this._cipher = new aes.AES(key);
this._prev = Buffer.from(iv);
this._cache = Buffer.allocUnsafe(0);
this._secCache = Buffer.allocUnsafe(0);
this._decrypt = decrypt;
this._mode = mode;
}
inherits(StreamCipher, Transform);
StreamCipher.prototype._update = function (chunk) {
return this._mode.encrypt(this, chunk, this._decrypt);
};
StreamCipher.prototype._final = function () {
this._cipher.scrub();
};
module.exports = StreamCipher;
},{"./aes":172,"cipher-base":202,"inherits":266,"safe-buffer":319}],189:[function(require,module,exports){
'use strict';
var ebtk = require('evp_bytestokey');
var aes = require('browserify-aes/browser');
var DES = require('browserify-des');
var desModes = require('browserify-des/modes');
var aesModes = require('browserify-aes/modes');
function createCipher(suite, password) {
var keyLen, ivLen;
suite = suite.toLowerCase();
if (aesModes[suite]) {
keyLen = aesModes[suite].key;
ivLen = aesModes[suite].iv;
} else if (desModes[suite]) {
keyLen = desModes[suite].key * 8;
ivLen = desModes[suite].iv;
} else {
throw new TypeError('invalid suite type');
}
var keys = ebtk(password, false, keyLen, ivLen);
return createCipheriv(suite, keys.key, keys.iv);
}
function createDecipher(suite, password) {
var keyLen, ivLen;
suite = suite.toLowerCase();
if (aesModes[suite]) {
keyLen = aesModes[suite].key;
ivLen = aesModes[suite].iv;
} else if (desModes[suite]) {
keyLen = desModes[suite].key * 8;
ivLen = desModes[suite].iv;
} else {
throw new TypeError('invalid suite type');
}
var keys = ebtk(password, false, keyLen, ivLen);
return createDecipheriv(suite, keys.key, keys.iv);
}
function createCipheriv(suite, key, iv) {
suite = suite.toLowerCase();
if (aesModes[suite]) {
return aes.createCipheriv(suite, key, iv);
} else if (desModes[suite]) {
return new DES({
key: key,
iv: iv,
mode: suite
});
} else {
throw new TypeError('invalid suite type');
}
}
function createDecipheriv(suite, key, iv) {
suite = suite.toLowerCase();
if (aesModes[suite]) {
return aes.createDecipheriv(suite, key, iv);
} else if (desModes[suite]) {
return new DES({
key: key,
iv: iv,
mode: suite,
decrypt: true
});
} else {
throw new TypeError('invalid suite type');
}
}
exports.createCipher = exports.Cipher = createCipher;
exports.createCipheriv = exports.Cipheriv = createCipheriv;
exports.createDecipher = exports.Decipher = createDecipher;
exports.createDecipheriv = exports.Decipheriv = createDecipheriv;
function getCiphers() {
return Object.keys(desModes).concat(aes.getCiphers());
}
exports.listCiphers = exports.getCiphers = getCiphers;
},{"browserify-aes/browser":174,"browserify-aes/modes":185,"browserify-des":190,"browserify-des/modes":191,"evp_bytestokey":246}],190:[function(require,module,exports){
(function (Buffer){
'use strict';
var CipherBase = require('cipher-base');
var des = require('des.js');
var inherits = require('inherits');
var modes = {
'des-ede3-cbc': des.CBC.instantiate(des.EDE),
'des-ede3': des.EDE,
'des-ede-cbc': des.CBC.instantiate(des.EDE),
'des-ede': des.EDE,
'des-cbc': des.CBC.instantiate(des.DES),
'des-ecb': des.DES
};
modes.des = modes['des-cbc'];
modes.des3 = modes['des-ede3-cbc'];
module.exports = DES;
inherits(DES, CipherBase);
function DES(opts) {
CipherBase.call(this);
var modeName = opts.mode.toLowerCase();
var mode = modes[modeName];
var type;
if (opts.decrypt) {
type = 'decrypt';
} else {
type = 'encrypt';
}
var key = opts.key;
if (modeName === 'des-ede' || modeName === 'des-ede-cbc') {
key = Buffer.concat([key, key.slice(0, 8)]);
}
var iv = opts.iv;
this._des = mode.create({
key: key,
iv: iv,
type: type
});
}
DES.prototype._update = function (data) {
return new Buffer(this._des.update(data));
};
DES.prototype._final = function () {
return new Buffer(this._des.final());
};
}).call(this,require("buffer").Buffer)
},{"buffer":201,"cipher-base":202,"des.js":212,"inherits":266}],191:[function(require,module,exports){
'use strict';
exports['des-ecb'] = {
key: 8,
iv: 0
};
exports['des-cbc'] = exports.des = {
key: 8,
iv: 8
};
exports['des-ede3-cbc'] = exports.des3 = {
key: 24,
iv: 8
};
exports['des-ede3'] = {
key: 24,
iv: 0
};
exports['des-ede-cbc'] = {
key: 16,
iv: 8
};
exports['des-ede'] = {
key: 16,
iv: 0
};
},{}],192:[function(require,module,exports){
(function (Buffer){
'use strict';
var bn = require('bn.js');
var randomBytes = require('randombytes');
module.exports = crt;
function blind(priv) {
var r = getr(priv);
var blinder = r.toRed(bn.mont(priv.modulus)).redPow(new bn(priv.publicExponent)).fromRed();
return {
blinder: blinder,
unblinder: r.invm(priv.modulus)
};
}
function crt(msg, priv) {
var blinds = blind(priv);
var len = priv.modulus.byteLength();
var mod = bn.mont(priv.modulus);
var blinded = new bn(msg).mul(blinds.blinder).umod(priv.modulus);
var c1 = blinded.toRed(bn.mont(priv.prime1));
var c2 = blinded.toRed(bn.mont(priv.prime2));
var qinv = priv.coefficient;
var p = priv.prime1;
var q = priv.prime2;
var m1 = c1.redPow(priv.exponent1);
var m2 = c2.redPow(priv.exponent2);
m1 = m1.fromRed();
m2 = m2.fromRed();
var h = m1.isub(m2).imul(qinv).umod(p);
h.imul(q);
m2.iadd(h);
return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false, len));
}
crt.getr = getr;
function getr(priv) {
var len = priv.modulus.byteLength();
var r = new bn(randomBytes(len));
while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2)) {
r = new bn(randomBytes(len));
}
return r;
}
}).call(this,require("buffer").Buffer)
},{"bn.js":169,"buffer":201,"randombytes":302}],193:[function(require,module,exports){
'use strict';
module.exports = require('./browser/algorithms.json');
},{"./browser/algorithms.json":194}],194:[function(require,module,exports){
module.exports={
"sha224WithRSAEncryption": {
"sign": "rsa",
"hash": "sha224",
"id": "302d300d06096086480165030402040500041c"
},
"RSA-SHA224": {
"sign": "ecdsa/rsa",
"hash": "sha224",
"id": "302d300d06096086480165030402040500041c"
},
"sha256WithRSAEncryption": {
"sign": "rsa",
"hash": "sha256",
"id": "3031300d060960864801650304020105000420"
},
"RSA-SHA256": {
"sign": "ecdsa/rsa",
"hash": "sha256",
"id": "3031300d060960864801650304020105000420"
},
"sha384WithRSAEncryption": {
"sign": "rsa",
"hash": "sha384",
"id": "3041300d060960864801650304020205000430"
},
"RSA-SHA384": {
"sign": "ecdsa/rsa",
"hash": "sha384",
"id": "3041300d060960864801650304020205000430"
},
"sha512WithRSAEncryption": {
"sign": "rsa",
"hash": "sha512",
"id": "3051300d060960864801650304020305000440"
},
"RSA-SHA512": {
"sign": "ecdsa/rsa",
"hash": "sha512",
"id": "3051300d060960864801650304020305000440"
},
"RSA-SHA1": {
"sign": "rsa",
"hash": "sha1",
"id": "3021300906052b0e03021a05000414"
},
"ecdsa-with-SHA1": {
"sign": "ecdsa",
"hash": "sha1",
"id": ""
},
"sha256": {
"sign": "ecdsa",
"hash": "sha256",
"id": ""
},
"sha224": {
"sign": "ecdsa",
"hash": "sha224",
"id": ""
},
"sha384": {
"sign": "ecdsa",
"hash": "sha384",
"id": ""
},
"sha512": {
"sign": "ecdsa",
"hash": "sha512",
"id": ""
},
"DSA-SHA": {
"sign": "dsa",
"hash": "sha1",
"id": ""
},
"DSA-SHA1": {
"sign": "dsa",
"hash": "sha1",
"id": ""
},
"DSA": {
"sign": "dsa",
"hash": "sha1",
"id": ""
},
"DSA-WITH-SHA224": {
"sign": "dsa",
"hash": "sha224",
"id": ""
},
"DSA-SHA224": {
"sign": "dsa",
"hash": "sha224",
"id": ""
},
"DSA-WITH-SHA256": {
"sign": "dsa",
"hash": "sha256",
"id": ""
},
"DSA-SHA256": {
"sign": "dsa",
"hash": "sha256",
"id": ""
},
"DSA-WITH-SHA384": {
"sign": "dsa",
"hash": "sha384",
"id": ""
},
"DSA-SHA384": {
"sign": "dsa",
"hash": "sha384",
"id": ""
},
"DSA-WITH-SHA512": {
"sign": "dsa",
"hash": "sha512",
"id": ""
},
"DSA-SHA512": {
"sign": "dsa",
"hash": "sha512",
"id": ""
},
"DSA-RIPEMD160": {
"sign": "dsa",
"hash": "rmd160",
"id": ""
},
"ripemd160WithRSA": {
"sign": "rsa",
"hash": "rmd160",
"id": "3021300906052b2403020105000414"
},
"RSA-RIPEMD160": {
"sign": "rsa",
"hash": "rmd160",
"id": "3021300906052b2403020105000414"
},
"md5WithRSAEncryption": {
"sign": "rsa",
"hash": "md5",
"id": "3020300c06082a864886f70d020505000410"
},
"RSA-MD5": {
"sign": "rsa",
"hash": "md5",
"id": "3020300c06082a864886f70d020505000410"
}
}
},{}],195:[function(require,module,exports){
module.exports={
"1.3.132.0.10": "secp256k1",
"1.3.132.0.33": "p224",
"1.2.840.10045.3.1.1": "p192",
"1.2.840.10045.3.1.7": "p256",
"1.3.132.0.34": "p384",
"1.3.132.0.35": "p521"
}
},{}],196:[function(require,module,exports){
(function (Buffer){
'use strict';
var createHash = require('create-hash');
var stream = require('stream');
var inherits = require('inherits');
var sign = require('./sign');
var verify = require('./verify');
var algorithms = require('./algorithms.json');
Object.keys(algorithms).forEach(function (key) {
algorithms[key].id = new Buffer(algorithms[key].id, 'hex');
algorithms[key.toLowerCase()] = algorithms[key];
});
function Sign(algorithm) {
stream.Writable.call(this);
var data = algorithms[algorithm];
if (!data) throw new Error('Unknown message digest');
this._hashType = data.hash;
this._hash = createHash(data.hash);
this._tag = data.id;
this._signType = data.sign;
}
inherits(Sign, stream.Writable);
Sign.prototype._write = function _write(data, _, done) {
this._hash.update(data);
done();
};
Sign.prototype.update = function update(data, enc) {
if (typeof data === 'string') data = new Buffer(data, enc);
this._hash.update(data);
return this;
};
Sign.prototype.sign = function signMethod(key, enc) {
this.end();
var hash = this._hash.digest();
var sig = sign(hash, key, this._hashType, this._signType, this._tag);
return enc ? sig.toString(enc) : sig;
};
function Verify(algorithm) {
stream.Writable.call(this);
var data = algorithms[algorithm];
if (!data) throw new Error('Unknown message digest');
this._hash = createHash(data.hash);
this._tag = data.id;
this._signType = data.sign;
}
inherits(Verify, stream.Writable);
Verify.prototype._write = function _write(data, _, done) {
this._hash.update(data);
done();
};
Verify.prototype.update = function update(data, enc) {
if (typeof data === 'string') data = new Buffer(data, enc);
this._hash.update(data);
return this;
};
Verify.prototype.verify = function verifyMethod(key, sig, enc) {
if (typeof sig === 'string') sig = new Buffer(sig, enc);
this.end();
var hash = this._hash.digest();
return verify(sig, hash, key, this._signType, this._tag);
};
function createSign(algorithm) {
return new Sign(algorithm);
}
function createVerify(algorithm) {
return new Verify(algorithm);
}
module.exports = {
Sign: createSign,
Verify: createVerify,
createSign: createSign,
createVerify: createVerify
};
}).call(this,require("buffer").Buffer)
},{"./algorithms.json":194,"./sign":197,"./verify":198,"buffer":201,"create-hash":206,"inherits":266,"stream":335}],197:[function(require,module,exports){
(function (Buffer){
'use strict';
// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
var createHmac = require('create-hmac');
var crt = require('browserify-rsa');
var EC = require('elliptic').ec;
var BN = require('bn.js');
var parseKeys = require('parse-asn1');
var curves = require('./curves.json');
function sign(hash, key, hashType, signType, tag) {
var priv = parseKeys(key);
if (priv.curve) {
// rsa keys can be interpreted as ecdsa ones in openssl
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type');
return ecSign(hash, priv);
} else if (priv.type === 'dsa') {
if (signType !== 'dsa') throw new Error('wrong private key type');
return dsaSign(hash, priv, hashType);
} else {
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type');
}
hash = Buffer.concat([tag, hash]);
var len = priv.modulus.byteLength();
var pad = [0, 1];
while (hash.length + pad.length + 1 < len) {
pad.push(0xff);
}pad.push(0x00);
var i = -1;
while (++i < hash.length) {
pad.push(hash[i]);
}var out = crt(pad, priv);
return out;
}
function ecSign(hash, priv) {
var curveId = curves[priv.curve.join('.')];
if (!curveId) throw new Error('unknown curve ' + priv.curve.join('.'));
var curve = new EC(curveId);
var key = curve.keyFromPrivate(priv.privateKey);
var out = key.sign(hash);
return new Buffer(out.toDER());
}
function dsaSign(hash, priv, algo) {
var x = priv.params.priv_key;
var p = priv.params.p;
var q = priv.params.q;
var g = priv.params.g;
var r = new BN(0);
var k;
var H = bits2int(hash, q).mod(q);
var s = false;
var kv = getKey(x, q, hash, algo);
while (s === false) {
k = makeKey(q, kv, algo);
r = makeR(g, k, p, q);
s = k.invm(q).imul(H.add(x.mul(r))).mod(q);
if (s.cmpn(0) === 0) {
s = false;
r = new BN(0);
}
}
return toDER(r, s);
}
function toDER(r, s) {
r = r.toArray();
s = s.toArray();
// Pad values
if (r[0] & 0x80) r = [0].concat(r);
if (s[0] & 0x80) s = [0].concat(s);
var total = r.length + s.length + 4;
var res = [0x30, total, 0x02, r.length];
res = res.concat(r, [0x02, s.length], s);
return new Buffer(res);
}
function getKey(x, q, hash, algo) {
x = new Buffer(x.toArray());
if (x.length < q.byteLength()) {
var zeros = new Buffer(q.byteLength() - x.length);
zeros.fill(0);
x = Buffer.concat([zeros, x]);
}
var hlen = hash.length;
var hbits = bits2octets(hash, q);
var v = new Buffer(hlen);
v.fill(1);
var k = new Buffer(hlen);
k.fill(0);
k = createHmac(algo, k).update(v).update(new Buffer([0])).update(x).update(hbits).digest();
v = createHmac(algo, k).update(v).digest();
k = createHmac(algo, k).update(v).update(new Buffer([1])).update(x).update(hbits).digest();
v = createHmac(algo, k).update(v).digest();
return { k: k, v: v };
}
function bits2int(obits, q) {
var bits = new BN(obits);
var shift = (obits.length << 3) - q.bitLength();
if (shift > 0) bits.ishrn(shift);
return bits;
}
function bits2octets(bits, q) {
bits = bits2int(bits, q);
bits = bits.mod(q);
var out = new Buffer(bits.toArray());
if (out.length < q.byteLength()) {
var zeros = new Buffer(q.byteLength() - out.length);
zeros.fill(0);
out = Buffer.concat([zeros, out]);
}
return out;
}
function makeKey(q, kv, algo) {
var t;
var k;
do {
t = new Buffer(0);
while (t.length * 8 < q.bitLength()) {
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
t = Buffer.concat([t, kv.v]);
}
k = bits2int(t, q);
kv.k = createHmac(algo, kv.k).update(kv.v).update(new Buffer([0])).digest();
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
} while (k.cmp(q) !== -1);
return k;
}
function makeR(g, k, p, q) {
return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q);
}
module.exports = sign;
module.exports.getKey = getKey;
module.exports.makeKey = makeKey;
}).call(this,require("buffer").Buffer)
},{"./curves.json":195,"bn.js":169,"browserify-rsa":192,"buffer":201,"create-hmac":209,"elliptic":225,"parse-asn1":287}],198:[function(require,module,exports){
(function (Buffer){
'use strict';
// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
var BN = require('bn.js');
var EC = require('elliptic').ec;
var parseKeys = require('parse-asn1');
var curves = require('./curves.json');
function verify(sig, hash, key, signType, tag) {
var pub = parseKeys(key);
if (pub.type === 'ec') {
// rsa keys can be interpreted as ecdsa ones in openssl
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type');
return ecVerify(sig, hash, pub);
} else if (pub.type === 'dsa') {
if (signType !== 'dsa') throw new Error('wrong public key type');
return dsaVerify(sig, hash, pub);
} else {
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type');
}
hash = Buffer.concat([tag, hash]);
var len = pub.modulus.byteLength();
var pad = [1];
var padNum = 0;
while (hash.length + pad.length + 2 < len) {
pad.push(0xff);
padNum++;
}
pad.push(0x00);
var i = -1;
while (++i < hash.length) {
pad.push(hash[i]);
}
pad = new Buffer(pad);
var red = BN.mont(pub.modulus);
sig = new BN(sig).toRed(red);
sig = sig.redPow(new BN(pub.publicExponent));
sig = new Buffer(sig.fromRed().toArray());
var out = padNum < 8 ? 1 : 0;
len = Math.min(sig.length, pad.length);
if (sig.length !== pad.length) out = 1;
i = -1;
while (++i < len) {
out |= sig[i] ^ pad[i];
}return out === 0;
}
function ecVerify(sig, hash, pub) {
var curveId = curves[pub.data.algorithm.curve.join('.')];
if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'));
var curve = new EC(curveId);
var pubkey = pub.data.subjectPrivateKey.data;
return curve.verify(hash, sig, pubkey);
}
function dsaVerify(sig, hash, pub) {
var p = pub.data.p;
var q = pub.data.q;
var g = pub.data.g;
var y = pub.data.pub_key;
var unpacked = parseKeys.signature.decode(sig, 'der');
var s = unpacked.s;
var r = unpacked.r;
checkValue(s, q);
checkValue(r, q);
var montp = BN.mont(p);
var w = s.invm(q);
var v = g.toRed(montp).redPow(new BN(hash).mul(w).mod(q)).fromRed().mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed()).mod(p).mod(q);
return v.cmp(r) === 0;
}
function checkValue(b, q) {
if (b.cmpn(0) <= 0) throw new Error('invalid sig');
if (b.cmp(q) >= q) throw new Error('invalid sig');
}
module.exports = verify;
}).call(this,require("buffer").Buffer)
},{"./curves.json":195,"bn.js":169,"buffer":201,"elliptic":225,"parse-asn1":287}],199:[function(require,module,exports){
'use strict';
// Base58 encoding/decoding
// Originally written by Mike Hearn for BitcoinJ
// Copyright (c) 2011 Google Inc
// Ported to JavaScript by Stefan Thomas
// Merged Buffer refactorings from base58-native by Stephen Pair
// Copyright (c) 2013 BitPay Inc
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
var ALPHABET_MAP = {};
for (var i = 0; i < ALPHABET.length; i++) {
ALPHABET_MAP[ALPHABET.charAt(i)] = i;
}
var BASE = 58;
function encode(buffer) {
if (buffer.length === 0) return '';
var i,
j,
digits = [0];
for (i = 0; i < buffer.length; i++) {
for (j = 0; j < digits.length; j++) {
digits[j] <<= 8;
}digits[0] += buffer[i];
var carry = 0;
for (j = 0; j < digits.length; ++j) {
digits[j] += carry;
carry = digits[j] / BASE | 0;
digits[j] %= BASE;
}
while (carry) {
digits.push(carry % BASE);
carry = carry / BASE | 0;
}
}
// deal with leading zeros
for (i = 0; buffer[i] === 0 && i < buffer.length - 1; i++) {
digits.push(0);
} // convert digits to a string
var stringOutput = "";
for (var i = digits.length - 1; i >= 0; i--) {
stringOutput = stringOutput + ALPHABET[digits[i]];
}
return stringOutput;
}
function decode(string) {
if (string.length === 0) return [];
var i,
j,
bytes = [0];
for (i = 0; i < string.length; i++) {
var c = string[i];
if (!(c in ALPHABET_MAP)) throw new Error('Non-base58 character');
for (j = 0; j < bytes.length; j++) {
bytes[j] *= BASE;
}bytes[0] += ALPHABET_MAP[c];
var carry = 0;
for (j = 0; j < bytes.length; ++j) {
bytes[j] += carry;
carry = bytes[j] >> 8;
bytes[j] &= 0xff;
}
while (carry) {
bytes.push(carry & 0xff);
carry >>= 8;
}
}
// deal with leading zeros
for (i = 0; string[i] === '1' && i < string.length - 1; i++) {
bytes.push(0);
}return bytes.reverse();
}
module.exports = {
encode: encode,
decode: decode
};
},{}],200:[function(require,module,exports){
(function (Buffer){
"use strict";
module.exports = function xor(a, b) {
var length = Math.min(a.length, b.length);
var buffer = new Buffer(length);
for (var i = 0; i < length; ++i) {
buffer[i] = a[i] ^ b[i];
}
return buffer;
};
}).call(this,require("buffer").Buffer)
},{"buffer":201}],201:[function(require,module,exports){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/* eslint-disable no-proto */
'use strict';
var base64 = require('base64-js');
var ieee754 = require('ieee754');
exports.Buffer = Buffer;
exports.SlowBuffer = SlowBuffer;
exports.INSPECT_MAX_BYTES = 50;
var K_MAX_LENGTH = 0x7fffffff;
exports.kMaxLength = K_MAX_LENGTH;
/**
* If `Buffer.TYPED_ARRAY_SUPPORT`:
* === true Use Uint8Array implementation (fastest)
* === false Print warning and recommend using `buffer` v4.x which has an Object
* implementation (most compatible, even IE6)
*
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
* Opera 11.6+, iOS 4.2+.
*
* We report that the browser does not support typed arrays if the are not subclassable
* using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`
* (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
* for __proto__ and has a buggy typed array implementation.
*/
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();
if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' && typeof console.error === 'function') {
console.error('This browser lacks typed array (Uint8Array) support which is required by ' + '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.');
}
function typedArraySupport() {
// Can typed array instances can be augmented?
try {
var arr = new Uint8Array(1);
arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function foo() {
return 42;
} };
return arr.foo() === 42;
} catch (e) {
return false;
}
}
function createBuffer(length) {
if (length > K_MAX_LENGTH) {
throw new RangeError('Invalid typed array length');
}
// Return an augmented `Uint8Array` instance
var buf = new Uint8Array(length);
buf.__proto__ = Buffer.prototype;
return buf;
}
/**
* The Buffer constructor returns instances of `Uint8Array` that have their
* prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
* `Uint8Array`, so the returned instances will have all the node `Buffer` methods
* and the `Uint8Array` methods. Square bracket notation works as expected -- it
* returns a single octet.
*
* The `Uint8Array` prototype remains unmodified.
*/
function Buffer(arg, encodingOrOffset, length) {
// Common case.
if (typeof arg === 'number') {
if (typeof encodingOrOffset === 'string') {
throw new Error('If encoding is specified then the first argument must be a string');
}
return allocUnsafe(arg);
}
return from(arg, encodingOrOffset, length);
}
// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
if (typeof Symbol !== 'undefined' && Symbol.species && Buffer[Symbol.species] === Buffer) {
Object.defineProperty(Buffer, Symbol.species, {
value: null,
configurable: true,
enumerable: false,
writable: false
});
}
Buffer.poolSize = 8192; // not used by this implementation
function from(value, encodingOrOffset, length) {
if (typeof value === 'number') {
throw new TypeError('"value" argument must not be a number');
}
if (isArrayBuffer(value)) {
return fromArrayBuffer(value, encodingOrOffset, length);
}
if (typeof value === 'string') {
return fromString(value, encodingOrOffset);
}
return fromObject(value);
}
/**
* Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
* if value is a number.
* Buffer.from(str[, encoding])
* Buffer.from(array)
* Buffer.from(buffer)
* Buffer.from(arrayBuffer[, byteOffset[, length]])
**/
Buffer.from = function (value, encodingOrOffset, length) {
return from(value, encodingOrOffset, length);
};
// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
// https://github.com/feross/buffer/pull/148
Buffer.prototype.__proto__ = Uint8Array.prototype;
Buffer.__proto__ = Uint8Array;
function assertSize(size) {
if (typeof size !== 'number') {
throw new TypeError('"size" argument must be a number');
} else if (size < 0) {
throw new RangeError('"size" argument must not be negative');
}
}
function alloc(size, fill, encoding) {
assertSize(size);
if (size <= 0) {
return createBuffer(size);
}
if (fill !== undefined) {
// Only pay attention to encoding if it's a string. This
// prevents accidentally sending in a number that would
// be interpretted as a start offset.
return typeof encoding === 'string' ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
}
return createBuffer(size);
}
/**
* Creates a new filled Buffer instance.
* alloc(size[, fill[, encoding]])
**/
Buffer.alloc = function (size, fill, encoding) {
return alloc(size, fill, encoding);
};
function allocUnsafe(size) {
assertSize(size);
return createBuffer(size < 0 ? 0 : checked(size) | 0);
}
/**
* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
* */
Buffer.allocUnsafe = function (size) {
return allocUnsafe(size);
};
/**
* Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
*/
Buffer.allocUnsafeSlow = function (size) {
return allocUnsafe(size);
};
function fromString(string, encoding) {
if (typeof encoding !== 'string' || encoding === '') {
encoding = 'utf8';
}
if (!Buffer.isEncoding(encoding)) {
throw new TypeError('"encoding" must be a valid string encoding');
}
var length = byteLength(string, encoding) | 0;
var buf = createBuffer(length);
var actual = buf.write(string, encoding);
if (actual !== length) {
// Writing a hex string, for example, that contains invalid characters will
// cause everything after the first invalid character to be ignored. (e.g.
// 'abxxcd' will be treated as 'ab')
buf = buf.slice(0, actual);
}
return buf;
}
function fromArrayLike(array) {
var length = array.length < 0 ? 0 : checked(array.length) | 0;
var buf = createBuffer(length);
for (var i = 0; i < length; i += 1) {
buf[i] = array[i] & 255;
}
return buf;
}
function fromArrayBuffer(array, byteOffset, length) {
if (byteOffset < 0 || array.byteLength < byteOffset) {
throw new RangeError('\'offset\' is out of bounds');
}
if (array.byteLength < byteOffset + (length || 0)) {
throw new RangeError('\'length\' is out of bounds');
}
var buf;
if (byteOffset === undefined && length === undefined) {
buf = new Uint8Array(array);
} else if (length === undefined) {
buf = new Uint8Array(array, byteOffset);
} else {
buf = new Uint8Array(array, byteOffset, length);
}
// Return an augmented `Uint8Array` instance
buf.__proto__ = Buffer.prototype;
return buf;
}
function fromObject(obj) {
if (Buffer.isBuffer(obj)) {
var len = checked(obj.length) | 0;
var buf = createBuffer(len);
if (buf.length === 0) {
return buf;
}
obj.copy(buf, 0, 0, len);
return buf;
}
if (obj) {
if (isArrayBufferView(obj) || 'length' in obj) {
if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
return createBuffer(0);
}
return fromArrayLike(obj);
}
if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
return fromArrayLike(obj.data);
}
}
throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
}
function checked(length) {
// Note: cannot use `length < K_MAX_LENGTH` here because that fails when
// length is NaN (which is otherwise coerced to zero.)
if (length >= K_MAX_LENGTH) {
throw new RangeError('Attempt to allocate Buffer larger than maximum ' + 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes');
}
return length | 0;
}
function SlowBuffer(length) {
if (+length != length) {
// eslint-disable-line eqeqeq
length = 0;
}
return Buffer.alloc(+length);
}
Buffer.isBuffer = function isBuffer(b) {
return b != null && b._isBuffer === true;
};
Buffer.compare = function compare(a, b) {
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
throw new TypeError('Arguments must be Buffers');
}
if (a === b) return 0;
var x = a.length;
var y = b.length;
for (var i = 0, len = Math.min(x, y); i < len; ++i) {
if (a[i] !== b[i]) {
x = a[i];
y = b[i];
break;
}
}
if (x < y) return -1;
if (y < x) return 1;
return 0;
};
Buffer.isEncoding = function isEncoding(encoding) {
switch (String(encoding).toLowerCase()) {
case 'hex':
case 'utf8':
case 'utf-8':
case 'ascii':
case 'latin1':
case 'binary':
case 'base64':
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return true;
default:
return false;
}
};
Buffer.concat = function concat(list, length) {
if (!Array.isArray(list)) {
throw new TypeError('"list" argument must be an Array of Buffers');
}
if (list.length === 0) {
return Buffer.alloc(0);
}
var i;
if (length === undefined) {
length = 0;
for (i = 0; i < list.length; ++i) {
length += list[i].length;
}
}
var buffer = Buffer.allocUnsafe(length);
var pos = 0;
for (i = 0; i < list.length; ++i) {
var buf = list[i];
if (!Buffer.isBuffer(buf)) {
throw new TypeError('"list" argument must be an Array of Buffers');
}
buf.copy(buffer, pos);
pos += buf.length;
}
return buffer;
};
function byteLength(string, encoding) {
if (Buffer.isBuffer(string)) {
return string.length;
}
if (isArrayBufferView(string) || isArrayBuffer(string)) {
return string.byteLength;
}
if (typeof string !== 'string') {
string = '' + string;
}
var len = string.length;
if (len === 0) return 0;
// Use a for loop to avoid recursion
var loweredCase = false;
for (;;) {
switch (encoding) {
case 'ascii':
case 'latin1':
case 'binary':
return len;
case 'utf8':
case 'utf-8':
case undefined:
return utf8ToBytes(string).length;
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return len * 2;
case 'hex':
return len >>> 1;
case 'base64':
return base64ToBytes(string).length;
default:
if (loweredCase) return utf8ToBytes(string).length; // assume utf8
encoding = ('' + encoding).toLowerCase();
loweredCase = true;
}
}
}
Buffer.byteLength = byteLength;
function slowToString(encoding, start, end) {
var loweredCase = false;
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
// property of a typed array.
// This behaves neither like String nor Uint8Array in that we set start/end
// to their upper/lower bounds if the value passed is out of range.
// undefined is handled specially as per ECMA-262 6th Edition,
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
if (start === undefined || start < 0) {
start = 0;
}
// Return early if start > this.length. Done here to prevent potential uint32
// coercion fail below.
if (start > this.length) {
return '';
}
if (end === undefined || end > this.length) {
end = this.length;
}
if (end <= 0) {
return '';
}
// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
end >>>= 0;
start >>>= 0;
if (end <= start) {
return '';
}
if (!encoding) encoding = 'utf8';
while (true) {
switch (encoding) {
case 'hex':
return hexSlice(this, start, end);
case 'utf8':
case 'utf-8':
return utf8Slice(this, start, end);
case 'ascii':
return asciiSlice(this, start, end);
case 'latin1':
case 'binary':
return latin1Slice(this, start, end);
case 'base64':
return base64Slice(this, start, end);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return utf16leSlice(this, start, end);
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);
encoding = (encoding + '').toLowerCase();
loweredCase = true;
}
}
}
// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)
// to detect a Buffer instance. It's not possible to use `instanceof Buffer`
// reliably in a browserify context because there could be multiple different
// copies of the 'buffer' package in use. This method works even for Buffer
// instances that were created from another copy of the `buffer` package.
// See: https://github.com/feross/buffer/issues/154
Buffer.prototype._isBuffer = true;
function swap(b, n, m) {
var i = b[n];
b[n] = b[m];
b[m] = i;
}
Buffer.prototype.swap16 = function swap16() {
var len = this.length;
if (len % 2 !== 0) {
throw new RangeError('Buffer size must be a multiple of 16-bits');
}
for (var i = 0; i < len; i += 2) {
swap(this, i, i + 1);
}
return this;
};
Buffer.prototype.swap32 = function swap32() {
var len = this.length;
if (len % 4 !== 0) {
throw new RangeError('Buffer size must be a multiple of 32-bits');
}
for (var i = 0; i < len; i += 4) {
swap(this, i, i + 3);
swap(this, i + 1, i + 2);
}
return this;
};
Buffer.prototype.swap64 = function swap64() {
var len = this.length;
if (len % 8 !== 0) {
throw new RangeError('Buffer size must be a multiple of 64-bits');
}
for (var i = 0; i < len; i += 8) {
swap(this, i, i + 7);
swap(this, i + 1, i + 6);
swap(this, i + 2, i + 5);
swap(this, i + 3, i + 4);
}
return this;
};
Buffer.prototype.toString = function toString() {
var length = this.length;
if (length === 0) return '';
if (arguments.length === 0) return utf8Slice(this, 0, length);
return slowToString.apply(this, arguments);
};
Buffer.prototype.equals = function equals(b) {
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer');
if (this === b) return true;
return Buffer.compare(this, b) === 0;
};
Buffer.prototype.inspect = function inspect() {
var str = '';
var max = exports.INSPECT_MAX_BYTES;
if (this.length > 0) {
str = this.toString('hex', 0, max).match(/.{2}/g).join(' ');
if (this.length > max) str += ' ... ';
}
return '<Buffer ' + str + '>';
};
Buffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
if (!Buffer.isBuffer(target)) {
throw new TypeError('Argument must be a Buffer');
}
if (start === undefined) {
start = 0;
}
if (end === undefined) {
end = target ? target.length : 0;
}
if (thisStart === undefined) {
thisStart = 0;
}
if (thisEnd === undefined) {
thisEnd = this.length;
}
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
throw new RangeError('out of range index');
}
if (thisStart >= thisEnd && start >= end) {
return 0;
}
if (thisStart >= thisEnd) {
return -1;
}
if (start >= end) {
return 1;
}
start >>>= 0;
end >>>= 0;
thisStart >>>= 0;
thisEnd >>>= 0;
if (this === target) return 0;
var x = thisEnd - thisStart;
var y = end - start;
var len = Math.min(x, y);
var thisCopy = this.slice(thisStart, thisEnd);
var targetCopy = target.slice(start, end);
for (var i = 0; i < len; ++i) {
if (thisCopy[i] !== targetCopy[i]) {
x = thisCopy[i];
y = targetCopy[i];
break;
}
}
if (x < y) return -1;
if (y < x) return 1;
return 0;
};
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
//
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
// Empty buffer means no match
if (buffer.length === 0) return -1;
// Normalize byteOffset
if (typeof byteOffset === 'string') {
encoding = byteOffset;
byteOffset = 0;
} else if (byteOffset > 0x7fffffff) {
byteOffset = 0x7fffffff;
} else if (byteOffset < -0x80000000) {
byteOffset = -0x80000000;
}
byteOffset = +byteOffset; // Coerce to Number.
if (numberIsNaN(byteOffset)) {
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
byteOffset = dir ? 0 : buffer.length - 1;
}
// Normalize byteOffset: negative offsets start from the end of the buffer
if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
if (byteOffset >= buffer.length) {
if (dir) return -1;else byteOffset = buffer.length - 1;
} else if (byteOffset < 0) {
if (dir) byteOffset = 0;else return -1;
}
// Normalize val
if (typeof val === 'string') {
val = Buffer.from(val, encoding);
}
// Finally, search either indexOf (if dir is true) or lastIndexOf
if (Buffer.isBuffer(val)) {
// Special case: looking for empty string/buffer always fails
if (val.length === 0) {
return -1;
}
return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
} else if (typeof val === 'number') {
val = val & 0xFF; // Search for a byte value [0-255]
if (typeof Uint8Array.prototype.indexOf === 'function') {
if (dir) {
return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
} else {
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
}
}
return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);
}
throw new TypeError('val must be string, number or Buffer');
}
function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
var indexSize = 1;
var arrLength = arr.length;
var valLength = val.length;
if (encoding !== undefined) {
encoding = String(encoding).toLowerCase();
if (encoding === 'ucs2' || encoding === 'ucs-2' || encoding === 'utf16le' || encoding === 'utf-16le') {
if (arr.length < 2 || val.length < 2) {
return -1;
}
indexSize = 2;
arrLength /= 2;
valLength /= 2;
byteOffset /= 2;
}
}
function read(buf, i) {
if (indexSize === 1) {
return buf[i];
} else {
return buf.readUInt16BE(i * indexSize);
}
}
var i;
if (dir) {
var foundIndex = -1;
for (i = byteOffset; i < arrLength; i++) {
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
if (foundIndex === -1) foundIndex = i;
if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
} else {
if (foundIndex !== -1) i -= i - foundIndex;
foundIndex = -1;
}
}
} else {
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
for (i = byteOffset; i >= 0; i--) {
var found = true;
for (var j = 0; j < valLength; j++) {
if (read(arr, i + j) !== read(val, j)) {
found = false;
break;
}
}
if (found) return i;
}
}
return -1;
}
Buffer.prototype.includes = function includes(val, byteOffset, encoding) {
return this.indexOf(val, byteOffset, encoding) !== -1;
};
Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
};
Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
};
function hexWrite(buf, string, offset, length) {
offset = Number(offset) || 0;
var remaining = buf.length - offset;
if (!length) {
length = remaining;
} else {
length = Number(length);
if (length > remaining) {
length = remaining;
}
}
// must be an even number of digits
var strLen = string.length;
if (strLen % 2 !== 0) throw new TypeError('Invalid hex string');
if (length > strLen / 2) {
length = strLen / 2;
}
for (var i = 0; i < length; ++i) {
var parsed = parseInt(string.substr(i * 2, 2), 16);
if (numberIsNaN(parsed)) return i;
buf[offset + i] = parsed;
}
return i;
}
function utf8Write(buf, string, offset, length) {
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
}
function asciiWrite(buf, string, offset, length) {
return blitBuffer(asciiToBytes(string), buf, offset, length);
}
function latin1Write(buf, string, offset, length) {
return asciiWrite(buf, string, offset, length);
}
function base64Write(buf, string, offset, length) {
return blitBuffer(base64ToBytes(string), buf, offset, length);
}
function ucs2Write(buf, string, offset, length) {
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
}
Buffer.prototype.write = function write(string, offset, length, encoding) {
// Buffer#write(string)
if (offset === undefined) {
encoding = 'utf8';
length = this.length;
offset = 0;
// Buffer#write(string, encoding)
} else if (length === undefined && typeof offset === 'string') {
encoding = offset;
length = this.length;
offset = 0;
// Buffer#write(string, offset[, length][, encoding])
} else if (isFinite(offset)) {
offset = offset >>> 0;
if (isFinite(length)) {
length = length >>> 0;
if (encoding === undefined) encoding = 'utf8';
} else {
encoding = length;
length = undefined;
}
} else {
throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');
}
var remaining = this.length - offset;
if (length === undefined || length > remaining) length = remaining;
if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
throw new RangeError('Attempt to write outside buffer bounds');
}
if (!encoding) encoding = 'utf8';
var loweredCase = false;
for (;;) {
switch (encoding) {
case 'hex':
return hexWrite(this, string, offset, length);
case 'utf8':
case 'utf-8':
return utf8Write(this, string, offset, length);
case 'ascii':
return asciiWrite(this, string, offset, length);
case 'latin1':
case 'binary':
return latin1Write(this, string, offset, length);
case 'base64':
// Warning: maxLength not taken into account in base64Write
return base64Write(this, string, offset, length);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return ucs2Write(this, string, offset, length);
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);
encoding = ('' + encoding).toLowerCase();
loweredCase = true;
}
}
};
Buffer.prototype.toJSON = function toJSON() {
return {
type: 'Buffer',
data: Array.prototype.slice.call(this._arr || this, 0)
};
};
function base64Slice(buf, start, end) {
if (start === 0 && end === buf.length) {
return base64.fromByteArray(buf);
} else {
return base64.fromByteArray(buf.slice(start, end));
}
}
function utf8Slice(buf, start, end) {
end = Math.min(buf.length, end);
var res = [];
var i = start;
while (i < end) {
var firstByte = buf[i];
var codePoint = null;
var bytesPerSequence = firstByte > 0xEF ? 4 : firstByte > 0xDF ? 3 : firstByte > 0xBF ? 2 : 1;
if (i + bytesPerSequence <= end) {
var secondByte, thirdByte, fourthByte, tempCodePoint;
switch (bytesPerSequence) {
case 1:
if (firstByte < 0x80) {
codePoint = firstByte;
}
break;
case 2:
secondByte = buf[i + 1];
if ((secondByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0x1F) << 0x6 | secondByte & 0x3F;
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint;
}
}
break;
case 3:
secondByte = buf[i + 1];
thirdByte = buf[i + 2];
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | thirdByte & 0x3F;
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint;
}
}
break;
case 4:
secondByte = buf[i + 1];
thirdByte = buf[i + 2];
fourthByte = buf[i + 3];
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | fourthByte & 0x3F;
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint;
}
}
}
}
if (codePoint === null) {
// we did not generate a valid codePoint so insert a
// replacement char (U+FFFD) and advance only 1 byte
codePoint = 0xFFFD;
bytesPerSequence = 1;
} else if (codePoint > 0xFFFF) {
// encode to utf16 (surrogate pair dance)
codePoint -= 0x10000;
res.push(codePoint >>> 10 & 0x3FF | 0xD800);
codePoint = 0xDC00 | codePoint & 0x3FF;
}
res.push(codePoint);
i += bytesPerSequence;
}
return decodeCodePointsArray(res);
}
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
var MAX_ARGUMENTS_LENGTH = 0x1000;
function decodeCodePointsArray(codePoints) {
var len = codePoints.length;
if (len <= MAX_ARGUMENTS_LENGTH) {
return String.fromCharCode.apply(String, codePoints); // avoid extra slice()
}
// Decode in chunks to avoid "call stack size exceeded".
var res = '';
var i = 0;
while (i < len) {
res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
}
return res;
}
function asciiSlice(buf, start, end) {
var ret = '';
end = Math.min(buf.length, end);
for (var i = start; i < end; ++i) {
ret += String.fromCharCode(buf[i] & 0x7F);
}
return ret;
}
function latin1Slice(buf, start, end) {
var ret = '';
end = Math.min(buf.length, end);
for (var i = start; i < end; ++i) {
ret += String.fromCharCode(buf[i]);
}
return ret;
}
function hexSlice(buf, start, end) {
var len = buf.length;
if (!start || start < 0) start = 0;
if (!end || end < 0 || end > len) end = len;
var out = '';
for (var i = start; i < end; ++i) {
out += toHex(buf[i]);
}
return out;
}
function utf16leSlice(buf, start, end) {
var bytes = buf.slice(start, end);
var res = '';
for (var i = 0; i < bytes.length; i += 2) {
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
}
return res;
}
Buffer.prototype.slice = function slice(start, end) {
var len = this.length;
start = ~~start;
end = end === undefined ? len : ~~end;
if (start < 0) {
start += len;
if (start < 0) start = 0;
} else if (start > len) {
start = len;
}
if (end < 0) {
end += len;
if (end < 0) end = 0;
} else if (end > len) {
end = len;
}
if (end < start) end = start;
var newBuf = this.subarray(start, end);
// Return an augmented `Uint8Array` instance
newBuf.__proto__ = Buffer.prototype;
return newBuf;
};
/*
* Need to make sure that buffer isn't trying to write out of bounds.
*/
function checkOffset(offset, ext, length) {
if (offset % 1 !== 0 || offset < 0) throw new RangeError('offset is not uint');
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length');
}
Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) {
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var val = this[offset];
var mul = 1;
var i = 0;
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul;
}
return val;
};
Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) {
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) {
checkOffset(offset, byteLength, this.length);
}
var val = this[offset + --byteLength];
var mul = 1;
while (byteLength > 0 && (mul *= 0x100)) {
val += this[offset + --byteLength] * mul;
}
return val;
};
Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 1, this.length);
return this[offset];
};
Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 2, this.length);
return this[offset] | this[offset + 1] << 8;
};
Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 2, this.length);
return this[offset] << 8 | this[offset + 1];
};
Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 0x1000000;
};
Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return this[offset] * 0x1000000 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
};
Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var val = this[offset];
var mul = 1;
var i = 0;
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul;
}
mul *= 0x80;
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
return val;
};
Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var i = byteLength;
var mul = 1;
var val = this[offset + --i];
while (i > 0 && (mul *= 0x100)) {
val += this[offset + --i] * mul;
}
mul *= 0x80;
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
return val;
};
Buffer.prototype.readInt8 = function readInt8(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 1, this.length);
if (!(this[offset] & 0x80)) return this[offset];
return (0xff - this[offset] + 1) * -1;
};
Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 2, this.length);
var val = this[offset] | this[offset + 1] << 8;
return val & 0x8000 ? val | 0xFFFF0000 : val;
};
Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 2, this.length);
var val = this[offset + 1] | this[offset] << 8;
return val & 0x8000 ? val | 0xFFFF0000 : val;
};
Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
};
Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
};
Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return ieee754.read(this, offset, true, 23, 4);
};
Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 4, this.length);
return ieee754.read(this, offset, false, 23, 4);
};
Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 8, this.length);
return ieee754.read(this, offset, true, 52, 8);
};
Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
offset = offset >>> 0;
if (!noAssert) checkOffset(offset, 8, this.length);
return ieee754.read(this, offset, false, 52, 8);
};
function checkInt(buf, value, offset, ext, max, min) {
if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
if (offset + ext > buf.length) throw new RangeError('Index out of range');
}
Buffer.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength, noAssert) {
value = +value;
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) {
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
checkInt(this, value, offset, byteLength, maxBytes, 0);
}
var mul = 1;
var i = 0;
this[offset] = value & 0xFF;
while (++i < byteLength && (mul *= 0x100)) {
this[offset + i] = value / mul & 0xFF;
}
return offset + byteLength;
};
Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) {
value = +value;
offset = offset >>> 0;
byteLength = byteLength >>> 0;
if (!noAssert) {
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
checkInt(this, value, offset, byteLength, maxBytes, 0);
}
var i = byteLength - 1;
var mul = 1;
this[offset + i] = value & 0xFF;
while (--i >= 0 && (mul *= 0x100)) {
this[offset + i] = value / mul & 0xFF;
}
return offset + byteLength;
};
Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);
this[offset] = value & 0xff;
return offset + 1;
};
Buffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
this[offset] = value & 0xff;
this[offset + 1] = value >>> 8;
return offset + 2;
};
Buffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
this[offset] = value >>> 8;
this[offset + 1] = value & 0xff;
return offset + 2;
};
Buffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
this[offset + 3] = value >>> 24;
this[offset + 2] = value >>> 16;
this[offset + 1] = value >>> 8;
this[offset] = value & 0xff;
return offset + 4;
};
Buffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
this[offset] = value >>> 24;
this[offset + 1] = value >>> 16;
this[offset + 2] = value >>> 8;
this[offset + 3] = value & 0xff;
return offset + 4;
};
Buffer.prototype.writeIntLE = function writeIntLE(value, offset, byteLength, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1);
checkInt(this, value, offset, byteLength, limit - 1, -limit);
}
var i = 0;
var mul = 1;
var sub = 0;
this[offset] = value & 0xFF;
while (++i < byteLength && (mul *= 0x100)) {
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
sub = 1;
}
this[offset + i] = (value / mul >> 0) - sub & 0xFF;
}
return offset + byteLength;
};
Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1);
checkInt(this, value, offset, byteLength, limit - 1, -limit);
}
var i = byteLength - 1;
var mul = 1;
var sub = 0;
this[offset + i] = value & 0xFF;
while (--i >= 0 && (mul *= 0x100)) {
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
sub = 1;
}
this[offset + i] = (value / mul >> 0) - sub & 0xFF;
}
return offset + byteLength;
};
Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);
if (value < 0) value = 0xff + value + 1;
this[offset] = value & 0xff;
return offset + 1;
};
Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
this[offset] = value & 0xff;
this[offset + 1] = value >>> 8;
return offset + 2;
};
Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
this[offset] = value >>> 8;
this[offset + 1] = value & 0xff;
return offset + 2;
};
Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
this[offset] = value & 0xff;
this[offset + 1] = value >>> 8;
this[offset + 2] = value >>> 16;
this[offset + 3] = value >>> 24;
return offset + 4;
};
Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
if (value < 0) value = 0xffffffff + value + 1;
this[offset] = value >>> 24;
this[offset + 1] = value >>> 16;
this[offset + 2] = value >>> 8;
this[offset + 3] = value & 0xff;
return offset + 4;
};
function checkIEEE754(buf, value, offset, ext, max, min) {
if (offset + ext > buf.length) throw new RangeError('Index out of range');
if (offset < 0) throw new RangeError('Index out of range');
}
function writeFloat(buf, value, offset, littleEndian, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) {
checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);
}
ieee754.write(buf, value, offset, littleEndian, 23, 4);
return offset + 4;
}
Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
return writeFloat(this, value, offset, true, noAssert);
};
Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
return writeFloat(this, value, offset, false, noAssert);
};
function writeDouble(buf, value, offset, littleEndian, noAssert) {
value = +value;
offset = offset >>> 0;
if (!noAssert) {
checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308);
}
ieee754.write(buf, value, offset, littleEndian, 52, 8);
return offset + 8;
}
Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
return writeDouble(this, value, offset, true, noAssert);
};
Buffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
return writeDouble(this, value, offset, false, noAssert);
};
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function copy(target, targetStart, start, end) {
if (!start) start = 0;
if (!end && end !== 0) end = this.length;
if (targetStart >= target.length) targetStart = target.length;
if (!targetStart) targetStart = 0;
if (end > 0 && end < start) end = start;
// Copy 0 bytes; we're done
if (end === start) return 0;
if (target.length === 0 || this.length === 0) return 0;
// Fatal error conditions
if (targetStart < 0) {
throw new RangeError('targetStart out of bounds');
}
if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds');
if (end < 0) throw new RangeError('sourceEnd out of bounds');
// Are we oob?
if (end > this.length) end = this.length;
if (target.length - targetStart < end - start) {
end = target.length - targetStart + start;
}
var len = end - start;
var i;
if (this === target && start < targetStart && targetStart < end) {
// descending copy from end
for (i = len - 1; i >= 0; --i) {
target[i + targetStart] = this[i + start];
}
} else if (len < 1000) {
// ascending copy from start
for (i = 0; i < len; ++i) {
target[i + targetStart] = this[i + start];
}
} else {
Uint8Array.prototype.set.call(target, this.subarray(start, start + len), targetStart);
}
return len;
};
// Usage:
// buffer.fill(number[, offset[, end]])
// buffer.fill(buffer[, offset[, end]])
// buffer.fill(string[, offset[, end]][, encoding])
Buffer.prototype.fill = function fill(val, start, end, encoding) {
// Handle string cases:
if (typeof val === 'string') {
if (typeof start === 'string') {
encoding = start;
start = 0;
end = this.length;
} else if (typeof end === 'string') {
encoding = end;
end = this.length;
}
if (val.length === 1) {
var code = val.charCodeAt(0);
if (code < 256) {
val = code;
}
}
if (encoding !== undefined && typeof encoding !== 'string') {
throw new TypeError('encoding must be a string');
}
if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
throw new TypeError('Unknown encoding: ' + encoding);
}
} else if (typeof val === 'number') {
val = val & 255;
}
// Invalid ranges are not set to a default, so can range check early.
if (start < 0 || this.length < start || this.length < end) {
throw new RangeError('Out of range index');
}
if (end <= start) {
return this;
}
start = start >>> 0;
end = end === undefined ? this.length : end >>> 0;
if (!val) val = 0;
var i;
if (typeof val === 'number') {
for (i = start; i < end; ++i) {
this[i] = val;
}
} else {
var bytes = Buffer.isBuffer(val) ? val : new Buffer(val, encoding);
var len = bytes.length;
for (i = 0; i < end - start; ++i) {
this[i + start] = bytes[i % len];
}
}
return this;
};
// HELPER FUNCTIONS
// ================
var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
function base64clean(str) {
// Node strips out invalid characters like \n and \t from the string, base64-js does not
str = str.trim().replace(INVALID_BASE64_RE, '');
// Node converts strings with length < 2 to ''
if (str.length < 2) return '';
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
while (str.length % 4 !== 0) {
str = str + '=';
}
return str;
}
function toHex(n) {
if (n < 16) return '0' + n.toString(16);
return n.toString(16);
}
function utf8ToBytes(string, units) {
units = units || Infinity;
var codePoint;
var length = string.length;
var leadSurrogate = null;
var bytes = [];
for (var i = 0; i < length; ++i) {
codePoint = string.charCodeAt(i);
// is surrogate component
if (codePoint > 0xD7FF && codePoint < 0xE000) {
// last char was a lead
if (!leadSurrogate) {
// no lead yet
if (codePoint > 0xDBFF) {
// unexpected trail
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
continue;
} else if (i + 1 === length) {
// unpaired lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
continue;
}
// valid lead
leadSurrogate = codePoint;
continue;
}
// 2 leads in a row
if (codePoint < 0xDC00) {
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
leadSurrogate = codePoint;
continue;
}
// valid surrogate pair
codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000;
} else if (leadSurrogate) {
// valid bmp char, but last char was a lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
}
leadSurrogate = null;
// encode utf8
if (codePoint < 0x80) {
if ((units -= 1) < 0) break;
bytes.push(codePoint);
} else if (codePoint < 0x800) {
if ((units -= 2) < 0) break;
bytes.push(codePoint >> 0x6 | 0xC0, codePoint & 0x3F | 0x80);
} else if (codePoint < 0x10000) {
if ((units -= 3) < 0) break;
bytes.push(codePoint >> 0xC | 0xE0, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80);
} else if (codePoint < 0x110000) {
if ((units -= 4) < 0) break;
bytes.push(codePoint >> 0x12 | 0xF0, codePoint >> 0xC & 0x3F | 0x80, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80);
} else {
throw new Error('Invalid code point');
}
}
return bytes;
}
function asciiToBytes(str) {
var byteArray = [];
for (var i = 0; i < str.length; ++i) {
// Node's code seems to be doing this and not & 0x7F..
byteArray.push(str.charCodeAt(i) & 0xFF);
}
return byteArray;
}
function utf16leToBytes(str, units) {
var c, hi, lo;
var byteArray = [];
for (var i = 0; i < str.length; ++i) {
if ((units -= 2) < 0) break;
c = str.charCodeAt(i);
hi = c >> 8;
lo = c % 256;
byteArray.push(lo);
byteArray.push(hi);
}
return byteArray;
}
function base64ToBytes(str) {
return base64.toByteArray(base64clean(str));
}
function blitBuffer(src, dst, offset, length) {
for (var i = 0; i < length; ++i) {
if (i + offset >= dst.length || i >= src.length) break;
dst[i + offset] = src[i];
}
return i;
}
// ArrayBuffers from another context (i.e. an iframe) do not pass the `instanceof` check
// but they should be treated as valid. See: https://github.com/feross/buffer/issues/166
function isArrayBuffer(obj) {
return obj instanceof ArrayBuffer || obj != null && obj.constructor != null && obj.constructor.name === 'ArrayBuffer' && typeof obj.byteLength === 'number';
}
// Node 0.10 supports `ArrayBuffer` but lacks `ArrayBuffer.isView`
function isArrayBufferView(obj) {
return typeof ArrayBuffer.isView === 'function' && ArrayBuffer.isView(obj);
}
function numberIsNaN(obj) {
return obj !== obj; // eslint-disable-line no-self-compare
}
},{"base64-js":157,"ieee754":264}],202:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var Transform = require('stream').Transform;
var StringDecoder = require('string_decoder').StringDecoder;
var inherits = require('inherits');
function CipherBase(hashMode) {
Transform.call(this);
this.hashMode = typeof hashMode === 'string';
if (this.hashMode) {
this[hashMode] = this._finalOrDigest;
} else {
this.final = this._finalOrDigest;
}
if (this._final) {
this.__final = this._final;
this._final = null;
}
this._decoder = null;
this._encoding = null;
}
inherits(CipherBase, Transform);
CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
if (typeof data === 'string') {
data = Buffer.from(data, inputEnc);
}
var outData = this._update(data);
if (this.hashMode) return this;
if (outputEnc) {
outData = this._toString(outData, outputEnc);
}
return outData;
};
CipherBase.prototype.setAutoPadding = function () {};
CipherBase.prototype.getAuthTag = function () {
throw new Error('trying to get auth tag in unsupported state');
};
CipherBase.prototype.setAuthTag = function () {
throw new Error('trying to set auth tag in unsupported state');
};
CipherBase.prototype.setAAD = function () {
throw new Error('trying to set aad in unsupported state');
};
CipherBase.prototype._transform = function (data, _, next) {
var err;
try {
if (this.hashMode) {
this._update(data);
} else {
this.push(this._update(data));
}
} catch (e) {
err = e;
} finally {
next(err);
}
};
CipherBase.prototype._flush = function (done) {
var err;
try {
this.push(this.__final());
} catch (e) {
err = e;
}
done(err);
};
CipherBase.prototype._finalOrDigest = function (outputEnc) {
var outData = this.__final() || Buffer.alloc(0);
if (outputEnc) {
outData = this._toString(outData, outputEnc, true);
}
return outData;
};
CipherBase.prototype._toString = function (value, enc, fin) {
if (!this._decoder) {
this._decoder = new StringDecoder(enc);
this._encoding = enc;
}
if (this._encoding !== enc) throw new Error('can\'t switch encodings');
var out = this._decoder.write(value);
if (fin) {
out += this._decoder.end();
}
return out;
};
module.exports = CipherBase;
},{"inherits":266,"safe-buffer":319,"stream":335,"string_decoder":337}],203:[function(require,module,exports){
(function (Buffer){
'use strict';
var base58 = require('bs58');
var createHash = require('create-hash');
function encode(payload, version) {
if (Array.isArray(payload) || payload instanceof Uint8Array) {
payload = new Buffer(payload);
}
var buf;
if (version != null) {
if (typeof version === 'number') {
version = new Buffer([version]);
}
buf = Buffer.concat([version, payload]);
} else {
buf = payload;
}
var checksum = sha256x2(buf).slice(0, 4);
var result = Buffer.concat([buf, checksum]);
return base58.encode(result);
}
function decode(base58str, version) {
var arr = base58.decode(base58str);
var buf = new Buffer(arr);
var versionLength;
if (version == null) {
versionLength = 0;
} else {
if (typeof version === 'number') version = new Buffer([version]);
versionLength = version.length;
var versionCompare = buf.slice(0, versionLength);
if (versionCompare.toString('hex') !== version.toString('hex')) {
throw new Error('Invalid version');
}
}
var checksum = buf.slice(-4);
var endPos = buf.length - 4;
var bytes = buf.slice(0, endPos);
var newChecksum = sha256x2(bytes).slice(0, 4);
if (checksum.toString('hex') !== newChecksum.toString('hex')) {
throw new Error('Invalid checksum');
}
return bytes.slice(versionLength);
}
function isValid(base58str, version) {
try {
decode(base58str, version);
} catch (e) {
return false;
}
return true;
}
function createEncoder(version) {
return function (payload) {
return encode(payload, version);
};
}
function createDecoder(version) {
return function (base58str) {
return decode(base58str, version);
};
}
function createValidator(version) {
return function (base58str) {
return isValid(base58str, version);
};
}
function sha256x2(buffer) {
var sha = createHash('sha256').update(buffer).digest();
return createHash('sha256').update(sha).digest();
}
module.exports = {
encode: encode,
decode: decode,
isValid: isValid,
createEncoder: createEncoder,
createDecoder: createDecoder,
createValidator: createValidator
};
}).call(this,require("buffer").Buffer)
},{"bs58":199,"buffer":201,"create-hash":206}],204:[function(require,module,exports){
(function (Buffer){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(arg) {
if (Array.isArray) {
return Array.isArray(arg);
}
return objectToString(arg) === '[object Array]';
}
exports.isArray = isArray;
function isBoolean(arg) {
return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;
function isNull(arg) {
return arg === null;
}
exports.isNull = isNull;
function isNullOrUndefined(arg) {
return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;
function isNumber(arg) {
return typeof arg === 'number';
}
exports.isNumber = isNumber;
function isString(arg) {
return typeof arg === 'string';
}
exports.isString = isString;
function isSymbol(arg) {
return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol';
}
exports.isSymbol = isSymbol;
function isUndefined(arg) {
return arg === void 0;
}
exports.isUndefined = isUndefined;
function isRegExp(re) {
return objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;
function isObject(arg) {
return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null;
}
exports.isObject = isObject;
function isDate(d) {
return objectToString(d) === '[object Date]';
}
exports.isDate = isDate;
function isError(e) {
return objectToString(e) === '[object Error]' || e instanceof Error;
}
exports.isError = isError;
function isFunction(arg) {
return typeof arg === 'function';
}
exports.isFunction = isFunction;
function isPrimitive(arg) {
return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;
exports.isBuffer = Buffer.isBuffer;
function objectToString(o) {
return Object.prototype.toString.call(o);
}
}).call(this,{"isBuffer":require("../../is-buffer/index.js")})
},{"../../is-buffer/index.js":267}],205:[function(require,module,exports){
(function (Buffer){
'use strict';
var elliptic = require('elliptic');
var BN = require('bn.js');
module.exports = function createECDH(curve) {
return new ECDH(curve);
};
var aliases = {
secp256k1: {
name: 'secp256k1',
byteLength: 32
},
secp224r1: {
name: 'p224',
byteLength: 28
},
prime256v1: {
name: 'p256',
byteLength: 32
},
prime192v1: {
name: 'p192',
byteLength: 24
},
ed25519: {
name: 'ed25519',
byteLength: 32
},
secp384r1: {
name: 'p384',
byteLength: 48
},
secp521r1: {
name: 'p521',
byteLength: 66
}
};
aliases.p224 = aliases.secp224r1;
aliases.p256 = aliases.secp256r1 = aliases.prime256v1;
aliases.p192 = aliases.secp192r1 = aliases.prime192v1;
aliases.p384 = aliases.secp384r1;
aliases.p521 = aliases.secp521r1;
function ECDH(curve) {
this.curveType = aliases[curve];
if (!this.curveType) {
this.curveType = {
name: curve
};
}
this.curve = new elliptic.ec(this.curveType.name);
this.keys = void 0;
}
ECDH.prototype.generateKeys = function (enc, format) {
this.keys = this.curve.genKeyPair();
return this.getPublicKey(enc, format);
};
ECDH.prototype.computeSecret = function (other, inenc, enc) {
inenc = inenc || 'utf8';
if (!Buffer.isBuffer(other)) {
other = new Buffer(other, inenc);
}
var otherPub = this.curve.keyFromPublic(other).getPublic();
var out = otherPub.mul(this.keys.getPrivate()).getX();
return formatReturnValue(out, enc, this.curveType.byteLength);
};
ECDH.prototype.getPublicKey = function (enc, format) {
var key = this.keys.getPublic(format === 'compressed', true);
if (format === 'hybrid') {
if (key[key.length - 1] % 2) {
key[0] = 7;
} else {
key[0] = 6;
}
}
return formatReturnValue(key, enc);
};
ECDH.prototype.getPrivateKey = function (enc) {
return formatReturnValue(this.keys.getPrivate(), enc);
};
ECDH.prototype.setPublicKey = function (pub, enc) {
enc = enc || 'utf8';
if (!Buffer.isBuffer(pub)) {
pub = new Buffer(pub, enc);
}
this.keys._importPublic(pub);
return this;
};
ECDH.prototype.setPrivateKey = function (priv, enc) {
enc = enc || 'utf8';
if (!Buffer.isBuffer(priv)) {
priv = new Buffer(priv, enc);
}
var _priv = new BN(priv);
_priv = _priv.toString(16);
this.keys._importPrivate(_priv);
return this;
};
function formatReturnValue(bn, enc, len) {
if (!Array.isArray(bn)) {
bn = bn.toArray();
}
var buf = new Buffer(bn);
if (len && buf.length < len) {
var zeros = new Buffer(len - buf.length);
zeros.fill(0);
buf = Buffer.concat([zeros, buf]);
}
if (!enc) {
return buf;
} else {
return buf.toString(enc);
}
}
}).call(this,require("buffer").Buffer)
},{"bn.js":169,"buffer":201,"elliptic":225}],206:[function(require,module,exports){
(function (Buffer){
'use strict';
var inherits = require('inherits');
var md5 = require('./md5');
var RIPEMD160 = require('ripemd160');
var sha = require('sha.js');
var Base = require('cipher-base');
function HashNoConstructor(hash) {
Base.call(this, 'digest');
this._hash = hash;
this.buffers = [];
}
inherits(HashNoConstructor, Base);
HashNoConstructor.prototype._update = function (data) {
this.buffers.push(data);
};
HashNoConstructor.prototype._final = function () {
var buf = Buffer.concat(this.buffers);
var r = this._hash(buf);
this.buffers = null;
return r;
};
function Hash(hash) {
Base.call(this, 'digest');
this._hash = hash;
}
inherits(Hash, Base);
Hash.prototype._update = function (data) {
this._hash.update(data);
};
Hash.prototype._final = function () {
return this._hash.digest();
};
module.exports = function createHash(alg) {
alg = alg.toLowerCase();
if (alg === 'md5') return new HashNoConstructor(md5);
if (alg === 'rmd160' || alg === 'ripemd160') return new Hash(new RIPEMD160());
return new Hash(sha(alg));
};
}).call(this,require("buffer").Buffer)
},{"./md5":208,"buffer":201,"cipher-base":202,"inherits":266,"ripemd160":317,"sha.js":328}],207:[function(require,module,exports){
(function (Buffer){
'use strict';
var intSize = 4;
var zeroBuffer = new Buffer(intSize);
zeroBuffer.fill(0);
var charSize = 8;
var hashSize = 16;
function toArray(buf) {
if (buf.length % intSize !== 0) {
var len = buf.length + (intSize - buf.length % intSize);
buf = Buffer.concat([buf, zeroBuffer], len);
}
var arr = new Array(buf.length >>> 2);
for (var i = 0, j = 0; i < buf.length; i += intSize, j++) {
arr[j] = buf.readInt32LE(i);
}
return arr;
}
module.exports = function hash(buf, fn) {
var arr = fn(toArray(buf), buf.length * charSize);
buf = new Buffer(hashSize);
for (var i = 0; i < arr.length; i++) {
buf.writeInt32LE(arr[i], i << 2, true);
}
return buf;
};
}).call(this,require("buffer").Buffer)
},{"buffer":201}],208:[function(require,module,exports){
'use strict';
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
var makeHash = require('./make-hash');
/*
* Calculate the MD5 of an array of little-endian words, and a bit length
*/
function core_md5(x, len) {
/* append padding */
x[len >> 5] |= 0x80 << len % 32;
x[(len + 64 >>> 9 << 4) + 14] = len;
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
for (var i = 0; i < x.length; i += 16) {
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
a = md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i + 10], 17, -42063);
b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, b, c, d, x[i + 5], 4, -378558);
d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
d = md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
a = md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd);
}
return [a, b, c, d];
}
/*
* These functions implement the four basic operations the algorithm uses.
*/
function md5_cmn(q, a, b, x, s, t) {
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b);
}
function md5_ff(a, b, c, d, x, s, t) {
return md5_cmn(b & c | ~b & d, a, b, x, s, t);
}
function md5_gg(a, b, c, d, x, s, t) {
return md5_cmn(b & d | c & ~d, a, b, x, s, t);
}
function md5_hh(a, b, c, d, x, s, t) {
return md5_cmn(b ^ c ^ d, a, b, x, s, t);
}
function md5_ii(a, b, c, d, x, s, t) {
return md5_cmn(c ^ (b | ~d), a, b, x, s, t);
}
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function safe_add(x, y) {
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return msw << 16 | lsw & 0xFFFF;
}
/*
* Bitwise rotate a 32-bit number to the left.
*/
function bit_rol(num, cnt) {
return num << cnt | num >>> 32 - cnt;
}
module.exports = function md5(buf) {
return makeHash(buf, core_md5);
};
},{"./make-hash":207}],209:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var Legacy = require('./legacy');
var Base = require('cipher-base');
var Buffer = require('safe-buffer').Buffer;
var md5 = require('create-hash/md5');
var RIPEMD160 = require('ripemd160');
var sha = require('sha.js');
var ZEROS = Buffer.alloc(128);
function Hmac(alg, key) {
Base.call(this, 'digest');
if (typeof key === 'string') {
key = Buffer.from(key);
}
var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64;
this._alg = alg;
this._key = key;
if (key.length > blocksize) {
var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg);
key = hash.update(key).digest();
} else if (key.length < blocksize) {
key = Buffer.concat([key, ZEROS], blocksize);
}
var ipad = this._ipad = Buffer.allocUnsafe(blocksize);
var opad = this._opad = Buffer.allocUnsafe(blocksize);
for (var i = 0; i < blocksize; i++) {
ipad[i] = key[i] ^ 0x36;
opad[i] = key[i] ^ 0x5C;
}
this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg);
this._hash.update(ipad);
}
inherits(Hmac, Base);
Hmac.prototype._update = function (data) {
this._hash.update(data);
};
Hmac.prototype._final = function () {
var h = this._hash.digest();
var hash = this._alg === 'rmd160' ? new RIPEMD160() : sha(this._alg);
return hash.update(this._opad).update(h).digest();
};
module.exports = function createHmac(alg, key) {
alg = alg.toLowerCase();
if (alg === 'rmd160' || alg === 'ripemd160') {
return new Hmac('rmd160', key);
}
if (alg === 'md5') {
return new Legacy(md5, key);
}
return new Hmac(alg, key);
};
},{"./legacy":210,"cipher-base":202,"create-hash/md5":208,"inherits":266,"ripemd160":317,"safe-buffer":319,"sha.js":328}],210:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var Buffer = require('safe-buffer').Buffer;
var Base = require('cipher-base');
var ZEROS = Buffer.alloc(128);
var blocksize = 64;
function Hmac(alg, key) {
Base.call(this, 'digest');
if (typeof key === 'string') {
key = Buffer.from(key);
}
this._alg = alg;
this._key = key;
if (key.length > blocksize) {
key = alg(key);
} else if (key.length < blocksize) {
key = Buffer.concat([key, ZEROS], blocksize);
}
var ipad = this._ipad = Buffer.allocUnsafe(blocksize);
var opad = this._opad = Buffer.allocUnsafe(blocksize);
for (var i = 0; i < blocksize; i++) {
ipad[i] = key[i] ^ 0x36;
opad[i] = key[i] ^ 0x5C;
}
this._hash = [ipad];
}
inherits(Hmac, Base);
Hmac.prototype._update = function (data) {
this._hash.push(data);
};
Hmac.prototype._final = function () {
var h = this._alg(Buffer.concat(this._hash));
return this._alg(Buffer.concat([this._opad, h]));
};
module.exports = Hmac;
},{"cipher-base":202,"inherits":266,"safe-buffer":319}],211:[function(require,module,exports){
'use strict';
exports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = require('randombytes');
exports.createHash = exports.Hash = require('create-hash');
exports.createHmac = exports.Hmac = require('create-hmac');
var algos = require('browserify-sign/algos');
var algoKeys = Object.keys(algos);
var hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys);
exports.getHashes = function () {
return hashes;
};
var p = require('pbkdf2');
exports.pbkdf2 = p.pbkdf2;
exports.pbkdf2Sync = p.pbkdf2Sync;
var aes = require('browserify-cipher');
exports.Cipher = aes.Cipher;
exports.createCipher = aes.createCipher;
exports.Cipheriv = aes.Cipheriv;
exports.createCipheriv = aes.createCipheriv;
exports.Decipher = aes.Decipher;
exports.createDecipher = aes.createDecipher;
exports.Decipheriv = aes.Decipheriv;
exports.createDecipheriv = aes.createDecipheriv;
exports.getCiphers = aes.getCiphers;
exports.listCiphers = aes.listCiphers;
var dh = require('diffie-hellman');
exports.DiffieHellmanGroup = dh.DiffieHellmanGroup;
exports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup;
exports.getDiffieHellman = dh.getDiffieHellman;
exports.createDiffieHellman = dh.createDiffieHellman;
exports.DiffieHellman = dh.DiffieHellman;
var sign = require('browserify-sign');
exports.createSign = sign.createSign;
exports.Sign = sign.Sign;
exports.createVerify = sign.createVerify;
exports.Verify = sign.Verify;
exports.createECDH = require('create-ecdh');
var publicEncrypt = require('public-encrypt');
exports.publicEncrypt = publicEncrypt.publicEncrypt;
exports.privateEncrypt = publicEncrypt.privateEncrypt;
exports.publicDecrypt = publicEncrypt.publicDecrypt;
exports.privateDecrypt = publicEncrypt.privateDecrypt;
// the least I can do is make error messages for the rest of the node.js/crypto api.
// ;[
// 'createCredentials'
// ].forEach(function (name) {
// exports[name] = function () {
// throw new Error([
// 'sorry, ' + name + ' is not implemented yet',
// 'we accept pull requests',
// 'https://github.com/crypto-browserify/crypto-browserify'
// ].join('\n'))
// }
// })
var rf = require('randomfill');
exports.randomFill = rf.randomFill;
exports.randomFillSync = rf.randomFillSync;
exports.createCredentials = function () {
throw new Error(['sorry, createCredentials is not implemented yet', 'we accept pull requests', 'https://github.com/crypto-browserify/crypto-browserify'].join('\n'));
};
exports.constants = {
'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,
'ALPN_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
};
},{"browserify-cipher":189,"browserify-sign":196,"browserify-sign/algos":193,"create-ecdh":205,"create-hash":206,"create-hmac":209,"diffie-hellman":221,"pbkdf2":288,"public-encrypt":295,"randombytes":302,"randomfill":303}],212:[function(require,module,exports){
'use strict';
exports.utils = require('./des/utils');
exports.Cipher = require('./des/cipher');
exports.DES = require('./des/des');
exports.CBC = require('./des/cbc');
exports.EDE = require('./des/ede');
},{"./des/cbc":213,"./des/cipher":214,"./des/des":215,"./des/ede":216,"./des/utils":217}],213:[function(require,module,exports){
'use strict';
var assert = require('minimalistic-assert');
var inherits = require('inherits');
var proto = {};
function CBCState(iv) {
assert.equal(iv.length, 8, 'Invalid IV length');
this.iv = new Array(8);
for (var i = 0; i < this.iv.length; i++) {
this.iv[i] = iv[i];
}
}
function instantiate(Base) {
function CBC(options) {
Base.call(this, options);
this._cbcInit();
}
inherits(CBC, Base);
var keys = Object.keys(proto);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
CBC.prototype[key] = proto[key];
}
CBC.create = function create(options) {
return new CBC(options);
};
return CBC;
}
exports.instantiate = instantiate;
proto._cbcInit = function _cbcInit() {
var state = new CBCState(this.options.iv);
this._cbcState = state;
};
proto._update = function _update(inp, inOff, out, outOff) {
var state = this._cbcState;
var superProto = this.constructor.super_.prototype;
var iv = state.iv;
if (this.type === 'encrypt') {
for (var i = 0; i < this.blockSize; i++) {
iv[i] ^= inp[inOff + i];
}superProto._update.call(this, iv, 0, out, outOff);
for (var i = 0; i < this.blockSize; i++) {
iv[i] = out[outOff + i];
}
} else {
superProto._update.call(this, inp, inOff, out, outOff);
for (var i = 0; i < this.blockSize; i++) {
out[outOff + i] ^= iv[i];
}for (var i = 0; i < this.blockSize; i++) {
iv[i] = inp[inOff + i];
}
}
};
},{"inherits":266,"minimalistic-assert":281}],214:[function(require,module,exports){
'use strict';
var assert = require('minimalistic-assert');
function Cipher(options) {
this.options = options;
this.type = this.options.type;
this.blockSize = 8;
this._init();
this.buffer = new Array(this.blockSize);
this.bufferOff = 0;
}
module.exports = Cipher;
Cipher.prototype._init = function _init() {
// Might be overrided
};
Cipher.prototype.update = function update(data) {
if (data.length === 0) return [];
if (this.type === 'decrypt') return this._updateDecrypt(data);else return this._updateEncrypt(data);
};
Cipher.prototype._buffer = function _buffer(data, off) {
// Append data to buffer
var min = Math.min(this.buffer.length - this.bufferOff, data.length - off);
for (var i = 0; i < min; i++) {
this.buffer[this.bufferOff + i] = data[off + i];
}this.bufferOff += min;
// Shift next
return min;
};
Cipher.prototype._flushBuffer = function _flushBuffer(out, off) {
this._update(this.buffer, 0, out, off);
this.bufferOff = 0;
return this.blockSize;
};
Cipher.prototype._updateEncrypt = function _updateEncrypt(data) {
var inputOff = 0;
var outputOff = 0;
var count = (this.bufferOff + data.length) / this.blockSize | 0;
var out = new Array(count * this.blockSize);
if (this.bufferOff !== 0) {
inputOff += this._buffer(data, inputOff);
if (this.bufferOff === this.buffer.length) outputOff += this._flushBuffer(out, outputOff);
}
// Write blocks
var max = data.length - (data.length - inputOff) % this.blockSize;
for (; inputOff < max; inputOff += this.blockSize) {
this._update(data, inputOff, out, outputOff);
outputOff += this.blockSize;
}
// Queue rest
for (; inputOff < data.length; inputOff++, this.bufferOff++) {
this.buffer[this.bufferOff] = data[inputOff];
}return out;
};
Cipher.prototype._updateDecrypt = function _updateDecrypt(data) {
var inputOff = 0;
var outputOff = 0;
var count = Math.ceil((this.bufferOff + data.length) / this.blockSize) - 1;
var out = new Array(count * this.blockSize);
// TODO(indutny): optimize it, this is far from optimal
for (; count > 0; count--) {
inputOff += this._buffer(data, inputOff);
outputOff += this._flushBuffer(out, outputOff);
}
// Buffer rest of the input
inputOff += this._buffer(data, inputOff);
return out;
};
Cipher.prototype.final = function final(buffer) {
var first;
if (buffer) first = this.update(buffer);
var last;
if (this.type === 'encrypt') last = this._finalEncrypt();else last = this._finalDecrypt();
if (first) return first.concat(last);else return last;
};
Cipher.prototype._pad = function _pad(buffer, off) {
if (off === 0) return false;
while (off < buffer.length) {
buffer[off++] = 0;
}return true;
};
Cipher.prototype._finalEncrypt = function _finalEncrypt() {
if (!this._pad(this.buffer, this.bufferOff)) return [];
var out = new Array(this.blockSize);
this._update(this.buffer, 0, out, 0);
return out;
};
Cipher.prototype._unpad = function _unpad(buffer) {
return buffer;
};
Cipher.prototype._finalDecrypt = function _finalDecrypt() {
assert.equal(this.bufferOff, this.blockSize, 'Not enough data to decrypt');
var out = new Array(this.blockSize);
this._flushBuffer(out, 0);
return this._unpad(out);
};
},{"minimalistic-assert":281}],215:[function(require,module,exports){
'use strict';
var assert = require('minimalistic-assert');
var inherits = require('inherits');
var des = require('../des');
var utils = des.utils;
var Cipher = des.Cipher;
function DESState() {
this.tmp = new Array(2);
this.keys = null;
}
function DES(options) {
Cipher.call(this, options);
var state = new DESState();
this._desState = state;
this.deriveKeys(state, options.key);
}
inherits(DES, Cipher);
module.exports = DES;
DES.create = function create(options) {
return new DES(options);
};
var shiftTable = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1];
DES.prototype.deriveKeys = function deriveKeys(state, key) {
state.keys = new Array(16 * 2);
assert.equal(key.length, this.blockSize, 'Invalid key length');
var kL = utils.readUInt32BE(key, 0);
var kR = utils.readUInt32BE(key, 4);
utils.pc1(kL, kR, state.tmp, 0);
kL = state.tmp[0];
kR = state.tmp[1];
for (var i = 0; i < state.keys.length; i += 2) {
var shift = shiftTable[i >>> 1];
kL = utils.r28shl(kL, shift);
kR = utils.r28shl(kR, shift);
utils.pc2(kL, kR, state.keys, i);
}
};
DES.prototype._update = function _update(inp, inOff, out, outOff) {
var state = this._desState;
var l = utils.readUInt32BE(inp, inOff);
var r = utils.readUInt32BE(inp, inOff + 4);
// Initial Permutation
utils.ip(l, r, state.tmp, 0);
l = state.tmp[0];
r = state.tmp[1];
if (this.type === 'encrypt') this._encrypt(state, l, r, state.tmp, 0);else this._decrypt(state, l, r, state.tmp, 0);
l = state.tmp[0];
r = state.tmp[1];
utils.writeUInt32BE(out, l, outOff);
utils.writeUInt32BE(out, r, outOff + 4);
};
DES.prototype._pad = function _pad(buffer, off) {
var value = buffer.length - off;
for (var i = off; i < buffer.length; i++) {
buffer[i] = value;
}return true;
};
DES.prototype._unpad = function _unpad(buffer) {
var pad = buffer[buffer.length - 1];
for (var i = buffer.length - pad; i < buffer.length; i++) {
assert.equal(buffer[i], pad);
}return buffer.slice(0, buffer.length - pad);
};
DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) {
var l = lStart;
var r = rStart;
// Apply f() x16 times
for (var i = 0; i < state.keys.length; i += 2) {
var keyL = state.keys[i];
var keyR = state.keys[i + 1];
// f(r, k)
utils.expand(r, state.tmp, 0);
keyL ^= state.tmp[0];
keyR ^= state.tmp[1];
var s = utils.substitute(keyL, keyR);
var f = utils.permute(s);
var t = r;
r = (l ^ f) >>> 0;
l = t;
}
// Reverse Initial Permutation
utils.rip(r, l, out, off);
};
DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
var l = rStart;
var r = lStart;
// Apply f() x16 times
for (var i = state.keys.length - 2; i >= 0; i -= 2) {
var keyL = state.keys[i];
var keyR = state.keys[i + 1];
// f(r, k)
utils.expand(l, state.tmp, 0);
keyL ^= state.tmp[0];
keyR ^= state.tmp[1];
var s = utils.substitute(keyL, keyR);
var f = utils.permute(s);
var t = l;
l = (r ^ f) >>> 0;
r = t;
}
// Reverse Initial Permutation
utils.rip(l, r, out, off);
};
},{"../des":212,"inherits":266,"minimalistic-assert":281}],216:[function(require,module,exports){
'use strict';
var assert = require('minimalistic-assert');
var inherits = require('inherits');
var des = require('../des');
var Cipher = des.Cipher;
var DES = des.DES;
function EDEState(type, key) {
assert.equal(key.length, 24, 'Invalid key length');
var k1 = key.slice(0, 8);
var k2 = key.slice(8, 16);
var k3 = key.slice(16, 24);
if (type === 'encrypt') {
this.ciphers = [DES.create({ type: 'encrypt', key: k1 }), DES.create({ type: 'decrypt', key: k2 }), DES.create({ type: 'encrypt', key: k3 })];
} else {
this.ciphers = [DES.create({ type: 'decrypt', key: k3 }), DES.create({ type: 'encrypt', key: k2 }), DES.create({ type: 'decrypt', key: k1 })];
}
}
function EDE(options) {
Cipher.call(this, options);
var state = new EDEState(this.type, this.options.key);
this._edeState = state;
}
inherits(EDE, Cipher);
module.exports = EDE;
EDE.create = function create(options) {
return new EDE(options);
};
EDE.prototype._update = function _update(inp, inOff, out, outOff) {
var state = this._edeState;
state.ciphers[0]._update(inp, inOff, out, outOff);
state.ciphers[1]._update(out, outOff, out, outOff);
state.ciphers[2]._update(out, outOff, out, outOff);
};
EDE.prototype._pad = DES.prototype._pad;
EDE.prototype._unpad = DES.prototype._unpad;
},{"../des":212,"inherits":266,"minimalistic-assert":281}],217:[function(require,module,exports){
'use strict';
exports.readUInt32BE = function readUInt32BE(bytes, off) {
var res = bytes[0 + off] << 24 | bytes[1 + off] << 16 | bytes[2 + off] << 8 | bytes[3 + off];
return res >>> 0;
};
exports.writeUInt32BE = function writeUInt32BE(bytes, value, off) {
bytes[0 + off] = value >>> 24;
bytes[1 + off] = value >>> 16 & 0xff;
bytes[2 + off] = value >>> 8 & 0xff;
bytes[3 + off] = value & 0xff;
};
exports.ip = function ip(inL, inR, out, off) {
var outL = 0;
var outR = 0;
for (var i = 6; i >= 0; i -= 2) {
for (var j = 0; j <= 24; j += 8) {
outL <<= 1;
outL |= inR >>> j + i & 1;
}
for (var j = 0; j <= 24; j += 8) {
outL <<= 1;
outL |= inL >>> j + i & 1;
}
}
for (var i = 6; i >= 0; i -= 2) {
for (var j = 1; j <= 25; j += 8) {
outR <<= 1;
outR |= inR >>> j + i & 1;
}
for (var j = 1; j <= 25; j += 8) {
outR <<= 1;
outR |= inL >>> j + i & 1;
}
}
out[off + 0] = outL >>> 0;
out[off + 1] = outR >>> 0;
};
exports.rip = function rip(inL, inR, out, off) {
var outL = 0;
var outR = 0;
for (var i = 0; i < 4; i++) {
for (var j = 24; j >= 0; j -= 8) {
outL <<= 1;
outL |= inR >>> j + i & 1;
outL <<= 1;
outL |= inL >>> j + i & 1;
}
}
for (var i = 4; i < 8; i++) {
for (var j = 24; j >= 0; j -= 8) {
outR <<= 1;
outR |= inR >>> j + i & 1;
outR <<= 1;
outR |= inL >>> j + i & 1;
}
}
out[off + 0] = outL >>> 0;
out[off + 1] = outR >>> 0;
};
exports.pc1 = function pc1(inL, inR, out, off) {
var outL = 0;
var outR = 0;
// 7, 15, 23, 31, 39, 47, 55, 63
// 6, 14, 22, 30, 39, 47, 55, 63
// 5, 13, 21, 29, 39, 47, 55, 63
// 4, 12, 20, 28
for (var i = 7; i >= 5; i--) {
for (var j = 0; j <= 24; j += 8) {
outL <<= 1;
outL |= inR >> j + i & 1;
}
for (var j = 0; j <= 24; j += 8) {
outL <<= 1;
outL |= inL >> j + i & 1;
}
}
for (var j = 0; j <= 24; j += 8) {
outL <<= 1;
outL |= inR >> j + i & 1;
}
// 1, 9, 17, 25, 33, 41, 49, 57
// 2, 10, 18, 26, 34, 42, 50, 58
// 3, 11, 19, 27, 35, 43, 51, 59
// 36, 44, 52, 60
for (var i = 1; i <= 3; i++) {
for (var j = 0; j <= 24; j += 8) {
outR <<= 1;
outR |= inR >> j + i & 1;
}
for (var j = 0; j <= 24; j += 8) {
outR <<= 1;
outR |= inL >> j + i & 1;
}
}
for (var j = 0; j <= 24; j += 8) {
outR <<= 1;
outR |= inL >> j + i & 1;
}
out[off + 0] = outL >>> 0;
out[off + 1] = outR >>> 0;
};
exports.r28shl = function r28shl(num, shift) {
return num << shift & 0xfffffff | num >>> 28 - shift;
};
var pc2table = [
// inL => outL
14, 11, 17, 4, 27, 23, 25, 0, 13, 22, 7, 18, 5, 9, 16, 24, 2, 20, 12, 21, 1, 8, 15, 26,
// inR => outR
15, 4, 25, 19, 9, 1, 26, 16, 5, 11, 23, 8, 12, 7, 17, 0, 22, 3, 10, 14, 6, 20, 27, 24];
exports.pc2 = function pc2(inL, inR, out, off) {
var outL = 0;
var outR = 0;
var len = pc2table.length >>> 1;
for (var i = 0; i < len; i++) {
outL <<= 1;
outL |= inL >>> pc2table[i] & 0x1;
}
for (var i = len; i < pc2table.length; i++) {
outR <<= 1;
outR |= inR >>> pc2table[i] & 0x1;
}
out[off + 0] = outL >>> 0;
out[off + 1] = outR >>> 0;
};
exports.expand = function expand(r, out, off) {
var outL = 0;
var outR = 0;
outL = (r & 1) << 5 | r >>> 27;
for (var i = 23; i >= 15; i -= 4) {
outL <<= 6;
outL |= r >>> i & 0x3f;
}
for (var i = 11; i >= 3; i -= 4) {
outR |= r >>> i & 0x3f;
outR <<= 6;
}
outR |= (r & 0x1f) << 1 | r >>> 31;
out[off + 0] = outL >>> 0;
out[off + 1] = outR >>> 0;
};
var sTable = [14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11];
exports.substitute = function substitute(inL, inR) {
var out = 0;
for (var i = 0; i < 4; i++) {
var b = inL >>> 18 - i * 6 & 0x3f;
var sb = sTable[i * 0x40 + b];
out <<= 4;
out |= sb;
}
for (var i = 0; i < 4; i++) {
var b = inR >>> 18 - i * 6 & 0x3f;
var sb = sTable[4 * 0x40 + i * 0x40 + b];
out <<= 4;
out |= sb;
}
return out >>> 0;
};
var permuteTable = [16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7];
exports.permute = function permute(num) {
var out = 0;
for (var i = 0; i < permuteTable.length; i++) {
out <<= 1;
out |= num >>> permuteTable[i] & 0x1;
}
return out >>> 0;
};
exports.padSplit = function padSplit(num, size, group) {
var str = num.toString(2);
while (str.length < size) {
str = '0' + str;
}var out = [];
for (var i = 0; i < size; i += group) {
out.push(str.slice(i, i + group));
}return out.join(' ');
};
},{}],218:[function(require,module,exports){
'use strict';
var detectBrowser = require('./lib/detectBrowser');
var agent;
if (typeof navigator !== 'undefined' && navigator) {
agent = navigator.userAgent;
}
module.exports = detectBrowser(agent);
},{"./lib/detectBrowser":219}],219:[function(require,module,exports){
'use strict';
var detectOS = require('./detectOS.js');
module.exports = function detectBrowser(userAgentString) {
if (!userAgentString) return null;
var browsers = [['edge', /Edge\/([0-9\._]+)/], ['yandexbrowser', /YaBrowser\/([0-9\._]+)/], ['vivaldi', /Vivaldi\/([0-9\.]+)/], ['kakaotalk', /KAKAOTALK\s([0-9\.]+)/], ['chrome', /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/], ['phantomjs', /PhantomJS\/([0-9\.]+)(:?\s|$)/], ['crios', /CriOS\/([0-9\.]+)(:?\s|$)/], ['firefox', /Firefox\/([0-9\.]+)(?:\s|$)/], ['fxios', /FxiOS\/([0-9\.]+)/], ['opera', /Opera\/([0-9\.]+)(?:\s|$)/], ['opera', /OPR\/([0-9\.]+)(:?\s|$)$/], ['ie', /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/], ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], ['ie', /MSIE\s(7\.0)/], ['bb10', /BB10;\sTouch.*Version\/([0-9\.]+)/], ['android', /Android\s([0-9\.]+)/], ['ios', /Version\/([0-9\._]+).*Mobile.*Safari.*/], ['safari', /Version\/([0-9\._]+).*Safari/]];
return browsers.map(function (rule) {
if (rule[1].test(userAgentString)) {
var match = rule[1].exec(userAgentString);
var version = match && match[1].split(/[._]/).slice(0, 3);
if (version && version.length < 3) {
Array.prototype.push.apply(version, version.length == 1 ? [0, 0] : [0]);
}
return {
name: rule[0],
version: version.join('.'),
os: detectOS(userAgentString)
};
}
}).filter(Boolean).shift();
};
},{"./detectOS.js":220}],220:[function(require,module,exports){
'use strict';
module.exports = function detectOS(userAgentString) {
var operatingSystems = [{
name: 'iOS',
rule: /iP(hone|od|ad)/
}, {
name: 'Android OS',
rule: /Android/
}, {
name: 'BlackBerry OS',
rule: /BlackBerry|BB10/
}, {
name: 'Windows Mobile',
rule: /IEMobile/
}, {
name: 'Amazon OS',
rule: /Kindle/
}, {
name: 'Windows 3.11',
rule: /Win16/
}, {
name: 'Windows 95',
rule: /(Windows 95)|(Win95)|(Windows_95)/
}, {
name: 'Windows 98',
rule: /(Windows 98)|(Win98)/
}, {
name: 'Windows 2000',
rule: /(Windows NT 5.0)|(Windows 2000)/
}, {
name: 'Windows XP',
rule: /(Windows NT 5.1)|(Windows XP)/
}, {
name: 'Windows Server 2003',
rule: /(Windows NT 5.2)/
}, {
name: 'Windows Vista',
rule: /(Windows NT 6.0)/
}, {
name: 'Windows 7',
rule: /(Windows NT 6.1)/
}, {
name: 'Windows 8',
rule: /(Windows NT 6.2)/
}, {
name: 'Windows 8.1',
rule: /(Windows NT 6.3)/
}, {
name: 'Windows 10',
rule: /(Windows NT 10.0)/
}, {
name: 'Windows ME',
rule: /Windows ME/
}, {
name: 'Open BSD',
rule: /OpenBSD/
}, {
name: 'Sun OS',
rule: /SunOS/
}, {
name: 'Linux',
rule: /(Linux)|(X11)/
}, {
name: 'Mac OS',
rule: /(Mac_PowerPC)|(Macintosh)/
}, {
name: 'QNX',
rule: /QNX/
}, {
name: 'BeOS',
rule: /BeOS/
}, {
name: 'OS/2',
rule: /OS\/2/
}, {
name: 'Search Bot',
rule: /(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/
}];
var detected = operatingSystems.filter(function (os) {
if (userAgentString.match(os.rule)) {
return true;
}
});
return detected && detected[0] ? detected[0].name : null;
};
},{}],221:[function(require,module,exports){
(function (Buffer){
'use strict';
var generatePrime = require('./lib/generatePrime');
var primes = require('./lib/primes.json');
var DH = require('./lib/dh');
function getDiffieHellman(mod) {
var prime = new Buffer(primes[mod].prime, 'hex');
var gen = new Buffer(primes[mod].gen, 'hex');
return new DH(prime, gen);
}
var ENCODINGS = {
'binary': true, 'hex': true, 'base64': true
};
function createDiffieHellman(prime, enc, generator, genc) {
if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) {
return createDiffieHellman(prime, 'binary', enc, generator);
}
enc = enc || 'binary';
genc = genc || 'binary';
generator = generator || new Buffer([2]);
if (!Buffer.isBuffer(generator)) {
generator = new Buffer(generator, genc);
}
if (typeof prime === 'number') {
return new DH(generatePrime(prime, generator), generator, true);
}
if (!Buffer.isBuffer(prime)) {
prime = new Buffer(prime, enc);
}
return new DH(prime, generator, true);
}
exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman;
exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman;
}).call(this,require("buffer").Buffer)
},{"./lib/dh":222,"./lib/generatePrime":223,"./lib/primes.json":224,"buffer":201}],222:[function(require,module,exports){
(function (Buffer){
'use strict';
var BN = require('bn.js');
var MillerRabin = require('miller-rabin');
var millerRabin = new MillerRabin();
var TWENTYFOUR = new BN(24);
var ELEVEN = new BN(11);
var TEN = new BN(10);
var THREE = new BN(3);
var SEVEN = new BN(7);
var primes = require('./generatePrime');
var randomBytes = require('randombytes');
module.exports = DH;
function setPublicKey(pub, enc) {
enc = enc || 'utf8';
if (!Buffer.isBuffer(pub)) {
pub = new Buffer(pub, enc);
}
this._pub = new BN(pub);
return this;
}
function setPrivateKey(priv, enc) {
enc = enc || 'utf8';
if (!Buffer.isBuffer(priv)) {
priv = new Buffer(priv, enc);
}
this._priv = new BN(priv);
return this;
}
var primeCache = {};
function checkPrime(prime, generator) {
var gen = generator.toString('hex');
var hex = [gen, prime.toString(16)].join('_');
if (hex in primeCache) {
return primeCache[hex];
}
var error = 0;
if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) {
//not a prime so +1
error += 1;
if (gen === '02' || gen === '05') {
// we'd be able to check the generator
// it would fail so +8
error += 8;
} else {
//we wouldn't be able to test the generator
// so +4
error += 4;
}
primeCache[hex] = error;
return error;
}
if (!millerRabin.test(prime.shrn(1))) {
//not a safe prime
error += 2;
}
var rem;
switch (gen) {
case '02':
if (prime.mod(TWENTYFOUR).cmp(ELEVEN)) {
// unsuidable generator
error += 8;
}
break;
case '05':
rem = prime.mod(TEN);
if (rem.cmp(THREE) && rem.cmp(SEVEN)) {
// prime mod 10 needs to equal 3 or 7
error += 8;
}
break;
default:
error += 4;
}
primeCache[hex] = error;
return error;
}
function DH(prime, generator, malleable) {
this.setGenerator(generator);
this.__prime = new BN(prime);
this._prime = BN.mont(this.__prime);
this._primeLen = prime.length;
this._pub = undefined;
this._priv = undefined;
this._primeCode = undefined;
if (malleable) {
this.setPublicKey = setPublicKey;
this.setPrivateKey = setPrivateKey;
} else {
this._primeCode = 8;
}
}
Object.defineProperty(DH.prototype, 'verifyError', {
enumerable: true,
get: function get() {
if (typeof this._primeCode !== 'number') {
this._primeCode = checkPrime(this.__prime, this.__gen);
}
return this._primeCode;
}
});
DH.prototype.generateKeys = function () {
if (!this._priv) {
this._priv = new BN(randomBytes(this._primeLen));
}
this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed();
return this.getPublicKey();
};
DH.prototype.computeSecret = function (other) {
other = new BN(other);
other = other.toRed(this._prime);
var secret = other.redPow(this._priv).fromRed();
var out = new Buffer(secret.toArray());
var prime = this.getPrime();
if (out.length < prime.length) {
var front = new Buffer(prime.length - out.length);
front.fill(0);
out = Buffer.concat([front, out]);
}
return out;
};
DH.prototype.getPublicKey = function getPublicKey(enc) {
return formatReturnValue(this._pub, enc);
};
DH.prototype.getPrivateKey = function getPrivateKey(enc) {
return formatReturnValue(this._priv, enc);
};
DH.prototype.getPrime = function (enc) {
return formatReturnValue(this.__prime, enc);
};
DH.prototype.getGenerator = function (enc) {
return formatReturnValue(this._gen, enc);
};
DH.prototype.setGenerator = function (gen, enc) {
enc = enc || 'utf8';
if (!Buffer.isBuffer(gen)) {
gen = new Buffer(gen, enc);
}
this.__gen = gen;
this._gen = new BN(gen);
return this;
};
function formatReturnValue(bn, enc) {
var buf = new Buffer(bn.toArray());
if (!enc) {
return buf;
} else {
return buf.toString(enc);
}
}
}).call(this,require("buffer").Buffer)
},{"./generatePrime":223,"bn.js":169,"buffer":201,"miller-rabin":280,"randombytes":302}],223:[function(require,module,exports){
'use strict';
var randomBytes = require('randombytes');
module.exports = findPrime;
findPrime.simpleSieve = simpleSieve;
findPrime.fermatTest = fermatTest;
var BN = require('bn.js');
var TWENTYFOUR = new BN(24);
var MillerRabin = require('miller-rabin');
var millerRabin = new MillerRabin();
var ONE = new BN(1);
var TWO = new BN(2);
var FIVE = new BN(5);
var SIXTEEN = new BN(16);
var EIGHT = new BN(8);
var TEN = new BN(10);
var THREE = new BN(3);
var SEVEN = new BN(7);
var ELEVEN = new BN(11);
var FOUR = new BN(4);
var TWELVE = new BN(12);
var primes = null;
function _getPrimes() {
if (primes !== null) return primes;
var limit = 0x100000;
var res = [];
res[0] = 2;
for (var i = 1, k = 3; k < limit; k += 2) {
var sqrt = Math.ceil(Math.sqrt(k));
for (var j = 0; j < i && res[j] <= sqrt; j++) {
if (k % res[j] === 0) break;
}if (i !== j && res[j] <= sqrt) continue;
res[i++] = k;
}
primes = res;
return res;
}
function simpleSieve(p) {
var primes = _getPrimes();
for (var i = 0; i < primes.length; i++) {
if (p.modn(primes[i]) === 0) {
if (p.cmpn(primes[i]) === 0) {
return true;
} else {
return false;
}
}
}return true;
}
function fermatTest(p) {
var red = BN.mont(p);
return TWO.toRed(red).redPow(p.subn(1)).fromRed().cmpn(1) === 0;
}
function findPrime(bits, gen) {
if (bits < 16) {
// this is what openssl does
if (gen === 2 || gen === 5) {
return new BN([0x8c, 0x7b]);
} else {
return new BN([0x8c, 0x27]);
}
}
gen = new BN(gen);
var num, n2;
while (true) {
num = new BN(randomBytes(Math.ceil(bits / 8)));
while (num.bitLength() > bits) {
num.ishrn(1);
}
if (num.isEven()) {
num.iadd(ONE);
}
if (!num.testn(1)) {
num.iadd(TWO);
}
if (!gen.cmp(TWO)) {
while (num.mod(TWENTYFOUR).cmp(ELEVEN)) {
num.iadd(FOUR);
}
} else if (!gen.cmp(FIVE)) {
while (num.mod(TEN).cmp(THREE)) {
num.iadd(FOUR);
}
}
n2 = num.shrn(1);
if (simpleSieve(n2) && simpleSieve(num) && fermatTest(n2) && fermatTest(num) && millerRabin.test(n2) && millerRabin.test(num)) {
return num;
}
}
}
},{"bn.js":169,"miller-rabin":280,"randombytes":302}],224:[function(require,module,exports){
module.exports={
"modp1": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"
},
"modp2": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"
},
"modp5": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"
},
"modp14": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"
},
"modp15": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"
},
"modp16": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"
},
"modp17": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"
},
"modp18": {
"gen": "02",
"prime": "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"
}
}
},{}],225:[function(require,module,exports){
'use strict';
var elliptic = exports;
elliptic.version = require('../package.json').version;
elliptic.utils = require('./elliptic/utils');
elliptic.rand = require('brorand');
elliptic.curve = require('./elliptic/curve');
elliptic.curves = require('./elliptic/curves');
// Protocols
elliptic.ec = require('./elliptic/ec');
elliptic.eddsa = require('./elliptic/eddsa');
},{"../package.json":240,"./elliptic/curve":228,"./elliptic/curves":231,"./elliptic/ec":232,"./elliptic/eddsa":235,"./elliptic/utils":239,"brorand":170}],226:[function(require,module,exports){
'use strict';
var BN = require('bn.js');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var getNAF = utils.getNAF;
var getJSF = utils.getJSF;
var assert = utils.assert;
function BaseCurve(type, conf) {
this.type = type;
this.p = new BN(conf.p, 16);
// Use Montgomery, when there is no fast reduction for the prime
this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);
// Useful for many curves
this.zero = new BN(0).toRed(this.red);
this.one = new BN(1).toRed(this.red);
this.two = new BN(2).toRed(this.red);
// Curve configuration, optional
this.n = conf.n && new BN(conf.n, 16);
this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);
// Temporary arrays
this._wnafT1 = new Array(4);
this._wnafT2 = new Array(4);
this._wnafT3 = new Array(4);
this._wnafT4 = new Array(4);
// Generalized Greg Maxwell's trick
var adjustCount = this.n && this.p.div(this.n);
if (!adjustCount || adjustCount.cmpn(100) > 0) {
this.redN = null;
} else {
this._maxwellTrick = true;
this.redN = this.n.toRed(this.red);
}
}
module.exports = BaseCurve;
BaseCurve.prototype.point = function point() {
throw new Error('Not implemented');
};
BaseCurve.prototype.validate = function validate() {
throw new Error('Not implemented');
};
BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
assert(p.precomputed);
var doubles = p._getDoubles();
var naf = getNAF(k, 1);
var I = (1 << doubles.step + 1) - (doubles.step % 2 === 0 ? 2 : 1);
I /= 3;
// Translate into more windowed form
var repr = [];
for (var j = 0; j < naf.length; j += doubles.step) {
var nafW = 0;
for (var k = j + doubles.step - 1; k >= j; k--) {
nafW = (nafW << 1) + naf[k];
}repr.push(nafW);
}
var a = this.jpoint(null, null, null);
var b = this.jpoint(null, null, null);
for (var i = I; i > 0; i--) {
for (var j = 0; j < repr.length; j++) {
var nafW = repr[j];
if (nafW === i) b = b.mixedAdd(doubles.points[j]);else if (nafW === -i) b = b.mixedAdd(doubles.points[j].neg());
}
a = a.add(b);
}
return a.toP();
};
BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
var w = 4;
// Precompute window
var nafPoints = p._getNAFPoints(w);
w = nafPoints.wnd;
var wnd = nafPoints.points;
// Get NAF form
var naf = getNAF(k, w);
// Add `this`*(N+1) for every w-NAF index
var acc = this.jpoint(null, null, null);
for (var i = naf.length - 1; i >= 0; i--) {
// Count zeroes
for (var k = 0; i >= 0 && naf[i] === 0; i--) {
k++;
}if (i >= 0) k++;
acc = acc.dblp(k);
if (i < 0) break;
var z = naf[i];
assert(z !== 0);
if (p.type === 'affine') {
// J +- P
if (z > 0) acc = acc.mixedAdd(wnd[z - 1 >> 1]);else acc = acc.mixedAdd(wnd[-z - 1 >> 1].neg());
} else {
// J +- J
if (z > 0) acc = acc.add(wnd[z - 1 >> 1]);else acc = acc.add(wnd[-z - 1 >> 1].neg());
}
}
return p.type === 'affine' ? acc.toP() : acc;
};
BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW, points, coeffs, len, jacobianResult) {
var wndWidth = this._wnafT1;
var wnd = this._wnafT2;
var naf = this._wnafT3;
// Fill all arrays
var max = 0;
for (var i = 0; i < len; i++) {
var p = points[i];
var nafPoints = p._getNAFPoints(defW);
wndWidth[i] = nafPoints.wnd;
wnd[i] = nafPoints.points;
}
// Comb small window NAFs
for (var i = len - 1; i >= 1; i -= 2) {
var a = i - 1;
var b = i;
if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
naf[a] = getNAF(coeffs[a], wndWidth[a]);
naf[b] = getNAF(coeffs[b], wndWidth[b]);
max = Math.max(naf[a].length, max);
max = Math.max(naf[b].length, max);
continue;
}
var comb = [points[a], /* 1 */
null, /* 3 */
null, /* 5 */
points[b] /* 7 */
];
// Try to avoid Projective points, if possible
if (points[a].y.cmp(points[b].y) === 0) {
comb[1] = points[a].add(points[b]);
comb[2] = points[a].toJ().mixedAdd(points[b].neg());
} else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {
comb[1] = points[a].toJ().mixedAdd(points[b]);
comb[2] = points[a].add(points[b].neg());
} else {
comb[1] = points[a].toJ().mixedAdd(points[b]);
comb[2] = points[a].toJ().mixedAdd(points[b].neg());
}
var index = [-3, /* -1 -1 */
-1, /* -1 0 */
-5, /* -1 1 */
-7, /* 0 -1 */
0, /* 0 0 */
7, /* 0 1 */
5, /* 1 -1 */
1, /* 1 0 */
3 /* 1 1 */
];
var jsf = getJSF(coeffs[a], coeffs[b]);
max = Math.max(jsf[0].length, max);
naf[a] = new Array(max);
naf[b] = new Array(max);
for (var j = 0; j < max; j++) {
var ja = jsf[0][j] | 0;
var jb = jsf[1][j] | 0;
naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];
naf[b][j] = 0;
wnd[a] = comb;
}
}
var acc = this.jpoint(null, null, null);
var tmp = this._wnafT4;
for (var i = max; i >= 0; i--) {
var k = 0;
while (i >= 0) {
var zero = true;
for (var j = 0; j < len; j++) {
tmp[j] = naf[j][i] | 0;
if (tmp[j] !== 0) zero = false;
}
if (!zero) break;
k++;
i--;
}
if (i >= 0) k++;
acc = acc.dblp(k);
if (i < 0) break;
for (var j = 0; j < len; j++) {
var z = tmp[j];
var p;
if (z === 0) continue;else if (z > 0) p = wnd[j][z - 1 >> 1];else if (z < 0) p = wnd[j][-z - 1 >> 1].neg();
if (p.type === 'affine') acc = acc.mixedAdd(p);else acc = acc.add(p);
}
}
// Zeroify references
for (var i = 0; i < len; i++) {
wnd[i] = null;
}if (jacobianResult) return acc;else return acc.toP();
};
function BasePoint(curve, type) {
this.curve = curve;
this.type = type;
this.precomputed = null;
}
BaseCurve.BasePoint = BasePoint;
BasePoint.prototype.eq = function eq() /*other*/{
throw new Error('Not implemented');
};
BasePoint.prototype.validate = function validate() {
return this.curve.validate(this);
};
BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
bytes = utils.toArray(bytes, enc);
var len = this.p.byteLength();
// uncompressed, hybrid-odd, hybrid-even
if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) && bytes.length - 1 === 2 * len) {
if (bytes[0] === 0x06) assert(bytes[bytes.length - 1] % 2 === 0);else if (bytes[0] === 0x07) assert(bytes[bytes.length - 1] % 2 === 1);
var res = this.point(bytes.slice(1, 1 + len), bytes.slice(1 + len, 1 + 2 * len));
return res;
} else if ((bytes[0] === 0x02 || bytes[0] === 0x03) && bytes.length - 1 === len) {
return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);
}
throw new Error('Unknown point format');
};
BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {
return this.encode(enc, true);
};
BasePoint.prototype._encode = function _encode(compact) {
var len = this.curve.p.byteLength();
var x = this.getX().toArray('be', len);
if (compact) return [this.getY().isEven() ? 0x02 : 0x03].concat(x);
return [0x04].concat(x, this.getY().toArray('be', len));
};
BasePoint.prototype.encode = function encode(enc, compact) {
return utils.encode(this._encode(compact), enc);
};
BasePoint.prototype.precompute = function precompute(power) {
if (this.precomputed) return this;
var precomputed = {
doubles: null,
naf: null,
beta: null
};
precomputed.naf = this._getNAFPoints(8);
precomputed.doubles = this._getDoubles(4, power);
precomputed.beta = this._getBeta();
this.precomputed = precomputed;
return this;
};
BasePoint.prototype._hasDoubles = function _hasDoubles(k) {
if (!this.precomputed) return false;
var doubles = this.precomputed.doubles;
if (!doubles) return false;
return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);
};
BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
if (this.precomputed && this.precomputed.doubles) return this.precomputed.doubles;
var doubles = [this];
var acc = this;
for (var i = 0; i < power; i += step) {
for (var j = 0; j < step; j++) {
acc = acc.dbl();
}doubles.push(acc);
}
return {
step: step,
points: doubles
};
};
BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
if (this.precomputed && this.precomputed.naf) return this.precomputed.naf;
var res = [this];
var max = (1 << wnd) - 1;
var dbl = max === 1 ? null : this.dbl();
for (var i = 1; i < max; i++) {
res[i] = res[i - 1].add(dbl);
}return {
wnd: wnd,
points: res
};
};
BasePoint.prototype._getBeta = function _getBeta() {
return null;
};
BasePoint.prototype.dblp = function dblp(k) {
var r = this;
for (var i = 0; i < k; i++) {
r = r.dbl();
}return r;
};
},{"../../elliptic":225,"bn.js":169}],227:[function(require,module,exports){
'use strict';
var curve = require('../curve');
var elliptic = require('../../elliptic');
var BN = require('bn.js');
var inherits = require('inherits');
var Base = curve.base;
var assert = elliptic.utils.assert;
function EdwardsCurve(conf) {
// NOTE: Important as we are creating point in Base.call()
this.twisted = (conf.a | 0) !== 1;
this.mOneA = this.twisted && (conf.a | 0) === -1;
this.extended = this.mOneA;
Base.call(this, 'edwards', conf);
this.a = new BN(conf.a, 16).umod(this.red.m);
this.a = this.a.toRed(this.red);
this.c = new BN(conf.c, 16).toRed(this.red);
this.c2 = this.c.redSqr();
this.d = new BN(conf.d, 16).toRed(this.red);
this.dd = this.d.redAdd(this.d);
assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);
this.oneC = (conf.c | 0) === 1;
}
inherits(EdwardsCurve, Base);
module.exports = EdwardsCurve;
EdwardsCurve.prototype._mulA = function _mulA(num) {
if (this.mOneA) return num.redNeg();else return this.a.redMul(num);
};
EdwardsCurve.prototype._mulC = function _mulC(num) {
if (this.oneC) return num;else return this.c.redMul(num);
};
// Just for compatibility with Short curve
EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {
return this.point(x, y, z, t);
};
EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {
x = new BN(x, 16);
if (!x.red) x = x.toRed(this.red);
var x2 = x.redSqr();
var rhs = this.c2.redSub(this.a.redMul(x2));
var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));
var y2 = rhs.redMul(lhs.redInvm());
var y = y2.redSqrt();
if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point');
var isOdd = y.fromRed().isOdd();
if (odd && !isOdd || !odd && isOdd) y = y.redNeg();
return this.point(x, y);
};
EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {
y = new BN(y, 16);
if (!y.red) y = y.toRed(this.red);
// x^2 = (y^2 - 1) / (d y^2 + 1)
var y2 = y.redSqr();
var lhs = y2.redSub(this.one);
var rhs = y2.redMul(this.d).redAdd(this.one);
var x2 = lhs.redMul(rhs.redInvm());
if (x2.cmp(this.zero) === 0) {
if (odd) throw new Error('invalid point');else return this.point(this.zero, y);
}
var x = x2.redSqrt();
if (x.redSqr().redSub(x2).cmp(this.zero) !== 0) throw new Error('invalid point');
if (x.isOdd() !== odd) x = x.redNeg();
return this.point(x, y);
};
EdwardsCurve.prototype.validate = function validate(point) {
if (point.isInfinity()) return true;
// Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)
point.normalize();
var x2 = point.x.redSqr();
var y2 = point.y.redSqr();
var lhs = x2.redMul(this.a).redAdd(y2);
var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));
return lhs.cmp(rhs) === 0;
};
function Point(curve, x, y, z, t) {
Base.BasePoint.call(this, curve, 'projective');
if (x === null && y === null && z === null) {
this.x = this.curve.zero;
this.y = this.curve.one;
this.z = this.curve.one;
this.t = this.curve.zero;
this.zOne = true;
} else {
this.x = new BN(x, 16);
this.y = new BN(y, 16);
this.z = z ? new BN(z, 16) : this.curve.one;
this.t = t && new BN(t, 16);
if (!this.x.red) this.x = this.x.toRed(this.curve.red);
if (!this.y.red) this.y = this.y.toRed(this.curve.red);
if (!this.z.red) this.z = this.z.toRed(this.curve.red);
if (this.t && !this.t.red) this.t = this.t.toRed(this.curve.red);
this.zOne = this.z === this.curve.one;
// Use extended coordinates
if (this.curve.extended && !this.t) {
this.t = this.x.redMul(this.y);
if (!this.zOne) this.t = this.t.redMul(this.z.redInvm());
}
}
}
inherits(Point, Base.BasePoint);
EdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
return Point.fromJSON(this, obj);
};
EdwardsCurve.prototype.point = function point(x, y, z, t) {
return new Point(this, x, y, z, t);
};
Point.fromJSON = function fromJSON(curve, obj) {
return new Point(curve, obj[0], obj[1], obj[2]);
};
Point.prototype.inspect = function inspect() {
if (this.isInfinity()) return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) + ' y: ' + this.y.fromRed().toString(16, 2) + ' z: ' + this.z.fromRed().toString(16, 2) + '>';
};
Point.prototype.isInfinity = function isInfinity() {
// XXX This code assumes that zero is always zero in red
return this.x.cmpn(0) === 0 && this.y.cmp(this.z) === 0;
};
Point.prototype._extDbl = function _extDbl() {
// hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
// #doubling-dbl-2008-hwcd
// 4M + 4S
// A = X1^2
var a = this.x.redSqr();
// B = Y1^2
var b = this.y.redSqr();
// C = 2 * Z1^2
var c = this.z.redSqr();
c = c.redIAdd(c);
// D = a * A
var d = this.curve._mulA(a);
// E = (X1 + Y1)^2 - A - B
var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);
// G = D + B
var g = d.redAdd(b);
// F = G - C
var f = g.redSub(c);
// H = D - B
var h = d.redSub(b);
// X3 = E * F
var nx = e.redMul(f);
// Y3 = G * H
var ny = g.redMul(h);
// T3 = E * H
var nt = e.redMul(h);
// Z3 = F * G
var nz = f.redMul(g);
return this.curve.point(nx, ny, nz, nt);
};
Point.prototype._projDbl = function _projDbl() {
// hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
// #doubling-dbl-2008-bbjlp
// #doubling-dbl-2007-bl
// and others
// Generally 3M + 4S or 2M + 4S
// B = (X1 + Y1)^2
var b = this.x.redAdd(this.y).redSqr();
// C = X1^2
var c = this.x.redSqr();
// D = Y1^2
var d = this.y.redSqr();
var nx;
var ny;
var nz;
if (this.curve.twisted) {
// E = a * C
var e = this.curve._mulA(c);
// F = E + D
var f = e.redAdd(d);
if (this.zOne) {
// X3 = (B - C - D) * (F - 2)
nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));
// Y3 = F * (E - D)
ny = f.redMul(e.redSub(d));
// Z3 = F^2 - 2 * F
nz = f.redSqr().redSub(f).redSub(f);
} else {
// H = Z1^2
var h = this.z.redSqr();
// J = F - 2 * H
var j = f.redSub(h).redISub(h);
// X3 = (B-C-D)*J
nx = b.redSub(c).redISub(d).redMul(j);
// Y3 = F * (E - D)
ny = f.redMul(e.redSub(d));
// Z3 = F * J
nz = f.redMul(j);
}
} else {
// E = C + D
var e = c.redAdd(d);
// H = (c * Z1)^2
var h = this.curve._mulC(this.c.redMul(this.z)).redSqr();
// J = E - 2 * H
var j = e.redSub(h).redSub(h);
// X3 = c * (B - E) * J
nx = this.curve._mulC(b.redISub(e)).redMul(j);
// Y3 = c * E * (C - D)
ny = this.curve._mulC(e).redMul(c.redISub(d));
// Z3 = E * J
nz = e.redMul(j);
}
return this.curve.point(nx, ny, nz);
};
Point.prototype.dbl = function dbl() {
if (this.isInfinity()) return this;
// Double in extended coordinates
if (this.curve.extended) return this._extDbl();else return this._projDbl();
};
Point.prototype._extAdd = function _extAdd(p) {
// hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
// #addition-add-2008-hwcd-3
// 8M
// A = (Y1 - X1) * (Y2 - X2)
var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));
// B = (Y1 + X1) * (Y2 + X2)
var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));
// C = T1 * k * T2
var c = this.t.redMul(this.curve.dd).redMul(p.t);
// D = Z1 * 2 * Z2
var d = this.z.redMul(p.z.redAdd(p.z));
// E = B - A
var e = b.redSub(a);
// F = D - C
var f = d.redSub(c);
// G = D + C
var g = d.redAdd(c);
// H = B + A
var h = b.redAdd(a);
// X3 = E * F
var nx = e.redMul(f);
// Y3 = G * H
var ny = g.redMul(h);
// T3 = E * H
var nt = e.redMul(h);
// Z3 = F * G
var nz = f.redMul(g);
return this.curve.point(nx, ny, nz, nt);
};
Point.prototype._projAdd = function _projAdd(p) {
// hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
// #addition-add-2008-bbjlp
// #addition-add-2007-bl
// 10M + 1S
// A = Z1 * Z2
var a = this.z.redMul(p.z);
// B = A^2
var b = a.redSqr();
// C = X1 * X2
var c = this.x.redMul(p.x);
// D = Y1 * Y2
var d = this.y.redMul(p.y);
// E = d * C * D
var e = this.curve.d.redMul(c).redMul(d);
// F = B - E
var f = b.redSub(e);
// G = B + E
var g = b.redAdd(e);
// X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)
var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);
var nx = a.redMul(f).redMul(tmp);
var ny;
var nz;
if (this.curve.twisted) {
// Y3 = A * G * (D - a * C)
ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));
// Z3 = F * G
nz = f.redMul(g);
} else {
// Y3 = A * G * (D - C)
ny = a.redMul(g).redMul(d.redSub(c));
// Z3 = c * F * G
nz = this.curve._mulC(f).redMul(g);
}
return this.curve.point(nx, ny, nz);
};
Point.prototype.add = function add(p) {
if (this.isInfinity()) return p;
if (p.isInfinity()) return this;
if (this.curve.extended) return this._extAdd(p);else return this._projAdd(p);
};
Point.prototype.mul = function mul(k) {
if (this._hasDoubles(k)) return this.curve._fixedNafMul(this, k);else return this.curve._wnafMul(this, k);
};
Point.prototype.mulAdd = function mulAdd(k1, p, k2) {
return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, false);
};
Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) {
return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, true);
};
Point.prototype.normalize = function normalize() {
if (this.zOne) return this;
// Normalize coordinates
var zi = this.z.redInvm();
this.x = this.x.redMul(zi);
this.y = this.y.redMul(zi);
if (this.t) this.t = this.t.redMul(zi);
this.z = this.curve.one;
this.zOne = true;
return this;
};
Point.prototype.neg = function neg() {
return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg());
};
Point.prototype.getX = function getX() {
this.normalize();
return this.x.fromRed();
};
Point.prototype.getY = function getY() {
this.normalize();
return this.y.fromRed();
};
Point.prototype.eq = function eq(other) {
return this === other || this.getX().cmp(other.getX()) === 0 && this.getY().cmp(other.getY()) === 0;
};
Point.prototype.eqXToP = function eqXToP(x) {
var rx = x.toRed(this.curve.red).redMul(this.z);
if (this.x.cmp(rx) === 0) return true;
var xc = x.clone();
var t = this.curve.redN.redMul(this.z);
for (;;) {
xc.iadd(this.curve.n);
if (xc.cmp(this.curve.p) >= 0) return false;
rx.redIAdd(t);
if (this.x.cmp(rx) === 0) return true;
}
return false;
};
// Compatibility with BaseCurve
Point.prototype.toP = Point.prototype.normalize;
Point.prototype.mixedAdd = Point.prototype.add;
},{"../../elliptic":225,"../curve":228,"bn.js":169,"inherits":266}],228:[function(require,module,exports){
'use strict';
var curve = exports;
curve.base = require('./base');
curve.short = require('./short');
curve.mont = require('./mont');
curve.edwards = require('./edwards');
},{"./base":226,"./edwards":227,"./mont":229,"./short":230}],229:[function(require,module,exports){
'use strict';
var curve = require('../curve');
var BN = require('bn.js');
var inherits = require('inherits');
var Base = curve.base;
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
function MontCurve(conf) {
Base.call(this, 'mont', conf);
this.a = new BN(conf.a, 16).toRed(this.red);
this.b = new BN(conf.b, 16).toRed(this.red);
this.i4 = new BN(4).toRed(this.red).redInvm();
this.two = new BN(2).toRed(this.red);
this.a24 = this.i4.redMul(this.a.redAdd(this.two));
}
inherits(MontCurve, Base);
module.exports = MontCurve;
MontCurve.prototype.validate = function validate(point) {
var x = point.normalize().x;
var x2 = x.redSqr();
var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);
var y = rhs.redSqrt();
return y.redSqr().cmp(rhs) === 0;
};
function Point(curve, x, z) {
Base.BasePoint.call(this, curve, 'projective');
if (x === null && z === null) {
this.x = this.curve.one;
this.z = this.curve.zero;
} else {
this.x = new BN(x, 16);
this.z = new BN(z, 16);
if (!this.x.red) this.x = this.x.toRed(this.curve.red);
if (!this.z.red) this.z = this.z.toRed(this.curve.red);
}
}
inherits(Point, Base.BasePoint);
MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
return this.point(utils.toArray(bytes, enc), 1);
};
MontCurve.prototype.point = function point(x, z) {
return new Point(this, x, z);
};
MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
return Point.fromJSON(this, obj);
};
Point.prototype.precompute = function precompute() {
// No-op
};
Point.prototype._encode = function _encode() {
return this.getX().toArray('be', this.curve.p.byteLength());
};
Point.fromJSON = function fromJSON(curve, obj) {
return new Point(curve, obj[0], obj[1] || curve.one);
};
Point.prototype.inspect = function inspect() {
if (this.isInfinity()) return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) + ' z: ' + this.z.fromRed().toString(16, 2) + '>';
};
Point.prototype.isInfinity = function isInfinity() {
// XXX This code assumes that zero is always zero in red
return this.z.cmpn(0) === 0;
};
Point.prototype.dbl = function dbl() {
// http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3
// 2M + 2S + 4A
// A = X1 + Z1
var a = this.x.redAdd(this.z);
// AA = A^2
var aa = a.redSqr();
// B = X1 - Z1
var b = this.x.redSub(this.z);
// BB = B^2
var bb = b.redSqr();
// C = AA - BB
var c = aa.redSub(bb);
// X3 = AA * BB
var nx = aa.redMul(bb);
// Z3 = C * (BB + A24 * C)
var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));
return this.curve.point(nx, nz);
};
Point.prototype.add = function add() {
throw new Error('Not supported on Montgomery curve');
};
Point.prototype.diffAdd = function diffAdd(p, diff) {
// http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3
// 4M + 2S + 6A
// A = X2 + Z2
var a = this.x.redAdd(this.z);
// B = X2 - Z2
var b = this.x.redSub(this.z);
// C = X3 + Z3
var c = p.x.redAdd(p.z);
// D = X3 - Z3
var d = p.x.redSub(p.z);
// DA = D * A
var da = d.redMul(a);
// CB = C * B
var cb = c.redMul(b);
// X5 = Z1 * (DA + CB)^2
var nx = diff.z.redMul(da.redAdd(cb).redSqr());
// Z5 = X1 * (DA - CB)^2
var nz = diff.x.redMul(da.redISub(cb).redSqr());
return this.curve.point(nx, nz);
};
Point.prototype.mul = function mul(k) {
var t = k.clone();
var a = this; // (N / 2) * Q + Q
var b = this.curve.point(null, null); // (N / 2) * Q
var c = this; // Q
for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1)) {
bits.push(t.andln(1));
}for (var i = bits.length - 1; i >= 0; i--) {
if (bits[i] === 0) {
// N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q
a = a.diffAdd(b, c);
// N * Q = 2 * ((N / 2) * Q + Q))
b = b.dbl();
} else {
// N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)
b = a.diffAdd(b, c);
// N * Q + Q = 2 * ((N / 2) * Q + Q)
a = a.dbl();
}
}
return b;
};
Point.prototype.mulAdd = function mulAdd() {
throw new Error('Not supported on Montgomery curve');
};
Point.prototype.jumlAdd = function jumlAdd() {
throw new Error('Not supported on Montgomery curve');
};
Point.prototype.eq = function eq(other) {
return this.getX().cmp(other.getX()) === 0;
};
Point.prototype.normalize = function normalize() {
this.x = this.x.redMul(this.z.redInvm());
this.z = this.curve.one;
return this;
};
Point.prototype.getX = function getX() {
// Normalize coordinates
this.normalize();
return this.x.fromRed();
};
},{"../../elliptic":225,"../curve":228,"bn.js":169,"inherits":266}],230:[function(require,module,exports){
'use strict';
var curve = require('../curve');
var elliptic = require('../../elliptic');
var BN = require('bn.js');
var inherits = require('inherits');
var Base = curve.base;
var assert = elliptic.utils.assert;
function ShortCurve(conf) {
Base.call(this, 'short', conf);
this.a = new BN(conf.a, 16).toRed(this.red);
this.b = new BN(conf.b, 16).toRed(this.red);
this.tinv = this.two.redInvm();
this.zeroA = this.a.fromRed().cmpn(0) === 0;
this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;
// If the curve is endomorphic, precalculate beta and lambda
this.endo = this._getEndomorphism(conf);
this._endoWnafT1 = new Array(4);
this._endoWnafT2 = new Array(4);
}
inherits(ShortCurve, Base);
module.exports = ShortCurve;
ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
// No efficient endomorphism
if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1) return;
// Compute beta and lambda, that lambda * P = (beta * Px; Py)
var beta;
var lambda;
if (conf.beta) {
beta = new BN(conf.beta, 16).toRed(this.red);
} else {
var betas = this._getEndoRoots(this.p);
// Choose the smallest beta
beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];
beta = beta.toRed(this.red);
}
if (conf.lambda) {
lambda = new BN(conf.lambda, 16);
} else {
// Choose the lambda that is matching selected beta
var lambdas = this._getEndoRoots(this.n);
if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {
lambda = lambdas[0];
} else {
lambda = lambdas[1];
assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);
}
}
// Get basis vectors, used for balanced length-two representation
var basis;
if (conf.basis) {
basis = conf.basis.map(function (vec) {
return {
a: new BN(vec.a, 16),
b: new BN(vec.b, 16)
};
});
} else {
basis = this._getEndoBasis(lambda);
}
return {
beta: beta,
lambda: lambda,
basis: basis
};
};
ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {
// Find roots of for x^2 + x + 1 in F
// Root = (-1 +- Sqrt(-3)) / 2
//
var red = num === this.p ? this.red : BN.mont(num);
var tinv = new BN(2).toRed(red).redInvm();
var ntinv = tinv.redNeg();
var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);
var l1 = ntinv.redAdd(s).fromRed();
var l2 = ntinv.redSub(s).fromRed();
return [l1, l2];
};
ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
// aprxSqrt >= sqrt(this.n)
var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));
// 3.74
// Run EGCD, until r(L + 1) < aprxSqrt
var u = lambda;
var v = this.n.clone();
var x1 = new BN(1);
var y1 = new BN(0);
var x2 = new BN(0);
var y2 = new BN(1);
// NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)
var a0;
var b0;
// First vector
var a1;
var b1;
// Second vector
var a2;
var b2;
var prevR;
var i = 0;
var r;
var x;
while (u.cmpn(0) !== 0) {
var q = v.div(u);
r = v.sub(q.mul(u));
x = x2.sub(q.mul(x1));
var y = y2.sub(q.mul(y1));
if (!a1 && r.cmp(aprxSqrt) < 0) {
a0 = prevR.neg();
b0 = x1;
a1 = r.neg();
b1 = x;
} else if (a1 && ++i === 2) {
break;
}
prevR = r;
v = u;
u = r;
x2 = x1;
x1 = x;
y2 = y1;
y1 = y;
}
a2 = r.neg();
b2 = x;
var len1 = a1.sqr().add(b1.sqr());
var len2 = a2.sqr().add(b2.sqr());
if (len2.cmp(len1) >= 0) {
a2 = a0;
b2 = b0;
}
// Normalize signs
if (a1.negative) {
a1 = a1.neg();
b1 = b1.neg();
}
if (a2.negative) {
a2 = a2.neg();
b2 = b2.neg();
}
return [{ a: a1, b: b1 }, { a: a2, b: b2 }];
};
ShortCurve.prototype._endoSplit = function _endoSplit(k) {
var basis = this.endo.basis;
var v1 = basis[0];
var v2 = basis[1];
var c1 = v2.b.mul(k).divRound(this.n);
var c2 = v1.b.neg().mul(k).divRound(this.n);
var p1 = c1.mul(v1.a);
var p2 = c2.mul(v2.a);
var q1 = c1.mul(v1.b);
var q2 = c2.mul(v2.b);
// Calculate answer
var k1 = k.sub(p1).sub(p2);
var k2 = q1.add(q2).neg();
return { k1: k1, k2: k2 };
};
ShortCurve.prototype.pointFromX = function pointFromX(x, odd) {
x = new BN(x, 16);
if (!x.red) x = x.toRed(this.red);
var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);
var y = y2.redSqrt();
if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point');
// XXX Is there any way to tell if the number is odd without converting it
// to non-red form?
var isOdd = y.fromRed().isOdd();
if (odd && !isOdd || !odd && isOdd) y = y.redNeg();
return this.point(x, y);
};
ShortCurve.prototype.validate = function validate(point) {
if (point.inf) return true;
var x = point.x;
var y = point.y;
var ax = this.a.redMul(x);
var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);
return y.redSqr().redISub(rhs).cmpn(0) === 0;
};
ShortCurve.prototype._endoWnafMulAdd = function _endoWnafMulAdd(points, coeffs, jacobianResult) {
var npoints = this._endoWnafT1;
var ncoeffs = this._endoWnafT2;
for (var i = 0; i < points.length; i++) {
var split = this._endoSplit(coeffs[i]);
var p = points[i];
var beta = p._getBeta();
if (split.k1.negative) {
split.k1.ineg();
p = p.neg(true);
}
if (split.k2.negative) {
split.k2.ineg();
beta = beta.neg(true);
}
npoints[i * 2] = p;
npoints[i * 2 + 1] = beta;
ncoeffs[i * 2] = split.k1;
ncoeffs[i * 2 + 1] = split.k2;
}
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
// Clean-up references to points and coefficients
for (var j = 0; j < i * 2; j++) {
npoints[j] = null;
ncoeffs[j] = null;
}
return res;
};
function Point(curve, x, y, isRed) {
Base.BasePoint.call(this, curve, 'affine');
if (x === null && y === null) {
this.x = null;
this.y = null;
this.inf = true;
} else {
this.x = new BN(x, 16);
this.y = new BN(y, 16);
// Force redgomery representation when loading from JSON
if (isRed) {
this.x.forceRed(this.curve.red);
this.y.forceRed(this.curve.red);
}
if (!this.x.red) this.x = this.x.toRed(this.curve.red);
if (!this.y.red) this.y = this.y.toRed(this.curve.red);
this.inf = false;
}
}
inherits(Point, Base.BasePoint);
ShortCurve.prototype.point = function point(x, y, isRed) {
return new Point(this, x, y, isRed);
};
ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {
return Point.fromJSON(this, obj, red);
};
Point.prototype._getBeta = function _getBeta() {
if (!this.curve.endo) return;
var pre = this.precomputed;
if (pre && pre.beta) return pre.beta;
var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
if (pre) {
var curve = this.curve;
var endoMul = function endoMul(p) {
return curve.point(p.x.redMul(curve.endo.beta), p.y);
};
pre.beta = beta;
beta.precomputed = {
beta: null,
naf: pre.naf && {
wnd: pre.naf.wnd,
points: pre.naf.points.map(endoMul)
},
doubles: pre.doubles && {
step: pre.doubles.step,
points: pre.doubles.points.map(endoMul)
}
};
}
return beta;
};
Point.prototype.toJSON = function toJSON() {
if (!this.precomputed) return [this.x, this.y];
return [this.x, this.y, this.precomputed && {
doubles: this.precomputed.doubles && {
step: this.precomputed.doubles.step,
points: this.precomputed.doubles.points.slice(1)
},
naf: this.precomputed.naf && {
wnd: this.precomputed.naf.wnd,
points: this.precomputed.naf.points.slice(1)
}
}];
};
Point.fromJSON = function fromJSON(curve, obj, red) {
if (typeof obj === 'string') obj = JSON.parse(obj);
var res = curve.point(obj[0], obj[1], red);
if (!obj[2]) return res;
function obj2point(obj) {
return curve.point(obj[0], obj[1], red);
}
var pre = obj[2];
res.precomputed = {
beta: null,
doubles: pre.doubles && {
step: pre.doubles.step,
points: [res].concat(pre.doubles.points.map(obj2point))
},
naf: pre.naf && {
wnd: pre.naf.wnd,
points: [res].concat(pre.naf.points.map(obj2point))
}
};
return res;
};
Point.prototype.inspect = function inspect() {
if (this.isInfinity()) return '<EC Point Infinity>';
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) + ' y: ' + this.y.fromRed().toString(16, 2) + '>';
};
Point.prototype.isInfinity = function isInfinity() {
return this.inf;
};
Point.prototype.add = function add(p) {
// O + P = P
if (this.inf) return p;
// P + O = P
if (p.inf) return this;
// P + P = 2P
if (this.eq(p)) return this.dbl();
// P + (-P) = O
if (this.neg().eq(p)) return this.curve.point(null, null);
// P + Q = O
if (this.x.cmp(p.x) === 0) return this.curve.point(null, null);
var c = this.y.redSub(p.y);
if (c.cmpn(0) !== 0) c = c.redMul(this.x.redSub(p.x).redInvm());
var nx = c.redSqr().redISub(this.x).redISub(p.x);
var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
return this.curve.point(nx, ny);
};
Point.prototype.dbl = function dbl() {
if (this.inf) return this;
// 2P = O
var ys1 = this.y.redAdd(this.y);
if (ys1.cmpn(0) === 0) return this.curve.point(null, null);
var a = this.curve.a;
var x2 = this.x.redSqr();
var dyinv = ys1.redInvm();
var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);
var nx = c.redSqr().redISub(this.x.redAdd(this.x));
var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
return this.curve.point(nx, ny);
};
Point.prototype.getX = function getX() {
return this.x.fromRed();
};
Point.prototype.getY = function getY() {
return this.y.fromRed();
};
Point.prototype.mul = function mul(k) {
k = new BN(k, 16);
if (this._hasDoubles(k)) return this.curve._fixedNafMul(this, k);else if (this.curve.endo) return this.curve._endoWnafMulAdd([this], [k]);else return this.curve._wnafMul(this, k);
};
Point.prototype.mulAdd = function mulAdd(k1, p2, k2) {
var points = [this, p2];
var coeffs = [k1, k2];
if (this.curve.endo) return this.curve._endoWnafMulAdd(points, coeffs);else return this.curve._wnafMulAdd(1, points, coeffs, 2);
};
Point.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {
var points = [this, p2];
var coeffs = [k1, k2];
if (this.curve.endo) return this.curve._endoWnafMulAdd(points, coeffs, true);else return this.curve._wnafMulAdd(1, points, coeffs, 2, true);
};
Point.prototype.eq = function eq(p) {
return this === p || this.inf === p.inf && (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);
};
Point.prototype.neg = function neg(_precompute) {
if (this.inf) return this;
var res = this.curve.point(this.x, this.y.redNeg());
if (_precompute && this.precomputed) {
var pre = this.precomputed;
var negate = function negate(p) {
return p.neg();
};
res.precomputed = {
naf: pre.naf && {
wnd: pre.naf.wnd,
points: pre.naf.points.map(negate)
},
doubles: pre.doubles && {
step: pre.doubles.step,
points: pre.doubles.points.map(negate)
}
};
}
return res;
};
Point.prototype.toJ = function toJ() {
if (this.inf) return this.curve.jpoint(null, null, null);
var res = this.curve.jpoint(this.x, this.y, this.curve.one);
return res;
};
function JPoint(curve, x, y, z) {
Base.BasePoint.call(this, curve, 'jacobian');
if (x === null && y === null && z === null) {
this.x = this.curve.one;
this.y = this.curve.one;
this.z = new BN(0);
} else {
this.x = new BN(x, 16);
this.y = new BN(y, 16);
this.z = new BN(z, 16);
}
if (!this.x.red) this.x = this.x.toRed(this.curve.red);
if (!this.y.red) this.y = this.y.toRed(this.curve.red);
if (!this.z.red) this.z = this.z.toRed(this.curve.red);
this.zOne = this.z === this.curve.one;
}
inherits(JPoint, Base.BasePoint);
ShortCurve.prototype.jpoint = function jpoint(x, y, z) {
return new JPoint(this, x, y, z);
};
JPoint.prototype.toP = function toP() {
if (this.isInfinity()) return this.curve.point(null, null);
var zinv = this.z.redInvm();
var zinv2 = zinv.redSqr();
var ax = this.x.redMul(zinv2);
var ay = this.y.redMul(zinv2).redMul(zinv);
return this.curve.point(ax, ay);
};
JPoint.prototype.neg = function neg() {
return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
};
JPoint.prototype.add = function add(p) {
// O + P = P
if (this.isInfinity()) return p;
// P + O = P
if (p.isInfinity()) return this;
// 12M + 4S + 7A
var pz2 = p.z.redSqr();
var z2 = this.z.redSqr();
var u1 = this.x.redMul(pz2);
var u2 = p.x.redMul(z2);
var s1 = this.y.redMul(pz2.redMul(p.z));
var s2 = p.y.redMul(z2.redMul(this.z));
var h = u1.redSub(u2);
var r = s1.redSub(s2);
if (h.cmpn(0) === 0) {
if (r.cmpn(0) !== 0) return this.curve.jpoint(null, null, null);else return this.dbl();
}
var h2 = h.redSqr();
var h3 = h2.redMul(h);
var v = u1.redMul(h2);
var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
var nz = this.z.redMul(p.z).redMul(h);
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype.mixedAdd = function mixedAdd(p) {
// O + P = P
if (this.isInfinity()) return p.toJ();
// P + O = P
if (p.isInfinity()) return this;
// 8M + 3S + 7A
var z2 = this.z.redSqr();
var u1 = this.x;
var u2 = p.x.redMul(z2);
var s1 = this.y;
var s2 = p.y.redMul(z2).redMul(this.z);
var h = u1.redSub(u2);
var r = s1.redSub(s2);
if (h.cmpn(0) === 0) {
if (r.cmpn(0) !== 0) return this.curve.jpoint(null, null, null);else return this.dbl();
}
var h2 = h.redSqr();
var h3 = h2.redMul(h);
var v = u1.redMul(h2);
var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
var nz = this.z.redMul(h);
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype.dblp = function dblp(pow) {
if (pow === 0) return this;
if (this.isInfinity()) return this;
if (!pow) return this.dbl();
if (this.curve.zeroA || this.curve.threeA) {
var r = this;
for (var i = 0; i < pow; i++) {
r = r.dbl();
}return r;
}
// 1M + 2S + 1A + N * (4S + 5M + 8A)
// N = 1 => 6M + 6S + 9A
var a = this.curve.a;
var tinv = this.curve.tinv;
var jx = this.x;
var jy = this.y;
var jz = this.z;
var jz4 = jz.redSqr().redSqr();
// Reuse results
var jyd = jy.redAdd(jy);
for (var i = 0; i < pow; i++) {
var jx2 = jx.redSqr();
var jyd2 = jyd.redSqr();
var jyd4 = jyd2.redSqr();
var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
var t1 = jx.redMul(jyd2);
var nx = c.redSqr().redISub(t1.redAdd(t1));
var t2 = t1.redISub(nx);
var dny = c.redMul(t2);
dny = dny.redIAdd(dny).redISub(jyd4);
var nz = jyd.redMul(jz);
if (i + 1 < pow) jz4 = jz4.redMul(jyd4);
jx = nx;
jz = nz;
jyd = dny;
}
return this.curve.jpoint(jx, jyd.redMul(tinv), jz);
};
JPoint.prototype.dbl = function dbl() {
if (this.isInfinity()) return this;
if (this.curve.zeroA) return this._zeroDbl();else if (this.curve.threeA) return this._threeDbl();else return this._dbl();
};
JPoint.prototype._zeroDbl = function _zeroDbl() {
var nx;
var ny;
var nz;
// Z = 1
if (this.zOne) {
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
// #doubling-mdbl-2007-bl
// 1M + 5S + 14A
// XX = X1^2
var xx = this.x.redSqr();
// YY = Y1^2
var yy = this.y.redSqr();
// YYYY = YY^2
var yyyy = yy.redSqr();
// S = 2 * ((X1 + YY)^2 - XX - YYYY)
var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
s = s.redIAdd(s);
// M = 3 * XX + a; a = 0
var m = xx.redAdd(xx).redIAdd(xx);
// T = M ^ 2 - 2*S
var t = m.redSqr().redISub(s).redISub(s);
// 8 * YYYY
var yyyy8 = yyyy.redIAdd(yyyy);
yyyy8 = yyyy8.redIAdd(yyyy8);
yyyy8 = yyyy8.redIAdd(yyyy8);
// X3 = T
nx = t;
// Y3 = M * (S - T) - 8 * YYYY
ny = m.redMul(s.redISub(t)).redISub(yyyy8);
// Z3 = 2*Y1
nz = this.y.redAdd(this.y);
} else {
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
// #doubling-dbl-2009-l
// 2M + 5S + 13A
// A = X1^2
var a = this.x.redSqr();
// B = Y1^2
var b = this.y.redSqr();
// C = B^2
var c = b.redSqr();
// D = 2 * ((X1 + B)^2 - A - C)
var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);
d = d.redIAdd(d);
// E = 3 * A
var e = a.redAdd(a).redIAdd(a);
// F = E^2
var f = e.redSqr();
// 8 * C
var c8 = c.redIAdd(c);
c8 = c8.redIAdd(c8);
c8 = c8.redIAdd(c8);
// X3 = F - 2 * D
nx = f.redISub(d).redISub(d);
// Y3 = E * (D - X3) - 8 * C
ny = e.redMul(d.redISub(nx)).redISub(c8);
// Z3 = 2 * Y1 * Z1
nz = this.y.redMul(this.z);
nz = nz.redIAdd(nz);
}
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype._threeDbl = function _threeDbl() {
var nx;
var ny;
var nz;
// Z = 1
if (this.zOne) {
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html
// #doubling-mdbl-2007-bl
// 1M + 5S + 15A
// XX = X1^2
var xx = this.x.redSqr();
// YY = Y1^2
var yy = this.y.redSqr();
// YYYY = YY^2
var yyyy = yy.redSqr();
// S = 2 * ((X1 + YY)^2 - XX - YYYY)
var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
s = s.redIAdd(s);
// M = 3 * XX + a
var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);
// T = M^2 - 2 * S
var t = m.redSqr().redISub(s).redISub(s);
// X3 = T
nx = t;
// Y3 = M * (S - T) - 8 * YYYY
var yyyy8 = yyyy.redIAdd(yyyy);
yyyy8 = yyyy8.redIAdd(yyyy8);
yyyy8 = yyyy8.redIAdd(yyyy8);
ny = m.redMul(s.redISub(t)).redISub(yyyy8);
// Z3 = 2 * Y1
nz = this.y.redAdd(this.y);
} else {
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
// 3M + 5S
// delta = Z1^2
var delta = this.z.redSqr();
// gamma = Y1^2
var gamma = this.y.redSqr();
// beta = X1 * gamma
var beta = this.x.redMul(gamma);
// alpha = 3 * (X1 - delta) * (X1 + delta)
var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));
alpha = alpha.redAdd(alpha).redIAdd(alpha);
// X3 = alpha^2 - 8 * beta
var beta4 = beta.redIAdd(beta);
beta4 = beta4.redIAdd(beta4);
var beta8 = beta4.redAdd(beta4);
nx = alpha.redSqr().redISub(beta8);
// Z3 = (Y1 + Z1)^2 - gamma - delta
nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);
// Y3 = alpha * (4 * beta - X3) - 8 * gamma^2
var ggamma8 = gamma.redSqr();
ggamma8 = ggamma8.redIAdd(ggamma8);
ggamma8 = ggamma8.redIAdd(ggamma8);
ggamma8 = ggamma8.redIAdd(ggamma8);
ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);
}
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype._dbl = function _dbl() {
var a = this.curve.a;
// 4M + 6S + 10A
var jx = this.x;
var jy = this.y;
var jz = this.z;
var jz4 = jz.redSqr().redSqr();
var jx2 = jx.redSqr();
var jy2 = jy.redSqr();
var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
var jxd4 = jx.redAdd(jx);
jxd4 = jxd4.redIAdd(jxd4);
var t1 = jxd4.redMul(jy2);
var nx = c.redSqr().redISub(t1.redAdd(t1));
var t2 = t1.redISub(nx);
var jyd8 = jy2.redSqr();
jyd8 = jyd8.redIAdd(jyd8);
jyd8 = jyd8.redIAdd(jyd8);
jyd8 = jyd8.redIAdd(jyd8);
var ny = c.redMul(t2).redISub(jyd8);
var nz = jy.redAdd(jy).redMul(jz);
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype.trpl = function trpl() {
if (!this.curve.zeroA) return this.dbl().add(this);
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl
// 5M + 10S + ...
// XX = X1^2
var xx = this.x.redSqr();
// YY = Y1^2
var yy = this.y.redSqr();
// ZZ = Z1^2
var zz = this.z.redSqr();
// YYYY = YY^2
var yyyy = yy.redSqr();
// M = 3 * XX + a * ZZ2; a = 0
var m = xx.redAdd(xx).redIAdd(xx);
// MM = M^2
var mm = m.redSqr();
// E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM
var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
e = e.redIAdd(e);
e = e.redAdd(e).redIAdd(e);
e = e.redISub(mm);
// EE = E^2
var ee = e.redSqr();
// T = 16*YYYY
var t = yyyy.redIAdd(yyyy);
t = t.redIAdd(t);
t = t.redIAdd(t);
t = t.redIAdd(t);
// U = (M + E)^2 - MM - EE - T
var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);
// X3 = 4 * (X1 * EE - 4 * YY * U)
var yyu4 = yy.redMul(u);
yyu4 = yyu4.redIAdd(yyu4);
yyu4 = yyu4.redIAdd(yyu4);
var nx = this.x.redMul(ee).redISub(yyu4);
nx = nx.redIAdd(nx);
nx = nx.redIAdd(nx);
// Y3 = 8 * Y1 * (U * (T - U) - E * EE)
var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));
ny = ny.redIAdd(ny);
ny = ny.redIAdd(ny);
ny = ny.redIAdd(ny);
// Z3 = (Z1 + E)^2 - ZZ - EE
var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);
return this.curve.jpoint(nx, ny, nz);
};
JPoint.prototype.mul = function mul(k, kbase) {
k = new BN(k, kbase);
return this.curve._wnafMul(this, k);
};
JPoint.prototype.eq = function eq(p) {
if (p.type === 'affine') return this.eq(p.toJ());
if (this === p) return true;
// x1 * z2^2 == x2 * z1^2
var z2 = this.z.redSqr();
var pz2 = p.z.redSqr();
if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0) return false;
// y1 * z2^3 == y2 * z1^3
var z3 = z2.redMul(this.z);
var pz3 = pz2.redMul(p.z);
return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;
};
JPoint.prototype.eqXToP = function eqXToP(x) {
var zs = this.z.redSqr();
var rx = x.toRed(this.curve.red).redMul(zs);
if (this.x.cmp(rx) === 0) return true;
var xc = x.clone();
var t = this.curve.redN.redMul(zs);
for (;;) {
xc.iadd(this.curve.n);
if (xc.cmp(this.curve.p) >= 0) return false;
rx.redIAdd(t);
if (this.x.cmp(rx) === 0) return true;
}
return false;
};
JPoint.prototype.inspect = function inspect() {
if (this.isInfinity()) return '<EC JPoint Infinity>';
return '<EC JPoint x: ' + this.x.toString(16, 2) + ' y: ' + this.y.toString(16, 2) + ' z: ' + this.z.toString(16, 2) + '>';
};
JPoint.prototype.isInfinity = function isInfinity() {
// XXX This code assumes that zero is always zero in red
return this.z.cmpn(0) === 0;
};
},{"../../elliptic":225,"../curve":228,"bn.js":169,"inherits":266}],231:[function(require,module,exports){
'use strict';
var curves = exports;
var hash = require('hash.js');
var elliptic = require('../elliptic');
var assert = elliptic.utils.assert;
function PresetCurve(options) {
if (options.type === 'short') this.curve = new elliptic.curve.short(options);else if (options.type === 'edwards') this.curve = new elliptic.curve.edwards(options);else this.curve = new elliptic.curve.mont(options);
this.g = this.curve.g;
this.n = this.curve.n;
this.hash = options.hash;
assert(this.g.validate(), 'Invalid curve');
assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');
}
curves.PresetCurve = PresetCurve;
function defineCurve(name, options) {
Object.defineProperty(curves, name, {
configurable: true,
enumerable: true,
get: function get() {
var curve = new PresetCurve(options);
Object.defineProperty(curves, name, {
configurable: true,
enumerable: true,
value: curve
});
return curve;
}
});
}
defineCurve('p192', {
type: 'short',
prime: 'p192',
p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',
a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',
b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',
n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',
hash: hash.sha256,
gRed: false,
g: ['188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811']
});
defineCurve('p224', {
type: 'short',
prime: 'p224',
p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',
a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',
b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',
n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',
hash: hash.sha256,
gRed: false,
g: ['b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34']
});
defineCurve('p256', {
type: 'short',
prime: null,
p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',
a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',
b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',
n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',
hash: hash.sha256,
gRed: false,
g: ['6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296', '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5']
});
defineCurve('p384', {
type: 'short',
prime: null,
p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'fffffffe ffffffff 00000000 00000000 ffffffff',
a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'fffffffe ffffffff 00000000 00000000 fffffffc',
b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' + '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',
n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' + 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',
hash: hash.sha384,
gRed: false,
g: ['aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' + '5502f25d bf55296c 3a545e38 72760ab7', '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' + '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f']
});
defineCurve('p521', {
type: 'short',
prime: null,
p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff',
a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff ffffffff ffffffff fffffffc',
b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' + '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' + '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',
n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' + 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' + 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',
hash: hash.sha512,
gRed: false,
g: ['000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' + '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' + 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66', '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' + '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' + '3fad0761 353c7086 a272c240 88be9476 9fd16650']
});
defineCurve('curve25519', {
type: 'mont',
prime: 'p25519',
p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
a: '76d06',
b: '1',
n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
hash: hash.sha256,
gRed: false,
g: ['9']
});
defineCurve('ed25519', {
type: 'edwards',
prime: 'p25519',
p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
a: '-1',
c: '1',
// -121665 * (121666^(-1)) (mod P)
d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',
n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
hash: hash.sha256,
gRed: false,
g: ['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
// 4/5
'6666666666666666666666666666666666666666666666666666666666666658']
});
var pre;
try {
pre = require('./precomputed/secp256k1');
} catch (e) {
pre = undefined;
}
defineCurve('secp256k1', {
type: 'short',
prime: 'k256',
p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',
a: '0',
b: '7',
n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',
h: '1',
hash: hash.sha256,
// Precomputed endomorphism
beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',
lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',
basis: [{
a: '3086d221a7d46bcde86c90e49284eb15',
b: '-e4437ed6010e88286f547fa90abfe4c3'
}, {
a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
b: '3086d221a7d46bcde86c90e49284eb15'
}],
gRed: false,
g: ['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', pre]
});
},{"../elliptic":225,"./precomputed/secp256k1":238,"hash.js":248}],232:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var BN = require('bn.js');
var HmacDRBG = require('hmac-drbg');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
var KeyPair = require('./key');
var Signature = require('./signature');
function EC(options) {
if (!(this instanceof EC)) return new EC(options);
// Shortcut `elliptic.ec(curve-name)`
if (typeof options === 'string') {
assert(elliptic.curves.hasOwnProperty(options), 'Unknown curve ' + options);
options = elliptic.curves[options];
}
// Shortcut for `elliptic.ec(elliptic.curves.curveName)`
if (options instanceof elliptic.curves.PresetCurve) options = { curve: options };
this.curve = options.curve.curve;
this.n = this.curve.n;
this.nh = this.n.ushrn(1);
this.g = this.curve.g;
// Point on curve
this.g = options.curve.g;
this.g.precompute(options.curve.n.bitLength() + 1);
// Hash for function for DRBG
this.hash = options.hash || options.curve.hash;
}
module.exports = EC;
EC.prototype.keyPair = function keyPair(options) {
return new KeyPair(this, options);
};
EC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {
return KeyPair.fromPrivate(this, priv, enc);
};
EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {
return KeyPair.fromPublic(this, pub, enc);
};
EC.prototype.genKeyPair = function genKeyPair(options) {
if (!options) options = {};
// Instantiate Hmac_DRBG
var drbg = new HmacDRBG({
hash: this.hash,
pers: options.pers,
persEnc: options.persEnc || 'utf8',
entropy: options.entropy || elliptic.rand(this.hash.hmacStrength),
entropyEnc: options.entropy && options.entropyEnc || 'utf8',
nonce: this.n.toArray()
});
var bytes = this.n.byteLength();
var ns2 = this.n.sub(new BN(2));
do {
var priv = new BN(drbg.generate(bytes));
if (priv.cmp(ns2) > 0) continue;
priv.iaddn(1);
return this.keyFromPrivate(priv);
} while (true);
};
EC.prototype._truncateToN = function truncateToN(msg, truncOnly) {
var delta = msg.byteLength() * 8 - this.n.bitLength();
if (delta > 0) msg = msg.ushrn(delta);
if (!truncOnly && msg.cmp(this.n) >= 0) return msg.sub(this.n);else return msg;
};
EC.prototype.sign = function sign(msg, key, enc, options) {
if ((typeof enc === 'undefined' ? 'undefined' : _typeof(enc)) === 'object') {
options = enc;
enc = null;
}
if (!options) options = {};
key = this.keyFromPrivate(key, enc);
msg = this._truncateToN(new BN(msg, 16));
// Zero-extend key to provide enough entropy
var bytes = this.n.byteLength();
var bkey = key.getPrivate().toArray('be', bytes);
// Zero-extend nonce to have the same byte size as N
var nonce = msg.toArray('be', bytes);
// Instantiate Hmac_DRBG
var drbg = new HmacDRBG({
hash: this.hash,
entropy: bkey,
nonce: nonce,
pers: options.pers,
persEnc: options.persEnc || 'utf8'
});
// Number of bytes to generate
var ns1 = this.n.sub(new BN(1));
for (var iter = 0; true; iter++) {
var k = options.k ? options.k(iter) : new BN(drbg.generate(this.n.byteLength()));
k = this._truncateToN(k, true);
if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) continue;
var kp = this.g.mul(k);
if (kp.isInfinity()) continue;
var kpX = kp.getX();
var r = kpX.umod(this.n);
if (r.cmpn(0) === 0) continue;
var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));
s = s.umod(this.n);
if (s.cmpn(0) === 0) continue;
var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (kpX.cmp(r) !== 0 ? 2 : 0);
// Use complement of `s`, if it is > `n / 2`
if (options.canonical && s.cmp(this.nh) > 0) {
s = this.n.sub(s);
recoveryParam ^= 1;
}
return new Signature({ r: r, s: s, recoveryParam: recoveryParam });
}
};
EC.prototype.verify = function verify(msg, signature, key, enc) {
msg = this._truncateToN(new BN(msg, 16));
key = this.keyFromPublic(key, enc);
signature = new Signature(signature, 'hex');
// Perform primitive values validation
var r = signature.r;
var s = signature.s;
if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0) return false;
if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0) return false;
// Validate signature
var sinv = s.invm(this.n);
var u1 = sinv.mul(msg).umod(this.n);
var u2 = sinv.mul(r).umod(this.n);
if (!this.curve._maxwellTrick) {
var p = this.g.mulAdd(u1, key.getPublic(), u2);
if (p.isInfinity()) return false;
return p.getX().umod(this.n).cmp(r) === 0;
}
// NOTE: Greg Maxwell's trick, inspired by:
// https://git.io/vad3K
var p = this.g.jmulAdd(u1, key.getPublic(), u2);
if (p.isInfinity()) return false;
// Compare `p.x` of Jacobian point with `r`,
// this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the
// inverse of `p.z^2`
return p.eqXToP(r);
};
EC.prototype.recoverPubKey = function (msg, signature, j, enc) {
assert((3 & j) === j, 'The recovery param is more than two bits');
signature = new Signature(signature, enc);
var n = this.n;
var e = new BN(msg);
var r = signature.r;
var s = signature.s;
// A set LSB signifies that the y-coordinate is odd
var isYOdd = j & 1;
var isSecondKey = j >> 1;
if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey) throw new Error('Unable to find sencond key candinate');
// 1.1. Let x = r + jn.
if (isSecondKey) r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);else r = this.curve.pointFromX(r, isYOdd);
var rInv = signature.r.invm(n);
var s1 = n.sub(e).mul(rInv).umod(n);
var s2 = s.mul(rInv).umod(n);
// 1.6.1 Compute Q = r^-1 (sR - eG)
// Q = r^-1 (sR + -eG)
return this.g.mulAdd(s1, r, s2);
};
EC.prototype.getKeyRecoveryParam = function (e, signature, Q, enc) {
signature = new Signature(signature, enc);
if (signature.recoveryParam !== null) return signature.recoveryParam;
for (var i = 0; i < 4; i++) {
var Qprime;
try {
Qprime = this.recoverPubKey(e, signature, i);
} catch (e) {
continue;
}
if (Qprime.eq(Q)) return i;
}
throw new Error('Unable to find valid recovery factor');
};
},{"../../elliptic":225,"./key":233,"./signature":234,"bn.js":169,"hmac-drbg":261}],233:[function(require,module,exports){
'use strict';
var BN = require('bn.js');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
function KeyPair(ec, options) {
this.ec = ec;
this.priv = null;
this.pub = null;
// KeyPair(ec, { priv: ..., pub: ... })
if (options.priv) this._importPrivate(options.priv, options.privEnc);
if (options.pub) this._importPublic(options.pub, options.pubEnc);
}
module.exports = KeyPair;
KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
if (pub instanceof KeyPair) return pub;
return new KeyPair(ec, {
pub: pub,
pubEnc: enc
});
};
KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
if (priv instanceof KeyPair) return priv;
return new KeyPair(ec, {
priv: priv,
privEnc: enc
});
};
KeyPair.prototype.validate = function validate() {
var pub = this.getPublic();
if (pub.isInfinity()) return { result: false, reason: 'Invalid public key' };
if (!pub.validate()) return { result: false, reason: 'Public key is not a point' };
if (!pub.mul(this.ec.curve.n).isInfinity()) return { result: false, reason: 'Public key * N != O' };
return { result: true, reason: null };
};
KeyPair.prototype.getPublic = function getPublic(compact, enc) {
// compact is optional argument
if (typeof compact === 'string') {
enc = compact;
compact = null;
}
if (!this.pub) this.pub = this.ec.g.mul(this.priv);
if (!enc) return this.pub;
return this.pub.encode(enc, compact);
};
KeyPair.prototype.getPrivate = function getPrivate(enc) {
if (enc === 'hex') return this.priv.toString(16, 2);else return this.priv;
};
KeyPair.prototype._importPrivate = function _importPrivate(key, enc) {
this.priv = new BN(key, enc || 16);
// Ensure that the priv won't be bigger than n, otherwise we may fail
// in fixed multiplication method
this.priv = this.priv.umod(this.ec.curve.n);
};
KeyPair.prototype._importPublic = function _importPublic(key, enc) {
if (key.x || key.y) {
// Montgomery points only have an `x` coordinate.
// Weierstrass/Edwards points on the other hand have both `x` and
// `y` coordinates.
if (this.ec.curve.type === 'mont') {
assert(key.x, 'Need x coordinate');
} else if (this.ec.curve.type === 'short' || this.ec.curve.type === 'edwards') {
assert(key.x && key.y, 'Need both x and y coordinate');
}
this.pub = this.ec.curve.point(key.x, key.y);
return;
}
this.pub = this.ec.curve.decodePoint(key, enc);
};
// ECDH
KeyPair.prototype.derive = function derive(pub) {
return pub.mul(this.priv).getX();
};
// ECDSA
KeyPair.prototype.sign = function sign(msg, enc, options) {
return this.ec.sign(msg, this, enc, options);
};
KeyPair.prototype.verify = function verify(msg, signature) {
return this.ec.verify(msg, signature, this);
};
KeyPair.prototype.inspect = function inspect() {
return '<Key priv: ' + (this.priv && this.priv.toString(16, 2)) + ' pub: ' + (this.pub && this.pub.inspect()) + ' >';
};
},{"../../elliptic":225,"bn.js":169}],234:[function(require,module,exports){
'use strict';
var BN = require('bn.js');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
function Signature(options, enc) {
if (options instanceof Signature) return options;
if (this._importDER(options, enc)) return;
assert(options.r && options.s, 'Signature without r or s');
this.r = new BN(options.r, 16);
this.s = new BN(options.s, 16);
if (options.recoveryParam === undefined) this.recoveryParam = null;else this.recoveryParam = options.recoveryParam;
}
module.exports = Signature;
function Position() {
this.place = 0;
}
function getLength(buf, p) {
var initial = buf[p.place++];
if (!(initial & 0x80)) {
return initial;
}
var octetLen = initial & 0xf;
var val = 0;
for (var i = 0, off = p.place; i < octetLen; i++, off++) {
val <<= 8;
val |= buf[off];
}
p.place = off;
return val;
}
function rmPadding(buf) {
var i = 0;
var len = buf.length - 1;
while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {
i++;
}
if (i === 0) {
return buf;
}
return buf.slice(i);
}
Signature.prototype._importDER = function _importDER(data, enc) {
data = utils.toArray(data, enc);
var p = new Position();
if (data[p.place++] !== 0x30) {
return false;
}
var len = getLength(data, p);
if (len + p.place !== data.length) {
return false;
}
if (data[p.place++] !== 0x02) {
return false;
}
var rlen = getLength(data, p);
var r = data.slice(p.place, rlen + p.place);
p.place += rlen;
if (data[p.place++] !== 0x02) {
return false;
}
var slen = getLength(data, p);
if (data.length !== slen + p.place) {
return false;
}
var s = data.slice(p.place, slen + p.place);
if (r[0] === 0 && r[1] & 0x80) {
r = r.slice(1);
}
if (s[0] === 0 && s[1] & 0x80) {
s = s.slice(1);
}
this.r = new BN(r);
this.s = new BN(s);
this.recoveryParam = null;
return true;
};
function constructLength(arr, len) {
if (len < 0x80) {
arr.push(len);
return;
}
var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);
arr.push(octets | 0x80);
while (--octets) {
arr.push(len >>> (octets << 3) & 0xff);
}
arr.push(len);
}
Signature.prototype.toDER = function toDER(enc) {
var r = this.r.toArray();
var s = this.s.toArray();
// Pad values
if (r[0] & 0x80) r = [0].concat(r);
// Pad values
if (s[0] & 0x80) s = [0].concat(s);
r = rmPadding(r);
s = rmPadding(s);
while (!s[0] && !(s[1] & 0x80)) {
s = s.slice(1);
}
var arr = [0x02];
constructLength(arr, r.length);
arr = arr.concat(r);
arr.push(0x02);
constructLength(arr, s.length);
var backHalf = arr.concat(s);
var res = [0x30];
constructLength(res, backHalf.length);
res = res.concat(backHalf);
return utils.encode(res, enc);
};
},{"../../elliptic":225,"bn.js":169}],235:[function(require,module,exports){
'use strict';
var hash = require('hash.js');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
var parseBytes = utils.parseBytes;
var KeyPair = require('./key');
var Signature = require('./signature');
function EDDSA(curve) {
assert(curve === 'ed25519', 'only tested with ed25519 so far');
if (!(this instanceof EDDSA)) return new EDDSA(curve);
var curve = elliptic.curves[curve].curve;
this.curve = curve;
this.g = curve.g;
this.g.precompute(curve.n.bitLength() + 1);
this.pointClass = curve.point().constructor;
this.encodingLength = Math.ceil(curve.n.bitLength() / 8);
this.hash = hash.sha512;
}
module.exports = EDDSA;
/**
* @param {Array|String} message - message bytes
* @param {Array|String|KeyPair} secret - secret bytes or a keypair
* @returns {Signature} - signature
*/
EDDSA.prototype.sign = function sign(message, secret) {
message = parseBytes(message);
var key = this.keyFromSecret(secret);
var r = this.hashInt(key.messagePrefix(), message);
var R = this.g.mul(r);
var Rencoded = this.encodePoint(R);
var s_ = this.hashInt(Rencoded, key.pubBytes(), message).mul(key.priv());
var S = r.add(s_).umod(this.curve.n);
return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });
};
/**
* @param {Array} message - message bytes
* @param {Array|String|Signature} sig - sig bytes
* @param {Array|String|Point|KeyPair} pub - public key
* @returns {Boolean} - true if public key matches sig of message
*/
EDDSA.prototype.verify = function verify(message, sig, pub) {
message = parseBytes(message);
sig = this.makeSignature(sig);
var key = this.keyFromPublic(pub);
var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);
var SG = this.g.mul(sig.S());
var RplusAh = sig.R().add(key.pub().mul(h));
return RplusAh.eq(SG);
};
EDDSA.prototype.hashInt = function hashInt() {
var hash = this.hash();
for (var i = 0; i < arguments.length; i++) {
hash.update(arguments[i]);
}return utils.intFromLE(hash.digest()).umod(this.curve.n);
};
EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
return KeyPair.fromPublic(this, pub);
};
EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {
return KeyPair.fromSecret(this, secret);
};
EDDSA.prototype.makeSignature = function makeSignature(sig) {
if (sig instanceof Signature) return sig;
return new Signature(this, sig);
};
/**
* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2
*
* EDDSA defines methods for encoding and decoding points and integers. These are
* helper convenience methods, that pass along to utility functions implied
* parameters.
*
*/
EDDSA.prototype.encodePoint = function encodePoint(point) {
var enc = point.getY().toArray('le', this.encodingLength);
enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;
return enc;
};
EDDSA.prototype.decodePoint = function decodePoint(bytes) {
bytes = utils.parseBytes(bytes);
var lastIx = bytes.length - 1;
var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);
var xIsOdd = (bytes[lastIx] & 0x80) !== 0;
var y = utils.intFromLE(normed);
return this.curve.pointFromY(y, xIsOdd);
};
EDDSA.prototype.encodeInt = function encodeInt(num) {
return num.toArray('le', this.encodingLength);
};
EDDSA.prototype.decodeInt = function decodeInt(bytes) {
return utils.intFromLE(bytes);
};
EDDSA.prototype.isPoint = function isPoint(val) {
return val instanceof this.pointClass;
};
},{"../../elliptic":225,"./key":236,"./signature":237,"hash.js":248}],236:[function(require,module,exports){
'use strict';
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
var parseBytes = utils.parseBytes;
var cachedProperty = utils.cachedProperty;
/**
* @param {EDDSA} eddsa - instance
* @param {Object} params - public/private key parameters
*
* @param {Array<Byte>} [params.secret] - secret seed bytes
* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)
* @param {Array<Byte>} [params.pub] - public key point encoded as bytes
*
*/
function KeyPair(eddsa, params) {
this.eddsa = eddsa;
this._secret = parseBytes(params.secret);
if (eddsa.isPoint(params.pub)) this._pub = params.pub;else this._pubBytes = parseBytes(params.pub);
}
KeyPair.fromPublic = function fromPublic(eddsa, pub) {
if (pub instanceof KeyPair) return pub;
return new KeyPair(eddsa, { pub: pub });
};
KeyPair.fromSecret = function fromSecret(eddsa, secret) {
if (secret instanceof KeyPair) return secret;
return new KeyPair(eddsa, { secret: secret });
};
KeyPair.prototype.secret = function secret() {
return this._secret;
};
cachedProperty(KeyPair, 'pubBytes', function pubBytes() {
return this.eddsa.encodePoint(this.pub());
});
cachedProperty(KeyPair, 'pub', function pub() {
if (this._pubBytes) return this.eddsa.decodePoint(this._pubBytes);
return this.eddsa.g.mul(this.priv());
});
cachedProperty(KeyPair, 'privBytes', function privBytes() {
var eddsa = this.eddsa;
var hash = this.hash();
var lastIx = eddsa.encodingLength - 1;
var a = hash.slice(0, eddsa.encodingLength);
a[0] &= 248;
a[lastIx] &= 127;
a[lastIx] |= 64;
return a;
});
cachedProperty(KeyPair, 'priv', function priv() {
return this.eddsa.decodeInt(this.privBytes());
});
cachedProperty(KeyPair, 'hash', function hash() {
return this.eddsa.hash().update(this.secret()).digest();
});
cachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {
return this.hash().slice(this.eddsa.encodingLength);
});
KeyPair.prototype.sign = function sign(message) {
assert(this._secret, 'KeyPair can only verify');
return this.eddsa.sign(message, this);
};
KeyPair.prototype.verify = function verify(message, sig) {
return this.eddsa.verify(message, sig, this);
};
KeyPair.prototype.getSecret = function getSecret(enc) {
assert(this._secret, 'KeyPair is public only');
return utils.encode(this.secret(), enc);
};
KeyPair.prototype.getPublic = function getPublic(enc) {
return utils.encode(this.pubBytes(), enc);
};
module.exports = KeyPair;
},{"../../elliptic":225}],237:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var BN = require('bn.js');
var elliptic = require('../../elliptic');
var utils = elliptic.utils;
var assert = utils.assert;
var cachedProperty = utils.cachedProperty;
var parseBytes = utils.parseBytes;
/**
* @param {EDDSA} eddsa - eddsa instance
* @param {Array<Bytes>|Object} sig -
* @param {Array<Bytes>|Point} [sig.R] - R point as Point or bytes
* @param {Array<Bytes>|bn} [sig.S] - S scalar as bn or bytes
* @param {Array<Bytes>} [sig.Rencoded] - R point encoded
* @param {Array<Bytes>} [sig.Sencoded] - S scalar encoded
*/
function Signature(eddsa, sig) {
this.eddsa = eddsa;
if ((typeof sig === 'undefined' ? 'undefined' : _typeof(sig)) !== 'object') sig = parseBytes(sig);
if (Array.isArray(sig)) {
sig = {
R: sig.slice(0, eddsa.encodingLength),
S: sig.slice(eddsa.encodingLength)
};
}
assert(sig.R && sig.S, 'Signature without R or S');
if (eddsa.isPoint(sig.R)) this._R = sig.R;
if (sig.S instanceof BN) this._S = sig.S;
this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;
this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;
}
cachedProperty(Signature, 'S', function S() {
return this.eddsa.decodeInt(this.Sencoded());
});
cachedProperty(Signature, 'R', function R() {
return this.eddsa.decodePoint(this.Rencoded());
});
cachedProperty(Signature, 'Rencoded', function Rencoded() {
return this.eddsa.encodePoint(this.R());
});
cachedProperty(Signature, 'Sencoded', function Sencoded() {
return this.eddsa.encodeInt(this.S());
});
Signature.prototype.toBytes = function toBytes() {
return this.Rencoded().concat(this.Sencoded());
};
Signature.prototype.toHex = function toHex() {
return utils.encode(this.toBytes(), 'hex').toUpperCase();
};
module.exports = Signature;
},{"../../elliptic":225,"bn.js":169}],238:[function(require,module,exports){
'use strict';
module.exports = {
doubles: {
step: 4,
points: [['e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a', 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821'], ['8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508', '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf'], ['175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739', 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695'], ['363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640', '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9'], ['8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c', '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36'], ['723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda', '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f'], ['eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa', '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999'], ['100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0', 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09'], ['e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d', '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d'], ['feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d', 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088'], ['da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1', '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d'], ['53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0', '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8'], ['8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047', '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a'], ['385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862', '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453'], ['6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7', '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160'], ['3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd', '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0'], ['85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83', '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6'], ['948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a', '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589'], ['6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8', 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17'], ['e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d', '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda'], ['e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725', '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd'], ['213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754', '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2'], ['4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c', '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6'], ['fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6', '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f'], ['76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39', 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01'], ['c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891', '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3'], ['d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b', 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f'], ['b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03', '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7'], ['e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d', 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78'], ['a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070', '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1'], ['90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4', 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150'], ['8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da', '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82'], ['e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11', '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc'], ['8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e', 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b'], ['e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41', '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51'], ['b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef', '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45'], ['d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8', 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120'], ['324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d', '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84'], ['4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96', '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d'], ['9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd', 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d'], ['6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5', '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8'], ['a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266', '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8'], ['7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71', '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac'], ['928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac', 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f'], ['85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751', '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962'], ['ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e', '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907'], ['827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241', 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec'], ['eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3', 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d'], ['e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f', '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414'], ['1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19', 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd'], ['146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be', 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0'], ['fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9', '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811'], ['da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2', '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1'], ['a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13', '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c'], ['174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c', 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73'], ['959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba', '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd'], ['d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151', 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405'], ['64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073', 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589'], ['8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458', '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e'], ['13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b', '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27'], ['bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366', 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1'], ['8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa', '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482'], ['8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0', '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945'], ['dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787', '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573'], ['f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e', 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82']]
},
naf: {
wnd: 7,
points: [['f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9', '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672'], ['2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4', 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6'], ['5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc', '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da'], ['acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe', 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37'], ['774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb', 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b'], ['f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8', 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81'], ['d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e', '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58'], ['defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34', '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77'], ['2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c', '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a'], ['352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5', '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c'], ['2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f', '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67'], ['9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714', '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402'], ['daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729', 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55'], ['c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db', '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482'], ['6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4', 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82'], ['1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5', 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396'], ['605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479', '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49'], ['62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d', '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf'], ['80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f', '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a'], ['7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb', 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7'], ['d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9', 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933'], ['49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963', '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a'], ['77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74', '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6'], ['f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530', 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37'], ['463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b', '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e'], ['f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247', 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6'], ['caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1', 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476'], ['2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120', '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40'], ['7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435', '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61'], ['754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18', '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683'], ['e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8', '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5'], ['186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb', '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b'], ['df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f', '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417'], ['5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143', 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868'], ['290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba', 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a'], ['af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45', 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6'], ['766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a', '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996'], ['59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e', 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e'], ['f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8', 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d'], ['7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c', '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2'], ['948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519', 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e'], ['7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab', '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437'], ['3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca', 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311'], ['d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf', '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4'], ['1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610', '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575'], ['733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4', 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d'], ['15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c', 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d'], ['a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940', 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629'], ['e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980', 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06'], ['311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3', '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374'], ['34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf', '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee'], ['f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63', '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1'], ['d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448', 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b'], ['32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf', '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661'], ['7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5', '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6'], ['ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6', '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e'], ['16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5', '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d'], ['eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99', 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc'], ['78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51', 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4'], ['494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5', '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c'], ['a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5', '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b'], ['c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997', '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913'], ['841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881', '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154'], ['5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5', '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865'], ['36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66', 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc'], ['336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726', 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224'], ['8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede', '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e'], ['1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94', '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6'], ['85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31', '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511'], ['29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51', 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b'], ['a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252', 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2'], ['4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5', 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c'], ['d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b', '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3'], ['ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4', '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d'], ['af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f', '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700'], ['e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889', '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4'], ['591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246', 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196'], ['11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984', '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4'], ['3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a', 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257'], ['cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030', 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13'], ['c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197', '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096'], ['c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593', 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38'], ['a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef', '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f'], ['347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38', '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448'], ['da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a', '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a'], ['c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111', '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4'], ['4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502', '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437'], ['3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea', 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7'], ['cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26', '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d'], ['b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986', '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a'], ['d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e', '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54'], ['48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4', '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77'], ['dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda', 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517'], ['6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859', 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10'], ['e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f', 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125'], ['eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c', '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e'], ['13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942', 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1'], ['ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a', '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2'], ['b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80', '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423'], ['ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d', '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8'], ['8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1', 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758'], ['52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63', 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375'], ['e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352', '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d'], ['7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193', 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec'], ['5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00', '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0'], ['32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58', 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c'], ['e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7', 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4'], ['8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8', 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f'], ['4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e', '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649'], ['3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d', 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826'], ['674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b', '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5'], ['d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f', 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87'], ['30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6', '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b'], ['be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297', '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc'], ['93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a', '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c'], ['b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c', 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f'], ['d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52', '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a'], ['d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb', 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46'], ['463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065', 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f'], ['7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917', '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03'], ['74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9', 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08'], ['30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3', '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8'], ['9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57', '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373'], ['176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66', 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3'], ['75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8', '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8'], ['809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721', '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1'], ['1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180', '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9']]
}
};
},{}],239:[function(require,module,exports){
'use strict';
var utils = exports;
var BN = require('bn.js');
var minAssert = require('minimalistic-assert');
var minUtils = require('minimalistic-crypto-utils');
utils.assert = minAssert;
utils.toArray = minUtils.toArray;
utils.zero2 = minUtils.zero2;
utils.toHex = minUtils.toHex;
utils.encode = minUtils.encode;
// Represent num in a w-NAF form
function getNAF(num, w) {
var naf = [];
var ws = 1 << w + 1;
var k = num.clone();
while (k.cmpn(1) >= 0) {
var z;
if (k.isOdd()) {
var mod = k.andln(ws - 1);
if (mod > (ws >> 1) - 1) z = (ws >> 1) - mod;else z = mod;
k.isubn(z);
} else {
z = 0;
}
naf.push(z);
// Optimization, shift by word if possible
var shift = k.cmpn(0) !== 0 && k.andln(ws - 1) === 0 ? w + 1 : 1;
for (var i = 1; i < shift; i++) {
naf.push(0);
}k.iushrn(shift);
}
return naf;
}
utils.getNAF = getNAF;
// Represent k1, k2 in a Joint Sparse Form
function getJSF(k1, k2) {
var jsf = [[], []];
k1 = k1.clone();
k2 = k2.clone();
var d1 = 0;
var d2 = 0;
while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
// First phase
var m14 = k1.andln(3) + d1 & 3;
var m24 = k2.andln(3) + d2 & 3;
if (m14 === 3) m14 = -1;
if (m24 === 3) m24 = -1;
var u1;
if ((m14 & 1) === 0) {
u1 = 0;
} else {
var m8 = k1.andln(7) + d1 & 7;
if ((m8 === 3 || m8 === 5) && m24 === 2) u1 = -m14;else u1 = m14;
}
jsf[0].push(u1);
var u2;
if ((m24 & 1) === 0) {
u2 = 0;
} else {
var m8 = k2.andln(7) + d2 & 7;
if ((m8 === 3 || m8 === 5) && m14 === 2) u2 = -m24;else u2 = m24;
}
jsf[1].push(u2);
// Second phase
if (2 * d1 === u1 + 1) d1 = 1 - d1;
if (2 * d2 === u2 + 1) d2 = 1 - d2;
k1.iushrn(1);
k2.iushrn(1);
}
return jsf;
}
utils.getJSF = getJSF;
function cachedProperty(obj, name, computer) {
var key = '_' + name;
obj.prototype[name] = function cachedProperty() {
return this[key] !== undefined ? this[key] : this[key] = computer.call(this);
};
}
utils.cachedProperty = cachedProperty;
function parseBytes(bytes) {
return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') : bytes;
}
utils.parseBytes = parseBytes;
function intFromLE(bytes) {
return new BN(bytes, 'hex', 'le');
}
utils.intFromLE = intFromLE;
},{"bn.js":169,"minimalistic-assert":281,"minimalistic-crypto-utils":282}],240:[function(require,module,exports){
module.exports={
"_args": [
[
{
"raw": "elliptic@^6.0.0",
"scope": null,
"escapedName": "elliptic",
"name": "elliptic",
"rawSpec": "^6.0.0",
"spec": ">=6.0.0 <7.0.0",
"type": "range"
},
"/home/travis/build/kvhnuke/etherwallet/node_modules/browserify-sign"
]
],
"_from": "elliptic@>=6.0.0 <7.0.0",
"_id": "elliptic@6.4.0",
"_inCache": true,
"_location": "/elliptic",
"_nodeVersion": "7.0.0",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/elliptic-6.4.0.tgz_1487798866428_0.30510620190761983"
},
"_npmUser": {
"name": "indutny",
"email": "fedor@indutny.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "elliptic@^6.0.0",
"scope": null,
"escapedName": "elliptic",
"name": "elliptic",
"rawSpec": "^6.0.0",
"spec": ">=6.0.0 <7.0.0",
"type": "range"
},
"_requiredBy": [
"/browserify-sign",
"/create-ecdh",
"/secp256k1"
],
"_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",
"_shasum": "cac9af8762c85836187003c8dfe193e5e2eae5df",
"_shrinkwrap": null,
"_spec": "elliptic@^6.0.0",
"_where": "/home/travis/build/kvhnuke/etherwallet/node_modules/browserify-sign",
"author": {
"name": "Fedor Indutny",
"email": "fedor@indutny.com"
},
"bugs": {
"url": "https://github.com/indutny/elliptic/issues"
},
"dependencies": {
"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"
},
"description": "EC cryptography",
"devDependencies": {
"brfs": "^1.4.3",
"coveralls": "^2.11.3",
"grunt": "^0.4.5",
"grunt-browserify": "^5.0.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-connect": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-uglify": "^1.0.1",
"grunt-mocha-istanbul": "^3.0.1",
"grunt-saucelabs": "^8.6.2",
"istanbul": "^0.4.2",
"jscs": "^2.9.0",
"jshint": "^2.6.0",
"mocha": "^2.1.0"
},
"directories": {},
"dist": {
"shasum": "cac9af8762c85836187003c8dfe193e5e2eae5df",
"tarball": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz"
},
"files": [
"lib"
],
"gitHead": "6b0d2b76caae91471649c8e21f0b1d3ba0f96090",
"homepage": "https://github.com/indutny/elliptic",
"keywords": [
"EC",
"Elliptic",
"curve",
"Cryptography"
],
"license": "MIT",
"main": "lib/elliptic.js",
"maintainers": [
{
"name": "indutny",
"email": "fedor@indutny.com"
}
],
"name": "elliptic",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/indutny/elliptic.git"
},
"scripts": {
"jscs": "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",
"jshint": "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",
"lint": "npm run jscs && npm run jshint",
"test": "npm run lint && npm run unit",
"unit": "istanbul test _mocha --reporter=spec test/index.js",
"version": "grunt dist && git add dist/"
},
"version": "6.4.0"
}
},{}],241:[function(require,module,exports){
module.exports={
"genesisGasLimit": {
"v": 5000,
"d": "Gas limit of the Genesis block."
},
"genesisDifficulty": {
"v": 17179869184,
"d": "Difficulty of the Genesis block."
},
"genesisNonce": {
"v": "0x0000000000000042",
"d": "the geneis nonce"
},
"genesisExtraData": {
"v": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",
"d": "extra data "
},
"genesisHash": {
"v": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
"d": "genesis hash"
},
"genesisStateRoot": {
"v": "0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544",
"d": "the genesis state root"
},
"minGasLimit": {
"v": 5000,
"d": "Minimum the gas limit may ever be."
},
"gasLimitBoundDivisor": {
"v": 1024,
"d": "The bound divisor of the gas limit, used in update calculations."
},
"minimumDifficulty": {
"v": 131072,
"d": "The minimum that the difficulty may ever be."
},
"difficultyBoundDivisor": {
"v": 2048,
"d": "The bound divisor of the difficulty, used in the update calculations."
},
"durationLimit": {
"v": 13,
"d": "The decision boundary on the blocktime duration used to determine whether difficulty should go up or not."
},
"maximumExtraDataSize": {
"v": 32,
"d": "Maximum size extra data may be after Genesis."
},
"epochDuration": {
"v": 30000,
"d": "Duration between proof-of-work epochs."
},
"stackLimit": {
"v": 1024,
"d": "Maximum size of VM stack allowed."
},
"callCreateDepth": {
"v": 1024,
"d": "Maximum depth of call/create stack."
},
"tierStepGas": {
"v": [0, 2, 3, 5, 8, 10, 20],
"d": "Once per operation, for a selection of them."
},
"expGas": {
"v": 10,
"d": "Once per EXP instuction."
},
"expByteGas": {
"v": 10,
"d": "Times ceil(log256(exponent)) for the EXP instruction."
},
"sha3Gas": {
"v": 30,
"d": "Once per SHA3 operation."
},
"sha3WordGas": {
"v": 6,
"d": "Once per word of the SHA3 operation's data."
},
"sloadGas": {
"v": 50,
"d": "Once per SLOAD operation."
},
"sstoreSetGas": {
"v": 20000,
"d": "Once per SSTORE operation if the zeroness changes from zero."
},
"sstoreResetGas": {
"v": 5000,
"d": "Once per SSTORE operation if the zeroness does not change from zero."
},
"sstoreRefundGas": {
"v": 15000,
"d": "Once per SSTORE operation if the zeroness changes to zero."
},
"jumpdestGas": {
"v": 1,
"d": "Refunded gas, once per SSTORE operation if the zeroness changes to zero."
},
"logGas": {
"v": 375,
"d": "Per LOG* operation."
},
"logDataGas": {
"v": 8,
"d": "Per byte in a LOG* operation's data."
},
"logTopicGas": {
"v": 375,
"d": "Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas."
},
"createGas": {
"v": 32000,
"d": "Once per CREATE operation & contract-creation transaction."
},
"callGas": {
"v": 40,
"d": "Once per CALL operation & message call transaction."
},
"callStipend": {
"v": 2300,
"d": "Free gas given at beginning of call."
},
"callValueTransferGas": {
"v": 9000,
"d": "Paid for CALL when the value transfor is non-zero."
},
"callNewAccountGas": {
"v": 25000,
"d": "Paid for CALL when the destination address didn't exist prior."
},
"suicideRefundGas": {
"v": 24000,
"d": "Refunded following a suicide operation."
},
"memoryGas": {
"v": 3,
"d": "Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL."
},
"quadCoeffDiv": {
"v": 512,
"d": "Divisor for the quadratic particle of the memory cost equation."
},
"createDataGas": {
"v": 200,
"d": ""
},
"txGas": {
"v": 21000,
"d": "Per transaction. NOTE: Not payable on data of calls between transactions."
},
"txCreation": {
"v": 32000,
"d": "the cost of creating a contract via tx"
},
"txDataZeroGas": {
"v": 4,
"d": "Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions."
},
"txDataNonZeroGas": {
"v": 68,
"d": "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions."
},
"copyGas": {
"v": 3,
"d": "Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added."
},
"ecrecoverGas": {
"v": 3000,
"d": ""
},
"sha256Gas": {
"v": 60,
"d": ""
},
"sha256WordGas": {
"v": 12,
"d": ""
},
"ripemd160Gas": {
"v": 600,
"d": ""
},
"ripemd160WordGas": {
"v": 120,
"d": ""
},
"identityGas": {
"v": 15,
"d": ""
},
"identityWordGas": {
"v": 3,
"d": ""
},
"minerReward": {
"v": "5000000000000000000",
"d": "the amount a miner get rewarded for mining a block"
},
"ommerReward": {
"v": "625000000000000000",
"d": "The amount of wei a miner of an uncle block gets for being inculded in the blockchain"
},
"niblingReward": {
"v": "156250000000000000",
"d": "the amount a miner gets for inculding a uncle"
},
"homeSteadForkNumber": {
"v": 1150000,
"d": "the block that the Homestead fork started at"
},
"homesteadRepriceForkNumber": {
"v": 2463000,
"d": "the block that the Homestead Reprice (EIP150) fork started at"
},
"timebombPeriod": {
"v": 100000,
"d": "Exponential difficulty timebomb period"
},
"freeBlockPeriod": {
"v": 2
}
}
},{}],242:[function(require,module,exports){
(function (Buffer){
'use strict';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var ethUtil = require('ethereumjs-util');
var fees = require('ethereum-common/params.json');
var BN = ethUtil.BN;
// secp256k1n/2
var N_DIV_2 = new BN('7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0', 16);
/**
* Creates a new transaction object.
*
* @example
* var rawTx = {
* nonce: '00',
* gasPrice: '09184e72a000',
* gasLimit: '2710',
* to: '0000000000000000000000000000000000000000',
* value: '00',
* data: '7f7465737432000000000000000000000000000000000000000000000000000000600057',
* v: '1c',
* r: '5e1d3a76fbf824220eafc8c79ad578ad2b67d01b0c2425eb1f1347e8f50882ab',
* s: '5bd428537f05f9830e93792f90ea6a3e2d1ee84952dd96edbae9f658f831ab13'
* };
* var tx = new Transaction(rawTx);
*
* @class
* @param {Buffer | Array | Object} data a transaction can be initiailized with either a buffer containing the RLP serialized transaction or an array of buffers relating to each of the tx Properties, listed in order below in the exmple.
*
* Or lastly an Object containing the Properties of the transaction like in the Usage example.
*
* For Object and Arrays each of the elements can either be a Buffer, a hex-prefixed (0x) String , Number, or an object with a toBuffer method such as Bignum
*
* @property {Buffer} raw The raw rlp encoded transaction
* @param {Buffer} data.nonce nonce number
* @param {Buffer} data.gasLimit transaction gas limit
* @param {Buffer} data.gasPrice transaction gas price
* @param {Buffer} data.to to the to address
* @param {Buffer} data.value the amount of ether sent
* @param {Buffer} data.data this will contain the data of the message or the init of a contract
* @param {Buffer} data.v EC signature parameter
* @param {Buffer} data.r EC signature parameter
* @param {Buffer} data.s EC recovery ID
* @param {Number} data.chainId EIP 155 chainId - mainnet: 1, ropsten: 3
* */
var Transaction = function () {
function Transaction(data) {
_classCallCheck(this, Transaction);
data = data || {};
// Define Properties
var fields = [{
name: 'nonce',
length: 32,
allowLess: true,
default: new Buffer([])
}, {
name: 'gasPrice',
length: 32,
allowLess: true,
default: new Buffer([])
}, {
name: 'gasLimit',
alias: 'gas',
length: 32,
allowLess: true,
default: new Buffer([])
}, {
name: 'to',
allowZero: true,
length: 20,
default: new Buffer([])
}, {
name: 'value',
length: 32,
allowLess: true,
default: new Buffer([])
}, {
name: 'data',
alias: 'input',
allowZero: true,
default: new Buffer([])
}, {
name: 'v',
allowZero: true,
default: new Buffer([0x1c])
}, {
name: 'r',
length: 32,
allowZero: true,
allowLess: true,
default: new Buffer([])
}, {
name: 's',
length: 32,
allowZero: true,
allowLess: true,
default: new Buffer([])
}];
/**
* Returns the rlp encoding of the transaction
* @method serialize
* @return {Buffer}
* @memberof Transaction
* @name serialize
*/
// attached serialize
ethUtil.defineProperties(this, fields, data);
/**
* @property {Buffer} from (read only) sender address of this transaction, mathematically derived from other parameters.
* @name from
* @memberof Transaction
*/
Object.defineProperty(this, 'from', {
enumerable: true,
configurable: true,
get: this.getSenderAddress.bind(this)
});
// calculate chainId from signature
var sigV = ethUtil.bufferToInt(this.v);
var chainId = Math.floor((sigV - 35) / 2);
if (chainId < 0) chainId = 0;
// set chainId
this._chainId = chainId || data.chainId || 0;
this._homestead = true;
}
/**
* If the tx's `to` is to the creation address
* @return {Boolean}
*/
Transaction.prototype.toCreationAddress = function toCreationAddress() {
return this.to.toString('hex') === '';
};
/**
* Computes a sha3-256 hash of the serialized tx
* @param {Boolean} [includeSignature=true] whether or not to inculde the signature
* @return {Buffer}
*/
Transaction.prototype.hash = function hash(includeSignature) {
if (includeSignature === undefined) includeSignature = true;
// EIP155 spec:
// when computing the hash of a transaction for purposes of signing or recovering,
// instead of hashing only the first six elements (ie. nonce, gasprice, startgas, to, value, data),
// hash nine elements, with v replaced by CHAIN_ID, r = 0 and s = 0
var items = void 0;
if (includeSignature) {
items = this.raw;
} else {
if (this._chainId > 0) {
var raw = this.raw.slice();
this.v = this._chainId;
this.r = 0;
this.s = 0;
items = this.raw;
this.raw = raw;
} else {
items = this.raw.slice(0, 6);
}
}
// create hash
return ethUtil.rlphash(items);
};
/**
* returns the public key of the sender
* @return {Buffer}
*/
Transaction.prototype.getChainId = function getChainId() {
return this._chainId;
};
/**
* returns the sender's address
* @return {Buffer}
*/
Transaction.prototype.getSenderAddress = function getSenderAddress() {
if (this._from) {
return this._from;
}
var pubkey = this.getSenderPublicKey();
this._from = ethUtil.publicToAddress(pubkey);
return this._from;
};
/**
* returns the public key of the sender
* @return {Buffer}
*/
Transaction.prototype.getSenderPublicKey = function getSenderPublicKey() {
if (!this._senderPubKey || !this._senderPubKey.length) {
if (!this.verifySignature()) throw new Error('Invalid Signature');
}
return this._senderPubKey;
};
/**
* Determines if the signature is valid
* @return {Boolean}
*/
Transaction.prototype.verifySignature = function verifySignature() {
var msgHash = this.hash(false);
// All transaction signatures whose s-value is greater than secp256k1n/2 are considered invalid.
if (this._homestead && new BN(this.s).cmp(N_DIV_2) === 1) {
return false;
}
try {
var v = ethUtil.bufferToInt(this.v);
if (this._chainId > 0) {
v -= this._chainId * 2 + 8;
}
this._senderPubKey = ethUtil.ecrecover(msgHash, v, this.r, this.s);
} catch (e) {
return false;
}
return !!this._senderPubKey;
};
/**
* sign a transaction with a given a private key
* @param {Buffer} privateKey
*/
Transaction.prototype.sign = function sign(privateKey) {
var msgHash = this.hash(false);
var sig = ethUtil.ecsign(msgHash, privateKey);
if (this._chainId > 0) {
sig.v += this._chainId * 2 + 8;
}
Object.assign(this, sig);
};
/**
* The amount of gas paid for the data in this tx
* @return {BN}
*/
Transaction.prototype.getDataFee = function getDataFee() {
var data = this.raw[5];
var cost = new BN(0);
for (var i = 0; i < data.length; i++) {
data[i] === 0 ? cost.iaddn(fees.txDataZeroGas.v) : cost.iaddn(fees.txDataNonZeroGas.v);
}
return cost;
};
/**
* the minimum amount of gas the tx must have (DataFee + TxFee + Creation Fee)
* @return {BN}
*/
Transaction.prototype.getBaseFee = function getBaseFee() {
var fee = this.getDataFee().iaddn(fees.txGas.v);
if (this._homestead && this.toCreationAddress()) {
fee.iaddn(fees.txCreation.v);
}
return fee;
};
/**
* the up front amount that an account must have for this transaction to be valid
* @return {BN}
*/
Transaction.prototype.getUpfrontCost = function getUpfrontCost() {
return new BN(this.gasLimit).imul(new BN(this.gasPrice)).iadd(new BN(this.value));
};
/**
* validates the signature and checks to see if it has enough gas
* @param {Boolean} [stringError=false] whether to return a string with a dscription of why the validation failed or return a Bloolean
* @return {Boolean|String}
*/
Transaction.prototype.validate = function validate(stringError) {
var errors = [];
if (!this.verifySignature()) {
errors.push('Invalid Signature');
}
if (this.getBaseFee().cmp(new BN(this.gasLimit)) > 0) {
errors.push(['gas limit is too low. Need at least ' + this.getBaseFee()]);
}
if (stringError === undefined || stringError === false) {
return errors.length === 0;
} else {
return errors.join(' ');
}
};
return Transaction;
}();
module.exports = Transaction;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"ethereum-common/params.json":241,"ethereumjs-util":243}],243:[function(require,module,exports){
'use strict';
var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
return typeof obj === "undefined" ? "undefined" : _typeof2(obj);
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj);
};
var createKeccakHash = require('keccak');
var secp256k1 = require('secp256k1');
var assert = require('assert');
var rlp = require('rlp');
var BN = require('bn.js');
var createHash = require('create-hash');
var Buffer = require('safe-buffer').Buffer;
Object.assign(exports, require('ethjs-util'));
/**
* the max integer that this VM can handle (a ```BN```)
* @var {BN} MAX_INTEGER
*/
exports.MAX_INTEGER = new BN('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16);
/**
* 2^256 (a ```BN```)
* @var {BN} TWO_POW256
*/
exports.TWO_POW256 = new BN('10000000000000000000000000000000000000000000000000000000000000000', 16);
/**
* SHA3-256 hash of null (a ```String```)
* @var {String} SHA3_NULL_S
*/
exports.SHA3_NULL_S = 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470';
/**
* SHA3-256 hash of null (a ```Buffer```)
* @var {Buffer} SHA3_NULL
*/
exports.SHA3_NULL = Buffer.from(exports.SHA3_NULL_S, 'hex');
/**
* SHA3-256 of an RLP of an empty array (a ```String```)
* @var {String} SHA3_RLP_ARRAY_S
*/
exports.SHA3_RLP_ARRAY_S = '1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347';
/**
* SHA3-256 of an RLP of an empty array (a ```Buffer```)
* @var {Buffer} SHA3_RLP_ARRAY
*/
exports.SHA3_RLP_ARRAY = Buffer.from(exports.SHA3_RLP_ARRAY_S, 'hex');
/**
* SHA3-256 hash of the RLP of null (a ```String```)
* @var {String} SHA3_RLP_S
*/
exports.SHA3_RLP_S = '56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421';
/**
* SHA3-256 hash of the RLP of null (a ```Buffer```)
* @var {Buffer} SHA3_RLP
*/
exports.SHA3_RLP = Buffer.from(exports.SHA3_RLP_S, 'hex');
/**
* [`BN`](https://github.com/indutny/bn.js)
* @var {Function}
*/
exports.BN = BN;
/**
* [`rlp`](https://github.com/ethereumjs/rlp)
* @var {Function}
*/
exports.rlp = rlp;
/**
* [`secp256k1`](https://github.com/cryptocoinjs/secp256k1-node/)
* @var {Object}
*/
exports.secp256k1 = secp256k1;
/**
* Returns a buffer filled with 0s
* @method zeros
* @param {Number} bytes the number of bytes the buffer should be
* @return {Buffer}
*/
exports.zeros = function (bytes) {
return Buffer.allocUnsafe(bytes).fill(0);
};
/**
* Returns a zero address
* @method zeroAddress
* @return {String}
*/
exports.zeroAddress = function () {
var addressLength = 20;
var zeroAddress = exports.zeros(addressLength);
return exports.bufferToHex(zeroAddress);
};
/**
* Left Pads an `Array` or `Buffer` with leading zeros till it has `length` bytes.
* Or it truncates the beginning if it exceeds.
* @method lsetLength
* @param {Buffer|Array} msg the value to pad
* @param {Number} length the number of bytes the output should be
* @param {Boolean} [right=false] whether to start padding form the left or right
* @return {Buffer|Array}
*/
exports.setLengthLeft = exports.setLength = function (msg, length, right) {
var buf = exports.zeros(length);
msg = exports.toBuffer(msg);
if (right) {
if (msg.length < length) {
msg.copy(buf);
return buf;
}
return msg.slice(0, length);
} else {
if (msg.length < length) {
msg.copy(buf, length - msg.length);
return buf;
}
return msg.slice(-length);
}
};
/**
* Right Pads an `Array` or `Buffer` with leading zeros till it has `length` bytes.
* Or it truncates the beginning if it exceeds.
* @param {Buffer|Array} msg the value to pad
* @param {Number} length the number of bytes the output should be
* @return {Buffer|Array}
*/
exports.setLengthRight = function (msg, length) {
return exports.setLength(msg, length, true);
};
/**
* Trims leading zeros from a `Buffer` or an `Array`
* @param {Buffer|Array|String} a
* @return {Buffer|Array|String}
*/
exports.unpad = exports.stripZeros = function (a) {
a = exports.stripHexPrefix(a);
var first = a[0];
while (a.length > 0 && first.toString() === '0') {
a = a.slice(1);
first = a[0];
}
return a;
};
/**
* Attempts to turn a value into a `Buffer`. As input it supports `Buffer`, `String`, `Number`, null/undefined, `BN` and other objects with a `toArray()` method.
* @param {*} v the value
*/
exports.toBuffer = function (v) {
if (!Buffer.isBuffer(v)) {
if (Array.isArray(v)) {
v = Buffer.from(v);
} else if (typeof v === 'string') {
if (exports.isHexString(v)) {
v = Buffer.from(exports.padToEven(exports.stripHexPrefix(v)), 'hex');
} else {
v = Buffer.from(v);
}
} else if (typeof v === 'number') {
v = exports.intToBuffer(v);
} else if (v === null || v === undefined) {
v = Buffer.allocUnsafe(0);
} else if (v.toArray) {
// converts a BN to a Buffer
v = Buffer.from(v.toArray());
} else {
throw new Error('invalid type');
}
}
return v;
};
/**
* Converts a `Buffer` to a `Number`
* @param {Buffer} buf
* @return {Number}
* @throws If the input number exceeds 53 bits.
*/
exports.bufferToInt = function (buf) {
return new BN(exports.toBuffer(buf)).toNumber();
};
/**
* Converts a `Buffer` into a hex `String`
* @param {Buffer} buf
* @return {String}
*/
exports.bufferToHex = function (buf) {
buf = exports.toBuffer(buf);
return '0x' + buf.toString('hex');
};
/**
* Interprets a `Buffer` as a signed integer and returns a `BN`. Assumes 256-bit numbers.
* @param {Buffer} num
* @return {BN}
*/
exports.fromSigned = function (num) {
return new BN(num).fromTwos(256);
};
/**
* Converts a `BN` to an unsigned integer and returns it as a `Buffer`. Assumes 256-bit numbers.
* @param {BN} num
* @return {Buffer}
*/
exports.toUnsigned = function (num) {
return Buffer.from(num.toTwos(256).toArray());
};
/**
* Creates SHA-3 hash of the input
* @param {Buffer|Array|String|Number} a the input data
* @param {Number} [bits=256] the SHA width
* @return {Buffer}
*/
exports.sha3 = function (a, bits) {
a = exports.toBuffer(a);
if (!bits) bits = 256;
return createKeccakHash('keccak' + bits).update(a).digest();
};
/**
* Creates SHA256 hash of the input
* @param {Buffer|Array|String|Number} a the input data
* @return {Buffer}
*/
exports.sha256 = function (a) {
a = exports.toBuffer(a);
return createHash('sha256').update(a).digest();
};
/**
* Creates RIPEMD160 hash of the input
* @param {Buffer|Array|String|Number} a the input data
* @param {Boolean} padded whether it should be padded to 256 bits or not
* @return {Buffer}
*/
exports.ripemd160 = function (a, padded) {
a = exports.toBuffer(a);
var hash = createHash('rmd160').update(a).digest();
if (padded === true) {
return exports.setLength(hash, 32);
} else {
return hash;
}
};
/**
* Creates SHA-3 hash of the RLP encoded version of the input
* @param {Buffer|Array|String|Number} a the input data
* @return {Buffer}
*/
exports.rlphash = function (a) {
return exports.sha3(rlp.encode(a));
};
/**
* Checks if the private key satisfies the rules of the curve secp256k1.
* @param {Buffer} privateKey
* @return {Boolean}
*/
exports.isValidPrivate = function (privateKey) {
return secp256k1.privateKeyVerify(privateKey);
};
/**
* Checks if the public key satisfies the rules of the curve secp256k1
* and the requirements of Ethereum.
* @param {Buffer} publicKey The two points of an uncompressed key, unless sanitize is enabled
* @param {Boolean} [sanitize=false] Accept public keys in other formats
* @return {Boolean}
*/
exports.isValidPublic = function (publicKey, sanitize) {
if (publicKey.length === 64) {
// Convert to SEC1 for secp256k1
return secp256k1.publicKeyVerify(Buffer.concat([Buffer.from([4]), publicKey]));
}
if (!sanitize) {
return false;
}
return secp256k1.publicKeyVerify(publicKey);
};
/**
* Returns the ethereum address of a given public key.
* Accepts "Ethereum public keys" and SEC1 encoded keys.
* @param {Buffer} pubKey The two points of an uncompressed key, unless sanitize is enabled
* @param {Boolean} [sanitize=false] Accept public keys in other formats
* @return {Buffer}
*/
exports.pubToAddress = exports.publicToAddress = function (pubKey, sanitize) {
pubKey = exports.toBuffer(pubKey);
if (sanitize && pubKey.length !== 64) {
pubKey = secp256k1.publicKeyConvert(pubKey, false).slice(1);
}
assert(pubKey.length === 64);
// Only take the lower 160bits of the hash
return exports.sha3(pubKey).slice(-20);
};
/**
* Returns the ethereum public key of a given private key
* @param {Buffer} privateKey A private key must be 256 bits wide
* @return {Buffer}
*/
var privateToPublic = exports.privateToPublic = function (privateKey) {
privateKey = exports.toBuffer(privateKey);
// skip the type flag and use the X, Y points
return secp256k1.publicKeyCreate(privateKey, false).slice(1);
};
/**
* Converts a public key to the Ethereum format.
* @param {Buffer} publicKey
* @return {Buffer}
*/
exports.importPublic = function (publicKey) {
publicKey = exports.toBuffer(publicKey);
if (publicKey.length !== 64) {
publicKey = secp256k1.publicKeyConvert(publicKey, false).slice(1);
}
return publicKey;
};
/**
* ECDSA sign
* @param {Buffer} msgHash
* @param {Buffer} privateKey
* @return {Object}
*/
exports.ecsign = function (msgHash, privateKey) {
var sig = secp256k1.sign(msgHash, privateKey);
var ret = {};
ret.r = sig.signature.slice(0, 32);
ret.s = sig.signature.slice(32, 64);
ret.v = sig.recovery + 27;
return ret;
};
/**
* Returns the keccak-256 hash of `message`, prefixed with the header used by the `eth_sign` RPC call.
* The output of this function can be fed into `ecsign` to produce the same signature as the `eth_sign`
* call for a given `message`, or fed to `ecrecover` along with a signature to recover the public key
* used to produce the signature.
* @param message
* @returns {Buffer} hash
*/
exports.hashPersonalMessage = function (message) {
var prefix = exports.toBuffer('\x19Ethereum Signed Message:\n' + message.length.toString());
return exports.sha3(Buffer.concat([prefix, message]));
};
/**
* ECDSA public key recovery from signature
* @param {Buffer} msgHash
* @param {Number} v
* @param {Buffer} r
* @param {Buffer} s
* @return {Buffer} publicKey
*/
exports.ecrecover = function (msgHash, v, r, s) {
var signature = Buffer.concat([exports.setLength(r, 32), exports.setLength(s, 32)], 64);
var recovery = v - 27;
if (recovery !== 0 && recovery !== 1) {
throw new Error('Invalid signature v value');
}
var senderPubKey = secp256k1.recover(msgHash, signature, recovery);
return secp256k1.publicKeyConvert(senderPubKey, false).slice(1);
};
/**
* Convert signature parameters into the format of `eth_sign` RPC method
* @param {Number} v
* @param {Buffer} r
* @param {Buffer} s
* @return {String} sig
*/
exports.toRpcSig = function (v, r, s) {
// NOTE: with potential introduction of chainId this might need to be updated
if (v !== 27 && v !== 28) {
throw new Error('Invalid recovery id');
}
// geth (and the RPC eth_sign method) uses the 65 byte format used by Bitcoin
// FIXME: this might change in the future - https://github.com/ethereum/go-ethereum/issues/2053
return exports.bufferToHex(Buffer.concat([exports.setLengthLeft(r, 32), exports.setLengthLeft(s, 32), exports.toBuffer(v - 27)]));
};
/**
* Convert signature format of the `eth_sign` RPC method to signature parameters
* NOTE: all because of a bug in geth: https://github.com/ethereum/go-ethereum/issues/2053
* @param {String} sig
* @return {Object}
*/
exports.fromRpcSig = function (sig) {
sig = exports.toBuffer(sig);
// NOTE: with potential introduction of chainId this might need to be updated
if (sig.length !== 65) {
throw new Error('Invalid signature length');
}
var v = sig[64];
// support both versions of `eth_sign` responses
if (v < 27) {
v += 27;
}
return {
v: v,
r: sig.slice(0, 32),
s: sig.slice(32, 64)
};
};
/**
* Returns the ethereum address of a given private key
* @param {Buffer} privateKey A private key must be 256 bits wide
* @return {Buffer}
*/
exports.privateToAddress = function (privateKey) {
return exports.publicToAddress(privateToPublic(privateKey));
};
/**
* Checks if the address is a valid. Accepts checksummed addresses too
* @param {String} address
* @return {Boolean}
*/
exports.isValidAddress = function (address) {
return (/^0x[0-9a-fA-F]{40}$/.test(address)
);
};
/**
* Checks if a given address is a zero address
* @method isZeroAddress
* @param {String} address
* @return {Boolean}
*/
exports.isZeroAddress = function (address) {
var zeroAddress = exports.zeroAddress();
return zeroAddress === exports.addHexPrefix(address);
};
/**
* Returns a checksummed address
* @param {String} address
* @return {String}
*/
exports.toChecksumAddress = function (address) {
address = exports.stripHexPrefix(address).toLowerCase();
var hash = exports.sha3(address).toString('hex');
var ret = '0x';
for (var i = 0; i < address.length; i++) {
if (parseInt(hash[i], 16) >= 8) {
ret += address[i].toUpperCase();
} else {
ret += address[i];
}
}
return ret;
};
/**
* Checks if the address is a valid checksummed address
* @param {Buffer} address
* @return {Boolean}
*/
exports.isValidChecksumAddress = function (address) {
return exports.isValidAddress(address) && exports.toChecksumAddress(address) === address;
};
/**
* Generates an address of a newly created contract
* @param {Buffer} from the address which is creating this new address
* @param {Buffer} nonce the nonce of the from account
* @return {Buffer}
*/
exports.generateAddress = function (from, nonce) {
from = exports.toBuffer(from);
nonce = new BN(nonce);
if (nonce.isZero()) {
// in RLP we want to encode null in the case of zero nonce
// read the RLP documentation for an answer if you dare
nonce = null;
} else {
nonce = Buffer.from(nonce.toArray());
}
// Only take the lower 160bits of the hash
return exports.rlphash([from, nonce]).slice(-20);
};
/**
* Returns true if the supplied address belongs to a precompiled account
* @param {Buffer|String} address
* @return {Boolean}
*/
exports.isPrecompiled = function (address) {
var a = exports.unpad(address);
return a.length === 1 && a[0] > 0 && a[0] < 5;
};
/**
* Adds "0x" to a given `String` if it does not already start with "0x"
* @param {String} str
* @return {String}
*/
exports.addHexPrefix = function (str) {
if (typeof str !== 'string') {
return str;
}
return exports.isHexPrefixed(str) ? str : '0x' + str;
};
/**
* Validate ECDSA signature
* @method isValidSignature
* @param {Buffer} v
* @param {Buffer} r
* @param {Buffer} s
* @param {Boolean} [homestead=true]
* @return {Boolean}
*/
exports.isValidSignature = function (v, r, s, homestead) {
var SECP256K1_N_DIV_2 = new BN('7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0', 16);
var SECP256K1_N = new BN('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141', 16);
if (r.length !== 32 || s.length !== 32) {
return false;
}
if (v !== 27 && v !== 28) {
return false;
}
r = new BN(r);
s = new BN(s);
if (r.isZero() || r.gt(SECP256K1_N) || s.isZero() || s.gt(SECP256K1_N)) {
return false;
}
if (homestead === false && new BN(s).cmp(SECP256K1_N_DIV_2) === 1) {
return false;
}
return true;
};
/**
* Converts a `Buffer` or `Array` to JSON
* @param {Buffer|Array} ba
* @return {Array|String|null}
*/
exports.baToJSON = function (ba) {
if (Buffer.isBuffer(ba)) {
return '0x' + ba.toString('hex');
} else if (ba instanceof Array) {
var array = [];
for (var i = 0; i < ba.length; i++) {
array.push(exports.baToJSON(ba[i]));
}
return array;
}
};
/**
* Defines properties on a `Object`. It make the assumption that underlying data is binary.
* @param {Object} self the `Object` to define properties on
* @param {Array} fields an array fields to define. Fields can contain:
* * `name` - the name of the properties
* * `length` - the number of bytes the field can have
* * `allowLess` - if the field can be less than the length
* * `allowEmpty`
* @param {*} data data to be validated against the definitions
*/
exports.defineProperties = function (self, fields, data) {
self.raw = [];
self._fields = [];
// attach the `toJSON`
self.toJSON = function (label) {
if (label) {
var obj = {};
self._fields.forEach(function (field) {
obj[field] = '0x' + self[field].toString('hex');
});
return obj;
}
return exports.baToJSON(this.raw);
};
self.serialize = function serialize() {
return rlp.encode(self.raw);
};
fields.forEach(function (field, i) {
self._fields.push(field.name);
function getter() {
return self.raw[i];
}
function setter(v) {
v = exports.toBuffer(v);
if (v.toString('hex') === '00' && !field.allowZero) {
v = Buffer.allocUnsafe(0);
}
if (field.allowLess && field.length) {
v = exports.stripZeros(v);
assert(field.length >= v.length, 'The field ' + field.name + ' must not have more ' + field.length + ' bytes');
} else if (!(field.allowZero && v.length === 0) && field.length) {
assert(field.length === v.length, 'The field ' + field.name + ' must have byte length of ' + field.length);
}
self.raw[i] = v;
}
Object.defineProperty(self, field.name, {
enumerable: true,
configurable: true,
get: getter,
set: setter
});
if (field.default) {
self[field.name] = field.default;
}
// attach alias
if (field.alias) {
Object.defineProperty(self, field.alias, {
enumerable: false,
configurable: true,
set: setter,
get: getter
});
}
});
// if the constuctor is passed data
if (data) {
if (typeof data === 'string') {
data = Buffer.from(exports.stripHexPrefix(data), 'hex');
}
if (Buffer.isBuffer(data)) {
data = rlp.decode(data);
}
if (Array.isArray(data)) {
if (data.length > self._fields.length) {
throw new Error('wrong number of fields in data');
}
// make sure all the items are buffers
data.forEach(function (d, i) {
self[self._fields[i]] = exports.toBuffer(d);
});
} else if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object') {
var keys = Object.keys(data);
fields.forEach(function (field) {
if (keys.indexOf(field.name) !== -1) self[field.name] = data[field.name];
if (keys.indexOf(field.alias) !== -1) self[field.alias] = data[field.alias];
});
} else {
throw new Error('invalid data');
}
}
};
},{"assert":156,"bn.js":169,"create-hash":206,"ethjs-util":244,"keccak":271,"rlp":318,"safe-buffer":319,"secp256k1":321}],244:[function(require,module,exports){
(function (Buffer){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var isHexPrefixed = require('is-hex-prefixed');
var stripHexPrefix = require('strip-hex-prefix');
/**
* Pads a `String` to have an even length
* @param {String} value
* @return {String} output
*/
function padToEven(value) {
var a = value; // eslint-disable-line
if (typeof a !== 'string') {
throw new Error('[ethjs-util] while padding to even, value must be string, is currently ' + (typeof a === 'undefined' ? 'undefined' : _typeof(a)) + ', while padToEven.');
}
if (a.length % 2) {
a = '0' + a;
}
return a;
}
/**
* Converts a `Number` into a hex `String`
* @param {Number} i
* @return {String}
*/
function intToHex(i) {
var hex = i.toString(16); // eslint-disable-line
return '0x' + padToEven(hex);
}
/**
* Converts an `Number` to a `Buffer`
* @param {Number} i
* @return {Buffer}
*/
function intToBuffer(i) {
var hex = intToHex(i);
return new Buffer(hex.slice(2), 'hex');
}
/**
* Get the binary size of a string
* @param {String} str
* @return {Number}
*/
function getBinarySize(str) {
if (typeof str !== 'string') {
throw new Error('[ethjs-util] while getting binary size, method getBinarySize requires input \'str\' to be type String, got \'' + (typeof str === 'undefined' ? 'undefined' : _typeof(str)) + '\'.');
}
return Buffer.byteLength(str, 'utf8');
}
/**
* Returns TRUE if the first specified array contains all elements
* from the second one. FALSE otherwise.
*
* @param {array} superset
* @param {array} subset
*
* @returns {boolean}
*/
function arrayContainsArray(superset, subset, some) {
if (Array.isArray(superset) !== true) {
throw new Error('[ethjs-util] method arrayContainsArray requires input \'superset\' to be an array got type \'' + (typeof superset === 'undefined' ? 'undefined' : _typeof(superset)) + '\'');
}
if (Array.isArray(subset) !== true) {
throw new Error('[ethjs-util] method arrayContainsArray requires input \'subset\' to be an array got type \'' + (typeof subset === 'undefined' ? 'undefined' : _typeof(subset)) + '\'');
}
return subset[Boolean(some) && 'some' || 'every'](function (value) {
return superset.indexOf(value) >= 0;
});
}
/**
* Should be called to get utf8 from it's hex representation
*
* @method toUtf8
* @param {String} string in hex
* @returns {String} ascii string representation of hex value
*/
function toUtf8(hex) {
var bufferValue = new Buffer(padToEven(stripHexPrefix(hex).replace(/^0+|0+$/g, '')), 'hex');
return bufferValue.toString('utf8');
}
/**
* Should be called to get ascii from it's hex representation
*
* @method toAscii
* @param {String} string in hex
* @returns {String} ascii string representation of hex value
*/
function toAscii(hex) {
var str = ''; // eslint-disable-line
var i = 0,
l = hex.length; // eslint-disable-line
if (hex.substring(0, 2) === '0x') {
i = 2;
}
for (; i < l; i += 2) {
var code = parseInt(hex.substr(i, 2), 16);
str += String.fromCharCode(code);
}
return str;
}
/**
* Should be called to get hex representation (prefixed by 0x) of utf8 string
*
* @method fromUtf8
* @param {String} string
* @param {Number} optional padding
* @returns {String} hex representation of input string
*/
function fromUtf8(stringValue) {
var str = new Buffer(stringValue, 'utf8');
return '0x' + padToEven(str.toString('hex')).replace(/^0+|0+$/g, '');
}
/**
* Should be called to get hex representation (prefixed by 0x) of ascii string
*
* @method fromAscii
* @param {String} string
* @param {Number} optional padding
* @returns {String} hex representation of input string
*/
function fromAscii(stringValue) {
var hex = ''; // eslint-disable-line
for (var i = 0; i < stringValue.length; i++) {
// eslint-disable-line
var code = stringValue.charCodeAt(i);
var n = code.toString(16);
hex += n.length < 2 ? '0' + n : n;
}
return '0x' + hex;
}
/**
* getKeys([{a: 1, b: 2}, {a: 3, b: 4}], 'a') => [1, 3]
*
* @method getKeys get specific key from inner object array of objects
* @param {String} params
* @param {String} key
* @param {Boolean} allowEmpty
* @returns {Array} output just a simple array of output keys
*/
function getKeys(params, key, allowEmpty) {
if (!Array.isArray(params)) {
throw new Error('[ethjs-util] method getKeys expecting type Array as \'params\' input, got \'' + (typeof params === 'undefined' ? 'undefined' : _typeof(params)) + '\'');
}
if (typeof key !== 'string') {
throw new Error('[ethjs-util] method getKeys expecting type String for input \'key\' got \'' + (typeof key === 'undefined' ? 'undefined' : _typeof(key)) + '\'.');
}
var result = []; // eslint-disable-line
for (var i = 0; i < params.length; i++) {
// eslint-disable-line
var value = params[i][key]; // eslint-disable-line
if (allowEmpty && !value) {
value = '';
} else if (typeof value !== 'string') {
throw new Error('invalid abi');
}
result.push(value);
}
return result;
}
/**
* Is the string a hex string.
*
* @method check if string is hex string of specific length
* @param {String} value
* @param {Number} length
* @returns {Boolean} output the string is a hex string
*/
function isHexString(value, length) {
if (typeof value !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) {
return false;
}
if (length && value.length !== 2 + 2 * length) {
return false;
}
return true;
}
module.exports = {
arrayContainsArray: arrayContainsArray,
intToBuffer: intToBuffer,
getBinarySize: getBinarySize,
isHexPrefixed: isHexPrefixed,
stripHexPrefix: stripHexPrefix,
padToEven: padToEven,
intToHex: intToHex,
fromAscii: fromAscii,
fromUtf8: fromUtf8,
toAscii: toAscii,
toUtf8: toUtf8,
getKeys: getKeys,
isHexString: isHexString
};
}).call(this,require("buffer").Buffer)
},{"buffer":201,"is-hex-prefixed":268,"strip-hex-prefix":338}],245:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
function EventEmitter() {
this._events = this._events || {};
this._maxListeners = this._maxListeners || undefined;
}
module.exports = EventEmitter;
// Backwards-compat with node 0.10.x
EventEmitter.EventEmitter = EventEmitter;
EventEmitter.prototype._events = undefined;
EventEmitter.prototype._maxListeners = undefined;
// By default EventEmitters will print a warning if more than 10 listeners are
// added to it. This is a useful default which helps finding memory leaks.
EventEmitter.defaultMaxListeners = 10;
// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
EventEmitter.prototype.setMaxListeners = function (n) {
if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError('n must be a positive number');
this._maxListeners = n;
return this;
};
EventEmitter.prototype.emit = function (type) {
var er, handler, len, args, i, listeners;
if (!this._events) this._events = {};
// If there is no 'error' event listener then throw.
if (type === 'error') {
if (!this._events.error || isObject(this._events.error) && !this._events.error.length) {
er = arguments[1];
if (er instanceof Error) {
throw er; // Unhandled 'error' event
} else {
// At least give some kind of context to the user
var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
err.context = er;
throw err;
}
}
}
handler = this._events[type];
if (isUndefined(handler)) return false;
if (isFunction(handler)) {
switch (arguments.length) {
// fast cases
case 1:
handler.call(this);
break;
case 2:
handler.call(this, arguments[1]);
break;
case 3:
handler.call(this, arguments[1], arguments[2]);
break;
// slower
default:
args = Array.prototype.slice.call(arguments, 1);
handler.apply(this, args);
}
} else if (isObject(handler)) {
args = Array.prototype.slice.call(arguments, 1);
listeners = handler.slice();
len = listeners.length;
for (i = 0; i < len; i++) {
listeners[i].apply(this, args);
}
}
return true;
};
EventEmitter.prototype.addListener = function (type, listener) {
var m;
if (!isFunction(listener)) throw TypeError('listener must be a function');
if (!this._events) this._events = {};
// To avoid recursion in the case that type === "newListener"! Before
// adding it to the listeners, first emit "newListener".
if (this._events.newListener) this.emit('newListener', type, isFunction(listener.listener) ? listener.listener : listener);
if (!this._events[type])
// Optimize the case of one listener. Don't need the extra array object.
this._events[type] = listener;else if (isObject(this._events[type]))
// If we've already got an array, just append.
this._events[type].push(listener);else
// Adding the second element, need to change to array.
this._events[type] = [this._events[type], listener];
// Check for listener leak
if (isObject(this._events[type]) && !this._events[type].warned) {
if (!isUndefined(this._maxListeners)) {
m = this._maxListeners;
} else {
m = EventEmitter.defaultMaxListeners;
}
if (m && m > 0 && this._events[type].length > m) {
this._events[type].warned = true;
console.error('(node) warning: possible EventEmitter memory ' + 'leak detected. %d listeners added. ' + 'Use emitter.setMaxListeners() to increase limit.', this._events[type].length);
if (typeof console.trace === 'function') {
// not supported in IE 10
console.trace();
}
}
}
return this;
};
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
EventEmitter.prototype.once = function (type, listener) {
if (!isFunction(listener)) throw TypeError('listener must be a function');
var fired = false;
function g() {
this.removeListener(type, g);
if (!fired) {
fired = true;
listener.apply(this, arguments);
}
}
g.listener = listener;
this.on(type, g);
return this;
};
// emits a 'removeListener' event iff the listener was removed
EventEmitter.prototype.removeListener = function (type, listener) {
var list, position, length, i;
if (!isFunction(listener)) throw TypeError('listener must be a function');
if (!this._events || !this._events[type]) return this;
list = this._events[type];
length = list.length;
position = -1;
if (list === listener || isFunction(list.listener) && list.listener === listener) {
delete this._events[type];
if (this._events.removeListener) this.emit('removeListener', type, listener);
} else if (isObject(list)) {
for (i = length; i-- > 0;) {
if (list[i] === listener || list[i].listener && list[i].listener === listener) {
position = i;
break;
}
}
if (position < 0) return this;
if (list.length === 1) {
list.length = 0;
delete this._events[type];
} else {
list.splice(position, 1);
}
if (this._events.removeListener) this.emit('removeListener', type, listener);
}
return this;
};
EventEmitter.prototype.removeAllListeners = function (type) {
var key, listeners;
if (!this._events) return this;
// not listening for removeListener, no need to emit
if (!this._events.removeListener) {
if (arguments.length === 0) this._events = {};else if (this._events[type]) delete this._events[type];
return this;
}
// emit removeListener for all listeners on all events
if (arguments.length === 0) {
for (key in this._events) {
if (key === 'removeListener') continue;
this.removeAllListeners(key);
}
this.removeAllListeners('removeListener');
this._events = {};
return this;
}
listeners = this._events[type];
if (isFunction(listeners)) {
this.removeListener(type, listeners);
} else if (listeners) {
// LIFO order
while (listeners.length) {
this.removeListener(type, listeners[listeners.length - 1]);
}
}
delete this._events[type];
return this;
};
EventEmitter.prototype.listeners = function (type) {
var ret;
if (!this._events || !this._events[type]) ret = [];else if (isFunction(this._events[type])) ret = [this._events[type]];else ret = this._events[type].slice();
return ret;
};
EventEmitter.prototype.listenerCount = function (type) {
if (this._events) {
var evlistener = this._events[type];
if (isFunction(evlistener)) return 1;else if (evlistener) return evlistener.length;
}
return 0;
};
EventEmitter.listenerCount = function (emitter, type) {
return emitter.listenerCount(type);
};
function isFunction(arg) {
return typeof arg === 'function';
}
function isNumber(arg) {
return typeof arg === 'number';
}
function isObject(arg) {
return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null;
}
function isUndefined(arg) {
return arg === void 0;
}
},{}],246:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var MD5 = require('md5.js');
/* eslint-disable camelcase */
function EVP_BytesToKey(password, salt, keyBits, ivLen) {
if (!Buffer.isBuffer(password)) password = Buffer.from(password, 'binary');
if (salt) {
if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, 'binary');
if (salt.length !== 8) throw new RangeError('salt should be Buffer with 8 byte length');
}
var keyLen = keyBits / 8;
var key = Buffer.alloc(keyLen);
var iv = Buffer.alloc(ivLen || 0);
var tmp = Buffer.alloc(0);
while (keyLen > 0 || ivLen > 0) {
var hash = new MD5();
hash.update(tmp);
hash.update(password);
if (salt) hash.update(salt);
tmp = hash.digest();
var used = 0;
if (keyLen > 0) {
var keyStart = key.length - keyLen;
used = Math.min(keyLen, tmp.length);
tmp.copy(key, keyStart, 0, used);
keyLen -= used;
}
if (used < tmp.length && ivLen > 0) {
var ivStart = iv.length - ivLen;
var length = Math.min(ivLen, tmp.length - used);
tmp.copy(iv, ivStart, used, used + length);
ivLen -= length;
}
}
tmp.fill(0);
return { key: key, iv: iv };
}
module.exports = EVP_BytesToKey;
},{"md5.js":278,"safe-buffer":319}],247:[function(require,module,exports){
(function (Buffer){
'use strict';
var Transform = require('stream').Transform;
var inherits = require('inherits');
function HashBase(blockSize) {
Transform.call(this);
this._block = new Buffer(blockSize);
this._blockSize = blockSize;
this._blockOffset = 0;
this._length = [0, 0, 0, 0];
this._finalized = false;
}
inherits(HashBase, Transform);
HashBase.prototype._transform = function (chunk, encoding, callback) {
var error = null;
try {
if (encoding !== 'buffer') chunk = new Buffer(chunk, encoding);
this.update(chunk);
} catch (err) {
error = err;
}
callback(error);
};
HashBase.prototype._flush = function (callback) {
var error = null;
try {
this.push(this._digest());
} catch (err) {
error = err;
}
callback(error);
};
HashBase.prototype.update = function (data, encoding) {
if (!Buffer.isBuffer(data) && typeof data !== 'string') throw new TypeError('Data must be a string or a buffer');
if (this._finalized) throw new Error('Digest already called');
if (!Buffer.isBuffer(data)) data = new Buffer(data, encoding || 'binary');
// consume data
var block = this._block;
var offset = 0;
while (this._blockOffset + data.length - offset >= this._blockSize) {
for (var i = this._blockOffset; i < this._blockSize;) {
block[i++] = data[offset++];
}this._update();
this._blockOffset = 0;
}
while (offset < data.length) {
block[this._blockOffset++] = data[offset++];
} // update length
for (var j = 0, carry = data.length * 8; carry > 0; ++j) {
this._length[j] += carry;
carry = this._length[j] / 0x0100000000 | 0;
if (carry > 0) this._length[j] -= 0x0100000000 * carry;
}
return this;
};
HashBase.prototype._update = function (data) {
throw new Error('_update is not implemented');
};
HashBase.prototype.digest = function (encoding) {
if (this._finalized) throw new Error('Digest already called');
this._finalized = true;
var digest = this._digest();
if (encoding !== undefined) digest = digest.toString(encoding);
return digest;
};
HashBase.prototype._digest = function () {
throw new Error('_digest is not implemented');
};
module.exports = HashBase;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"inherits":266,"stream":335}],248:[function(require,module,exports){
'use strict';
var hash = exports;
hash.utils = require('./hash/utils');
hash.common = require('./hash/common');
hash.sha = require('./hash/sha');
hash.ripemd = require('./hash/ripemd');
hash.hmac = require('./hash/hmac');
// Proxy hash functions to the main object
hash.sha1 = hash.sha.sha1;
hash.sha256 = hash.sha.sha256;
hash.sha224 = hash.sha.sha224;
hash.sha384 = hash.sha.sha384;
hash.sha512 = hash.sha.sha512;
hash.ripemd160 = hash.ripemd.ripemd160;
},{"./hash/common":249,"./hash/hmac":250,"./hash/ripemd":251,"./hash/sha":252,"./hash/utils":259}],249:[function(require,module,exports){
'use strict';
var utils = require('./utils');
var assert = require('minimalistic-assert');
function BlockHash() {
this.pending = null;
this.pendingTotal = 0;
this.blockSize = this.constructor.blockSize;
this.outSize = this.constructor.outSize;
this.hmacStrength = this.constructor.hmacStrength;
this.padLength = this.constructor.padLength / 8;
this.endian = 'big';
this._delta8 = this.blockSize / 8;
this._delta32 = this.blockSize / 32;
}
exports.BlockHash = BlockHash;
BlockHash.prototype.update = function update(msg, enc) {
// Convert message to array, pad it, and join into 32bit blocks
msg = utils.toArray(msg, enc);
if (!this.pending) this.pending = msg;else this.pending = this.pending.concat(msg);
this.pendingTotal += msg.length;
// Enough data, try updating
if (this.pending.length >= this._delta8) {
msg = this.pending;
// Process pending data in blocks
var r = msg.length % this._delta8;
this.pending = msg.slice(msg.length - r, msg.length);
if (this.pending.length === 0) this.pending = null;
msg = utils.join32(msg, 0, msg.length - r, this.endian);
for (var i = 0; i < msg.length; i += this._delta32) {
this._update(msg, i, i + this._delta32);
}
}
return this;
};
BlockHash.prototype.digest = function digest(enc) {
this.update(this._pad());
assert(this.pending === null);
return this._digest(enc);
};
BlockHash.prototype._pad = function pad() {
var len = this.pendingTotal;
var bytes = this._delta8;
var k = bytes - (len + this.padLength) % bytes;
var res = new Array(k + this.padLength);
res[0] = 0x80;
for (var i = 1; i < k; i++) {
res[i] = 0;
} // Append length
len <<= 3;
if (this.endian === 'big') {
for (var t = 8; t < this.padLength; t++) {
res[i++] = 0;
}res[i++] = 0;
res[i++] = 0;
res[i++] = 0;
res[i++] = 0;
res[i++] = len >>> 24 & 0xff;
res[i++] = len >>> 16 & 0xff;
res[i++] = len >>> 8 & 0xff;
res[i++] = len & 0xff;
} else {
res[i++] = len & 0xff;
res[i++] = len >>> 8 & 0xff;
res[i++] = len >>> 16 & 0xff;
res[i++] = len >>> 24 & 0xff;
res[i++] = 0;
res[i++] = 0;
res[i++] = 0;
res[i++] = 0;
for (t = 8; t < this.padLength; t++) {
res[i++] = 0;
}
}
return res;
};
},{"./utils":259,"minimalistic-assert":281}],250:[function(require,module,exports){
'use strict';
var utils = require('./utils');
var assert = require('minimalistic-assert');
function Hmac(hash, key, enc) {
if (!(this instanceof Hmac)) return new Hmac(hash, key, enc);
this.Hash = hash;
this.blockSize = hash.blockSize / 8;
this.outSize = hash.outSize / 8;
this.inner = null;
this.outer = null;
this._init(utils.toArray(key, enc));
}
module.exports = Hmac;
Hmac.prototype._init = function init(key) {
// Shorten key, if needed
if (key.length > this.blockSize) key = new this.Hash().update(key).digest();
assert(key.length <= this.blockSize);
// Add padding to key
for (var i = key.length; i < this.blockSize; i++) {
key.push(0);
}for (i = 0; i < key.length; i++) {
key[i] ^= 0x36;
}this.inner = new this.Hash().update(key);
// 0x36 ^ 0x5c = 0x6a
for (i = 0; i < key.length; i++) {
key[i] ^= 0x6a;
}this.outer = new this.Hash().update(key);
};
Hmac.prototype.update = function update(msg, enc) {
this.inner.update(msg, enc);
return this;
};
Hmac.prototype.digest = function digest(enc) {
this.outer.update(this.inner.digest());
return this.outer.digest(enc);
};
},{"./utils":259,"minimalistic-assert":281}],251:[function(require,module,exports){
'use strict';
var utils = require('./utils');
var common = require('./common');
var rotl32 = utils.rotl32;
var sum32 = utils.sum32;
var sum32_3 = utils.sum32_3;
var sum32_4 = utils.sum32_4;
var BlockHash = common.BlockHash;
function RIPEMD160() {
if (!(this instanceof RIPEMD160)) return new RIPEMD160();
BlockHash.call(this);
this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
this.endian = 'little';
}
utils.inherits(RIPEMD160, BlockHash);
exports.ripemd160 = RIPEMD160;
RIPEMD160.blockSize = 512;
RIPEMD160.outSize = 160;
RIPEMD160.hmacStrength = 192;
RIPEMD160.padLength = 64;
RIPEMD160.prototype._update = function update(msg, start) {
var A = this.h[0];
var B = this.h[1];
var C = this.h[2];
var D = this.h[3];
var E = this.h[4];
var Ah = A;
var Bh = B;
var Ch = C;
var Dh = D;
var Eh = E;
for (var j = 0; j < 80; j++) {
var T = sum32(rotl32(sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)), s[j]), E);
A = E;
E = D;
D = rotl32(C, 10);
C = B;
B = T;
T = sum32(rotl32(sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)), sh[j]), Eh);
Ah = Eh;
Eh = Dh;
Dh = rotl32(Ch, 10);
Ch = Bh;
Bh = T;
}
T = sum32_3(this.h[1], C, Dh);
this.h[1] = sum32_3(this.h[2], D, Eh);
this.h[2] = sum32_3(this.h[3], E, Ah);
this.h[3] = sum32_3(this.h[4], A, Bh);
this.h[4] = sum32_3(this.h[0], B, Ch);
this.h[0] = T;
};
RIPEMD160.prototype._digest = function digest(enc) {
if (enc === 'hex') return utils.toHex32(this.h, 'little');else return utils.split32(this.h, 'little');
};
function f(j, x, y, z) {
if (j <= 15) return x ^ y ^ z;else if (j <= 31) return x & y | ~x & z;else if (j <= 47) return (x | ~y) ^ z;else if (j <= 63) return x & z | y & ~z;else return x ^ (y | ~z);
}
function K(j) {
if (j <= 15) return 0x00000000;else if (j <= 31) return 0x5a827999;else if (j <= 47) return 0x6ed9eba1;else if (j <= 63) return 0x8f1bbcdc;else return 0xa953fd4e;
}
function Kh(j) {
if (j <= 15) return 0x50a28be6;else if (j <= 31) return 0x5c4dd124;else if (j <= 47) return 0x6d703ef3;else if (j <= 63) return 0x7a6d76e9;else return 0x00000000;
}
var r = [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];
var rh = [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];
var s = [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];
var sh = [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];
},{"./common":249,"./utils":259}],252:[function(require,module,exports){
'use strict';
exports.sha1 = require('./sha/1');
exports.sha224 = require('./sha/224');
exports.sha256 = require('./sha/256');
exports.sha384 = require('./sha/384');
exports.sha512 = require('./sha/512');
},{"./sha/1":253,"./sha/224":254,"./sha/256":255,"./sha/384":256,"./sha/512":257}],253:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var common = require('../common');
var shaCommon = require('./common');
var rotl32 = utils.rotl32;
var sum32 = utils.sum32;
var sum32_5 = utils.sum32_5;
var ft_1 = shaCommon.ft_1;
var BlockHash = common.BlockHash;
var sha1_K = [0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xCA62C1D6];
function SHA1() {
if (!(this instanceof SHA1)) return new SHA1();
BlockHash.call(this);
this.h = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
this.W = new Array(80);
}
utils.inherits(SHA1, BlockHash);
module.exports = SHA1;
SHA1.blockSize = 512;
SHA1.outSize = 160;
SHA1.hmacStrength = 80;
SHA1.padLength = 64;
SHA1.prototype._update = function _update(msg, start) {
var W = this.W;
for (var i = 0; i < 16; i++) {
W[i] = msg[start + i];
}for (; i < W.length; i++) {
W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);
}var a = this.h[0];
var b = this.h[1];
var c = this.h[2];
var d = this.h[3];
var e = this.h[4];
for (i = 0; i < W.length; i++) {
var s = ~~(i / 20);
var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);
e = d;
d = c;
c = rotl32(b, 30);
b = a;
a = t;
}
this.h[0] = sum32(this.h[0], a);
this.h[1] = sum32(this.h[1], b);
this.h[2] = sum32(this.h[2], c);
this.h[3] = sum32(this.h[3], d);
this.h[4] = sum32(this.h[4], e);
};
SHA1.prototype._digest = function digest(enc) {
if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big');
};
},{"../common":249,"../utils":259,"./common":258}],254:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var SHA256 = require('./256');
function SHA224() {
if (!(this instanceof SHA224)) return new SHA224();
SHA256.call(this);
this.h = [0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4];
}
utils.inherits(SHA224, SHA256);
module.exports = SHA224;
SHA224.blockSize = 512;
SHA224.outSize = 224;
SHA224.hmacStrength = 192;
SHA224.padLength = 64;
SHA224.prototype._digest = function digest(enc) {
// Just truncate output
if (enc === 'hex') return utils.toHex32(this.h.slice(0, 7), 'big');else return utils.split32(this.h.slice(0, 7), 'big');
};
},{"../utils":259,"./256":255}],255:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var common = require('../common');
var shaCommon = require('./common');
var assert = require('minimalistic-assert');
var sum32 = utils.sum32;
var sum32_4 = utils.sum32_4;
var sum32_5 = utils.sum32_5;
var ch32 = shaCommon.ch32;
var maj32 = shaCommon.maj32;
var s0_256 = shaCommon.s0_256;
var s1_256 = shaCommon.s1_256;
var g0_256 = shaCommon.g0_256;
var g1_256 = shaCommon.g1_256;
var BlockHash = common.BlockHash;
var sha256_K = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];
function SHA256() {
if (!(this instanceof SHA256)) return new SHA256();
BlockHash.call(this);
this.h = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19];
this.k = sha256_K;
this.W = new Array(64);
}
utils.inherits(SHA256, BlockHash);
module.exports = SHA256;
SHA256.blockSize = 512;
SHA256.outSize = 256;
SHA256.hmacStrength = 192;
SHA256.padLength = 64;
SHA256.prototype._update = function _update(msg, start) {
var W = this.W;
for (var i = 0; i < 16; i++) {
W[i] = msg[start + i];
}for (; i < W.length; i++) {
W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);
}var a = this.h[0];
var b = this.h[1];
var c = this.h[2];
var d = this.h[3];
var e = this.h[4];
var f = this.h[5];
var g = this.h[6];
var h = this.h[7];
assert(this.k.length === W.length);
for (i = 0; i < W.length; i++) {
var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);
var T2 = sum32(s0_256(a), maj32(a, b, c));
h = g;
g = f;
f = e;
e = sum32(d, T1);
d = c;
c = b;
b = a;
a = sum32(T1, T2);
}
this.h[0] = sum32(this.h[0], a);
this.h[1] = sum32(this.h[1], b);
this.h[2] = sum32(this.h[2], c);
this.h[3] = sum32(this.h[3], d);
this.h[4] = sum32(this.h[4], e);
this.h[5] = sum32(this.h[5], f);
this.h[6] = sum32(this.h[6], g);
this.h[7] = sum32(this.h[7], h);
};
SHA256.prototype._digest = function digest(enc) {
if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big');
};
},{"../common":249,"../utils":259,"./common":258,"minimalistic-assert":281}],256:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var SHA512 = require('./512');
function SHA384() {
if (!(this instanceof SHA384)) return new SHA384();
SHA512.call(this);
this.h = [0xcbbb9d5d, 0xc1059ed8, 0x629a292a, 0x367cd507, 0x9159015a, 0x3070dd17, 0x152fecd8, 0xf70e5939, 0x67332667, 0xffc00b31, 0x8eb44a87, 0x68581511, 0xdb0c2e0d, 0x64f98fa7, 0x47b5481d, 0xbefa4fa4];
}
utils.inherits(SHA384, SHA512);
module.exports = SHA384;
SHA384.blockSize = 1024;
SHA384.outSize = 384;
SHA384.hmacStrength = 192;
SHA384.padLength = 128;
SHA384.prototype._digest = function digest(enc) {
if (enc === 'hex') return utils.toHex32(this.h.slice(0, 12), 'big');else return utils.split32(this.h.slice(0, 12), 'big');
};
},{"../utils":259,"./512":257}],257:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var common = require('../common');
var assert = require('minimalistic-assert');
var rotr64_hi = utils.rotr64_hi;
var rotr64_lo = utils.rotr64_lo;
var shr64_hi = utils.shr64_hi;
var shr64_lo = utils.shr64_lo;
var sum64 = utils.sum64;
var sum64_hi = utils.sum64_hi;
var sum64_lo = utils.sum64_lo;
var sum64_4_hi = utils.sum64_4_hi;
var sum64_4_lo = utils.sum64_4_lo;
var sum64_5_hi = utils.sum64_5_hi;
var sum64_5_lo = utils.sum64_5_lo;
var BlockHash = common.BlockHash;
var sha512_K = [0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd, 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc, 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019, 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118, 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe, 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2, 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1, 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694, 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3, 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65, 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483, 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5, 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210, 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4, 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725, 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70, 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926, 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df, 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8, 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b, 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001, 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30, 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910, 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8, 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53, 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8, 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb, 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3, 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60, 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec, 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9, 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b, 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207, 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178, 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6, 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b, 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493, 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c, 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a, 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817];
function SHA512() {
if (!(this instanceof SHA512)) return new SHA512();
BlockHash.call(this);
this.h = [0x6a09e667, 0xf3bcc908, 0xbb67ae85, 0x84caa73b, 0x3c6ef372, 0xfe94f82b, 0xa54ff53a, 0x5f1d36f1, 0x510e527f, 0xade682d1, 0x9b05688c, 0x2b3e6c1f, 0x1f83d9ab, 0xfb41bd6b, 0x5be0cd19, 0x137e2179];
this.k = sha512_K;
this.W = new Array(160);
}
utils.inherits(SHA512, BlockHash);
module.exports = SHA512;
SHA512.blockSize = 1024;
SHA512.outSize = 512;
SHA512.hmacStrength = 192;
SHA512.padLength = 128;
SHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {
var W = this.W;
// 32 x 32bit words
for (var i = 0; i < 32; i++) {
W[i] = msg[start + i];
}for (; i < W.length; i += 2) {
var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2
var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);
var c1_hi = W[i - 14]; // i - 7
var c1_lo = W[i - 13];
var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15
var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);
var c3_hi = W[i - 32]; // i - 16
var c3_lo = W[i - 31];
W[i] = sum64_4_hi(c0_hi, c0_lo, c1_hi, c1_lo, c2_hi, c2_lo, c3_hi, c3_lo);
W[i + 1] = sum64_4_lo(c0_hi, c0_lo, c1_hi, c1_lo, c2_hi, c2_lo, c3_hi, c3_lo);
}
};
SHA512.prototype._update = function _update(msg, start) {
this._prepareBlock(msg, start);
var W = this.W;
var ah = this.h[0];
var al = this.h[1];
var bh = this.h[2];
var bl = this.h[3];
var ch = this.h[4];
var cl = this.h[5];
var dh = this.h[6];
var dl = this.h[7];
var eh = this.h[8];
var el = this.h[9];
var fh = this.h[10];
var fl = this.h[11];
var gh = this.h[12];
var gl = this.h[13];
var hh = this.h[14];
var hl = this.h[15];
assert(this.k.length === W.length);
for (var i = 0; i < W.length; i += 2) {
var c0_hi = hh;
var c0_lo = hl;
var c1_hi = s1_512_hi(eh, el);
var c1_lo = s1_512_lo(eh, el);
var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);
var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);
var c3_hi = this.k[i];
var c3_lo = this.k[i + 1];
var c4_hi = W[i];
var c4_lo = W[i + 1];
var T1_hi = sum64_5_hi(c0_hi, c0_lo, c1_hi, c1_lo, c2_hi, c2_lo, c3_hi, c3_lo, c4_hi, c4_lo);
var T1_lo = sum64_5_lo(c0_hi, c0_lo, c1_hi, c1_lo, c2_hi, c2_lo, c3_hi, c3_lo, c4_hi, c4_lo);
c0_hi = s0_512_hi(ah, al);
c0_lo = s0_512_lo(ah, al);
c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);
c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);
var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);
var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);
hh = gh;
hl = gl;
gh = fh;
gl = fl;
fh = eh;
fl = el;
eh = sum64_hi(dh, dl, T1_hi, T1_lo);
el = sum64_lo(dl, dl, T1_hi, T1_lo);
dh = ch;
dl = cl;
ch = bh;
cl = bl;
bh = ah;
bl = al;
ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);
al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);
}
sum64(this.h, 0, ah, al);
sum64(this.h, 2, bh, bl);
sum64(this.h, 4, ch, cl);
sum64(this.h, 6, dh, dl);
sum64(this.h, 8, eh, el);
sum64(this.h, 10, fh, fl);
sum64(this.h, 12, gh, gl);
sum64(this.h, 14, hh, hl);
};
SHA512.prototype._digest = function digest(enc) {
if (enc === 'hex') return utils.toHex32(this.h, 'big');else return utils.split32(this.h, 'big');
};
function ch64_hi(xh, xl, yh, yl, zh) {
var r = xh & yh ^ ~xh & zh;
if (r < 0) r += 0x100000000;
return r;
}
function ch64_lo(xh, xl, yh, yl, zh, zl) {
var r = xl & yl ^ ~xl & zl;
if (r < 0) r += 0x100000000;
return r;
}
function maj64_hi(xh, xl, yh, yl, zh) {
var r = xh & yh ^ xh & zh ^ yh & zh;
if (r < 0) r += 0x100000000;
return r;
}
function maj64_lo(xh, xl, yh, yl, zh, zl) {
var r = xl & yl ^ xl & zl ^ yl & zl;
if (r < 0) r += 0x100000000;
return r;
}
function s0_512_hi(xh, xl) {
var c0_hi = rotr64_hi(xh, xl, 28);
var c1_hi = rotr64_hi(xl, xh, 2); // 34
var c2_hi = rotr64_hi(xl, xh, 7); // 39
var r = c0_hi ^ c1_hi ^ c2_hi;
if (r < 0) r += 0x100000000;
return r;
}
function s0_512_lo(xh, xl) {
var c0_lo = rotr64_lo(xh, xl, 28);
var c1_lo = rotr64_lo(xl, xh, 2); // 34
var c2_lo = rotr64_lo(xl, xh, 7); // 39
var r = c0_lo ^ c1_lo ^ c2_lo;
if (r < 0) r += 0x100000000;
return r;
}
function s1_512_hi(xh, xl) {
var c0_hi = rotr64_hi(xh, xl, 14);
var c1_hi = rotr64_hi(xh, xl, 18);
var c2_hi = rotr64_hi(xl, xh, 9); // 41
var r = c0_hi ^ c1_hi ^ c2_hi;
if (r < 0) r += 0x100000000;
return r;
}
function s1_512_lo(xh, xl) {
var c0_lo = rotr64_lo(xh, xl, 14);
var c1_lo = rotr64_lo(xh, xl, 18);
var c2_lo = rotr64_lo(xl, xh, 9); // 41
var r = c0_lo ^ c1_lo ^ c2_lo;
if (r < 0) r += 0x100000000;
return r;
}
function g0_512_hi(xh, xl) {
var c0_hi = rotr64_hi(xh, xl, 1);
var c1_hi = rotr64_hi(xh, xl, 8);
var c2_hi = shr64_hi(xh, xl, 7);
var r = c0_hi ^ c1_hi ^ c2_hi;
if (r < 0) r += 0x100000000;
return r;
}
function g0_512_lo(xh, xl) {
var c0_lo = rotr64_lo(xh, xl, 1);
var c1_lo = rotr64_lo(xh, xl, 8);
var c2_lo = shr64_lo(xh, xl, 7);
var r = c0_lo ^ c1_lo ^ c2_lo;
if (r < 0) r += 0x100000000;
return r;
}
function g1_512_hi(xh, xl) {
var c0_hi = rotr64_hi(xh, xl, 19);
var c1_hi = rotr64_hi(xl, xh, 29); // 61
var c2_hi = shr64_hi(xh, xl, 6);
var r = c0_hi ^ c1_hi ^ c2_hi;
if (r < 0) r += 0x100000000;
return r;
}
function g1_512_lo(xh, xl) {
var c0_lo = rotr64_lo(xh, xl, 19);
var c1_lo = rotr64_lo(xl, xh, 29); // 61
var c2_lo = shr64_lo(xh, xl, 6);
var r = c0_lo ^ c1_lo ^ c2_lo;
if (r < 0) r += 0x100000000;
return r;
}
},{"../common":249,"../utils":259,"minimalistic-assert":281}],258:[function(require,module,exports){
'use strict';
var utils = require('../utils');
var rotr32 = utils.rotr32;
function ft_1(s, x, y, z) {
if (s === 0) return ch32(x, y, z);
if (s === 1 || s === 3) return p32(x, y, z);
if (s === 2) return maj32(x, y, z);
}
exports.ft_1 = ft_1;
function ch32(x, y, z) {
return x & y ^ ~x & z;
}
exports.ch32 = ch32;
function maj32(x, y, z) {
return x & y ^ x & z ^ y & z;
}
exports.maj32 = maj32;
function p32(x, y, z) {
return x ^ y ^ z;
}
exports.p32 = p32;
function s0_256(x) {
return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);
}
exports.s0_256 = s0_256;
function s1_256(x) {
return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);
}
exports.s1_256 = s1_256;
function g0_256(x) {
return rotr32(x, 7) ^ rotr32(x, 18) ^ x >>> 3;
}
exports.g0_256 = g0_256;
function g1_256(x) {
return rotr32(x, 17) ^ rotr32(x, 19) ^ x >>> 10;
}
exports.g1_256 = g1_256;
},{"../utils":259}],259:[function(require,module,exports){
'use strict';
var assert = require('minimalistic-assert');
var inherits = require('inherits');
exports.inherits = inherits;
function toArray(msg, enc) {
if (Array.isArray(msg)) return msg.slice();
if (!msg) return [];
var res = [];
if (typeof msg === 'string') {
if (!enc) {
for (var i = 0; i < msg.length; i++) {
var c = msg.charCodeAt(i);
var hi = c >> 8;
var lo = c & 0xff;
if (hi) res.push(hi, lo);else res.push(lo);
}
} else if (enc === 'hex') {
msg = msg.replace(/[^a-z0-9]+/ig, '');
if (msg.length % 2 !== 0) msg = '0' + msg;
for (i = 0; i < msg.length; i += 2) {
res.push(parseInt(msg[i] + msg[i + 1], 16));
}
}
} else {
for (i = 0; i < msg.length; i++) {
res[i] = msg[i] | 0;
}
}
return res;
}
exports.toArray = toArray;
function toHex(msg) {
var res = '';
for (var i = 0; i < msg.length; i++) {
res += zero2(msg[i].toString(16));
}return res;
}
exports.toHex = toHex;
function htonl(w) {
var res = w >>> 24 | w >>> 8 & 0xff00 | w << 8 & 0xff0000 | (w & 0xff) << 24;
return res >>> 0;
}
exports.htonl = htonl;
function toHex32(msg, endian) {
var res = '';
for (var i = 0; i < msg.length; i++) {
var w = msg[i];
if (endian === 'little') w = htonl(w);
res += zero8(w.toString(16));
}
return res;
}
exports.toHex32 = toHex32;
function zero2(word) {
if (word.length === 1) return '0' + word;else return word;
}
exports.zero2 = zero2;
function zero8(word) {
if (word.length === 7) return '0' + word;else if (word.length === 6) return '00' + word;else if (word.length === 5) return '000' + word;else if (word.length === 4) return '0000' + word;else if (word.length === 3) return '00000' + word;else if (word.length === 2) return '000000' + word;else if (word.length === 1) return '0000000' + word;else return word;
}
exports.zero8 = zero8;
function join32(msg, start, end, endian) {
var len = end - start;
assert(len % 4 === 0);
var res = new Array(len / 4);
for (var i = 0, k = start; i < res.length; i++, k += 4) {
var w;
if (endian === 'big') w = msg[k] << 24 | msg[k + 1] << 16 | msg[k + 2] << 8 | msg[k + 3];else w = msg[k + 3] << 24 | msg[k + 2] << 16 | msg[k + 1] << 8 | msg[k];
res[i] = w >>> 0;
}
return res;
}
exports.join32 = join32;
function split32(msg, endian) {
var res = new Array(msg.length * 4);
for (var i = 0, k = 0; i < msg.length; i++, k += 4) {
var m = msg[i];
if (endian === 'big') {
res[k] = m >>> 24;
res[k + 1] = m >>> 16 & 0xff;
res[k + 2] = m >>> 8 & 0xff;
res[k + 3] = m & 0xff;
} else {
res[k + 3] = m >>> 24;
res[k + 2] = m >>> 16 & 0xff;
res[k + 1] = m >>> 8 & 0xff;
res[k] = m & 0xff;
}
}
return res;
}
exports.split32 = split32;
function rotr32(w, b) {
return w >>> b | w << 32 - b;
}
exports.rotr32 = rotr32;
function rotl32(w, b) {
return w << b | w >>> 32 - b;
}
exports.rotl32 = rotl32;
function sum32(a, b) {
return a + b >>> 0;
}
exports.sum32 = sum32;
function sum32_3(a, b, c) {
return a + b + c >>> 0;
}
exports.sum32_3 = sum32_3;
function sum32_4(a, b, c, d) {
return a + b + c + d >>> 0;
}
exports.sum32_4 = sum32_4;
function sum32_5(a, b, c, d, e) {
return a + b + c + d + e >>> 0;
}
exports.sum32_5 = sum32_5;
function sum64(buf, pos, ah, al) {
var bh = buf[pos];
var bl = buf[pos + 1];
var lo = al + bl >>> 0;
var hi = (lo < al ? 1 : 0) + ah + bh;
buf[pos] = hi >>> 0;
buf[pos + 1] = lo;
}
exports.sum64 = sum64;
function sum64_hi(ah, al, bh, bl) {
var lo = al + bl >>> 0;
var hi = (lo < al ? 1 : 0) + ah + bh;
return hi >>> 0;
}
exports.sum64_hi = sum64_hi;
function sum64_lo(ah, al, bh, bl) {
var lo = al + bl;
return lo >>> 0;
}
exports.sum64_lo = sum64_lo;
function sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {
var carry = 0;
var lo = al;
lo = lo + bl >>> 0;
carry += lo < al ? 1 : 0;
lo = lo + cl >>> 0;
carry += lo < cl ? 1 : 0;
lo = lo + dl >>> 0;
carry += lo < dl ? 1 : 0;
var hi = ah + bh + ch + dh + carry;
return hi >>> 0;
}
exports.sum64_4_hi = sum64_4_hi;
function sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {
var lo = al + bl + cl + dl;
return lo >>> 0;
}
exports.sum64_4_lo = sum64_4_lo;
function sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
var carry = 0;
var lo = al;
lo = lo + bl >>> 0;
carry += lo < al ? 1 : 0;
lo = lo + cl >>> 0;
carry += lo < cl ? 1 : 0;
lo = lo + dl >>> 0;
carry += lo < dl ? 1 : 0;
lo = lo + el >>> 0;
carry += lo < el ? 1 : 0;
var hi = ah + bh + ch + dh + eh + carry;
return hi >>> 0;
}
exports.sum64_5_hi = sum64_5_hi;
function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
var lo = al + bl + cl + dl + el;
return lo >>> 0;
}
exports.sum64_5_lo = sum64_5_lo;
function rotr64_hi(ah, al, num) {
var r = al << 32 - num | ah >>> num;
return r >>> 0;
}
exports.rotr64_hi = rotr64_hi;
function rotr64_lo(ah, al, num) {
var r = ah << 32 - num | al >>> num;
return r >>> 0;
}
exports.rotr64_lo = rotr64_lo;
function shr64_hi(ah, al, num) {
return ah >>> num;
}
exports.shr64_hi = shr64_hi;
function shr64_lo(ah, al, num) {
var r = ah << 32 - num | al >>> num;
return r >>> 0;
}
exports.shr64_lo = shr64_lo;
},{"inherits":266,"minimalistic-assert":281}],260:[function(require,module,exports){
(function (Buffer){
'use strict';
var assert = require('assert');
var crypto = require('crypto');
var cs = require('coinstring');
var secp256k1 = require('secp256k1');
var MASTER_SECRET = new Buffer('Bitcoin seed');
var HARDENED_OFFSET = 0x80000000;
var LEN = 78;
// Bitcoin hardcoded by default, can use package `coininfo` for others
var BITCOIN_VERSIONS = { private: 0x0488ADE4, public: 0x0488B21E };
function HDKey(versions) {
this.versions = versions || BITCOIN_VERSIONS;
this.depth = 0;
this.index = 0;
this._privateKey = null;
this._publicKey = null;
this.chainCode = null;
this._fingerprint = 0;
this.parentFingerprint = 0;
}
Object.defineProperty(HDKey.prototype, 'fingerprint', { get: function get() {
return this._fingerprint;
} });
Object.defineProperty(HDKey.prototype, 'identifier', { get: function get() {
return this._identifier;
} });
Object.defineProperty(HDKey.prototype, 'pubKeyHash', { get: function get() {
return this.identifier;
} });
Object.defineProperty(HDKey.prototype, 'privateKey', {
get: function get() {
return this._privateKey;
},
set: function set(value) {
assert.equal(value.length, 32, 'Private key must be 32 bytes.');
assert(secp256k1.privateKeyVerify(value) === true, 'Invalid private key');
this._privateKey = value;
this._publicKey = secp256k1.publicKeyCreate(value, true);
this._identifier = hash160(this.publicKey);
this._fingerprint = this._identifier.slice(0, 4).readUInt32BE(0);
}
});
Object.defineProperty(HDKey.prototype, 'publicKey', {
get: function get() {
return this._publicKey;
},
set: function set(value) {
assert(value.length === 33 || value.length === 65, 'Public key must be 33 or 65 bytes.');
assert(secp256k1.publicKeyVerify(value) === true, 'Invalid public key');
this._publicKey = secp256k1.publicKeyConvert(value, true); // force compressed point
this._identifier = hash160(this.publicKey);
this._fingerprint = this._identifier.slice(0, 4).readUInt32BE(0);
this._privateKey = null;
}
});
Object.defineProperty(HDKey.prototype, 'privateExtendedKey', {
get: function get() {
if (this._privateKey) return cs.encode(serialize(this, this.versions.private, Buffer.concat([new Buffer([0]), this.privateKey])));else return null;
}
});
Object.defineProperty(HDKey.prototype, 'publicExtendedKey', {
get: function get() {
return cs.encode(serialize(this, this.versions.public, this.publicKey));
}
});
HDKey.prototype.derive = function (path) {
if (path === 'm' || path === 'M' || path === "m'" || path === "M'") {
return this;
}
var entries = path.split('/');
var hdkey = this;
entries.forEach(function (c, i) {
if (i === 0) {
assert(c, 'm', 'Invalid path');
return;
}
var hardened = c.length > 1 && c[c.length - 1] === "'";
var childIndex = parseInt(c, 10); // & (HARDENED_OFFSET - 1)
assert(childIndex < HARDENED_OFFSET, 'Invalid index');
if (hardened) childIndex += HARDENED_OFFSET;
hdkey = hdkey.deriveChild(childIndex);
});
return hdkey;
};
HDKey.prototype.deriveChild = function (index) {
var isHardened = index >= HARDENED_OFFSET;
var indexBuffer = new Buffer(4);
indexBuffer.writeUInt32BE(index, 0);
var data;
if (isHardened) {
// Hardened child
assert(this.privateKey, 'Could not derive hardened child key');
var pk = this.privateKey;
var zb = new Buffer([0]);
pk = Buffer.concat([zb, pk]);
// data = 0x00 || ser256(kpar) || ser32(index)
data = Buffer.concat([pk, indexBuffer]);
} else {
// Normal child
// data = serP(point(kpar)) || ser32(index)
// = serP(Kpar) || ser32(index)
data = Buffer.concat([this.publicKey, indexBuffer]);
}
var I = crypto.createHmac('sha512', this.chainCode).update(data).digest();
var IL = I.slice(0, 32);
var IR = I.slice(32);
var hd = new HDKey(this.versions);
// Private parent key -> private child key
if (this.privateKey) {
// ki = parse256(IL) + kpar (mod n)
try {
hd.privateKey = secp256k1.privateKeyTweakAdd(this.privateKey, IL);
// throw if IL >= n || (privateKey + IL) === 0
} catch (err) {
// In case parse256(IL) >= n or ki == 0, one should proceed with the next value for i
return this.derive(index + 1);
}
// Public parent key -> public child key
} else {
// Ki = point(parse256(IL)) + Kpar
// = G*IL + Kpar
try {
hd.publicKey = secp256k1.publicKeyTweakAdd(this.publicKey, IL, true);
// throw if IL >= n || (g**IL + publicKey) is infinity
} catch (err) {
// In case parse256(IL) >= n or Ki is the point at infinity, one should proceed with the next value for i
return this.derive(index + 1, isHardened);
}
}
hd.chainCode = IR;
hd.depth = this.depth + 1;
hd.parentFingerprint = this.fingerprint; // .readUInt32BE(0)
hd.index = index;
return hd;
};
HDKey.prototype.toJSON = function () {
return {
xpriv: this.privateExtendedKey,
xpub: this.publicExtendedKey
};
};
HDKey.fromMasterSeed = function (seedBuffer, versions) {
var I = crypto.createHmac('sha512', MASTER_SECRET).update(seedBuffer).digest();
var IL = I.slice(0, 32);
var IR = I.slice(32);
var hdkey = new HDKey(versions);
hdkey.chainCode = IR;
hdkey.privateKey = IL;
return hdkey;
};
HDKey.fromExtendedKey = function (base58key, versions) {
// => version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33)
versions = versions || BITCOIN_VERSIONS;
var hdkey = new HDKey(versions);
var keyBuffer = cs.decode(base58key);
var version = keyBuffer.readUInt32BE(0);
assert(version === versions.private || version === versions.public, 'Version mismatch: does not match private or public');
hdkey.depth = keyBuffer.readUInt8(4);
hdkey.parentFingerprint = keyBuffer.readUInt32BE(5);
hdkey.index = keyBuffer.readUInt32BE(9);
hdkey.chainCode = keyBuffer.slice(13, 45);
var key = keyBuffer.slice(45);
if (key.readUInt8(0) === 0) {
// private
assert(version === versions.private, 'Version mismatch: version does not match private');
hdkey.privateKey = key.slice(1); // cut off first 0x0 byte
} else {
assert(version === versions.public, 'Version mismatch: version does not match public');
hdkey.publicKey = key;
}
return hdkey;
};
HDKey.fromJSON = function (obj) {
return HDKey.fromExtendedKey(obj.xpriv);
};
function serialize(hdkey, version, key) {
// => version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33)
var buffer = new Buffer(LEN);
buffer.writeUInt32BE(version, 0);
buffer.writeUInt8(hdkey.depth, 4);
var fingerprint = hdkey.depth ? hdkey.parentFingerprint : 0x00000000;
buffer.writeUInt32BE(fingerprint, 5);
buffer.writeUInt32BE(hdkey.index, 9);
hdkey.chainCode.copy(buffer, 13);
key.copy(buffer, 45);
return buffer;
}
function hash160(buf) {
var sha = crypto.createHash('sha256').update(buf).digest();
return crypto.createHash('rmd160').update(sha).digest();
}
HDKey.HARDENED_OFFSET = HARDENED_OFFSET;
module.exports = HDKey;
}).call(this,require("buffer").Buffer)
},{"assert":156,"buffer":201,"coinstring":203,"crypto":211,"secp256k1":321}],261:[function(require,module,exports){
'use strict';
var hash = require('hash.js');
var utils = require('minimalistic-crypto-utils');
var assert = require('minimalistic-assert');
function HmacDRBG(options) {
if (!(this instanceof HmacDRBG)) return new HmacDRBG(options);
this.hash = options.hash;
this.predResist = !!options.predResist;
this.outLen = this.hash.outSize;
this.minEntropy = options.minEntropy || this.hash.hmacStrength;
this._reseed = null;
this.reseedInterval = null;
this.K = null;
this.V = null;
var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');
var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');
var pers = utils.toArray(options.pers, options.persEnc || 'hex');
assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
this._init(entropy, nonce, pers);
}
module.exports = HmacDRBG;
HmacDRBG.prototype._init = function init(entropy, nonce, pers) {
var seed = entropy.concat(nonce).concat(pers);
this.K = new Array(this.outLen / 8);
this.V = new Array(this.outLen / 8);
for (var i = 0; i < this.V.length; i++) {
this.K[i] = 0x00;
this.V[i] = 0x01;
}
this._update(seed);
this._reseed = 1;
this.reseedInterval = 0x1000000000000; // 2^48
};
HmacDRBG.prototype._hmac = function hmac() {
return new hash.hmac(this.hash, this.K);
};
HmacDRBG.prototype._update = function update(seed) {
var kmac = this._hmac().update(this.V).update([0x00]);
if (seed) kmac = kmac.update(seed);
this.K = kmac.digest();
this.V = this._hmac().update(this.V).digest();
if (!seed) return;
this.K = this._hmac().update(this.V).update([0x01]).update(seed).digest();
this.V = this._hmac().update(this.V).digest();
};
HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {
// Optional entropy enc
if (typeof entropyEnc !== 'string') {
addEnc = add;
add = entropyEnc;
entropyEnc = null;
}
entropy = utils.toArray(entropy, entropyEnc);
add = utils.toArray(add, addEnc);
assert(entropy.length >= this.minEntropy / 8, 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
this._update(entropy.concat(add || []));
this._reseed = 1;
};
HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
if (this._reseed > this.reseedInterval) throw new Error('Reseed is required');
// Optional encoding
if (typeof enc !== 'string') {
addEnc = add;
add = enc;
enc = null;
}
// Optional additional data
if (add) {
add = utils.toArray(add, addEnc || 'hex');
this._update(add);
}
var temp = [];
while (temp.length < len) {
this.V = this._hmac().update(this.V).digest();
temp = temp.concat(this.V);
}
var res = temp.slice(0, len);
this._update(add);
this._reseed++;
return utils.encode(res, enc);
};
},{"hash.js":248,"minimalistic-assert":281,"minimalistic-crypto-utils":282}],262:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* This file is generated from the Unicode IDNA table, using
the build-unicode-tables.py script. Please edit that
script instead of this file. */
/* istanbul ignore next */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], function () {
return factory();
});
} else if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {
module.exports = factory();
} else {
root.uts46_map = factory();
}
})(undefined, function () {
var blocks = [new Uint32Array([2157250, 2157314, 2157378, 2157442, 2157506, 2157570, 2157634, 0, 2157698, 2157762, 2157826, 2157890, 2157954, 0, 2158018, 0]), new Uint32Array([2179041, 6291456, 2179073, 6291456, 2179105, 6291456, 2179137, 6291456, 2179169, 6291456, 2179201, 6291456, 2179233, 6291456, 2179265, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([0, 2113729, 2197345, 2197377, 2113825, 2197409, 2197441, 2113921, 2197473, 2114017, 2197505, 2197537, 2197569, 2197601, 2197633, 2197665]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 23068672, 23068672, 23068672, 0, 0, 0, 0, 23068672]), new Uint32Array([14680064, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064]), new Uint32Array([2196001, 2196033, 2196065, 2196097, 2196129, 2196161, 2196193, 2196225, 2196257, 2196289, 2196321, 2196353, 2196385, 2196417, 2196449, 2196481]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2097281, 2105921, 2097729, 2106081, 0, 2097601, 2162337, 2106017, 2133281, 2097505, 2105889, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2177025, 6291456, 2177057, 6291456, 2177089, 6291456, 2177121, 6291456, 2177153, 6291456, 2177185, 6291456, 2177217, 6291456, 2177249, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456]), new Uint32Array([2134435, 2134531, 2134627, 2134723, 2134723, 2134819, 2134819, 2134915, 2134915, 2135011, 2105987, 2135107, 2135203, 2135299, 2131587, 2135395]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 6291456, 2168673, 2169249, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2147906, 2147970, 2148034, 2148098, 2148162, 2148226, 2148290, 2148354, 2147906, 2147970, 2148034, 2148098, 2148162, 2148226, 2148290, 2148354]), new Uint32Array([2125219, 2125315, 2152834, 2152898, 2125411, 2152962, 2153026, 2125506, 2125507, 2125603, 2153090, 2153154, 2153218, 2153282, 2153346, 2105348]), new Uint32Array([2203393, 6291456, 2203425, 6291456, 2203457, 6291456, 2203489, 6291456, 6291456, 6291456, 6291456, 2203521, 6291456, 2181281, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 6291456, 2145538, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 6291456]), new Uint32Array([2139426, 2160834, 2160898, 2160962, 2134242, 2161026, 2161090, 2161154, 2161218, 2161282, 2161346, 2161410, 2138658, 2161474, 2161538, 2134722]), new Uint32Array([2119939, 2124930, 2125026, 2106658, 2125218, 2128962, 2129058, 2129154, 2129250, 2129346, 2129442, 2108866, 2108770, 2150466, 2150530, 2150594]), new Uint32Array([2201601, 6291456, 2201633, 6291456, 2201665, 6291456, 2201697, 6291456, 2201729, 6291456, 2201761, 6291456, 2201793, 6291456, 2201825, 6291456]), new Uint32Array([2193537, 2193569, 2193601, 2193633, 2193665, 2193697, 2193729, 2193761, 2193793, 2193825, 2193857, 2193889, 2193921, 2193953, 2193985, 2194017]), new Uint32Array([6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2190561, 6291456, 2190593, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2190625, 6291456, 2190657, 6291456, 23068672]), new Uint32Array([2215905, 2215937, 2215969, 2216001, 2216033, 2216065, 2216097, 2216129, 2216161, 2216193, 2216225, 2216257, 2105441, 2216289, 2216321, 2216353]), new Uint32Array([23068672, 18884130, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2191233, 2191265, 2191297, 2191329, 2191361, 2191393, 2191425, 2117377, 2191457, 2191489, 2191521, 2191553, 2191585, 2191617, 2191649, 2117953]), new Uint32Array([2132227, 2132323, 2132419, 2132419, 2132515, 2132515, 2132611, 2132707, 2132707, 2132803, 2132899, 2132899, 2132995, 2132995, 2133091, 2133187]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 0, 0]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 10609889, 10610785, 10609921, 10610817, 2222241]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([2219969, 2157121, 2157441, 2157505, 2157889, 2157953, 2220001, 2158465, 2158529, 10575617, 2156994, 2157058, 2129923, 2130019, 2157122, 2157186]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2185249, 6291456, 2185281, 6291456, 2185313, 6291456, 2185345, 6291456, 2185377, 6291456, 2185409, 6291456, 2185441, 6291456, 2185473, 6291456]), new Uint32Array([0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 6291456, 0]), new Uint32Array([2183361, 6291456, 2183393, 6291456, 2183425, 6291456, 2183457, 6291456, 2183489, 6291456, 2183521, 6291456, 2183553, 6291456, 2183585, 6291456]), new Uint32Array([2192161, 2192193, 2192225, 2192257, 2192289, 2192321, 2192353, 2192385, 2192417, 2192449, 2192481, 2192513, 2192545, 2192577, 2192609, 2192641]), new Uint32Array([2212001, 2212033, 2212065, 2212097, 2212129, 2212161, 2212193, 2212225, 2212257, 2212289, 2212321, 2212353, 2212385, 2212417, 2212449, 2207265]), new Uint32Array([2249825, 2249857, 2249889, 2249921, 2249954, 2250018, 2250082, 2250145, 2250177, 2250209, 2250241, 2250274, 2250337, 2250370, 2250433, 2250465]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2147905, 2147969, 2148033, 2148097, 2148161, 2148225, 2148289, 2148353]), new Uint32Array([10485857, 6291456, 2197217, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 23068672, 23068672]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2180353, 2180385, 2144033, 2180417, 2180449, 2180481, 2180513, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 10610209, 10610465, 10610241, 10610753, 10609857]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0, 0]), new Uint32Array([2223842, 2223906, 2223970, 2224034, 2224098, 2224162, 2224226, 2224290, 2224354, 2224418, 2224482, 2224546, 2224610, 2224674, 2224738, 2224802]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 18923650, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 18923714, 23068672, 23068672]), new Uint32Array([2126179, 2125538, 2126275, 2126371, 2126467, 2125634, 2126563, 2105603, 2105604, 2125346, 2126659, 2126755, 2126851, 2098179, 2098181, 2098182]), new Uint32Array([2227426, 2227490, 2227554, 2227618, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2192353, 2240642, 2240642, 2240705, 2240737, 2240737, 2240769, 2240802, 2240866, 2240929, 2240961, 2240993, 2241025, 2241057, 2241089, 2241121]), new Uint32Array([6291456, 2170881, 2170913, 2170945, 6291456, 2170977, 6291456, 2171009, 2171041, 6291456, 6291456, 6291456, 2171073, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2132226, 2132514, 2163586, 2132610, 2160386, 2133090, 2133186, 2160450, 2160514, 2160578, 2133570, 2106178, 2160642, 2133858, 2160706, 2160770]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10532162, 10532226, 10532290, 10532354, 10532418, 10532482, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672]), new Uint32Array([2098209, 2108353, 2108193, 2108481, 2170241, 2111713, 2105473, 2105569, 2105601, 2112289, 2112481, 2098305, 2108321, 0, 0, 0]), new Uint32Array([2209121, 2209153, 2209185, 2209217, 2209249, 2209281, 2209313, 2209345, 2209377, 2209409, 2209441, 2209473, 2207265, 2209505, 2209537, 2209569]), new Uint32Array([2189025, 6291456, 2189057, 6291456, 2189089, 6291456, 2189121, 6291456, 2189153, 6291456, 2189185, 6291456, 2189217, 6291456, 2189249, 6291456]), new Uint32Array([2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2165764, 2140004]), new Uint32Array([2215105, 6291456, 2215137, 6291456, 6291456, 2215169, 2215201, 6291456, 6291456, 6291456, 2215233, 2215265, 2215297, 2215329, 2215361, 2215393]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([10505091, 10505187, 10505283, 10505379, 10505475, 10505571, 10505667, 10505763, 10505859, 10505955, 10506051, 10506147, 10506243, 10506339, 10506435, 10506531]), new Uint32Array([2229730, 2229794, 2229858, 2229922, 2229986, 2230050, 2230114, 2230178, 2230242, 2230306, 2230370, 2230434, 2230498, 2230562, 2230626, 2230690]), new Uint32Array([2105505, 2098241, 2108353, 2108417, 2105825, 0, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 10502115, 10502178, 10502211, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2190305, 6291456, 2190337, 6291456, 2190369, 6291456, 2190401, 6291456, 2190433, 6291456, 2190465, 6291456, 2190497, 6291456, 2190529, 6291456]), new Uint32Array([2173793, 2173985, 2174017, 6291456, 2173761, 2173697, 6291456, 2174689, 6291456, 2174017, 2174721, 6291456, 6291456, 2174753, 2174785, 2174817]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2099521, 2099105, 2120705, 2098369, 2120801, 2103361, 2097985, 2098433, 2121377, 2121473, 2099169, 2099873, 2098401, 2099393, 2152609, 2100033]), new Uint32Array([2132898, 2163842, 2163906, 2133282, 2132034, 2131938, 2137410, 2132802, 2132706, 2164866, 2133282, 2160578, 2165186, 2165186, 6291456, 6291456]), new Uint32Array([10500003, 10500099, 10500195, 10500291, 10500387, 10500483, 10500579, 10500675, 10500771, 10500867, 10500963, 10501059, 10501155, 10501251, 10501347, 10501443]), new Uint32Array([2163458, 2130978, 2131074, 2131266, 2131362, 2163522, 2160130, 2132066, 2131010, 2131106, 2106018, 2131618, 2131298, 2132034, 2131938, 2137410]), new Uint32Array([2212961, 2116993, 2212993, 2213025, 2213057, 2213089, 2213121, 2213153, 2213185, 2213217, 2213249, 2209633, 2213281, 2213313, 2213345, 2213377]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2113729, 2113825, 2113921, 2114017, 2114113, 2114209, 2114305, 2114401, 2114497, 2114593, 2114689, 2114785, 2114881, 2114977, 2115073, 2115169]), new Uint32Array([2238177, 2238209, 2238241, 2238273, 2238305, 2238337, 2238337, 2217537, 2238369, 2238401, 2238433, 2238465, 2215649, 2238497, 2238529, 2238561]), new Uint32Array([2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905]), new Uint32Array([6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 0]), new Uint32Array([6291456, 0, 6291456, 2145026, 0, 6291456, 2145090, 0, 6291456, 6291456, 0, 0, 23068672, 0, 23068672, 23068672]), new Uint32Array([2099233, 2122017, 2200673, 2098113, 2121537, 2103201, 2200705, 2104033, 2121857, 2121953, 2122401, 2099649, 2099969, 2123009, 2100129, 2100289]), new Uint32Array([6291456, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0]), new Uint32Array([2187681, 2187713, 2187745, 2187777, 2187809, 2187841, 2187873, 2187905, 2187937, 2187969, 2188001, 2188033, 2188065, 2188097, 2188129, 2188161]), new Uint32Array([0, 10554498, 10554562, 10554626, 10554690, 10554754, 10554818, 10554882, 10554946, 10555010, 10555074, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2235170, 2235234, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2181153, 6291456, 2188897, 6291456, 6291456, 2188929, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2111905, 2100865, 2188961, 2188993]), new Uint32Array([2100833, 2100897, 0, 0, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10575617, 2187041, 10502177, 10489601, 10489697, 2112289]), new Uint32Array([6291456, 2172833, 6291456, 2172865, 2172897, 2172929, 2172961, 6291456, 2172993, 6291456, 2173025, 6291456, 2173057, 6291456, 2173089, 6291456]), new Uint32Array([6291456, 0, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 2190721]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456]), new Uint32Array([2184993, 6291456, 2185025, 6291456, 2185057, 6291456, 2185089, 6291456, 2185121, 6291456, 2185153, 6291456, 2185185, 6291456, 2185217, 6291456]), new Uint32Array([2115265, 2115361, 2115457, 2115553, 2115649, 2115745, 2115841, 2115937, 2116033, 2116129, 2116225, 2116321, 2150658, 2150722, 2200225, 6291456]), new Uint32Array([2168321, 6291456, 2168353, 6291456, 2168385, 6291456, 2168417, 6291456, 2168449, 6291456, 2168481, 6291456, 2168513, 6291456, 2168545, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 2186625, 0, 0, 6291456, 6291456, 2186657, 2186689, 2186721, 2173505, 0, 10496067, 10496163, 10496259]), new Uint32Array([2178785, 6291456, 2178817, 6291456, 2178849, 6291456, 2178881, 6291456, 2178913, 6291456, 2178945, 6291456, 2178977, 6291456, 2179009, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2097152, 0, 0, 0, 2097152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 2197857, 2197889, 2197921, 2197953, 2197985, 2198017, 0, 0, 2198049, 2198081, 2198113, 2198145, 2198177, 2198209]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2098209, 2167297, 2111137, 6291456]), new Uint32Array([2171393, 6291456, 2171425, 6291456, 2171457, 6291456, 2171489, 6291456, 2171521, 6291456, 2171553, 6291456, 2171585, 6291456, 2171617, 6291456]), new Uint32Array([2206753, 2206785, 2195457, 2206817, 2206849, 2206881, 2206913, 2197153, 2197153, 2206945, 2117857, 2206977, 2207009, 2207041, 2207073, 2207105]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 2144834, 2144898, 0, 2144962]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672]), new Uint32Array([2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 0, 2105505, 2098241]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 2202049, 6291456, 2202081, 6291456, 2202113, 6291456, 2202145, 6291456, 2202177, 6291456, 2202209, 6291456, 2202241, 6291456]), new Uint32Array([10501155, 10501251, 10501347, 10501443, 10501539, 10501635, 10501731, 10501827, 10501923, 10502019, 2141731, 2105505, 2098177, 2155586, 2166530, 0]), new Uint32Array([2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441]), new Uint32Array([2146882, 2146946, 2147010, 2147074, 2147138, 2147202, 2147266, 2147330, 2146882, 2146946, 2147010, 2147074, 2147138, 2147202, 2147266, 2147330]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([10502307, 10502403, 10502499, 10502595, 10502691, 10502787, 10502883, 10502979, 10503075, 10503171, 10503267, 10503363, 10503459, 10503555, 10503651, 10503747]), new Uint32Array([2179937, 2179969, 2180001, 2180033, 2156545, 2180065, 2156577, 2180097, 2180129, 2180161, 2180193, 2180225, 2180257, 2180289, 2156737, 2180321]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 0, 0, 6291456, 0, 0, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0]), new Uint32Array([2227682, 2227746, 2227810, 2227874, 2227938, 2228002, 2228066, 2228130, 2228194, 2228258, 2228322, 2228386, 2228450, 2228514, 2228578, 2228642]), new Uint32Array([2105601, 2169121, 2108193, 2170049, 2181025, 2181057, 2112481, 2108321, 2108289, 2181089, 2170497, 2100865, 2181121, 2173601, 2173633, 2173665]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2180641, 6291456, 6291456, 6291456]), new Uint32Array([0, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 0, 0, 6291456, 6291456, 0, 6291456, 6291456, 6291456]), new Uint32Array([2178273, 6291456, 2178305, 6291456, 2178337, 6291456, 2178369, 6291456, 2178401, 6291456, 2178433, 6291456, 2178465, 6291456, 2178497, 6291456]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456]), new Uint32Array([2237377, 2237409, 2236225, 2237441, 2237473, 2217441, 2215521, 2215553, 2217473, 2237505, 2237537, 2209697, 2237569, 2215585, 2237601, 2237633]), new Uint32Array([2221985, 2165601, 2165601, 2165665, 2165665, 2222017, 2222017, 2165729, 2165729, 2158913, 2158913, 2158913, 2158913, 2097281, 2097281, 2105921]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2149634, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2176897, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 2176929, 6291456, 2176961, 6291456, 2176993, 6291456]), new Uint32Array([2172641, 6291456, 2172673, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2172705, 2172737, 6291456, 2172769, 2172801, 6291456]), new Uint32Array([2099173, 2104196, 2121667, 2099395, 2121763, 2152258, 2152322, 2098946, 2152386, 2121859, 2121955, 2099333, 2122051, 2104324, 2099493, 2122147]), new Uint32Array([6291456, 6291456, 6291456, 2145794, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 2145858, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 0, 0, 6291456, 0]), new Uint32Array([0, 2105921, 2097729, 0, 2097377, 0, 0, 2106017, 0, 2097505, 2105889, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2239074, 2239138, 2239201, 2239233, 2239265, 2239297, 2239329, 2239361, 0, 2239393, 2239425, 2239425, 2239458, 2239521, 2239553, 2209569]), new Uint32Array([14680064, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 6291456, 23068672]), new Uint32Array([2108321, 2108289, 2113153, 2098209, 2180897, 2180929, 2180961, 2111137, 2098241, 2108353, 2170241, 2170273, 2180993, 2105825, 6291456, 2105473]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2146114, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2105921, 2105921, 2105921, 2222049, 2222049, 2130977, 2130977, 2130977, 2130977, 2160065, 2160065, 2160065, 2160065, 2097729, 2097729, 2097729]), new Uint32Array([2218145, 2214785, 2207937, 2218177, 2218209, 2192993, 2210113, 2212769, 2218241, 2218273, 2216129, 2218305, 2216161, 2218337, 2218369, 2218401]), new Uint32Array([0, 0, 0, 2156546, 2156610, 2156674, 2156738, 2156802, 0, 0, 0, 0, 0, 2156866, 23068672, 2156930]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2213409, 2213441, 2213473, 2213505, 2213537, 2213569, 2213601, 2213633, 2213665, 2195681, 2213697, 2213729, 2213761, 2213793, 2213825, 2213857]), new Uint32Array([2100033, 2099233, 2122017, 2200673, 2098113, 2121537, 2103201, 2200705, 2104033, 2121857, 2121953, 2122401, 2099649, 2099969, 2123009, 2100129]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2201857, 6291456, 2201889, 6291456, 2201921, 6291456, 2201953, 6291456, 2201985, 6291456, 2202017, 6291456, 2176193, 2176257, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2188193, 2188225, 2188257, 2188289, 2188321, 2188353, 2188385, 2188417, 2188449, 2188481, 2188513, 2188545, 2188577, 2188609, 2188641, 0]), new Uint32Array([10554529, 2221089, 0, 10502113, 10562017, 10537921, 10538049, 2221121, 2221153, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2213889, 2213921, 2213953, 2213985, 2214017, 2214049, 2214081, 2194177, 2214113, 2214145, 2214177, 2214209, 2214241, 2214273, 2214305, 2214337]), new Uint32Array([2166978, 2167042, 2099169, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2180545, 6291456, 6291456, 6291456]), new Uint32Array([10518915, 10519011, 10519107, 10519203, 2162242, 2162306, 2159554, 2162370, 2159362, 2159618, 2105922, 2162434, 2159746, 2162498, 2159810, 2159874]), new Uint32Array([2161730, 2161794, 2135586, 2161858, 2161922, 2137186, 2131810, 2160290, 2135170, 2161986, 2137954, 2162050, 2162114, 2162178, 10518723, 10518819]), new Uint32Array([10506627, 10506723, 10506819, 10506915, 10507011, 10507107, 10507203, 10507299, 10507395, 10507491, 10507587, 10507683, 10507779, 10507875, 10507971, 10508067]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2175873, 2175905, 2175937, 2175969, 2176001, 2176033, 2176065, 2176097, 2176129, 2176161, 2176193, 2176225, 2176257, 2176289, 2176321, 2176353]), new Uint32Array([2140006, 2140198, 2140390, 2140582, 2140774, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672]), new Uint32Array([2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241]), new Uint32Array([0, 23068672, 0, 0, 0, 0, 0, 0, 0, 2145154, 2145218, 2145282, 6291456, 0, 2145346, 0]), new Uint32Array([0, 0, 0, 0, 10531458, 10495395, 2148545, 2143201, 2173473, 2148865, 2173505, 0, 2173537, 0, 2173569, 2149121]), new Uint32Array([10537282, 10495683, 2148738, 2148802, 2148866, 0, 6291456, 2148930, 2186593, 2173473, 2148737, 2148865, 2148802, 10495779, 10495875, 10495971]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2215425, 2215457, 2215489, 2215521, 2215553, 2215585, 2215617, 2215649, 2215681, 2215713, 2215745, 2215777, 2192033, 2215809, 2215841, 2215873]), new Uint32Array([2242049, 2242081, 2242113, 2242145, 2242177, 2242209, 2242241, 2242273, 2215937, 2242305, 2242338, 2242401, 2242433, 2242465, 2242497, 2216001]), new Uint32Array([10554529, 2221089, 0, 0, 10562017, 10502113, 10538049, 10537921, 2221185, 10489601, 10489697, 10609889, 10609921, 2141729, 2141793, 10610273]), new Uint32Array([2141923, 2142019, 2142115, 2142211, 2142307, 2142403, 2142499, 2142595, 2142691, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 2221185, 2221217, 10609857, 10609857, 10489601, 10489697, 10609889, 10609921, 2141729, 2141793, 2221345, 2221377, 2221409, 2221441, 2187105]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 18923970, 23068672, 23068672, 23068672, 0, 6291456, 6291456]), new Uint32Array([2183105, 6291456, 2183137, 6291456, 2183169, 6291456, 2183201, 6291456, 2183233, 6291456, 2183265, 6291456, 2183297, 6291456, 2183329, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2134434, 2134818, 2097666, 2097186, 2097474, 2097698, 2105986, 2131586, 2132450, 2131874, 2131778, 2135970, 2135778, 2161602, 2136162, 2161666]), new Uint32Array([2236865, 2236897, 2236930, 2236993, 2237025, 2235681, 2237058, 2237121, 2237153, 2237185, 2237217, 2217281, 2237250, 2191233, 2237313, 2237345]), new Uint32Array([2190049, 6291456, 2190081, 6291456, 2190113, 6291456, 2190145, 6291456, 2190177, 6291456, 2190209, 6291456, 2190241, 6291456, 2190273, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2101922, 2102050, 2102178, 2102306, 10498755, 10498851, 10498947, 10499043, 10499139, 10499235, 10499331, 10499427, 10499523, 10489604, 10489732, 10489860]), new Uint32Array([2166914, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2181601, 2170561, 2181633, 2181665, 2170753, 2181697, 2172897, 2170881, 2181729, 2170913, 2172929, 2113441, 2181761, 2181793, 2171009, 2173761]), new Uint32Array([0, 2105921, 2097729, 2106081, 0, 2097601, 2162337, 2106017, 2133281, 2097505, 0, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2248001, 2248033, 2248066, 2248130, 2248193, 2248226, 2248289, 2248322, 2248385, 2248417, 2216673, 2248450, 2248514, 2248577, 2248610, 2248673]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2169729, 6291456, 2169761, 6291456, 2169793, 6291456, 2169825, 6291456, 2169857, 2169889, 6291456, 2169921, 6291456, 2143329, 6291456, 2098305]), new Uint32Array([2162178, 2163202, 2163266, 2135170, 2136226, 2161986, 2137954, 2159426, 2159490, 2163330, 2159554, 2163394, 2159682, 2139522, 2136450, 2159746]), new Uint32Array([2173953, 2173985, 0, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2174209, 2174241, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 4271169, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2174273]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 2190785, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2189793, 6291456, 2189825, 6291456, 2189857, 6291456, 2189889, 6291456, 2189921, 6291456, 2189953, 6291456, 2189985, 6291456, 2190017, 6291456]), new Uint32Array([2105601, 2112289, 2108193, 2112481, 2112577, 0, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 0, 2098209, 2111137]), new Uint32Array([2172129, 6291456, 2172161, 6291456, 2172193, 6291456, 2172225, 6291456, 2172257, 6291456, 2172289, 6291456, 2172321, 6291456, 2172353, 6291456]), new Uint32Array([2214753, 6291456, 2214785, 6291456, 6291456, 2214817, 2214849, 2214881, 2214913, 2214945, 2214977, 2215009, 2215041, 2215073, 2194401, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([10610305, 10610337, 10575617, 2221761, 10610401, 10610433, 10502177, 0, 10610465, 10610497, 10610529, 10610561, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 23068672, 0, 0, 0, 0, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2187105, 2187137, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2199393, 2199425, 2199457, 2199489, 2199521, 2199553, 2199585, 2199617, 2199649, 2199681, 2199713, 2199745, 2199777, 2199809, 2199841, 0]), new Uint32Array([2217249, 2217281, 2217313, 2217345, 2217377, 2217409, 2217441, 2217473, 2215617, 2217505, 2217537, 2217569, 2214753, 2217601, 2217633, 2217665]), new Uint32Array([2170273, 2170305, 6291456, 2170337, 2170369, 6291456, 2170401, 2170433, 2170465, 6291456, 6291456, 6291456, 2170497, 2170529, 6291456, 2170561]), new Uint32Array([2188673, 6291456, 2188705, 2188737, 2188769, 6291456, 6291456, 2188801, 6291456, 2188833, 6291456, 2188865, 6291456, 2180929, 2181505, 2180897]), new Uint32Array([10489988, 10490116, 10490244, 10490372, 10490500, 10490628, 10490756, 10490884, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2147393, 2147457, 2147521, 2147585, 2147649, 2147713, 2147777, 2147841]), new Uint32Array([23068672, 23068672, 0, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2241153, 2241185, 2241217, 2215809, 2241250, 2241313, 2241345, 2241377, 2217921, 2241377, 2241409, 2215873, 2241441, 2241473, 2241505, 2241537]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220417, 2220417, 2220449, 2220449, 2220481, 2220481, 2220513, 2220513, 2220545, 2220545, 2220577, 2220577, 2220609, 2220609, 2220641, 2220641]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2144002, 0, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([2167105, 2167137, 2167169, 2167201, 2167233, 2167265, 2167297, 2167329, 2167361, 2167393, 2167425, 2167457, 2167489, 2167521, 2167553, 2167585]), new Uint32Array([10575521, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([2234146, 2234210, 2234274, 2234338, 2234402, 2234466, 2234530, 2234594, 2234658, 2234722, 2234786, 2234850, 2234914, 2234978, 2235042, 2235106]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 2180577, 0, 0, 0, 0, 0, 2180609, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 6291456, 6291456]), new Uint32Array([2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2242529, 2242561, 2242593, 2242625, 2242657, 2242689, 2242721, 2242753, 2207937, 2218177, 2242785, 2242817, 2242849, 2242882, 2242945, 2242977]), new Uint32Array([2118049, 2105345, 2118241, 2105441, 2118433, 2118529, 2118625, 2118721, 2118817, 2200257, 2200289, 2191809, 2200321, 2200353, 2200385, 2200417]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2185505, 6291456, 2185537, 6291456, 2185569, 6291456, 2185601, 6291456, 2185633, 6291456, 2185665, 6291456, 2185697, 6291456, 2185729, 6291456]), new Uint32Array([2231970, 2232034, 2232098, 2232162, 2232226, 2232290, 2232354, 2232418, 2232482, 2232546, 2232610, 2232674, 2232738, 2232802, 2232866, 2232930]), new Uint32Array([2218625, 2246402, 2246466, 2246530, 2246594, 2246657, 2246689, 2246689, 2218657, 2219681, 2246721, 2246753, 2246785, 2246818, 2246881, 2208481]), new Uint32Array([2197025, 2197057, 2197089, 2197121, 2197153, 2197185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2219137, 2216961, 2219169, 2219201, 2219233, 2219265, 2219297, 2217025, 2215041, 2219329, 2217057, 2219361, 2217089, 2219393, 2197153, 2219426]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713]), new Uint32Array([2243522, 2243585, 2243617, 2243649, 2243681, 2210113, 2243713, 2243746, 2243810, 2243874, 2243937, 2243970, 2244033, 2244065, 2244097, 2244129]), new Uint32Array([2178017, 6291456, 2178049, 6291456, 2178081, 6291456, 2178113, 6291456, 2178145, 6291456, 2178177, 6291456, 2178209, 6291456, 2178241, 6291456]), new Uint32Array([10553858, 2165314, 10518722, 6291456, 10518818, 0, 10518914, 2130690, 10519010, 2130786, 10519106, 2130882, 10519202, 2165378, 10554050, 2165506]), new Uint32Array([0, 0, 2135491, 2135587, 2135683, 2135779, 2135875, 2135971, 2135971, 2136067, 2136163, 2136259, 2136355, 2136355, 2136451, 2136547]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2220033, 2220033, 2220065, 2220065, 2220065, 2220065, 2220097, 2220097, 2220097, 2220097, 2220129, 2220129, 2220129, 2220129, 2220161, 2220161]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2100897, 2100898, 2100899, 2150018, 2100865, 2100866, 2100867, 2100868, 2150082, 2108481, 2109858, 2109859, 2105569, 2105505, 2098241, 2105601]), new Uint32Array([2097217, 2097505, 2097505, 2097505, 2097505, 2165570, 2165570, 2165634, 2165634, 2165698, 2165698, 2097858, 2097858, 0, 0, 2097152]), new Uint32Array([23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([10503843, 10503939, 10504035, 10504131, 10504227, 10504323, 10504419, 10504515, 10504611, 10504707, 10504803, 10504899, 10504995, 10491140, 10491268, 0]), new Uint32Array([2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 2105953, 2132705, 2130977, 2160065, 2131297, 2162049, 2133089, 2160577, 2133857, 2235297, 2220769, 2235329, 2235361]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2222401, 2222433, 2222465, 10531394, 2222497, 2222529, 2222561, 0, 2222593, 2222625, 2222657, 2222689, 2222721, 2222753, 2222785, 0]), new Uint32Array([2184481, 6291456, 2184513, 6291456, 2184545, 6291456, 2184577, 6291456, 2184609, 6291456, 2184641, 6291456, 2184673, 6291456, 2184705, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2105570, 2156034, 2126947, 2156098, 2153666, 2127043, 2127139, 2156162, 0, 2127235, 2156226, 2156290, 2156354, 2156418, 2127331, 2127427]), new Uint32Array([2215905, 2207041, 2153185, 2241569, 2241601, 2241633, 2241665, 2241697, 2241730, 2241793, 2241825, 2241857, 2241889, 2241921, 2241954, 2242017]), new Uint32Array([2203777, 6291456, 2203809, 6291456, 2203841, 6291456, 2203873, 6291456, 2203905, 6291456, 2173121, 2180993, 2181249, 2203937, 2181313, 0]), new Uint32Array([2168577, 6291456, 2168609, 6291456, 2168641, 6291456, 2168673, 6291456, 2168705, 6291456, 2168737, 6291456, 2168769, 6291456, 2168801, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 23068672, 23068672, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2210113, 2195521, 2210145, 2210177, 2210209, 2210241, 2210273, 2210305, 2210337, 2210369, 2210401, 2210433, 2210465, 2210497, 2210529, 2210561]), new Uint32Array([6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([2228706, 2228770, 2228834, 2228898, 2228962, 2229026, 2229090, 2229154, 2229218, 2229282, 2229346, 2229410, 2229474, 2229538, 2229602, 2229666]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 18874368, 18874368, 18874368, 0, 0]), new Uint32Array([2133089, 2133281, 2133281, 2133281, 2133281, 2160577, 2160577, 2160577, 2160577, 2097441, 2097441, 2097441, 2097441, 2133857, 2133857, 2133857]), new Uint32Array([6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089]), new Uint32Array([2178529, 6291456, 2178561, 6291456, 2178593, 6291456, 2178625, 6291456, 2178657, 6291456, 2178689, 6291456, 2178721, 6291456, 2178753, 6291456]), new Uint32Array([2221025, 2221025, 2221057, 2221057, 2159329, 2159329, 2159329, 2159329, 2097217, 2097217, 2158914, 2158914, 2158978, 2158978, 2159042, 2159042]), new Uint32Array([2208161, 2208193, 2208225, 2208257, 2194433, 2208289, 2208321, 2208353, 2208385, 2208417, 2208449, 2208481, 2208513, 2208545, 2208577, 2208609]), new Uint32Array([2169217, 6291456, 2169249, 6291456, 2169281, 6291456, 2169313, 6291456, 2169345, 6291456, 2169377, 6291456, 2169409, 6291456, 2169441, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2133187, 2133283, 2133283, 2133379, 2133475, 2133571, 2133667, 2133667, 2133763, 2133859, 2133955, 2134051, 2134147, 2134147, 2134243, 2134339]), new Uint32Array([2197697, 2114113, 2114209, 2197729, 2197761, 2114305, 2197793, 2114401, 2114497, 2197825, 2114593, 2114689, 2114785, 2114881, 2114977, 0]), new Uint32Array([2193089, 2193121, 2193153, 2193185, 2117665, 2117569, 2193217, 2193249, 2193281, 2193313, 2193345, 2193377, 2193409, 2193441, 2193473, 2193505]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2184225, 6291456, 2184257, 6291456, 2184289, 6291456, 2184321, 6291456, 2184353, 6291456, 2184385, 6291456, 2184417, 6291456, 2184449, 6291456]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2100833, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2098657, 2098049, 2200737, 2123489, 2123681, 2200769, 2098625, 2100321, 2098145, 2100449, 2098017, 2098753, 2200801, 2200833, 2200865, 0]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 0, 2098241, 2108353, 2108417, 2105825, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2181153, 2105505, 2181185, 2167617, 2180993]), new Uint32Array([2160002, 2160066, 2160130, 2160194, 2160258, 2132066, 2131010, 2131106, 2106018, 2131618, 2160322, 2131298, 2132034, 2131938, 2137410, 2132226]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([2183617, 6291456, 2183649, 6291456, 2183681, 6291456, 2183713, 6291456, 2183745, 6291456, 2183777, 6291456, 2183809, 6291456, 2183841, 6291456]), new Uint32Array([0, 6291456, 6291456, 0, 6291456, 0, 0, 6291456, 6291456, 0, 6291456, 0, 0, 6291456, 0, 0]), new Uint32Array([2250977, 2251009, 2251041, 2251073, 2195009, 2251106, 2251169, 2251201, 2251233, 2251265, 2251297, 2251330, 2251394, 2251457, 2251489, 2251521]), new Uint32Array([2205729, 2205761, 2205793, 2205825, 2205857, 2205889, 2205921, 2205953, 2205985, 2206017, 2206049, 2206081, 2206113, 2206145, 2206177, 2206209]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2143170, 2168993, 6291456, 2169025, 6291456, 2169057, 6291456, 2169089, 6291456, 2143234, 2169121, 6291456, 2169153, 6291456, 2169185, 6291456]), new Uint32Array([23068672, 23068672, 2190689, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2248706, 2248769, 2248801, 2248833, 2248865, 2248897, 2248929, 2248962, 2249026, 2249090, 2249154, 2240705, 2249217, 2249249, 2249281, 2249313]), new Uint32Array([10485857, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10495394, 6291456, 2098209, 6291456, 6291456, 2097152, 6291456, 10531394]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([14680064, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2173985, 2173953, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889]), new Uint32Array([6291456, 2186977, 6291456, 6291456, 6291456, 6291456, 6291456, 10537858, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2209601, 2209633, 2209665, 2209697, 2209729, 2209761, 2209793, 2209825, 2209857, 2209889, 2209921, 2209953, 2209985, 2210017, 2210049, 2210081]), new Uint32Array([10501539, 10501635, 10501731, 10501827, 10501923, 10502019, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905]), new Uint32Array([2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2194561, 2194593, 2194625, 2119777, 2119873, 2194657, 2194689, 2194721, 2194753, 2194785, 2194817, 2194849, 2194881, 2194913, 2194945, 2194977]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569]), new Uint32Array([2222818, 2222882, 2222946, 2223010, 2223074, 2223138, 2223202, 2223266, 2223330, 2223394, 2223458, 2223522, 2223586, 2223650, 2223714, 2223778]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672]), new Uint32Array([0, 2179553, 2179585, 2179617, 2179649, 2144001, 2179681, 2179713, 2179745, 2179777, 2179809, 2156705, 2179841, 2156833, 2179873, 2179905]), new Uint32Array([6291456, 23068672, 6291456, 2145602, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 6291456, 0, 0]), new Uint32Array([2196513, 2196545, 2196577, 2196609, 2196641, 2196673, 2196705, 2196737, 2196769, 2196801, 2196833, 2196865, 2196897, 2196929, 2196961, 2196993]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2177281, 6291456, 2177313, 6291456, 2177345, 6291456, 2177377, 6291456, 2177409, 6291456, 2177441, 6291456, 2177473, 6291456, 2177505, 6291456]), new Uint32Array([2187137, 2221473, 2221505, 2221537, 2221569, 6291456, 6291456, 10610209, 10610241, 10537986, 10537986, 10537986, 10537986, 10609857, 10609857, 10609857]), new Uint32Array([2243009, 2243041, 2216033, 2243074, 2243137, 2243169, 2243201, 2219617, 2243233, 2243265, 2243297, 2243329, 2243362, 2243425, 2243457, 2243489]), new Uint32Array([10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 2097152, 4194304, 4194304, 0, 0]), new Uint32Array([2143042, 6291456, 2143106, 2143106, 2168833, 6291456, 2168865, 6291456, 6291456, 2168897, 6291456, 2168929, 6291456, 2168961, 6291456, 2143170]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2204193, 2204225, 2204257, 2204289, 2204321, 2204353, 2204385, 2204417, 2204449, 2204481, 2204513, 2204545, 2204577, 2204609, 2204641, 2204673]), new Uint32Array([2202753, 6291456, 2202785, 6291456, 2202817, 6291456, 2202849, 6291456, 2202881, 6291456, 2202913, 6291456, 2202945, 6291456, 2202977, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321]), new Uint32Array([2147394, 2147458, 2147522, 2147586, 2147650, 2147714, 2147778, 2147842, 2147394, 2147458, 2147522, 2147586, 2147650, 2147714, 2147778, 2147842]), new Uint32Array([2253313, 2253346, 2253409, 2253441, 2253473, 2253505, 2253537, 2253569, 2253601, 2253634, 2219393, 2253697, 2253729, 2253761, 2253793, 2253825]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([2162562, 2162626, 2131362, 2162690, 2159938, 2160002, 2162754, 2162818, 2160130, 2162882, 2160194, 2160258, 2160834, 2160898, 2161026, 2161090]), new Uint32Array([2175361, 2175393, 2175425, 2175457, 2175489, 2175521, 2175553, 2175585, 2175617, 2175649, 2175681, 2175713, 2175745, 2175777, 2175809, 2175841]), new Uint32Array([2253858, 2253921, 2253954, 2254018, 2254082, 2196737, 2254145, 2196865, 2254177, 2254209, 2254241, 2254273, 2197025, 2254306, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2202113, 2204129, 2188705, 2204161]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953]), new Uint32Array([2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209]), new Uint32Array([2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 0, 2108417, 0, 2111713, 2100897, 2111905]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2175425, 2175489, 2175809, 2175905, 2175937, 2175937, 2176193, 2176417, 2180865, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 2143298, 2143298, 2143298, 2143362, 2143362, 2143362, 2143426, 2143426, 2143426, 2171105, 6291456, 2171137]), new Uint32Array([2120162, 2120258, 2151618, 2151682, 2151746, 2151810, 2151874, 2151938, 2152002, 2120035, 2120131, 2120227, 2152066, 2120323, 2152130, 2120419]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2195361, 2142433, 2236065, 2236097, 2236129, 2236161, 2118241, 2117473, 2236193, 2236225, 2236257, 2236289, 0, 0, 0, 0]), new Uint32Array([2189281, 6291456, 2189313, 6291456, 2189345, 6291456, 2189377, 6291456, 2189409, 6291456, 2189441, 6291456, 2189473, 6291456, 2189505, 6291456]), new Uint32Array([6291456, 6291456, 2145922, 6291456, 6291456, 6291456, 6291456, 2145986, 6291456, 6291456, 6291456, 6291456, 2146050, 6291456, 6291456, 6291456]), new Uint32Array([2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10502113, 10562017, 10610401, 10502177, 10610433, 10538049]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 2186401, 0, 2186433, 0, 2186465, 0, 2186497]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 23068672, 23068672, 23068672]), new Uint32Array([0, 0, 2198241, 2198273, 2198305, 2198337, 2198369, 2198401, 0, 0, 2198433, 2198465, 2198497, 0, 0, 0]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([0, 2105921, 2097729, 0, 2097377, 0, 0, 2106017, 2133281, 2097505, 2105889, 0, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2197889, 2197921, 2197953, 2197985, 2198017, 2198049, 2198081, 2198113, 2198145, 2198177, 2198209, 2198241, 2198273, 2198305, 2198337, 2198369]), new Uint32Array([2132514, 2132610, 2160386, 2133090, 2133186, 2160450, 2160514, 2133282, 2160578, 2133570, 2106178, 2160642, 2133858, 2160706, 2160770, 2134146]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 6291456, 23068672, 23068672, 6291456, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2184737, 6291456, 2184769, 6291456, 2184801, 6291456, 2184833, 6291456, 2184865, 6291456, 2184897, 6291456, 2184929, 6291456, 2184961, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 2186753, 6291456, 6291456, 6291456, 6291456, 2186785, 2186817, 2186849, 2173569, 2186881, 10496355, 10495395, 10575521]), new Uint32Array([0, 0, 2097729, 0, 0, 0, 0, 2106017, 0, 2097505, 0, 2097185, 0, 2135777, 2097633, 2097441]), new Uint32Array([2189537, 6291456, 2189569, 6291456, 2189601, 6291456, 2189633, 6291456, 2189665, 6291456, 2189697, 6291456, 2189729, 6291456, 2189761, 6291456]), new Uint32Array([2202497, 6291456, 2202529, 6291456, 2202561, 6291456, 2202593, 6291456, 2202625, 6291456, 2202657, 6291456, 2202689, 6291456, 2202721, 6291456]), new Uint32Array([2245217, 2218369, 2245249, 2245282, 2245345, 2245377, 2245410, 2245474, 2245537, 2245569, 2245601, 2245633, 2245665, 2245665, 2245697, 2245729]), new Uint32Array([6291456, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 23068672, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2097281, 2105921, 2097729, 2106081, 2097377, 2097601, 2162337, 2106017, 2133281, 2097505, 0, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2176641, 6291456, 2176673, 6291456, 2176705, 6291456, 2176737, 6291456, 2176769, 6291456, 2176801, 6291456, 2176833, 6291456, 2176865, 6291456]), new Uint32Array([2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2174369, 2174369, 0, 0, 2100833, 2100737]), new Uint32Array([2116513, 2190817, 2190849, 2190881, 2190913, 2190945, 2116609, 2190977, 2191009, 2191041, 2191073, 2117185, 2191105, 2191137, 2191169, 2191201]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456]), new Uint32Array([2167617, 2167649, 2167681, 2167713, 2167745, 2167777, 2167809, 6291456, 2167841, 2167873, 2167905, 2167937, 2167969, 2168001, 2168033, 4240130]), new Uint32Array([2165122, 2163970, 2164034, 2164098, 2164162, 2164226, 2164290, 2164354, 2164418, 2164482, 2164546, 2133122, 2134562, 2132162, 2132834, 2136866]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2186209, 2186241, 2186273, 2186305, 2186337, 2186369, 0, 0]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([0, 0, 23068672, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([0, 10537921, 10610689, 10610273, 10610497, 10610529, 10610305, 10610721, 10489601, 10489697, 10610337, 10575617, 10554529, 2221761, 2197217, 10496577]), new Uint32Array([2105473, 2105569, 2105601, 2112289, 0, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441]), new Uint32Array([2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481]), new Uint32Array([2125346, 2153410, 2153474, 2127394, 2153538, 2153602, 2153666, 2153730, 2105507, 2105476, 2153794, 2153858, 2153922, 2153986, 2154050, 2105794]), new Uint32Array([2200449, 2119681, 2200481, 2153313, 2199873, 2199905, 2199937, 2200513, 2200545, 2200577, 2200609, 2119105, 2119201, 2119297, 2119393, 2119489]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2175777, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2222273, 2197217, 2221473, 2221505, 2221089, 2222305, 2200865, 2099681, 2104481, 2222337, 2099905, 2120737, 2222369, 2103713, 2100225, 2098785]), new Uint32Array([2201377, 6291456, 2201409, 6291456, 2201441, 6291456, 2201473, 6291456, 2201505, 6291456, 2201537, 6291456, 2201569, 6291456, 6291456, 23068672]), new Uint32Array([2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793]), new Uint32Array([2200897, 6291456, 2200929, 6291456, 2200961, 6291456, 2200993, 6291456, 2201025, 6291456, 2180865, 6291456, 2201057, 6291456, 2201089, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2161154, 2161410, 2138658, 2161474, 2161538, 2097666, 2097186, 2097474, 2162946, 2132450, 2163010, 2163074, 2136162, 2163138, 2161666, 2161730]), new Uint32Array([2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953]), new Uint32Array([0, 0, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 0, 0, 2145410, 2145474, 0, 6291456]), new Uint32Array([2244161, 2216065, 2212769, 2244193, 2244225, 2244257, 2244290, 2244353, 2244385, 2244417, 2244449, 2218273, 2244481, 2244514, 2244577, 2244609]), new Uint32Array([2125730, 2125699, 2125795, 2125891, 2125987, 2154114, 2154178, 2154242, 2154306, 2154370, 2154434, 2154498, 2126082, 2126178, 2126274, 2126083]), new Uint32Array([2237665, 2237697, 2237697, 2237697, 2237730, 2237793, 2237825, 2237857, 2237890, 2237953, 2237985, 2238017, 2238049, 2238081, 2238113, 2238145]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2150146, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2214369, 2238593, 2238625, 2238657, 2238689, 2238721, 2238753, 2238785, 2238817, 2238850, 2238913, 2238945, 2238977, 2235457, 2239009, 2239041]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([2252066, 2252130, 2252193, 2252225, 2252257, 2252290, 2252353, 2252385, 2252417, 2252449, 2252481, 2252513, 2252545, 2252578, 2252641, 2252673]), new Uint32Array([2197697, 2114113, 2114209, 2197729, 2197761, 2114305, 2197793, 2114401, 2114497, 2197825, 2114593, 2114689, 2114785, 2114881, 2114977, 2197857]), new Uint32Array([2224866, 2224930, 2224994, 2225058, 2225122, 2225186, 2225250, 2225314, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2219490, 2219554, 2219617, 2219649, 2219681, 2219714, 2219778, 2219842, 2219905, 2219937, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289]), new Uint32Array([2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2148481, 2173601, 2173633, 2173665]), new Uint32Array([2220161, 2220161, 2220193, 2220193, 2220193, 2220193, 2220225, 2220225, 2220225, 2220225, 2220257, 2220257, 2220257, 2220257, 2220289, 2220289]), new Uint32Array([2192673, 2192705, 2192737, 2192769, 2192801, 2192833, 2192865, 2118049, 2192897, 2117473, 2117761, 2192929, 2192961, 2192993, 2193025, 2193057]), new Uint32Array([2179297, 6291456, 2179329, 6291456, 2179361, 6291456, 2179393, 6291456, 2179425, 6291456, 2179457, 6291456, 2179489, 6291456, 2179521, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2235745, 2235777, 2193633, 2235809, 2235841, 2235873, 2235905, 2235937, 2235969, 2116513, 2116705, 2236001, 2200513, 2199905, 2200545, 2236033]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2232993, 2233025, 0, 0, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761]), new Uint32Array([2170593, 6291456, 2170625, 6291456, 2170657, 6291456, 2170689, 2170721, 6291456, 2170753, 6291456, 6291456, 2170785, 6291456, 2170817, 2170849]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2166786, 2166850, 0, 0, 0, 0]), new Uint32Array([23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10575617, 2187041, 10502177, 10489601, 10489697, 0]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2134562, 2132162, 2132834, 2136866, 2136482, 2164610, 2164674, 2164738, 2164802, 2132802, 2132706, 2164866, 2132898, 2164930, 2164994, 2165058]), new Uint32Array([6291456, 6291456, 2098337, 2101441, 10531458, 2153473, 6291456, 6291456, 10531522, 2100737, 2108193, 6291456, 2106499, 2106595, 2106691, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2233122, 2233186, 2233250, 2233314, 2233378, 2233442, 2233506, 2233570, 2233634, 2233698, 2233762, 2233826, 2233890, 2233954, 2234018, 2234082]), new Uint32Array([23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2205217, 2205249, 2205281, 2205313, 2205345, 2205377, 2205409, 2205441, 2205473, 2205505, 2205537, 2205569, 2205601, 2205633, 2205665, 2205697]), new Uint32Array([6291456, 0, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([2173601, 2173761, 2174081, 2173569, 2174241, 2174113, 2173953, 6291456, 2174305, 6291456, 2174337, 6291456, 2174369, 6291456, 2174401, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2152450, 2152514, 2099653, 2104452, 2099813, 2122243, 2099973, 2152578, 2122339, 2122435, 2122531, 2122627, 2122723, 2104580, 2122819, 2152642]), new Uint32Array([2236385, 2236417, 2236449, 2236482, 2236545, 2215425, 2236577, 2236609, 2236641, 2236673, 2215457, 2236705, 2236737, 2236770, 2215489, 2236833]), new Uint32Array([2163394, 2159746, 2163458, 2131362, 2163522, 2160130, 2163778, 2132226, 2163842, 2132898, 2163906, 2161410, 2138658, 2097666, 2136162, 2163650]), new Uint32Array([2218721, 2246913, 2246946, 2216385, 2247010, 2247074, 2215009, 2247137, 2247169, 2216481, 2247201, 2247233, 2247266, 2247330, 2247330, 0]), new Uint32Array([2129730, 2129762, 2129858, 2129731, 2129827, 2156482, 2156482, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 0, 0, 0, 0, 6291456, 0, 0]), new Uint32Array([2203969, 2204001, 2181377, 2204033, 2204065, 6291456, 2204097, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2169473, 6291456, 2169505, 6291456, 2169537, 6291456, 2169569, 6291456, 2169601, 6291456, 2169633, 6291456, 2169665, 6291456, 2169697, 6291456]), new Uint32Array([2141542, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220801, 2220801, 2220801, 2220801, 2220833, 2220833, 2220865, 2220865, 2220865, 2220865, 2220897, 2220897, 2220897, 2220897, 2139873, 2139873]), new Uint32Array([0, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 6291456, 0]), new Uint32Array([2214849, 2218433, 2218465, 2218497, 2218529, 2218561, 2214881, 2218593, 2218625, 2218657, 2218689, 2218721, 2218753, 2216545, 2218785, 2218817]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([2136482, 2164610, 2164674, 2164738, 2164802, 2132802, 2132706, 2164866, 2132898, 2164930, 2164994, 2165058, 2165122, 2132802, 2132706, 2164866]), new Uint32Array([2207649, 2207681, 2207713, 2207745, 2207777, 2207809, 2207841, 2207873, 2207905, 2207937, 2207969, 2208001, 2208033, 2208065, 2208097, 2208129]), new Uint32Array([2123683, 2105092, 2152706, 2123779, 2105220, 2152770, 2100453, 2098755, 2123906, 2124002, 2124098, 2124194, 2124290, 2124386, 2124482, 2124578]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 0, 0, 0, 0, 0, 0, 0, 10485857]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([10508163, 10508259, 10508355, 10508451, 2200129, 2200161, 2192737, 2200193, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2203553, 6291456, 2203585, 6291456, 6291456, 6291456, 2203617, 6291456, 2203649, 6291456, 2203681, 6291456, 2203713, 6291456, 2203745, 6291456]), new Uint32Array([18884449, 18884065, 23068672, 18884417, 18884034, 18921185, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 18874368]), new Uint32Array([2247393, 2247426, 2247489, 2247521, 2247553, 2247586, 2247649, 2247681, 2247713, 2247745, 2247777, 2247810, 2247873, 2247905, 2247937, 2247969]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 0, 2132705, 2130977, 2160065, 2131297, 0, 2133089, 2160577, 2133857, 2235297, 0, 2235329, 0]), new Uint32Array([2182593, 6291456, 2182625, 6291456, 2182657, 6291456, 2182689, 6291456, 2182721, 6291456, 2182753, 6291456, 2182785, 6291456, 2182817, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2102402, 2102403, 6291456, 2110050]), new Uint32Array([2149890, 2108323, 2149954, 6291456, 2113441, 6291456, 2149057, 6291456, 2113441, 6291456, 2105473, 2167265, 2111137, 2105505, 6291456, 2108353]), new Uint32Array([2219105, 2219137, 2195233, 2251554, 2251617, 2251649, 2251681, 2251713, 2251746, 2251810, 2251873, 2251905, 2251937, 2251970, 2252033, 2219169]), new Uint32Array([2203009, 6291456, 2203041, 6291456, 2203073, 6291456, 2203105, 6291456, 2203137, 6291456, 2203169, 6291456, 2203201, 6291456, 2203233, 6291456]), new Uint32Array([2128195, 2128291, 2128387, 2128483, 2128579, 2128675, 2128771, 2128867, 2128963, 2129059, 2129155, 2129251, 2129347, 2129443, 2129539, 2129635]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2140964, 2141156, 2140966, 2141158, 2141350]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2225378, 2225442, 2225506, 2225570, 2225634, 2225698, 2225762, 2225826, 2225890, 2225954, 2226018, 2226082, 2226146, 2226210, 2226274, 2226338]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417]), new Uint32Array([2108353, 2108417, 0, 2105601, 2108193, 2157121, 2157313, 2157377, 2157441, 2100897, 6291456, 2108419, 2173953, 2173633, 2173633, 2173953]), new Uint32Array([2111713, 2173121, 2111905, 2098177, 2173153, 2173185, 2173217, 2113153, 2113345, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 2190753]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2197249, 6291456, 2117377, 2197281, 2197313, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 23068672, 23068672]), new Uint32Array([2173281, 6291456, 2173313, 6291456, 2173345, 6291456, 2173377, 6291456, 0, 0, 10532546, 6291456, 6291456, 6291456, 10562017, 2173441]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2159426, 2159490, 2159554, 2159362, 2159618, 2159682, 2139522, 2136450, 2159746, 2159810, 2159874, 2130978, 2131074, 2131266, 2131362, 2159938]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2203233, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2203265, 6291456, 2203297, 6291456, 2203329, 2203361, 6291456]), new Uint32Array([6291456, 6291456, 2148418, 2148482, 2148546, 0, 6291456, 2148610, 2186529, 2186561, 2148417, 2148545, 2148482, 10495778, 2143969, 10495778]), new Uint32Array([2134146, 2139426, 2160962, 2134242, 2161218, 2161282, 2161346, 2161410, 2138658, 2134722, 2134434, 2134818, 2097666, 2097346, 2097698, 2105986]), new Uint32Array([2198881, 2198913, 2198945, 2198977, 2199009, 2199041, 2199073, 2199105, 2199137, 2199169, 2199201, 2199233, 2199265, 2199297, 2199329, 2199361]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([10610561, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([2183873, 6291456, 2183905, 6291456, 2183937, 6291456, 2183969, 6291456, 2184001, 6291456, 2184033, 6291456, 2184065, 6291456, 2184097, 6291456]), new Uint32Array([2244642, 2244706, 2244769, 2244801, 2218305, 2244833, 2244865, 2244897, 2244929, 2244961, 2244993, 2245026, 2245089, 2245122, 2245185, 0]), new Uint32Array([6291456, 6291456, 2116513, 2116609, 2116705, 2116801, 2199873, 2199905, 2199937, 2199969, 2190913, 2200001, 2200033, 2200065, 2200097, 2191009]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2180673, 2180705, 2180737, 2180769, 2180801, 2180833, 0, 0]), new Uint32Array([2098081, 2099521, 2099105, 2120705, 2098369, 2120801, 2103361, 2097985, 2098433, 2121377, 2121473, 2099169, 2099873, 2098401, 2099393, 2152609]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2150402]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2145666, 2145730, 6291456, 6291456]), new Uint32Array([2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665]), new Uint32Array([2187073, 6291456, 6291456, 6291456, 6291456, 2098241, 2098241, 2108353, 2100897, 2111905, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2102404, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2100612, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10485857]), new Uint32Array([2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889]), new Uint32Array([2217697, 2217729, 2217761, 2217793, 2217825, 2217857, 2217889, 2217921, 2217953, 2215873, 2217985, 2215905, 2218017, 2218049, 2218081, 2218113]), new Uint32Array([2211233, 2218849, 2216673, 2218881, 2218913, 2218945, 2218977, 2219009, 2216833, 2219041, 2215137, 2219073, 2216865, 2209505, 2219105, 2216897]), new Uint32Array([2240097, 2240129, 2240161, 2240193, 2240225, 2240257, 2240289, 2240321, 2240353, 2240386, 2240449, 2240481, 2240513, 2240545, 2207905, 2240578]), new Uint32Array([6291456, 6291456, 2202273, 6291456, 2202305, 6291456, 2202337, 6291456, 2202369, 6291456, 2202401, 6291456, 2202433, 6291456, 2202465, 6291456]), new Uint32Array([0, 23068672, 23068672, 18923394, 23068672, 18923458, 18923522, 18884099, 18923586, 18884195, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2201121, 6291456, 2201153, 6291456, 2201185, 6291456, 2201217, 6291456, 2201249, 6291456, 2201281, 6291456, 2201313, 6291456, 2201345, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2211041, 2211073, 2211105, 2211137, 2211169, 2211201, 2211233, 2211265, 2211297, 2211329, 2211361, 2211393, 2211425, 2211457, 2211489, 2211521]), new Uint32Array([2181825, 6291456, 2181857, 6291456, 2181889, 6291456, 2181921, 6291456, 2181953, 6291456, 2181985, 6291456, 2182017, 6291456, 2182049, 6291456]), new Uint32Array([2162337, 2097633, 2097633, 2097633, 2097633, 2132705, 2132705, 2132705, 2132705, 2097153, 2097153, 2097153, 2097153, 2133089, 2133089, 2133089]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 2148545, 6291456, 2173473, 6291456, 2148865, 6291456, 2173505, 6291456, 2173537, 6291456, 2173569, 6291456, 2149121, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2207137, 2207169, 2207201, 2207233, 2207265, 2207297, 2207329, 2207361, 2207393, 2207425, 2207457, 2207489, 2207521, 2207553, 2207585, 2207617]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0]), new Uint32Array([2198401, 2198433, 2198465, 2198497, 0, 2198529, 2198561, 2198593, 2198625, 2198657, 2198689, 2198721, 2198753, 2198785, 2198817, 2198849]), new Uint32Array([2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0, 0]), new Uint32Array([2216385, 2118721, 2216417, 2216449, 2216481, 2216513, 2216545, 2211233, 2216577, 2216609, 2216641, 2216673, 2216705, 2216737, 2216737, 2216769]), new Uint32Array([2216801, 2216833, 2216865, 2216897, 2216929, 2216961, 2216993, 2215169, 2217025, 2217057, 2217089, 2217121, 2217154, 2217217, 0, 0]), new Uint32Array([2210593, 2191809, 2210625, 2210657, 2210689, 2210721, 2210753, 2210785, 2210817, 2210849, 2191297, 2210881, 2210913, 2210945, 2210977, 2211009]), new Uint32Array([0, 0, 2105825, 0, 0, 2111905, 2105473, 0, 0, 2112289, 2108193, 2112481, 2112577, 0, 2098305, 2108321]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 2097153, 2134241, 0, 2132705, 0, 0, 2131297, 0, 2133089, 0, 2133857, 0, 2220769, 0, 2235361]), new Uint32Array([14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 6291456, 6291456, 14680064]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2171873, 6291456, 2171905, 6291456, 2171937, 6291456, 2171969, 6291456, 2172001, 6291456, 2172033, 6291456, 2172065, 6291456, 2172097, 6291456]), new Uint32Array([2220929, 2220929, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2133857, 2134145, 2134145, 2134145, 2134145, 2134241, 2134241, 2134241, 2134241, 2105889, 2105889, 2105889, 2105889, 2097185, 2097185, 2097185]), new Uint32Array([2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10499619, 10499715, 10499811, 10499907]), new Uint32Array([0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 2144322, 2144386, 2144450, 2144514, 2144578, 2144642, 2144706, 2144770]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 0, 2098241, 2108353, 2108417, 2105825, 0, 0, 2111905, 2105473, 2105569]), new Uint32Array([2236321, 2236353, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2152194, 2121283, 2103684, 2103812, 2097986, 2098533, 2097990, 2098693, 2098595, 2098853, 2099013, 2103940, 2121379, 2121475, 2121571, 2104068]), new Uint32Array([2206241, 2206273, 2206305, 2206337, 2206369, 2206401, 2206433, 2206465, 2206497, 2206529, 2206561, 2206593, 2206625, 2206657, 2206689, 2206721]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 16777216, 16777216, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 23068672, 10538818, 10538882, 6291456, 6291456, 2150338]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2214369, 2214401, 2214433, 2214465, 2214497, 2214529, 2214561, 2214593, 2194977, 2214625, 2195073, 2214657, 2214689, 2214721, 6291456, 6291456]), new Uint32Array([2097152, 2097152, 2097152, 2097152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2182081, 6291456, 2182113, 6291456, 2182145, 6291456, 2182177, 6291456, 2182209, 6291456, 2182241, 6291456, 2182273, 6291456, 2182305, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2146881, 2146945, 2147009, 2147073, 2147137, 2147201, 2147265, 2147329]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 23068672, 23068672]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2122915, 2123011, 2123107, 2104708, 2123203, 2123299, 2123395, 2100133, 2104836, 2100290, 2100293, 2104962, 2104964, 2098052, 2123491, 2123587]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([6291456, 2171169, 6291456, 2171201, 6291456, 2171233, 6291456, 2171265, 6291456, 2171297, 6291456, 2171329, 6291456, 6291456, 2171361, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 2148994, 2149058, 2149122, 0, 6291456, 2149186, 2186945, 2173537, 2148993, 2149121, 2149058, 10531458, 10496066, 0]), new Uint32Array([2195009, 2195041, 2195073, 2195105, 2195137, 2195169, 2195201, 2195233, 2195265, 2195297, 2195329, 2195361, 2195393, 2195425, 2195457, 2195489]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 0, 0, 6291456, 6291456]), new Uint32Array([2182849, 6291456, 2182881, 6291456, 2182913, 6291456, 2182945, 6291456, 2182977, 6291456, 2183009, 6291456, 2183041, 6291456, 2183073, 6291456]), new Uint32Array([2211553, 2210081, 2211585, 2211617, 2211649, 2211681, 2211713, 2211745, 2211777, 2211809, 2209569, 2211841, 2211873, 2211905, 2211937, 2211969]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2166594, 2127298, 2166658, 2142978, 2141827, 2166722]), new Uint32Array([2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2185761, 2185793, 2185825, 2185857, 2185889, 2185921, 0, 0]), new Uint32Array([6291456, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([0, 0, 0, 2220961, 2220961, 2220961, 2220961, 2144193, 2144193, 2159201, 2159201, 2159265, 2159265, 2144194, 2220993, 2220993]), new Uint32Array([2192641, 2235393, 2235425, 2152257, 2116609, 2235457, 2235489, 2200065, 2235521, 2235553, 2235585, 2212449, 2235617, 2235649, 2235681, 2235713]), new Uint32Array([2194049, 2194081, 2194113, 2194145, 2194177, 2194209, 2194241, 2194273, 2194305, 2194337, 2194369, 2194401, 2194433, 2194465, 2194497, 2194529]), new Uint32Array([2196673, 2208641, 2208673, 2208705, 2208737, 2208769, 2208801, 2208833, 2208865, 2208897, 2208929, 2208961, 2208993, 2209025, 2209057, 2209089]), new Uint32Array([2191681, 2191713, 2191745, 2191777, 2153281, 2191809, 2191841, 2191873, 2191905, 2191937, 2191969, 2192001, 2192033, 2192065, 2192097, 2192129]), new Uint32Array([2230946, 2231010, 2231074, 2231138, 2231202, 2231266, 2231330, 2231394, 2231458, 2231522, 2231586, 2231650, 2231714, 2231778, 2231842, 2231906]), new Uint32Array([14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2185953, 2185985, 2186017, 2186049, 2186081, 2186113, 2186145, 2186177]), new Uint32Array([2139811, 2139907, 2097284, 2105860, 2105988, 2106116, 2106244, 2097444, 2097604, 2097155, 10485778, 10486344, 2106372, 6291456, 0, 0]), new Uint32Array([2110051, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2172385, 6291456, 2172417, 6291456, 2172449, 6291456, 2172481, 6291456, 2172513, 6291456, 2172545, 6291456, 2172577, 6291456, 2172609, 6291456]), new Uint32Array([0, 0, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2249345, 2249377, 2249409, 2249441, 2249473, 2249505, 2249537, 2249570, 2210209, 2249633, 2249665, 2249697, 2249729, 2249761, 2249793, 2216769]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2187169, 2187201, 2187233, 2187265, 2187297, 2187329, 2187361, 2187393, 2187425, 2187457, 2187489, 2187521, 2187553, 2187585, 2187617, 2187649]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2182337, 6291456, 2182369, 6291456, 2182401, 6291456, 2182433, 6291456, 2182465, 6291456, 2182497, 6291456, 2182529, 6291456, 2182561, 6291456]), new Uint32Array([2138179, 2138275, 2138371, 2138467, 2134243, 2134435, 2138563, 2138659, 2138755, 2138851, 2138947, 2139043, 2138947, 2138755, 2139139, 2139235]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2250498, 2250562, 2250625, 2250657, 2208321, 2250689, 2250721, 2250753, 2250785, 2250817, 2250849, 2218945, 2250881, 2250913, 2250945, 0]), new Uint32Array([2170369, 2105569, 2098305, 2108481, 2173249, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2100897, 2111905, 2105473, 2105569, 2105601, 0, 2108193, 0, 0, 0, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481]), new Uint32Array([2100897, 2100897, 2105569, 2105569, 6291456, 2112289, 2149826, 6291456, 6291456, 2112481, 2112577, 2098177, 2098177, 2098177, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 2169953, 2169985, 6291456, 2170017, 6291456, 2170049, 2170081, 6291456, 2170113, 2170145, 2170177, 6291456, 6291456, 2170209, 2170241]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220641, 2220641, 2220673, 2220673, 2220673, 2220673, 2220705, 2220705, 2220705, 2220705, 2220737, 2220737, 2220737, 2220737, 2220769, 2220769]), new Uint32Array([2127650, 2127746, 2127842, 2127938, 2128034, 2128130, 2128226, 2128322, 2128418, 2127523, 2127619, 2127715, 2127811, 2127907, 2128003, 2128099]), new Uint32Array([2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177]), new Uint32Array([0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2204705, 2204737, 2204769, 2204801, 2204833, 2204865, 2204897, 2204929, 2204961, 2204993, 2205025, 2205057, 2205089, 2205121, 2205153, 2205185]), new Uint32Array([2176385, 6291456, 2176417, 6291456, 2176449, 6291456, 2176481, 6291456, 2176513, 6291456, 2176545, 6291456, 2176577, 6291456, 2176609, 6291456]), new Uint32Array([2195521, 2195553, 2195585, 2195617, 2195649, 2195681, 2117857, 2195713, 2195745, 2195777, 2195809, 2195841, 2195873, 2195905, 2195937, 2195969]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456]), new Uint32Array([2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113]), new Uint32Array([2131586, 2132450, 2135970, 2135778, 2161602, 2136162, 2163650, 2161794, 2135586, 2163714, 2137186, 2131810, 2160290, 2135170, 2097506, 2159554]), new Uint32Array([2134145, 2097153, 2134241, 2105953, 2132705, 2130977, 2160065, 2131297, 2162049, 2133089, 2160577, 2133857, 0, 0, 0, 0]), new Uint32Array([2116513, 2116609, 2116705, 2116801, 2116897, 2116993, 2117089, 2117185, 2117281, 2117377, 2117473, 2117569, 2117665, 2117761, 2117857, 2117953]), new Uint32Array([2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100802, 2101154, 2101282, 2101410, 2101538, 2101666, 2101794]), new Uint32Array([2100289, 2098657, 2098049, 2200737, 2123489, 2123681, 2200769, 2098625, 2100321, 2098145, 2100449, 2098017, 2098753, 2098977, 2150241, 2150305]), new Uint32Array([6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 2109955, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 0, 0]), new Uint32Array([2130979, 2131075, 2131075, 2131171, 2131267, 2131363, 2131459, 2131555, 2131651, 2131651, 2131747, 2131843, 2131939, 2132035, 2132131, 2132227]), new Uint32Array([0, 2177793, 6291456, 2177825, 6291456, 2177857, 6291456, 2177889, 6291456, 2177921, 6291456, 2177953, 6291456, 2177985, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2113345, 0, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289]), new Uint32Array([2136643, 2136739, 2136835, 2136931, 2137027, 2137123, 2137219, 2137315, 2137411, 2137507, 2137603, 2137699, 2137795, 2137891, 2137987, 2138083]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([2174433, 6291456, 2174465, 6291456, 2174497, 6291456, 2174529, 6291456, 2174561, 6291456, 2174593, 6291456, 2174625, 6291456, 2174657, 6291456]), new Uint32Array([0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441]), new Uint32Array([10496547, 10496643, 2105505, 2149698, 6291456, 10496739, 10496835, 2170273, 6291456, 2149762, 2105825, 2111713, 2111713, 2111713, 2111713, 2168673]), new Uint32Array([6291456, 2143490, 2143490, 2143490, 2171649, 6291456, 2171681, 2171713, 2171745, 6291456, 2171777, 6291456, 2171809, 6291456, 2171841, 6291456]), new Uint32Array([2159106, 2159106, 2159170, 2159170, 2159234, 2159234, 2159298, 2159298, 2159298, 2159362, 2159362, 2159362, 2106401, 2106401, 2106401, 2106401]), new Uint32Array([2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137]), new Uint32Array([2108417, 2181217, 2181249, 2181281, 2170433, 2170401, 2181313, 2181345, 2181377, 2181409, 2181441, 2181473, 2181505, 2181537, 2170529, 2181569]), new Uint32Array([2218433, 2245761, 2245793, 2245825, 2245857, 2245890, 2245953, 2245986, 2209665, 2246050, 2246113, 2246146, 2246210, 2246274, 2246337, 2246369]), new Uint32Array([2230754, 2230818, 2230882, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2184129, 6291456, 2184161, 6291456, 2184193, 6291456, 6291456, 6291456, 6291456, 6291456, 2146818, 2183361, 6291456, 6291456, 2142978, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2135170, 2097506, 2130691, 2130787, 2130883, 2163970, 2164034, 2164098, 2164162, 2164226, 2164290, 2164354, 2164418, 2164482, 2164546, 2133122]), new Uint32Array([2108515, 2108611, 2100740, 2108707, 2108803, 2108899, 2108995, 2109091, 2109187, 2109283, 2109379, 2109475, 2109571, 2109667, 2109763, 2100738]), new Uint32Array([2102788, 2102916, 2103044, 2120515, 2103172, 2120611, 2120707, 2098373, 2103300, 2120803, 2120899, 2120995, 2103428, 2103556, 2121091, 2121187]), new Uint32Array([2158082, 2158146, 0, 2158210, 2158274, 0, 2158338, 2158402, 2158466, 2129922, 2158530, 2158594, 2158658, 2158722, 2158786, 2158850]), new Uint32Array([10499619, 10499715, 10499811, 10499907, 10500003, 10500099, 10500195, 10500291, 10500387, 10500483, 10500579, 10500675, 10500771, 10500867, 10500963, 10501059]), new Uint32Array([2239585, 2239618, 2239681, 2239713, 0, 2191969, 2239745, 2239777, 2192033, 2239809, 2239841, 2239874, 2239937, 2239970, 2240033, 2240065]), new Uint32Array([2252705, 2252738, 2252801, 2252833, 2252865, 2252897, 2252930, 2252994, 2253057, 2253089, 2253121, 2253154, 2253217, 2253250, 2219361, 2219361]), new Uint32Array([2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10538050, 10538114, 10538178, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2226402, 2226466, 2226530, 2226594, 2226658, 2226722, 2226786, 2226850, 2226914, 2226978, 2227042, 2227106, 2227170, 2227234, 2227298, 2227362]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 2144066, 2144130, 2144194, 2144258, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2124674, 2124770, 2123875, 2123971, 2124067, 2124163, 2124259, 2124355, 2124451, 2124547, 2124643, 2124739, 2124835, 2124931, 2125027, 2125123]), new Uint32Array([2168065, 6291456, 2168097, 6291456, 2168129, 6291456, 2168161, 6291456, 2168193, 6291456, 2168225, 6291456, 2168257, 6291456, 2168289, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 2100610, 2100611, 6291456, 2107842, 2107843, 6291456, 6291456, 6291456, 6291456, 10537922, 6291456, 10537986, 6291456]), new Uint32Array([2174849, 2174881, 2174913, 2174945, 2174977, 2175009, 2175041, 2175073, 2175105, 2175137, 2175169, 2175201, 2175233, 2175265, 2175297, 2175329]), new Uint32Array([2154562, 2154626, 2154690, 2154754, 2141858, 2154818, 2154882, 2127298, 2154946, 2127298, 2155010, 2155074, 2155138, 2155202, 2155266, 2155202]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0]), new Uint32Array([2200641, 2150786, 2150850, 2150914, 2150978, 2151042, 2106562, 2151106, 2150562, 2151170, 2151234, 2151298, 2151362, 2151426, 2151490, 2151554]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2220289, 2220289, 2220321, 2220321, 2220321, 2220321, 2220353, 2220353, 2220353, 2220353, 2220385, 2220385, 2220385, 2220385, 2220417, 2220417]), new Uint32Array([2155330, 2155394, 0, 2155458, 2155522, 2155586, 2105732, 0, 2155650, 2155714, 2155778, 2125314, 2155842, 2155906, 2126274, 2155970]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0]), new Uint32Array([2097729, 2106017, 2106017, 2106017, 2106017, 2131297, 2131297, 2131297, 2131297, 2106081, 2106081, 2162049, 2162049, 2105953, 2105953, 2162337]), new Uint32Array([2097185, 2097697, 2097697, 2097697, 2097697, 2135777, 2135777, 2135777, 2135777, 2097377, 2097377, 2097377, 2097377, 2097601, 2097601, 2097217]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672]), new Uint32Array([2139331, 2139427, 2139523, 2139043, 2133571, 2132611, 2139619, 2139715, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2174113, 2174145, 2100897, 2098177, 2108289, 2100865, 2173601, 2173633, 2173985, 2174113, 2174145, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 18923778, 23068672, 23068672, 23068672, 23068672, 18923842, 23068672, 23068672, 23068672, 23068672, 18923906, 23068672, 23068672, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 0, 2132705, 2130977, 2160065, 2131297, 0, 2133089, 0, 2133857, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2177537, 6291456, 2177569, 6291456, 2177601, 6291456, 2177633, 6291456, 2177665, 6291456, 2177697, 6291456, 2177729, 6291456, 2177761, 6291456]), new Uint32Array([2212481, 2212513, 2212545, 2212577, 2197121, 2212609, 2212641, 2212673, 2212705, 2212737, 2212769, 2212801, 2212833, 2212865, 2212897, 2212929]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2098241, 2108353, 2170209, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 6291456, 2108193, 2172417, 2112481, 2098177]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456])];
var blockIdxes = new Uint16Array([616, 616, 565, 147, 161, 411, 330, 2, 131, 131, 328, 454, 241, 408, 86, 86, 696, 113, 285, 350, 325, 301, 473, 214, 639, 232, 447, 64, 369, 598, 124, 672, 567, 223, 621, 154, 107, 86, 86, 86, 86, 86, 86, 505, 86, 68, 634, 86, 218, 218, 218, 218, 486, 218, 218, 513, 188, 608, 216, 86, 217, 463, 668, 85, 700, 360, 184, 86, 86, 86, 647, 402, 153, 10, 346, 718, 662, 260, 145, 298, 117, 1, 443, 342, 138, 54, 563, 86, 240, 572, 218, 70, 387, 86, 118, 460, 641, 602, 86, 86, 306, 218, 86, 692, 86, 86, 86, 86, 86, 162, 707, 86, 458, 26, 86, 218, 638, 86, 86, 86, 86, 86, 65, 449, 86, 86, 306, 183, 86, 58, 391, 667, 86, 157, 131, 131, 131, 131, 86, 433, 131, 406, 31, 218, 247, 86, 86, 693, 218, 581, 351, 86, 438, 295, 69, 462, 45, 126, 173, 650, 14, 295, 69, 97, 168, 187, 641, 78, 523, 390, 69, 108, 287, 664, 173, 219, 83, 295, 69, 108, 431, 426, 173, 694, 412, 115, 628, 52, 257, 398, 641, 118, 501, 121, 69, 579, 151, 423, 173, 620, 464, 121, 69, 382, 151, 476, 173, 27, 53, 121, 86, 594, 578, 226, 173, 86, 632, 130, 86, 96, 228, 268, 641, 622, 563, 86, 86, 21, 148, 650, 131, 131, 321, 43, 144, 343, 381, 531, 131, 131, 178, 20, 86, 399, 156, 375, 164, 541, 30, 60, 715, 198, 92, 118, 131, 131, 86, 86, 306, 407, 86, 280, 457, 196, 488, 358, 131, 131, 244, 86, 86, 143, 86, 86, 86, 86, 86, 667, 563, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 336, 363, 86, 86, 336, 86, 86, 380, 678, 67, 86, 86, 86, 678, 86, 86, 86, 512, 86, 307, 86, 708, 86, 86, 86, 86, 86, 528, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 563, 307, 86, 86, 86, 86, 86, 104, 450, 337, 86, 720, 86, 32, 450, 397, 86, 86, 86, 587, 218, 558, 708, 708, 293, 708, 86, 86, 86, 86, 86, 694, 205, 86, 8, 86, 86, 86, 86, 549, 86, 667, 697, 697, 679, 86, 458, 460, 86, 86, 650, 86, 708, 543, 86, 86, 86, 245, 86, 86, 86, 140, 218, 127, 708, 708, 458, 197, 131, 131, 131, 131, 500, 86, 86, 483, 251, 86, 306, 510, 515, 86, 722, 86, 86, 86, 65, 201, 86, 86, 483, 580, 470, 86, 86, 86, 368, 131, 131, 131, 694, 114, 110, 555, 86, 86, 123, 721, 163, 142, 713, 418, 86, 317, 675, 209, 218, 218, 218, 371, 545, 592, 629, 490, 603, 199, 46, 320, 525, 680, 310, 279, 388, 111, 42, 252, 593, 607, 235, 617, 410, 377, 50, 548, 135, 356, 17, 520, 189, 116, 392, 600, 349, 332, 482, 699, 690, 535, 119, 106, 451, 71, 152, 667, 131, 218, 218, 265, 671, 637, 492, 504, 533, 683, 269, 269, 658, 86, 86, 86, 86, 86, 86, 86, 86, 86, 491, 619, 86, 86, 6, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 229, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 667, 86, 86, 171, 131, 118, 131, 656, 206, 234, 571, 89, 334, 670, 246, 311, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 534, 86, 86, 86, 86, 86, 86, 82, 86, 86, 86, 86, 86, 430, 86, 86, 86, 86, 86, 86, 86, 86, 86, 599, 86, 324, 86, 470, 69, 640, 264, 131, 626, 101, 174, 86, 86, 667, 233, 105, 73, 374, 394, 221, 204, 84, 28, 326, 86, 86, 471, 86, 86, 86, 109, 573, 86, 171, 200, 200, 200, 200, 218, 218, 86, 86, 86, 86, 460, 131, 131, 131, 86, 506, 86, 86, 86, 86, 86, 220, 404, 34, 614, 47, 442, 305, 25, 612, 338, 601, 648, 7, 344, 255, 131, 131, 51, 86, 312, 507, 563, 86, 86, 86, 86, 588, 86, 86, 86, 86, 86, 530, 511, 86, 458, 3, 435, 384, 556, 522, 230, 527, 86, 118, 86, 86, 717, 86, 137, 273, 79, 181, 484, 23, 93, 112, 655, 249, 417, 703, 370, 87, 98, 313, 684, 585, 155, 465, 596, 481, 695, 18, 416, 428, 61, 701, 706, 282, 643, 495, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 307, 86, 86, 86, 171, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 650, 131, 422, 542, 420, 263, 24, 172, 86, 86, 86, 86, 86, 566, 86, 86, 132, 540, 395, 353, 494, 519, 19, 485, 284, 472, 131, 131, 131, 16, 714, 86, 211, 708, 86, 86, 86, 694, 698, 86, 86, 483, 704, 708, 218, 272, 86, 86, 120, 86, 159, 478, 86, 307, 247, 86, 86, 663, 597, 459, 627, 667, 86, 86, 277, 455, 39, 302, 86, 250, 86, 86, 86, 271, 99, 452, 306, 281, 329, 400, 200, 86, 86, 362, 549, 352, 646, 461, 323, 586, 86, 86, 4, 708, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 717, 86, 518, 86, 86, 650, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 125, 554, 480, 300, 613, 72, 333, 288, 561, 544, 604, 48, 719, 91, 169, 176, 590, 224, 76, 191, 29, 559, 560, 231, 537, 166, 477, 538, 256, 437, 131, 131, 469, 167, 40, 0, 685, 266, 441, 705, 239, 642, 475, 568, 640, 610, 299, 673, 517, 318, 385, 22, 202, 180, 179, 359, 424, 215, 90, 66, 521, 653, 467, 682, 453, 409, 479, 88, 131, 661, 35, 303, 15, 262, 666, 630, 712, 131, 131, 618, 659, 175, 218, 195, 347, 193, 227, 261, 150, 165, 709, 546, 294, 569, 710, 270, 413, 376, 524, 55, 242, 38, 419, 529, 170, 657, 3, 304, 122, 379, 278, 131, 651, 86, 67, 576, 458, 458, 131, 131, 86, 86, 86, 86, 86, 86, 86, 118, 309, 86, 86, 547, 86, 86, 86, 86, 667, 650, 664, 131, 131, 86, 86, 56, 131, 131, 131, 131, 131, 131, 131, 131, 86, 307, 86, 86, 86, 664, 238, 650, 86, 86, 717, 86, 118, 86, 86, 315, 86, 59, 86, 86, 574, 549, 131, 131, 340, 57, 436, 86, 86, 86, 86, 86, 86, 458, 708, 499, 691, 62, 86, 650, 86, 86, 694, 86, 86, 86, 319, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 86, 549, 694, 131, 131, 131, 131, 131, 131, 131, 131, 131, 77, 86, 86, 139, 86, 502, 86, 86, 86, 667, 595, 131, 131, 131, 86, 12, 86, 13, 86, 609, 131, 131, 131, 131, 86, 86, 86, 625, 86, 669, 86, 86, 182, 129, 86, 5, 694, 104, 86, 86, 86, 86, 131, 131, 86, 86, 386, 171, 86, 86, 86, 345, 86, 324, 86, 589, 86, 213, 36, 131, 131, 131, 131, 131, 86, 86, 86, 86, 104, 131, 131, 131, 141, 290, 80, 677, 86, 86, 86, 267, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 667, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 515, 86, 86, 33, 136, 669, 86, 711, 515, 86, 86, 550, 640, 86, 104, 708, 515, 86, 159, 372, 717, 86, 86, 444, 515, 86, 86, 663, 37, 86, 563, 460, 86, 390, 624, 702, 131, 131, 131, 131, 389, 59, 708, 86, 86, 341, 208, 708, 635, 295, 69, 108, 431, 508, 100, 190, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 649, 516, 660, 131, 131, 86, 86, 86, 218, 631, 708, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 341, 575, 238, 514, 131, 131, 86, 86, 86, 218, 291, 708, 307, 131, 86, 86, 306, 367, 708, 131, 131, 131, 86, 378, 697, 86, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 615, 253, 86, 86, 86, 292, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 104, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 69, 86, 341, 553, 549, 86, 307, 86, 86, 645, 275, 455, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 708, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 667, 460, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 717, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 667, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 104, 86, 667, 459, 131, 131, 131, 131, 131, 131, 86, 458, 225, 86, 86, 86, 516, 549, 11, 390, 405, 86, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 460, 44, 218, 197, 711, 515, 131, 131, 131, 131, 664, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 307, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 308, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 118, 307, 104, 286, 591, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 86, 86, 681, 86, 86, 75, 185, 314, 582, 86, 358, 496, 474, 86, 104, 131, 86, 86, 86, 86, 146, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 171, 86, 640, 131, 131, 131, 131, 131, 131, 131, 131, 246, 503, 689, 339, 674, 81, 258, 415, 439, 128, 562, 366, 414, 246, 503, 689, 583, 222, 557, 316, 636, 665, 186, 355, 95, 670, 246, 503, 689, 339, 674, 557, 258, 415, 439, 186, 355, 95, 670, 246, 503, 689, 446, 644, 536, 652, 331, 532, 335, 440, 274, 421, 297, 570, 74, 425, 364, 425, 606, 552, 403, 509, 134, 365, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 218, 218, 218, 498, 218, 218, 577, 627, 551, 497, 572, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 553, 354, 236, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 296, 455, 131, 131, 456, 243, 103, 86, 41, 459, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 9, 276, 158, 716, 393, 564, 383, 489, 401, 654, 210, 654, 131, 131, 131, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 650, 86, 86, 86, 86, 86, 86, 717, 667, 563, 563, 563, 86, 549, 102, 686, 133, 246, 605, 86, 448, 86, 86, 207, 307, 131, 131, 131, 641, 86, 177, 611, 445, 373, 194, 584, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 308, 307, 171, 86, 86, 86, 86, 86, 86, 86, 717, 86, 86, 86, 86, 86, 460, 131, 131, 650, 86, 86, 86, 694, 708, 86, 86, 694, 86, 458, 131, 131, 131, 131, 131, 131, 667, 694, 289, 650, 667, 131, 131, 86, 640, 131, 131, 664, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 460, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 458, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 466, 203, 149, 429, 94, 432, 160, 687, 539, 63, 237, 283, 192, 248, 348, 259, 427, 526, 396, 676, 254, 468, 487, 212, 327, 623, 49, 633, 322, 493, 434, 688, 357, 361, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131]);
var mappingStr = "صلى الله عليه وسلمجل جلالهキロメートルrads2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン110viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalms2ckgاكبرمحمدصلعمرسولریال141234 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀a/ca/sc/oc/utelfax1719132315253545165618385878xii03∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmvmam10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯sppv ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾιιιιιιιιιιιιιιιιιιιιιιιιιαιάιι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞑꞓꞗꞛꞝꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷᎣᎤᎦᎧᎨᎯᎰᎱᎲᎴᎵᎶᎸᎹᎺᎾᎿᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏐᏑᏖᏗᏘᏛᏜᏝᏠᏡᏣᏤᏥᏨᏩᏪᏫᏬᏭᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀";
function mapChar(codePoint) {
if (codePoint >= 0x30000) {
// High planes are special cased.
if (codePoint >= 0xE0100 && codePoint <= 0xE01EF) return 18874368;
return 0;
}
return blocks[blockIdxes[codePoint >> 4]][codePoint & 15];
}
return {
mapStr: mappingStr,
mapChar: mapChar
};
});
},{}],263:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* istanbul ignore next */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['punycode', './idna-map'], function (punycode, idna_map) {
return factory(punycode, idna_map);
});
} else if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {
module.exports = factory(require('punycode'), require('./idna-map'));
} else {
root.uts46 = factory(root.punycode, root.idna_map);
}
})(undefined, function (punycode, idna_map) {
function mapLabel(label, useStd3ASCII, transitional) {
var mapped = [];
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = label[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var ch = _step.value;
var cp = ch.codePointAt(0);
var composite = idna_map.mapChar(cp);
var flags = composite >> 23;
var kind = composite >> 21 & 3;
var index = composite >> 5 & 0xffff;
var length = composite & 0x1f;
var value = idna_map.mapStr.substr(index, length);
if (kind == 0 || useStd3ASCII && flags & 1) {
throw new Error("Illegal char " + ch);
} else if (kind == 1) {
mapped.push(value);
} else if (kind == 2) {
mapped.push(transitional ? value : ch);
} else if (kind == 3) {
mapped.push(ch);
}
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
var newLabel = mapped.join("").normalize("NFC");
return newLabel;
}
function process(domain, transitional, useStd3ASCII) {
if (useStd3ASCII === undefined) useStd3ASCII = false;
var mappedIDNA = mapLabel(domain, useStd3ASCII, transitional);
// Step 3. Break
var labels = mappedIDNA.split(".");
// Step 4. Convert/Validate
labels = labels.map(function (label) {
if (label.startsWith("xn--")) {
label = punycode.decode(label.substring(4));
validateLabel(label, useStd3ASCII, false);
} else {
validateLabel(label, useStd3ASCII, transitional);
}
return label;
});
return labels.join(".");
}
function validateLabel(label, useStd3ASCII, transitional) {
// 2. The label must not contain a U+002D HYPHEN-MINUS character in both the
// third position and fourth positions.
if (label[2] == '-' && label[3] == '-') throw new Error("Failed to validate " + label);
// 3. The label must neither begin nor end with a U+002D HYPHEN-MINUS
// character.
if (label.startsWith('-') || label.endsWith('-')) throw new Error("Failed to validate " + label);
// 4. The label must not contain a U+002E ( . ) FULL STOP.
if (label.includes('.')) throw new Error("Failed to validate " + label);
if (mapLabel(label, useStd3ASCII, transitional) != label) throw new Error("Failed to validate " + label);
// 5. The label must not begin with a combining mark, that is:
// General_Category=Mark.
var ch = label.codePointAt(0);
if (idna_map.mapChar(ch) & 0x2 << 23) throw new Error("Label contains illegal character: " + ch);
}
function toAscii(domain, options) {
if (options === undefined) options = {};
var transitional = 'transitional' in options ? options.transitional : true;
var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false;
var verifyDnsLength = 'verifyDnsLength' in options ? options.verifyDnsLength : false;
var labels = process(domain, transitional, useStd3ASCII).split('.');
var asciiLabels = labels.map(punycode.toASCII);
var asciiString = asciiLabels.join('.');
if (verifyDnsLength) {
if (asciiString.length < 1 || asciiString.length > 253) {
throw new Error("DNS name has wrong length: " + asciiString);
}
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = asciiLabels[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var label = _step2.value;
if (label.length < 1 || label.length > 63) throw new Error("DNS label has wrong length: " + label);
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2.return) {
_iterator2.return();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
}
return asciiString;
}
function toUnicode(domain, options) {
if (options === undefined) options = {};
var useStd3ASCII = 'useStd3ASCII' in options ? options.useStd3ASCII : false;
return process(domain, false, useStd3ASCII);
}
return {
toUnicode: toUnicode,
toAscii: toAscii
};
});
},{"./idna-map":262,"punycode":301}],264:[function(require,module,exports){
"use strict";
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m;
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var nBits = -7;
var i = isLE ? nBytes - 1 : 0;
var d = isLE ? -1 : 1;
var s = buffer[offset + i];
i += d;
e = s & (1 << -nBits) - 1;
s >>= -nBits;
nBits += eLen;
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
m = e & (1 << -nBits) - 1;
e >>= -nBits;
nBits += mLen;
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
if (e === 0) {
e = 1 - eBias;
} else if (e === eMax) {
return m ? NaN : (s ? -1 : 1) * Infinity;
} else {
m = m + Math.pow(2, mLen);
e = e - eBias;
}
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
};
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
var e, m, c;
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
var i = isLE ? 0 : nBytes - 1;
var d = isLE ? 1 : -1;
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
value = Math.abs(value);
if (isNaN(value) || value === Infinity) {
m = isNaN(value) ? 1 : 0;
e = eMax;
} else {
e = Math.floor(Math.log(value) / Math.LN2);
if (value * (c = Math.pow(2, -e)) < 1) {
e--;
c *= 2;
}
if (e + eBias >= 1) {
value += rt / c;
} else {
value += rt * Math.pow(2, 1 - eBias);
}
if (value * c >= 2) {
e++;
c /= 2;
}
if (e + eBias >= eMax) {
m = 0;
e = eMax;
} else if (e + eBias >= 1) {
m = (value * c - 1) * Math.pow(2, mLen);
e = e + eBias;
} else {
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
e = 0;
}
}
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
e = e << mLen | m;
eLen += mLen;
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
buffer[offset + i - d] |= s * 128;
};
},{}],265:[function(require,module,exports){
"use strict";
var indexOf = [].indexOf;
module.exports = function (arr, obj) {
if (indexOf) return arr.indexOf(obj);
for (var i = 0; i < arr.length; ++i) {
if (arr[i] === obj) return i;
}
return -1;
};
},{}],266:[function(require,module,exports){
'use strict';
if (typeof Object.create === 'function') {
// implementation from standard node.js 'util' module
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor;
ctor.prototype = Object.create(superCtor.prototype, {
constructor: {
value: ctor,
enumerable: false,
writable: true,
configurable: true
}
});
};
} else {
// old school shim for old browsers
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor;
var TempCtor = function TempCtor() {};
TempCtor.prototype = superCtor.prototype;
ctor.prototype = new TempCtor();
ctor.prototype.constructor = ctor;
};
}
},{}],267:[function(require,module,exports){
'use strict';
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
module.exports = function (obj) {
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer);
};
function isBuffer(obj) {
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
}
// For Node v0.10 support. Remove this eventually.
function isSlowBuffer(obj) {
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0));
}
},{}],268:[function(require,module,exports){
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**
* Returns a `Boolean` on whether or not the a `String` starts with '0x'
* @param {String} str the string input value
* @return {Boolean} a boolean if it is or is not hex prefixed
* @throws if the str input is not a string
*/
module.exports = function isHexPrefixed(str) {
if (typeof str !== 'string') {
throw new Error("[is-hex-prefixed] value must be type 'string', is currently type " + (typeof str === "undefined" ? "undefined" : _typeof(str)) + ", while checking isHexPrefixed.");
}
return str.slice(0, 2) === '0x';
};
},{}],269:[function(require,module,exports){
'use strict';
var toString = {}.toString;
module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
},{}],270:[function(require,module,exports){
/*
A JavaScript implementation of the SHA family of hashes, as
defined in FIPS PUB 180-2 as well as the corresponding HMAC implementation
as defined in FIPS PUB 198a
Copyright Brian Turek 2008-2015
Distributed under the BSD License
See http://caligatio.github.com/jsSHA/ for more information
Several functions taken from Paul Johnston
*/
'use strict';
(function (U) {
function z(a, b, c) {
var e = 0,
f = [0],
k = "",
h = null,
k = c || "UTF8";if ("UTF8" !== k && "UTF16BE" !== k && "UTF16LE" !== k) throw "encoding must be UTF8, UTF16BE, or UTF16LE";if ("HEX" === b) {
if (0 !== a.length % 2) throw "srcString of HEX type must be in byte increments";h = D(a);e = h.binLen;f = h.value;
} else if ("TEXT" === b || "ASCII" === b) h = L(a, k), e = h.binLen, f = h.value;else if ("B64" === b) h = M(a), e = h.binLen, f = h.value;else if ("BYTES" === b) h = N(a), e = h.binLen, f = h.value;else throw "inputFormat must be HEX, TEXT, ASCII, B64, or BYTES";
this.getHash = function (a, b, c, k) {
var h = null,
d = f.slice(),
n = e,
m;3 === arguments.length ? "number" !== typeof c && (k = c, c = 1) : 2 === arguments.length && (c = 1);if (c !== parseInt(c, 10) || 1 > c) throw "numRounds must a integer >= 1";switch (b) {case "HEX":
h = O;break;case "B64":
h = P;break;case "BYTES":
h = Q;break;default:
throw "format must be HEX, B64, or BYTES";}if ("SHA-1" === a) for (m = 0; m < c; m += 1) {
d = A(d, n), n = 160;
} else if ("SHA-224" === a) for (m = 0; m < c; m += 1) {
d = w(d, n, a), n = 224;
} else if ("SHA-256" === a) for (m = 0; m < c; m += 1) {
d = w(d, n, a), n = 256;
} else if ("SHA-384" === a) for (m = 0; m < c; m += 1) {
d = w(d, n, a), n = 384;
} else if ("SHA-512" === a) for (m = 0; m < c; m += 1) {
d = w(d, n, a), n = 512;
} else throw "Chosen SHA variant is not supported";return h(d, R(k));
};this.getHMAC = function (a, b, c, h, q) {
var d,
n,
m,
t,
r = [],
u = [];d = null;switch (h) {case "HEX":
h = O;break;case "B64":
h = P;break;case "BYTES":
h = Q;break;default:
throw "outputFormat must be HEX, B64, or BYTES";}if ("SHA-1" === c) n = 64, t = 160;else if ("SHA-224" === c) n = 64, t = 224;else if ("SHA-256" === c) n = 64, t = 256;else if ("SHA-384" === c) n = 128, t = 384;else if ("SHA-512" === c) n = 128, t = 512;else throw "Chosen SHA variant is not supported";if ("HEX" === b) d = D(a), m = d.binLen, d = d.value;else if ("TEXT" === b || "ASCII" === b) d = L(a, k), m = d.binLen, d = d.value;else if ("B64" === b) d = M(a), m = d.binLen, d = d.value;else if ("BYTES" === b) d = N(a), m = d.binLen, d = d.value;else throw "inputFormat must be HEX, TEXT, ASCII, B64, or BYTES";a = 8 * n;b = n / 4 - 1;if (n < m / 8) {
for (d = "SHA-1" === c ? A(d, m) : w(d, m, c); d.length <= b;) {
d.push(0);
}d[b] &= 4294967040;
} else if (n > m / 8) {
for (; d.length <= b;) {
d.push(0);
}d[b] &= 4294967040;
}for (n = 0; n <= b; n += 1) {
r[n] = d[n] ^ 909522486, u[n] = d[n] ^ 1549556828;
}c = "SHA-1" === c ? A(u.concat(A(r.concat(f), a + e)), a + t) : w(u.concat(w(r.concat(f), a + e, c)), a + t, c);return h(c, R(q));
};
}function q(a, b) {
this.a = a;this.b = b;
}function L(a, b) {
var c = [],
e,
f = [],
k = 0,
h,
p,
q;if ("UTF8" === b) for (h = 0; h < a.length; h += 1) {
for (e = a.charCodeAt(h), f = [], 128 > e ? f.push(e) : 2048 > e ? (f.push(192 | e >>> 6), f.push(128 | e & 63)) : 55296 > e || 57344 <= e ? f.push(224 | e >>> 12, 128 | e >>> 6 & 63, 128 | e & 63) : (h += 1, e = 65536 + ((e & 1023) << 10 | a.charCodeAt(h) & 1023), f.push(240 | e >>> 18, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | e & 63)), p = 0; p < f.length; p += 1) {
for (q = k >>> 2; c.length <= q;) {
c.push(0);
}c[q] |= f[p] << 24 - k % 4 * 8;k += 1;
}
} else if ("UTF16BE" === b || "UTF16LE" === b) for (h = 0; h < a.length; h += 1) {
e = a.charCodeAt(h);"UTF16LE" === b && (p = e & 255, e = p << 8 | e >> 8);for (q = k >>> 2; c.length <= q;) {
c.push(0);
}c[q] |= e << 16 - k % 4 * 8;k += 2;
}return { value: c, binLen: 8 * k };
}function D(a) {
var b = [],
c = a.length,
e,
f,
k;if (0 !== c % 2) throw "String of HEX type must be in byte increments";for (e = 0; e < c; e += 2) {
f = parseInt(a.substr(e, 2), 16);if (isNaN(f)) throw "String of HEX type contains invalid characters";
for (k = e >>> 3; b.length <= k;) {
b.push(0);
}b[e >>> 3] |= f << 24 - e % 8 * 4;
}return { value: b, binLen: 4 * c };
}function N(a) {
var b = [],
c,
e,
f;for (e = 0; e < a.length; e += 1) {
c = a.charCodeAt(e), f = e >>> 2, b.length <= f && b.push(0), b[f] |= c << 24 - e % 4 * 8;
}return { value: b, binLen: 8 * a.length };
}function M(a) {
var b = [],
c = 0,
e,
f,
k,
h,
p;if (-1 === a.search(/^[a-zA-Z0-9=+\/]+$/)) throw "Invalid character in base-64 string";f = a.indexOf("=");a = a.replace(/\=/g, "");if (-1 !== f && f < a.length) throw "Invalid '=' found in base-64 string";for (f = 0; f < a.length; f += 4) {
p = a.substr(f, 4);
for (k = h = 0; k < p.length; k += 1) {
e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(p[k]), h |= e << 18 - 6 * k;
}for (k = 0; k < p.length - 1; k += 1) {
for (e = c >>> 2; b.length <= e;) {
b.push(0);
}b[e] |= (h >>> 16 - 8 * k & 255) << 24 - c % 4 * 8;c += 1;
}
}return { value: b, binLen: 8 * c };
}function O(a, b) {
var c = "",
e = 4 * a.length,
f,
k;for (f = 0; f < e; f += 1) {
k = a[f >>> 2] >>> 8 * (3 - f % 4), c += "0123456789abcdef".charAt(k >>> 4 & 15) + "0123456789abcdef".charAt(k & 15);
}return b.outputUpper ? c.toUpperCase() : c;
}function P(a, b) {
var c = "",
e = 4 * a.length,
f,
k,
h;for (f = 0; f < e; f += 3) {
for (h = f + 1 >>> 2, k = a.length <= h ? 0 : a[h], h = f + 2 >>> 2, h = a.length <= h ? 0 : a[h], h = (a[f >>> 2] >>> 8 * (3 - f % 4) & 255) << 16 | (k >>> 8 * (3 - (f + 1) % 4) & 255) << 8 | h >>> 8 * (3 - (f + 2) % 4) & 255, k = 0; 4 > k; k += 1) {
c = 8 * f + 6 * k <= 32 * a.length ? c + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h >>> 6 * (3 - k) & 63) : c + b.b64Pad;
}
}return c;
}function Q(a) {
var b = "",
c = 4 * a.length,
e,
f;for (e = 0; e < c; e += 1) {
f = a[e >>> 2] >>> 8 * (3 - e % 4) & 255, b += String.fromCharCode(f);
}return b;
}function R(a) {
var b = { outputUpper: !1, b64Pad: "=" };try {
a.hasOwnProperty("outputUpper") && (b.outputUpper = a.outputUpper), a.hasOwnProperty("b64Pad") && (b.b64Pad = a.b64Pad);
} catch (c) {}if ("boolean" !== typeof b.outputUpper) throw "Invalid outputUpper formatting option";if ("string" !== typeof b.b64Pad) throw "Invalid b64Pad formatting option";return b;
}function x(a, b) {
return a << b | a >>> 32 - b;
}function r(a, b) {
return a >>> b | a << 32 - b;
}function u(a, b) {
var c = null,
c = new q(a.a, a.b);return c = 32 >= b ? new q(c.a >>> b | c.b << 32 - b & 4294967295, c.b >>> b | c.a << 32 - b & 4294967295) : new q(c.b >>> b - 32 | c.a << 64 - b & 4294967295, c.a >>> b - 32 | c.b << 64 - b & 4294967295);
}function S(a, b) {
var c = null;return c = 32 >= b ? new q(a.a >>> b, a.b >>> b | a.a << 32 - b & 4294967295) : new q(0, a.a >>> b - 32);
}function V(a, b, c) {
return a & b ^ ~a & c;
}function W(a, b, c) {
return new q(a.a & b.a ^ ~a.a & c.a, a.b & b.b ^ ~a.b & c.b);
}function T(a, b, c) {
return a & b ^ a & c ^ b & c;
}function X(a, b, c) {
return new q(a.a & b.a ^ a.a & c.a ^ b.a & c.a, a.b & b.b ^ a.b & c.b ^ b.b & c.b);
}function Y(a) {
return r(a, 2) ^ r(a, 13) ^ r(a, 22);
}function Z(a) {
var b = u(a, 28),
c = u(a, 34);a = u(a, 39);return new q(b.a ^ c.a ^ a.a, b.b ^ c.b ^ a.b);
}function $(a) {
return r(a, 6) ^ r(a, 11) ^ r(a, 25);
}function aa(a) {
var b = u(a, 14),
c = u(a, 18);a = u(a, 41);return new q(b.a ^ c.a ^ a.a, b.b ^ c.b ^ a.b);
}function ba(a) {
return r(a, 7) ^ r(a, 18) ^ a >>> 3;
}function ca(a) {
var b = u(a, 1),
c = u(a, 8);a = S(a, 7);return new q(b.a ^ c.a ^ a.a, b.b ^ c.b ^ a.b);
}function da(a) {
return r(a, 17) ^ r(a, 19) ^ a >>> 10;
}function ea(a) {
var b = u(a, 19),
c = u(a, 61);a = S(a, 6);return new q(b.a ^ c.a ^ a.a, b.b ^ c.b ^ a.b);
}function C(a, b) {
var c = (a & 65535) + (b & 65535);return ((a >>> 16) + (b >>> 16) + (c >>> 16) & 65535) << 16 | c & 65535;
}function fa(a, b, c, e) {
var f = (a & 65535) + (b & 65535) + (c & 65535) + (e & 65535);return ((a >>> 16) + (b >>> 16) + (c >>> 16) + (e >>> 16) + (f >>> 16) & 65535) << 16 | f & 65535;
}function E(a, b, c, e, f) {
var k = (a & 65535) + (b & 65535) + (c & 65535) + (e & 65535) + (f & 65535);return ((a >>> 16) + (b >>> 16) + (c >>> 16) + (e >>> 16) + (f >>> 16) + (k >>> 16) & 65535) << 16 | k & 65535;
}function ga(a, b) {
var c, e, f;c = (a.b & 65535) + (b.b & 65535);e = (a.b >>> 16) + (b.b >>> 16) + (c >>> 16);f = (e & 65535) << 16 | c & 65535;c = (a.a & 65535) + (b.a & 65535) + (e >>> 16);e = (a.a >>> 16) + (b.a >>> 16) + (c >>> 16);return new q((e & 65535) << 16 | c & 65535, f);
}function ha(a, b, c, e) {
var f, k, h;f = (a.b & 65535) + (b.b & 65535) + (c.b & 65535) + (e.b & 65535);k = (a.b >>> 16) + (b.b >>> 16) + (c.b >>> 16) + (e.b >>> 16) + (f >>> 16);h = (k & 65535) << 16 | f & 65535;f = (a.a & 65535) + (b.a & 65535) + (c.a & 65535) + (e.a & 65535) + (k >>> 16);k = (a.a >>> 16) + (b.a >>> 16) + (c.a >>> 16) + (e.a >>> 16) + (f >>> 16);return new q((k & 65535) << 16 | f & 65535, h);
}function ia(a, b, c, e, f) {
var k, h, p;k = (a.b & 65535) + (b.b & 65535) + (c.b & 65535) + (e.b & 65535) + (f.b & 65535);h = (a.b >>> 16) + (b.b >>> 16) + (c.b >>> 16) + (e.b >>> 16) + (f.b >>> 16) + (k >>> 16);p = (h & 65535) << 16 | k & 65535;k = (a.a & 65535) + (b.a & 65535) + (c.a & 65535) + (e.a & 65535) + (f.a & 65535) + (h >>> 16);h = (a.a >>> 16) + (b.a >>> 16) + (c.a >>> 16) + (e.a >>> 16) + (f.a >>> 16) + (k >>> 16);return new q((h & 65535) << 16 | k & 65535, p);
}function A(a, b) {
var c = [],
e,
f,
k,
h,
p,
q,
r,
s,
u,
d = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];for (e = (b + 65 >>> 9 << 4) + 15; a.length <= e;) {
a.push(0);
}a[b >>> 5] |= 128 << 24 - b % 32;a[e] = b;u = a.length;for (r = 0; r < u; r += 16) {
e = d[0];f = d[1];k = d[2];h = d[3];p = d[4];for (s = 0; 80 > s; s += 1) {
c[s] = 16 > s ? a[s + r] : x(c[s - 3] ^ c[s - 8] ^ c[s - 14] ^ c[s - 16], 1), q = 20 > s ? E(x(e, 5), f & k ^ ~f & h, p, 1518500249, c[s]) : 40 > s ? E(x(e, 5), f ^ k ^ h, p, 1859775393, c[s]) : 60 > s ? E(x(e, 5), T(f, k, h), p, 2400959708, c[s]) : E(x(e, 5), f ^ k ^ h, p, 3395469782, c[s]), p = h, h = k, k = x(f, 30), f = e, e = q;
}d[0] = C(e, d[0]);d[1] = C(f, d[1]);d[2] = C(k, d[2]);d[3] = C(h, d[3]);d[4] = C(p, d[4]);
}return d;
}function w(a, b, c) {
var e,
f,
k,
h,
p,
r,
u,
s,
y,
d,
n,
m,
t,
w,
x,
v,
z,
A,
F,
G,
H,
I,
J,
K,
g,
B = [],
D,
l = [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];d = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428];f = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225];if ("SHA-224" === c || "SHA-256" === c) n = 64, e = (b + 65 >>> 9 << 4) + 15, w = 16, x = 1, g = Number, v = C, z = fa, A = E, F = ba, G = da, H = Y, I = $, K = T, J = V, d = "SHA-224" === c ? d : f;else if ("SHA-384" === c || "SHA-512" === c) n = 80, e = (b + 128 >>> 10 << 5) + 31, w = 32, x = 2, g = q, v = ga, z = ha, A = ia, F = ca, G = ea, H = Z, I = aa, K = X, J = W, l = [new g(l[0], 3609767458), new g(l[1], 602891725), new g(l[2], 3964484399), new g(l[3], 2173295548), new g(l[4], 4081628472), new g(l[5], 3053834265), new g(l[6], 2937671579), new g(l[7], 3664609560), new g(l[8], 2734883394), new g(l[9], 1164996542), new g(l[10], 1323610764), new g(l[11], 3590304994), new g(l[12], 4068182383), new g(l[13], 991336113), new g(l[14], 633803317), new g(l[15], 3479774868), new g(l[16], 2666613458), new g(l[17], 944711139), new g(l[18], 2341262773), new g(l[19], 2007800933), new g(l[20], 1495990901), new g(l[21], 1856431235), new g(l[22], 3175218132), new g(l[23], 2198950837), new g(l[24], 3999719339), new g(l[25], 766784016), new g(l[26], 2566594879), new g(l[27], 3203337956), new g(l[28], 1034457026), new g(l[29], 2466948901), new g(l[30], 3758326383), new g(l[31], 168717936), new g(l[32], 1188179964), new g(l[33], 1546045734), new g(l[34], 1522805485), new g(l[35], 2643833823), new g(l[36], 2343527390), new g(l[37], 1014477480), new g(l[38], 1206759142), new g(l[39], 344077627), new g(l[40], 1290863460), new g(l[41], 3158454273), new g(l[42], 3505952657), new g(l[43], 106217008), new g(l[44], 3606008344), new g(l[45], 1432725776), new g(l[46], 1467031594), new g(l[47], 851169720), new g(l[48], 3100823752), new g(l[49], 1363258195), new g(l[50], 3750685593), new g(l[51], 3785050280), new g(l[52], 3318307427), new g(l[53], 3812723403), new g(l[54], 2003034995), new g(l[55], 3602036899), new g(l[56], 1575990012), new g(l[57], 1125592928), new g(l[58], 2716904306), new g(l[59], 442776044), new g(l[60], 593698344), new g(l[61], 3733110249), new g(l[62], 2999351573), new g(l[63], 3815920427), new g(3391569614, 3928383900), new g(3515267271, 566280711), new g(3940187606, 3454069534), new g(4118630271, 4000239992), new g(116418474, 1914138554), new g(174292421, 2731055270), new g(289380356, 3203993006), new g(460393269, 320620315), new g(685471733, 587496836), new g(852142971, 1086792851), new g(1017036298, 365543100), new g(1126000580, 2618297676), new g(1288033470, 3409855158), new g(1501505948, 4234509866), new g(1607167915, 987167468), new g(1816402316, 1246189591)], d = "SHA-384" === c ? [new g(3418070365, d[0]), new g(1654270250, d[1]), new g(2438529370, d[2]), new g(355462360, d[3]), new g(1731405415, d[4]), new g(41048885895, d[5]), new g(3675008525, d[6]), new g(1203062813, d[7])] : [new g(f[0], 4089235720), new g(f[1], 2227873595), new g(f[2], 4271175723), new g(f[3], 1595750129), new g(f[4], 2917565137), new g(f[5], 725511199), new g(f[6], 4215389547), new g(f[7], 327033209)];else throw "Unexpected error in SHA-2 implementation";for (; a.length <= e;) {
a.push(0);
}a[b >>> 5] |= 128 << 24 - b % 32;a[e] = b;D = a.length;for (m = 0; m < D; m += w) {
b = d[0];e = d[1];f = d[2];k = d[3];h = d[4];p = d[5];r = d[6];u = d[7];for (t = 0; t < n; t += 1) {
16 > t ? (y = t * x + m, s = a.length <= y ? 0 : a[y], y = a.length <= y + 1 ? 0 : a[y + 1], B[t] = new g(s, y)) : B[t] = z(G(B[t - 2]), B[t - 7], F(B[t - 15]), B[t - 16]), s = A(u, I(h), J(h, p, r), l[t], B[t]), y = v(H(b), K(b, e, f)), u = r, r = p, p = h, h = v(k, s), k = f, f = e, e = b, b = v(s, y);
}d[0] = v(b, d[0]);d[1] = v(e, d[1]);d[2] = v(f, d[2]);d[3] = v(k, d[3]);d[4] = v(h, d[4]);d[5] = v(p, d[5]);d[6] = v(r, d[6]);d[7] = v(u, d[7]);
}if ("SHA-224" === c) a = [d[0], d[1], d[2], d[3], d[4], d[5], d[6]];else if ("SHA-256" === c) a = d;else if ("SHA-384" === c) a = [d[0].a, d[0].b, d[1].a, d[1].b, d[2].a, d[2].b, d[3].a, d[3].b, d[4].a, d[4].b, d[5].a, d[5].b];else if ("SHA-512" === c) a = [d[0].a, d[0].b, d[1].a, d[1].b, d[2].a, d[2].b, d[3].a, d[3].b, d[4].a, d[4].b, d[5].a, d[5].b, d[6].a, d[6].b, d[7].a, d[7].b];else throw "Unexpected error in SHA-2 implementation";return a;
}"function" === typeof define && define.amd ? define(function () {
return z;
}) : "undefined" !== typeof exports ? "undefined" !== typeof module && module.exports ? module.exports = exports = z : exports = z : U.jsSHA = z;
})(undefined);
},{}],271:[function(require,module,exports){
'use strict';
module.exports = require('./lib/api')(require('./lib/keccak'));
},{"./lib/api":272,"./lib/keccak":276}],272:[function(require,module,exports){
'use strict';
var createKeccak = require('./keccak');
var createShake = require('./shake');
module.exports = function (KeccakState) {
var Keccak = createKeccak(KeccakState);
var Shake = createShake(KeccakState);
return function (algorithm, options) {
var hash = typeof algorithm === 'string' ? algorithm.toLowerCase() : algorithm;
switch (hash) {
case 'keccak224':
return new Keccak(1152, 448, null, 224, options);
case 'keccak256':
return new Keccak(1088, 512, null, 256, options);
case 'keccak384':
return new Keccak(832, 768, null, 384, options);
case 'keccak512':
return new Keccak(576, 1024, null, 512, options);
case 'sha3-224':
return new Keccak(1152, 448, 0x06, 224, options);
case 'sha3-256':
return new Keccak(1088, 512, 0x06, 256, options);
case 'sha3-384':
return new Keccak(832, 768, 0x06, 384, options);
case 'sha3-512':
return new Keccak(576, 1024, 0x06, 512, options);
case 'shake128':
return new Shake(1344, 256, 0x1f, options);
case 'shake256':
return new Shake(1088, 512, 0x1f, options);
default:
throw new Error('Invald algorithm: ' + algorithm);
}
};
};
},{"./keccak":273,"./shake":274}],273:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var Transform = require('stream').Transform;
var inherits = require('inherits');
module.exports = function (KeccakState) {
function Keccak(rate, capacity, delimitedSuffix, hashBitLength, options) {
Transform.call(this, options);
this._rate = rate;
this._capacity = capacity;
this._delimitedSuffix = delimitedSuffix;
this._hashBitLength = hashBitLength;
this._options = options;
this._state = new KeccakState();
this._state.initialize(rate, capacity);
this._finalized = false;
}
inherits(Keccak, Transform);
Keccak.prototype._transform = function (chunk, encoding, callback) {
var error = null;
try {
this.update(chunk, encoding);
} catch (err) {
error = err;
}
callback(error);
};
Keccak.prototype._flush = function (callback) {
var error = null;
try {
this.push(this.digest());
} catch (err) {
error = err;
}
callback(error);
};
Keccak.prototype.update = function (data, encoding) {
if (!Buffer.isBuffer(data) && typeof data !== 'string') throw new TypeError('Data must be a string or a buffer');
if (this._finalized) throw new Error('Digest already called');
if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding);
this._state.absorb(data);
return this;
};
Keccak.prototype.digest = function (encoding) {
if (this._finalized) throw new Error('Digest already called');
this._finalized = true;
if (this._delimitedSuffix) this._state.absorbLastFewBits(this._delimitedSuffix);
var digest = this._state.squeeze(this._hashBitLength / 8);
if (encoding !== undefined) digest = digest.toString(encoding);
this._resetState();
return digest;
};
// remove result from memory
Keccak.prototype._resetState = function () {
this._state.initialize(this._rate, this._capacity);
return this;
};
// because sometimes we need hash right now and little later
Keccak.prototype._clone = function () {
var clone = new Keccak(this._rate, this._capacity, this._delimitedSuffix, this._hashBitLength, this._options);
this._state.copy(clone._state);
clone._finalized = this._finalized;
return clone;
};
return Keccak;
};
},{"inherits":266,"safe-buffer":319,"stream":335}],274:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var Transform = require('stream').Transform;
var inherits = require('inherits');
module.exports = function (KeccakState) {
function Shake(rate, capacity, delimitedSuffix, options) {
Transform.call(this, options);
this._rate = rate;
this._capacity = capacity;
this._delimitedSuffix = delimitedSuffix;
this._options = options;
this._state = new KeccakState();
this._state.initialize(rate, capacity);
this._finalized = false;
}
inherits(Shake, Transform);
Shake.prototype._transform = function (chunk, encoding, callback) {
var error = null;
try {
this.update(chunk, encoding);
} catch (err) {
error = err;
}
callback(error);
};
Shake.prototype._flush = function () {};
Shake.prototype._read = function (size) {
this.push(this.squeeze(size));
};
Shake.prototype.update = function (data, encoding) {
if (!Buffer.isBuffer(data) && typeof data !== 'string') throw new TypeError('Data must be a string or a buffer');
if (this._finalized) throw new Error('Squeeze already called');
if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding);
this._state.absorb(data);
return this;
};
Shake.prototype.squeeze = function (dataByteLength, encoding) {
if (!this._finalized) {
this._finalized = true;
this._state.absorbLastFewBits(this._delimitedSuffix);
}
var data = this._state.squeeze(dataByteLength);
if (encoding !== undefined) data = data.toString(encoding);
return data;
};
Shake.prototype._resetState = function () {
this._state.initialize(this._rate, this._capacity);
return this;
};
Shake.prototype._clone = function () {
var clone = new Shake(this._rate, this._capacity, this._delimitedSuffix, this._options);
this._state.copy(clone._state);
clone._finalized = this._finalized;
return clone;
};
return Shake;
};
},{"inherits":266,"safe-buffer":319,"stream":335}],275:[function(require,module,exports){
'use strict';
var P1600_ROUND_CONSTANTS = [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];
exports.p1600 = function (s) {
for (var round = 0; round < 24; ++round) {
// theta
var lo0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];
var hi0 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];
var lo1 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];
var hi1 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];
var lo2 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];
var hi2 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];
var lo3 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];
var hi3 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];
var lo4 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];
var hi4 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];
var lo = lo4 ^ (lo1 << 1 | hi1 >>> 31);
var hi = hi4 ^ (hi1 << 1 | lo1 >>> 31);
var t1slo0 = s[0] ^ lo;
var t1shi0 = s[1] ^ hi;
var t1slo5 = s[10] ^ lo;
var t1shi5 = s[11] ^ hi;
var t1slo10 = s[20] ^ lo;
var t1shi10 = s[21] ^ hi;
var t1slo15 = s[30] ^ lo;
var t1shi15 = s[31] ^ hi;
var t1slo20 = s[40] ^ lo;
var t1shi20 = s[41] ^ hi;
lo = lo0 ^ (lo2 << 1 | hi2 >>> 31);
hi = hi0 ^ (hi2 << 1 | lo2 >>> 31);
var t1slo1 = s[2] ^ lo;
var t1shi1 = s[3] ^ hi;
var t1slo6 = s[12] ^ lo;
var t1shi6 = s[13] ^ hi;
var t1slo11 = s[22] ^ lo;
var t1shi11 = s[23] ^ hi;
var t1slo16 = s[32] ^ lo;
var t1shi16 = s[33] ^ hi;
var t1slo21 = s[42] ^ lo;
var t1shi21 = s[43] ^ hi;
lo = lo1 ^ (lo3 << 1 | hi3 >>> 31);
hi = hi1 ^ (hi3 << 1 | lo3 >>> 31);
var t1slo2 = s[4] ^ lo;
var t1shi2 = s[5] ^ hi;
var t1slo7 = s[14] ^ lo;
var t1shi7 = s[15] ^ hi;
var t1slo12 = s[24] ^ lo;
var t1shi12 = s[25] ^ hi;
var t1slo17 = s[34] ^ lo;
var t1shi17 = s[35] ^ hi;
var t1slo22 = s[44] ^ lo;
var t1shi22 = s[45] ^ hi;
lo = lo2 ^ (lo4 << 1 | hi4 >>> 31);
hi = hi2 ^ (hi4 << 1 | lo4 >>> 31);
var t1slo3 = s[6] ^ lo;
var t1shi3 = s[7] ^ hi;
var t1slo8 = s[16] ^ lo;
var t1shi8 = s[17] ^ hi;
var t1slo13 = s[26] ^ lo;
var t1shi13 = s[27] ^ hi;
var t1slo18 = s[36] ^ lo;
var t1shi18 = s[37] ^ hi;
var t1slo23 = s[46] ^ lo;
var t1shi23 = s[47] ^ hi;
lo = lo3 ^ (lo0 << 1 | hi0 >>> 31);
hi = hi3 ^ (hi0 << 1 | lo0 >>> 31);
var t1slo4 = s[8] ^ lo;
var t1shi4 = s[9] ^ hi;
var t1slo9 = s[18] ^ lo;
var t1shi9 = s[19] ^ hi;
var t1slo14 = s[28] ^ lo;
var t1shi14 = s[29] ^ hi;
var t1slo19 = s[38] ^ lo;
var t1shi19 = s[39] ^ hi;
var t1slo24 = s[48] ^ lo;
var t1shi24 = s[49] ^ hi;
// rho & pi
var t2slo0 = t1slo0;
var t2shi0 = t1shi0;
var t2slo16 = t1shi5 << 4 | t1slo5 >>> 28;
var t2shi16 = t1slo5 << 4 | t1shi5 >>> 28;
var t2slo7 = t1slo10 << 3 | t1shi10 >>> 29;
var t2shi7 = t1shi10 << 3 | t1slo10 >>> 29;
var t2slo23 = t1shi15 << 9 | t1slo15 >>> 23;
var t2shi23 = t1slo15 << 9 | t1shi15 >>> 23;
var t2slo14 = t1slo20 << 18 | t1shi20 >>> 14;
var t2shi14 = t1shi20 << 18 | t1slo20 >>> 14;
var t2slo10 = t1slo1 << 1 | t1shi1 >>> 31;
var t2shi10 = t1shi1 << 1 | t1slo1 >>> 31;
var t2slo1 = t1shi6 << 12 | t1slo6 >>> 20;
var t2shi1 = t1slo6 << 12 | t1shi6 >>> 20;
var t2slo17 = t1slo11 << 10 | t1shi11 >>> 22;
var t2shi17 = t1shi11 << 10 | t1slo11 >>> 22;
var t2slo8 = t1shi16 << 13 | t1slo16 >>> 19;
var t2shi8 = t1slo16 << 13 | t1shi16 >>> 19;
var t2slo24 = t1slo21 << 2 | t1shi21 >>> 30;
var t2shi24 = t1shi21 << 2 | t1slo21 >>> 30;
var t2slo20 = t1shi2 << 30 | t1slo2 >>> 2;
var t2shi20 = t1slo2 << 30 | t1shi2 >>> 2;
var t2slo11 = t1slo7 << 6 | t1shi7 >>> 26;
var t2shi11 = t1shi7 << 6 | t1slo7 >>> 26;
var t2slo2 = t1shi12 << 11 | t1slo12 >>> 21;
var t2shi2 = t1slo12 << 11 | t1shi12 >>> 21;
var t2slo18 = t1slo17 << 15 | t1shi17 >>> 17;
var t2shi18 = t1shi17 << 15 | t1slo17 >>> 17;
var t2slo9 = t1shi22 << 29 | t1slo22 >>> 3;
var t2shi9 = t1slo22 << 29 | t1shi22 >>> 3;
var t2slo5 = t1slo3 << 28 | t1shi3 >>> 4;
var t2shi5 = t1shi3 << 28 | t1slo3 >>> 4;
var t2slo21 = t1shi8 << 23 | t1slo8 >>> 9;
var t2shi21 = t1slo8 << 23 | t1shi8 >>> 9;
var t2slo12 = t1slo13 << 25 | t1shi13 >>> 7;
var t2shi12 = t1shi13 << 25 | t1slo13 >>> 7;
var t2slo3 = t1slo18 << 21 | t1shi18 >>> 11;
var t2shi3 = t1shi18 << 21 | t1slo18 >>> 11;
var t2slo19 = t1shi23 << 24 | t1slo23 >>> 8;
var t2shi19 = t1slo23 << 24 | t1shi23 >>> 8;
var t2slo15 = t1slo4 << 27 | t1shi4 >>> 5;
var t2shi15 = t1shi4 << 27 | t1slo4 >>> 5;
var t2slo6 = t1slo9 << 20 | t1shi9 >>> 12;
var t2shi6 = t1shi9 << 20 | t1slo9 >>> 12;
var t2slo22 = t1shi14 << 7 | t1slo14 >>> 25;
var t2shi22 = t1slo14 << 7 | t1shi14 >>> 25;
var t2slo13 = t1slo19 << 8 | t1shi19 >>> 24;
var t2shi13 = t1shi19 << 8 | t1slo19 >>> 24;
var t2slo4 = t1slo24 << 14 | t1shi24 >>> 18;
var t2shi4 = t1shi24 << 14 | t1slo24 >>> 18;
// chi
s[0] = t2slo0 ^ ~t2slo1 & t2slo2;
s[1] = t2shi0 ^ ~t2shi1 & t2shi2;
s[10] = t2slo5 ^ ~t2slo6 & t2slo7;
s[11] = t2shi5 ^ ~t2shi6 & t2shi7;
s[20] = t2slo10 ^ ~t2slo11 & t2slo12;
s[21] = t2shi10 ^ ~t2shi11 & t2shi12;
s[30] = t2slo15 ^ ~t2slo16 & t2slo17;
s[31] = t2shi15 ^ ~t2shi16 & t2shi17;
s[40] = t2slo20 ^ ~t2slo21 & t2slo22;
s[41] = t2shi20 ^ ~t2shi21 & t2shi22;
s[2] = t2slo1 ^ ~t2slo2 & t2slo3;
s[3] = t2shi1 ^ ~t2shi2 & t2shi3;
s[12] = t2slo6 ^ ~t2slo7 & t2slo8;
s[13] = t2shi6 ^ ~t2shi7 & t2shi8;
s[22] = t2slo11 ^ ~t2slo12 & t2slo13;
s[23] = t2shi11 ^ ~t2shi12 & t2shi13;
s[32] = t2slo16 ^ ~t2slo17 & t2slo18;
s[33] = t2shi16 ^ ~t2shi17 & t2shi18;
s[42] = t2slo21 ^ ~t2slo22 & t2slo23;
s[43] = t2shi21 ^ ~t2shi22 & t2shi23;
s[4] = t2slo2 ^ ~t2slo3 & t2slo4;
s[5] = t2shi2 ^ ~t2shi3 & t2shi4;
s[14] = t2slo7 ^ ~t2slo8 & t2slo9;
s[15] = t2shi7 ^ ~t2shi8 & t2shi9;
s[24] = t2slo12 ^ ~t2slo13 & t2slo14;
s[25] = t2shi12 ^ ~t2shi13 & t2shi14;
s[34] = t2slo17 ^ ~t2slo18 & t2slo19;
s[35] = t2shi17 ^ ~t2shi18 & t2shi19;
s[44] = t2slo22 ^ ~t2slo23 & t2slo24;
s[45] = t2shi22 ^ ~t2shi23 & t2shi24;
s[6] = t2slo3 ^ ~t2slo4 & t2slo0;
s[7] = t2shi3 ^ ~t2shi4 & t2shi0;
s[16] = t2slo8 ^ ~t2slo9 & t2slo5;
s[17] = t2shi8 ^ ~t2shi9 & t2shi5;
s[26] = t2slo13 ^ ~t2slo14 & t2slo10;
s[27] = t2shi13 ^ ~t2shi14 & t2shi10;
s[36] = t2slo18 ^ ~t2slo19 & t2slo15;
s[37] = t2shi18 ^ ~t2shi19 & t2shi15;
s[46] = t2slo23 ^ ~t2slo24 & t2slo20;
s[47] = t2shi23 ^ ~t2shi24 & t2shi20;
s[8] = t2slo4 ^ ~t2slo0 & t2slo1;
s[9] = t2shi4 ^ ~t2shi0 & t2shi1;
s[18] = t2slo9 ^ ~t2slo5 & t2slo6;
s[19] = t2shi9 ^ ~t2shi5 & t2shi6;
s[28] = t2slo14 ^ ~t2slo10 & t2slo11;
s[29] = t2shi14 ^ ~t2shi10 & t2shi11;
s[38] = t2slo19 ^ ~t2slo15 & t2slo16;
s[39] = t2shi19 ^ ~t2shi15 & t2shi16;
s[48] = t2slo24 ^ ~t2slo20 & t2slo21;
s[49] = t2shi24 ^ ~t2shi20 & t2shi21;
// iota
s[0] ^= P1600_ROUND_CONSTANTS[round * 2];
s[1] ^= P1600_ROUND_CONSTANTS[round * 2 + 1];
}
};
},{}],276:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var keccakState = require('./keccak-state-unroll');
function Keccak() {
// much faster than `new Array(50)`
this.state = [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];
this.blockSize = null;
this.count = 0;
this.squeezing = false;
}
Keccak.prototype.initialize = function (rate, capacity) {
for (var i = 0; i < 50; ++i) {
this.state[i] = 0;
}this.blockSize = rate / 8;
this.count = 0;
this.squeezing = false;
};
Keccak.prototype.absorb = function (data) {
for (var i = 0; i < data.length; ++i) {
this.state[~~(this.count / 4)] ^= data[i] << 8 * (this.count % 4);
this.count += 1;
if (this.count === this.blockSize) {
keccakState.p1600(this.state);
this.count = 0;
}
}
};
Keccak.prototype.absorbLastFewBits = function (bits) {
this.state[~~(this.count / 4)] ^= bits << 8 * (this.count % 4);
if ((bits & 0x80) !== 0 && this.count === this.blockSize - 1) keccakState.p1600(this.state);
this.state[~~((this.blockSize - 1) / 4)] ^= 0x80 << 8 * ((this.blockSize - 1) % 4);
keccakState.p1600(this.state);
this.count = 0;
this.squeezing = true;
};
Keccak.prototype.squeeze = function (length) {
if (!this.squeezing) this.absorbLastFewBits(0x01);
var output = Buffer.alloc(length);
for (var i = 0; i < length; ++i) {
output[i] = this.state[~~(this.count / 4)] >>> 8 * (this.count % 4) & 0xff;
this.count += 1;
if (this.count === this.blockSize) {
keccakState.p1600(this.state);
this.count = 0;
}
}
return output;
};
Keccak.prototype.copy = function (dest) {
for (var i = 0; i < 50; ++i) {
dest.state[i] = this.state[i];
}dest.blockSize = this.blockSize;
dest.count = this.count;
dest.squeezing = this.squeezing;
};
module.exports = Keccak;
},{"./keccak-state-unroll":275,"safe-buffer":319}],277:[function(require,module,exports){
(function (global){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
;(function () {
'use strict';
/**
* Block-Level Grammar
*/
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
nptable: noop,
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
table: noop,
paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
text: /^[^\n]+/
};
block.bullet = /(?:[*+-]|\d+\.)/;
block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;
block.item = replace(block.item, 'gm')(/bull/g, block.bullet)();
block.list = replace(block.list)(/bull/g, block.bullet)('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def', '\\n+(?=' + block.def.source + ')')();
block.blockquote = replace(block.blockquote)('def', block.def)();
block._tag = '(?!(?:' + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';
block.html = replace(block.html)('comment', /<!--[\s\S]*?-->/)('closed', /<(tag)[\s\S]+?<\/\1>/)('closing', /<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g, block._tag)();
block.paragraph = replace(block.paragraph)('hr', block.hr)('heading', block.heading)('lheading', block.lheading)('blockquote', block.blockquote)('tag', '<' + block._tag)('def', block.def)();
/**
* Normal Block Grammar
*/
block.normal = merge({}, block);
/**
* GFM Block Grammar
*/
block.gfm = merge({}, block.normal, {
fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,
paragraph: /^/,
heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/
});
block.gfm.paragraph = replace(block.paragraph)('(?!', '(?!' + block.gfm.fences.source.replace('\\1', '\\2') + '|' + block.list.source.replace('\\1', '\\3') + '|')();
/**
* GFM + Tables Block Grammar
*/
block.tables = merge({}, block.gfm, {
nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/
});
/**
* Block Lexer
*/
function Lexer(options) {
this.tokens = [];
this.tokens.links = {};
this.options = options || marked.defaults;
this.rules = block.normal;
if (this.options.gfm) {
if (this.options.tables) {
this.rules = block.tables;
} else {
this.rules = block.gfm;
}
}
}
/**
* Expose Block Rules
*/
Lexer.rules = block;
/**
* Static Lex Method
*/
Lexer.lex = function (src, options) {
var lexer = new Lexer(options);
return lexer.lex(src);
};
/**
* Preprocessing
*/
Lexer.prototype.lex = function (src) {
src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ').replace(/\u00a0/g, ' ').replace(/\u2424/g, '\n');
return this.token(src, true);
};
/**
* Lexing
*/
Lexer.prototype.token = function (src, top, bq) {
var src = src.replace(/^ +$/gm, ''),
next,
loose,
cap,
bull,
b,
item,
space,
i,
l;
while (src) {
// newline
if (cap = this.rules.newline.exec(src)) {
src = src.substring(cap[0].length);
if (cap[0].length > 1) {
this.tokens.push({
type: 'space'
});
}
}
// code
if (cap = this.rules.code.exec(src)) {
src = src.substring(cap[0].length);
cap = cap[0].replace(/^ {4}/gm, '');
this.tokens.push({
type: 'code',
text: !this.options.pedantic ? cap.replace(/\n+$/, '') : cap
});
continue;
}
// fences (gfm)
if (cap = this.rules.fences.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'code',
lang: cap[2],
text: cap[3] || ''
});
continue;
}
// heading
if (cap = this.rules.heading.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'heading',
depth: cap[1].length,
text: cap[2]
});
continue;
}
// table no leading pipe (gfm)
if (top && (cap = this.rules.nptable.exec(src))) {
src = src.substring(cap[0].length);
item = {
type: 'table',
header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
cells: cap[3].replace(/\n$/, '').split('\n')
};
for (i = 0; i < item.align.length; i++) {
if (/^ *-+: *$/.test(item.align[i])) {
item.align[i] = 'right';
} else if (/^ *:-+: *$/.test(item.align[i])) {
item.align[i] = 'center';
} else if (/^ *:-+ *$/.test(item.align[i])) {
item.align[i] = 'left';
} else {
item.align[i] = null;
}
}
for (i = 0; i < item.cells.length; i++) {
item.cells[i] = item.cells[i].split(/ *\| */);
}
this.tokens.push(item);
continue;
}
// lheading
if (cap = this.rules.lheading.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'heading',
depth: cap[2] === '=' ? 1 : 2,
text: cap[1]
});
continue;
}
// hr
if (cap = this.rules.hr.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'hr'
});
continue;
}
// blockquote
if (cap = this.rules.blockquote.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'blockquote_start'
});
cap = cap[0].replace(/^ *> ?/gm, '');
// Pass `top` to keep the current
// "toplevel" state. This is exactly
// how markdown.pl works.
this.token(cap, top, true);
this.tokens.push({
type: 'blockquote_end'
});
continue;
}
// list
if (cap = this.rules.list.exec(src)) {
src = src.substring(cap[0].length);
bull = cap[2];
this.tokens.push({
type: 'list_start',
ordered: bull.length > 1
});
// Get each top-level item.
cap = cap[0].match(this.rules.item);
next = false;
l = cap.length;
i = 0;
for (; i < l; i++) {
item = cap[i];
// Remove the list item's bullet
// so it is seen as the next token.
space = item.length;
item = item.replace(/^ *([*+-]|\d+\.) +/, '');
// Outdent whatever the
// list item contains. Hacky.
if (~item.indexOf('\n ')) {
space -= item.length;
item = !this.options.pedantic ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '') : item.replace(/^ {1,4}/gm, '');
}
// Determine whether the next list item belongs here.
// Backpedal if it does not belong in this list.
if (this.options.smartLists && i !== l - 1) {
b = block.bullet.exec(cap[i + 1])[0];
if (bull !== b && !(bull.length > 1 && b.length > 1)) {
src = cap.slice(i + 1).join('\n') + src;
i = l - 1;
}
}
// Determine whether item is loose or not.
// Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/
// for discount behavior.
loose = next || /\n\n(?!\s*$)/.test(item);
if (i !== l - 1) {
next = item.charAt(item.length - 1) === '\n';
if (!loose) loose = next;
}
this.tokens.push({
type: loose ? 'loose_item_start' : 'list_item_start'
});
// Recurse.
this.token(item, false, bq);
this.tokens.push({
type: 'list_item_end'
});
}
this.tokens.push({
type: 'list_end'
});
continue;
}
// html
if (cap = this.rules.html.exec(src)) {
src = src.substring(cap[0].length);
this.tokens.push({
type: this.options.sanitize ? 'paragraph' : 'html',
pre: !this.options.sanitizer && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),
text: cap[0]
});
continue;
}
// def
if (!bq && top && (cap = this.rules.def.exec(src))) {
src = src.substring(cap[0].length);
this.tokens.links[cap[1].toLowerCase()] = {
href: cap[2],
title: cap[3]
};
continue;
}
// table (gfm)
if (top && (cap = this.rules.table.exec(src))) {
src = src.substring(cap[0].length);
item = {
type: 'table',
header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
};
for (i = 0; i < item.align.length; i++) {
if (/^ *-+: *$/.test(item.align[i])) {
item.align[i] = 'right';
} else if (/^ *:-+: *$/.test(item.align[i])) {
item.align[i] = 'center';
} else if (/^ *:-+ *$/.test(item.align[i])) {
item.align[i] = 'left';
} else {
item.align[i] = null;
}
}
for (i = 0; i < item.cells.length; i++) {
item.cells[i] = item.cells[i].replace(/^ *\| *| *\| *$/g, '').split(/ *\| */);
}
this.tokens.push(item);
continue;
}
// top-level paragraph
if (top && (cap = this.rules.paragraph.exec(src))) {
src = src.substring(cap[0].length);
this.tokens.push({
type: 'paragraph',
text: cap[1].charAt(cap[1].length - 1) === '\n' ? cap[1].slice(0, -1) : cap[1]
});
continue;
}
// text
if (cap = this.rules.text.exec(src)) {
// Top-level should never reach here.
src = src.substring(cap[0].length);
this.tokens.push({
type: 'text',
text: cap[0]
});
continue;
}
if (src) {
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
}
}
return this.tokens;
};
/**
* Inline-Level Grammar
*/
var inline = {
escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
autolink: /^<([^ <>]+(@|:\/)[^ <>]+)>/,
url: noop,
tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^<'">])*?>/,
link: /^!?\[(inside)\]\(href\)/,
reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
code: /^(`+)([\s\S]*?[^`])\1(?!`)/,
br: /^ {2,}\n(?!\s*$)/,
del: noop,
text: /^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/
};
inline._inside = /(?:\[[^\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/;
inline._href = /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;
inline.link = replace(inline.link)('inside', inline._inside)('href', inline._href)();
inline.reflink = replace(inline.reflink)('inside', inline._inside)();
/**
* Normal Inline Grammar
*/
inline.normal = merge({}, inline);
/**
* Pedantic Inline Grammar
*/
inline.pedantic = merge({}, inline.normal, {
strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/
});
/**
* GFM Inline Grammar
*/
inline.gfm = merge({}, inline.normal, {
escape: replace(inline.escape)('])', '~|])')(),
url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
del: /^~~(?=\S)([\s\S]*?\S)~~/,
text: replace(inline.text)(']|', '~]|')('|', '|https?://|')()
});
/**
* GFM + Line Breaks Inline Grammar
*/
inline.breaks = merge({}, inline.gfm, {
br: replace(inline.br)('{2,}', '*')(),
text: replace(inline.gfm.text)('{2,}', '*')()
});
/**
* Inline Lexer & Compiler
*/
function InlineLexer(links, options) {
this.options = options || marked.defaults;
this.links = links;
this.rules = inline.normal;
this.renderer = this.options.renderer || new Renderer();
this.renderer.options = this.options;
if (!this.links) {
throw new Error('Tokens array requires a `links` property.');
}
if (this.options.gfm) {
if (this.options.breaks) {
this.rules = inline.breaks;
} else {
this.rules = inline.gfm;
}
} else if (this.options.pedantic) {
this.rules = inline.pedantic;
}
}
/**
* Expose Inline Rules
*/
InlineLexer.rules = inline;
/**
* Static Lexing/Compiling Method
*/
InlineLexer.output = function (src, links, options) {
var inline = new InlineLexer(links, options);
return inline.output(src);
};
/**
* Lexing/Compiling
*/
InlineLexer.prototype.output = function (src) {
var out = '',
link,
text,
href,
cap;
while (src) {
// escape
if (cap = this.rules.escape.exec(src)) {
src = src.substring(cap[0].length);
out += cap[1];
continue;
}
// autolink
if (cap = this.rules.autolink.exec(src)) {
src = src.substring(cap[0].length);
if (cap[2] === '@') {
text = escape(cap[1].charAt(6) === ':' ? this.mangle(cap[1].substring(7)) : this.mangle(cap[1]));
href = this.mangle('mailto:') + text;
} else {
text = escape(cap[1]);
href = text;
}
out += this.renderer.link(href, null, text);
continue;
}
// url (gfm)
if (!this.inLink && (cap = this.rules.url.exec(src))) {
src = src.substring(cap[0].length);
text = escape(cap[1]);
href = text;
out += this.renderer.link(href, null, text);
continue;
}
// tag
if (cap = this.rules.tag.exec(src)) {
if (!this.inLink && /^<a /i.test(cap[0])) {
this.inLink = true;
} else if (this.inLink && /^<\/a>/i.test(cap[0])) {
this.inLink = false;
}
src = src.substring(cap[0].length);
out += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]) : cap[0];
continue;
}
// link
if (cap = this.rules.link.exec(src)) {
src = src.substring(cap[0].length);
this.inLink = true;
out += this.outputLink(cap, {
href: cap[2],
title: cap[3]
});
this.inLink = false;
continue;
}
// reflink, nolink
if ((cap = this.rules.reflink.exec(src)) || (cap = this.rules.nolink.exec(src))) {
src = src.substring(cap[0].length);
link = (cap[2] || cap[1]).replace(/\s+/g, ' ');
link = this.links[link.toLowerCase()];
if (!link || !link.href) {
out += cap[0].charAt(0);
src = cap[0].substring(1) + src;
continue;
}
this.inLink = true;
out += this.outputLink(cap, link);
this.inLink = false;
continue;
}
// strong
if (cap = this.rules.strong.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.strong(this.output(cap[2] || cap[1]));
continue;
}
// em
if (cap = this.rules.em.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.em(this.output(cap[2] || cap[1]));
continue;
}
// code
if (cap = this.rules.code.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.codespan(escape(cap[2].trim(), true));
continue;
}
// br
if (cap = this.rules.br.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.br();
continue;
}
// del (gfm)
if (cap = this.rules.del.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.del(this.output(cap[1]));
continue;
}
// text
if (cap = this.rules.text.exec(src)) {
src = src.substring(cap[0].length);
out += this.renderer.text(escape(this.smartypants(cap[0])));
continue;
}
if (src) {
throw new Error('Infinite loop on byte: ' + src.charCodeAt(0));
}
}
return out;
};
/**
* Compile Link
*/
InlineLexer.prototype.outputLink = function (cap, link) {
var href = escape(link.href),
title = link.title ? escape(link.title) : null;
return cap[0].charAt(0) !== '!' ? this.renderer.link(href, title, this.output(cap[1])) : this.renderer.image(href, title, escape(cap[1]));
};
/**
* Smartypants Transformations
*/
InlineLexer.prototype.smartypants = function (text) {
if (!this.options.smartypants) return text;
return text
// em-dashes
.replace(/---/g, '\u2014')
// en-dashes
.replace(/--/g, '\u2013')
// opening singles
.replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018')
// closing singles & apostrophes
.replace(/'/g, '\u2019')
// opening doubles
.replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201C')
// closing doubles
.replace(/"/g, '\u201D')
// ellipses
.replace(/\.{3}/g, '\u2026');
};
/**
* Mangle Links
*/
InlineLexer.prototype.mangle = function (text) {
if (!this.options.mangle) return text;
var out = '',
l = text.length,
i = 0,
ch;
for (; i < l; i++) {
ch = text.charCodeAt(i);
if (Math.random() > 0.5) {
ch = 'x' + ch.toString(16);
}
out += '&#' + ch + ';';
}
return out;
};
/**
* Renderer
*/
function Renderer(options) {
this.options = options || {};
}
Renderer.prototype.code = function (code, lang, escaped) {
if (this.options.highlight) {
var out = this.options.highlight(code, lang);
if (out != null && out !== code) {
escaped = true;
code = out;
}
}
if (!lang) {
return '<pre><code>' + (escaped ? code : escape(code, true)) + '\n</code></pre>';
}
return '<pre><code class="' + this.options.langPrefix + escape(lang, true) + '">' + (escaped ? code : escape(code, true)) + '\n</code></pre>\n';
};
Renderer.prototype.blockquote = function (quote) {
return '<blockquote>\n' + quote + '</blockquote>\n';
};
Renderer.prototype.html = function (html) {
return html;
};
Renderer.prototype.heading = function (text, level, raw) {
return '<h' + level + ' id="' + this.options.headerPrefix + raw.toLowerCase().replace(/[^\w]+/g, '-') + '">' + text + '</h' + level + '>\n';
};
Renderer.prototype.hr = function () {
return this.options.xhtml ? '<hr/>\n' : '<hr>\n';
};
Renderer.prototype.list = function (body, ordered) {
var type = ordered ? 'ol' : 'ul';
return '<' + type + '>\n' + body + '</' + type + '>\n';
};
Renderer.prototype.listitem = function (text) {
return '<li>' + text + '</li>\n';
};
Renderer.prototype.paragraph = function (text) {
return '<p>' + text + '</p>\n';
};
Renderer.prototype.table = function (header, body) {
return '<table>\n' + '<thead>\n' + header + '</thead>\n' + '<tbody>\n' + body + '</tbody>\n' + '</table>\n';
};
Renderer.prototype.tablerow = function (content) {
return '<tr>\n' + content + '</tr>\n';
};
Renderer.prototype.tablecell = function (content, flags) {
var type = flags.header ? 'th' : 'td';
var tag = flags.align ? '<' + type + ' style="text-align:' + flags.align + '">' : '<' + type + '>';
return tag + content + '</' + type + '>\n';
};
// span level renderer
Renderer.prototype.strong = function (text) {
return '<strong>' + text + '</strong>';
};
Renderer.prototype.em = function (text) {
return '<em>' + text + '</em>';
};
Renderer.prototype.codespan = function (text) {
return '<code>' + text + '</code>';
};
Renderer.prototype.br = function () {
return this.options.xhtml ? '<br/>' : '<br>';
};
Renderer.prototype.del = function (text) {
return '<del>' + text + '</del>';
};
Renderer.prototype.link = function (href, title, text) {
if (this.options.sanitize) {
try {
var prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, '').toLowerCase();
} catch (e) {
return text;
}
if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) {
return text;
}
}
if (this.options.baseUrl && !originIndependentUrl.test(href)) {
href = resolveUrl(this.options.baseUrl, href);
}
var out = '<a href="' + href + '"';
if (title) {
out += ' title="' + title + '"';
}
out += '>' + text + '</a>';
return out;
};
Renderer.prototype.image = function (href, title, text) {
if (this.options.baseUrl && !originIndependentUrl.test(href)) {
href = resolveUrl(this.options.baseUrl, href);
}
var out = '<img src="' + href + '" alt="' + text + '"';
if (title) {
out += ' title="' + title + '"';
}
out += this.options.xhtml ? '/>' : '>';
return out;
};
Renderer.prototype.text = function (text) {
return text;
};
/**
* Parsing & Compiling
*/
function Parser(options) {
this.tokens = [];
this.token = null;
this.options = options || marked.defaults;
this.options.renderer = this.options.renderer || new Renderer();
this.renderer = this.options.renderer;
this.renderer.options = this.options;
}
/**
* Static Parse Method
*/
Parser.parse = function (src, options, renderer) {
var parser = new Parser(options, renderer);
return parser.parse(src);
};
/**
* Parse Loop
*/
Parser.prototype.parse = function (src) {
this.inline = new InlineLexer(src.links, this.options, this.renderer);
this.tokens = src.reverse();
var out = '';
while (this.next()) {
out += this.tok();
}
return out;
};
/**
* Next Token
*/
Parser.prototype.next = function () {
return this.token = this.tokens.pop();
};
/**
* Preview Next Token
*/
Parser.prototype.peek = function () {
return this.tokens[this.tokens.length - 1] || 0;
};
/**
* Parse Text Tokens
*/
Parser.prototype.parseText = function () {
var body = this.token.text;
while (this.peek().type === 'text') {
body += '\n' + this.next().text;
}
return this.inline.output(body);
};
/**
* Parse Current Token
*/
Parser.prototype.tok = function () {
switch (this.token.type) {
case 'space':
{
return '';
}
case 'hr':
{
return this.renderer.hr();
}
case 'heading':
{
return this.renderer.heading(this.inline.output(this.token.text), this.token.depth, this.token.text);
}
case 'code':
{
return this.renderer.code(this.token.text, this.token.lang, this.token.escaped);
}
case 'table':
{
var header = '',
body = '',
i,
row,
cell,
flags,
j;
// header
cell = '';
for (i = 0; i < this.token.header.length; i++) {
flags = { header: true, align: this.token.align[i] };
cell += this.renderer.tablecell(this.inline.output(this.token.header[i]), { header: true, align: this.token.align[i] });
}
header += this.renderer.tablerow(cell);
for (i = 0; i < this.token.cells.length; i++) {
row = this.token.cells[i];
cell = '';
for (j = 0; j < row.length; j++) {
cell += this.renderer.tablecell(this.inline.output(row[j]), { header: false, align: this.token.align[j] });
}
body += this.renderer.tablerow(cell);
}
return this.renderer.table(header, body);
}
case 'blockquote_start':
{
var body = '';
while (this.next().type !== 'blockquote_end') {
body += this.tok();
}
return this.renderer.blockquote(body);
}
case 'list_start':
{
var body = '',
ordered = this.token.ordered;
while (this.next().type !== 'list_end') {
body += this.tok();
}
return this.renderer.list(body, ordered);
}
case 'list_item_start':
{
var body = '';
while (this.next().type !== 'list_item_end') {
body += this.token.type === 'text' ? this.parseText() : this.tok();
}
return this.renderer.listitem(body);
}
case 'loose_item_start':
{
var body = '';
while (this.next().type !== 'list_item_end') {
body += this.tok();
}
return this.renderer.listitem(body);
}
case 'html':
{
var html = !this.token.pre && !this.options.pedantic ? this.inline.output(this.token.text) : this.token.text;
return this.renderer.html(html);
}
case 'paragraph':
{
return this.renderer.paragraph(this.inline.output(this.token.text));
}
case 'text':
{
return this.renderer.paragraph(this.parseText());
}
}
};
/**
* Helpers
*/
function escape(html, encode) {
return html.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
}
function unescape(html) {
// explicitly match decimal, hex, and named HTML entities
return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, function (_, n) {
n = n.toLowerCase();
if (n === 'colon') return ':';
if (n.charAt(0) === '#') {
return n.charAt(1) === 'x' ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1));
}
return '';
});
}
function replace(regex, opt) {
regex = regex.source;
opt = opt || '';
return function self(name, val) {
if (!name) return new RegExp(regex, opt);
val = val.source || val;
val = val.replace(/(^|[^\[])\^/g, '$1');
regex = regex.replace(name, val);
return self;
};
}
function resolveUrl(base, href) {
if (!baseUrls[' ' + base]) {
// we can ignore everything in base after the last slash of its path component,
// but we might need to add _that_
// https://tools.ietf.org/html/rfc3986#section-3
if (/^[^:]+:\/*[^/]*$/.test(base)) {
baseUrls[' ' + base] = base + '/';
} else {
baseUrls[' ' + base] = base.replace(/[^/]*$/, '');
}
}
base = baseUrls[' ' + base];
if (href.slice(0, 2) === '//') {
return base.replace(/:[\s\S]*/, ':') + href;
} else if (href.charAt(0) === '/') {
return base.replace(/(:\/*[^/]*)[\s\S]*/, '$1') + href;
} else {
return base + href;
}
}
var baseUrls = {};
var originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
function noop() {}
noop.exec = noop;
function merge(obj) {
var i = 1,
target,
key;
for (; i < arguments.length; i++) {
target = arguments[i];
for (key in target) {
if (Object.prototype.hasOwnProperty.call(target, key)) {
obj[key] = target[key];
}
}
}
return obj;
}
/**
* Marked
*/
function marked(src, opt, callback) {
if (callback || typeof opt === 'function') {
if (!callback) {
callback = opt;
opt = null;
}
opt = merge({}, marked.defaults, opt || {});
var highlight = opt.highlight,
tokens,
pending,
i = 0;
try {
tokens = Lexer.lex(src, opt);
} catch (e) {
return callback(e);
}
pending = tokens.length;
var done = function done(err) {
if (err) {
opt.highlight = highlight;
return callback(err);
}
var out;
try {
out = Parser.parse(tokens, opt);
} catch (e) {
err = e;
}
opt.highlight = highlight;
return err ? callback(err) : callback(null, out);
};
if (!highlight || highlight.length < 3) {
return done();
}
delete opt.highlight;
if (!pending) return done();
for (; i < tokens.length; i++) {
(function (token) {
if (token.type !== 'code') {
return --pending || done();
}
return highlight(token.text, token.lang, function (err, code) {
if (err) return done(err);
if (code == null || code === token.text) {
return --pending || done();
}
token.text = code;
token.escaped = true;
--pending || done();
});
})(tokens[i]);
}
return;
}
try {
if (opt) opt = merge({}, marked.defaults, opt);
return Parser.parse(Lexer.lex(src, opt), opt);
} catch (e) {
e.message += '\nPlease report this to https://github.com/chjj/marked.';
if ((opt || marked.defaults).silent) {
return '<p>An error occurred:</p><pre>' + escape(e.message + '', true) + '</pre>';
}
throw e;
}
}
/**
* Options
*/
marked.options = marked.setOptions = function (opt) {
merge(marked.defaults, opt);
return marked;
};
marked.defaults = {
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
sanitizer: null,
mangle: true,
smartLists: false,
silent: false,
highlight: null,
langPrefix: 'lang-',
smartypants: false,
headerPrefix: '',
renderer: new Renderer(),
xhtml: false,
baseUrl: null
};
/**
* Expose
*/
marked.Parser = Parser;
marked.parser = Parser.parse;
marked.Renderer = Renderer;
marked.Lexer = Lexer;
marked.lexer = Lexer.lex;
marked.InlineLexer = InlineLexer;
marked.inlineLexer = InlineLexer.output;
marked.parse = marked;
if (typeof module !== 'undefined' && (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {
module.exports = marked;
} else if (typeof define === 'function' && define.amd) {
define(function () {
return marked;
});
} else {
this.marked = marked;
}
}).call(function () {
return this || (typeof window !== 'undefined' ? window : global);
}());
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],278:[function(require,module,exports){
(function (Buffer){
'use strict';
var inherits = require('inherits');
var HashBase = require('hash-base');
var ARRAY16 = new Array(16);
function MD5() {
HashBase.call(this, 64);
// state
this._a = 0x67452301;
this._b = 0xefcdab89;
this._c = 0x98badcfe;
this._d = 0x10325476;
}
inherits(MD5, HashBase);
MD5.prototype._update = function () {
var M = ARRAY16;
for (var i = 0; i < 16; ++i) {
M[i] = this._block.readInt32LE(i * 4);
}var a = this._a;
var b = this._b;
var c = this._c;
var d = this._d;
a = fnF(a, b, c, d, M[0], 0xd76aa478, 7);
d = fnF(d, a, b, c, M[1], 0xe8c7b756, 12);
c = fnF(c, d, a, b, M[2], 0x242070db, 17);
b = fnF(b, c, d, a, M[3], 0xc1bdceee, 22);
a = fnF(a, b, c, d, M[4], 0xf57c0faf, 7);
d = fnF(d, a, b, c, M[5], 0x4787c62a, 12);
c = fnF(c, d, a, b, M[6], 0xa8304613, 17);
b = fnF(b, c, d, a, M[7], 0xfd469501, 22);
a = fnF(a, b, c, d, M[8], 0x698098d8, 7);
d = fnF(d, a, b, c, M[9], 0x8b44f7af, 12);
c = fnF(c, d, a, b, M[10], 0xffff5bb1, 17);
b = fnF(b, c, d, a, M[11], 0x895cd7be, 22);
a = fnF(a, b, c, d, M[12], 0x6b901122, 7);
d = fnF(d, a, b, c, M[13], 0xfd987193, 12);
c = fnF(c, d, a, b, M[14], 0xa679438e, 17);
b = fnF(b, c, d, a, M[15], 0x49b40821, 22);
a = fnG(a, b, c, d, M[1], 0xf61e2562, 5);
d = fnG(d, a, b, c, M[6], 0xc040b340, 9);
c = fnG(c, d, a, b, M[11], 0x265e5a51, 14);
b = fnG(b, c, d, a, M[0], 0xe9b6c7aa, 20);
a = fnG(a, b, c, d, M[5], 0xd62f105d, 5);
d = fnG(d, a, b, c, M[10], 0x02441453, 9);
c = fnG(c, d, a, b, M[15], 0xd8a1e681, 14);
b = fnG(b, c, d, a, M[4], 0xe7d3fbc8, 20);
a = fnG(a, b, c, d, M[9], 0x21e1cde6, 5);
d = fnG(d, a, b, c, M[14], 0xc33707d6, 9);
c = fnG(c, d, a, b, M[3], 0xf4d50d87, 14);
b = fnG(b, c, d, a, M[8], 0x455a14ed, 20);
a = fnG(a, b, c, d, M[13], 0xa9e3e905, 5);
d = fnG(d, a, b, c, M[2], 0xfcefa3f8, 9);
c = fnG(c, d, a, b, M[7], 0x676f02d9, 14);
b = fnG(b, c, d, a, M[12], 0x8d2a4c8a, 20);
a = fnH(a, b, c, d, M[5], 0xfffa3942, 4);
d = fnH(d, a, b, c, M[8], 0x8771f681, 11);
c = fnH(c, d, a, b, M[11], 0x6d9d6122, 16);
b = fnH(b, c, d, a, M[14], 0xfde5380c, 23);
a = fnH(a, b, c, d, M[1], 0xa4beea44, 4);
d = fnH(d, a, b, c, M[4], 0x4bdecfa9, 11);
c = fnH(c, d, a, b, M[7], 0xf6bb4b60, 16);
b = fnH(b, c, d, a, M[10], 0xbebfbc70, 23);
a = fnH(a, b, c, d, M[13], 0x289b7ec6, 4);
d = fnH(d, a, b, c, M[0], 0xeaa127fa, 11);
c = fnH(c, d, a, b, M[3], 0xd4ef3085, 16);
b = fnH(b, c, d, a, M[6], 0x04881d05, 23);
a = fnH(a, b, c, d, M[9], 0xd9d4d039, 4);
d = fnH(d, a, b, c, M[12], 0xe6db99e5, 11);
c = fnH(c, d, a, b, M[15], 0x1fa27cf8, 16);
b = fnH(b, c, d, a, M[2], 0xc4ac5665, 23);
a = fnI(a, b, c, d, M[0], 0xf4292244, 6);
d = fnI(d, a, b, c, M[7], 0x432aff97, 10);
c = fnI(c, d, a, b, M[14], 0xab9423a7, 15);
b = fnI(b, c, d, a, M[5], 0xfc93a039, 21);
a = fnI(a, b, c, d, M[12], 0x655b59c3, 6);
d = fnI(d, a, b, c, M[3], 0x8f0ccc92, 10);
c = fnI(c, d, a, b, M[10], 0xffeff47d, 15);
b = fnI(b, c, d, a, M[1], 0x85845dd1, 21);
a = fnI(a, b, c, d, M[8], 0x6fa87e4f, 6);
d = fnI(d, a, b, c, M[15], 0xfe2ce6e0, 10);
c = fnI(c, d, a, b, M[6], 0xa3014314, 15);
b = fnI(b, c, d, a, M[13], 0x4e0811a1, 21);
a = fnI(a, b, c, d, M[4], 0xf7537e82, 6);
d = fnI(d, a, b, c, M[11], 0xbd3af235, 10);
c = fnI(c, d, a, b, M[2], 0x2ad7d2bb, 15);
b = fnI(b, c, d, a, M[9], 0xeb86d391, 21);
this._a = this._a + a | 0;
this._b = this._b + b | 0;
this._c = this._c + c | 0;
this._d = this._d + d | 0;
};
MD5.prototype._digest = function () {
// create padding and handle blocks
this._block[this._blockOffset++] = 0x80;
if (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();
// produce result
var buffer = new Buffer(16);
buffer.writeInt32LE(this._a, 0);
buffer.writeInt32LE(this._b, 4);
buffer.writeInt32LE(this._c, 8);
buffer.writeInt32LE(this._d, 12);
return buffer;
};
function rotl(x, n) {
return x << n | x >>> 32 - n;
}
function fnF(a, b, c, d, m, k, s) {
return rotl(a + (b & c | ~b & d) + m + k | 0, s) + b | 0;
}
function fnG(a, b, c, d, m, k, s) {
return rotl(a + (b & d | c & ~d) + m + k | 0, s) + b | 0;
}
function fnH(a, b, c, d, m, k, s) {
return rotl(a + (b ^ c ^ d) + m + k | 0, s) + b | 0;
}
function fnI(a, b, c, d, m, k, s) {
return rotl(a + (c ^ (b | ~d)) + m + k | 0, s) + b | 0;
}
module.exports = MD5;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"hash-base":279,"inherits":266}],279:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var Transform = require('stream').Transform;
var inherits = require('inherits');
function throwIfNotStringOrBuffer(val, prefix) {
if (!Buffer.isBuffer(val) && typeof val !== 'string') {
throw new TypeError(prefix + ' must be a string or a buffer');
}
}
function HashBase(blockSize) {
Transform.call(this);
this._block = Buffer.allocUnsafe(blockSize);
this._blockSize = blockSize;
this._blockOffset = 0;
this._length = [0, 0, 0, 0];
this._finalized = false;
}
inherits(HashBase, Transform);
HashBase.prototype._transform = function (chunk, encoding, callback) {
var error = null;
try {
this.update(chunk, encoding);
} catch (err) {
error = err;
}
callback(error);
};
HashBase.prototype._flush = function (callback) {
var error = null;
try {
this.push(this.digest());
} catch (err) {
error = err;
}
callback(error);
};
HashBase.prototype.update = function (data, encoding) {
throwIfNotStringOrBuffer(data, 'Data');
if (this._finalized) throw new Error('Digest already called');
if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding);
// consume data
var block = this._block;
var offset = 0;
while (this._blockOffset + data.length - offset >= this._blockSize) {
for (var i = this._blockOffset; i < this._blockSize;) {
block[i++] = data[offset++];
}this._update();
this._blockOffset = 0;
}
while (offset < data.length) {
block[this._blockOffset++] = data[offset++];
} // update length
for (var j = 0, carry = data.length * 8; carry > 0; ++j) {
this._length[j] += carry;
carry = this._length[j] / 0x0100000000 | 0;
if (carry > 0) this._length[j] -= 0x0100000000 * carry;
}
return this;
};
HashBase.prototype._update = function () {
throw new Error('_update is not implemented');
};
HashBase.prototype.digest = function (encoding) {
if (this._finalized) throw new Error('Digest already called');
this._finalized = true;
var digest = this._digest();
if (encoding !== undefined) digest = digest.toString(encoding);
// reset state
this._block.fill(0);
this._blockOffset = 0;
for (var i = 0; i < 4; ++i) {
this._length[i] = 0;
}return digest;
};
HashBase.prototype._digest = function () {
throw new Error('_digest is not implemented');
};
module.exports = HashBase;
},{"inherits":266,"safe-buffer":319,"stream":335}],280:[function(require,module,exports){
'use strict';
var bn = require('bn.js');
var brorand = require('brorand');
function MillerRabin(rand) {
this.rand = rand || new brorand.Rand();
}
module.exports = MillerRabin;
MillerRabin.create = function create(rand) {
return new MillerRabin(rand);
};
MillerRabin.prototype._randbelow = function _randbelow(n) {
var len = n.bitLength();
var min_bytes = Math.ceil(len / 8);
// Generage random bytes until a number less than n is found.
// This ensures that 0..n-1 have an equal probability of being selected.
do {
var a = new bn(this.rand.generate(min_bytes));
} while (a.cmp(n) >= 0);
return a;
};
MillerRabin.prototype._randrange = function _randrange(start, stop) {
// Generate a random number greater than or equal to start and less than stop.
var size = stop.sub(start);
return start.add(this._randbelow(size));
};
MillerRabin.prototype.test = function test(n, k, cb) {
var len = n.bitLength();
var red = bn.mont(n);
var rone = new bn(1).toRed(red);
if (!k) k = Math.max(1, len / 48 | 0);
// Find d and s, (n - 1) = (2 ^ s) * d;
var n1 = n.subn(1);
for (var s = 0; !n1.testn(s); s++) {}
var d = n.shrn(s);
var rn1 = n1.toRed(red);
var prime = true;
for (; k > 0; k--) {
var a = this._randrange(new bn(2), n1);
if (cb) cb(a);
var x = a.toRed(red).redPow(d);
if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue;
for (var i = 1; i < s; i++) {
x = x.redSqr();
if (x.cmp(rone) === 0) return false;
if (x.cmp(rn1) === 0) break;
}
if (i === s) return false;
}
return prime;
};
MillerRabin.prototype.getDivisor = function getDivisor(n, k) {
var len = n.bitLength();
var red = bn.mont(n);
var rone = new bn(1).toRed(red);
if (!k) k = Math.max(1, len / 48 | 0);
// Find d and s, (n - 1) = (2 ^ s) * d;
var n1 = n.subn(1);
for (var s = 0; !n1.testn(s); s++) {}
var d = n.shrn(s);
var rn1 = n1.toRed(red);
for (; k > 0; k--) {
var a = this._randrange(new bn(2), n1);
var g = n.gcd(a);
if (g.cmpn(1) !== 0) return g;
var x = a.toRed(red).redPow(d);
if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue;
for (var i = 1; i < s; i++) {
x = x.redSqr();
if (x.cmp(rone) === 0) return x.fromRed().subn(1).gcd(n);
if (x.cmp(rn1) === 0) break;
}
if (i === s) {
x = x.redSqr();
return x.fromRed().subn(1).gcd(n);
}
}
return false;
};
},{"bn.js":169,"brorand":170}],281:[function(require,module,exports){
'use strict';
module.exports = assert;
function assert(val, msg) {
if (!val) throw new Error(msg || 'Assertion failed');
}
assert.equal = function assertEqual(l, r, msg) {
if (l != r) throw new Error(msg || 'Assertion failed: ' + l + ' != ' + r);
};
},{}],282:[function(require,module,exports){
'use strict';
var utils = exports;
function toArray(msg, enc) {
if (Array.isArray(msg)) return msg.slice();
if (!msg) return [];
var res = [];
if (typeof msg !== 'string') {
for (var i = 0; i < msg.length; i++) {
res[i] = msg[i] | 0;
}return res;
}
if (enc === 'hex') {
msg = msg.replace(/[^a-z0-9]+/ig, '');
if (msg.length % 2 !== 0) msg = '0' + msg;
for (var i = 0; i < msg.length; i += 2) {
res.push(parseInt(msg[i] + msg[i + 1], 16));
}
} else {
for (var i = 0; i < msg.length; i++) {
var c = msg.charCodeAt(i);
var hi = c >> 8;
var lo = c & 0xff;
if (hi) res.push(hi, lo);else res.push(lo);
}
}
return res;
}
utils.toArray = toArray;
function zero2(word) {
if (word.length === 1) return '0' + word;else return word;
}
utils.zero2 = zero2;
function toHex(msg) {
var res = '';
for (var i = 0; i < msg.length; i++) {
res += zero2(msg[i].toString(16));
}return res;
}
utils.toHex = toHex;
utils.encode = function encode(arr, enc) {
if (enc === 'hex') return toHex(arr);else return arr;
};
},{}],283:[function(require,module,exports){
module.exports={"2.16.840.1.101.3.4.1.1": "aes-128-ecb",
"2.16.840.1.101.3.4.1.2": "aes-128-cbc",
"2.16.840.1.101.3.4.1.3": "aes-128-ofb",
"2.16.840.1.101.3.4.1.4": "aes-128-cfb",
"2.16.840.1.101.3.4.1.21": "aes-192-ecb",
"2.16.840.1.101.3.4.1.22": "aes-192-cbc",
"2.16.840.1.101.3.4.1.23": "aes-192-ofb",
"2.16.840.1.101.3.4.1.24": "aes-192-cfb",
"2.16.840.1.101.3.4.1.41": "aes-256-ecb",
"2.16.840.1.101.3.4.1.42": "aes-256-cbc",
"2.16.840.1.101.3.4.1.43": "aes-256-ofb",
"2.16.840.1.101.3.4.1.44": "aes-256-cfb"
}
},{}],284:[function(require,module,exports){
// from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js
// Fedor, you are amazing.
'use strict';
var asn1 = require('asn1.js');
exports.certificate = require('./certificate');
var RSAPrivateKey = asn1.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());
});
exports.RSAPrivateKey = RSAPrivateKey;
var RSAPublicKey = asn1.define('RSAPublicKey', function () {
this.seq().obj(this.key('modulus').int(), this.key('publicExponent').int());
});
exports.RSAPublicKey = RSAPublicKey;
var PublicKey = asn1.define('SubjectPublicKeyInfo', function () {
this.seq().obj(this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPublicKey').bitstr());
});
exports.PublicKey = PublicKey;
var AlgorithmIdentifier = asn1.define('AlgorithmIdentifier', function () {
this.seq().obj(this.key('algorithm').objid(), this.key('none').null_().optional(), this.key('curve').objid().optional(), this.key('params').seq().obj(this.key('p').int(), this.key('q').int(), this.key('g').int()).optional());
});
var PrivateKeyInfo = asn1.define('PrivateKeyInfo', function () {
this.seq().obj(this.key('version').int(), this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPrivateKey').octstr());
});
exports.PrivateKey = PrivateKeyInfo;
var EncryptedPrivateKeyInfo = asn1.define('EncryptedPrivateKeyInfo', function () {
this.seq().obj(this.key('algorithm').seq().obj(this.key('id').objid(), this.key('decrypt').seq().obj(this.key('kde').seq().obj(this.key('id').objid(), this.key('kdeparams').seq().obj(this.key('salt').octstr(), this.key('iters').int())), this.key('cipher').seq().obj(this.key('algo').objid(), this.key('iv').octstr()))), this.key('subjectPrivateKey').octstr());
});
exports.EncryptedPrivateKey = EncryptedPrivateKeyInfo;
var DSAPrivateKey = asn1.define('DSAPrivateKey', function () {
this.seq().obj(this.key('version').int(), this.key('p').int(), this.key('q').int(), this.key('g').int(), this.key('pub_key').int(), this.key('priv_key').int());
});
exports.DSAPrivateKey = DSAPrivateKey;
exports.DSAparam = asn1.define('DSAparam', function () {
this.int();
});
var ECPrivateKey = asn1.define('ECPrivateKey', function () {
this.seq().obj(this.key('version').int(), this.key('privateKey').octstr(), this.key('parameters').optional().explicit(0).use(ECParameters), this.key('publicKey').optional().explicit(1).bitstr());
});
exports.ECPrivateKey = ECPrivateKey;
var ECParameters = asn1.define('ECParameters', function () {
this.choice({
namedCurve: this.objid()
});
});
exports.signature = asn1.define('signature', function () {
this.seq().obj(this.key('r').int(), this.key('s').int());
});
},{"./certificate":285,"asn1.js":142}],285:[function(require,module,exports){
// from https://github.com/Rantanen/node-dtls/blob/25a7dc861bda38cfeac93a723500eea4f0ac2e86/Certificate.js
// thanks to @Rantanen
'use strict';
var asn = require('asn1.js');
var Time = asn.define('Time', function () {
this.choice({
utcTime: this.utctime(),
generalTime: this.gentime()
});
});
var AttributeTypeValue = asn.define('AttributeTypeValue', function () {
this.seq().obj(this.key('type').objid(), this.key('value').any());
});
var AlgorithmIdentifier = asn.define('AlgorithmIdentifier', function () {
this.seq().obj(this.key('algorithm').objid(), this.key('parameters').optional());
});
var SubjectPublicKeyInfo = asn.define('SubjectPublicKeyInfo', function () {
this.seq().obj(this.key('algorithm').use(AlgorithmIdentifier), this.key('subjectPublicKey').bitstr());
});
var RelativeDistinguishedName = asn.define('RelativeDistinguishedName', function () {
this.setof(AttributeTypeValue);
});
var RDNSequence = asn.define('RDNSequence', function () {
this.seqof(RelativeDistinguishedName);
});
var Name = asn.define('Name', function () {
this.choice({
rdnSequence: this.use(RDNSequence)
});
});
var Validity = asn.define('Validity', function () {
this.seq().obj(this.key('notBefore').use(Time), this.key('notAfter').use(Time));
});
var Extension = asn.define('Extension', function () {
this.seq().obj(this.key('extnID').objid(), this.key('critical').bool().def(false), this.key('extnValue').octstr());
});
var TBSCertificate = asn.define('TBSCertificate', function () {
this.seq().obj(this.key('version').explicit(0).int(), this.key('serialNumber').int(), this.key('signature').use(AlgorithmIdentifier), this.key('issuer').use(Name), this.key('validity').use(Validity), this.key('subject').use(Name), this.key('subjectPublicKeyInfo').use(SubjectPublicKeyInfo), this.key('issuerUniqueID').implicit(1).bitstr().optional(), this.key('subjectUniqueID').implicit(2).bitstr().optional(), this.key('extensions').explicit(3).seqof(Extension).optional());
});
var X509Certificate = asn.define('X509Certificate', function () {
this.seq().obj(this.key('tbsCertificate').use(TBSCertificate), this.key('signatureAlgorithm').use(AlgorithmIdentifier), this.key('signatureValue').bitstr());
});
module.exports = X509Certificate;
},{"asn1.js":142}],286:[function(require,module,exports){
(function (Buffer){
'use strict';
// adapted from https://github.com/apatil/pemstrip
var findProc = /Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m;
var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m;
var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m;
var evp = require('evp_bytestokey');
var ciphers = require('browserify-aes');
module.exports = function (okey, password) {
var key = okey.toString();
var match = key.match(findProc);
var decrypted;
if (!match) {
var match2 = key.match(fullRegex);
decrypted = new Buffer(match2[2].replace(/\r?\n/g, ''), 'base64');
} else {
var suite = 'aes' + match[1];
var iv = new Buffer(match[2], 'hex');
var cipherText = new Buffer(match[3].replace(/\r?\n/g, ''), 'base64');
var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key;
var out = [];
var cipher = ciphers.createDecipheriv(suite, cipherKey, iv);
out.push(cipher.update(cipherText));
out.push(cipher.final());
decrypted = Buffer.concat(out);
}
var tag = key.match(startRegex)[1];
return {
tag: tag,
data: decrypted
};
};
}).call(this,require("buffer").Buffer)
},{"browserify-aes":174,"buffer":201,"evp_bytestokey":246}],287:[function(require,module,exports){
(function (Buffer){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var asn1 = require('./asn1');
var aesid = require('./aesid.json');
var fixProc = require('./fixProc');
var ciphers = require('browserify-aes');
var compat = require('pbkdf2');
module.exports = parseKeys;
function parseKeys(buffer) {
var password;
if ((typeof buffer === 'undefined' ? 'undefined' : _typeof(buffer)) === 'object' && !Buffer.isBuffer(buffer)) {
password = buffer.passphrase;
buffer = buffer.key;
}
if (typeof buffer === 'string') {
buffer = new Buffer(buffer);
}
var stripped = fixProc(buffer, password);
var type = stripped.tag;
var data = stripped.data;
var subtype, ndata;
switch (type) {
case 'CERTIFICATE':
ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo;
// falls through
case 'PUBLIC KEY':
if (!ndata) {
ndata = asn1.PublicKey.decode(data, 'der');
}
subtype = ndata.algorithm.algorithm.join('.');
switch (subtype) {
case '1.2.840.113549.1.1.1':
return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der');
case '1.2.840.10045.2.1':
ndata.subjectPrivateKey = ndata.subjectPublicKey;
return {
type: 'ec',
data: ndata
};
case '1.2.840.10040.4.1':
ndata.algorithm.params.pub_key = asn1.DSAparam.decode(ndata.subjectPublicKey.data, 'der');
return {
type: 'dsa',
data: ndata.algorithm.params
};
default:
throw new Error('unknown key id ' + subtype);
}
throw new Error('unknown key type ' + type);
case 'ENCRYPTED PRIVATE KEY':
data = asn1.EncryptedPrivateKey.decode(data, 'der');
data = decrypt(data, password);
// falls through
case 'PRIVATE KEY':
ndata = asn1.PrivateKey.decode(data, 'der');
subtype = ndata.algorithm.algorithm.join('.');
switch (subtype) {
case '1.2.840.113549.1.1.1':
return asn1.RSAPrivateKey.decode(ndata.subjectPrivateKey, 'der');
case '1.2.840.10045.2.1':
return {
curve: ndata.algorithm.curve,
privateKey: asn1.ECPrivateKey.decode(ndata.subjectPrivateKey, 'der').privateKey
};
case '1.2.840.10040.4.1':
ndata.algorithm.params.priv_key = asn1.DSAparam.decode(ndata.subjectPrivateKey, 'der');
return {
type: 'dsa',
params: ndata.algorithm.params
};
default:
throw new Error('unknown key id ' + subtype);
}
throw new Error('unknown key type ' + type);
case 'RSA PUBLIC KEY':
return asn1.RSAPublicKey.decode(data, 'der');
case 'RSA PRIVATE KEY':
return asn1.RSAPrivateKey.decode(data, 'der');
case 'DSA PRIVATE KEY':
return {
type: 'dsa',
params: asn1.DSAPrivateKey.decode(data, 'der')
};
case 'EC PRIVATE KEY':
data = asn1.ECPrivateKey.decode(data, 'der');
return {
curve: data.parameters.value,
privateKey: data.privateKey
};
default:
throw new Error('unknown key type ' + type);
}
}
parseKeys.signature = asn1.signature;
function decrypt(data, password) {
var salt = data.algorithm.decrypt.kde.kdeparams.salt;
var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10);
var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')];
var iv = data.algorithm.decrypt.cipher.iv;
var cipherText = data.subjectPrivateKey;
var keylen = parseInt(algo.split('-')[1], 10) / 8;
var key = compat.pbkdf2Sync(password, salt, iters, keylen);
var cipher = ciphers.createDecipheriv(algo, key, iv);
var out = [];
out.push(cipher.update(cipherText));
out.push(cipher.final());
return Buffer.concat(out);
}
}).call(this,require("buffer").Buffer)
},{"./aesid.json":283,"./asn1":284,"./fixProc":286,"browserify-aes":174,"buffer":201,"pbkdf2":288}],288:[function(require,module,exports){
'use strict';
exports.pbkdf2 = require('./lib/async');
exports.pbkdf2Sync = require('./lib/sync');
},{"./lib/async":289,"./lib/sync":292}],289:[function(require,module,exports){
(function (process,global){
'use strict';
var checkParameters = require('./precondition');
var defaultEncoding = require('./default-encoding');
var sync = require('./sync');
var Buffer = require('safe-buffer').Buffer;
var ZERO_BUF;
var subtle = global.crypto && global.crypto.subtle;
var toBrowser = {
'sha': 'SHA-1',
'sha-1': 'SHA-1',
'sha1': 'SHA-1',
'sha256': 'SHA-256',
'sha-256': 'SHA-256',
'sha384': 'SHA-384',
'sha-384': 'SHA-384',
'sha-512': 'SHA-512',
'sha512': 'SHA-512'
};
var checks = [];
function checkNative(algo) {
if (global.process && !global.process.browser) {
return Promise.resolve(false);
}
if (!subtle || !subtle.importKey || !subtle.deriveBits) {
return Promise.resolve(false);
}
if (checks[algo] !== undefined) {
return checks[algo];
}
ZERO_BUF = ZERO_BUF || Buffer.alloc(8);
var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function () {
return true;
}).catch(function () {
return false;
});
checks[algo] = prom;
return prom;
}
function browserPbkdf2(password, salt, iterations, length, algo) {
return subtle.importKey('raw', password, { name: 'PBKDF2' }, false, ['deriveBits']).then(function (key) {
return subtle.deriveBits({
name: 'PBKDF2',
salt: salt,
iterations: iterations,
hash: {
name: algo
}
}, key, length << 3);
}).then(function (res) {
return Buffer.from(res);
});
}
function resolvePromise(promise, callback) {
promise.then(function (out) {
process.nextTick(function () {
callback(null, out);
});
}, function (e) {
process.nextTick(function () {
callback(e);
});
});
}
module.exports = function (password, salt, iterations, keylen, digest, callback) {
if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding);
if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding);
checkParameters(iterations, keylen);
if (typeof digest === 'function') {
callback = digest;
digest = undefined;
}
if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2');
digest = digest || 'sha1';
var algo = toBrowser[digest.toLowerCase()];
if (!algo || typeof global.Promise !== 'function') {
return process.nextTick(function () {
var out;
try {
out = sync(password, salt, iterations, keylen, digest);
} catch (e) {
return callback(e);
}
callback(null, out);
});
}
resolvePromise(checkNative(algo).then(function (resp) {
if (resp) {
return browserPbkdf2(password, salt, iterations, keylen, algo);
} else {
return sync(password, salt, iterations, keylen, digest);
}
}), callback);
};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./default-encoding":290,"./precondition":291,"./sync":292,"_process":294,"safe-buffer":319}],290:[function(require,module,exports){
(function (process){
'use strict';
var defaultEncoding;
/* istanbul ignore next */
if (process.browser) {
defaultEncoding = 'utf-8';
} else {
var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10);
defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary';
}
module.exports = defaultEncoding;
}).call(this,require('_process'))
},{"_process":294}],291:[function(require,module,exports){
'use strict';
var MAX_ALLOC = Math.pow(2, 30) - 1; // default in iojs
module.exports = function (iterations, keylen) {
if (typeof iterations !== 'number') {
throw new TypeError('Iterations not a number');
}
if (iterations < 0) {
throw new TypeError('Bad iterations');
}
if (typeof keylen !== 'number') {
throw new TypeError('Key length not a number');
}
if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) {
/* eslint no-self-compare: 0 */
throw new TypeError('Bad key length');
}
};
},{}],292:[function(require,module,exports){
'use strict';
var md5 = require('create-hash/md5');
var rmd160 = require('ripemd160');
var sha = require('sha.js');
var checkParameters = require('./precondition');
var defaultEncoding = require('./default-encoding');
var Buffer = require('safe-buffer').Buffer;
var ZEROS = Buffer.alloc(128);
var sizes = {
md5: 16,
sha1: 20,
sha224: 28,
sha256: 32,
sha384: 48,
sha512: 64,
rmd160: 20,
ripemd160: 20
};
function Hmac(alg, key, saltLen) {
var hash = getDigest(alg);
var blocksize = alg === 'sha512' || alg === 'sha384' ? 128 : 64;
if (key.length > blocksize) {
key = hash(key);
} else if (key.length < blocksize) {
key = Buffer.concat([key, ZEROS], blocksize);
}
var ipad = Buffer.allocUnsafe(blocksize + sizes[alg]);
var opad = Buffer.allocUnsafe(blocksize + sizes[alg]);
for (var i = 0; i < blocksize; i++) {
ipad[i] = key[i] ^ 0x36;
opad[i] = key[i] ^ 0x5C;
}
var ipad1 = Buffer.allocUnsafe(blocksize + saltLen + 4);
ipad.copy(ipad1, 0, 0, blocksize);
this.ipad1 = ipad1;
this.ipad2 = ipad;
this.opad = opad;
this.alg = alg;
this.blocksize = blocksize;
this.hash = hash;
this.size = sizes[alg];
}
Hmac.prototype.run = function (data, ipad) {
data.copy(ipad, this.blocksize);
var h = this.hash(ipad);
h.copy(this.opad, this.blocksize);
return this.hash(this.opad);
};
function getDigest(alg) {
function shaFunc(data) {
return sha(alg).update(data).digest();
}
if (alg === 'rmd160' || alg === 'ripemd160') return rmd160;
if (alg === 'md5') return md5;
return shaFunc;
}
function pbkdf2(password, salt, iterations, keylen, digest) {
if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding);
if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding);
checkParameters(iterations, keylen);
digest = digest || 'sha1';
var hmac = new Hmac(digest, password, salt.length);
var DK = Buffer.allocUnsafe(keylen);
var block1 = Buffer.allocUnsafe(salt.length + 4);
salt.copy(block1, 0, 0, salt.length);
var destPos = 0;
var hLen = sizes[digest];
var l = Math.ceil(keylen / hLen);
for (var i = 1; i <= l; i++) {
block1.writeUInt32BE(i, salt.length);
var T = hmac.run(block1, hmac.ipad1);
var U = T;
for (var j = 1; j < iterations; j++) {
U = hmac.run(U, hmac.ipad2);
for (var k = 0; k < hLen; k++) {
T[k] ^= U[k];
}
}
T.copy(DK, destPos);
destPos += hLen;
}
return DK;
}
module.exports = pbkdf2;
},{"./default-encoding":290,"./precondition":291,"create-hash/md5":208,"ripemd160":317,"safe-buffer":319,"sha.js":328}],293:[function(require,module,exports){
(function (process){
'use strict';
if (!process.version || process.version.indexOf('v0.') === 0 || process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
module.exports = nextTick;
} else {
module.exports = process.nextTick;
}
function nextTick(fn, arg1, arg2, arg3) {
if (typeof fn !== 'function') {
throw new TypeError('"callback" argument must be a function');
}
var len = arguments.length;
var args, i;
switch (len) {
case 0:
case 1:
return process.nextTick(fn);
case 2:
return process.nextTick(function afterTickOne() {
fn.call(null, arg1);
});
case 3:
return process.nextTick(function afterTickTwo() {
fn.call(null, arg1, arg2);
});
case 4:
return process.nextTick(function afterTickThree() {
fn.call(null, arg1, arg2, arg3);
});
default:
args = new Array(len - 1);
i = 0;
while (i < args.length) {
args[i++] = arguments[i];
}
return process.nextTick(function afterTick() {
fn.apply(null, args);
});
}
}
}).call(this,require('_process'))
},{"_process":294}],294:[function(require,module,exports){
'use strict';
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout() {
throw new Error('clearTimeout has not been defined');
}
(function () {
try {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === 'function') {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
})();
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch (e) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while (len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) {
return [];
};
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () {
return '/';
};
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function () {
return 0;
};
},{}],295:[function(require,module,exports){
'use strict';
exports.publicEncrypt = require('./publicEncrypt');
exports.privateDecrypt = require('./privateDecrypt');
exports.privateEncrypt = function privateEncrypt(key, buf) {
return exports.publicEncrypt(key, buf, true);
};
exports.publicDecrypt = function publicDecrypt(key, buf) {
return exports.privateDecrypt(key, buf, true);
};
},{"./privateDecrypt":297,"./publicEncrypt":298}],296:[function(require,module,exports){
(function (Buffer){
'use strict';
var createHash = require('create-hash');
module.exports = function (seed, len) {
var t = new Buffer('');
var i = 0,
c;
while (t.length < len) {
c = i2ops(i++);
t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]);
}
return t.slice(0, len);
};
function i2ops(c) {
var out = new Buffer(4);
out.writeUInt32BE(c, 0);
return out;
}
}).call(this,require("buffer").Buffer)
},{"buffer":201,"create-hash":206}],297:[function(require,module,exports){
(function (Buffer){
'use strict';
var parseKeys = require('parse-asn1');
var mgf = require('./mgf');
var xor = require('./xor');
var bn = require('bn.js');
var crt = require('browserify-rsa');
var createHash = require('create-hash');
var withPublic = require('./withPublic');
module.exports = function privateDecrypt(private_key, enc, reverse) {
var padding;
if (private_key.padding) {
padding = private_key.padding;
} else if (reverse) {
padding = 1;
} else {
padding = 4;
}
var key = parseKeys(private_key);
var k = key.modulus.byteLength();
if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) {
throw new Error('decryption error');
}
var msg;
if (reverse) {
msg = withPublic(new bn(enc), key);
} else {
msg = crt(enc, key);
}
var zBuffer = new Buffer(k - msg.length);
zBuffer.fill(0);
msg = Buffer.concat([zBuffer, msg], k);
if (padding === 4) {
return oaep(key, msg);
} else if (padding === 1) {
return pkcs1(key, msg, reverse);
} else if (padding === 3) {
return msg;
} else {
throw new Error('unknown padding');
}
};
function oaep(key, msg) {
var n = key.modulus;
var k = key.modulus.byteLength();
var mLen = msg.length;
var iHash = createHash('sha1').update(new Buffer('')).digest();
var hLen = iHash.length;
var hLen2 = 2 * hLen;
if (msg[0] !== 0) {
throw new Error('decryption error');
}
var maskedSeed = msg.slice(1, hLen + 1);
var maskedDb = msg.slice(hLen + 1);
var seed = xor(maskedSeed, mgf(maskedDb, hLen));
var db = xor(maskedDb, mgf(seed, k - hLen - 1));
if (compare(iHash, db.slice(0, hLen))) {
throw new Error('decryption error');
}
var i = hLen;
while (db[i] === 0) {
i++;
}
if (db[i++] !== 1) {
throw new Error('decryption error');
}
return db.slice(i);
}
function pkcs1(key, msg, reverse) {
var p1 = msg.slice(0, 2);
var i = 2;
var status = 0;
while (msg[i++] !== 0) {
if (i >= msg.length) {
status++;
break;
}
}
var ps = msg.slice(2, i - 1);
var p2 = msg.slice(i - 1, i);
if (p1.toString('hex') !== '0002' && !reverse || p1.toString('hex') !== '0001' && reverse) {
status++;
}
if (ps.length < 8) {
status++;
}
if (status) {
throw new Error('decryption error');
}
return msg.slice(i);
}
function compare(a, b) {
a = new Buffer(a);
b = new Buffer(b);
var dif = 0;
var len = a.length;
if (a.length !== b.length) {
dif++;
len = Math.min(a.length, b.length);
}
var i = -1;
while (++i < len) {
dif += a[i] ^ b[i];
}
return dif;
}
}).call(this,require("buffer").Buffer)
},{"./mgf":296,"./withPublic":299,"./xor":300,"bn.js":169,"browserify-rsa":192,"buffer":201,"create-hash":206,"parse-asn1":287}],298:[function(require,module,exports){
(function (Buffer){
'use strict';
var parseKeys = require('parse-asn1');
var randomBytes = require('randombytes');
var createHash = require('create-hash');
var mgf = require('./mgf');
var xor = require('./xor');
var bn = require('bn.js');
var withPublic = require('./withPublic');
var crt = require('browserify-rsa');
var constants = {
RSA_PKCS1_OAEP_PADDING: 4,
RSA_PKCS1_PADDIN: 1,
RSA_NO_PADDING: 3
};
module.exports = function publicEncrypt(public_key, msg, reverse) {
var padding;
if (public_key.padding) {
padding = public_key.padding;
} else if (reverse) {
padding = 1;
} else {
padding = 4;
}
var key = parseKeys(public_key);
var paddedMsg;
if (padding === 4) {
paddedMsg = oaep(key, msg);
} else if (padding === 1) {
paddedMsg = pkcs1(key, msg, reverse);
} else if (padding === 3) {
paddedMsg = new bn(msg);
if (paddedMsg.cmp(key.modulus) >= 0) {
throw new Error('data too long for modulus');
}
} else {
throw new Error('unknown padding');
}
if (reverse) {
return crt(paddedMsg, key);
} else {
return withPublic(paddedMsg, key);
}
};
function oaep(key, msg) {
var k = key.modulus.byteLength();
var mLen = msg.length;
var iHash = createHash('sha1').update(new Buffer('')).digest();
var hLen = iHash.length;
var hLen2 = 2 * hLen;
if (mLen > k - hLen2 - 2) {
throw new Error('message too long');
}
var ps = new Buffer(k - mLen - hLen2 - 2);
ps.fill(0);
var dblen = k - hLen - 1;
var seed = randomBytes(hLen);
var maskedDb = xor(Buffer.concat([iHash, ps, new Buffer([1]), msg], dblen), mgf(seed, dblen));
var maskedSeed = xor(seed, mgf(maskedDb, hLen));
return new bn(Buffer.concat([new Buffer([0]), maskedSeed, maskedDb], k));
}
function pkcs1(key, msg, reverse) {
var mLen = msg.length;
var k = key.modulus.byteLength();
if (mLen > k - 11) {
throw new Error('message too long');
}
var ps;
if (reverse) {
ps = new Buffer(k - mLen - 3);
ps.fill(0xff);
} else {
ps = nonZero(k - mLen - 3);
}
return new bn(Buffer.concat([new Buffer([0, reverse ? 1 : 2]), ps, new Buffer([0]), msg], k));
}
function nonZero(len, crypto) {
var out = new Buffer(len);
var i = 0;
var cache = randomBytes(len * 2);
var cur = 0;
var num;
while (i < len) {
if (cur === cache.length) {
cache = randomBytes(len * 2);
cur = 0;
}
num = cache[cur++];
if (num) {
out[i++] = num;
}
}
return out;
}
}).call(this,require("buffer").Buffer)
},{"./mgf":296,"./withPublic":299,"./xor":300,"bn.js":169,"browserify-rsa":192,"buffer":201,"create-hash":206,"parse-asn1":287,"randombytes":302}],299:[function(require,module,exports){
(function (Buffer){
'use strict';
var bn = require('bn.js');
function withPublic(paddedMsg, key) {
return new Buffer(paddedMsg.toRed(bn.mont(key.modulus)).redPow(new bn(key.publicExponent)).fromRed().toArray());
}
module.exports = withPublic;
}).call(this,require("buffer").Buffer)
},{"bn.js":169,"buffer":201}],300:[function(require,module,exports){
"use strict";
module.exports = function xor(a, b) {
var len = a.length;
var i = -1;
while (++i < len) {
a[i] ^= b[i];
}
return a;
};
},{}],301:[function(require,module,exports){
(function (global){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*! https://mths.be/punycode v1.4.1 by @mathias */
;(function (root) {
/** Detect free variables */
var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports && !exports.nodeType && exports;
var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && !module.nodeType && module;
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global;
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
root = freeGlobal;
}
/**
* The `punycode` object.
* @name punycode
* @type Object
*/
var punycode,
/** Highest positive signed 32-bit float value */
maxInt = 2147483647,
// aka. 0x7FFFFFFF or 2^31-1
/** Bootstring parameters */
base = 36,
tMin = 1,
tMax = 26,
skew = 38,
damp = 700,
initialBias = 72,
initialN = 128,
// 0x80
delimiter = '-',
// '\x2D'
/** Regular expressions */
regexPunycode = /^xn--/,
regexNonASCII = /[^\x20-\x7E]/,
// unprintable ASCII chars + non-ASCII chars
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g,
// RFC 3490 separators
/** Error messages */
errors = {
'overflow': 'Overflow: input needs wider integers to process',
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
'invalid-input': 'Invalid input'
},
/** Convenience shortcuts */
baseMinusTMin = base - tMin,
floor = Math.floor,
stringFromCharCode = String.fromCharCode,
/** Temporary variable */
key;
/*--------------------------------------------------------------------------*/
/**
* A generic error utility function.
* @private
* @param {String} type The error type.
* @returns {Error} Throws a `RangeError` with the applicable error message.
*/
function error(type) {
throw new RangeError(errors[type]);
}
/**
* A generic `Array#map` utility function.
* @private
* @param {Array} array The array to iterate over.
* @param {Function} callback The function that gets called for every array
* item.
* @returns {Array} A new array of values returned by the callback function.
*/
function map(array, fn) {
var length = array.length;
var result = [];
while (length--) {
result[length] = fn(array[length]);
}
return result;
}
/**
* A simple `Array#map`-like wrapper to work with domain name strings or email
* addresses.
* @private
* @param {String} domain The domain name or email address.
* @param {Function} callback The function that gets called for every
* character.
* @returns {Array} A new string of characters returned by the callback
* function.
*/
function mapDomain(string, fn) {
var parts = string.split('@');
var result = '';
if (parts.length > 1) {
// In email addresses, only the domain name should be punycoded. Leave
// the local part (i.e. everything up to `@`) intact.
result = parts[0] + '@';
string = parts[1];
}
// Avoid `split(regex)` for IE8 compatibility. See #17.
string = string.replace(regexSeparators, '\x2E');
var labels = string.split('.');
var encoded = map(labels, fn).join('.');
return result + encoded;
}
/**
* Creates an array containing the numeric code points of each Unicode
* character in the string. While JavaScript uses UCS-2 internally,
* this function will convert a pair of surrogate halves (each of which
* UCS-2 exposes as separate characters) into a single code point,
* matching UTF-16.
* @see `punycode.ucs2.encode`
* @see <https://mathiasbynens.be/notes/javascript-encoding>
* @memberOf punycode.ucs2
* @name decode
* @param {String} string The Unicode input string (UCS-2).
* @returns {Array} The new array of code points.
*/
function ucs2decode(string) {
var output = [],
counter = 0,
length = string.length,
value,
extra;
while (counter < length) {
value = string.charCodeAt(counter++);
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
// high surrogate, and there is a next character
extra = string.charCodeAt(counter++);
if ((extra & 0xFC00) == 0xDC00) {
// low surrogate
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
} else {
// unmatched surrogate; only append this code unit, in case the next
// code unit is the high surrogate of a surrogate pair
output.push(value);
counter--;
}
} else {
output.push(value);
}
}
return output;
}
/**
* Creates a string based on an array of numeric code points.
* @see `punycode.ucs2.decode`
* @memberOf punycode.ucs2
* @name encode
* @param {Array} codePoints The array of numeric code points.
* @returns {String} The new Unicode string (UCS-2).
*/
function ucs2encode(array) {
return map(array, function (value) {
var output = '';
if (value > 0xFFFF) {
value -= 0x10000;
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
value = 0xDC00 | value & 0x3FF;
}
output += stringFromCharCode(value);
return output;
}).join('');
}
/**
* Converts a basic code point into a digit/integer.
* @see `digitToBasic()`
* @private
* @param {Number} codePoint The basic numeric code point value.
* @returns {Number} The numeric value of a basic code point (for use in
* representing integers) in the range `0` to `base - 1`, or `base` if
* the code point does not represent a value.
*/
function basicToDigit(codePoint) {
if (codePoint - 48 < 10) {
return codePoint - 22;
}
if (codePoint - 65 < 26) {
return codePoint - 65;
}
if (codePoint - 97 < 26) {
return codePoint - 97;
}
return base;
}
/**
* Converts a digit/integer into a basic code point.
* @see `basicToDigit()`
* @private
* @param {Number} digit The numeric value of a basic code point.
* @returns {Number} The basic code point whose value (when used for
* representing integers) is `digit`, which needs to be in the range
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
* used; else, the lowercase form is used. The behavior is undefined
* if `flag` is non-zero and `digit` has no uppercase form.
*/
function digitToBasic(digit, flag) {
// 0..25 map to ASCII a..z or A..Z
// 26..35 map to ASCII 0..9
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
}
/**
* Bias adaptation function as per section 3.4 of RFC 3492.
* https://tools.ietf.org/html/rfc3492#section-3.4
* @private
*/
function adapt(delta, numPoints, firstTime) {
var k = 0;
delta = firstTime ? floor(delta / damp) : delta >> 1;
delta += floor(delta / numPoints);
for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
delta = floor(delta / baseMinusTMin);
}
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
}
/**
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
* symbols.
* @memberOf punycode
* @param {String} input The Punycode string of ASCII-only symbols.
* @returns {String} The resulting string of Unicode symbols.
*/
function decode(input) {
// Don't use UCS-2
var output = [],
inputLength = input.length,
out,
i = 0,
n = initialN,
bias = initialBias,
basic,
j,
index,
oldi,
w,
k,
digit,
t,
/** Cached calculation results */
baseMinusT;
// Handle the basic code points: let `basic` be the number of input code
// points before the last delimiter, or `0` if there is none, then copy
// the first basic code points to the output.
basic = input.lastIndexOf(delimiter);
if (basic < 0) {
basic = 0;
}
for (j = 0; j < basic; ++j) {
// if it's not a basic code point
if (input.charCodeAt(j) >= 0x80) {
error('not-basic');
}
output.push(input.charCodeAt(j));
}
// Main decoding loop: start just after the last delimiter if any basic code
// points were copied; start at the beginning otherwise.
for (index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{
// `index` is the index of the next character to be consumed.
// Decode a generalized variable-length integer into `delta`,
// which gets added to `i`. The overflow checking is easier
// if we increase `i` as we go, then subtract off its starting
// value at the end to obtain `delta`.
for (oldi = i, w = 1, k = base;; /* no condition */k += base) {
if (index >= inputLength) {
error('invalid-input');
}
digit = basicToDigit(input.charCodeAt(index++));
if (digit >= base || digit > floor((maxInt - i) / w)) {
error('overflow');
}
i += digit * w;
t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
if (digit < t) {
break;
}
baseMinusT = base - t;
if (w > floor(maxInt / baseMinusT)) {
error('overflow');
}
w *= baseMinusT;
}
out = output.length + 1;
bias = adapt(i - oldi, out, oldi == 0);
// `i` was supposed to wrap around from `out` to `0`,
// incrementing `n` each time, so we'll fix that now:
if (floor(i / out) > maxInt - n) {
error('overflow');
}
n += floor(i / out);
i %= out;
// Insert `n` at position `i` of the output
output.splice(i++, 0, n);
}
return ucs2encode(output);
}
/**
* Converts a string of Unicode symbols (e.g. a domain name label) to a
* Punycode string of ASCII-only symbols.
* @memberOf punycode
* @param {String} input The string of Unicode symbols.
* @returns {String} The resulting Punycode string of ASCII-only symbols.
*/
function encode(input) {
var n,
delta,
handledCPCount,
basicLength,
bias,
j,
m,
q,
k,
t,
currentValue,
output = [],
/** `inputLength` will hold the number of code points in `input`. */
inputLength,
/** Cached calculation results */
handledCPCountPlusOne,
baseMinusT,
qMinusT;
// Convert the input in UCS-2 to Unicode
input = ucs2decode(input);
// Cache the length
inputLength = input.length;
// Initialize the state
n = initialN;
delta = 0;
bias = initialBias;
// Handle the basic code points
for (j = 0; j < inputLength; ++j) {
currentValue = input[j];
if (currentValue < 0x80) {
output.push(stringFromCharCode(currentValue));
}
}
handledCPCount = basicLength = output.length;
// `handledCPCount` is the number of code points that have been handled;
// `basicLength` is the number of basic code points.
// Finish the basic string - if it is not empty - with a delimiter
if (basicLength) {
output.push(delimiter);
}
// Main encoding loop:
while (handledCPCount < inputLength) {
// All non-basic code points < n have been handled already. Find the next
// larger one:
for (m = maxInt, j = 0; j < inputLength; ++j) {
currentValue = input[j];
if (currentValue >= n && currentValue < m) {
m = currentValue;
}
}
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
// but guard against overflow
handledCPCountPlusOne = handledCPCount + 1;
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
error('overflow');
}
delta += (m - n) * handledCPCountPlusOne;
n = m;
for (j = 0; j < inputLength; ++j) {
currentValue = input[j];
if (currentValue < n && ++delta > maxInt) {
error('overflow');
}
if (currentValue == n) {
// Represent delta as a generalized variable-length integer
for (q = delta, k = base;; /* no condition */k += base) {
t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
if (q < t) {
break;
}
qMinusT = q - t;
baseMinusT = base - t;
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
q = floor(qMinusT / baseMinusT);
}
output.push(stringFromCharCode(digitToBasic(q, 0)));
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
delta = 0;
++handledCPCount;
}
}
++delta;
++n;
}
return output.join('');
}
/**
* Converts a Punycode string representing a domain name or an email address
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
* it doesn't matter if you call it on a string that has already been
* converted to Unicode.
* @memberOf punycode
* @param {String} input The Punycoded domain name or email address to
* convert to Unicode.
* @returns {String} The Unicode representation of the given Punycode
* string.
*/
function toUnicode(input) {
return mapDomain(input, function (string) {
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
});
}
/**
* Converts a Unicode string representing a domain name or an email address to
* Punycode. Only the non-ASCII parts of the domain name will be converted,
* i.e. it doesn't matter if you call it with a domain that's already in
* ASCII.
* @memberOf punycode
* @param {String} input The domain name or email address to convert, as a
* Unicode string.
* @returns {String} The Punycode representation of the given domain name or
* email address.
*/
function toASCII(input) {
return mapDomain(input, function (string) {
return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
});
}
/*--------------------------------------------------------------------------*/
/** Define the public API */
punycode = {
/**
* A string representing the current Punycode.js version number.
* @memberOf punycode
* @type String
*/
'version': '1.4.1',
/**
* An object of methods to convert from JavaScript's internal character
* representation (UCS-2) to Unicode code points, and back.
* @see <https://mathiasbynens.be/notes/javascript-encoding>
* @memberOf punycode
* @type Object
*/
'ucs2': {
'decode': ucs2decode,
'encode': ucs2encode
},
'decode': decode,
'encode': encode,
'toASCII': toASCII,
'toUnicode': toUnicode
};
/** Expose `punycode` */
// Some AMD build optimizers, like r.js, check for specific condition patterns
// like the following:
if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) {
define('punycode', function () {
return punycode;
});
} else if (freeExports && freeModule) {
if (module.exports == freeExports) {
// in Node.js, io.js, or RingoJS v0.8.0+
freeModule.exports = punycode;
} else {
// in Narwhal or RingoJS v0.7.0-
for (key in punycode) {
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
}
}
} else {
// in Rhino or a web browser
root.punycode = punycode;
}
})(undefined);
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],302:[function(require,module,exports){
(function (process,global){
'use strict';
function oldBrowser() {
throw new Error('Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11');
}
var Buffer = require('safe-buffer').Buffer;
var crypto = global.crypto || global.msCrypto;
if (crypto && crypto.getRandomValues) {
module.exports = randomBytes;
} else {
module.exports = oldBrowser;
}
function randomBytes(size, cb) {
// phantomjs needs to throw
if (size > 65536) throw new Error('requested too many random bytes');
// in case browserify isn't using the Uint8Array version
var rawBytes = new global.Uint8Array(size);
// This will not work in older browsers.
// See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
if (size > 0) {
// getRandomValues fails on IE if size == 0
crypto.getRandomValues(rawBytes);
}
// XXX: phantomjs doesn't like a buffer being passed here
var bytes = Buffer.from(rawBytes.buffer);
if (typeof cb === 'function') {
return process.nextTick(function () {
cb(null, bytes);
});
}
return bytes;
}
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"_process":294,"safe-buffer":319}],303:[function(require,module,exports){
(function (process,global){
'use strict';
function oldBrowser() {
throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11');
}
var safeBuffer = require('safe-buffer');
var randombytes = require('randombytes');
var Buffer = safeBuffer.Buffer;
var kBufferMaxLength = safeBuffer.kMaxLength;
var crypto = global.crypto || global.msCrypto;
var kMaxUint32 = Math.pow(2, 32) - 1;
function assertOffset(offset, length) {
if (typeof offset !== 'number' || offset !== offset) {
// eslint-disable-line no-self-compare
throw new TypeError('offset must be a number');
}
if (offset > kMaxUint32 || offset < 0) {
throw new TypeError('offset must be a uint32');
}
if (offset > kBufferMaxLength || offset > length) {
throw new RangeError('offset out of range');
}
}
function assertSize(size, offset, length) {
if (typeof size !== 'number' || size !== size) {
// eslint-disable-line no-self-compare
throw new TypeError('size must be a number');
}
if (size > kMaxUint32 || size < 0) {
throw new TypeError('size must be a uint32');
}
if (size + offset > length || size > kBufferMaxLength) {
throw new RangeError('buffer too small');
}
}
if (crypto && crypto.getRandomValues || !process.browser) {
exports.randomFill = randomFill;
exports.randomFillSync = randomFillSync;
} else {
exports.randomFill = oldBrowser;
exports.randomFillSync = oldBrowser;
}
function randomFill(buf, offset, size, cb) {
if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
}
if (typeof offset === 'function') {
cb = offset;
offset = 0;
size = buf.length;
} else if (typeof size === 'function') {
cb = size;
size = buf.length - offset;
} else if (typeof cb !== 'function') {
throw new TypeError('"cb" argument must be a function');
}
assertOffset(offset, buf.length);
assertSize(size, offset, buf.length);
return actualFill(buf, offset, size, cb);
}
function actualFill(buf, offset, size, cb) {
if (process.browser) {
var ourBuf = buf.buffer;
var uint = new Uint8Array(ourBuf, offset, size);
crypto.getRandomValues(uint);
if (cb) {
process.nextTick(function () {
cb(null, buf);
});
return;
}
return buf;
}
if (cb) {
randombytes(size, function (err, bytes) {
if (err) {
return cb(err);
}
bytes.copy(buf, offset);
cb(null, buf);
});
return;
}
var bytes = randombytes(size);
bytes.copy(buf, offset);
return buf;
}
function randomFillSync(buf, offset, size) {
if (typeof offset === 'undefined') {
offset = 0;
}
if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
}
assertOffset(offset, buf.length);
if (size === undefined) size = buf.length - offset;
assertSize(size, offset, buf.length);
return actualFill(buf, offset, size);
}
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"_process":294,"randombytes":302,"safe-buffer":319}],304:[function(require,module,exports){
'use strict';
module.exports = require('./lib/_stream_duplex.js');
},{"./lib/_stream_duplex.js":305}],305:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.
'use strict';
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
/*<replacement>*/
var objectKeys = Object.keys || function (obj) {
var keys = [];
for (var key in obj) {
keys.push(key);
}return keys;
};
/*</replacement>*/
module.exports = Duplex;
/*<replacement>*/
var util = require('core-util-is');
util.inherits = require('inherits');
/*</replacement>*/
var Readable = require('./_stream_readable');
var Writable = require('./_stream_writable');
util.inherits(Duplex, Readable);
var keys = objectKeys(Writable.prototype);
for (var v = 0; v < keys.length; v++) {
var method = keys[v];
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
}
function Duplex(options) {
if (!(this instanceof Duplex)) return new Duplex(options);
Readable.call(this, options);
Writable.call(this, options);
if (options && options.readable === false) this.readable = false;
if (options && options.writable === false) this.writable = false;
this.allowHalfOpen = true;
if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
this.once('end', onend);
}
// the no-half-open enforcer
function onend() {
// if we allow half-open state, or if the writable side ended,
// then we're ok.
if (this.allowHalfOpen || this._writableState.ended) return;
// no more data can be written.
// But allow more writes to happen in this tick.
processNextTick(onEndNT, this);
}
function onEndNT(self) {
self.end();
}
Object.defineProperty(Duplex.prototype, 'destroyed', {
get: function get() {
if (this._readableState === undefined || this._writableState === undefined) {
return false;
}
return this._readableState.destroyed && this._writableState.destroyed;
},
set: function set(value) {
// we ignore the value if the stream
// has not been initialized yet
if (this._readableState === undefined || this._writableState === undefined) {
return;
}
// backward compatibility, the user is explicitly
// managing destroyed
this._readableState.destroyed = value;
this._writableState.destroyed = value;
}
});
Duplex.prototype._destroy = function (err, cb) {
this.push(null);
this.end();
processNextTick(cb, err);
};
function forEach(xs, f) {
for (var i = 0, l = xs.length; i < l; i++) {
f(xs[i], i);
}
}
},{"./_stream_readable":307,"./_stream_writable":309,"core-util-is":204,"inherits":266,"process-nextick-args":293}],306:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
'use strict';
module.exports = PassThrough;
var Transform = require('./_stream_transform');
/*<replacement>*/
var util = require('core-util-is');
util.inherits = require('inherits');
/*</replacement>*/
util.inherits(PassThrough, Transform);
function PassThrough(options) {
if (!(this instanceof PassThrough)) return new PassThrough(options);
Transform.call(this, options);
}
PassThrough.prototype._transform = function (chunk, encoding, cb) {
cb(null, chunk);
};
},{"./_stream_transform":308,"core-util-is":204,"inherits":266}],307:[function(require,module,exports){
(function (process,global){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
module.exports = Readable;
/*<replacement>*/
var isArray = require('isarray');
/*</replacement>*/
/*<replacement>*/
var Duplex;
/*</replacement>*/
Readable.ReadableState = ReadableState;
/*<replacement>*/
var EE = require('events').EventEmitter;
var EElistenerCount = function EElistenerCount(emitter, type) {
return emitter.listeners(type).length;
};
/*</replacement>*/
/*<replacement>*/
var Stream = require('./internal/streams/stream');
/*</replacement>*/
// TODO(bmeurer): Change this back to const once hole checks are
// properly optimized away early in Ignition+TurboFan.
/*<replacement>*/
var Buffer = require('safe-buffer').Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
return Buffer.from(chunk);
}
function _isUint8Array(obj) {
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}
/*</replacement>*/
/*<replacement>*/
var util = require('core-util-is');
util.inherits = require('inherits');
/*</replacement>*/
/*<replacement>*/
var debugUtil = require('util');
var debug = void 0;
if (debugUtil && debugUtil.debuglog) {
debug = debugUtil.debuglog('stream');
} else {
debug = function debug() {};
}
/*</replacement>*/
var BufferList = require('./internal/streams/BufferList');
var destroyImpl = require('./internal/streams/destroy');
var StringDecoder;
util.inherits(Readable, Stream);
var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
function prependListener(emitter, event, fn) {
// Sadly this is not cacheable as some libraries bundle their own
// event emitter implementation with them.
if (typeof emitter.prependListener === 'function') {
return emitter.prependListener(event, fn);
} else {
// This is a hack to make sure that our error handler is attached before any
// userland ones. NEVER DO THIS. This is here only because this code needs
// to continue to work with older versions of Node.js that do not include
// the prependListener() method. The goal is to eventually remove this hack.
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
}
}
function ReadableState(options, stream) {
Duplex = Duplex || require('./_stream_duplex');
options = options || {};
// object stream flag. Used to make read(n) ignore n and to
// make all the buffer merging and length checks go away
this.objectMode = !!options.objectMode;
if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
// the point at which it stops calling _read() to fill the buffer
// Note: 0 is a valid value, means "don't call _read preemptively ever"
var hwm = options.highWaterMark;
var defaultHwm = this.objectMode ? 16 : 16 * 1024;
this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;
// cast to ints.
this.highWaterMark = Math.floor(this.highWaterMark);
// A linked list is used to store data chunks instead of an array because the
// linked list can remove elements from the beginning faster than
// array.shift()
this.buffer = new BufferList();
this.length = 0;
this.pipes = null;
this.pipesCount = 0;
this.flowing = null;
this.ended = false;
this.endEmitted = false;
this.reading = false;
// a flag to be able to tell if the event 'readable'/'data' is emitted
// immediately, or on a later tick. We set this to true at first, because
// any actions that shouldn't happen until "later" should generally also
// not happen before the first read call.
this.sync = true;
// whenever we return null, then we set a flag to say
// that we're awaiting a 'readable' event emission.
this.needReadable = false;
this.emittedReadable = false;
this.readableListening = false;
this.resumeScheduled = false;
// has it been destroyed
this.destroyed = false;
// Crypto is kind of old and crusty. Historically, its default string
// encoding is 'binary' so we have to make this configurable.
// Everything else in the universe uses 'utf8', though.
this.defaultEncoding = options.defaultEncoding || 'utf8';
// the number of writers that are awaiting a drain event in .pipe()s
this.awaitDrain = 0;
// if true, a maybeReadMore has been scheduled
this.readingMore = false;
this.decoder = null;
this.encoding = null;
if (options.encoding) {
if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
this.decoder = new StringDecoder(options.encoding);
this.encoding = options.encoding;
}
}
function Readable(options) {
Duplex = Duplex || require('./_stream_duplex');
if (!(this instanceof Readable)) return new Readable(options);
this._readableState = new ReadableState(options, this);
// legacy
this.readable = true;
if (options) {
if (typeof options.read === 'function') this._read = options.read;
if (typeof options.destroy === 'function') this._destroy = options.destroy;
}
Stream.call(this);
}
Object.defineProperty(Readable.prototype, 'destroyed', {
get: function get() {
if (this._readableState === undefined) {
return false;
}
return this._readableState.destroyed;
},
set: function set(value) {
// we ignore the value if the stream
// has not been initialized yet
if (!this._readableState) {
return;
}
// backward compatibility, the user is explicitly
// managing destroyed
this._readableState.destroyed = value;
}
});
Readable.prototype.destroy = destroyImpl.destroy;
Readable.prototype._undestroy = destroyImpl.undestroy;
Readable.prototype._destroy = function (err, cb) {
this.push(null);
cb(err);
};
// Manually shove something into the read() buffer.
// This returns true if the highWaterMark has not been hit yet,
// similar to how Writable.write() returns true if you should
// write() some more.
Readable.prototype.push = function (chunk, encoding) {
var state = this._readableState;
var skipChunkCheck;
if (!state.objectMode) {
if (typeof chunk === 'string') {
encoding = encoding || state.defaultEncoding;
if (encoding !== state.encoding) {
chunk = Buffer.from(chunk, encoding);
encoding = '';
}
skipChunkCheck = true;
}
} else {
skipChunkCheck = true;
}
return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
};
// Unshift should *always* be something directly out of read()
Readable.prototype.unshift = function (chunk) {
return readableAddChunk(this, chunk, null, true, false);
};
function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
var state = stream._readableState;
if (chunk === null) {
state.reading = false;
onEofChunk(stream, state);
} else {
var er;
if (!skipChunkCheck) er = chunkInvalid(state, chunk);
if (er) {
stream.emit('error', er);
} else if (state.objectMode || chunk && chunk.length > 0) {
if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
chunk = _uint8ArrayToBuffer(chunk);
}
if (addToFront) {
if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);
} else if (state.ended) {
stream.emit('error', new Error('stream.push() after EOF'));
} else {
state.reading = false;
if (state.decoder && !encoding) {
chunk = state.decoder.write(chunk);
if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
} else {
addChunk(stream, state, chunk, false);
}
}
} else if (!addToFront) {
state.reading = false;
}
}
return needMoreData(state);
}
function addChunk(stream, state, chunk, addToFront) {
if (state.flowing && state.length === 0 && !state.sync) {
stream.emit('data', chunk);
stream.read(0);
} else {
// update the buffer info.
state.length += state.objectMode ? 1 : chunk.length;
if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
if (state.needReadable) emitReadable(stream);
}
maybeReadMore(stream, state);
}
function chunkInvalid(state, chunk) {
var er;
if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
er = new TypeError('Invalid non-string/buffer chunk');
}
return er;
}
// if it's past the high water mark, we can push in some more.
// Also, if we have no data yet, we can stand some
// more bytes. This is to work around cases where hwm=0,
// such as the repl. Also, if the push() triggered a
// readable event, and the user called read(largeNumber) such that
// needReadable was set, then we ought to push more, so that another
// 'readable' event will be triggered.
function needMoreData(state) {
return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
}
Readable.prototype.isPaused = function () {
return this._readableState.flowing === false;
};
// backwards compatibility.
Readable.prototype.setEncoding = function (enc) {
if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
this._readableState.decoder = new StringDecoder(enc);
this._readableState.encoding = enc;
return this;
};
// Don't raise the hwm > 8MB
var MAX_HWM = 0x800000;
function computeNewHighWaterMark(n) {
if (n >= MAX_HWM) {
n = MAX_HWM;
} else {
// Get the next highest power of 2 to prevent increasing hwm excessively in
// tiny amounts
n--;
n |= n >>> 1;
n |= n >>> 2;
n |= n >>> 4;
n |= n >>> 8;
n |= n >>> 16;
n++;
}
return n;
}
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function howMuchToRead(n, state) {
if (n <= 0 || state.length === 0 && state.ended) return 0;
if (state.objectMode) return 1;
if (n !== n) {
// Only flow one buffer at a time
if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
}
// If we're asking for more than the current hwm, then raise the hwm.
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
if (n <= state.length) return n;
// Don't have enough
if (!state.ended) {
state.needReadable = true;
return 0;
}
return state.length;
}
// you can override either this method, or the async _read(n) below.
Readable.prototype.read = function (n) {
debug('read', n);
n = parseInt(n, 10);
var state = this._readableState;
var nOrig = n;
if (n !== 0) state.emittedReadable = false;
// if we're doing read(0) to trigger a readable event, but we
// already have a bunch of data in the buffer, then just trigger
// the 'readable' event and move on.
if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
debug('read: emitReadable', state.length, state.ended);
if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
return null;
}
n = howMuchToRead(n, state);
// if we've ended, and we're now clear, then finish it up.
if (n === 0 && state.ended) {
if (state.length === 0) endReadable(this);
return null;
}
// All the actual chunk generation logic needs to be
// *below* the call to _read. The reason is that in certain
// synthetic stream cases, such as passthrough streams, _read
// may be a completely synchronous operation which may change
// the state of the read buffer, providing enough data when
// before there was *not* enough.
//
// So, the steps are:
// 1. Figure out what the state of things will be after we do
// a read from the buffer.
//
// 2. If that resulting state will trigger a _read, then call _read.
// Note that this may be asynchronous, or synchronous. Yes, it is
// deeply ugly to write APIs this way, but that still doesn't mean
// that the Readable class should behave improperly, as streams are
// designed to be sync/async agnostic.
// Take note if the _read call is sync or async (ie, if the read call
// has returned yet), so that we know whether or not it's safe to emit
// 'readable' etc.
//
// 3. Actually pull the requested chunks out of the buffer and return.
// if we need a readable event, then we need to do some reading.
var doRead = state.needReadable;
debug('need readable', doRead);
// if we currently have less than the highWaterMark, then also read some
if (state.length === 0 || state.length - n < state.highWaterMark) {
doRead = true;
debug('length less than watermark', doRead);
}
// however, if we've ended, then there's no point, and if we're already
// reading, then it's unnecessary.
if (state.ended || state.reading) {
doRead = false;
debug('reading or ended', doRead);
} else if (doRead) {
debug('do read');
state.reading = true;
state.sync = true;
// if the length is currently zero, then we *need* a readable event.
if (state.length === 0) state.needReadable = true;
// call internal read method
this._read(state.highWaterMark);
state.sync = false;
// If _read pushed data synchronously, then `reading` will be false,
// and we need to re-evaluate how much data we can return to the user.
if (!state.reading) n = howMuchToRead(nOrig, state);
}
var ret;
if (n > 0) ret = fromList(n, state);else ret = null;
if (ret === null) {
state.needReadable = true;
n = 0;
} else {
state.length -= n;
}
if (state.length === 0) {
// If we have nothing in the buffer, then we want to know
// as soon as we *do* get something into the buffer.
if (!state.ended) state.needReadable = true;
// If we tried to read() past the EOF, then emit end on the next tick.
if (nOrig !== n && state.ended) endReadable(this);
}
if (ret !== null) this.emit('data', ret);
return ret;
};
function onEofChunk(stream, state) {
if (state.ended) return;
if (state.decoder) {
var chunk = state.decoder.end();
if (chunk && chunk.length) {
state.buffer.push(chunk);
state.length += state.objectMode ? 1 : chunk.length;
}
}
state.ended = true;
// emit 'readable' now to make sure it gets picked up.
emitReadable(stream);
}
// Don't emit readable right away in sync mode, because this can trigger
// another read() call => stack overflow. This way, it might trigger
// a nextTick recursion warning, but that's not so bad.
function emitReadable(stream) {
var state = stream._readableState;
state.needReadable = false;
if (!state.emittedReadable) {
debug('emitReadable', state.flowing);
state.emittedReadable = true;
if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);
}
}
function emitReadable_(stream) {
debug('emit readable');
stream.emit('readable');
flow(stream);
}
// at this point, the user has presumably seen the 'readable' event,
// and called read() to consume some data. that may have triggered
// in turn another _read(n) call, in which case reading = true if
// it's in progress.
// However, if we're not ended, or reading, and the length < hwm,
// then go ahead and try to read some more preemptively.
function maybeReadMore(stream, state) {
if (!state.readingMore) {
state.readingMore = true;
processNextTick(maybeReadMore_, stream, state);
}
}
function maybeReadMore_(stream, state) {
var len = state.length;
while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
debug('maybeReadMore read 0');
stream.read(0);
if (len === state.length)
// didn't get any data, stop spinning.
break;else len = state.length;
}
state.readingMore = false;
}
// abstract method. to be overridden in specific implementation classes.
// call cb(er, data) where data is <= n in length.
// for virtual (non-string, non-buffer) streams, "length" is somewhat
// arbitrary, and perhaps not very meaningful.
Readable.prototype._read = function (n) {
this.emit('error', new Error('_read() is not implemented'));
};
Readable.prototype.pipe = function (dest, pipeOpts) {
var src = this;
var state = this._readableState;
switch (state.pipesCount) {
case 0:
state.pipes = dest;
break;
case 1:
state.pipes = [state.pipes, dest];
break;
default:
state.pipes.push(dest);
break;
}
state.pipesCount += 1;
debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
var endFn = doEnd ? onend : unpipe;
if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn);
dest.on('unpipe', onunpipe);
function onunpipe(readable, unpipeInfo) {
debug('onunpipe');
if (readable === src) {
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
unpipeInfo.hasUnpiped = true;
cleanup();
}
}
}
function onend() {
debug('onend');
dest.end();
}
// when the dest drains, it reduces the awaitDrain counter
// on the source. This would be more elegant with a .once()
// handler in flow(), but adding and removing repeatedly is
// too slow.
var ondrain = pipeOnDrain(src);
dest.on('drain', ondrain);
var cleanedUp = false;
function cleanup() {
debug('cleanup');
// cleanup event handlers once the pipe is broken
dest.removeListener('close', onclose);
dest.removeListener('finish', onfinish);
dest.removeListener('drain', ondrain);
dest.removeListener('error', onerror);
dest.removeListener('unpipe', onunpipe);
src.removeListener('end', onend);
src.removeListener('end', unpipe);
src.removeListener('data', ondata);
cleanedUp = true;
// if the reader is waiting for a drain event from this
// specific writer, then it would cause it to never start
// flowing again.
// So, if this is awaiting a drain, then we just call it now.
// If we don't know, then assume that we are waiting for one.
if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
}
// If the user pushes more data while we're writing to dest then we'll end up
// in ondata again. However, we only want to increase awaitDrain once because
// dest will only emit one 'drain' event for the multiple writes.
// => Introduce a guard on increasing awaitDrain.
var increasedAwaitDrain = false;
src.on('data', ondata);
function ondata(chunk) {
debug('ondata');
increasedAwaitDrain = false;
var ret = dest.write(chunk);
if (false === ret && !increasedAwaitDrain) {
// If the user unpiped during `dest.write()`, it is possible
// to get stuck in a permanently paused state if that write
// also returned false.
// => Check whether `dest` is still a piping destination.
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
debug('false write response, pause', src._readableState.awaitDrain);
src._readableState.awaitDrain++;
increasedAwaitDrain = true;
}
src.pause();
}
}
// if the dest has an error, then stop piping into it.
// however, don't suppress the throwing behavior for this.
function onerror(er) {
debug('onerror', er);
unpipe();
dest.removeListener('error', onerror);
if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
}
// Make sure our error handler is attached before userland ones.
prependListener(dest, 'error', onerror);
// Both close and finish should trigger unpipe, but only once.
function onclose() {
dest.removeListener('finish', onfinish);
unpipe();
}
dest.once('close', onclose);
function onfinish() {
debug('onfinish');
dest.removeListener('close', onclose);
unpipe();
}
dest.once('finish', onfinish);
function unpipe() {
debug('unpipe');
src.unpipe(dest);
}
// tell the dest that it's being piped to
dest.emit('pipe', src);
// start the flow if it hasn't been started already.
if (!state.flowing) {
debug('pipe resume');
src.resume();
}
return dest;
};
function pipeOnDrain(src) {
return function () {
var state = src._readableState;
debug('pipeOnDrain', state.awaitDrain);
if (state.awaitDrain) state.awaitDrain--;
if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
state.flowing = true;
flow(src);
}
};
}
Readable.prototype.unpipe = function (dest) {
var state = this._readableState;
var unpipeInfo = { hasUnpiped: false };
// if we're not piping anywhere, then do nothing.
if (state.pipesCount === 0) return this;
// just one destination. most common case.
if (state.pipesCount === 1) {
// passed in one, but it's not the right one.
if (dest && dest !== state.pipes) return this;
if (!dest) dest = state.pipes;
// got a match.
state.pipes = null;
state.pipesCount = 0;
state.flowing = false;
if (dest) dest.emit('unpipe', this, unpipeInfo);
return this;
}
// slow case. multiple pipe destinations.
if (!dest) {
// remove all.
var dests = state.pipes;
var len = state.pipesCount;
state.pipes = null;
state.pipesCount = 0;
state.flowing = false;
for (var i = 0; i < len; i++) {
dests[i].emit('unpipe', this, unpipeInfo);
}return this;
}
// try to find the right one.
var index = indexOf(state.pipes, dest);
if (index === -1) return this;
state.pipes.splice(index, 1);
state.pipesCount -= 1;
if (state.pipesCount === 1) state.pipes = state.pipes[0];
dest.emit('unpipe', this, unpipeInfo);
return this;
};
// set up data events if they are asked for
// Ensure readable listeners eventually get something
Readable.prototype.on = function (ev, fn) {
var res = Stream.prototype.on.call(this, ev, fn);
if (ev === 'data') {
// Start flowing on next tick if stream isn't explicitly paused
if (this._readableState.flowing !== false) this.resume();
} else if (ev === 'readable') {
var state = this._readableState;
if (!state.endEmitted && !state.readableListening) {
state.readableListening = state.needReadable = true;
state.emittedReadable = false;
if (!state.reading) {
processNextTick(nReadingNextTick, this);
} else if (state.length) {
emitReadable(this);
}
}
}
return res;
};
Readable.prototype.addListener = Readable.prototype.on;
function nReadingNextTick(self) {
debug('readable nexttick read 0');
self.read(0);
}
// pause() and resume() are remnants of the legacy readable stream API
// If the user uses them, then switch into old mode.
Readable.prototype.resume = function () {
var state = this._readableState;
if (!state.flowing) {
debug('resume');
state.flowing = true;
resume(this, state);
}
return this;
};
function resume(stream, state) {
if (!state.resumeScheduled) {
state.resumeScheduled = true;
processNextTick(resume_, stream, state);
}
}
function resume_(stream, state) {
if (!state.reading) {
debug('resume read 0');
stream.read(0);
}
state.resumeScheduled = false;
state.awaitDrain = 0;
stream.emit('resume');
flow(stream);
if (state.flowing && !state.reading) stream.read(0);
}
Readable.prototype.pause = function () {
debug('call pause flowing=%j', this._readableState.flowing);
if (false !== this._readableState.flowing) {
debug('pause');
this._readableState.flowing = false;
this.emit('pause');
}
return this;
};
function flow(stream) {
var state = stream._readableState;
debug('flow', state.flowing);
while (state.flowing && stream.read() !== null) {}
}
// wrap an old-style stream as the async data source.
// This is *not* part of the readable stream interface.
// It is an ugly unfortunate mess of history.
Readable.prototype.wrap = function (stream) {
var state = this._readableState;
var paused = false;
var self = this;
stream.on('end', function () {
debug('wrapped end');
if (state.decoder && !state.ended) {
var chunk = state.decoder.end();
if (chunk && chunk.length) self.push(chunk);
}
self.push(null);
});
stream.on('data', function (chunk) {
debug('wrapped data');
if (state.decoder) chunk = state.decoder.write(chunk);
// don't skip over falsy values in objectMode
if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
var ret = self.push(chunk);
if (!ret) {
paused = true;
stream.pause();
}
});
// proxy all the other methods.
// important when wrapping filters and duplexes.
for (var i in stream) {
if (this[i] === undefined && typeof stream[i] === 'function') {
this[i] = function (method) {
return function () {
return stream[method].apply(stream, arguments);
};
}(i);
}
}
// proxy certain important events.
for (var n = 0; n < kProxyEvents.length; n++) {
stream.on(kProxyEvents[n], self.emit.bind(self, kProxyEvents[n]));
}
// when we try to consume some more bytes, simply unpause the
// underlying stream.
self._read = function (n) {
debug('wrapped _read', n);
if (paused) {
paused = false;
stream.resume();
}
};
return self;
};
// exposed for testing purposes only.
Readable._fromList = fromList;
// Pluck off n bytes from an array of buffers.
// Length is the combined lengths of all the buffers in the list.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function fromList(n, state) {
// nothing buffered
if (state.length === 0) return null;
var ret;
if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
// read it all, truncate the list
if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
state.buffer.clear();
} else {
// read part of list
ret = fromListPartial(n, state.buffer, state.decoder);
}
return ret;
}
// Extracts only enough buffered data to satisfy the amount requested.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function fromListPartial(n, list, hasStrings) {
var ret;
if (n < list.head.data.length) {
// slice is the same for buffers and strings
ret = list.head.data.slice(0, n);
list.head.data = list.head.data.slice(n);
} else if (n === list.head.data.length) {
// first chunk is a perfect match
ret = list.shift();
} else {
// result spans more than one buffer
ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
}
return ret;
}
// Copies a specified amount of characters from the list of buffered data
// chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function copyFromBufferString(n, list) {
var p = list.head;
var c = 1;
var ret = p.data;
n -= ret.length;
while (p = p.next) {
var str = p.data;
var nb = n > str.length ? str.length : n;
if (nb === str.length) ret += str;else ret += str.slice(0, n);
n -= nb;
if (n === 0) {
if (nb === str.length) {
++c;
if (p.next) list.head = p.next;else list.head = list.tail = null;
} else {
list.head = p;
p.data = str.slice(nb);
}
break;
}
++c;
}
list.length -= c;
return ret;
}
// Copies a specified amount of bytes from the list of buffered data chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function copyFromBuffer(n, list) {
var ret = Buffer.allocUnsafe(n);
var p = list.head;
var c = 1;
p.data.copy(ret);
n -= p.data.length;
while (p = p.next) {
var buf = p.data;
var nb = n > buf.length ? buf.length : n;
buf.copy(ret, ret.length - n, 0, nb);
n -= nb;
if (n === 0) {
if (nb === buf.length) {
++c;
if (p.next) list.head = p.next;else list.head = list.tail = null;
} else {
list.head = p;
p.data = buf.slice(nb);
}
break;
}
++c;
}
list.length -= c;
return ret;
}
function endReadable(stream) {
var state = stream._readableState;
// If we get here before consuming all the bytes, then that is a
// bug in node. Should never happen.
if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
if (!state.endEmitted) {
state.ended = true;
processNextTick(endReadableNT, state, stream);
}
}
function endReadableNT(state, stream) {
// Check that we didn't get one last unshift.
if (!state.endEmitted && state.length === 0) {
state.endEmitted = true;
stream.readable = false;
stream.emit('end');
}
}
function forEach(xs, f) {
for (var i = 0, l = xs.length; i < l; i++) {
f(xs[i], i);
}
}
function indexOf(xs, x) {
for (var i = 0, l = xs.length; i < l; i++) {
if (xs[i] === x) return i;
}
return -1;
}
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./_stream_duplex":305,"./internal/streams/BufferList":310,"./internal/streams/destroy":311,"./internal/streams/stream":312,"_process":294,"core-util-is":204,"events":245,"inherits":266,"isarray":269,"process-nextick-args":293,"safe-buffer":319,"string_decoder/":337,"util":171}],308:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a transform stream is a readable/writable stream where you do
// something with the data. Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored. (That would
// be a valid example of a transform, of course.)
//
// While the output is causally related to the input, it's not a
// necessarily symmetric or synchronous transformation. For example,
// a zlib stream might take multiple plain-text writes(), and then
// emit a single compressed chunk some time in the future.
//
// Here's how this works:
//
// The Transform stream has all the aspects of the readable and writable
// stream classes. When you write(chunk), that calls _write(chunk,cb)
// internally, and returns false if there's a lot of pending writes
// buffered up. When you call read(), that calls _read(n) until
// there's enough pending readable data buffered up.
//
// In a transform stream, the written data is placed in a buffer. When
// _read(n) is called, it transforms the queued up data, calling the
// buffered _write cb's as it consumes chunks. If consuming a single
// written chunk would result in multiple output chunks, then the first
// outputted bit calls the readcb, and subsequent chunks just go into
// the read buffer, and will cause it to emit 'readable' if necessary.
//
// This way, back-pressure is actually determined by the reading side,
// since _read has to be called to start processing a new chunk. However,
// a pathological inflate type of transform can cause excessive buffering
// here. For example, imagine a stream where every byte of input is
// interpreted as an integer from 0-255, and then results in that many
// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in
// 1kb of data being output. In this case, you could write a very small
// amount of input, and end up with a very large amount of output. In
// such a pathological inflating mechanism, there'd be no way to tell
// the system to stop doing the transform. A single 4MB write could
// cause the system to run out of memory.
//
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
// the results of the previous transformed chunk were consumed.
'use strict';
module.exports = Transform;
var Duplex = require('./_stream_duplex');
/*<replacement>*/
var util = require('core-util-is');
util.inherits = require('inherits');
/*</replacement>*/
util.inherits(Transform, Duplex);
function TransformState(stream) {
this.afterTransform = function (er, data) {
return afterTransform(stream, er, data);
};
this.needTransform = false;
this.transforming = false;
this.writecb = null;
this.writechunk = null;
this.writeencoding = null;
}
function afterTransform(stream, er, data) {
var ts = stream._transformState;
ts.transforming = false;
var cb = ts.writecb;
if (!cb) {
return stream.emit('error', new Error('write callback called multiple times'));
}
ts.writechunk = null;
ts.writecb = null;
if (data !== null && data !== undefined) stream.push(data);
cb(er);
var rs = stream._readableState;
rs.reading = false;
if (rs.needReadable || rs.length < rs.highWaterMark) {
stream._read(rs.highWaterMark);
}
}
function Transform(options) {
if (!(this instanceof Transform)) return new Transform(options);
Duplex.call(this, options);
this._transformState = new TransformState(this);
var stream = this;
// start out asking for a readable event once data is transformed.
this._readableState.needReadable = true;
// we have implemented the _read method, and done the other things
// that Readable wants before the first _read call, so unset the
// sync guard flag.
this._readableState.sync = false;
if (options) {
if (typeof options.transform === 'function') this._transform = options.transform;
if (typeof options.flush === 'function') this._flush = options.flush;
}
// When the writable side finishes, then flush out anything remaining.
this.once('prefinish', function () {
if (typeof this._flush === 'function') this._flush(function (er, data) {
done(stream, er, data);
});else done(stream);
});
}
Transform.prototype.push = function (chunk, encoding) {
this._transformState.needTransform = false;
return Duplex.prototype.push.call(this, chunk, encoding);
};
// This is the part where you do stuff!
// override this function in implementation classes.
// 'chunk' is an input chunk.
//
// Call `push(newChunk)` to pass along transformed output
// to the readable side. You may call 'push' zero or more times.
//
// Call `cb(err)` when you are done with this chunk. If you pass
// an error, then that'll put the hurt on the whole operation. If you
// never call cb(), then you'll never get another chunk.
Transform.prototype._transform = function (chunk, encoding, cb) {
throw new Error('_transform() is not implemented');
};
Transform.prototype._write = function (chunk, encoding, cb) {
var ts = this._transformState;
ts.writecb = cb;
ts.writechunk = chunk;
ts.writeencoding = encoding;
if (!ts.transforming) {
var rs = this._readableState;
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
}
};
// Doesn't matter what the args are here.
// _transform does all the work.
// That we got here means that the readable side wants more data.
Transform.prototype._read = function (n) {
var ts = this._transformState;
if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
ts.transforming = true;
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
} else {
// mark that we need a transform, so that any data that comes in
// will get processed, now that we've asked for it.
ts.needTransform = true;
}
};
Transform.prototype._destroy = function (err, cb) {
var _this = this;
Duplex.prototype._destroy.call(this, err, function (err2) {
cb(err2);
_this.emit('close');
});
};
function done(stream, er, data) {
if (er) return stream.emit('error', er);
if (data !== null && data !== undefined) stream.push(data);
// if there's nothing in the write buffer, then that means
// that nothing more will ever be provided
var ws = stream._writableState;
var ts = stream._transformState;
if (ws.length) throw new Error('Calling transform done when ws.length != 0');
if (ts.transforming) throw new Error('Calling transform done when still transforming');
return stream.push(null);
}
},{"./_stream_duplex":305,"core-util-is":204,"inherits":266}],309:[function(require,module,exports){
(function (process,global){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
'use strict';
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
module.exports = Writable;
/* <replacement> */
function WriteReq(chunk, encoding, cb) {
this.chunk = chunk;
this.encoding = encoding;
this.callback = cb;
this.next = null;
}
// It seems a linked list but it is not
// there will be only 2 of these for each stream
function CorkedRequest(state) {
var _this = this;
this.next = null;
this.entry = null;
this.finish = function () {
onCorkedFinish(_this, state);
};
}
/* </replacement> */
/*<replacement>*/
var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;
/*</replacement>*/
/*<replacement>*/
var Duplex;
/*</replacement>*/
Writable.WritableState = WritableState;
/*<replacement>*/
var util = require('core-util-is');
util.inherits = require('inherits');
/*</replacement>*/
/*<replacement>*/
var internalUtil = {
deprecate: require('util-deprecate')
};
/*</replacement>*/
/*<replacement>*/
var Stream = require('./internal/streams/stream');
/*</replacement>*/
/*<replacement>*/
var Buffer = require('safe-buffer').Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
return Buffer.from(chunk);
}
function _isUint8Array(obj) {
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}
/*</replacement>*/
var destroyImpl = require('./internal/streams/destroy');
util.inherits(Writable, Stream);
function nop() {}
function WritableState(options, stream) {
Duplex = Duplex || require('./_stream_duplex');
options = options || {};
// object stream flag to indicate whether or not this stream
// contains buffers or objects.
this.objectMode = !!options.objectMode;
if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
// the point at which write() starts returning false
// Note: 0 is a valid value, means that we always return false if
// the entire buffer is not flushed immediately on write()
var hwm = options.highWaterMark;
var defaultHwm = this.objectMode ? 16 : 16 * 1024;
this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;
// cast to ints.
this.highWaterMark = Math.floor(this.highWaterMark);
// if _final has been called
this.finalCalled = false;
// drain event flag.
this.needDrain = false;
// at the start of calling end()
this.ending = false;
// when end() has been called, and returned
this.ended = false;
// when 'finish' is emitted
this.finished = false;
// has it been destroyed
this.destroyed = false;
// should we decode strings into buffers before passing to _write?
// this is here so that some node-core streams can optimize string
// handling at a lower level.
var noDecode = options.decodeStrings === false;
this.decodeStrings = !noDecode;
// Crypto is kind of old and crusty. Historically, its default string
// encoding is 'binary' so we have to make this configurable.
// Everything else in the universe uses 'utf8', though.
this.defaultEncoding = options.defaultEncoding || 'utf8';
// not an actual buffer we keep track of, but a measurement
// of how much we're waiting to get pushed to some underlying
// socket or file.
this.length = 0;
// a flag to see when we're in the middle of a write.
this.writing = false;
// when true all writes will be buffered until .uncork() call
this.corked = 0;
// a flag to be able to tell if the onwrite cb is called immediately,
// or on a later tick. We set this to true at first, because any
// actions that shouldn't happen until "later" should generally also
// not happen before the first write call.
this.sync = true;
// a flag to know if we're processing previously buffered items, which
// may call the _write() callback in the same tick, so that we don't
// end up in an overlapped onwrite situation.
this.bufferProcessing = false;
// the callback that's passed to _write(chunk,cb)
this.onwrite = function (er) {
onwrite(stream, er);
};
// the callback that the user supplies to write(chunk,encoding,cb)
this.writecb = null;
// the amount that is being written when _write is called.
this.writelen = 0;
this.bufferedRequest = null;
this.lastBufferedRequest = null;
// number of pending user-supplied write callbacks
// this must be 0 before 'finish' can be emitted
this.pendingcb = 0;
// emit prefinish if the only thing we're waiting for is _write cbs
// This is relevant for synchronous Transform streams
this.prefinished = false;
// True if the error was already emitted and should not be thrown again
this.errorEmitted = false;
// count buffered requests
this.bufferedRequestCount = 0;
// allocate the first CorkedRequest, there is always
// one allocated and free to use, and we maintain at most two
this.corkedRequestsFree = new CorkedRequest(this);
}
WritableState.prototype.getBuffer = function getBuffer() {
var current = this.bufferedRequest;
var out = [];
while (current) {
out.push(current);
current = current.next;
}
return out;
};
(function () {
try {
Object.defineProperty(WritableState.prototype, 'buffer', {
get: internalUtil.deprecate(function () {
return this.getBuffer();
}, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
});
} catch (_) {}
})();
// Test _writableState for inheritance to account for Duplex streams,
// whose prototype chain only points to Readable.
var realHasInstance;
if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
realHasInstance = Function.prototype[Symbol.hasInstance];
Object.defineProperty(Writable, Symbol.hasInstance, {
value: function value(object) {
if (realHasInstance.call(this, object)) return true;
return object && object._writableState instanceof WritableState;
}
});
} else {
realHasInstance = function realHasInstance(object) {
return object instanceof this;
};
}
function Writable(options) {
Duplex = Duplex || require('./_stream_duplex');
// Writable ctor is applied to Duplexes, too.
// `realHasInstance` is necessary because using plain `instanceof`
// would return false, as no `_writableState` property is attached.
// Trying to use the custom `instanceof` for Writable here will also break the
// Node.js LazyTransform implementation, which has a non-trivial getter for
// `_writableState` that would lead to infinite recursion.
if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
return new Writable(options);
}
this._writableState = new WritableState(options, this);
// legacy.
this.writable = true;
if (options) {
if (typeof options.write === 'function') this._write = options.write;
if (typeof options.writev === 'function') this._writev = options.writev;
if (typeof options.destroy === 'function') this._destroy = options.destroy;
if (typeof options.final === 'function') this._final = options.final;
}
Stream.call(this);
}
// Otherwise people can pipe Writable streams, which is just wrong.
Writable.prototype.pipe = function () {
this.emit('error', new Error('Cannot pipe, not readable'));
};
function writeAfterEnd(stream, cb) {
var er = new Error('write after end');
// TODO: defer error events consistently everywhere, not just the cb
stream.emit('error', er);
processNextTick(cb, er);
}
// Checks that a user-supplied chunk is valid, especially for the particular
// mode the stream is in. Currently this means that `null` is never accepted
// and undefined/non-string values are only allowed in object mode.
function validChunk(stream, state, chunk, cb) {
var valid = true;
var er = false;
if (chunk === null) {
er = new TypeError('May not write null values to stream');
} else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
er = new TypeError('Invalid non-string/buffer chunk');
}
if (er) {
stream.emit('error', er);
processNextTick(cb, er);
valid = false;
}
return valid;
}
Writable.prototype.write = function (chunk, encoding, cb) {
var state = this._writableState;
var ret = false;
var isBuf = _isUint8Array(chunk) && !state.objectMode;
if (isBuf && !Buffer.isBuffer(chunk)) {
chunk = _uint8ArrayToBuffer(chunk);
}
if (typeof encoding === 'function') {
cb = encoding;
encoding = null;
}
if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
if (typeof cb !== 'function') cb = nop;
if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
state.pendingcb++;
ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
}
return ret;
};
Writable.prototype.cork = function () {
var state = this._writableState;
state.corked++;
};
Writable.prototype.uncork = function () {
var state = this._writableState;
if (state.corked) {
state.corked--;
if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
}
};
Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
// node::ParseEncoding() requires lower case.
if (typeof encoding === 'string') encoding = encoding.toLowerCase();
if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
this._writableState.defaultEncoding = encoding;
return this;
};
function decodeChunk(state, chunk, encoding) {
if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding);
}
return chunk;
}
// if we're already writing something, then just put this
// in the queue, and wait our turn. Otherwise, call _write
// If we return false, then we need a drain event, so set that flag.
function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
if (!isBuf) {
var newChunk = decodeChunk(state, chunk, encoding);
if (chunk !== newChunk) {
isBuf = true;
encoding = 'buffer';
chunk = newChunk;
}
}
var len = state.objectMode ? 1 : chunk.length;
state.length += len;
var ret = state.length < state.highWaterMark;
// we must ensure that previous needDrain will not be reset to false.
if (!ret) state.needDrain = true;
if (state.writing || state.corked) {
var last = state.lastBufferedRequest;
state.lastBufferedRequest = {
chunk: chunk,
encoding: encoding,
isBuf: isBuf,
callback: cb,
next: null
};
if (last) {
last.next = state.lastBufferedRequest;
} else {
state.bufferedRequest = state.lastBufferedRequest;
}
state.bufferedRequestCount += 1;
} else {
doWrite(stream, state, false, len, chunk, encoding, cb);
}
return ret;
}
function doWrite(stream, state, writev, len, chunk, encoding, cb) {
state.writelen = len;
state.writecb = cb;
state.writing = true;
state.sync = true;
if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
state.sync = false;
}
function onwriteError(stream, state, sync, er, cb) {
--state.pendingcb;
if (sync) {
// defer the callback if we are being called synchronously
// to avoid piling up things on the stack
processNextTick(cb, er);
// this can emit finish, and it will always happen
// after error
processNextTick(finishMaybe, stream, state);
stream._writableState.errorEmitted = true;
stream.emit('error', er);
} else {
// the caller expect this to happen before if
// it is async
cb(er);
stream._writableState.errorEmitted = true;
stream.emit('error', er);
// this can emit finish, but finish must
// always follow error
finishMaybe(stream, state);
}
}
function onwriteStateUpdate(state) {
state.writing = false;
state.writecb = null;
state.length -= state.writelen;
state.writelen = 0;
}
function onwrite(stream, er) {
var state = stream._writableState;
var sync = state.sync;
var cb = state.writecb;
onwriteStateUpdate(state);
if (er) onwriteError(stream, state, sync, er, cb);else {
// Check if we're actually ready to finish, but don't emit yet
var finished = needFinish(state);
if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
clearBuffer(stream, state);
}
if (sync) {
/*<replacement>*/
asyncWrite(afterWrite, stream, state, finished, cb);
/*</replacement>*/
} else {
afterWrite(stream, state, finished, cb);
}
}
}
function afterWrite(stream, state, finished, cb) {
if (!finished) onwriteDrain(stream, state);
state.pendingcb--;
cb();
finishMaybe(stream, state);
}
// Must force callback to be called on nextTick, so that we don't
// emit 'drain' before the write() consumer gets the 'false' return
// value, and has a chance to attach a 'drain' listener.
function onwriteDrain(stream, state) {
if (state.length === 0 && state.needDrain) {
state.needDrain = false;
stream.emit('drain');
}
}
// if there's something in the buffer waiting, then process it
function clearBuffer(stream, state) {
state.bufferProcessing = true;
var entry = state.bufferedRequest;
if (stream._writev && entry && entry.next) {
// Fast case, write everything using _writev()
var l = state.bufferedRequestCount;
var buffer = new Array(l);
var holder = state.corkedRequestsFree;
holder.entry = entry;
var count = 0;
var allBuffers = true;
while (entry) {
buffer[count] = entry;
if (!entry.isBuf) allBuffers = false;
entry = entry.next;
count += 1;
}
buffer.allBuffers = allBuffers;
doWrite(stream, state, true, state.length, buffer, '', holder.finish);
// doWrite is almost always async, defer these to save a bit of time
// as the hot path ends with doWrite
state.pendingcb++;
state.lastBufferedRequest = null;
if (holder.next) {
state.corkedRequestsFree = holder.next;
holder.next = null;
} else {
state.corkedRequestsFree = new CorkedRequest(state);
}
} else {
// Slow case, write chunks one-by-one
while (entry) {
var chunk = entry.chunk;
var encoding = entry.encoding;
var cb = entry.callback;
var len = state.objectMode ? 1 : chunk.length;
doWrite(stream, state, false, len, chunk, encoding, cb);
entry = entry.next;
// if we didn't call the onwrite immediately, then
// it means that we need to wait until it does.
// also, that means that the chunk and cb are currently
// being processed, so move the buffer counter past them.
if (state.writing) {
break;
}
}
if (entry === null) state.lastBufferedRequest = null;
}
state.bufferedRequestCount = 0;
state.bufferedRequest = entry;
state.bufferProcessing = false;
}
Writable.prototype._write = function (chunk, encoding, cb) {
cb(new Error('_write() is not implemented'));
};
Writable.prototype._writev = null;
Writable.prototype.end = function (chunk, encoding, cb) {
var state = this._writableState;
if (typeof chunk === 'function') {
cb = chunk;
chunk = null;
encoding = null;
} else if (typeof encoding === 'function') {
cb = encoding;
encoding = null;
}
if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);
// .end() fully uncorks
if (state.corked) {
state.corked = 1;
this.uncork();
}
// ignore unnecessary end() calls.
if (!state.ending && !state.finished) endWritable(this, state, cb);
};
function needFinish(state) {
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
}
function callFinal(stream, state) {
stream._final(function (err) {
state.pendingcb--;
if (err) {
stream.emit('error', err);
}
state.prefinished = true;
stream.emit('prefinish');
finishMaybe(stream, state);
});
}
function prefinish(stream, state) {
if (!state.prefinished && !state.finalCalled) {
if (typeof stream._final === 'function') {
state.pendingcb++;
state.finalCalled = true;
processNextTick(callFinal, stream, state);
} else {
state.prefinished = true;
stream.emit('prefinish');
}
}
}
function finishMaybe(stream, state) {
var need = needFinish(state);
if (need) {
prefinish(stream, state);
if (state.pendingcb === 0) {
state.finished = true;
stream.emit('finish');
}
}
return need;
}
function endWritable(stream, state, cb) {
state.ending = true;
finishMaybe(stream, state);
if (cb) {
if (state.finished) processNextTick(cb);else stream.once('finish', cb);
}
state.ended = true;
stream.writable = false;
}
function onCorkedFinish(corkReq, state, err) {
var entry = corkReq.entry;
corkReq.entry = null;
while (entry) {
var cb = entry.callback;
state.pendingcb--;
cb(err);
entry = entry.next;
}
if (state.corkedRequestsFree) {
state.corkedRequestsFree.next = corkReq;
} else {
state.corkedRequestsFree = corkReq;
}
}
Object.defineProperty(Writable.prototype, 'destroyed', {
get: function get() {
if (this._writableState === undefined) {
return false;
}
return this._writableState.destroyed;
},
set: function set(value) {
// we ignore the value if the stream
// has not been initialized yet
if (!this._writableState) {
return;
}
// backward compatibility, the user is explicitly
// managing destroyed
this._writableState.destroyed = value;
}
});
Writable.prototype.destroy = destroyImpl.destroy;
Writable.prototype._undestroy = destroyImpl.undestroy;
Writable.prototype._destroy = function (err, cb) {
this.end();
cb(err);
};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./_stream_duplex":305,"./internal/streams/destroy":311,"./internal/streams/stream":312,"_process":294,"core-util-is":204,"inherits":266,"process-nextick-args":293,"safe-buffer":319,"util-deprecate":341}],310:[function(require,module,exports){
'use strict';
/*<replacement>*/
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var Buffer = require('safe-buffer').Buffer;
/*</replacement>*/
function copyBuffer(src, target, offset) {
src.copy(target, offset);
}
module.exports = function () {
function BufferList() {
_classCallCheck(this, BufferList);
this.head = null;
this.tail = null;
this.length = 0;
}
BufferList.prototype.push = function push(v) {
var entry = { data: v, next: null };
if (this.length > 0) this.tail.next = entry;else this.head = entry;
this.tail = entry;
++this.length;
};
BufferList.prototype.unshift = function unshift(v) {
var entry = { data: v, next: this.head };
if (this.length === 0) this.tail = entry;
this.head = entry;
++this.length;
};
BufferList.prototype.shift = function shift() {
if (this.length === 0) return;
var ret = this.head.data;
if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
--this.length;
return ret;
};
BufferList.prototype.clear = function clear() {
this.head = this.tail = null;
this.length = 0;
};
BufferList.prototype.join = function join(s) {
if (this.length === 0) return '';
var p = this.head;
var ret = '' + p.data;
while (p = p.next) {
ret += s + p.data;
}return ret;
};
BufferList.prototype.concat = function concat(n) {
if (this.length === 0) return Buffer.alloc(0);
if (this.length === 1) return this.head.data;
var ret = Buffer.allocUnsafe(n >>> 0);
var p = this.head;
var i = 0;
while (p) {
copyBuffer(p.data, ret, i);
i += p.data.length;
p = p.next;
}
return ret;
};
return BufferList;
}();
},{"safe-buffer":319}],311:[function(require,module,exports){
'use strict';
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
// undocumented cb() API, needed for core, not for public API
function destroy(err, cb) {
var _this = this;
var readableDestroyed = this._readableState && this._readableState.destroyed;
var writableDestroyed = this._writableState && this._writableState.destroyed;
if (readableDestroyed || writableDestroyed) {
if (cb) {
cb(err);
} else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
processNextTick(emitErrorNT, this, err);
}
return;
}
// we set destroyed to true before firing error callbacks in order
// to make it re-entrance safe in case destroy() is called within callbacks
if (this._readableState) {
this._readableState.destroyed = true;
}
// if this is a duplex stream mark the writable part as destroyed as well
if (this._writableState) {
this._writableState.destroyed = true;
}
this._destroy(err || null, function (err) {
if (!cb && err) {
processNextTick(emitErrorNT, _this, err);
if (_this._writableState) {
_this._writableState.errorEmitted = true;
}
} else if (cb) {
cb(err);
}
});
}
function undestroy() {
if (this._readableState) {
this._readableState.destroyed = false;
this._readableState.reading = false;
this._readableState.ended = false;
this._readableState.endEmitted = false;
}
if (this._writableState) {
this._writableState.destroyed = false;
this._writableState.ended = false;
this._writableState.ending = false;
this._writableState.finished = false;
this._writableState.errorEmitted = false;
}
}
function emitErrorNT(self, err) {
self.emit('error', err);
}
module.exports = {
destroy: destroy,
undestroy: undestroy
};
},{"process-nextick-args":293}],312:[function(require,module,exports){
'use strict';
module.exports = require('events').EventEmitter;
},{"events":245}],313:[function(require,module,exports){
'use strict';
module.exports = require('./readable').PassThrough;
},{"./readable":314}],314:[function(require,module,exports){
'use strict';
exports = module.exports = require('./lib/_stream_readable.js');
exports.Stream = exports;
exports.Readable = exports;
exports.Writable = require('./lib/_stream_writable.js');
exports.Duplex = require('./lib/_stream_duplex.js');
exports.Transform = require('./lib/_stream_transform.js');
exports.PassThrough = require('./lib/_stream_passthrough.js');
},{"./lib/_stream_duplex.js":305,"./lib/_stream_passthrough.js":306,"./lib/_stream_readable.js":307,"./lib/_stream_transform.js":308,"./lib/_stream_writable.js":309}],315:[function(require,module,exports){
'use strict';
module.exports = require('./readable').Transform;
},{"./readable":314}],316:[function(require,module,exports){
'use strict';
module.exports = require('./lib/_stream_writable.js');
},{"./lib/_stream_writable.js":309}],317:[function(require,module,exports){
(function (Buffer){
'use strict';
var inherits = require('inherits');
var HashBase = require('hash-base');
function RIPEMD160() {
HashBase.call(this, 64);
// state
this._a = 0x67452301;
this._b = 0xefcdab89;
this._c = 0x98badcfe;
this._d = 0x10325476;
this._e = 0xc3d2e1f0;
}
inherits(RIPEMD160, HashBase);
RIPEMD160.prototype._update = function () {
var m = new Array(16);
for (var i = 0; i < 16; ++i) {
m[i] = this._block.readInt32LE(i * 4);
}var al = this._a;
var bl = this._b;
var cl = this._c;
var dl = this._d;
var el = this._e;
// Mj = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
// K = 0x00000000
// Sj = 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8
al = fn1(al, bl, cl, dl, el, m[0], 0x00000000, 11);cl = rotl(cl, 10);
el = fn1(el, al, bl, cl, dl, m[1], 0x00000000, 14);bl = rotl(bl, 10);
dl = fn1(dl, el, al, bl, cl, m[2], 0x00000000, 15);al = rotl(al, 10);
cl = fn1(cl, dl, el, al, bl, m[3], 0x00000000, 12);el = rotl(el, 10);
bl = fn1(bl, cl, dl, el, al, m[4], 0x00000000, 5);dl = rotl(dl, 10);
al = fn1(al, bl, cl, dl, el, m[5], 0x00000000, 8);cl = rotl(cl, 10);
el = fn1(el, al, bl, cl, dl, m[6], 0x00000000, 7);bl = rotl(bl, 10);
dl = fn1(dl, el, al, bl, cl, m[7], 0x00000000, 9);al = rotl(al, 10);
cl = fn1(cl, dl, el, al, bl, m[8], 0x00000000, 11);el = rotl(el, 10);
bl = fn1(bl, cl, dl, el, al, m[9], 0x00000000, 13);dl = rotl(dl, 10);
al = fn1(al, bl, cl, dl, el, m[10], 0x00000000, 14);cl = rotl(cl, 10);
el = fn1(el, al, bl, cl, dl, m[11], 0x00000000, 15);bl = rotl(bl, 10);
dl = fn1(dl, el, al, bl, cl, m[12], 0x00000000, 6);al = rotl(al, 10);
cl = fn1(cl, dl, el, al, bl, m[13], 0x00000000, 7);el = rotl(el, 10);
bl = fn1(bl, cl, dl, el, al, m[14], 0x00000000, 9);dl = rotl(dl, 10);
al = fn1(al, bl, cl, dl, el, m[15], 0x00000000, 8);cl = rotl(cl, 10);
// Mj = 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8
// K = 0x5a827999
// Sj = 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12
el = fn2(el, al, bl, cl, dl, m[7], 0x5a827999, 7);bl = rotl(bl, 10);
dl = fn2(dl, el, al, bl, cl, m[4], 0x5a827999, 6);al = rotl(al, 10);
cl = fn2(cl, dl, el, al, bl, m[13], 0x5a827999, 8);el = rotl(el, 10);
bl = fn2(bl, cl, dl, el, al, m[1], 0x5a827999, 13);dl = rotl(dl, 10);
al = fn2(al, bl, cl, dl, el, m[10], 0x5a827999, 11);cl = rotl(cl, 10);
el = fn2(el, al, bl, cl, dl, m[6], 0x5a827999, 9);bl = rotl(bl, 10);
dl = fn2(dl, el, al, bl, cl, m[15], 0x5a827999, 7);al = rotl(al, 10);
cl = fn2(cl, dl, el, al, bl, m[3], 0x5a827999, 15);el = rotl(el, 10);
bl = fn2(bl, cl, dl, el, al, m[12], 0x5a827999, 7);dl = rotl(dl, 10);
al = fn2(al, bl, cl, dl, el, m[0], 0x5a827999, 12);cl = rotl(cl, 10);
el = fn2(el, al, bl, cl, dl, m[9], 0x5a827999, 15);bl = rotl(bl, 10);
dl = fn2(dl, el, al, bl, cl, m[5], 0x5a827999, 9);al = rotl(al, 10);
cl = fn2(cl, dl, el, al, bl, m[2], 0x5a827999, 11);el = rotl(el, 10);
bl = fn2(bl, cl, dl, el, al, m[14], 0x5a827999, 7);dl = rotl(dl, 10);
al = fn2(al, bl, cl, dl, el, m[11], 0x5a827999, 13);cl = rotl(cl, 10);
el = fn2(el, al, bl, cl, dl, m[8], 0x5a827999, 12);bl = rotl(bl, 10);
// Mj = 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12
// K = 0x6ed9eba1
// Sj = 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5
dl = fn3(dl, el, al, bl, cl, m[3], 0x6ed9eba1, 11);al = rotl(al, 10);
cl = fn3(cl, dl, el, al, bl, m[10], 0x6ed9eba1, 13);el = rotl(el, 10);
bl = fn3(bl, cl, dl, el, al, m[14], 0x6ed9eba1, 6);dl = rotl(dl, 10);
al = fn3(al, bl, cl, dl, el, m[4], 0x6ed9eba1, 7);cl = rotl(cl, 10);
el = fn3(el, al, bl, cl, dl, m[9], 0x6ed9eba1, 14);bl = rotl(bl, 10);
dl = fn3(dl, el, al, bl, cl, m[15], 0x6ed9eba1, 9);al = rotl(al, 10);
cl = fn3(cl, dl, el, al, bl, m[8], 0x6ed9eba1, 13);el = rotl(el, 10);
bl = fn3(bl, cl, dl, el, al, m[1], 0x6ed9eba1, 15);dl = rotl(dl, 10);
al = fn3(al, bl, cl, dl, el, m[2], 0x6ed9eba1, 14);cl = rotl(cl, 10);
el = fn3(el, al, bl, cl, dl, m[7], 0x6ed9eba1, 8);bl = rotl(bl, 10);
dl = fn3(dl, el, al, bl, cl, m[0], 0x6ed9eba1, 13);al = rotl(al, 10);
cl = fn3(cl, dl, el, al, bl, m[6], 0x6ed9eba1, 6);el = rotl(el, 10);
bl = fn3(bl, cl, dl, el, al, m[13], 0x6ed9eba1, 5);dl = rotl(dl, 10);
al = fn3(al, bl, cl, dl, el, m[11], 0x6ed9eba1, 12);cl = rotl(cl, 10);
el = fn3(el, al, bl, cl, dl, m[5], 0x6ed9eba1, 7);bl = rotl(bl, 10);
dl = fn3(dl, el, al, bl, cl, m[12], 0x6ed9eba1, 5);al = rotl(al, 10);
// Mj = 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2
// K = 0x8f1bbcdc
// Sj = 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12
cl = fn4(cl, dl, el, al, bl, m[1], 0x8f1bbcdc, 11);el = rotl(el, 10);
bl = fn4(bl, cl, dl, el, al, m[9], 0x8f1bbcdc, 12);dl = rotl(dl, 10);
al = fn4(al, bl, cl, dl, el, m[11], 0x8f1bbcdc, 14);cl = rotl(cl, 10);
el = fn4(el, al, bl, cl, dl, m[10], 0x8f1bbcdc, 15);bl = rotl(bl, 10);
dl = fn4(dl, el, al, bl, cl, m[0], 0x8f1bbcdc, 14);al = rotl(al, 10);
cl = fn4(cl, dl, el, al, bl, m[8], 0x8f1bbcdc, 15);el = rotl(el, 10);
bl = fn4(bl, cl, dl, el, al, m[12], 0x8f1bbcdc, 9);dl = rotl(dl, 10);
al = fn4(al, bl, cl, dl, el, m[4], 0x8f1bbcdc, 8);cl = rotl(cl, 10);
el = fn4(el, al, bl, cl, dl, m[13], 0x8f1bbcdc, 9);bl = rotl(bl, 10);
dl = fn4(dl, el, al, bl, cl, m[3], 0x8f1bbcdc, 14);al = rotl(al, 10);
cl = fn4(cl, dl, el, al, bl, m[7], 0x8f1bbcdc, 5);el = rotl(el, 10);
bl = fn4(bl, cl, dl, el, al, m[15], 0x8f1bbcdc, 6);dl = rotl(dl, 10);
al = fn4(al, bl, cl, dl, el, m[14], 0x8f1bbcdc, 8);cl = rotl(cl, 10);
el = fn4(el, al, bl, cl, dl, m[5], 0x8f1bbcdc, 6);bl = rotl(bl, 10);
dl = fn4(dl, el, al, bl, cl, m[6], 0x8f1bbcdc, 5);al = rotl(al, 10);
cl = fn4(cl, dl, el, al, bl, m[2], 0x8f1bbcdc, 12);el = rotl(el, 10);
// Mj = 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
// K = 0xa953fd4e
// Sj = 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
bl = fn5(bl, cl, dl, el, al, m[4], 0xa953fd4e, 9);dl = rotl(dl, 10);
al = fn5(al, bl, cl, dl, el, m[0], 0xa953fd4e, 15);cl = rotl(cl, 10);
el = fn5(el, al, bl, cl, dl, m[5], 0xa953fd4e, 5);bl = rotl(bl, 10);
dl = fn5(dl, el, al, bl, cl, m[9], 0xa953fd4e, 11);al = rotl(al, 10);
cl = fn5(cl, dl, el, al, bl, m[7], 0xa953fd4e, 6);el = rotl(el, 10);
bl = fn5(bl, cl, dl, el, al, m[12], 0xa953fd4e, 8);dl = rotl(dl, 10);
al = fn5(al, bl, cl, dl, el, m[2], 0xa953fd4e, 13);cl = rotl(cl, 10);
el = fn5(el, al, bl, cl, dl, m[10], 0xa953fd4e, 12);bl = rotl(bl, 10);
dl = fn5(dl, el, al, bl, cl, m[14], 0xa953fd4e, 5);al = rotl(al, 10);
cl = fn5(cl, dl, el, al, bl, m[1], 0xa953fd4e, 12);el = rotl(el, 10);
bl = fn5(bl, cl, dl, el, al, m[3], 0xa953fd4e, 13);dl = rotl(dl, 10);
al = fn5(al, bl, cl, dl, el, m[8], 0xa953fd4e, 14);cl = rotl(cl, 10);
el = fn5(el, al, bl, cl, dl, m[11], 0xa953fd4e, 11);bl = rotl(bl, 10);
dl = fn5(dl, el, al, bl, cl, m[6], 0xa953fd4e, 8);al = rotl(al, 10);
cl = fn5(cl, dl, el, al, bl, m[15], 0xa953fd4e, 5);el = rotl(el, 10);
bl = fn5(bl, cl, dl, el, al, m[13], 0xa953fd4e, 6);dl = rotl(dl, 10);
var ar = this._a;
var br = this._b;
var cr = this._c;
var dr = this._d;
var er = this._e;
// M'j = 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12
// K' = 0x50a28be6
// S'j = 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6
ar = fn5(ar, br, cr, dr, er, m[5], 0x50a28be6, 8);cr = rotl(cr, 10);
er = fn5(er, ar, br, cr, dr, m[14], 0x50a28be6, 9);br = rotl(br, 10);
dr = fn5(dr, er, ar, br, cr, m[7], 0x50a28be6, 9);ar = rotl(ar, 10);
cr = fn5(cr, dr, er, ar, br, m[0], 0x50a28be6, 11);er = rotl(er, 10);
br = fn5(br, cr, dr, er, ar, m[9], 0x50a28be6, 13);dr = rotl(dr, 10);
ar = fn5(ar, br, cr, dr, er, m[2], 0x50a28be6, 15);cr = rotl(cr, 10);
er = fn5(er, ar, br, cr, dr, m[11], 0x50a28be6, 15);br = rotl(br, 10);
dr = fn5(dr, er, ar, br, cr, m[4], 0x50a28be6, 5);ar = rotl(ar, 10);
cr = fn5(cr, dr, er, ar, br, m[13], 0x50a28be6, 7);er = rotl(er, 10);
br = fn5(br, cr, dr, er, ar, m[6], 0x50a28be6, 7);dr = rotl(dr, 10);
ar = fn5(ar, br, cr, dr, er, m[15], 0x50a28be6, 8);cr = rotl(cr, 10);
er = fn5(er, ar, br, cr, dr, m[8], 0x50a28be6, 11);br = rotl(br, 10);
dr = fn5(dr, er, ar, br, cr, m[1], 0x50a28be6, 14);ar = rotl(ar, 10);
cr = fn5(cr, dr, er, ar, br, m[10], 0x50a28be6, 14);er = rotl(er, 10);
br = fn5(br, cr, dr, er, ar, m[3], 0x50a28be6, 12);dr = rotl(dr, 10);
ar = fn5(ar, br, cr, dr, er, m[12], 0x50a28be6, 6);cr = rotl(cr, 10);
// M'j = 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2
// K' = 0x5c4dd124
// S'j = 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11
er = fn4(er, ar, br, cr, dr, m[6], 0x5c4dd124, 9);br = rotl(br, 10);
dr = fn4(dr, er, ar, br, cr, m[11], 0x5c4dd124, 13);ar = rotl(ar, 10);
cr = fn4(cr, dr, er, ar, br, m[3], 0x5c4dd124, 15);er = rotl(er, 10);
br = fn4(br, cr, dr, er, ar, m[7], 0x5c4dd124, 7);dr = rotl(dr, 10);
ar = fn4(ar, br, cr, dr, er, m[0], 0x5c4dd124, 12);cr = rotl(cr, 10);
er = fn4(er, ar, br, cr, dr, m[13], 0x5c4dd124, 8);br = rotl(br, 10);
dr = fn4(dr, er, ar, br, cr, m[5], 0x5c4dd124, 9);ar = rotl(ar, 10);
cr = fn4(cr, dr, er, ar, br, m[10], 0x5c4dd124, 11);er = rotl(er, 10);
br = fn4(br, cr, dr, er, ar, m[14], 0x5c4dd124, 7);dr = rotl(dr, 10);
ar = fn4(ar, br, cr, dr, er, m[15], 0x5c4dd124, 7);cr = rotl(cr, 10);
er = fn4(er, ar, br, cr, dr, m[8], 0x5c4dd124, 12);br = rotl(br, 10);
dr = fn4(dr, er, ar, br, cr, m[12], 0x5c4dd124, 7);ar = rotl(ar, 10);
cr = fn4(cr, dr, er, ar, br, m[4], 0x5c4dd124, 6);er = rotl(er, 10);
br = fn4(br, cr, dr, er, ar, m[9], 0x5c4dd124, 15);dr = rotl(dr, 10);
ar = fn4(ar, br, cr, dr, er, m[1], 0x5c4dd124, 13);cr = rotl(cr, 10);
er = fn4(er, ar, br, cr, dr, m[2], 0x5c4dd124, 11);br = rotl(br, 10);
// M'j = 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13
// K' = 0x6d703ef3
// S'j = 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5
dr = fn3(dr, er, ar, br, cr, m[15], 0x6d703ef3, 9);ar = rotl(ar, 10);
cr = fn3(cr, dr, er, ar, br, m[5], 0x6d703ef3, 7);er = rotl(er, 10);
br = fn3(br, cr, dr, er, ar, m[1], 0x6d703ef3, 15);dr = rotl(dr, 10);
ar = fn3(ar, br, cr, dr, er, m[3], 0x6d703ef3, 11);cr = rotl(cr, 10);
er = fn3(er, ar, br, cr, dr, m[7], 0x6d703ef3, 8);br = rotl(br, 10);
dr = fn3(dr, er, ar, br, cr, m[14], 0x6d703ef3, 6);ar = rotl(ar, 10);
cr = fn3(cr, dr, er, ar, br, m[6], 0x6d703ef3, 6);er = rotl(er, 10);
br = fn3(br, cr, dr, er, ar, m[9], 0x6d703ef3, 14);dr = rotl(dr, 10);
ar = fn3(ar, br, cr, dr, er, m[11], 0x6d703ef3, 12);cr = rotl(cr, 10);
er = fn3(er, ar, br, cr, dr, m[8], 0x6d703ef3, 13);br = rotl(br, 10);
dr = fn3(dr, er, ar, br, cr, m[12], 0x6d703ef3, 5);ar = rotl(ar, 10);
cr = fn3(cr, dr, er, ar, br, m[2], 0x6d703ef3, 14);er = rotl(er, 10);
br = fn3(br, cr, dr, er, ar, m[10], 0x6d703ef3, 13);dr = rotl(dr, 10);
ar = fn3(ar, br, cr, dr, er, m[0], 0x6d703ef3, 13);cr = rotl(cr, 10);
er = fn3(er, ar, br, cr, dr, m[4], 0x6d703ef3, 7);br = rotl(br, 10);
dr = fn3(dr, er, ar, br, cr, m[13], 0x6d703ef3, 5);ar = rotl(ar, 10);
// M'j = 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14
// K' = 0x7a6d76e9
// S'j = 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8
cr = fn2(cr, dr, er, ar, br, m[8], 0x7a6d76e9, 15);er = rotl(er, 10);
br = fn2(br, cr, dr, er, ar, m[6], 0x7a6d76e9, 5);dr = rotl(dr, 10);
ar = fn2(ar, br, cr, dr, er, m[4], 0x7a6d76e9, 8);cr = rotl(cr, 10);
er = fn2(er, ar, br, cr, dr, m[1], 0x7a6d76e9, 11);br = rotl(br, 10);
dr = fn2(dr, er, ar, br, cr, m[3], 0x7a6d76e9, 14);ar = rotl(ar, 10);
cr = fn2(cr, dr, er, ar, br, m[11], 0x7a6d76e9, 14);er = rotl(er, 10);
br = fn2(br, cr, dr, er, ar, m[15], 0x7a6d76e9, 6);dr = rotl(dr, 10);
ar = fn2(ar, br, cr, dr, er, m[0], 0x7a6d76e9, 14);cr = rotl(cr, 10);
er = fn2(er, ar, br, cr, dr, m[5], 0x7a6d76e9, 6);br = rotl(br, 10);
dr = fn2(dr, er, ar, br, cr, m[12], 0x7a6d76e9, 9);ar = rotl(ar, 10);
cr = fn2(cr, dr, er, ar, br, m[2], 0x7a6d76e9, 12);er = rotl(er, 10);
br = fn2(br, cr, dr, er, ar, m[13], 0x7a6d76e9, 9);dr = rotl(dr, 10);
ar = fn2(ar, br, cr, dr, er, m[9], 0x7a6d76e9, 12);cr = rotl(cr, 10);
er = fn2(er, ar, br, cr, dr, m[7], 0x7a6d76e9, 5);br = rotl(br, 10);
dr = fn2(dr, er, ar, br, cr, m[10], 0x7a6d76e9, 15);ar = rotl(ar, 10);
cr = fn2(cr, dr, er, ar, br, m[14], 0x7a6d76e9, 8);er = rotl(er, 10);
// M'j = 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
// K' = 0x00000000
// S'j = 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
br = fn1(br, cr, dr, er, ar, m[12], 0x00000000, 8);dr = rotl(dr, 10);
ar = fn1(ar, br, cr, dr, er, m[15], 0x00000000, 5);cr = rotl(cr, 10);
er = fn1(er, ar, br, cr, dr, m[10], 0x00000000, 12);br = rotl(br, 10);
dr = fn1(dr, er, ar, br, cr, m[4], 0x00000000, 9);ar = rotl(ar, 10);
cr = fn1(cr, dr, er, ar, br, m[1], 0x00000000, 12);er = rotl(er, 10);
br = fn1(br, cr, dr, er, ar, m[5], 0x00000000, 5);dr = rotl(dr, 10);
ar = fn1(ar, br, cr, dr, er, m[8], 0x00000000, 14);cr = rotl(cr, 10);
er = fn1(er, ar, br, cr, dr, m[7], 0x00000000, 6);br = rotl(br, 10);
dr = fn1(dr, er, ar, br, cr, m[6], 0x00000000, 8);ar = rotl(ar, 10);
cr = fn1(cr, dr, er, ar, br, m[2], 0x00000000, 13);er = rotl(er, 10);
br = fn1(br, cr, dr, er, ar, m[13], 0x00000000, 6);dr = rotl(dr, 10);
ar = fn1(ar, br, cr, dr, er, m[14], 0x00000000, 5);cr = rotl(cr, 10);
er = fn1(er, ar, br, cr, dr, m[0], 0x00000000, 15);br = rotl(br, 10);
dr = fn1(dr, er, ar, br, cr, m[3], 0x00000000, 13);ar = rotl(ar, 10);
cr = fn1(cr, dr, er, ar, br, m[9], 0x00000000, 11);er = rotl(er, 10);
br = fn1(br, cr, dr, er, ar, m[11], 0x00000000, 11);dr = rotl(dr, 10);
// change state
var t = this._b + cl + dr | 0;
this._b = this._c + dl + er | 0;
this._c = this._d + el + ar | 0;
this._d = this._e + al + br | 0;
this._e = this._a + bl + cr | 0;
this._a = t;
};
RIPEMD160.prototype._digest = function () {
// create padding and handle blocks
this._block[this._blockOffset++] = 0x80;
if (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();
// produce result
var buffer = new Buffer(20);
buffer.writeInt32LE(this._a, 0);
buffer.writeInt32LE(this._b, 4);
buffer.writeInt32LE(this._c, 8);
buffer.writeInt32LE(this._d, 12);
buffer.writeInt32LE(this._e, 16);
return buffer;
};
function rotl(x, n) {
return x << n | x >>> 32 - n;
}
function fn1(a, b, c, d, e, m, k, s) {
return rotl(a + (b ^ c ^ d) + m + k | 0, s) + e | 0;
}
function fn2(a, b, c, d, e, m, k, s) {
return rotl(a + (b & c | ~b & d) + m + k | 0, s) + e | 0;
}
function fn3(a, b, c, d, e, m, k, s) {
return rotl(a + ((b | ~c) ^ d) + m + k | 0, s) + e | 0;
}
function fn4(a, b, c, d, e, m, k, s) {
return rotl(a + (b & d | c & ~d) + m + k | 0, s) + e | 0;
}
function fn5(a, b, c, d, e, m, k, s) {
return rotl(a + (b ^ (c | ~d)) + m + k | 0, s) + e | 0;
}
module.exports = RIPEMD160;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"hash-base":247,"inherits":266}],318:[function(require,module,exports){
(function (Buffer){
'use strict';
var assert = require('assert');
/**
* RLP Encoding based on: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP
* This function takes in a data, convert it to buffer if not, and a length for recursion
*
* @param {Buffer,String,Integer,Array} data - will be converted to buffer
* @returns {Buffer} - returns buffer of encoded data
**/
exports.encode = function (input) {
if (input instanceof Array) {
var output = [];
for (var i = 0; i < input.length; i++) {
output.push(exports.encode(input[i]));
}
var buf = Buffer.concat(output);
return Buffer.concat([encodeLength(buf.length, 192), buf]);
} else {
input = toBuffer(input);
if (input.length === 1 && input[0] < 128) {
return input;
} else {
return Buffer.concat([encodeLength(input.length, 128), input]);
}
}
};
function safeParseInt(v, base) {
if (v.slice(0, 2) === '00') {
throw new Error('invalid RLP: extra zeros');
}
return parseInt(v, base);
}
function encodeLength(len, offset) {
if (len < 56) {
return new Buffer([len + offset]);
} else {
var hexLength = intToHex(len);
var lLength = hexLength.length / 2;
var firstByte = intToHex(offset + 55 + lLength);
return new Buffer(firstByte + hexLength, 'hex');
}
}
/**
* RLP Decoding based on: {@link https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP|RLP}
* @param {Buffer,String,Integer,Array} data - will be converted to buffer
* @returns {Array} - returns decode Array of Buffers containg the original message
**/
exports.decode = function (input, stream) {
if (!input || input.length === 0) {
return new Buffer([]);
}
input = toBuffer(input);
var decoded = _decode(input);
if (stream) {
return decoded;
}
assert.equal(decoded.remainder.length, 0, 'invalid remainder');
return decoded.data;
};
exports.getLength = function (input) {
if (!input || input.length === 0) {
return new Buffer([]);
}
input = toBuffer(input);
var firstByte = input[0];
if (firstByte <= 0x7f) {
return input.length;
} else if (firstByte <= 0xb7) {
return firstByte - 0x7f;
} else if (firstByte <= 0xbf) {
return firstByte - 0xb6;
} else if (firstByte <= 0xf7) {
// a list between 0-55 bytes long
return firstByte - 0xbf;
} else {
// a list over 55 bytes long
var llength = firstByte - 0xf6;
var length = safeParseInt(input.slice(1, llength).toString('hex'), 16);
return llength + length;
}
};
function _decode(input) {
var length, llength, data, innerRemainder, d;
var decoded = [];
var firstByte = input[0];
if (firstByte <= 0x7f) {
// a single byte whose value is in the [0x00, 0x7f] range, that byte is its own RLP encoding.
return {
data: input.slice(0, 1),
remainder: input.slice(1)
};
} else if (firstByte <= 0xb7) {
// string is 0-55 bytes long. A single byte with value 0x80 plus the length of the string followed by the string
// The range of the first byte is [0x80, 0xb7]
length = firstByte - 0x7f;
// set 0x80 null to 0
if (firstByte === 0x80) {
data = new Buffer([]);
} else {
data = input.slice(1, length);
}
if (length === 2 && data[0] < 0x80) {
throw new Error('invalid rlp encoding: byte must be less 0x80');
}
return {
data: data,
remainder: input.slice(length)
};
} else if (firstByte <= 0xbf) {
llength = firstByte - 0xb6;
length = safeParseInt(input.slice(1, llength).toString('hex'), 16);
data = input.slice(llength, length + llength);
if (data.length < length) {
throw new Error('invalid RLP');
}
return {
data: data,
remainder: input.slice(length + llength)
};
} else if (firstByte <= 0xf7) {
// a list between 0-55 bytes long
length = firstByte - 0xbf;
innerRemainder = input.slice(1, length);
while (innerRemainder.length) {
d = _decode(innerRemainder);
decoded.push(d.data);
innerRemainder = d.remainder;
}
return {
data: decoded,
remainder: input.slice(length)
};
} else {
// a list over 55 bytes long
llength = firstByte - 0xf6;
length = safeParseInt(input.slice(1, llength).toString('hex'), 16);
var totalLength = llength + length;
if (totalLength > input.length) {
throw new Error('invalid rlp: total length is larger than the data');
}
innerRemainder = input.slice(llength, totalLength);
if (innerRemainder.length === 0) {
throw new Error('invalid rlp, List has a invalid length');
}
while (innerRemainder.length) {
d = _decode(innerRemainder);
decoded.push(d.data);
innerRemainder = d.remainder;
}
return {
data: decoded,
remainder: input.slice(totalLength)
};
}
}
function isHexPrefixed(str) {
return str.slice(0, 2) === '0x';
}
// Removes 0x from a given String
function stripHexPrefix(str) {
if (typeof str !== 'string') {
return str;
}
return isHexPrefixed(str) ? str.slice(2) : str;
}
function intToHex(i) {
var hex = i.toString(16);
if (hex.length % 2) {
hex = '0' + hex;
}
return hex;
}
function padToEven(a) {
if (a.length % 2) a = '0' + a;
return a;
}
function intToBuffer(i) {
var hex = intToHex(i);
return new Buffer(hex, 'hex');
}
function toBuffer(v) {
if (!Buffer.isBuffer(v)) {
if (typeof v === 'string') {
if (isHexPrefixed(v)) {
v = new Buffer(padToEven(stripHexPrefix(v)), 'hex');
} else {
v = new Buffer(v);
}
} else if (typeof v === 'number') {
if (!v) {
v = new Buffer([]);
} else {
v = intToBuffer(v);
}
} else if (v === null || v === undefined) {
v = new Buffer([]);
} else if (v.toArray) {
// converts a BN to a Buffer
v = new Buffer(v.toArray());
} else {
throw new Error('invalid type');
}
}
return v;
}
}).call(this,require("buffer").Buffer)
},{"assert":156,"buffer":201}],319:[function(require,module,exports){
'use strict';
/* eslint-disable node/no-deprecated-api */
var buffer = require('buffer');
var Buffer = buffer.Buffer;
// alternative to using Object.keys for old browsers
function copyProps(src, dst) {
for (var key in src) {
dst[key] = src[key];
}
}
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
module.exports = buffer;
} else {
// Copy properties from require('buffer')
copyProps(buffer, exports);
exports.Buffer = SafeBuffer;
}
function SafeBuffer(arg, encodingOrOffset, length) {
return Buffer(arg, encodingOrOffset, length);
}
// Copy static methods from Buffer
copyProps(Buffer, SafeBuffer);
SafeBuffer.from = function (arg, encodingOrOffset, length) {
if (typeof arg === 'number') {
throw new TypeError('Argument must not be a number');
}
return Buffer(arg, encodingOrOffset, length);
};
SafeBuffer.alloc = function (size, fill, encoding) {
if (typeof size !== 'number') {
throw new TypeError('Argument must be a number');
}
var buf = Buffer(size);
if (fill !== undefined) {
if (typeof encoding === 'string') {
buf.fill(fill, encoding);
} else {
buf.fill(fill);
}
} else {
buf.fill(0);
}
return buf;
};
SafeBuffer.allocUnsafe = function (size) {
if (typeof size !== 'number') {
throw new TypeError('Argument must be a number');
}
return Buffer(size);
};
SafeBuffer.allocUnsafeSlow = function (size) {
if (typeof size !== 'number') {
throw new TypeError('Argument must be a number');
}
return buffer.SlowBuffer(size);
};
},{"buffer":201}],320:[function(require,module,exports){
(function (Buffer){
'use strict';
var crypto = require('crypto');
/* eslint-disable camelcase */
var MAX_VALUE = 0x7fffffff;
// N = Cpu cost, r = Memory cost, p = parallelization cost
function scrypt(key, salt, N, r, p, dkLen, progressCallback) {
if (N === 0 || (N & N - 1) !== 0) throw Error('N must be > 0 and a power of 2');
if (N > MAX_VALUE / 128 / r) throw Error('Parameter N is too large');
if (r > MAX_VALUE / 128 / p) throw Error('Parameter r is too large');
var XY = new Buffer(256 * r);
var V = new Buffer(128 * r * N);
// pseudo global
var B32 = new Int32Array(16); // salsa20_8
var x = new Int32Array(16); // salsa20_8
var _X = new Buffer(64); // blockmix_salsa8
// pseudo global
var B = crypto.pbkdf2Sync(key, salt, 1, p * 128 * r, 'sha256');
var tickCallback;
if (progressCallback) {
var totalOps = p * N * 2;
var currentOp = 0;
tickCallback = function tickCallback() {
++currentOp;
// send progress notifications once every 1,000 ops
if (currentOp % 1000 === 0) {
progressCallback({
current: currentOp,
total: totalOps,
percent: currentOp / totalOps * 100.0
});
}
};
}
for (var i = 0; i < p; i++) {
smix(B, i * 128 * r, r, N, V, XY);
}
return crypto.pbkdf2Sync(key, B, 1, dkLen, 'sha256');
// all of these functions are actually moved to the top
// due to function hoisting
function smix(B, Bi, r, N, V, XY) {
var Xi = 0;
var Yi = 128 * r;
var i;
B.copy(XY, Xi, Bi, Bi + Yi);
for (i = 0; i < N; i++) {
XY.copy(V, i * Yi, Xi, Xi + Yi);
blockmix_salsa8(XY, Xi, Yi, r);
if (tickCallback) tickCallback();
}
for (i = 0; i < N; i++) {
var offset = Xi + (2 * r - 1) * 64;
var j = XY.readUInt32LE(offset) & N - 1;
blockxor(V, j * Yi, XY, Xi, Yi);
blockmix_salsa8(XY, Xi, Yi, r);
if (tickCallback) tickCallback();
}
XY.copy(B, Bi, Xi, Xi + Yi);
}
function blockmix_salsa8(BY, Bi, Yi, r) {
var i;
arraycopy(BY, Bi + (2 * r - 1) * 64, _X, 0, 64);
for (i = 0; i < 2 * r; i++) {
blockxor(BY, i * 64, _X, 0, 64);
salsa20_8(_X);
arraycopy(_X, 0, BY, Yi + i * 64, 64);
}
for (i = 0; i < r; i++) {
arraycopy(BY, Yi + i * 2 * 64, BY, Bi + i * 64, 64);
}
for (i = 0; i < r; i++) {
arraycopy(BY, Yi + (i * 2 + 1) * 64, BY, Bi + (i + r) * 64, 64);
}
}
function R(a, b) {
return a << b | a >>> 32 - b;
}
function salsa20_8(B) {
var i;
for (i = 0; i < 16; i++) {
B32[i] = (B[i * 4 + 0] & 0xff) << 0;
B32[i] |= (B[i * 4 + 1] & 0xff) << 8;
B32[i] |= (B[i * 4 + 2] & 0xff) << 16;
B32[i] |= (B[i * 4 + 3] & 0xff) << 24;
// B32[i] = B.readUInt32LE(i*4) <--- this is signficantly slower even in Node.js
}
arraycopy(B32, 0, x, 0, 16);
for (i = 8; i > 0; i -= 2) {
x[4] ^= R(x[0] + x[12], 7);
x[8] ^= R(x[4] + x[0], 9);
x[12] ^= R(x[8] + x[4], 13);
x[0] ^= R(x[12] + x[8], 18);
x[9] ^= R(x[5] + x[1], 7);
x[13] ^= R(x[9] + x[5], 9);
x[1] ^= R(x[13] + x[9], 13);
x[5] ^= R(x[1] + x[13], 18);
x[14] ^= R(x[10] + x[6], 7);
x[2] ^= R(x[14] + x[10], 9);
x[6] ^= R(x[2] + x[14], 13);
x[10] ^= R(x[6] + x[2], 18);
x[3] ^= R(x[15] + x[11], 7);
x[7] ^= R(x[3] + x[15], 9);
x[11] ^= R(x[7] + x[3], 13);
x[15] ^= R(x[11] + x[7], 18);
x[1] ^= R(x[0] + x[3], 7);
x[2] ^= R(x[1] + x[0], 9);
x[3] ^= R(x[2] + x[1], 13);
x[0] ^= R(x[3] + x[2], 18);
x[6] ^= R(x[5] + x[4], 7);
x[7] ^= R(x[6] + x[5], 9);
x[4] ^= R(x[7] + x[6], 13);
x[5] ^= R(x[4] + x[7], 18);
x[11] ^= R(x[10] + x[9], 7);
x[8] ^= R(x[11] + x[10], 9);
x[9] ^= R(x[8] + x[11], 13);
x[10] ^= R(x[9] + x[8], 18);
x[12] ^= R(x[15] + x[14], 7);
x[13] ^= R(x[12] + x[15], 9);
x[14] ^= R(x[13] + x[12], 13);
x[15] ^= R(x[14] + x[13], 18);
}
for (i = 0; i < 16; ++i) {
B32[i] = x[i] + B32[i];
}for (i = 0; i < 16; i++) {
var bi = i * 4;
B[bi + 0] = B32[i] >> 0 & 0xff;
B[bi + 1] = B32[i] >> 8 & 0xff;
B[bi + 2] = B32[i] >> 16 & 0xff;
B[bi + 3] = B32[i] >> 24 & 0xff;
// B.writeInt32LE(B32[i], i*4) //<--- this is signficantly slower even in Node.js
}
}
// naive approach... going back to loop unrolling may yield additional performance
function blockxor(S, Si, D, Di, len) {
for (var i = 0; i < len; i++) {
D[Di + i] ^= S[Si + i];
}
}
}
function arraycopy(src, srcPos, dest, destPos, length) {
if (Buffer.isBuffer(src) && Buffer.isBuffer(dest)) {
src.copy(dest, destPos, srcPos, srcPos + length);
} else {
while (length--) {
dest[destPos++] = src[srcPos++];
}
}
}
module.exports = scrypt;
}).call(this,require("buffer").Buffer)
},{"buffer":201,"crypto":211}],321:[function(require,module,exports){
'use strict';
module.exports = require('./lib')(require('./lib/elliptic'));
},{"./lib":325,"./lib/elliptic":324}],322:[function(require,module,exports){
(function (Buffer){
'use strict';
var toString = Object.prototype.toString;
// TypeError
exports.isArray = function (value, message) {
if (!Array.isArray(value)) throw TypeError(message);
};
exports.isBoolean = function (value, message) {
if (toString.call(value) !== '[object Boolean]') throw TypeError(message);
};
exports.isBuffer = function (value, message) {
if (!Buffer.isBuffer(value)) throw TypeError(message);
};
exports.isFunction = function (value, message) {
if (toString.call(value) !== '[object Function]') throw TypeError(message);
};
exports.isNumber = function (value, message) {
if (toString.call(value) !== '[object Number]') throw TypeError(message);
};
exports.isObject = function (value, message) {
if (toString.call(value) !== '[object Object]') throw TypeError(message);
};
// RangeError
exports.isBufferLength = function (buffer, length, message) {
if (buffer.length !== length) throw RangeError(message);
};
exports.isBufferLength2 = function (buffer, length1, length2, message) {
if (buffer.length !== length1 && buffer.length !== length2) throw RangeError(message);
};
exports.isLengthGTZero = function (value, message) {
if (value.length === 0) throw RangeError(message);
};
exports.isNumberInInterval = function (number, x, y, message) {
if (number <= x || number >= y) throw RangeError(message);
};
}).call(this,{"isBuffer":require("../../is-buffer/index.js")})
},{"../../is-buffer/index.js":267}],323:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var bip66 = require('bip66');
var EC_PRIVKEY_EXPORT_DER_COMPRESSED = Buffer.from([
// begin
0x30, 0x81, 0xd3, 0x02, 0x01, 0x01, 0x04, 0x20,
// private key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// middle
0xa0, 0x81, 0x85, 0x30, 0x81, 0x82, 0x02, 0x01, 0x01, 0x30, 0x2c, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xcE, 0x3d, 0x01, 0x01, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfE, 0xff, 0xff, 0xfc, 0x2f, 0x30, 0x06, 0x04, 0x01, 0x00, 0x04, 0x01, 0x07, 0x04, 0x21, 0x02, 0x79, 0xbE, 0x66, 0x7E, 0xf9, 0xdc, 0xbb, 0xac, 0x55, 0xa0, 0x62, 0x95, 0xcE, 0x87, 0x0b, 0x07, 0x02, 0x9b, 0xfc, 0xdb, 0x2d, 0xcE, 0x28, 0xd9, 0x59, 0xf2, 0x81, 0x5b, 0x16, 0xf8, 0x17, 0x98, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfE, 0xba, 0xaE, 0xdc, 0xE6, 0xaf, 0x48, 0xa0, 0x3b, 0xbf, 0xd2, 0x5E, 0x8c, 0xd0, 0x36, 0x41, 0x41, 0x02, 0x01, 0x01, 0xa1, 0x24, 0x03, 0x22, 0x00,
// public key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
var EC_PRIVKEY_EXPORT_DER_UNCOMPRESSED = Buffer.from([
// begin
0x30, 0x82, 0x01, 0x13, 0x02, 0x01, 0x01, 0x04, 0x20,
// private key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// middle
0xa0, 0x81, 0xa5, 0x30, 0x81, 0xa2, 0x02, 0x01, 0x01, 0x30, 0x2c, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xcE, 0x3d, 0x01, 0x01, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfE, 0xff, 0xff, 0xfc, 0x2f, 0x30, 0x06, 0x04, 0x01, 0x00, 0x04, 0x01, 0x07, 0x04, 0x41, 0x04, 0x79, 0xbE, 0x66, 0x7E, 0xf9, 0xdc, 0xbb, 0xac, 0x55, 0xa0, 0x62, 0x95, 0xcE, 0x87, 0x0b, 0x07, 0x02, 0x9b, 0xfc, 0xdb, 0x2d, 0xcE, 0x28, 0xd9, 0x59, 0xf2, 0x81, 0x5b, 0x16, 0xf8, 0x17, 0x98, 0x48, 0x3a, 0xda, 0x77, 0x26, 0xa3, 0xc4, 0x65, 0x5d, 0xa4, 0xfb, 0xfc, 0x0E, 0x11, 0x08, 0xa8, 0xfd, 0x17, 0xb4, 0x48, 0xa6, 0x85, 0x54, 0x19, 0x9c, 0x47, 0xd0, 0x8f, 0xfb, 0x10, 0xd4, 0xb8, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfE, 0xba, 0xaE, 0xdc, 0xE6, 0xaf, 0x48, 0xa0, 0x3b, 0xbf, 0xd2, 0x5E, 0x8c, 0xd0, 0x36, 0x41, 0x41, 0x02, 0x01, 0x01, 0xa1, 0x44, 0x03, 0x42, 0x00,
// public key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
exports.privateKeyExport = function (privateKey, publicKey, compressed) {
var result = Buffer.from(compressed ? EC_PRIVKEY_EXPORT_DER_COMPRESSED : EC_PRIVKEY_EXPORT_DER_UNCOMPRESSED);
privateKey.copy(result, compressed ? 8 : 9);
publicKey.copy(result, compressed ? 181 : 214);
return result;
};
exports.privateKeyImport = function (privateKey) {
var length = privateKey.length;
// sequence header
var index = 0;
if (length < index + 1 || privateKey[index] !== 0x30) return;
index += 1;
// sequence length constructor
if (length < index + 1 || !(privateKey[index] & 0x80)) return;
var lenb = privateKey[index] & 0x7f;
index += 1;
if (lenb < 1 || lenb > 2) return;
if (length < index + lenb) return;
// sequence length
var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0);
index += lenb;
if (length < index + len) return;
// sequence element 0: version number (=1)
if (length < index + 3 || privateKey[index] !== 0x02 || privateKey[index + 1] !== 0x01 || privateKey[index + 2] !== 0x01) {
return;
}
index += 3;
// sequence element 1: octet string, up to 32 bytes
if (length < index + 2 || privateKey[index] !== 0x04 || privateKey[index + 1] > 0x20 || length < index + 2 + privateKey[index + 1]) {
return;
}
return privateKey.slice(index + 2, index + 2 + privateKey[index + 1]);
};
exports.signatureExport = function (sigObj) {
var r = Buffer.concat([Buffer.from([0]), sigObj.r]);
for (var lenR = 33, posR = 0; lenR > 1 && r[posR] === 0x00 && !(r[posR + 1] & 0x80); --lenR, ++posR) {}
var s = Buffer.concat([Buffer.from([0]), sigObj.s]);
for (var lenS = 33, posS = 0; lenS > 1 && s[posS] === 0x00 && !(s[posS + 1] & 0x80); --lenS, ++posS) {}
return bip66.encode(r.slice(posR), s.slice(posS));
};
exports.signatureImport = function (sig) {
var r = Buffer.alloc(32, 0);
var s = Buffer.alloc(32, 0);
try {
var sigObj = bip66.decode(sig);
if (sigObj.r.length === 33 && sigObj.r[0] === 0x00) sigObj.r = sigObj.r.slice(1);
if (sigObj.r.length > 32) throw new Error('R length is too long');
if (sigObj.s.length === 33 && sigObj.s[0] === 0x00) sigObj.s = sigObj.s.slice(1);
if (sigObj.s.length > 32) throw new Error('S length is too long');
} catch (err) {
return;
}
sigObj.r.copy(r, 32 - sigObj.r.length);
sigObj.s.copy(s, 32 - sigObj.s.length);
return { r: r, s: s };
};
exports.signatureImportLax = function (sig) {
var r = Buffer.alloc(32, 0);
var s = Buffer.alloc(32, 0);
var length = sig.length;
var index = 0;
// sequence tag byte
if (sig[index++] !== 0x30) return;
// sequence length byte
var lenbyte = sig[index++];
if (lenbyte & 0x80) {
index += lenbyte - 0x80;
if (index > length) return;
}
// sequence tag byte for r
if (sig[index++] !== 0x02) return;
// length for r
var rlen = sig[index++];
if (rlen & 0x80) {
lenbyte = rlen - 0x80;
if (index + lenbyte > length) return;
for (; lenbyte > 0 && sig[index] === 0x00; index += 1, lenbyte -= 1) {}
for (rlen = 0; lenbyte > 0; index += 1, lenbyte -= 1) {
rlen = (rlen << 8) + sig[index];
}
}
if (rlen > length - index) return;
var rindex = index;
index += rlen;
// sequence tag byte for s
if (sig[index++] !== 0x02) return;
// length for s
var slen = sig[index++];
if (slen & 0x80) {
lenbyte = slen - 0x80;
if (index + lenbyte > length) return;
for (; lenbyte > 0 && sig[index] === 0x00; index += 1, lenbyte -= 1) {}
for (slen = 0; lenbyte > 0; index += 1, lenbyte -= 1) {
slen = (slen << 8) + sig[index];
}
}
if (slen > length - index) return;
var sindex = index;
index += slen;
// ignore leading zeros in r
for (; rlen > 0 && sig[rindex] === 0x00; rlen -= 1, rindex += 1) {}
// copy r value
if (rlen > 32) return;
var rvalue = sig.slice(rindex, rindex + rlen);
rvalue.copy(r, 32 - rvalue.length);
// ignore leading zeros in s
for (; slen > 0 && sig[sindex] === 0x00; slen -= 1, sindex += 1) {}
// copy s value
if (slen > 32) return;
var svalue = sig.slice(sindex, sindex + slen);
svalue.copy(s, 32 - svalue.length);
return { r: r, s: s };
};
},{"bip66":168,"safe-buffer":319}],324:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var createHash = require('create-hash');
var BN = require('bn.js');
var EC = require('elliptic').ec;
var messages = require('../messages.json');
var ec = new EC('secp256k1');
var ecparams = ec.curve;
function loadCompressedPublicKey(first, xBuffer) {
var x = new BN(xBuffer);
// overflow
if (x.cmp(ecparams.p) >= 0) return null;
x = x.toRed(ecparams.red);
// compute corresponding Y
var y = x.redSqr().redIMul(x).redIAdd(ecparams.b).redSqrt();
if (first === 0x03 !== y.isOdd()) y = y.redNeg();
return ec.keyPair({ pub: { x: x, y: y } });
}
function loadUncompressedPublicKey(first, xBuffer, yBuffer) {
var x = new BN(xBuffer);
var y = new BN(yBuffer);
// overflow
if (x.cmp(ecparams.p) >= 0 || y.cmp(ecparams.p) >= 0) return null;
x = x.toRed(ecparams.red);
y = y.toRed(ecparams.red);
// is odd flag
if ((first === 0x06 || first === 0x07) && y.isOdd() !== (first === 0x07)) return null;
// x*x*x + b = y*y
var x3 = x.redSqr().redIMul(x);
if (!y.redSqr().redISub(x3.redIAdd(ecparams.b)).isZero()) return null;
return ec.keyPair({ pub: { x: x, y: y } });
}
function loadPublicKey(publicKey) {
var first = publicKey[0];
switch (first) {
case 0x02:
case 0x03:
if (publicKey.length !== 33) return null;
return loadCompressedPublicKey(first, publicKey.slice(1, 33));
case 0x04:
case 0x06:
case 0x07:
if (publicKey.length !== 65) return null;
return loadUncompressedPublicKey(first, publicKey.slice(1, 33), publicKey.slice(33, 65));
default:
return null;
}
}
exports.privateKeyVerify = function (privateKey) {
var bn = new BN(privateKey);
return bn.cmp(ecparams.n) < 0 && !bn.isZero();
};
exports.privateKeyExport = function (privateKey, compressed) {
var d = new BN(privateKey);
if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.EC_PRIVATE_KEY_EXPORT_DER_FAIL);
return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true));
};
exports.privateKeyTweakAdd = function (privateKey, tweak) {
var bn = new BN(tweak);
if (bn.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);
bn.iadd(new BN(privateKey));
if (bn.cmp(ecparams.n) >= 0) bn.isub(ecparams.n);
if (bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);
return bn.toArrayLike(Buffer, 'be', 32);
};
exports.privateKeyTweakMul = function (privateKey, tweak) {
var bn = new BN(tweak);
if (bn.cmp(ecparams.n) >= 0 || bn.isZero()) throw new Error(messages.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);
bn.imul(new BN(privateKey));
if (bn.cmp(ecparams.n)) bn = bn.umod(ecparams.n);
return bn.toArrayLike(Buffer, 'be', 32);
};
exports.publicKeyCreate = function (privateKey, compressed) {
var d = new BN(privateKey);
if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.EC_PUBLIC_KEY_CREATE_FAIL);
return Buffer.from(ec.keyFromPrivate(privateKey).getPublic(compressed, true));
};
exports.publicKeyConvert = function (publicKey, compressed) {
var pair = loadPublicKey(publicKey);
if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
return Buffer.from(pair.getPublic(compressed, true));
};
exports.publicKeyVerify = function (publicKey) {
return loadPublicKey(publicKey) !== null;
};
exports.publicKeyTweakAdd = function (publicKey, tweak, compressed) {
var pair = loadPublicKey(publicKey);
if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
tweak = new BN(tweak);
if (tweak.cmp(ecparams.n) >= 0) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);
return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed));
};
exports.publicKeyTweakMul = function (publicKey, tweak, compressed) {
var pair = loadPublicKey(publicKey);
if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
tweak = new BN(tweak);
if (tweak.cmp(ecparams.n) >= 0 || tweak.isZero()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);
return Buffer.from(pair.pub.mul(tweak).encode(true, compressed));
};
exports.publicKeyCombine = function (publicKeys, compressed) {
var pairs = new Array(publicKeys.length);
for (var i = 0; i < publicKeys.length; ++i) {
pairs[i] = loadPublicKey(publicKeys[i]);
if (pairs[i] === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
}
var point = pairs[0].pub;
for (var j = 1; j < pairs.length; ++j) {
point = point.add(pairs[j].pub);
}if (point.isInfinity()) throw new Error(messages.EC_PUBLIC_KEY_COMBINE_FAIL);
return Buffer.from(point.encode(true, compressed));
};
exports.signatureNormalize = function (signature) {
var r = new BN(signature.slice(0, 32));
var s = new BN(signature.slice(32, 64));
if (r.cmp(ecparams.n) >= 0 || s.cmp(ecparams.n) >= 0) throw new Error(messages.ECDSA_SIGNATURE_PARSE_FAIL);
var result = Buffer.from(signature);
if (s.cmp(ec.nh) === 1) ecparams.n.sub(s).toArrayLike(Buffer, 'be', 32).copy(result, 32);
return result;
};
exports.signatureExport = function (signature) {
var r = signature.slice(0, 32);
var s = signature.slice(32, 64);
if (new BN(r).cmp(ecparams.n) >= 0 || new BN(s).cmp(ecparams.n) >= 0) throw new Error(messages.ECDSA_SIGNATURE_PARSE_FAIL);
return { r: r, s: s };
};
exports.signatureImport = function (sigObj) {
var r = new BN(sigObj.r);
if (r.cmp(ecparams.n) >= 0) r = new BN(0);
var s = new BN(sigObj.s);
if (s.cmp(ecparams.n) >= 0) s = new BN(0);
return Buffer.concat([r.toArrayLike(Buffer, 'be', 32), s.toArrayLike(Buffer, 'be', 32)]);
};
exports.sign = function (message, privateKey, noncefn, data) {
if (typeof noncefn === 'function') {
var getNonce = noncefn;
noncefn = function noncefn(counter) {
var nonce = getNonce(message, privateKey, null, data, counter);
if (!Buffer.isBuffer(nonce) || nonce.length !== 32) throw new Error(messages.ECDSA_SIGN_FAIL);
return new BN(nonce);
};
}
var d = new BN(privateKey);
if (d.cmp(ecparams.n) >= 0 || d.isZero()) throw new Error(messages.ECDSA_SIGN_FAIL);
var result = ec.sign(message, privateKey, { canonical: true, k: noncefn, pers: data });
return {
signature: Buffer.concat([result.r.toArrayLike(Buffer, 'be', 32), result.s.toArrayLike(Buffer, 'be', 32)]),
recovery: result.recoveryParam
};
};
exports.verify = function (message, signature, publicKey) {
var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) };
var sigr = new BN(sigObj.r);
var sigs = new BN(sigObj.s);
if (sigr.cmp(ecparams.n) >= 0 || sigs.cmp(ecparams.n) >= 0) throw new Error(messages.ECDSA_SIGNATURE_PARSE_FAIL);
if (sigs.cmp(ec.nh) === 1 || sigr.isZero() || sigs.isZero()) return false;
var pair = loadPublicKey(publicKey);
if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
return ec.verify(message, sigObj, { x: pair.pub.x, y: pair.pub.y });
};
exports.recover = function (message, signature, recovery, compressed) {
var sigObj = { r: signature.slice(0, 32), s: signature.slice(32, 64) };
var sigr = new BN(sigObj.r);
var sigs = new BN(sigObj.s);
if (sigr.cmp(ecparams.n) >= 0 || sigs.cmp(ecparams.n) >= 0) throw new Error(messages.ECDSA_SIGNATURE_PARSE_FAIL);
try {
if (sigr.isZero() || sigs.isZero()) throw new Error();
var point = ec.recoverPubKey(message, sigObj, recovery);
return Buffer.from(point.encode(true, compressed));
} catch (err) {
throw new Error(messages.ECDSA_RECOVER_FAIL);
}
};
exports.ecdh = function (publicKey, privateKey) {
var shared = exports.ecdhUnsafe(publicKey, privateKey, true);
return createHash('sha256').update(shared).digest();
};
exports.ecdhUnsafe = function (publicKey, privateKey, compressed) {
var pair = loadPublicKey(publicKey);
if (pair === null) throw new Error(messages.EC_PUBLIC_KEY_PARSE_FAIL);
var scalar = new BN(privateKey);
if (scalar.cmp(ecparams.n) >= 0 || scalar.isZero()) throw new Error(messages.ECDH_FAIL);
return Buffer.from(pair.pub.mul(scalar).encode(true, compressed));
};
},{"../messages.json":326,"bn.js":169,"create-hash":206,"elliptic":225,"safe-buffer":319}],325:[function(require,module,exports){
'use strict';
var assert = require('./assert');
var der = require('./der');
var messages = require('./messages.json');
function initCompressedValue(value, defaultValue) {
if (value === undefined) return defaultValue;
assert.isBoolean(value, messages.COMPRESSED_TYPE_INVALID);
return value;
}
module.exports = function (secp256k1) {
return {
privateKeyVerify: function privateKeyVerify(privateKey) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
return privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey);
},
privateKeyExport: function privateKeyExport(privateKey, compressed) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
var publicKey = secp256k1.privateKeyExport(privateKey, compressed);
return der.privateKeyExport(privateKey, publicKey, compressed);
},
privateKeyImport: function privateKeyImport(privateKey) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
privateKey = der.privateKeyImport(privateKey);
if (privateKey && privateKey.length === 32 && secp256k1.privateKeyVerify(privateKey)) return privateKey;
throw new Error(messages.EC_PRIVATE_KEY_IMPORT_DER_FAIL);
},
privateKeyTweakAdd: function privateKeyTweakAdd(privateKey, tweak) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID);
assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID);
return secp256k1.privateKeyTweakAdd(privateKey, tweak);
},
privateKeyTweakMul: function privateKeyTweakMul(privateKey, tweak) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID);
assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID);
return secp256k1.privateKeyTweakMul(privateKey, tweak);
},
publicKeyCreate: function publicKeyCreate(privateKey, compressed) {
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.publicKeyCreate(privateKey, compressed);
},
publicKeyConvert: function publicKeyConvert(publicKey, compressed) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.publicKeyConvert(publicKey, compressed);
},
publicKeyVerify: function publicKeyVerify(publicKey) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
return secp256k1.publicKeyVerify(publicKey);
},
publicKeyTweakAdd: function publicKeyTweakAdd(publicKey, tweak, compressed) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID);
assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.publicKeyTweakAdd(publicKey, tweak, compressed);
},
publicKeyTweakMul: function publicKeyTweakMul(publicKey, tweak, compressed) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
assert.isBuffer(tweak, messages.TWEAK_TYPE_INVALID);
assert.isBufferLength(tweak, 32, messages.TWEAK_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.publicKeyTweakMul(publicKey, tweak, compressed);
},
publicKeyCombine: function publicKeyCombine(publicKeys, compressed) {
assert.isArray(publicKeys, messages.EC_PUBLIC_KEYS_TYPE_INVALID);
assert.isLengthGTZero(publicKeys, messages.EC_PUBLIC_KEYS_LENGTH_INVALID);
for (var i = 0; i < publicKeys.length; ++i) {
assert.isBuffer(publicKeys[i], messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKeys[i], 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
}
compressed = initCompressedValue(compressed, true);
return secp256k1.publicKeyCombine(publicKeys, compressed);
},
signatureNormalize: function signatureNormalize(signature) {
assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
return secp256k1.signatureNormalize(signature);
},
signatureExport: function signatureExport(signature) {
assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
var sigObj = secp256k1.signatureExport(signature);
return der.signatureExport(sigObj);
},
signatureImport: function signatureImport(sig) {
assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
var sigObj = der.signatureImport(sig);
if (sigObj) return secp256k1.signatureImport(sigObj);
throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL);
},
signatureImportLax: function signatureImportLax(sig) {
assert.isBuffer(sig, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isLengthGTZero(sig, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
var sigObj = der.signatureImportLax(sig);
if (sigObj) return secp256k1.signatureImport(sigObj);
throw new Error(messages.ECDSA_SIGNATURE_PARSE_DER_FAIL);
},
sign: function sign(message, privateKey, options) {
assert.isBuffer(message, messages.MSG32_TYPE_INVALID);
assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID);
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
var data = null;
var noncefn = null;
if (options !== undefined) {
assert.isObject(options, messages.OPTIONS_TYPE_INVALID);
if (options.data !== undefined) {
assert.isBuffer(options.data, messages.OPTIONS_DATA_TYPE_INVALID);
assert.isBufferLength(options.data, 32, messages.OPTIONS_DATA_LENGTH_INVALID);
data = options.data;
}
if (options.noncefn !== undefined) {
assert.isFunction(options.noncefn, messages.OPTIONS_NONCEFN_TYPE_INVALID);
noncefn = options.noncefn;
}
}
return secp256k1.sign(message, privateKey, noncefn, data);
},
verify: function verify(message, signature, publicKey) {
assert.isBuffer(message, messages.MSG32_TYPE_INVALID);
assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID);
assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
return secp256k1.verify(message, signature, publicKey);
},
recover: function recover(message, signature, recovery, compressed) {
assert.isBuffer(message, messages.MSG32_TYPE_INVALID);
assert.isBufferLength(message, 32, messages.MSG32_LENGTH_INVALID);
assert.isBuffer(signature, messages.ECDSA_SIGNATURE_TYPE_INVALID);
assert.isBufferLength(signature, 64, messages.ECDSA_SIGNATURE_LENGTH_INVALID);
assert.isNumber(recovery, messages.RECOVERY_ID_TYPE_INVALID);
assert.isNumberInInterval(recovery, -1, 4, messages.RECOVERY_ID_VALUE_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.recover(message, signature, recovery, compressed);
},
ecdh: function ecdh(publicKey, privateKey) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
return secp256k1.ecdh(publicKey, privateKey);
},
ecdhUnsafe: function ecdhUnsafe(publicKey, privateKey, compressed) {
assert.isBuffer(publicKey, messages.EC_PUBLIC_KEY_TYPE_INVALID);
assert.isBufferLength2(publicKey, 33, 65, messages.EC_PUBLIC_KEY_LENGTH_INVALID);
assert.isBuffer(privateKey, messages.EC_PRIVATE_KEY_TYPE_INVALID);
assert.isBufferLength(privateKey, 32, messages.EC_PRIVATE_KEY_LENGTH_INVALID);
compressed = initCompressedValue(compressed, true);
return secp256k1.ecdhUnsafe(publicKey, privateKey, compressed);
}
};
};
},{"./assert":322,"./der":323,"./messages.json":326}],326:[function(require,module,exports){
module.exports={
"COMPRESSED_TYPE_INVALID": "compressed should be a boolean",
"EC_PRIVATE_KEY_TYPE_INVALID": "private key should be a Buffer",
"EC_PRIVATE_KEY_LENGTH_INVALID": "private key length is invalid",
"EC_PRIVATE_KEY_TWEAK_ADD_FAIL": "tweak out of range or resulting private key is invalid",
"EC_PRIVATE_KEY_TWEAK_MUL_FAIL": "tweak out of range",
"EC_PRIVATE_KEY_EXPORT_DER_FAIL": "couldn't export to DER format",
"EC_PRIVATE_KEY_IMPORT_DER_FAIL": "couldn't import from DER format",
"EC_PUBLIC_KEYS_TYPE_INVALID": "public keys should be an Array",
"EC_PUBLIC_KEYS_LENGTH_INVALID": "public keys Array should have at least 1 element",
"EC_PUBLIC_KEY_TYPE_INVALID": "public key should be a Buffer",
"EC_PUBLIC_KEY_LENGTH_INVALID": "public key length is invalid",
"EC_PUBLIC_KEY_PARSE_FAIL": "the public key could not be parsed or is invalid",
"EC_PUBLIC_KEY_CREATE_FAIL": "private was invalid, try again",
"EC_PUBLIC_KEY_TWEAK_ADD_FAIL": "tweak out of range or resulting public key is invalid",
"EC_PUBLIC_KEY_TWEAK_MUL_FAIL": "tweak out of range",
"EC_PUBLIC_KEY_COMBINE_FAIL": "the sum of the public keys is not valid",
"ECDH_FAIL": "scalar was invalid (zero or overflow)",
"ECDSA_SIGNATURE_TYPE_INVALID": "signature should be a Buffer",
"ECDSA_SIGNATURE_LENGTH_INVALID": "signature length is invalid",
"ECDSA_SIGNATURE_PARSE_FAIL": "couldn't parse signature",
"ECDSA_SIGNATURE_PARSE_DER_FAIL": "couldn't parse DER signature",
"ECDSA_SIGNATURE_SERIALIZE_DER_FAIL": "couldn't serialize signature to DER format",
"ECDSA_SIGN_FAIL": "nonce generation function failed or private key is invalid",
"ECDSA_RECOVER_FAIL": "couldn't recover public key from signature",
"MSG32_TYPE_INVALID": "message should be a Buffer",
"MSG32_LENGTH_INVALID": "message length is invalid",
"OPTIONS_TYPE_INVALID": "options should be an Object",
"OPTIONS_DATA_TYPE_INVALID": "options.data should be a Buffer",
"OPTIONS_DATA_LENGTH_INVALID": "options.data length is invalid",
"OPTIONS_NONCEFN_TYPE_INVALID": "options.noncefn should be a Function",
"RECOVERY_ID_TYPE_INVALID": "recovery should be a Number",
"RECOVERY_ID_VALUE_INVALID": "recovery should have value between -1 and 4",
"TWEAK_TYPE_INVALID": "tweak should be a Buffer",
"TWEAK_LENGTH_INVALID": "tweak length is invalid"
}
},{}],327:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
// prototype class for hash functions
function Hash(blockSize, finalSize) {
this._block = Buffer.alloc(blockSize);
this._finalSize = finalSize;
this._blockSize = blockSize;
this._len = 0;
}
Hash.prototype.update = function (data, enc) {
if (typeof data === 'string') {
enc = enc || 'utf8';
data = Buffer.from(data, enc);
}
var block = this._block;
var blockSize = this._blockSize;
var length = data.length;
var accum = this._len;
for (var offset = 0; offset < length;) {
var assigned = accum % blockSize;
var remainder = Math.min(length - offset, blockSize - assigned);
for (var i = 0; i < remainder; i++) {
block[assigned + i] = data[offset + i];
}
accum += remainder;
offset += remainder;
if (accum % blockSize === 0) {
this._update(block);
}
}
this._len += length;
return this;
};
Hash.prototype.digest = function (enc) {
var rem = this._len % this._blockSize;
this._block[rem] = 0x80;
// zero (rem + 1) trailing bits, where (rem + 1) is the smallest
// non-negative solution to the equation (length + 1 + (rem + 1)) === finalSize mod blockSize
this._block.fill(0, rem + 1);
if (rem >= this._finalSize) {
this._update(this._block);
this._block.fill(0);
}
var bits = this._len * 8;
// uint32
if (bits <= 0xffffffff) {
this._block.writeUInt32BE(bits, this._blockSize - 4);
// uint64
} else {
var lowBits = bits & 0xffffffff;
var highBits = (bits - lowBits) / 0x100000000;
this._block.writeUInt32BE(highBits, this._blockSize - 8);
this._block.writeUInt32BE(lowBits, this._blockSize - 4);
}
this._update(this._block);
var hash = this._hash();
return enc ? hash.toString(enc) : hash;
};
Hash.prototype._update = function () {
throw new Error('_update must be implemented by subclass');
};
module.exports = Hash;
},{"safe-buffer":319}],328:[function(require,module,exports){
'use strict';
var _exports = module.exports = function SHA(algorithm) {
algorithm = algorithm.toLowerCase();
var Algorithm = _exports[algorithm];
if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)');
return new Algorithm();
};
_exports.sha = require('./sha');
_exports.sha1 = require('./sha1');
_exports.sha224 = require('./sha224');
_exports.sha256 = require('./sha256');
_exports.sha384 = require('./sha384');
_exports.sha512 = require('./sha512');
},{"./sha":329,"./sha1":330,"./sha224":331,"./sha256":332,"./sha384":333,"./sha512":334}],329:[function(require,module,exports){
'use strict';
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
* in FIPS PUB 180-1
* This source code is derived from sha1.js of the same repository.
* The difference between SHA-0 and SHA-1 is just a bitwise rotate left
* operation was added.
*/
var inherits = require('inherits');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0];
var W = new Array(80);
function Sha() {
this.init();
this._w = W;
Hash.call(this, 64, 56);
}
inherits(Sha, Hash);
Sha.prototype.init = function () {
this._a = 0x67452301;
this._b = 0xefcdab89;
this._c = 0x98badcfe;
this._d = 0x10325476;
this._e = 0xc3d2e1f0;
return this;
};
function rotl5(num) {
return num << 5 | num >>> 27;
}
function rotl30(num) {
return num << 30 | num >>> 2;
}
function ft(s, b, c, d) {
if (s === 0) return b & c | ~b & d;
if (s === 2) return b & c | b & d | c & d;
return b ^ c ^ d;
}
Sha.prototype._update = function (M) {
var W = this._w;
var a = this._a | 0;
var b = this._b | 0;
var c = this._c | 0;
var d = this._d | 0;
var e = this._e | 0;
for (var i = 0; i < 16; ++i) {
W[i] = M.readInt32BE(i * 4);
}for (; i < 80; ++i) {
W[i] = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
}for (var j = 0; j < 80; ++j) {
var s = ~~(j / 20);
var t = rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s] | 0;
e = d;
d = c;
c = rotl30(b);
b = a;
a = t;
}
this._a = a + this._a | 0;
this._b = b + this._b | 0;
this._c = c + this._c | 0;
this._d = d + this._d | 0;
this._e = e + this._e | 0;
};
Sha.prototype._hash = function () {
var H = Buffer.allocUnsafe(20);
H.writeInt32BE(this._a | 0, 0);
H.writeInt32BE(this._b | 0, 4);
H.writeInt32BE(this._c | 0, 8);
H.writeInt32BE(this._d | 0, 12);
H.writeInt32BE(this._e | 0, 16);
return H;
};
module.exports = Sha;
},{"./hash":327,"inherits":266,"safe-buffer":319}],330:[function(require,module,exports){
'use strict';
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
var inherits = require('inherits');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0];
var W = new Array(80);
function Sha1() {
this.init();
this._w = W;
Hash.call(this, 64, 56);
}
inherits(Sha1, Hash);
Sha1.prototype.init = function () {
this._a = 0x67452301;
this._b = 0xefcdab89;
this._c = 0x98badcfe;
this._d = 0x10325476;
this._e = 0xc3d2e1f0;
return this;
};
function rotl1(num) {
return num << 1 | num >>> 31;
}
function rotl5(num) {
return num << 5 | num >>> 27;
}
function rotl30(num) {
return num << 30 | num >>> 2;
}
function ft(s, b, c, d) {
if (s === 0) return b & c | ~b & d;
if (s === 2) return b & c | b & d | c & d;
return b ^ c ^ d;
}
Sha1.prototype._update = function (M) {
var W = this._w;
var a = this._a | 0;
var b = this._b | 0;
var c = this._c | 0;
var d = this._d | 0;
var e = this._e | 0;
for (var i = 0; i < 16; ++i) {
W[i] = M.readInt32BE(i * 4);
}for (; i < 80; ++i) {
W[i] = rotl1(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]);
}for (var j = 0; j < 80; ++j) {
var s = ~~(j / 20);
var t = rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s] | 0;
e = d;
d = c;
c = rotl30(b);
b = a;
a = t;
}
this._a = a + this._a | 0;
this._b = b + this._b | 0;
this._c = c + this._c | 0;
this._d = d + this._d | 0;
this._e = e + this._e | 0;
};
Sha1.prototype._hash = function () {
var H = Buffer.allocUnsafe(20);
H.writeInt32BE(this._a | 0, 0);
H.writeInt32BE(this._b | 0, 4);
H.writeInt32BE(this._c | 0, 8);
H.writeInt32BE(this._d | 0, 12);
H.writeInt32BE(this._e | 0, 16);
return H;
};
module.exports = Sha1;
},{"./hash":327,"inherits":266,"safe-buffer":319}],331:[function(require,module,exports){
'use strict';
/**
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
*
*/
var inherits = require('inherits');
var Sha256 = require('./sha256');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var W = new Array(64);
function Sha224() {
this.init();
this._w = W; // new Array(64)
Hash.call(this, 64, 56);
}
inherits(Sha224, Sha256);
Sha224.prototype.init = function () {
this._a = 0xc1059ed8;
this._b = 0x367cd507;
this._c = 0x3070dd17;
this._d = 0xf70e5939;
this._e = 0xffc00b31;
this._f = 0x68581511;
this._g = 0x64f98fa7;
this._h = 0xbefa4fa4;
return this;
};
Sha224.prototype._hash = function () {
var H = Buffer.allocUnsafe(28);
H.writeInt32BE(this._a, 0);
H.writeInt32BE(this._b, 4);
H.writeInt32BE(this._c, 8);
H.writeInt32BE(this._d, 12);
H.writeInt32BE(this._e, 16);
H.writeInt32BE(this._f, 20);
H.writeInt32BE(this._g, 24);
return H;
};
module.exports = Sha224;
},{"./hash":327,"./sha256":332,"inherits":266,"safe-buffer":319}],332:[function(require,module,exports){
'use strict';
/**
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
*
*/
var inherits = require('inherits');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var K = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174, 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA, 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967, 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85, 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070, 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3, 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2];
var W = new Array(64);
function Sha256() {
this.init();
this._w = W; // new Array(64)
Hash.call(this, 64, 56);
}
inherits(Sha256, Hash);
Sha256.prototype.init = function () {
this._a = 0x6a09e667;
this._b = 0xbb67ae85;
this._c = 0x3c6ef372;
this._d = 0xa54ff53a;
this._e = 0x510e527f;
this._f = 0x9b05688c;
this._g = 0x1f83d9ab;
this._h = 0x5be0cd19;
return this;
};
function ch(x, y, z) {
return z ^ x & (y ^ z);
}
function maj(x, y, z) {
return x & y | z & (x | y);
}
function sigma0(x) {
return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10);
}
function sigma1(x) {
return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7);
}
function gamma0(x) {
return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3;
}
function gamma1(x) {
return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10;
}
Sha256.prototype._update = function (M) {
var W = this._w;
var a = this._a | 0;
var b = this._b | 0;
var c = this._c | 0;
var d = this._d | 0;
var e = this._e | 0;
var f = this._f | 0;
var g = this._g | 0;
var h = this._h | 0;
for (var i = 0; i < 16; ++i) {
W[i] = M.readInt32BE(i * 4);
}for (; i < 64; ++i) {
W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16] | 0;
}for (var j = 0; j < 64; ++j) {
var T1 = h + sigma1(e) + ch(e, f, g) + K[j] + W[j] | 0;
var T2 = sigma0(a) + maj(a, b, c) | 0;
h = g;
g = f;
f = e;
e = d + T1 | 0;
d = c;
c = b;
b = a;
a = T1 + T2 | 0;
}
this._a = a + this._a | 0;
this._b = b + this._b | 0;
this._c = c + this._c | 0;
this._d = d + this._d | 0;
this._e = e + this._e | 0;
this._f = f + this._f | 0;
this._g = g + this._g | 0;
this._h = h + this._h | 0;
};
Sha256.prototype._hash = function () {
var H = Buffer.allocUnsafe(32);
H.writeInt32BE(this._a, 0);
H.writeInt32BE(this._b, 4);
H.writeInt32BE(this._c, 8);
H.writeInt32BE(this._d, 12);
H.writeInt32BE(this._e, 16);
H.writeInt32BE(this._f, 20);
H.writeInt32BE(this._g, 24);
H.writeInt32BE(this._h, 28);
return H;
};
module.exports = Sha256;
},{"./hash":327,"inherits":266,"safe-buffer":319}],333:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var SHA512 = require('./sha512');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var W = new Array(160);
function Sha384() {
this.init();
this._w = W;
Hash.call(this, 128, 112);
}
inherits(Sha384, SHA512);
Sha384.prototype.init = function () {
this._ah = 0xcbbb9d5d;
this._bh = 0x629a292a;
this._ch = 0x9159015a;
this._dh = 0x152fecd8;
this._eh = 0x67332667;
this._fh = 0x8eb44a87;
this._gh = 0xdb0c2e0d;
this._hh = 0x47b5481d;
this._al = 0xc1059ed8;
this._bl = 0x367cd507;
this._cl = 0x3070dd17;
this._dl = 0xf70e5939;
this._el = 0xffc00b31;
this._fl = 0x68581511;
this._gl = 0x64f98fa7;
this._hl = 0xbefa4fa4;
return this;
};
Sha384.prototype._hash = function () {
var H = Buffer.allocUnsafe(48);
function writeInt64BE(h, l, offset) {
H.writeInt32BE(h, offset);
H.writeInt32BE(l, offset + 4);
}
writeInt64BE(this._ah, this._al, 0);
writeInt64BE(this._bh, this._bl, 8);
writeInt64BE(this._ch, this._cl, 16);
writeInt64BE(this._dh, this._dl, 24);
writeInt64BE(this._eh, this._el, 32);
writeInt64BE(this._fh, this._fl, 40);
return H;
};
module.exports = Sha384;
},{"./hash":327,"./sha512":334,"inherits":266,"safe-buffer":319}],334:[function(require,module,exports){
'use strict';
var inherits = require('inherits');
var Hash = require('./hash');
var Buffer = require('safe-buffer').Buffer;
var K = [0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd, 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc, 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019, 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118, 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe, 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2, 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1, 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694, 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3, 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65, 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483, 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5, 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210, 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4, 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725, 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70, 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926, 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df, 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8, 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b, 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001, 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30, 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910, 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8, 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53, 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8, 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb, 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3, 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60, 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec, 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9, 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b, 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207, 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178, 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6, 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b, 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493, 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c, 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a, 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817];
var W = new Array(160);
function Sha512() {
this.init();
this._w = W;
Hash.call(this, 128, 112);
}
inherits(Sha512, Hash);
Sha512.prototype.init = function () {
this._ah = 0x6a09e667;
this._bh = 0xbb67ae85;
this._ch = 0x3c6ef372;
this._dh = 0xa54ff53a;
this._eh = 0x510e527f;
this._fh = 0x9b05688c;
this._gh = 0x1f83d9ab;
this._hh = 0x5be0cd19;
this._al = 0xf3bcc908;
this._bl = 0x84caa73b;
this._cl = 0xfe94f82b;
this._dl = 0x5f1d36f1;
this._el = 0xade682d1;
this._fl = 0x2b3e6c1f;
this._gl = 0xfb41bd6b;
this._hl = 0x137e2179;
return this;
};
function Ch(x, y, z) {
return z ^ x & (y ^ z);
}
function maj(x, y, z) {
return x & y | z & (x | y);
}
function sigma0(x, xl) {
return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25);
}
function sigma1(x, xl) {
return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23);
}
function Gamma0(x, xl) {
return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ x >>> 7;
}
function Gamma0l(x, xl) {
return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25);
}
function Gamma1(x, xl) {
return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ x >>> 6;
}
function Gamma1l(x, xl) {
return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26);
}
function getCarry(a, b) {
return a >>> 0 < b >>> 0 ? 1 : 0;
}
Sha512.prototype._update = function (M) {
var W = this._w;
var ah = this._ah | 0;
var bh = this._bh | 0;
var ch = this._ch | 0;
var dh = this._dh | 0;
var eh = this._eh | 0;
var fh = this._fh | 0;
var gh = this._gh | 0;
var hh = this._hh | 0;
var al = this._al | 0;
var bl = this._bl | 0;
var cl = this._cl | 0;
var dl = this._dl | 0;
var el = this._el | 0;
var fl = this._fl | 0;
var gl = this._gl | 0;
var hl = this._hl | 0;
for (var i = 0; i < 32; i += 2) {
W[i] = M.readInt32BE(i * 4);
W[i + 1] = M.readInt32BE(i * 4 + 4);
}
for (; i < 160; i += 2) {
var xh = W[i - 15 * 2];
var xl = W[i - 15 * 2 + 1];
var gamma0 = Gamma0(xh, xl);
var gamma0l = Gamma0l(xl, xh);
xh = W[i - 2 * 2];
xl = W[i - 2 * 2 + 1];
var gamma1 = Gamma1(xh, xl);
var gamma1l = Gamma1l(xl, xh);
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
var Wi7h = W[i - 7 * 2];
var Wi7l = W[i - 7 * 2 + 1];
var Wi16h = W[i - 16 * 2];
var Wi16l = W[i - 16 * 2 + 1];
var Wil = gamma0l + Wi7l | 0;
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
Wil = Wil + gamma1l | 0;
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
Wil = Wil + Wi16l | 0;
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
W[i] = Wih;
W[i + 1] = Wil;
}
for (var j = 0; j < 160; j += 2) {
Wih = W[j];
Wil = W[j + 1];
var majh = maj(ah, bh, ch);
var majl = maj(al, bl, cl);
var sigma0h = sigma0(ah, al);
var sigma0l = sigma0(al, ah);
var sigma1h = sigma1(eh, el);
var sigma1l = sigma1(el, eh);
// t1 = h + sigma1 + ch + K[j] + W[j]
var Kih = K[j];
var Kil = K[j + 1];
var chh = Ch(eh, fh, gh);
var chl = Ch(el, fl, gl);
var t1l = hl + sigma1l | 0;
var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
t1l = t1l + chl | 0;
t1h = t1h + chh + getCarry(t1l, chl) | 0;
t1l = t1l + Kil | 0;
t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
t1l = t1l + Wil | 0;
t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
// t2 = sigma0 + maj
var t2l = sigma0l + majl | 0;
var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
hh = gh;
hl = gl;
gh = fh;
gl = fl;
fh = eh;
fl = el;
el = dl + t1l | 0;
eh = dh + t1h + getCarry(el, dl) | 0;
dh = ch;
dl = cl;
ch = bh;
cl = bl;
bh = ah;
bl = al;
al = t1l + t2l | 0;
ah = t1h + t2h + getCarry(al, t1l) | 0;
}
this._al = this._al + al | 0;
this._bl = this._bl + bl | 0;
this._cl = this._cl + cl | 0;
this._dl = this._dl + dl | 0;
this._el = this._el + el | 0;
this._fl = this._fl + fl | 0;
this._gl = this._gl + gl | 0;
this._hl = this._hl + hl | 0;
this._ah = this._ah + ah + getCarry(this._al, al) | 0;
this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
this._eh = this._eh + eh + getCarry(this._el, el) | 0;
this._fh = this._fh + fh + getCarry(this._fl, fl) | 0;
this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
};
Sha512.prototype._hash = function () {
var H = Buffer.allocUnsafe(64);
function writeInt64BE(h, l, offset) {
H.writeInt32BE(h, offset);
H.writeInt32BE(l, offset + 4);
}
writeInt64BE(this._ah, this._al, 0);
writeInt64BE(this._bh, this._bl, 8);
writeInt64BE(this._ch, this._cl, 16);
writeInt64BE(this._dh, this._dl, 24);
writeInt64BE(this._eh, this._el, 32);
writeInt64BE(this._fh, this._fl, 40);
writeInt64BE(this._gh, this._gl, 48);
writeInt64BE(this._hh, this._hl, 56);
return H;
};
module.exports = Sha512;
},{"./hash":327,"inherits":266,"safe-buffer":319}],335:[function(require,module,exports){
'use strict';
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
module.exports = Stream;
var EE = require('events').EventEmitter;
var inherits = require('inherits');
inherits(Stream, EE);
Stream.Readable = require('readable-stream/readable.js');
Stream.Writable = require('readable-stream/writable.js');
Stream.Duplex = require('readable-stream/duplex.js');
Stream.Transform = require('readable-stream/transform.js');
Stream.PassThrough = require('readable-stream/passthrough.js');
// Backwards-compat with node 0.4.x
Stream.Stream = Stream;
// old-style streams. Note that the pipe method (the only relevant
// part of this class) is overridden in the Readable class.
function Stream() {
EE.call(this);
}
Stream.prototype.pipe = function (dest, options) {
var source = this;
function ondata(chunk) {
if (dest.writable) {
if (false === dest.write(chunk) && source.pause) {
source.pause();
}
}
}
source.on('data', ondata);
function ondrain() {
if (source.readable && source.resume) {
source.resume();
}
}
dest.on('drain', ondrain);
// If the 'end' option is not supplied, dest.end() will be called when
// source gets the 'end' or 'close' events. Only dest.end() once.
if (!dest._isStdio && (!options || options.end !== false)) {
source.on('end', onend);
source.on('close', onclose);
}
var didOnEnd = false;
function onend() {
if (didOnEnd) return;
didOnEnd = true;
dest.end();
}
function onclose() {
if (didOnEnd) return;
didOnEnd = true;
if (typeof dest.destroy === 'function') dest.destroy();
}
// don't leave dangling pipes when there are errors.
function onerror(er) {
cleanup();
if (EE.listenerCount(this, 'error') === 0) {
throw er; // Unhandled stream error in pipe.
}
}
source.on('error', onerror);
dest.on('error', onerror);
// remove all the event listeners that were added.
function cleanup() {
source.removeListener('data', ondata);
dest.removeListener('drain', ondrain);
source.removeListener('end', onend);
source.removeListener('close', onclose);
source.removeListener('error', onerror);
dest.removeListener('error', onerror);
source.removeListener('end', cleanup);
source.removeListener('close', cleanup);
dest.removeListener('close', cleanup);
}
source.on('end', cleanup);
source.on('close', cleanup);
dest.on('close', cleanup);
dest.emit('pipe', source);
// Allow for unix-like usage: A.pipe(B).pipe(C)
return dest;
};
},{"events":245,"inherits":266,"readable-stream/duplex.js":304,"readable-stream/passthrough.js":313,"readable-stream/readable.js":314,"readable-stream/transform.js":315,"readable-stream/writable.js":316}],336:[function(require,module,exports){
'use strict';
// Generated by CoffeeScript 1.8.0
(function () {
var ValueError,
create,
explicitToImplicit,
format,
implicitToExplicit,
lookup,
resolve,
__hasProp = {}.hasOwnProperty,
__extends = function __extends(child, parent) {
for (var key in parent) {
if (__hasProp.call(parent, key)) child[key] = parent[key];
}function ctor() {
this.constructor = child;
}ctor.prototype = parent.prototype;child.prototype = new ctor();child.__super__ = parent.prototype;return child;
},
__slice = [].slice;
ValueError = function (_super) {
__extends(ValueError, _super);
function ValueError(message) {
this.message = message;
}
ValueError.prototype.name = 'ValueError';
return ValueError;
}(Error);
implicitToExplicit = 'cannot switch from implicit to explicit numbering';
explicitToImplicit = 'cannot switch from explicit to implicit numbering';
create = function create(transformers) {
if (transformers == null) {
transformers = {};
}
return function () {
var args, explicit, idx, implicit, message, template;
template = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
idx = 0;
explicit = implicit = false;
message = 'cannot switch from {} to {} numbering';
return template.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g, function (match, literal, key, transformer) {
var value, _ref, _ref1;
if (literal) {
return literal;
}
if (key.length) {
if (implicit) {
throw new ValueError(implicitToExplicit);
}
explicit = true;
value = (_ref = lookup(args, key)) != null ? _ref : '';
} else {
if (explicit) {
throw new ValueError(explicitToImplicit);
}
implicit = true;
value = (_ref1 = args[idx++]) != null ? _ref1 : '';
}
if (Object.prototype.hasOwnProperty.call(transformers, transformer)) {
return transformers[transformer](value);
} else {
return value;
}
});
};
};
lookup = function lookup(object, key) {
var match;
if (!/^(\d+)([.]|$)/.test(key)) {
key = '0.' + key;
}
while (match = /(.+?)[.](.+)/.exec(key)) {
object = resolve(object, match[1]);
key = match[2];
}
return resolve(object, key);
};
resolve = function resolve(object, key) {
var value;
value = object[key];
if (typeof value === 'function') {
return value.call(object);
} else {
return value;
}
};
format = create({});
format.create = create;
format.extend = function (prototype, transformers) {
var $format;
$format = create(transformers);
prototype.format = function () {
return $format.apply(null, [this].concat(__slice.call(arguments)));
};
};
if (typeof module !== 'undefined') {
module.exports = format;
} else if (typeof define === 'function' && define.amd) {
define(format);
} else {
window.format = format;
}
}).call(undefined);
},{}],337:[function(require,module,exports){
'use strict';
var Buffer = require('safe-buffer').Buffer;
var isEncoding = Buffer.isEncoding || function (encoding) {
encoding = '' + encoding;
switch (encoding && encoding.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 true;
default:
return false;
}
};
function _normalizeEncoding(enc) {
if (!enc) return 'utf8';
var retried;
while (true) {
switch (enc) {
case 'utf8':
case 'utf-8':
return 'utf8';
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return 'utf16le';
case 'latin1':
case 'binary':
return 'latin1';
case 'base64':
case 'ascii':
case 'hex':
return enc;
default:
if (retried) return; // undefined
enc = ('' + enc).toLowerCase();
retried = true;
}
}
};
// Do not cache `Buffer.isEncoding` when checking encoding names as some
// modules monkey-patch it to support additional encodings
function normalizeEncoding(enc) {
var nenc = _normalizeEncoding(enc);
if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
return nenc || enc;
}
// StringDecoder provides an interface for efficiently splitting a series of
// buffers into a series of JS strings without breaking apart multi-byte
// characters.
exports.StringDecoder = StringDecoder;
function StringDecoder(encoding) {
this.encoding = normalizeEncoding(encoding);
var nb;
switch (this.encoding) {
case 'utf16le':
this.text = utf16Text;
this.end = utf16End;
nb = 4;
break;
case 'utf8':
this.fillLast = utf8FillLast;
nb = 4;
break;
case 'base64':
this.text = base64Text;
this.end = base64End;
nb = 3;
break;
default:
this.write = simpleWrite;
this.end = simpleEnd;
return;
}
this.lastNeed = 0;
this.lastTotal = 0;
this.lastChar = Buffer.allocUnsafe(nb);
}
StringDecoder.prototype.write = function (buf) {
if (buf.length === 0) return '';
var r;
var i;
if (this.lastNeed) {
r = this.fillLast(buf);
if (r === undefined) return '';
i = this.lastNeed;
this.lastNeed = 0;
} else {
i = 0;
}
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
return r || '';
};
StringDecoder.prototype.end = utf8End;
// Returns only complete characters in a Buffer
StringDecoder.prototype.text = utf8Text;
// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
StringDecoder.prototype.fillLast = function (buf) {
if (this.lastNeed <= buf.length) {
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
}
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
this.lastNeed -= buf.length;
};
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
// continuation byte.
function utf8CheckByte(byte) {
if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
return -1;
}
// Checks at most 3 bytes at the end of a Buffer in order to detect an
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
// needed to complete the UTF-8 character (if applicable) are returned.
function utf8CheckIncomplete(self, buf, i) {
var j = buf.length - 1;
if (j < i) return 0;
var nb = utf8CheckByte(buf[j]);
if (nb >= 0) {
if (nb > 0) self.lastNeed = nb - 1;
return nb;
}
if (--j < i) return 0;
nb = utf8CheckByte(buf[j]);
if (nb >= 0) {
if (nb > 0) self.lastNeed = nb - 2;
return nb;
}
if (--j < i) return 0;
nb = utf8CheckByte(buf[j]);
if (nb >= 0) {
if (nb > 0) {
if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
}
return nb;
}
return 0;
}
// Validates as many continuation bytes for a multi-byte UTF-8 character as
// needed or are available. If we see a non-continuation byte where we expect
// one, we "replace" the validated continuation bytes we've seen so far with
// UTF-8 replacement characters ('\ufffd'), to match v8's UTF-8 decoding
// behavior. The continuation byte check is included three times in the case
// where all of the continuation bytes for a character exist in the same buffer.
// It is also done this way as a slight performance increase instead of using a
// loop.
function utf8CheckExtraBytes(self, buf, p) {
if ((buf[0] & 0xC0) !== 0x80) {
self.lastNeed = 0;
return '\uFFFD'.repeat(p);
}
if (self.lastNeed > 1 && buf.length > 1) {
if ((buf[1] & 0xC0) !== 0x80) {
self.lastNeed = 1;
return '\uFFFD'.repeat(p + 1);
}
if (self.lastNeed > 2 && buf.length > 2) {
if ((buf[2] & 0xC0) !== 0x80) {
self.lastNeed = 2;
return '\uFFFD'.repeat(p + 2);
}
}
}
}
// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
function utf8FillLast(buf) {
var p = this.lastTotal - this.lastNeed;
var r = utf8CheckExtraBytes(this, buf, p);
if (r !== undefined) return r;
if (this.lastNeed <= buf.length) {
buf.copy(this.lastChar, p, 0, this.lastNeed);
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
}
buf.copy(this.lastChar, p, 0, buf.length);
this.lastNeed -= buf.length;
}
// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
// partial character, the character's bytes are buffered until the required
// number of bytes are available.
function utf8Text(buf, i) {
var total = utf8CheckIncomplete(this, buf, i);
if (!this.lastNeed) return buf.toString('utf8', i);
this.lastTotal = total;
var end = buf.length - (total - this.lastNeed);
buf.copy(this.lastChar, 0, end);
return buf.toString('utf8', i, end);
}
// For UTF-8, a replacement character for each buffered byte of a (partial)
// character needs to be added to the output.
function utf8End(buf) {
var r = buf && buf.length ? this.write(buf) : '';
if (this.lastNeed) return r + '\uFFFD'.repeat(this.lastTotal - this.lastNeed);
return r;
}
// UTF-16LE typically needs two bytes per character, but even if we have an even
// number of bytes available, we need to check if we end on a leading/high
// surrogate. In that case, we need to wait for the next two bytes in order to
// decode the last character properly.
function utf16Text(buf, i) {
if ((buf.length - i) % 2 === 0) {
var r = buf.toString('utf16le', i);
if (r) {
var c = r.charCodeAt(r.length - 1);
if (c >= 0xD800 && c <= 0xDBFF) {
this.lastNeed = 2;
this.lastTotal = 4;
this.lastChar[0] = buf[buf.length - 2];
this.lastChar[1] = buf[buf.length - 1];
return r.slice(0, -1);
}
}
return r;
}
this.lastNeed = 1;
this.lastTotal = 2;
this.lastChar[0] = buf[buf.length - 1];
return buf.toString('utf16le', i, buf.length - 1);
}
// For UTF-16LE we do not explicitly append special replacement characters if we
// end on a partial character, we simply let v8 handle that.
function utf16End(buf) {
var r = buf && buf.length ? this.write(buf) : '';
if (this.lastNeed) {
var end = this.lastTotal - this.lastNeed;
return r + this.lastChar.toString('utf16le', 0, end);
}
return r;
}
function base64Text(buf, i) {
var n = (buf.length - i) % 3;
if (n === 0) return buf.toString('base64', i);
this.lastNeed = 3 - n;
this.lastTotal = 3;
if (n === 1) {
this.lastChar[0] = buf[buf.length - 1];
} else {
this.lastChar[0] = buf[buf.length - 2];
this.lastChar[1] = buf[buf.length - 1];
}
return buf.toString('base64', i, buf.length - n);
}
function base64End(buf) {
var r = buf && buf.length ? this.write(buf) : '';
if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
return r;
}
// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
function simpleWrite(buf) {
return buf.toString(this.encoding);
}
function simpleEnd(buf) {
return buf && buf.length ? this.write(buf) : '';
}
},{"safe-buffer":319}],338:[function(require,module,exports){
'use strict';
var isHexPrefixed = require('is-hex-prefixed');
/**
* Removes '0x' from a given `String` is present
* @param {String} str the string value
* @return {String|Optional} a string by pass if necessary
*/
module.exports = function stripHexPrefix(str) {
if (typeof str !== 'string') {
return str;
}
return isHexPrefixed(str) ? str.slice(2) : str;
};
},{"is-hex-prefixed":268}],339:[function(require,module,exports){
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
(function (root) {
"use strict";
/***** unorm.js *****/
/*
* UnicodeNormalizer 1.0.0
* Copyright (c) 2008 Matsuza
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* $Date: 2008-06-05 16:44:17 +0200 (Thu, 05 Jun 2008) $
* $Rev: 13309 $
*/
var DEFAULT_FEATURE = [null, 0, {}];
var CACHE_THRESHOLD = 10;
var SBase = 0xAC00,
LBase = 0x1100,
VBase = 0x1161,
TBase = 0x11A7,
LCount = 19,
VCount = 21,
TCount = 28;
var NCount = VCount * TCount; // 588
var SCount = LCount * NCount; // 11172
var UChar = function UChar(cp, feature) {
this.codepoint = cp;
this.feature = feature;
};
// Strategies
var cache = {};
var cacheCounter = [];
for (var i = 0; i <= 0xFF; ++i) {
cacheCounter[i] = 0;
}
function fromCache(next, cp, needFeature) {
var ret = cache[cp];
if (!ret) {
ret = next(cp, needFeature);
if (!!ret.feature && ++cacheCounter[cp >> 8 & 0xFF] > CACHE_THRESHOLD) {
cache[cp] = ret;
}
}
return ret;
}
function fromData(next, cp, needFeature) {
var hash = cp & 0xFF00;
var dunit = UChar.udata[hash] || {};
var f = dunit[cp];
return f ? new UChar(cp, f) : new UChar(cp, DEFAULT_FEATURE);
}
function fromCpOnly(next, cp, needFeature) {
return !!needFeature ? next(cp, needFeature) : new UChar(cp, null);
}
function fromRuleBasedJamo(next, cp, needFeature) {
var j;
if (cp < LBase || LBase + LCount <= cp && cp < SBase || SBase + SCount < cp) {
return next(cp, needFeature);
}
if (LBase <= cp && cp < LBase + LCount) {
var c = {};
var base = (cp - LBase) * VCount;
for (j = 0; j < VCount; ++j) {
c[VBase + j] = SBase + TCount * (j + base);
}
return new UChar(cp, [,, c]);
}
var SIndex = cp - SBase;
var TIndex = SIndex % TCount;
var feature = [];
if (TIndex !== 0) {
feature[0] = [SBase + SIndex - TIndex, TBase + TIndex];
} else {
feature[0] = [LBase + Math.floor(SIndex / NCount), VBase + Math.floor(SIndex % NCount / TCount)];
feature[2] = {};
for (j = 1; j < TCount; ++j) {
feature[2][TBase + j] = cp + j;
}
}
return new UChar(cp, feature);
}
function fromCpFilter(next, cp, needFeature) {
return cp < 60 || 13311 < cp && cp < 42607 ? new UChar(cp, DEFAULT_FEATURE) : next(cp, needFeature);
}
var strategies = [fromCpFilter, fromCache, fromCpOnly, fromRuleBasedJamo, fromData];
UChar.fromCharCode = strategies.reduceRight(function (next, strategy) {
return function (cp, needFeature) {
return strategy(next, cp, needFeature);
};
}, null);
UChar.isHighSurrogate = function (cp) {
return cp >= 0xD800 && cp <= 0xDBFF;
};
UChar.isLowSurrogate = function (cp) {
return cp >= 0xDC00 && cp <= 0xDFFF;
};
UChar.prototype.prepFeature = function () {
if (!this.feature) {
this.feature = UChar.fromCharCode(this.codepoint, true).feature;
}
};
UChar.prototype.toString = function () {
if (this.codepoint < 0x10000) {
return String.fromCharCode(this.codepoint);
} else {
var x = this.codepoint - 0x10000;
return String.fromCharCode(Math.floor(x / 0x400) + 0xD800, x % 0x400 + 0xDC00);
}
};
UChar.prototype.getDecomp = function () {
this.prepFeature();
return this.feature[0] || null;
};
UChar.prototype.isCompatibility = function () {
this.prepFeature();
return !!this.feature[1] && this.feature[1] & 1 << 8;
};
UChar.prototype.isExclude = function () {
this.prepFeature();
return !!this.feature[1] && this.feature[1] & 1 << 9;
};
UChar.prototype.getCanonicalClass = function () {
this.prepFeature();
return !!this.feature[1] ? this.feature[1] & 0xff : 0;
};
UChar.prototype.getComposite = function (following) {
this.prepFeature();
if (!this.feature[2]) {
return null;
}
var cp = this.feature[2][following.codepoint];
return cp ? UChar.fromCharCode(cp) : null;
};
var UCharIterator = function UCharIterator(str) {
this.str = str;
this.cursor = 0;
};
UCharIterator.prototype.next = function () {
if (!!this.str && this.cursor < this.str.length) {
var cp = this.str.charCodeAt(this.cursor++);
var d;
if (UChar.isHighSurrogate(cp) && this.cursor < this.str.length && UChar.isLowSurrogate(d = this.str.charCodeAt(this.cursor))) {
cp = (cp - 0xD800) * 0x400 + (d - 0xDC00) + 0x10000;
++this.cursor;
}
return UChar.fromCharCode(cp);
} else {
this.str = null;
return null;
}
};
var RecursDecompIterator = function RecursDecompIterator(it, cano) {
this.it = it;
this.canonical = cano;
this.resBuf = [];
};
RecursDecompIterator.prototype.next = function () {
function recursiveDecomp(cano, uchar) {
var decomp = uchar.getDecomp();
if (!!decomp && !(cano && uchar.isCompatibility())) {
var ret = [];
for (var i = 0; i < decomp.length; ++i) {
var a = recursiveDecomp(cano, UChar.fromCharCode(decomp[i]));
ret = ret.concat(a);
}
return ret;
} else {
return [uchar];
}
}
if (this.resBuf.length === 0) {
var uchar = this.it.next();
if (!uchar) {
return null;
}
this.resBuf = recursiveDecomp(this.canonical, uchar);
}
return this.resBuf.shift();
};
var DecompIterator = function DecompIterator(it) {
this.it = it;
this.resBuf = [];
};
DecompIterator.prototype.next = function () {
var cc;
if (this.resBuf.length === 0) {
do {
var uchar = this.it.next();
if (!uchar) {
break;
}
cc = uchar.getCanonicalClass();
var inspt = this.resBuf.length;
if (cc !== 0) {
for (; inspt > 0; --inspt) {
var uchar2 = this.resBuf[inspt - 1];
var cc2 = uchar2.getCanonicalClass();
if (cc2 <= cc) {
break;
}
}
}
this.resBuf.splice(inspt, 0, uchar);
} while (cc !== 0);
}
return this.resBuf.shift();
};
var CompIterator = function CompIterator(it) {
this.it = it;
this.procBuf = [];
this.resBuf = [];
this.lastClass = null;
};
CompIterator.prototype.next = function () {
while (this.resBuf.length === 0) {
var uchar = this.it.next();
if (!uchar) {
this.resBuf = this.procBuf;
this.procBuf = [];
break;
}
if (this.procBuf.length === 0) {
this.lastClass = uchar.getCanonicalClass();
this.procBuf.push(uchar);
} else {
var starter = this.procBuf[0];
var composite = starter.getComposite(uchar);
var cc = uchar.getCanonicalClass();
if (!!composite && (this.lastClass < cc || this.lastClass === 0)) {
this.procBuf[0] = composite;
} else {
if (cc === 0) {
this.resBuf = this.procBuf;
this.procBuf = [];
}
this.lastClass = cc;
this.procBuf.push(uchar);
}
}
}
return this.resBuf.shift();
};
var createIterator = function createIterator(mode, str) {
switch (mode) {
case "NFD":
return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true));
case "NFKD":
return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false));
case "NFC":
return new CompIterator(new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true)));
case "NFKC":
return new CompIterator(new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false)));
}
throw mode + " is invalid";
};
var normalize = function normalize(mode, str) {
var it = createIterator(mode, str);
var ret = "";
var uchar;
while (!!(uchar = it.next())) {
ret += uchar.toString();
}
return ret;
};
/* API functions */
function nfd(str) {
return normalize("NFD", str);
}
function nfkd(str) {
return normalize("NFKD", str);
}
function nfc(str) {
return normalize("NFC", str);
}
function nfkc(str) {
return normalize("NFKC", str);
}
/* Unicode data */
UChar.udata = {
0: { 60: [,, { 824: 8814 }], 61: [,, { 824: 8800 }], 62: [,, { 824: 8815 }], 65: [,, { 768: 192, 769: 193, 770: 194, 771: 195, 772: 256, 774: 258, 775: 550, 776: 196, 777: 7842, 778: 197, 780: 461, 783: 512, 785: 514, 803: 7840, 805: 7680, 808: 260 }], 66: [,, { 775: 7682, 803: 7684, 817: 7686 }], 67: [,, { 769: 262, 770: 264, 775: 266, 780: 268, 807: 199 }], 68: [,, { 775: 7690, 780: 270, 803: 7692, 807: 7696, 813: 7698, 817: 7694 }], 69: [,, { 768: 200, 769: 201, 770: 202, 771: 7868, 772: 274, 774: 276, 775: 278, 776: 203, 777: 7866, 780: 282, 783: 516, 785: 518, 803: 7864, 807: 552, 808: 280, 813: 7704, 816: 7706 }], 70: [,, { 775: 7710 }], 71: [,, { 769: 500, 770: 284, 772: 7712, 774: 286, 775: 288, 780: 486, 807: 290 }], 72: [,, { 770: 292, 775: 7714, 776: 7718, 780: 542, 803: 7716, 807: 7720, 814: 7722 }], 73: [,, { 768: 204, 769: 205, 770: 206, 771: 296, 772: 298, 774: 300, 775: 304, 776: 207, 777: 7880, 780: 463, 783: 520, 785: 522, 803: 7882, 808: 302, 816: 7724 }], 74: [,, { 770: 308 }], 75: [,, { 769: 7728, 780: 488, 803: 7730, 807: 310, 817: 7732 }], 76: [,, { 769: 313, 780: 317, 803: 7734, 807: 315, 813: 7740, 817: 7738 }], 77: [,, { 769: 7742, 775: 7744, 803: 7746 }], 78: [,, { 768: 504, 769: 323, 771: 209, 775: 7748, 780: 327, 803: 7750, 807: 325, 813: 7754, 817: 7752 }], 79: [,, { 768: 210, 769: 211, 770: 212, 771: 213, 772: 332, 774: 334, 775: 558, 776: 214, 777: 7886, 779: 336, 780: 465, 783: 524, 785: 526, 795: 416, 803: 7884, 808: 490 }], 80: [,, { 769: 7764, 775: 7766 }], 82: [,, { 769: 340, 775: 7768, 780: 344, 783: 528, 785: 530, 803: 7770, 807: 342, 817: 7774 }], 83: [,, { 769: 346, 770: 348, 775: 7776, 780: 352, 803: 7778, 806: 536, 807: 350 }], 84: [,, { 775: 7786, 780: 356, 803: 7788, 806: 538, 807: 354, 813: 7792, 817: 7790 }], 85: [,, { 768: 217, 769: 218, 770: 219, 771: 360, 772: 362, 774: 364, 776: 220, 777: 7910, 778: 366, 779: 368, 780: 467, 783: 532, 785: 534, 795: 431, 803: 7908, 804: 7794, 808: 370, 813: 7798, 816: 7796 }], 86: [,, { 771: 7804, 803: 7806 }], 87: [,, { 768: 7808, 769: 7810, 770: 372, 775: 7814, 776: 7812, 803: 7816 }], 88: [,, { 775: 7818, 776: 7820 }], 89: [,, { 768: 7922, 769: 221, 770: 374, 771: 7928, 772: 562, 775: 7822, 776: 376, 777: 7926, 803: 7924 }], 90: [,, { 769: 377, 770: 7824, 775: 379, 780: 381, 803: 7826, 817: 7828 }], 97: [,, { 768: 224, 769: 225, 770: 226, 771: 227, 772: 257, 774: 259, 775: 551, 776: 228, 777: 7843, 778: 229, 780: 462, 783: 513, 785: 515, 803: 7841, 805: 7681, 808: 261 }], 98: [,, { 775: 7683, 803: 7685, 817: 7687 }], 99: [,, { 769: 263, 770: 265, 775: 267, 780: 269, 807: 231 }], 100: [,, { 775: 7691, 780: 271, 803: 7693, 807: 7697, 813: 7699, 817: 7695 }], 101: [,, { 768: 232, 769: 233, 770: 234, 771: 7869, 772: 275, 774: 277, 775: 279, 776: 235, 777: 7867, 780: 283, 783: 517, 785: 519, 803: 7865, 807: 553, 808: 281, 813: 7705, 816: 7707 }], 102: [,, { 775: 7711 }], 103: [,, { 769: 501, 770: 285, 772: 7713, 774: 287, 775: 289, 780: 487, 807: 291 }], 104: [,, { 770: 293, 775: 7715, 776: 7719, 780: 543, 803: 7717, 807: 7721, 814: 7723, 817: 7830 }], 105: [,, { 768: 236, 769: 237, 770: 238, 771: 297, 772: 299, 774: 301, 776: 239, 777: 7881, 780: 464, 783: 521, 785: 523, 803: 7883, 808: 303, 816: 7725 }], 106: [,, { 770: 309, 780: 496 }], 107: [,, { 769: 7729, 780: 489, 803: 7731, 807: 311, 817: 7733 }], 108: [,, { 769: 314, 780: 318, 803: 7735, 807: 316, 813: 7741, 817: 7739 }], 109: [,, { 769: 7743, 775: 7745, 803: 7747 }], 110: [,, { 768: 505, 769: 324, 771: 241, 775: 7749, 780: 328, 803: 7751, 807: 326, 813: 7755, 817: 7753 }], 111: [,, { 768: 242, 769: 243, 770: 244, 771: 245, 772: 333, 774: 335, 775: 559, 776: 246, 777: 7887, 779: 337, 780: 466, 783: 525, 785: 527, 795: 417, 803: 7885, 808: 491 }], 112: [,, { 769: 7765, 775: 7767 }], 114: [,, { 769: 341, 775: 7769, 780: 345, 783: 529, 785: 531, 803: 7771, 807: 343, 817: 7775 }], 115: [,, { 769: 347, 770: 349, 775: 7777, 780: 353, 803: 7779, 806: 537, 807: 351 }], 116: [,, { 775: 7787, 776: 7831, 780: 357, 803: 7789, 806: 539, 807: 355, 813: 7793, 817: 7791 }], 117: [,, { 768: 249, 769: 250, 770: 251, 771: 361, 772: 363, 774: 365, 776: 252, 777: 7911, 778: 367, 779: 369, 780: 468, 783: 533, 785: 535, 795: 432, 803: 7909, 804: 7795, 808: 371, 813: 7799, 816: 7797 }], 118: [,, { 771: 7805, 803: 7807 }], 119: [,, { 768: 7809, 769: 7811, 770: 373, 775: 7815, 776: 7813, 778: 7832, 803: 7817 }], 120: [,, { 775: 7819, 776: 7821 }], 121: [,, { 768: 7923, 769: 253, 770: 375, 771: 7929, 772: 563, 775: 7823, 776: 255, 777: 7927, 778: 7833, 803: 7925 }], 122: [,, { 769: 378, 770: 7825, 775: 380, 780: 382, 803: 7827, 817: 7829 }], 160: [[32], 256], 168: [[32, 776], 256, { 768: 8173, 769: 901, 834: 8129 }], 170: [[97], 256], 175: [[32, 772], 256], 178: [[50], 256], 179: [[51], 256], 180: [[32, 769], 256], 181: [[956], 256], 184: [[32, 807], 256], 185: [[49], 256], 186: [[111], 256], 188: [[49, 8260, 52], 256], 189: [[49, 8260, 50], 256], 190: [[51, 8260, 52], 256], 192: [[65, 768]], 193: [[65, 769]], 194: [[65, 770],, { 768: 7846, 769: 7844, 771: 7850, 777: 7848 }], 195: [[65, 771]], 196: [[65, 776],, { 772: 478 }], 197: [[65, 778],, { 769: 506 }], 198: [,, { 769: 508, 772: 482 }], 199: [[67, 807],, { 769: 7688 }], 200: [[69, 768]], 201: [[69, 769]], 202: [[69, 770],, { 768: 7872, 769: 7870, 771: 7876, 777: 7874 }], 203: [[69, 776]], 204: [[73, 768]], 205: [[73, 769]], 206: [[73, 770]], 207: [[73, 776],, { 769: 7726 }], 209: [[78, 771]], 210: [[79, 768]], 211: [[79, 769]], 212: [[79, 770],, { 768: 7890, 769: 7888, 771: 7894, 777: 7892 }], 213: [[79, 771],, { 769: 7756, 772: 556, 776: 7758 }], 214: [[79, 776],, { 772: 554 }], 216: [,, { 769: 510 }], 217: [[85, 768]], 218: [[85, 769]], 219: [[85, 770]], 220: [[85, 776],, { 768: 475, 769: 471, 772: 469, 780: 473 }], 221: [[89, 769]], 224: [[97, 768]], 225: [[97, 769]], 226: [[97, 770],, { 768: 7847, 769: 7845, 771: 7851, 777: 7849 }], 227: [[97, 771]], 228: [[97, 776],, { 772: 479 }], 229: [[97, 778],, { 769: 507 }], 230: [,, { 769: 509, 772: 483 }], 231: [[99, 807],, { 769: 7689 }], 232: [[101, 768]], 233: [[101, 769]], 234: [[101, 770],, { 768: 7873, 769: 7871, 771: 7877, 777: 7875 }], 235: [[101, 776]], 236: [[105, 768]], 237: [[105, 769]], 238: [[105, 770]], 239: [[105, 776],, { 769: 7727 }], 241: [[110, 771]], 242: [[111, 768]], 243: [[111, 769]], 244: [[111, 770],, { 768: 7891, 769: 7889, 771: 7895, 777: 7893 }], 245: [[111, 771],, { 769: 7757, 772: 557, 776: 7759 }], 246: [[111, 776],, { 772: 555 }], 248: [,, { 769: 511 }], 249: [[117, 768]], 250: [[117, 769]], 251: [[117, 770]], 252: [[117, 776],, { 768: 476, 769: 472, 772: 470, 780: 474 }], 253: [[121, 769]], 255: [[121, 776]] },
256: { 256: [[65, 772]], 257: [[97, 772]], 258: [[65, 774],, { 768: 7856, 769: 7854, 771: 7860, 777: 7858 }], 259: [[97, 774],, { 768: 7857, 769: 7855, 771: 7861, 777: 7859 }], 260: [[65, 808]], 261: [[97, 808]], 262: [[67, 769]], 263: [[99, 769]], 264: [[67, 770]], 265: [[99, 770]], 266: [[67, 775]], 267: [[99, 775]], 268: [[67, 780]], 269: [[99, 780]], 270: [[68, 780]], 271: [[100, 780]], 274: [[69, 772],, { 768: 7700, 769: 7702 }], 275: [[101, 772],, { 768: 7701, 769: 7703 }], 276: [[69, 774]], 277: [[101, 774]], 278: [[69, 775]], 279: [[101, 775]], 280: [[69, 808]], 281: [[101, 808]], 282: [[69, 780]], 283: [[101, 780]], 284: [[71, 770]], 285: [[103, 770]], 286: [[71, 774]], 287: [[103, 774]], 288: [[71, 775]], 289: [[103, 775]], 290: [[71, 807]], 291: [[103, 807]], 292: [[72, 770]], 293: [[104, 770]], 296: [[73, 771]], 297: [[105, 771]], 298: [[73, 772]], 299: [[105, 772]], 300: [[73, 774]], 301: [[105, 774]], 302: [[73, 808]], 303: [[105, 808]], 304: [[73, 775]], 306: [[73, 74], 256], 307: [[105, 106], 256], 308: [[74, 770]], 309: [[106, 770]], 310: [[75, 807]], 311: [[107, 807]], 313: [[76, 769]], 314: [[108, 769]], 315: [[76, 807]], 316: [[108, 807]], 317: [[76, 780]], 318: [[108, 780]], 319: [[76, 183], 256], 320: [[108, 183], 256], 323: [[78, 769]], 324: [[110, 769]], 325: [[78, 807]], 326: [[110, 807]], 327: [[78, 780]], 328: [[110, 780]], 329: [[700, 110], 256], 332: [[79, 772],, { 768: 7760, 769: 7762 }], 333: [[111, 772],, { 768: 7761, 769: 7763 }], 334: [[79, 774]], 335: [[111, 774]], 336: [[79, 779]], 337: [[111, 779]], 340: [[82, 769]], 341: [[114, 769]], 342: [[82, 807]], 343: [[114, 807]], 344: [[82, 780]], 345: [[114, 780]], 346: [[83, 769],, { 775: 7780 }], 347: [[115, 769],, { 775: 7781 }], 348: [[83, 770]], 349: [[115, 770]], 350: [[83, 807]], 351: [[115, 807]], 352: [[83, 780],, { 775: 7782 }], 353: [[115, 780],, { 775: 7783 }], 354: [[84, 807]], 355: [[116, 807]], 356: [[84, 780]], 357: [[116, 780]], 360: [[85, 771],, { 769: 7800 }], 361: [[117, 771],, { 769: 7801 }], 362: [[85, 772],, { 776: 7802 }], 363: [[117, 772],, { 776: 7803 }], 364: [[85, 774]], 365: [[117, 774]], 366: [[85, 778]], 367: [[117, 778]], 368: [[85, 779]], 369: [[117, 779]], 370: [[85, 808]], 371: [[117, 808]], 372: [[87, 770]], 373: [[119, 770]], 374: [[89, 770]], 375: [[121, 770]], 376: [[89, 776]], 377: [[90, 769]], 378: [[122, 769]], 379: [[90, 775]], 380: [[122, 775]], 381: [[90, 780]], 382: [[122, 780]], 383: [[115], 256, { 775: 7835 }], 416: [[79, 795],, { 768: 7900, 769: 7898, 771: 7904, 777: 7902, 803: 7906 }], 417: [[111, 795],, { 768: 7901, 769: 7899, 771: 7905, 777: 7903, 803: 7907 }], 431: [[85, 795],, { 768: 7914, 769: 7912, 771: 7918, 777: 7916, 803: 7920 }], 432: [[117, 795],, { 768: 7915, 769: 7913, 771: 7919, 777: 7917, 803: 7921 }], 439: [,, { 780: 494 }], 452: [[68, 381], 256], 453: [[68, 382], 256], 454: [[100, 382], 256], 455: [[76, 74], 256], 456: [[76, 106], 256], 457: [[108, 106], 256], 458: [[78, 74], 256], 459: [[78, 106], 256], 460: [[110, 106], 256], 461: [[65, 780]], 462: [[97, 780]], 463: [[73, 780]], 464: [[105, 780]], 465: [[79, 780]], 466: [[111, 780]], 467: [[85, 780]], 468: [[117, 780]], 469: [[220, 772]], 470: [[252, 772]], 471: [[220, 769]], 472: [[252, 769]], 473: [[220, 780]], 474: [[252, 780]], 475: [[220, 768]], 476: [[252, 768]], 478: [[196, 772]], 479: [[228, 772]], 480: [[550, 772]], 481: [[551, 772]], 482: [[198, 772]], 483: [[230, 772]], 486: [[71, 780]], 487: [[103, 780]], 488: [[75, 780]], 489: [[107, 780]], 490: [[79, 808],, { 772: 492 }], 491: [[111, 808],, { 772: 493 }], 492: [[490, 772]], 493: [[491, 772]], 494: [[439, 780]], 495: [[658, 780]], 496: [[106, 780]], 497: [[68, 90], 256], 498: [[68, 122], 256], 499: [[100, 122], 256], 500: [[71, 769]], 501: [[103, 769]], 504: [[78, 768]], 505: [[110, 768]], 506: [[197, 769]], 507: [[229, 769]], 508: [[198, 769]], 509: [[230, 769]], 510: [[216, 769]], 511: [[248, 769]], 66045: [, 220] },
512: { 512: [[65, 783]], 513: [[97, 783]], 514: [[65, 785]], 515: [[97, 785]], 516: [[69, 783]], 517: [[101, 783]], 518: [[69, 785]], 519: [[101, 785]], 520: [[73, 783]], 521: [[105, 783]], 522: [[73, 785]], 523: [[105, 785]], 524: [[79, 783]], 525: [[111, 783]], 526: [[79, 785]], 527: [[111, 785]], 528: [[82, 783]], 529: [[114, 783]], 530: [[82, 785]], 531: [[114, 785]], 532: [[85, 783]], 533: [[117, 783]], 534: [[85, 785]], 535: [[117, 785]], 536: [[83, 806]], 537: [[115, 806]], 538: [[84, 806]], 539: [[116, 806]], 542: [[72, 780]], 543: [[104, 780]], 550: [[65, 775],, { 772: 480 }], 551: [[97, 775],, { 772: 481 }], 552: [[69, 807],, { 774: 7708 }], 553: [[101, 807],, { 774: 7709 }], 554: [[214, 772]], 555: [[246, 772]], 556: [[213, 772]], 557: [[245, 772]], 558: [[79, 775],, { 772: 560 }], 559: [[111, 775],, { 772: 561 }], 560: [[558, 772]], 561: [[559, 772]], 562: [[89, 772]], 563: [[121, 772]], 658: [,, { 780: 495 }], 688: [[104], 256], 689: [[614], 256], 690: [[106], 256], 691: [[114], 256], 692: [[633], 256], 693: [[635], 256], 694: [[641], 256], 695: [[119], 256], 696: [[121], 256], 728: [[32, 774], 256], 729: [[32, 775], 256], 730: [[32, 778], 256], 731: [[32, 808], 256], 732: [[32, 771], 256], 733: [[32, 779], 256], 736: [[611], 256], 737: [[108], 256], 738: [[115], 256], 739: [[120], 256], 740: [[661], 256], 66272: [, 220] },
768: { 768: [, 230], 769: [, 230], 770: [, 230], 771: [, 230], 772: [, 230], 773: [, 230], 774: [, 230], 775: [, 230], 776: [, 230, { 769: 836 }], 777: [, 230], 778: [, 230], 779: [, 230], 780: [, 230], 781: [, 230], 782: [, 230], 783: [, 230], 784: [, 230], 785: [, 230], 786: [, 230], 787: [, 230], 788: [, 230], 789: [, 232], 790: [, 220], 791: [, 220], 792: [, 220], 793: [, 220], 794: [, 232], 795: [, 216], 796: [, 220], 797: [, 220], 798: [, 220], 799: [, 220], 800: [, 220], 801: [, 202], 802: [, 202], 803: [, 220], 804: [, 220], 805: [, 220], 806: [, 220], 807: [, 202], 808: [, 202], 809: [, 220], 810: [, 220], 811: [, 220], 812: [, 220], 813: [, 220], 814: [, 220], 815: [, 220], 816: [, 220], 817: [, 220], 818: [, 220], 819: [, 220], 820: [, 1], 821: [, 1], 822: [, 1], 823: [, 1], 824: [, 1], 825: [, 220], 826: [, 220], 827: [, 220], 828: [, 220], 829: [, 230], 830: [, 230], 831: [, 230], 832: [[768], 230], 833: [[769], 230], 834: [, 230], 835: [[787], 230], 836: [[776, 769], 230], 837: [, 240], 838: [, 230], 839: [, 220], 840: [, 220], 841: [, 220], 842: [, 230], 843: [, 230], 844: [, 230], 845: [, 220], 846: [, 220], 848: [, 230], 849: [, 230], 850: [, 230], 851: [, 220], 852: [, 220], 853: [, 220], 854: [, 220], 855: [, 230], 856: [, 232], 857: [, 220], 858: [, 220], 859: [, 230], 860: [, 233], 861: [, 234], 862: [, 234], 863: [, 233], 864: [, 234], 865: [, 234], 866: [, 233], 867: [, 230], 868: [, 230], 869: [, 230], 870: [, 230], 871: [, 230], 872: [, 230], 873: [, 230], 874: [, 230], 875: [, 230], 876: [, 230], 877: [, 230], 878: [, 230], 879: [, 230], 884: [[697]], 890: [[32, 837], 256], 894: [[59]], 900: [[32, 769], 256], 901: [[168, 769]], 902: [[913, 769]], 903: [[183]], 904: [[917, 769]], 905: [[919, 769]], 906: [[921, 769]], 908: [[927, 769]], 910: [[933, 769]], 911: [[937, 769]], 912: [[970, 769]], 913: [,, { 768: 8122, 769: 902, 772: 8121, 774: 8120, 787: 7944, 788: 7945, 837: 8124 }], 917: [,, { 768: 8136, 769: 904, 787: 7960, 788: 7961 }], 919: [,, { 768: 8138, 769: 905, 787: 7976, 788: 7977, 837: 8140 }], 921: [,, { 768: 8154, 769: 906, 772: 8153, 774: 8152, 776: 938, 787: 7992, 788: 7993 }], 927: [,, { 768: 8184, 769: 908, 787: 8008, 788: 8009 }], 929: [,, { 788: 8172 }], 933: [,, { 768: 8170, 769: 910, 772: 8169, 774: 8168, 776: 939, 788: 8025 }], 937: [,, { 768: 8186, 769: 911, 787: 8040, 788: 8041, 837: 8188 }], 938: [[921, 776]], 939: [[933, 776]], 940: [[945, 769],, { 837: 8116 }], 941: [[949, 769]], 942: [[951, 769],, { 837: 8132 }], 943: [[953, 769]], 944: [[971, 769]], 945: [,, { 768: 8048, 769: 940, 772: 8113, 774: 8112, 787: 7936, 788: 7937, 834: 8118, 837: 8115 }], 949: [,, { 768: 8050, 769: 941, 787: 7952, 788: 7953 }], 951: [,, { 768: 8052, 769: 942, 787: 7968, 788: 7969, 834: 8134, 837: 8131 }], 953: [,, { 768: 8054, 769: 943, 772: 8145, 774: 8144, 776: 970, 787: 7984, 788: 7985, 834: 8150 }], 959: [,, { 768: 8056, 769: 972, 787: 8000, 788: 8001 }], 961: [,, { 787: 8164, 788: 8165 }], 965: [,, { 768: 8058, 769: 973, 772: 8161, 774: 8160, 776: 971, 787: 8016, 788: 8017, 834: 8166 }], 969: [,, { 768: 8060, 769: 974, 787: 8032, 788: 8033, 834: 8182, 837: 8179 }], 970: [[953, 776],, { 768: 8146, 769: 912, 834: 8151 }], 971: [[965, 776],, { 768: 8162, 769: 944, 834: 8167 }], 972: [[959, 769]], 973: [[965, 769]], 974: [[969, 769],, { 837: 8180 }], 976: [[946], 256], 977: [[952], 256], 978: [[933], 256, { 769: 979, 776: 980 }], 979: [[978, 769]], 980: [[978, 776]], 981: [[966], 256], 982: [[960], 256], 1008: [[954], 256], 1009: [[961], 256], 1010: [[962], 256], 1012: [[920], 256], 1013: [[949], 256], 1017: [[931], 256], 66422: [, 230], 66423: [, 230], 66424: [, 230], 66425: [, 230], 66426: [, 230] },
1024: { 1024: [[1045, 768]], 1025: [[1045, 776]], 1027: [[1043, 769]], 1030: [,, { 776: 1031 }], 1031: [[1030, 776]], 1036: [[1050, 769]], 1037: [[1048, 768]], 1038: [[1059, 774]], 1040: [,, { 774: 1232, 776: 1234 }], 1043: [,, { 769: 1027 }], 1045: [,, { 768: 1024, 774: 1238, 776: 1025 }], 1046: [,, { 774: 1217, 776: 1244 }], 1047: [,, { 776: 1246 }], 1048: [,, { 768: 1037, 772: 1250, 774: 1049, 776: 1252 }], 1049: [[1048, 774]], 1050: [,, { 769: 1036 }], 1054: [,, { 776: 1254 }], 1059: [,, { 772: 1262, 774: 1038, 776: 1264, 779: 1266 }], 1063: [,, { 776: 1268 }], 1067: [,, { 776: 1272 }], 1069: [,, { 776: 1260 }], 1072: [,, { 774: 1233, 776: 1235 }], 1075: [,, { 769: 1107 }], 1077: [,, { 768: 1104, 774: 1239, 776: 1105 }], 1078: [,, { 774: 1218, 776: 1245 }], 1079: [,, { 776: 1247 }], 1080: [,, { 768: 1117, 772: 1251, 774: 1081, 776: 1253 }], 1081: [[1080, 774]], 1082: [,, { 769: 1116 }], 1086: [,, { 776: 1255 }], 1091: [,, { 772: 1263, 774: 1118, 776: 1265, 779: 1267 }], 1095: [,, { 776: 1269 }], 1099: [,, { 776: 1273 }], 1101: [,, { 776: 1261 }], 1104: [[1077, 768]], 1105: [[1077, 776]], 1107: [[1075, 769]], 1110: [,, { 776: 1111 }], 1111: [[1110, 776]], 1116: [[1082, 769]], 1117: [[1080, 768]], 1118: [[1091, 774]], 1140: [,, { 783: 1142 }], 1141: [,, { 783: 1143 }], 1142: [[1140, 783]], 1143: [[1141, 783]], 1155: [, 230], 1156: [, 230], 1157: [, 230], 1158: [, 230], 1159: [, 230], 1217: [[1046, 774]], 1218: [[1078, 774]], 1232: [[1040, 774]], 1233: [[1072, 774]], 1234: [[1040, 776]], 1235: [[1072, 776]], 1238: [[1045, 774]], 1239: [[1077, 774]], 1240: [,, { 776: 1242 }], 1241: [,, { 776: 1243 }], 1242: [[1240, 776]], 1243: [[1241, 776]], 1244: [[1046, 776]], 1245: [[1078, 776]], 1246: [[1047, 776]], 1247: [[1079, 776]], 1250: [[1048, 772]], 1251: [[1080, 772]], 1252: [[1048, 776]], 1253: [[1080, 776]], 1254: [[1054, 776]], 1255: [[1086, 776]], 1256: [,, { 776: 1258 }], 1257: [,, { 776: 1259 }], 1258: [[1256, 776]], 1259: [[1257, 776]], 1260: [[1069, 776]], 1261: [[1101, 776]], 1262: [[1059, 772]], 1263: [[1091, 772]], 1264: [[1059, 776]], 1265: [[1091, 776]], 1266: [[1059, 779]], 1267: [[1091, 779]], 1268: [[1063, 776]], 1269: [[1095, 776]], 1272: [[1067, 776]], 1273: [[1099, 776]] },
1280: { 1415: [[1381, 1410], 256], 1425: [, 220], 1426: [, 230], 1427: [, 230], 1428: [, 230], 1429: [, 230], 1430: [, 220], 1431: [, 230], 1432: [, 230], 1433: [, 230], 1434: [, 222], 1435: [, 220], 1436: [, 230], 1437: [, 230], 1438: [, 230], 1439: [, 230], 1440: [, 230], 1441: [, 230], 1442: [, 220], 1443: [, 220], 1444: [, 220], 1445: [, 220], 1446: [, 220], 1447: [, 220], 1448: [, 230], 1449: [, 230], 1450: [, 220], 1451: [, 230], 1452: [, 230], 1453: [, 222], 1454: [, 228], 1455: [, 230], 1456: [, 10], 1457: [, 11], 1458: [, 12], 1459: [, 13], 1460: [, 14], 1461: [, 15], 1462: [, 16], 1463: [, 17], 1464: [, 18], 1465: [, 19], 1466: [, 19], 1467: [, 20], 1468: [, 21], 1469: [, 22], 1471: [, 23], 1473: [, 24], 1474: [, 25], 1476: [, 230], 1477: [, 220], 1479: [, 18] },
1536: { 1552: [, 230], 1553: [, 230], 1554: [, 230], 1555: [, 230], 1556: [, 230], 1557: [, 230], 1558: [, 230], 1559: [, 230], 1560: [, 30], 1561: [, 31], 1562: [, 32], 1570: [[1575, 1619]], 1571: [[1575, 1620]], 1572: [[1608, 1620]], 1573: [[1575, 1621]], 1574: [[1610, 1620]], 1575: [,, { 1619: 1570, 1620: 1571, 1621: 1573 }], 1608: [,, { 1620: 1572 }], 1610: [,, { 1620: 1574 }], 1611: [, 27], 1612: [, 28], 1613: [, 29], 1614: [, 30], 1615: [, 31], 1616: [, 32], 1617: [, 33], 1618: [, 34], 1619: [, 230], 1620: [, 230], 1621: [, 220], 1622: [, 220], 1623: [, 230], 1624: [, 230], 1625: [, 230], 1626: [, 230], 1627: [, 230], 1628: [, 220], 1629: [, 230], 1630: [, 230], 1631: [, 220], 1648: [, 35], 1653: [[1575, 1652], 256], 1654: [[1608, 1652], 256], 1655: [[1735, 1652], 256], 1656: [[1610, 1652], 256], 1728: [[1749, 1620]], 1729: [,, { 1620: 1730 }], 1730: [[1729, 1620]], 1746: [,, { 1620: 1747 }], 1747: [[1746, 1620]], 1749: [,, { 1620: 1728 }], 1750: [, 230], 1751: [, 230], 1752: [, 230], 1753: [, 230], 1754: [, 230], 1755: [, 230], 1756: [, 230], 1759: [, 230], 1760: [, 230], 1761: [, 230], 1762: [, 230], 1763: [, 220], 1764: [, 230], 1767: [, 230], 1768: [, 230], 1770: [, 220], 1771: [, 230], 1772: [, 230], 1773: [, 220] },
1792: { 1809: [, 36], 1840: [, 230], 1841: [, 220], 1842: [, 230], 1843: [, 230], 1844: [, 220], 1845: [, 230], 1846: [, 230], 1847: [, 220], 1848: [, 220], 1849: [, 220], 1850: [, 230], 1851: [, 220], 1852: [, 220], 1853: [, 230], 1854: [, 220], 1855: [, 230], 1856: [, 230], 1857: [, 230], 1858: [, 220], 1859: [, 230], 1860: [, 220], 1861: [, 230], 1862: [, 220], 1863: [, 230], 1864: [, 220], 1865: [, 230], 1866: [, 230], 2027: [, 230], 2028: [, 230], 2029: [, 230], 2030: [, 230], 2031: [, 230], 2032: [, 230], 2033: [, 230], 2034: [, 220], 2035: [, 230] },
2048: { 2070: [, 230], 2071: [, 230], 2072: [, 230], 2073: [, 230], 2075: [, 230], 2076: [, 230], 2077: [, 230], 2078: [, 230], 2079: [, 230], 2080: [, 230], 2081: [, 230], 2082: [, 230], 2083: [, 230], 2085: [, 230], 2086: [, 230], 2087: [, 230], 2089: [, 230], 2090: [, 230], 2091: [, 230], 2092: [, 230], 2093: [, 230], 2137: [, 220], 2138: [, 220], 2139: [, 220], 2276: [, 230], 2277: [, 230], 2278: [, 220], 2279: [, 230], 2280: [, 230], 2281: [, 220], 2282: [, 230], 2283: [, 230], 2284: [, 230], 2285: [, 220], 2286: [, 220], 2287: [, 220], 2288: [, 27], 2289: [, 28], 2290: [, 29], 2291: [, 230], 2292: [, 230], 2293: [, 230], 2294: [, 220], 2295: [, 230], 2296: [, 230], 2297: [, 220], 2298: [, 220], 2299: [, 230], 2300: [, 230], 2301: [, 230], 2302: [, 230], 2303: [, 230] },
2304: { 2344: [,, { 2364: 2345 }], 2345: [[2344, 2364]], 2352: [,, { 2364: 2353 }], 2353: [[2352, 2364]], 2355: [,, { 2364: 2356 }], 2356: [[2355, 2364]], 2364: [, 7], 2381: [, 9], 2385: [, 230], 2386: [, 220], 2387: [, 230], 2388: [, 230], 2392: [[2325, 2364], 512], 2393: [[2326, 2364], 512], 2394: [[2327, 2364], 512], 2395: [[2332, 2364], 512], 2396: [[2337, 2364], 512], 2397: [[2338, 2364], 512], 2398: [[2347, 2364], 512], 2399: [[2351, 2364], 512], 2492: [, 7], 2503: [,, { 2494: 2507, 2519: 2508 }], 2507: [[2503, 2494]], 2508: [[2503, 2519]], 2509: [, 9], 2524: [[2465, 2492], 512], 2525: [[2466, 2492], 512], 2527: [[2479, 2492], 512] },
2560: { 2611: [[2610, 2620], 512], 2614: [[2616, 2620], 512], 2620: [, 7], 2637: [, 9], 2649: [[2582, 2620], 512], 2650: [[2583, 2620], 512], 2651: [[2588, 2620], 512], 2654: [[2603, 2620], 512], 2748: [, 7], 2765: [, 9], 68109: [, 220], 68111: [, 230], 68152: [, 230], 68153: [, 1], 68154: [, 220], 68159: [, 9], 68325: [, 230], 68326: [, 220] },
2816: { 2876: [, 7], 2887: [,, { 2878: 2891, 2902: 2888, 2903: 2892 }], 2888: [[2887, 2902]], 2891: [[2887, 2878]], 2892: [[2887, 2903]], 2893: [, 9], 2908: [[2849, 2876], 512], 2909: [[2850, 2876], 512], 2962: [,, { 3031: 2964 }], 2964: [[2962, 3031]], 3014: [,, { 3006: 3018, 3031: 3020 }], 3015: [,, { 3006: 3019 }], 3018: [[3014, 3006]], 3019: [[3015, 3006]], 3020: [[3014, 3031]], 3021: [, 9] },
3072: { 3142: [,, { 3158: 3144 }], 3144: [[3142, 3158]], 3149: [, 9], 3157: [, 84], 3158: [, 91], 3260: [, 7], 3263: [,, { 3285: 3264 }], 3264: [[3263, 3285]], 3270: [,, { 3266: 3274, 3285: 3271, 3286: 3272 }], 3271: [[3270, 3285]], 3272: [[3270, 3286]], 3274: [[3270, 3266],, { 3285: 3275 }], 3275: [[3274, 3285]], 3277: [, 9] },
3328: { 3398: [,, { 3390: 3402, 3415: 3404 }], 3399: [,, { 3390: 3403 }], 3402: [[3398, 3390]], 3403: [[3399, 3390]], 3404: [[3398, 3415]], 3405: [, 9], 3530: [, 9], 3545: [,, { 3530: 3546, 3535: 3548, 3551: 3550 }], 3546: [[3545, 3530]], 3548: [[3545, 3535],, { 3530: 3549 }], 3549: [[3548, 3530]], 3550: [[3545, 3551]] },
3584: { 3635: [[3661, 3634], 256], 3640: [, 103], 3641: [, 103], 3642: [, 9], 3656: [, 107], 3657: [, 107], 3658: [, 107], 3659: [, 107], 3763: [[3789, 3762], 256], 3768: [, 118], 3769: [, 118], 3784: [, 122], 3785: [, 122], 3786: [, 122], 3787: [, 122], 3804: [[3755, 3737], 256], 3805: [[3755, 3745], 256] },
3840: { 3852: [[3851], 256], 3864: [, 220], 3865: [, 220], 3893: [, 220], 3895: [, 220], 3897: [, 216], 3907: [[3906, 4023], 512], 3917: [[3916, 4023], 512], 3922: [[3921, 4023], 512], 3927: [[3926, 4023], 512], 3932: [[3931, 4023], 512], 3945: [[3904, 4021], 512], 3953: [, 129], 3954: [, 130], 3955: [[3953, 3954], 512], 3956: [, 132], 3957: [[3953, 3956], 512], 3958: [[4018, 3968], 512], 3959: [[4018, 3969], 256], 3960: [[4019, 3968], 512], 3961: [[4019, 3969], 256], 3962: [, 130], 3963: [, 130], 3964: [, 130], 3965: [, 130], 3968: [, 130], 3969: [[3953, 3968], 512], 3970: [, 230], 3971: [, 230], 3972: [, 9], 3974: [, 230], 3975: [, 230], 3987: [[3986, 4023], 512], 3997: [[3996, 4023], 512], 4002: [[4001, 4023], 512], 4007: [[4006, 4023], 512], 4012: [[4011, 4023], 512], 4025: [[3984, 4021], 512], 4038: [, 220] },
4096: { 4133: [,, { 4142: 4134 }], 4134: [[4133, 4142]], 4151: [, 7], 4153: [, 9], 4154: [, 9], 4237: [, 220], 4348: [[4316], 256], 69702: [, 9], 69759: [, 9], 69785: [,, { 69818: 69786 }], 69786: [[69785, 69818]], 69787: [,, { 69818: 69788 }], 69788: [[69787, 69818]], 69797: [,, { 69818: 69803 }], 69803: [[69797, 69818]], 69817: [, 9], 69818: [, 7] },
4352: { 69888: [, 230], 69889: [, 230], 69890: [, 230], 69934: [[69937, 69927]], 69935: [[69938, 69927]], 69937: [,, { 69927: 69934 }], 69938: [,, { 69927: 69935 }], 69939: [, 9], 69940: [, 9], 70003: [, 7], 70080: [, 9] },
4608: { 70197: [, 9], 70198: [, 7], 70377: [, 7], 70378: [, 9] },
4864: { 4957: [, 230], 4958: [, 230], 4959: [, 230], 70460: [, 7], 70471: [,, { 70462: 70475, 70487: 70476 }], 70475: [[70471, 70462]], 70476: [[70471, 70487]], 70477: [, 9], 70502: [, 230], 70503: [, 230], 70504: [, 230], 70505: [, 230], 70506: [, 230], 70507: [, 230], 70508: [, 230], 70512: [, 230], 70513: [, 230], 70514: [, 230], 70515: [, 230], 70516: [, 230] },
5120: { 70841: [,, { 70832: 70844, 70842: 70843, 70845: 70846 }], 70843: [[70841, 70842]], 70844: [[70841, 70832]], 70846: [[70841, 70845]], 70850: [, 9], 70851: [, 7] },
5376: { 71096: [,, { 71087: 71098 }], 71097: [,, { 71087: 71099 }], 71098: [[71096, 71087]], 71099: [[71097, 71087]], 71103: [, 9], 71104: [, 7] },
5632: { 71231: [, 9], 71350: [, 9], 71351: [, 7] },
5888: { 5908: [, 9], 5940: [, 9], 6098: [, 9], 6109: [, 230] },
6144: { 6313: [, 228] },
6400: { 6457: [, 222], 6458: [, 230], 6459: [, 220] },
6656: { 6679: [, 230], 6680: [, 220], 6752: [, 9], 6773: [, 230], 6774: [, 230], 6775: [, 230], 6776: [, 230], 6777: [, 230], 6778: [, 230], 6779: [, 230], 6780: [, 230], 6783: [, 220], 6832: [, 230], 6833: [, 230], 6834: [, 230], 6835: [, 230], 6836: [, 230], 6837: [, 220], 6838: [, 220], 6839: [, 220], 6840: [, 220], 6841: [, 220], 6842: [, 220], 6843: [, 230], 6844: [, 230], 6845: [, 220] },
6912: { 6917: [,, { 6965: 6918 }], 6918: [[6917, 6965]], 6919: [,, { 6965: 6920 }], 6920: [[6919, 6965]], 6921: [,, { 6965: 6922 }], 6922: [[6921, 6965]], 6923: [,, { 6965: 6924 }], 6924: [[6923, 6965]], 6925: [,, { 6965: 6926 }], 6926: [[6925, 6965]], 6929: [,, { 6965: 6930 }], 6930: [[6929, 6965]], 6964: [, 7], 6970: [,, { 6965: 6971 }], 6971: [[6970, 6965]], 6972: [,, { 6965: 6973 }], 6973: [[6972, 6965]], 6974: [,, { 6965: 6976 }], 6975: [,, { 6965: 6977 }], 6976: [[6974, 6965]], 6977: [[6975, 6965]], 6978: [,, { 6965: 6979 }], 6979: [[6978, 6965]], 6980: [, 9], 7019: [, 230], 7020: [, 220], 7021: [, 230], 7022: [, 230], 7023: [, 230], 7024: [, 230], 7025: [, 230], 7026: [, 230], 7027: [, 230], 7082: [, 9], 7083: [, 9], 7142: [, 7], 7154: [, 9], 7155: [, 9] },
7168: { 7223: [, 7], 7376: [, 230], 7377: [, 230], 7378: [, 230], 7380: [, 1], 7381: [, 220], 7382: [, 220], 7383: [, 220], 7384: [, 220], 7385: [, 220], 7386: [, 230], 7387: [, 230], 7388: [, 220], 7389: [, 220], 7390: [, 220], 7391: [, 220], 7392: [, 230], 7394: [, 1], 7395: [, 1], 7396: [, 1], 7397: [, 1], 7398: [, 1], 7399: [, 1], 7400: [, 1], 7405: [, 220], 7412: [, 230], 7416: [, 230], 7417: [, 230] },
7424: { 7468: [[65], 256], 7469: [[198], 256], 7470: [[66], 256], 7472: [[68], 256], 7473: [[69], 256], 7474: [[398], 256], 7475: [[71], 256], 7476: [[72], 256], 7477: [[73], 256], 7478: [[74], 256], 7479: [[75], 256], 7480: [[76], 256], 7481: [[77], 256], 7482: [[78], 256], 7484: [[79], 256], 7485: [[546], 256], 7486: [[80], 256], 7487: [[82], 256], 7488: [[84], 256], 7489: [[85], 256], 7490: [[87], 256], 7491: [[97], 256], 7492: [[592], 256], 7493: [[593], 256], 7494: [[7426], 256], 7495: [[98], 256], 7496: [[100], 256], 7497: [[101], 256], 7498: [[601], 256], 7499: [[603], 256], 7500: [[604], 256], 7501: [[103], 256], 7503: [[107], 256], 7504: [[109], 256], 7505: [[331], 256], 7506: [[111], 256], 7507: [[596], 256], 7508: [[7446], 256], 7509: [[7447], 256], 7510: [[112], 256], 7511: [[116], 256], 7512: [[117], 256], 7513: [[7453], 256], 7514: [[623], 256], 7515: [[118], 256], 7516: [[7461], 256], 7517: [[946], 256], 7518: [[947], 256], 7519: [[948], 256], 7520: [[966], 256], 7521: [[967], 256], 7522: [[105], 256], 7523: [[114], 256], 7524: [[117], 256], 7525: [[118], 256], 7526: [[946], 256], 7527: [[947], 256], 7528: [[961], 256], 7529: [[966], 256], 7530: [[967], 256], 7544: [[1085], 256], 7579: [[594], 256], 7580: [[99], 256], 7581: [[597], 256], 7582: [[240], 256], 7583: [[604], 256], 7584: [[102], 256], 7585: [[607], 256], 7586: [[609], 256], 7587: [[613], 256], 7588: [[616], 256], 7589: [[617], 256], 7590: [[618], 256], 7591: [[7547], 256], 7592: [[669], 256], 7593: [[621], 256], 7594: [[7557], 256], 7595: [[671], 256], 7596: [[625], 256], 7597: [[624], 256], 7598: [[626], 256], 7599: [[627], 256], 7600: [[628], 256], 7601: [[629], 256], 7602: [[632], 256], 7603: [[642], 256], 7604: [[643], 256], 7605: [[427], 256], 7606: [[649], 256], 7607: [[650], 256], 7608: [[7452], 256], 7609: [[651], 256], 7610: [[652], 256], 7611: [[122], 256], 7612: [[656], 256], 7613: [[657], 256], 7614: [[658], 256], 7615: [[952], 256], 7616: [, 230], 7617: [, 230], 7618: [, 220], 7619: [, 230], 7620: [, 230], 7621: [, 230], 7622: [, 230], 7623: [, 230], 7624: [, 230], 7625: [, 230], 7626: [, 220], 7627: [, 230], 7628: [, 230], 7629: [, 234], 7630: [, 214], 7631: [, 220], 7632: [, 202], 7633: [, 230], 7634: [, 230], 7635: [, 230], 7636: [, 230], 7637: [, 230], 7638: [, 230], 7639: [, 230], 7640: [, 230], 7641: [, 230], 7642: [, 230], 7643: [, 230], 7644: [, 230], 7645: [, 230], 7646: [, 230], 7647: [, 230], 7648: [, 230], 7649: [, 230], 7650: [, 230], 7651: [, 230], 7652: [, 230], 7653: [, 230], 7654: [, 230], 7655: [, 230], 7656: [, 230], 7657: [, 230], 7658: [, 230], 7659: [, 230], 7660: [, 230], 7661: [, 230], 7662: [, 230], 7663: [, 230], 7664: [, 230], 7665: [, 230], 7666: [, 230], 7667: [, 230], 7668: [, 230], 7669: [, 230], 7676: [, 233], 7677: [, 220], 7678: [, 230], 7679: [, 220] },
7680: { 7680: [[65, 805]], 7681: [[97, 805]], 7682: [[66, 775]], 7683: [[98, 775]], 7684: [[66, 803]], 7685: [[98, 803]], 7686: [[66, 817]], 7687: [[98, 817]], 7688: [[199, 769]], 7689: [[231, 769]], 7690: [[68, 775]], 7691: [[100, 775]], 7692: [[68, 803]], 7693: [[100, 803]], 7694: [[68, 817]], 7695: [[100, 817]], 7696: [[68, 807]], 7697: [[100, 807]], 7698: [[68, 813]], 7699: [[100, 813]], 7700: [[274, 768]], 7701: [[275, 768]], 7702: [[274, 769]], 7703: [[275, 769]], 7704: [[69, 813]], 7705: [[101, 813]], 7706: [[69, 816]], 7707: [[101, 816]], 7708: [[552, 774]], 7709: [[553, 774]], 7710: [[70, 775]], 7711: [[102, 775]], 7712: [[71, 772]], 7713: [[103, 772]], 7714: [[72, 775]], 7715: [[104, 775]], 7716: [[72, 803]], 7717: [[104, 803]], 7718: [[72, 776]], 7719: [[104, 776]], 7720: [[72, 807]], 7721: [[104, 807]], 7722: [[72, 814]], 7723: [[104, 814]], 7724: [[73, 816]], 7725: [[105, 816]], 7726: [[207, 769]], 7727: [[239, 769]], 7728: [[75, 769]], 7729: [[107, 769]], 7730: [[75, 803]], 7731: [[107, 803]], 7732: [[75, 817]], 7733: [[107, 817]], 7734: [[76, 803],, { 772: 7736 }], 7735: [[108, 803],, { 772: 7737 }], 7736: [[7734, 772]], 7737: [[7735, 772]], 7738: [[76, 817]], 7739: [[108, 817]], 7740: [[76, 813]], 7741: [[108, 813]], 7742: [[77, 769]], 7743: [[109, 769]], 7744: [[77, 775]], 7745: [[109, 775]], 7746: [[77, 803]], 7747: [[109, 803]], 7748: [[78, 775]], 7749: [[110, 775]], 7750: [[78, 803]], 7751: [[110, 803]], 7752: [[78, 817]], 7753: [[110, 817]], 7754: [[78, 813]], 7755: [[110, 813]], 7756: [[213, 769]], 7757: [[245, 769]], 7758: [[213, 776]], 7759: [[245, 776]], 7760: [[332, 768]], 7761: [[333, 768]], 7762: [[332, 769]], 7763: [[333, 769]], 7764: [[80, 769]], 7765: [[112, 769]], 7766: [[80, 775]], 7767: [[112, 775]], 7768: [[82, 775]], 7769: [[114, 775]], 7770: [[82, 803],, { 772: 7772 }], 7771: [[114, 803],, { 772: 7773 }], 7772: [[7770, 772]], 7773: [[7771, 772]], 7774: [[82, 817]], 7775: [[114, 817]], 7776: [[83, 775]], 7777: [[115, 775]], 7778: [[83, 803],, { 775: 7784 }], 7779: [[115, 803],, { 775: 7785 }], 7780: [[346, 775]], 7781: [[347, 775]], 7782: [[352, 775]], 7783: [[353, 775]], 7784: [[7778, 775]], 7785: [[7779, 775]], 7786: [[84, 775]], 7787: [[116, 775]], 7788: [[84, 803]], 7789: [[116, 803]], 7790: [[84, 817]], 7791: [[116, 817]], 7792: [[84, 813]], 7793: [[116, 813]], 7794: [[85, 804]], 7795: [[117, 804]], 7796: [[85, 816]], 7797: [[117, 816]], 7798: [[85, 813]], 7799: [[117, 813]], 7800: [[360, 769]], 7801: [[361, 769]], 7802: [[362, 776]], 7803: [[363, 776]], 7804: [[86, 771]], 7805: [[118, 771]], 7806: [[86, 803]], 7807: [[118, 803]], 7808: [[87, 768]], 7809: [[119, 768]], 7810: [[87, 769]], 7811: [[119, 769]], 7812: [[87, 776]], 7813: [[119, 776]], 7814: [[87, 775]], 7815: [[119, 775]], 7816: [[87, 803]], 7817: [[119, 803]], 7818: [[88, 775]], 7819: [[120, 775]], 7820: [[88, 776]], 7821: [[120, 776]], 7822: [[89, 775]], 7823: [[121, 775]], 7824: [[90, 770]], 7825: [[122, 770]], 7826: [[90, 803]], 7827: [[122, 803]], 7828: [[90, 817]], 7829: [[122, 817]], 7830: [[104, 817]], 7831: [[116, 776]], 7832: [[119, 778]], 7833: [[121, 778]], 7834: [[97, 702], 256], 7835: [[383, 775]], 7840: [[65, 803],, { 770: 7852, 774: 7862 }], 7841: [[97, 803],, { 770: 7853, 774: 7863 }], 7842: [[65, 777]], 7843: [[97, 777]], 7844: [[194, 769]], 7845: [[226, 769]], 7846: [[194, 768]], 7847: [[226, 768]], 7848: [[194, 777]], 7849: [[226, 777]], 7850: [[194, 771]], 7851: [[226, 771]], 7852: [[7840, 770]], 7853: [[7841, 770]], 7854: [[258, 769]], 7855: [[259, 769]], 7856: [[258, 768]], 7857: [[259, 768]], 7858: [[258, 777]], 7859: [[259, 777]], 7860: [[258, 771]], 7861: [[259, 771]], 7862: [[7840, 774]], 7863: [[7841, 774]], 7864: [[69, 803],, { 770: 7878 }], 7865: [[101, 803],, { 770: 7879 }], 7866: [[69, 777]], 7867: [[101, 777]], 7868: [[69, 771]], 7869: [[101, 771]], 7870: [[202, 769]], 7871: [[234, 769]], 7872: [[202, 768]], 7873: [[234, 768]], 7874: [[202, 777]], 7875: [[234, 777]], 7876: [[202, 771]], 7877: [[234, 771]], 7878: [[7864, 770]], 7879: [[7865, 770]], 7880: [[73, 777]], 7881: [[105, 777]], 7882: [[73, 803]], 7883: [[105, 803]], 7884: [[79, 803],, { 770: 7896 }], 7885: [[111, 803],, { 770: 7897 }], 7886: [[79, 777]], 7887: [[111, 777]], 7888: [[212, 769]], 7889: [[244, 769]], 7890: [[212, 768]], 7891: [[244, 768]], 7892: [[212, 777]], 7893: [[244, 777]], 7894: [[212, 771]], 7895: [[244, 771]], 7896: [[7884, 770]], 7897: [[7885, 770]], 7898: [[416, 769]], 7899: [[417, 769]], 7900: [[416, 768]], 7901: [[417, 768]], 7902: [[416, 777]], 7903: [[417, 777]], 7904: [[416, 771]], 7905: [[417, 771]], 7906: [[416, 803]], 7907: [[417, 803]], 7908: [[85, 803]], 7909: [[117, 803]], 7910: [[85, 777]], 7911: [[117, 777]], 7912: [[431, 769]], 7913: [[432, 769]], 7914: [[431, 768]], 7915: [[432, 768]], 7916: [[431, 777]], 7917: [[432, 777]], 7918: [[431, 771]], 7919: [[432, 771]], 7920: [[431, 803]], 7921: [[432, 803]], 7922: [[89, 768]], 7923: [[121, 768]], 7924: [[89, 803]], 7925: [[121, 803]], 7926: [[89, 777]], 7927: [[121, 777]], 7928: [[89, 771]], 7929: [[121, 771]] },
7936: { 7936: [[945, 787],, { 768: 7938, 769: 7940, 834: 7942, 837: 8064 }], 7937: [[945, 788],, { 768: 7939, 769: 7941, 834: 7943, 837: 8065 }], 7938: [[7936, 768],, { 837: 8066 }], 7939: [[7937, 768],, { 837: 8067 }], 7940: [[7936, 769],, { 837: 8068 }], 7941: [[7937, 769],, { 837: 8069 }], 7942: [[7936, 834],, { 837: 8070 }], 7943: [[7937, 834],, { 837: 8071 }], 7944: [[913, 787],, { 768: 7946, 769: 7948, 834: 7950, 837: 8072 }], 7945: [[913, 788],, { 768: 7947, 769: 7949, 834: 7951, 837: 8073 }], 7946: [[7944, 768],, { 837: 8074 }], 7947: [[7945, 768],, { 837: 8075 }], 7948: [[7944, 769],, { 837: 8076 }], 7949: [[7945, 769],, { 837: 8077 }], 7950: [[7944, 834],, { 837: 8078 }], 7951: [[7945, 834],, { 837: 8079 }], 7952: [[949, 787],, { 768: 7954, 769: 7956 }], 7953: [[949, 788],, { 768: 7955, 769: 7957 }], 7954: [[7952, 768]], 7955: [[7953, 768]], 7956: [[7952, 769]], 7957: [[7953, 769]], 7960: [[917, 787],, { 768: 7962, 769: 7964 }], 7961: [[917, 788],, { 768: 7963, 769: 7965 }], 7962: [[7960, 768]], 7963: [[7961, 768]], 7964: [[7960, 769]], 7965: [[7961, 769]], 7968: [[951, 787],, { 768: 7970, 769: 7972, 834: 7974, 837: 8080 }], 7969: [[951, 788],, { 768: 7971, 769: 7973, 834: 7975, 837: 8081 }], 7970: [[7968, 768],, { 837: 8082 }], 7971: [[7969, 768],, { 837: 8083 }], 7972: [[7968, 769],, { 837: 8084 }], 7973: [[7969, 769],, { 837: 8085 }], 7974: [[7968, 834],, { 837: 8086 }], 7975: [[7969, 834],, { 837: 8087 }], 7976: [[919, 787],, { 768: 7978, 769: 7980, 834: 7982, 837: 8088 }], 7977: [[919, 788],, { 768: 7979, 769: 7981, 834: 7983, 837: 8089 }], 7978: [[7976, 768],, { 837: 8090 }], 7979: [[7977, 768],, { 837: 8091 }], 7980: [[7976, 769],, { 837: 8092 }], 7981: [[7977, 769],, { 837: 8093 }], 7982: [[7976, 834],, { 837: 8094 }], 7983: [[7977, 834],, { 837: 8095 }], 7984: [[953, 787],, { 768: 7986, 769: 7988, 834: 7990 }], 7985: [[953, 788],, { 768: 7987, 769: 7989, 834: 7991 }], 7986: [[7984, 768]], 7987: [[7985, 768]], 7988: [[7984, 769]], 7989: [[7985, 769]], 7990: [[7984, 834]], 7991: [[7985, 834]], 7992: [[921, 787],, { 768: 7994, 769: 7996, 834: 7998 }], 7993: [[921, 788],, { 768: 7995, 769: 7997, 834: 7999 }], 7994: [[7992, 768]], 7995: [[7993, 768]], 7996: [[7992, 769]], 7997: [[7993, 769]], 7998: [[7992, 834]], 7999: [[7993, 834]], 8000: [[959, 787],, { 768: 8002, 769: 8004 }], 8001: [[959, 788],, { 768: 8003, 769: 8005 }], 8002: [[8000, 768]], 8003: [[8001, 768]], 8004: [[8000, 769]], 8005: [[8001, 769]], 8008: [[927, 787],, { 768: 8010, 769: 8012 }], 8009: [[927, 788],, { 768: 8011, 769: 8013 }], 8010: [[8008, 768]], 8011: [[8009, 768]], 8012: [[8008, 769]], 8013: [[8009, 769]], 8016: [[965, 787],, { 768: 8018, 769: 8020, 834: 8022 }], 8017: [[965, 788],, { 768: 8019, 769: 8021, 834: 8023 }], 8018: [[8016, 768]], 8019: [[8017, 768]], 8020: [[8016, 769]], 8021: [[8017, 769]], 8022: [[8016, 834]], 8023: [[8017, 834]], 8025: [[933, 788],, { 768: 8027, 769: 8029, 834: 8031 }], 8027: [[8025, 768]], 8029: [[8025, 769]], 8031: [[8025, 834]], 8032: [[969, 787],, { 768: 8034, 769: 8036, 834: 8038, 837: 8096 }], 8033: [[969, 788],, { 768: 8035, 769: 8037, 834: 8039, 837: 8097 }], 8034: [[8032, 768],, { 837: 8098 }], 8035: [[8033, 768],, { 837: 8099 }], 8036: [[8032, 769],, { 837: 8100 }], 8037: [[8033, 769],, { 837: 8101 }], 8038: [[8032, 834],, { 837: 8102 }], 8039: [[8033, 834],, { 837: 8103 }], 8040: [[937, 787],, { 768: 8042, 769: 8044, 834: 8046, 837: 8104 }], 8041: [[937, 788],, { 768: 8043, 769: 8045, 834: 8047, 837: 8105 }], 8042: [[8040, 768],, { 837: 8106 }], 8043: [[8041, 768],, { 837: 8107 }], 8044: [[8040, 769],, { 837: 8108 }], 8045: [[8041, 769],, { 837: 8109 }], 8046: [[8040, 834],, { 837: 8110 }], 8047: [[8041, 834],, { 837: 8111 }], 8048: [[945, 768],, { 837: 8114 }], 8049: [[940]], 8050: [[949, 768]], 8051: [[941]], 8052: [[951, 768],, { 837: 8130 }], 8053: [[942]], 8054: [[953, 768]], 8055: [[943]], 8056: [[959, 768]], 8057: [[972]], 8058: [[965, 768]], 8059: [[973]], 8060: [[969, 768],, { 837: 8178 }], 8061: [[974]], 8064: [[7936, 837]], 8065: [[7937, 837]], 8066: [[7938, 837]], 8067: [[7939, 837]], 8068: [[7940, 837]], 8069: [[7941, 837]], 8070: [[7942, 837]], 8071: [[7943, 837]], 8072: [[7944, 837]], 8073: [[7945, 837]], 8074: [[7946, 837]], 8075: [[7947, 837]], 8076: [[7948, 837]], 8077: [[7949, 837]], 8078: [[7950, 837]], 8079: [[7951, 837]], 8080: [[7968, 837]], 8081: [[7969, 837]], 8082: [[7970, 837]], 8083: [[7971, 837]], 8084: [[7972, 837]], 8085: [[7973, 837]], 8086: [[7974, 837]], 8087: [[7975, 837]], 8088: [[7976, 837]], 8089: [[7977, 837]], 8090: [[7978, 837]], 8091: [[7979, 837]], 8092: [[7980, 837]], 8093: [[7981, 837]], 8094: [[7982, 837]], 8095: [[7983, 837]], 8096: [[8032, 837]], 8097: [[8033, 837]], 8098: [[8034, 837]], 8099: [[8035, 837]], 8100: [[8036, 837]], 8101: [[8037, 837]], 8102: [[8038, 837]], 8103: [[8039, 837]], 8104: [[8040, 837]], 8105: [[8041, 837]], 8106: [[8042, 837]], 8107: [[8043, 837]], 8108: [[8044, 837]], 8109: [[8045, 837]], 8110: [[8046, 837]], 8111: [[8047, 837]], 8112: [[945, 774]], 8113: [[945, 772]], 8114: [[8048, 837]], 8115: [[945, 837]], 8116: [[940, 837]], 8118: [[945, 834],, { 837: 8119 }], 8119: [[8118, 837]], 8120: [[913, 774]], 8121: [[913, 772]], 8122: [[913, 768]], 8123: [[902]], 8124: [[913, 837]], 8125: [[32, 787], 256], 8126: [[953]], 8127: [[32, 787], 256, { 768: 8141, 769: 8142, 834: 8143 }], 8128: [[32, 834], 256], 8129: [[168, 834]], 8130: [[8052, 837]], 8131: [[951, 837]], 8132: [[942, 837]], 8134: [[951, 834],, { 837: 8135 }], 8135: [[8134, 837]], 8136: [[917, 768]], 8137: [[904]], 8138: [[919, 768]], 8139: [[905]], 8140: [[919, 837]], 8141: [[8127, 768]], 8142: [[8127, 769]], 8143: [[8127, 834]], 8144: [[953, 774]], 8145: [[953, 772]], 8146: [[970, 768]], 8147: [[912]], 8150: [[953, 834]], 8151: [[970, 834]], 8152: [[921, 774]], 8153: [[921, 772]], 8154: [[921, 768]], 8155: [[906]], 8157: [[8190, 768]], 8158: [[8190, 769]], 8159: [[8190, 834]], 8160: [[965, 774]], 8161: [[965, 772]], 8162: [[971, 768]], 8163: [[944]], 8164: [[961, 787]], 8165: [[961, 788]], 8166: [[965, 834]], 8167: [[971, 834]], 8168: [[933, 774]], 8169: [[933, 772]], 8170: [[933, 768]], 8171: [[910]], 8172: [[929, 788]], 8173: [[168, 768]], 8174: [[901]], 8175: [[96]], 8178: [[8060, 837]], 8179: [[969, 837]], 8180: [[974, 837]], 8182: [[969, 834],, { 837: 8183 }], 8183: [[8182, 837]], 8184: [[927, 768]], 8185: [[908]], 8186: [[937, 768]], 8187: [[911]], 8188: [[937, 837]], 8189: [[180]], 8190: [[32, 788], 256, { 768: 8157, 769: 8158, 834: 8159 }] },
8192: { 8192: [[8194]], 8193: [[8195]], 8194: [[32], 256], 8195: [[32], 256], 8196: [[32], 256], 8197: [[32], 256], 8198: [[32], 256], 8199: [[32], 256], 8200: [[32], 256], 8201: [[32], 256], 8202: [[32], 256], 8209: [[8208], 256], 8215: [[32, 819], 256], 8228: [[46], 256], 8229: [[46, 46], 256], 8230: [[46, 46, 46], 256], 8239: [[32], 256], 8243: [[8242, 8242], 256], 8244: [[8242, 8242, 8242], 256], 8246: [[8245, 8245], 256], 8247: [[8245, 8245, 8245], 256], 8252: [[33, 33], 256], 8254: [[32, 773], 256], 8263: [[63, 63], 256], 8264: [[63, 33], 256], 8265: [[33, 63], 256], 8279: [[8242, 8242, 8242, 8242], 256], 8287: [[32], 256], 8304: [[48], 256], 8305: [[105], 256], 8308: [[52], 256], 8309: [[53], 256], 8310: [[54], 256], 8311: [[55], 256], 8312: [[56], 256], 8313: [[57], 256], 8314: [[43], 256], 8315: [[8722], 256], 8316: [[61], 256], 8317: [[40], 256], 8318: [[41], 256], 8319: [[110], 256], 8320: [[48], 256], 8321: [[49], 256], 8322: [[50], 256], 8323: [[51], 256], 8324: [[52], 256], 8325: [[53], 256], 8326: [[54], 256], 8327: [[55], 256], 8328: [[56], 256], 8329: [[57], 256], 8330: [[43], 256], 8331: [[8722], 256], 8332: [[61], 256], 8333: [[40], 256], 8334: [[41], 256], 8336: [[97], 256], 8337: [[101], 256], 8338: [[111], 256], 8339: [[120], 256], 8340: [[601], 256], 8341: [[104], 256], 8342: [[107], 256], 8343: [[108], 256], 8344: [[109], 256], 8345: [[110], 256], 8346: [[112], 256], 8347: [[115], 256], 8348: [[116], 256], 8360: [[82, 115], 256], 8400: [, 230], 8401: [, 230], 8402: [, 1], 8403: [, 1], 8404: [, 230], 8405: [, 230], 8406: [, 230], 8407: [, 230], 8408: [, 1], 8409: [, 1], 8410: [, 1], 8411: [, 230], 8412: [, 230], 8417: [, 230], 8421: [, 1], 8422: [, 1], 8423: [, 230], 8424: [, 220], 8425: [, 230], 8426: [, 1], 8427: [, 1], 8428: [, 220], 8429: [, 220], 8430: [, 220], 8431: [, 220], 8432: [, 230] },
8448: { 8448: [[97, 47, 99], 256], 8449: [[97, 47, 115], 256], 8450: [[67], 256], 8451: [[176, 67], 256], 8453: [[99, 47, 111], 256], 8454: [[99, 47, 117], 256], 8455: [[400], 256], 8457: [[176, 70], 256], 8458: [[103], 256], 8459: [[72], 256], 8460: [[72], 256], 8461: [[72], 256], 8462: [[104], 256], 8463: [[295], 256], 8464: [[73], 256], 8465: [[73], 256], 8466: [[76], 256], 8467: [[108], 256], 8469: [[78], 256], 8470: [[78, 111], 256], 8473: [[80], 256], 8474: [[81], 256], 8475: [[82], 256], 8476: [[82], 256], 8477: [[82], 256], 8480: [[83, 77], 256], 8481: [[84, 69, 76], 256], 8482: [[84, 77], 256], 8484: [[90], 256], 8486: [[937]], 8488: [[90], 256], 8490: [[75]], 8491: [[197]], 8492: [[66], 256], 8493: [[67], 256], 8495: [[101], 256], 8496: [[69], 256], 8497: [[70], 256], 8499: [[77], 256], 8500: [[111], 256], 8501: [[1488], 256], 8502: [[1489], 256], 8503: [[1490], 256], 8504: [[1491], 256], 8505: [[105], 256], 8507: [[70, 65, 88], 256], 8508: [[960], 256], 8509: [[947], 256], 8510: [[915], 256], 8511: [[928], 256], 8512: [[8721], 256], 8517: [[68], 256], 8518: [[100], 256], 8519: [[101], 256], 8520: [[105], 256], 8521: [[106], 256], 8528: [[49, 8260, 55], 256], 8529: [[49, 8260, 57], 256], 8530: [[49, 8260, 49, 48], 256], 8531: [[49, 8260, 51], 256], 8532: [[50, 8260, 51], 256], 8533: [[49, 8260, 53], 256], 8534: [[50, 8260, 53], 256], 8535: [[51, 8260, 53], 256], 8536: [[52, 8260, 53], 256], 8537: [[49, 8260, 54], 256], 8538: [[53, 8260, 54], 256], 8539: [[49, 8260, 56], 256], 8540: [[51, 8260, 56], 256], 8541: [[53, 8260, 56], 256], 8542: [[55, 8260, 56], 256], 8543: [[49, 8260], 256], 8544: [[73], 256], 8545: [[73, 73], 256], 8546: [[73, 73, 73], 256], 8547: [[73, 86], 256], 8548: [[86], 256], 8549: [[86, 73], 256], 8550: [[86, 73, 73], 256], 8551: [[86, 73, 73, 73], 256], 8552: [[73, 88], 256], 8553: [[88], 256], 8554: [[88, 73], 256], 8555: [[88, 73, 73], 256], 8556: [[76], 256], 8557: [[67], 256], 8558: [[68], 256], 8559: [[77], 256], 8560: [[105], 256], 8561: [[105, 105], 256], 8562: [[105, 105, 105], 256], 8563: [[105, 118], 256], 8564: [[118], 256], 8565: [[118, 105], 256], 8566: [[118, 105, 105], 256], 8567: [[118, 105, 105, 105], 256], 8568: [[105, 120], 256], 8569: [[120], 256], 8570: [[120, 105], 256], 8571: [[120, 105, 105], 256], 8572: [[108], 256], 8573: [[99], 256], 8574: [[100], 256], 8575: [[109], 256], 8585: [[48, 8260, 51], 256], 8592: [,, { 824: 8602 }], 8594: [,, { 824: 8603 }], 8596: [,, { 824: 8622 }], 8602: [[8592, 824]], 8603: [[8594, 824]], 8622: [[8596, 824]], 8653: [[8656, 824]], 8654: [[8660, 824]], 8655: [[8658, 824]], 8656: [,, { 824: 8653 }], 8658: [,, { 824: 8655 }], 8660: [,, { 824: 8654 }] },
8704: { 8707: [,, { 824: 8708 }], 8708: [[8707, 824]], 8712: [,, { 824: 8713 }], 8713: [[8712, 824]], 8715: [,, { 824: 8716 }], 8716: [[8715, 824]], 8739: [,, { 824: 8740 }], 8740: [[8739, 824]], 8741: [,, { 824: 8742 }], 8742: [[8741, 824]], 8748: [[8747, 8747], 256], 8749: [[8747, 8747, 8747], 256], 8751: [[8750, 8750], 256], 8752: [[8750, 8750, 8750], 256], 8764: [,, { 824: 8769 }], 8769: [[8764, 824]], 8771: [,, { 824: 8772 }], 8772: [[8771, 824]], 8773: [,, { 824: 8775 }], 8775: [[8773, 824]], 8776: [,, { 824: 8777 }], 8777: [[8776, 824]], 8781: [,, { 824: 8813 }], 8800: [[61, 824]], 8801: [,, { 824: 8802 }], 8802: [[8801, 824]], 8804: [,, { 824: 8816 }], 8805: [,, { 824: 8817 }], 8813: [[8781, 824]], 8814: [[60, 824]], 8815: [[62, 824]], 8816: [[8804, 824]], 8817: [[8805, 824]], 8818: [,, { 824: 8820 }], 8819: [,, { 824: 8821 }], 8820: [[8818, 824]], 8821: [[8819, 824]], 8822: [,, { 824: 8824 }], 8823: [,, { 824: 8825 }], 8824: [[8822, 824]], 8825: [[8823, 824]], 8826: [,, { 824: 8832 }], 8827: [,, { 824: 8833 }], 8828: [,, { 824: 8928 }], 8829: [,, { 824: 8929 }], 8832: [[8826, 824]], 8833: [[8827, 824]], 8834: [,, { 824: 8836 }], 8835: [,, { 824: 8837 }], 8836: [[8834, 824]], 8837: [[8835, 824]], 8838: [,, { 824: 8840 }], 8839: [,, { 824: 8841 }], 8840: [[8838, 824]], 8841: [[8839, 824]], 8849: [,, { 824: 8930 }], 8850: [,, { 824: 8931 }], 8866: [,, { 824: 8876 }], 8872: [,, { 824: 8877 }], 8873: [,, { 824: 8878 }], 8875: [,, { 824: 8879 }], 8876: [[8866, 824]], 8877: [[8872, 824]], 8878: [[8873, 824]], 8879: [[8875, 824]], 8882: [,, { 824: 8938 }], 8883: [,, { 824: 8939 }], 8884: [,, { 824: 8940 }], 8885: [,, { 824: 8941 }], 8928: [[8828, 824]], 8929: [[8829, 824]], 8930: [[8849, 824]], 8931: [[8850, 824]], 8938: [[8882, 824]], 8939: [[8883, 824]], 8940: [[8884, 824]], 8941: [[8885, 824]] },
8960: { 9001: [[12296]], 9002: [[12297]] },
9216: { 9312: [[49], 256], 9313: [[50], 256], 9314: [[51], 256], 9315: [[52], 256], 9316: [[53], 256], 9317: [[54], 256], 9318: [[55], 256], 9319: [[56], 256], 9320: [[57], 256], 9321: [[49, 48], 256], 9322: [[49, 49], 256], 9323: [[49, 50], 256], 9324: [[49, 51], 256], 9325: [[49, 52], 256], 9326: [[49, 53], 256], 9327: [[49, 54], 256], 9328: [[49, 55], 256], 9329: [[49, 56], 256], 9330: [[49, 57], 256], 9331: [[50, 48], 256], 9332: [[40, 49, 41], 256], 9333: [[40, 50, 41], 256], 9334: [[40, 51, 41], 256], 9335: [[40, 52, 41], 256], 9336: [[40, 53, 41], 256], 9337: [[40, 54, 41], 256], 9338: [[40, 55, 41], 256], 9339: [[40, 56, 41], 256], 9340: [[40, 57, 41], 256], 9341: [[40, 49, 48, 41], 256], 9342: [[40, 49, 49, 41], 256], 9343: [[40, 49, 50, 41], 256], 9344: [[40, 49, 51, 41], 256], 9345: [[40, 49, 52, 41], 256], 9346: [[40, 49, 53, 41], 256], 9347: [[40, 49, 54, 41], 256], 9348: [[40, 49, 55, 41], 256], 9349: [[40, 49, 56, 41], 256], 9350: [[40, 49, 57, 41], 256], 9351: [[40, 50, 48, 41], 256], 9352: [[49, 46], 256], 9353: [[50, 46], 256], 9354: [[51, 46], 256], 9355: [[52, 46], 256], 9356: [[53, 46], 256], 9357: [[54, 46], 256], 9358: [[55, 46], 256], 9359: [[56, 46], 256], 9360: [[57, 46], 256], 9361: [[49, 48, 46], 256], 9362: [[49, 49, 46], 256], 9363: [[49, 50, 46], 256], 9364: [[49, 51, 46], 256], 9365: [[49, 52, 46], 256], 9366: [[49, 53, 46], 256], 9367: [[49, 54, 46], 256], 9368: [[49, 55, 46], 256], 9369: [[49, 56, 46], 256], 9370: [[49, 57, 46], 256], 9371: [[50, 48, 46], 256], 9372: [[40, 97, 41], 256], 9373: [[40, 98, 41], 256], 9374: [[40, 99, 41], 256], 9375: [[40, 100, 41], 256], 9376: [[40, 101, 41], 256], 9377: [[40, 102, 41], 256], 9378: [[40, 103, 41], 256], 9379: [[40, 104, 41], 256], 9380: [[40, 105, 41], 256], 9381: [[40, 106, 41], 256], 9382: [[40, 107, 41], 256], 9383: [[40, 108, 41], 256], 9384: [[40, 109, 41], 256], 9385: [[40, 110, 41], 256], 9386: [[40, 111, 41], 256], 9387: [[40, 112, 41], 256], 9388: [[40, 113, 41], 256], 9389: [[40, 114, 41], 256], 9390: [[40, 115, 41], 256], 9391: [[40, 116, 41], 256], 9392: [[40, 117, 41], 256], 9393: [[40, 118, 41], 256], 9394: [[40, 119, 41], 256], 9395: [[40, 120, 41], 256], 9396: [[40, 121, 41], 256], 9397: [[40, 122, 41], 256], 9398: [[65], 256], 9399: [[66], 256], 9400: [[67], 256], 9401: [[68], 256], 9402: [[69], 256], 9403: [[70], 256], 9404: [[71], 256], 9405: [[72], 256], 9406: [[73], 256], 9407: [[74], 256], 9408: [[75], 256], 9409: [[76], 256], 9410: [[77], 256], 9411: [[78], 256], 9412: [[79], 256], 9413: [[80], 256], 9414: [[81], 256], 9415: [[82], 256], 9416: [[83], 256], 9417: [[84], 256], 9418: [[85], 256], 9419: [[86], 256], 9420: [[87], 256], 9421: [[88], 256], 9422: [[89], 256], 9423: [[90], 256], 9424: [[97], 256], 9425: [[98], 256], 9426: [[99], 256], 9427: [[100], 256], 9428: [[101], 256], 9429: [[102], 256], 9430: [[103], 256], 9431: [[104], 256], 9432: [[105], 256], 9433: [[106], 256], 9434: [[107], 256], 9435: [[108], 256], 9436: [[109], 256], 9437: [[110], 256], 9438: [[111], 256], 9439: [[112], 256], 9440: [[113], 256], 9441: [[114], 256], 9442: [[115], 256], 9443: [[116], 256], 9444: [[117], 256], 9445: [[118], 256], 9446: [[119], 256], 9447: [[120], 256], 9448: [[121], 256], 9449: [[122], 256], 9450: [[48], 256] },
10752: { 10764: [[8747, 8747, 8747, 8747], 256], 10868: [[58, 58, 61], 256], 10869: [[61, 61], 256], 10870: [[61, 61, 61], 256], 10972: [[10973, 824], 512] },
11264: { 11388: [[106], 256], 11389: [[86], 256], 11503: [, 230], 11504: [, 230], 11505: [, 230] },
11520: { 11631: [[11617], 256], 11647: [, 9], 11744: [, 230], 11745: [, 230], 11746: [, 230], 11747: [, 230], 11748: [, 230], 11749: [, 230], 11750: [, 230], 11751: [, 230], 11752: [, 230], 11753: [, 230], 11754: [, 230], 11755: [, 230], 11756: [, 230], 11757: [, 230], 11758: [, 230], 11759: [, 230], 11760: [, 230], 11761: [, 230], 11762: [, 230], 11763: [, 230], 11764: [, 230], 11765: [, 230], 11766: [, 230], 11767: [, 230], 11768: [, 230], 11769: [, 230], 11770: [, 230], 11771: [, 230], 11772: [, 230], 11773: [, 230], 11774: [, 230], 11775: [, 230] },
11776: { 11935: [[27597], 256], 12019: [[40863], 256] },
12032: { 12032: [[19968], 256], 12033: [[20008], 256], 12034: [[20022], 256], 12035: [[20031], 256], 12036: [[20057], 256], 12037: [[20101], 256], 12038: [[20108], 256], 12039: [[20128], 256], 12040: [[20154], 256], 12041: [[20799], 256], 12042: [[20837], 256], 12043: [[20843], 256], 12044: [[20866], 256], 12045: [[20886], 256], 12046: [[20907], 256], 12047: [[20960], 256], 12048: [[20981], 256], 12049: [[20992], 256], 12050: [[21147], 256], 12051: [[21241], 256], 12052: [[21269], 256], 12053: [[21274], 256], 12054: [[21304], 256], 12055: [[21313], 256], 12056: [[21340], 256], 12057: [[21353], 256], 12058: [[21378], 256], 12059: [[21430], 256], 12060: [[21448], 256], 12061: [[21475], 256], 12062: [[22231], 256], 12063: [[22303], 256], 12064: [[22763], 256], 12065: [[22786], 256], 12066: [[22794], 256], 12067: [[22805], 256], 12068: [[22823], 256], 12069: [[22899], 256], 12070: [[23376], 256], 12071: [[23424], 256], 12072: [[23544], 256], 12073: [[23567], 256], 12074: [[23586], 256], 12075: [[23608], 256], 12076: [[23662], 256], 12077: [[23665], 256], 12078: [[24027], 256], 12079: [[24037], 256], 12080: [[24049], 256], 12081: [[24062], 256], 12082: [[24178], 256], 12083: [[24186], 256], 12084: [[24191], 256], 12085: [[24308], 256], 12086: [[24318], 256], 12087: [[24331], 256], 12088: [[24339], 256], 12089: [[24400], 256], 12090: [[24417], 256], 12091: [[24435], 256], 12092: [[24515], 256], 12093: [[25096], 256], 12094: [[25142], 256], 12095: [[25163], 256], 12096: [[25903], 256], 12097: [[25908], 256], 12098: [[25991], 256], 12099: [[26007], 256], 12100: [[26020], 256], 12101: [[26041], 256], 12102: [[26080], 256], 12103: [[26085], 256], 12104: [[26352], 256], 12105: [[26376], 256], 12106: [[26408], 256], 12107: [[27424], 256], 12108: [[27490], 256], 12109: [[27513], 256], 12110: [[27571], 256], 12111: [[27595], 256], 12112: [[27604], 256], 12113: [[27611], 256], 12114: [[27663], 256], 12115: [[27668], 256], 12116: [[27700], 256], 12117: [[28779], 256], 12118: [[29226], 256], 12119: [[29238], 256], 12120: [[29243], 256], 12121: [[29247], 256], 12122: [[29255], 256], 12123: [[29273], 256], 12124: [[29275], 256], 12125: [[29356], 256], 12126: [[29572], 256], 12127: [[29577], 256], 12128: [[29916], 256], 12129: [[29926], 256], 12130: [[29976], 256], 12131: [[29983], 256], 12132: [[29992], 256], 12133: [[30000], 256], 12134: [[30091], 256], 12135: [[30098], 256], 12136: [[30326], 256], 12137: [[30333], 256], 12138: [[30382], 256], 12139: [[30399], 256], 12140: [[30446], 256], 12141: [[30683], 256], 12142: [[30690], 256], 12143: [[30707], 256], 12144: [[31034], 256], 12145: [[31160], 256], 12146: [[31166], 256], 12147: [[31348], 256], 12148: [[31435], 256], 12149: [[31481], 256], 12150: [[31859], 256], 12151: [[31992], 256], 12152: [[32566], 256], 12153: [[32593], 256], 12154: [[32650], 256], 12155: [[32701], 256], 12156: [[32769], 256], 12157: [[32780], 256], 12158: [[32786], 256], 12159: [[32819], 256], 12160: [[32895], 256], 12161: [[32905], 256], 12162: [[33251], 256], 12163: [[33258], 256], 12164: [[33267], 256], 12165: [[33276], 256], 12166: [[33292], 256], 12167: [[33307], 256], 12168: [[33311], 256], 12169: [[33390], 256], 12170: [[33394], 256], 12171: [[33400], 256], 12172: [[34381], 256], 12173: [[34411], 256], 12174: [[34880], 256], 12175: [[34892], 256], 12176: [[34915], 256], 12177: [[35198], 256], 12178: [[35211], 256], 12179: [[35282], 256], 12180: [[35328], 256], 12181: [[35895], 256], 12182: [[35910], 256], 12183: [[35925], 256], 12184: [[35960], 256], 12185: [[35997], 256], 12186: [[36196], 256], 12187: [[36208], 256], 12188: [[36275], 256], 12189: [[36523], 256], 12190: [[36554], 256], 12191: [[36763], 256], 12192: [[36784], 256], 12193: [[36789], 256], 12194: [[37009], 256], 12195: [[37193], 256], 12196: [[37318], 256], 12197: [[37324], 256], 12198: [[37329], 256], 12199: [[38263], 256], 12200: [[38272], 256], 12201: [[38428], 256], 12202: [[38582], 256], 12203: [[38585], 256], 12204: [[38632], 256], 12205: [[38737], 256], 12206: [[38750], 256], 12207: [[38754], 256], 12208: [[38761], 256], 12209: [[38859], 256], 12210: [[38893], 256], 12211: [[38899], 256], 12212: [[38913], 256], 12213: [[39080], 256], 12214: [[39131], 256], 12215: [[39135], 256], 12216: [[39318], 256], 12217: [[39321], 256], 12218: [[39340], 256], 12219: [[39592], 256], 12220: [[39640], 256], 12221: [[39647], 256], 12222: [[39717], 256], 12223: [[39727], 256], 12224: [[39730], 256], 12225: [[39740], 256], 12226: [[39770], 256], 12227: [[40165], 256], 12228: [[40565], 256], 12229: [[40575], 256], 12230: [[40613], 256], 12231: [[40635], 256], 12232: [[40643], 256], 12233: [[40653], 256], 12234: [[40657], 256], 12235: [[40697], 256], 12236: [[40701], 256], 12237: [[40718], 256], 12238: [[40723], 256], 12239: [[40736], 256], 12240: [[40763], 256], 12241: [[40778], 256], 12242: [[40786], 256], 12243: [[40845], 256], 12244: [[40860], 256], 12245: [[40864], 256] },
12288: { 12288: [[32], 256], 12330: [, 218], 12331: [, 228], 12332: [, 232], 12333: [, 222], 12334: [, 224], 12335: [, 224], 12342: [[12306], 256], 12344: [[21313], 256], 12345: [[21316], 256], 12346: [[21317], 256], 12358: [,, { 12441: 12436 }], 12363: [,, { 12441: 12364 }], 12364: [[12363, 12441]], 12365: [,, { 12441: 12366 }], 12366: [[12365, 12441]], 12367: [,, { 12441: 12368 }], 12368: [[12367, 12441]], 12369: [,, { 12441: 12370 }], 12370: [[12369, 12441]], 12371: [,, { 12441: 12372 }], 12372: [[12371, 12441]], 12373: [,, { 12441: 12374 }], 12374: [[12373, 12441]], 12375: [,, { 12441: 12376 }], 12376: [[12375, 12441]], 12377: [,, { 12441: 12378 }], 12378: [[12377, 12441]], 12379: [,, { 12441: 12380 }], 12380: [[12379, 12441]], 12381: [,, { 12441: 12382 }], 12382: [[12381, 12441]], 12383: [,, { 12441: 12384 }], 12384: [[12383, 12441]], 12385: [,, { 12441: 12386 }], 12386: [[12385, 12441]], 12388: [,, { 12441: 12389 }], 12389: [[12388, 12441]], 12390: [,, { 12441: 12391 }], 12391: [[12390, 12441]], 12392: [,, { 12441: 12393 }], 12393: [[12392, 12441]], 12399: [,, { 12441: 12400, 12442: 12401 }], 12400: [[12399, 12441]], 12401: [[12399, 12442]], 12402: [,, { 12441: 12403, 12442: 12404 }], 12403: [[12402, 12441]], 12404: [[12402, 12442]], 12405: [,, { 12441: 12406, 12442: 12407 }], 12406: [[12405, 12441]], 12407: [[12405, 12442]], 12408: [,, { 12441: 12409, 12442: 12410 }], 12409: [[12408, 12441]], 12410: [[12408, 12442]], 12411: [,, { 12441: 12412, 12442: 12413 }], 12412: [[12411, 12441]], 12413: [[12411, 12442]], 12436: [[12358, 12441]], 12441: [, 8], 12442: [, 8], 12443: [[32, 12441], 256], 12444: [[32, 12442], 256], 12445: [,, { 12441: 12446 }], 12446: [[12445, 12441]], 12447: [[12424, 12426], 256], 12454: [,, { 12441: 12532 }], 12459: [,, { 12441: 12460 }], 12460: [[12459, 12441]], 12461: [,, { 12441: 12462 }], 12462: [[12461, 12441]], 12463: [,, { 12441: 12464 }], 12464: [[12463, 12441]], 12465: [,, { 12441: 12466 }], 12466: [[12465, 12441]], 12467: [,, { 12441: 12468 }], 12468: [[12467, 12441]], 12469: [,, { 12441: 12470 }], 12470: [[12469, 12441]], 12471: [,, { 12441: 12472 }], 12472: [[12471, 12441]], 12473: [,, { 12441: 12474 }], 12474: [[12473, 12441]], 12475: [,, { 12441: 12476 }], 12476: [[12475, 12441]], 12477: [,, { 12441: 12478 }], 12478: [[12477, 12441]], 12479: [,, { 12441: 12480 }], 12480: [[12479, 12441]], 12481: [,, { 12441: 12482 }], 12482: [[12481, 12441]], 12484: [,, { 12441: 12485 }], 12485: [[12484, 12441]], 12486: [,, { 12441: 12487 }], 12487: [[12486, 12441]], 12488: [,, { 12441: 12489 }], 12489: [[12488, 12441]], 12495: [,, { 12441: 12496, 12442: 12497 }], 12496: [[12495, 12441]], 12497: [[12495, 12442]], 12498: [,, { 12441: 12499, 12442: 12500 }], 12499: [[12498, 12441]], 12500: [[12498, 12442]], 12501: [,, { 12441: 12502, 12442: 12503 }], 12502: [[12501, 12441]], 12503: [[12501, 12442]], 12504: [,, { 12441: 12505, 12442: 12506 }], 12505: [[12504, 12441]], 12506: [[12504, 12442]], 12507: [,, { 12441: 12508, 12442: 12509 }], 12508: [[12507, 12441]], 12509: [[12507, 12442]], 12527: [,, { 12441: 12535 }], 12528: [,, { 12441: 12536 }], 12529: [,, { 12441: 12537 }], 12530: [,, { 12441: 12538 }], 12532: [[12454, 12441]], 12535: [[12527, 12441]], 12536: [[12528, 12441]], 12537: [[12529, 12441]], 12538: [[12530, 12441]], 12541: [,, { 12441: 12542 }], 12542: [[12541, 12441]], 12543: [[12467, 12488], 256] },
12544: { 12593: [[4352], 256], 12594: [[4353], 256], 12595: [[4522], 256], 12596: [[4354], 256], 12597: [[4524], 256], 12598: [[4525], 256], 12599: [[4355], 256], 12600: [[4356], 256], 12601: [[4357], 256], 12602: [[4528], 256], 12603: [[4529], 256], 12604: [[4530], 256], 12605: [[4531], 256], 12606: [[4532], 256], 12607: [[4533], 256], 12608: [[4378], 256], 12609: [[4358], 256], 12610: [[4359], 256], 12611: [[4360], 256], 12612: [[4385], 256], 12613: [[4361], 256], 12614: [[4362], 256], 12615: [[4363], 256], 12616: [[4364], 256], 12617: [[4365], 256], 12618: [[4366], 256], 12619: [[4367], 256], 12620: [[4368], 256], 12621: [[4369], 256], 12622: [[4370], 256], 12623: [[4449], 256], 12624: [[4450], 256], 12625: [[4451], 256], 12626: [[4452], 256], 12627: [[4453], 256], 12628: [[4454], 256], 12629: [[4455], 256], 12630: [[4456], 256], 12631: [[4457], 256], 12632: [[4458], 256], 12633: [[4459], 256], 12634: [[4460], 256], 12635: [[4461], 256], 12636: [[4462], 256], 12637: [[4463], 256], 12638: [[4464], 256], 12639: [[4465], 256], 12640: [[4466], 256], 12641: [[4467], 256], 12642: [[4468], 256], 12643: [[4469], 256], 12644: [[4448], 256], 12645: [[4372], 256], 12646: [[4373], 256], 12647: [[4551], 256], 12648: [[4552], 256], 12649: [[4556], 256], 12650: [[4558], 256], 12651: [[4563], 256], 12652: [[4567], 256], 12653: [[4569], 256], 12654: [[4380], 256], 12655: [[4573], 256], 12656: [[4575], 256], 12657: [[4381], 256], 12658: [[4382], 256], 12659: [[4384], 256], 12660: [[4386], 256], 12661: [[4387], 256], 12662: [[4391], 256], 12663: [[4393], 256], 12664: [[4395], 256], 12665: [[4396], 256], 12666: [[4397], 256], 12667: [[4398], 256], 12668: [[4399], 256], 12669: [[4402], 256], 12670: [[4406], 256], 12671: [[4416], 256], 12672: [[4423], 256], 12673: [[4428], 256], 12674: [[4593], 256], 12675: [[4594], 256], 12676: [[4439], 256], 12677: [[4440], 256], 12678: [[4441], 256], 12679: [[4484], 256], 12680: [[4485], 256], 12681: [[4488], 256], 12682: [[4497], 256], 12683: [[4498], 256], 12684: [[4500], 256], 12685: [[4510], 256], 12686: [[4513], 256], 12690: [[19968], 256], 12691: [[20108], 256], 12692: [[19977], 256], 12693: [[22235], 256], 12694: [[19978], 256], 12695: [[20013], 256], 12696: [[19979], 256], 12697: [[30002], 256], 12698: [[20057], 256], 12699: [[19993], 256], 12700: [[19969], 256], 12701: [[22825], 256], 12702: [[22320], 256], 12703: [[20154], 256] },
12800: { 12800: [[40, 4352, 41], 256], 12801: [[40, 4354, 41], 256], 12802: [[40, 4355, 41], 256], 12803: [[40, 4357, 41], 256], 12804: [[40, 4358, 41], 256], 12805: [[40, 4359, 41], 256], 12806: [[40, 4361, 41], 256], 12807: [[40, 4363, 41], 256], 12808: [[40, 4364, 41], 256], 12809: [[40, 4366, 41], 256], 12810: [[40, 4367, 41], 256], 12811: [[40, 4368, 41], 256], 12812: [[40, 4369, 41], 256], 12813: [[40, 4370, 41], 256], 12814: [[40, 4352, 4449, 41], 256], 12815: [[40, 4354, 4449, 41], 256], 12816: [[40, 4355, 4449, 41], 256], 12817: [[40, 4357, 4449, 41], 256], 12818: [[40, 4358, 4449, 41], 256], 12819: [[40, 4359, 4449, 41], 256], 12820: [[40, 4361, 4449, 41], 256], 12821: [[40, 4363, 4449, 41], 256], 12822: [[40, 4364, 4449, 41], 256], 12823: [[40, 4366, 4449, 41], 256], 12824: [[40, 4367, 4449, 41], 256], 12825: [[40, 4368, 4449, 41], 256], 12826: [[40, 4369, 4449, 41], 256], 12827: [[40, 4370, 4449, 41], 256], 12828: [[40, 4364, 4462, 41], 256], 12829: [[40, 4363, 4457, 4364, 4453, 4523, 41], 256], 12830: [[40, 4363, 4457, 4370, 4462, 41], 256], 12832: [[40, 19968, 41], 256], 12833: [[40, 20108, 41], 256], 12834: [[40, 19977, 41], 256], 12835: [[40, 22235, 41], 256], 12836: [[40, 20116, 41], 256], 12837: [[40, 20845, 41], 256], 12838: [[40, 19971, 41], 256], 12839: [[40, 20843, 41], 256], 12840: [[40, 20061, 41], 256], 12841: [[40, 21313, 41], 256], 12842: [[40, 26376, 41], 256], 12843: [[40, 28779, 41], 256], 12844: [[40, 27700, 41], 256], 12845: [[40, 26408, 41], 256], 12846: [[40, 37329, 41], 256], 12847: [[40, 22303, 41], 256], 12848: [[40, 26085, 41], 256], 12849: [[40, 26666, 41], 256], 12850: [[40, 26377, 41], 256], 12851: [[40, 31038, 41], 256], 12852: [[40, 21517, 41], 256], 12853: [[40, 29305, 41], 256], 12854: [[40, 36001, 41], 256], 12855: [[40, 31069, 41], 256], 12856: [[40, 21172, 41], 256], 12857: [[40, 20195, 41], 256], 12858: [[40, 21628, 41], 256], 12859: [[40, 23398, 41], 256], 12860: [[40, 30435, 41], 256], 12861: [[40, 20225, 41], 256], 12862: [[40, 36039, 41], 256], 12863: [[40, 21332, 41], 256], 12864: [[40, 31085, 41], 256], 12865: [[40, 20241, 41], 256], 12866: [[40, 33258, 41], 256], 12867: [[40, 33267, 41], 256], 12868: [[21839], 256], 12869: [[24188], 256], 12870: [[25991], 256], 12871: [[31631], 256], 12880: [[80, 84, 69], 256], 12881: [[50, 49], 256], 12882: [[50, 50], 256], 12883: [[50, 51], 256], 12884: [[50, 52], 256], 12885: [[50, 53], 256], 12886: [[50, 54], 256], 12887: [[50, 55], 256], 12888: [[50, 56], 256], 12889: [[50, 57], 256], 12890: [[51, 48], 256], 12891: [[51, 49], 256], 12892: [[51, 50], 256], 12893: [[51, 51], 256], 12894: [[51, 52], 256], 12895: [[51, 53], 256], 12896: [[4352], 256], 12897: [[4354], 256], 12898: [[4355], 256], 12899: [[4357], 256], 12900: [[4358], 256], 12901: [[4359], 256], 12902: [[4361], 256], 12903: [[4363], 256], 12904: [[4364], 256], 12905: [[4366], 256], 12906: [[4367], 256], 12907: [[4368], 256], 12908: [[4369], 256], 12909: [[4370], 256], 12910: [[4352, 4449], 256], 12911: [[4354, 4449], 256], 12912: [[4355, 4449], 256], 12913: [[4357, 4449], 256], 12914: [[4358, 4449], 256], 12915: [[4359, 4449], 256], 12916: [[4361, 4449], 256], 12917: [[4363, 4449], 256], 12918: [[4364, 4449], 256], 12919: [[4366, 4449], 256], 12920: [[4367, 4449], 256], 12921: [[4368, 4449], 256], 12922: [[4369, 4449], 256], 12923: [[4370, 4449], 256], 12924: [[4366, 4449, 4535, 4352, 4457], 256], 12925: [[4364, 4462, 4363, 4468], 256], 12926: [[4363, 4462], 256], 12928: [[19968], 256], 12929: [[20108], 256], 12930: [[19977], 256], 12931: [[22235], 256], 12932: [[20116], 256], 12933: [[20845], 256], 12934: [[19971], 256], 12935: [[20843], 256], 12936: [[20061], 256], 12937: [[21313], 256], 12938: [[26376], 256], 12939: [[28779], 256], 12940: [[27700], 256], 12941: [[26408], 256], 12942: [[37329], 256], 12943: [[22303], 256], 12944: [[26085], 256], 12945: [[26666], 256], 12946: [[26377], 256], 12947: [[31038], 256], 12948: [[21517], 256], 12949: [[29305], 256], 12950: [[36001], 256], 12951: [[31069], 256], 12952: [[21172], 256], 12953: [[31192], 256], 12954: [[30007], 256], 12955: [[22899], 256], 12956: [[36969], 256], 12957: [[20778], 256], 12958: [[21360], 256], 12959: [[27880], 256], 12960: [[38917], 256], 12961: [[20241], 256], 12962: [[20889], 256], 12963: [[27491], 256], 12964: [[19978], 256], 12965: [[20013], 256], 12966: [[19979], 256], 12967: [[24038], 256], 12968: [[21491], 256], 12969: [[21307], 256], 12970: [[23447], 256], 12971: [[23398], 256], 12972: [[30435], 256], 12973: [[20225], 256], 12974: [[36039], 256], 12975: [[21332], 256], 12976: [[22812], 256], 12977: [[51, 54], 256], 12978: [[51, 55], 256], 12979: [[51, 56], 256], 12980: [[51, 57], 256], 12981: [[52, 48], 256], 12982: [[52, 49], 256], 12983: [[52, 50], 256], 12984: [[52, 51], 256], 12985: [[52, 52], 256], 12986: [[52, 53], 256], 12987: [[52, 54], 256], 12988: [[52, 55], 256], 12989: [[52, 56], 256], 12990: [[52, 57], 256], 12991: [[53, 48], 256], 12992: [[49, 26376], 256], 12993: [[50, 26376], 256], 12994: [[51, 26376], 256], 12995: [[52, 26376], 256], 12996: [[53, 26376], 256], 12997: [[54, 26376], 256], 12998: [[55, 26376], 256], 12999: [[56, 26376], 256], 13000: [[57, 26376], 256], 13001: [[49, 48, 26376], 256], 13002: [[49, 49, 26376], 256], 13003: [[49, 50, 26376], 256], 13004: [[72, 103], 256], 13005: [[101, 114, 103], 256], 13006: [[101, 86], 256], 13007: [[76, 84, 68], 256], 13008: [[12450], 256], 13009: [[12452], 256], 13010: [[12454], 256], 13011: [[12456], 256], 13012: [[12458], 256], 13013: [[12459], 256], 13014: [[12461], 256], 13015: [[12463], 256], 13016: [[12465], 256], 13017: [[12467], 256], 13018: [[12469], 256], 13019: [[12471], 256], 13020: [[12473], 256], 13021: [[12475], 256], 13022: [[12477], 256], 13023: [[12479], 256], 13024: [[12481], 256], 13025: [[12484], 256], 13026: [[12486], 256], 13027: [[12488], 256], 13028: [[12490], 256], 13029: [[12491], 256], 13030: [[12492], 256], 13031: [[12493], 256], 13032: [[12494], 256], 13033: [[12495], 256], 13034: [[12498], 256], 13035: [[12501], 256], 13036: [[12504], 256], 13037: [[12507], 256], 13038: [[12510], 256], 13039: [[12511], 256], 13040: [[12512], 256], 13041: [[12513], 256], 13042: [[12514], 256], 13043: [[12516], 256], 13044: [[12518], 256], 13045: [[12520], 256], 13046: [[12521], 256], 13047: [[12522], 256], 13048: [[12523], 256], 13049: [[12524], 256], 13050: [[12525], 256], 13051: [[12527], 256], 13052: [[12528], 256], 13053: [[12529], 256], 13054: [[12530], 256] },
13056: { 13056: [[12450, 12497, 12540, 12488], 256], 13057: [[12450, 12523, 12501, 12449], 256], 13058: [[12450, 12531, 12506, 12450], 256], 13059: [[12450, 12540, 12523], 256], 13060: [[12452, 12491, 12531, 12464], 256], 13061: [[12452, 12531, 12481], 256], 13062: [[12454, 12457, 12531], 256], 13063: [[12456, 12473, 12463, 12540, 12489], 256], 13064: [[12456, 12540, 12459, 12540], 256], 13065: [[12458, 12531, 12473], 256], 13066: [[12458, 12540, 12512], 256], 13067: [[12459, 12452, 12522], 256], 13068: [[12459, 12521, 12483, 12488], 256], 13069: [[12459, 12525, 12522, 12540], 256], 13070: [[12460, 12525, 12531], 256], 13071: [[12460, 12531, 12510], 256], 13072: [[12462, 12460], 256], 13073: [[12462, 12491, 12540], 256], 13074: [[12461, 12517, 12522, 12540], 256], 13075: [[12462, 12523, 12480, 12540], 256], 13076: [[12461, 12525], 256], 13077: [[12461, 12525, 12464, 12521, 12512], 256], 13078: [[12461, 12525, 12513, 12540, 12488, 12523], 256], 13079: [[12461, 12525, 12527, 12483, 12488], 256], 13080: [[12464, 12521, 12512], 256], 13081: [[12464, 12521, 12512, 12488, 12531], 256], 13082: [[12463, 12523, 12476, 12452, 12525], 256], 13083: [[12463, 12525, 12540, 12493], 256], 13084: [[12465, 12540, 12473], 256], 13085: [[12467, 12523, 12490], 256], 13086: [[12467, 12540, 12509], 256], 13087: [[12469, 12452, 12463, 12523], 256], 13088: [[12469, 12531, 12481, 12540, 12512], 256], 13089: [[12471, 12522, 12531, 12464], 256], 13090: [[12475, 12531, 12481], 256], 13091: [[12475, 12531, 12488], 256], 13092: [[12480, 12540, 12473], 256], 13093: [[12487, 12471], 256], 13094: [[12489, 12523], 256], 13095: [[12488, 12531], 256], 13096: [[12490, 12494], 256], 13097: [[12494, 12483, 12488], 256], 13098: [[12495, 12452, 12484], 256], 13099: [[12497, 12540, 12475, 12531, 12488], 256], 13100: [[12497, 12540, 12484], 256], 13101: [[12496, 12540, 12524, 12523], 256], 13102: [[12500, 12450, 12473, 12488, 12523], 256], 13103: [[12500, 12463, 12523], 256], 13104: [[12500, 12467], 256], 13105: [[12499, 12523], 256], 13106: [[12501, 12449, 12521, 12483, 12489], 256], 13107: [[12501, 12451, 12540, 12488], 256], 13108: [[12502, 12483, 12471, 12455, 12523], 256], 13109: [[12501, 12521, 12531], 256], 13110: [[12504, 12463, 12479, 12540, 12523], 256], 13111: [[12506, 12477], 256], 13112: [[12506, 12491, 12498], 256], 13113: [[12504, 12523, 12484], 256], 13114: [[12506, 12531, 12473], 256], 13115: [[12506, 12540, 12472], 256], 13116: [[12505, 12540, 12479], 256], 13117: [[12509, 12452, 12531, 12488], 256], 13118: [[12508, 12523, 12488], 256], 13119: [[12507, 12531], 256], 13120: [[12509, 12531, 12489], 256], 13121: [[12507, 12540, 12523], 256], 13122: [[12507, 12540, 12531], 256], 13123: [[12510, 12452, 12463, 12525], 256], 13124: [[12510, 12452, 12523], 256], 13125: [[12510, 12483, 12495], 256], 13126: [[12510, 12523, 12463], 256], 13127: [[12510, 12531, 12471, 12519, 12531], 256], 13128: [[12511, 12463, 12525, 12531], 256], 13129: [[12511, 12522], 256], 13130: [[12511, 12522, 12496, 12540, 12523], 256], 13131: [[12513, 12460], 256], 13132: [[12513, 12460, 12488, 12531], 256], 13133: [[12513, 12540, 12488, 12523], 256], 13134: [[12516, 12540, 12489], 256], 13135: [[12516, 12540, 12523], 256], 13136: [[12518, 12450, 12531], 256], 13137: [[12522, 12483, 12488, 12523], 256], 13138: [[12522, 12521], 256], 13139: [[12523, 12500, 12540], 256], 13140: [[12523, 12540, 12502, 12523], 256], 13141: [[12524, 12512], 256], 13142: [[12524, 12531, 12488, 12466, 12531], 256], 13143: [[12527, 12483, 12488], 256], 13144: [[48, 28857], 256], 13145: [[49, 28857], 256], 13146: [[50, 28857], 256], 13147: [[51, 28857], 256], 13148: [[52, 28857], 256], 13149: [[53, 28857], 256], 13150: [[54, 28857], 256], 13151: [[55, 28857], 256], 13152: [[56, 28857], 256], 13153: [[57, 28857], 256], 13154: [[49, 48, 28857], 256], 13155: [[49, 49, 28857], 256], 13156: [[49, 50, 28857], 256], 13157: [[49, 51, 28857], 256], 13158: [[49, 52, 28857], 256], 13159: [[49, 53, 28857], 256], 13160: [[49, 54, 28857], 256], 13161: [[49, 55, 28857], 256], 13162: [[49, 56, 28857], 256], 13163: [[49, 57, 28857], 256], 13164: [[50, 48, 28857], 256], 13165: [[50, 49, 28857], 256], 13166: [[50, 50, 28857], 256], 13167: [[50, 51, 28857], 256], 13168: [[50, 52, 28857], 256], 13169: [[104, 80, 97], 256], 13170: [[100, 97], 256], 13171: [[65, 85], 256], 13172: [[98, 97, 114], 256], 13173: [[111, 86], 256], 13174: [[112, 99], 256], 13175: [[100, 109], 256], 13176: [[100, 109, 178], 256], 13177: [[100, 109, 179], 256], 13178: [[73, 85], 256], 13179: [[24179, 25104], 256], 13180: [[26157, 21644], 256], 13181: [[22823, 27491], 256], 13182: [[26126, 27835], 256], 13183: [[26666, 24335, 20250, 31038], 256], 13184: [[112, 65], 256], 13185: [[110, 65], 256], 13186: [[956, 65], 256], 13187: [[109, 65], 256], 13188: [[107, 65], 256], 13189: [[75, 66], 256], 13190: [[77, 66], 256], 13191: [[71, 66], 256], 13192: [[99, 97, 108], 256], 13193: [[107, 99, 97, 108], 256], 13194: [[112, 70], 256], 13195: [[110, 70], 256], 13196: [[956, 70], 256], 13197: [[956, 103], 256], 13198: [[109, 103], 256], 13199: [[107, 103], 256], 13200: [[72, 122], 256], 13201: [[107, 72, 122], 256], 13202: [[77, 72, 122], 256], 13203: [[71, 72, 122], 256], 13204: [[84, 72, 122], 256], 13205: [[956, 8467], 256], 13206: [[109, 8467], 256], 13207: [[100, 8467], 256], 13208: [[107, 8467], 256], 13209: [[102, 109], 256], 13210: [[110, 109], 256], 13211: [[956, 109], 256], 13212: [[109, 109], 256], 13213: [[99, 109], 256], 13214: [[107, 109], 256], 13215: [[109, 109, 178], 256], 13216: [[99, 109, 178], 256], 13217: [[109, 178], 256], 13218: [[107, 109, 178], 256], 13219: [[109, 109, 179], 256], 13220: [[99, 109, 179], 256], 13221: [[109, 179], 256], 13222: [[107, 109, 179], 256], 13223: [[109, 8725, 115], 256], 13224: [[109, 8725, 115, 178], 256], 13225: [[80, 97], 256], 13226: [[107, 80, 97], 256], 13227: [[77, 80, 97], 256], 13228: [[71, 80, 97], 256], 13229: [[114, 97, 100], 256], 13230: [[114, 97, 100, 8725, 115], 256], 13231: [[114, 97, 100, 8725, 115, 178], 256], 13232: [[112, 115], 256], 13233: [[110, 115], 256], 13234: [[956, 115], 256], 13235: [[109, 115], 256], 13236: [[112, 86], 256], 13237: [[110, 86], 256], 13238: [[956, 86], 256], 13239: [[109, 86], 256], 13240: [[107, 86], 256], 13241: [[77, 86], 256], 13242: [[112, 87], 256], 13243: [[110, 87], 256], 13244: [[956, 87], 256], 13245: [[109, 87], 256], 13246: [[107, 87], 256], 13247: [[77, 87], 256], 13248: [[107, 937], 256], 13249: [[77, 937], 256], 13250: [[97, 46, 109, 46], 256], 13251: [[66, 113], 256], 13252: [[99, 99], 256], 13253: [[99, 100], 256], 13254: [[67, 8725, 107, 103], 256], 13255: [[67, 111, 46], 256], 13256: [[100, 66], 256], 13257: [[71, 121], 256], 13258: [[104, 97], 256], 13259: [[72, 80], 256], 13260: [[105, 110], 256], 13261: [[75, 75], 256], 13262: [[75, 77], 256], 13263: [[107, 116], 256], 13264: [[108, 109], 256], 13265: [[108, 110], 256], 13266: [[108, 111, 103], 256], 13267: [[108, 120], 256], 13268: [[109, 98], 256], 13269: [[109, 105, 108], 256], 13270: [[109, 111, 108], 256], 13271: [[80, 72], 256], 13272: [[112, 46, 109, 46], 256], 13273: [[80, 80, 77], 256], 13274: [[80, 82], 256], 13275: [[115, 114], 256], 13276: [[83, 118], 256], 13277: [[87, 98], 256], 13278: [[86, 8725, 109], 256], 13279: [[65, 8725, 109], 256], 13280: [[49, 26085], 256], 13281: [[50, 26085], 256], 13282: [[51, 26085], 256], 13283: [[52, 26085], 256], 13284: [[53, 26085], 256], 13285: [[54, 26085], 256], 13286: [[55, 26085], 256], 13287: [[56, 26085], 256], 13288: [[57, 26085], 256], 13289: [[49, 48, 26085], 256], 13290: [[49, 49, 26085], 256], 13291: [[49, 50, 26085], 256], 13292: [[49, 51, 26085], 256], 13293: [[49, 52, 26085], 256], 13294: [[49, 53, 26085], 256], 13295: [[49, 54, 26085], 256], 13296: [[49, 55, 26085], 256], 13297: [[49, 56, 26085], 256], 13298: [[49, 57, 26085], 256], 13299: [[50, 48, 26085], 256], 13300: [[50, 49, 26085], 256], 13301: [[50, 50, 26085], 256], 13302: [[50, 51, 26085], 256], 13303: [[50, 52, 26085], 256], 13304: [[50, 53, 26085], 256], 13305: [[50, 54, 26085], 256], 13306: [[50, 55, 26085], 256], 13307: [[50, 56, 26085], 256], 13308: [[50, 57, 26085], 256], 13309: [[51, 48, 26085], 256], 13310: [[51, 49, 26085], 256], 13311: [[103, 97, 108], 256] },
27136: { 92912: [, 1], 92913: [, 1], 92914: [, 1], 92915: [, 1], 92916: [, 1] },
27392: { 92976: [, 230], 92977: [, 230], 92978: [, 230], 92979: [, 230], 92980: [, 230], 92981: [, 230], 92982: [, 230] },
42496: { 42607: [, 230], 42612: [, 230], 42613: [, 230], 42614: [, 230], 42615: [, 230], 42616: [, 230], 42617: [, 230], 42618: [, 230], 42619: [, 230], 42620: [, 230], 42621: [, 230], 42652: [[1098], 256], 42653: [[1100], 256], 42655: [, 230], 42736: [, 230], 42737: [, 230] },
42752: { 42864: [[42863], 256], 43000: [[294], 256], 43001: [[339], 256] },
43008: { 43014: [, 9], 43204: [, 9], 43232: [, 230], 43233: [, 230], 43234: [, 230], 43235: [, 230], 43236: [, 230], 43237: [, 230], 43238: [, 230], 43239: [, 230], 43240: [, 230], 43241: [, 230], 43242: [, 230], 43243: [, 230], 43244: [, 230], 43245: [, 230], 43246: [, 230], 43247: [, 230], 43248: [, 230], 43249: [, 230] },
43264: { 43307: [, 220], 43308: [, 220], 43309: [, 220], 43347: [, 9], 43443: [, 7], 43456: [, 9] },
43520: { 43696: [, 230], 43698: [, 230], 43699: [, 230], 43700: [, 220], 43703: [, 230], 43704: [, 230], 43710: [, 230], 43711: [, 230], 43713: [, 230], 43766: [, 9] },
43776: { 43868: [[42791], 256], 43869: [[43831], 256], 43870: [[619], 256], 43871: [[43858], 256], 44013: [, 9] },
48128: { 113822: [, 1] },
53504: { 119134: [[119127, 119141], 512], 119135: [[119128, 119141], 512], 119136: [[119135, 119150], 512], 119137: [[119135, 119151], 512], 119138: [[119135, 119152], 512], 119139: [[119135, 119153], 512], 119140: [[119135, 119154], 512], 119141: [, 216], 119142: [, 216], 119143: [, 1], 119144: [, 1], 119145: [, 1], 119149: [, 226], 119150: [, 216], 119151: [, 216], 119152: [, 216], 119153: [, 216], 119154: [, 216], 119163: [, 220], 119164: [, 220], 119165: [, 220], 119166: [, 220], 119167: [, 220], 119168: [, 220], 119169: [, 220], 119170: [, 220], 119173: [, 230], 119174: [, 230], 119175: [, 230], 119176: [, 230], 119177: [, 230], 119178: [, 220], 119179: [, 220], 119210: [, 230], 119211: [, 230], 119212: [, 230], 119213: [, 230], 119227: [[119225, 119141], 512], 119228: [[119226, 119141], 512], 119229: [[119227, 119150], 512], 119230: [[119228, 119150], 512], 119231: [[119227, 119151], 512], 119232: [[119228, 119151], 512] },
53760: { 119362: [, 230], 119363: [, 230], 119364: [, 230] },
54272: { 119808: [[65], 256], 119809: [[66], 256], 119810: [[67], 256], 119811: [[68], 256], 119812: [[69], 256], 119813: [[70], 256], 119814: [[71], 256], 119815: [[72], 256], 119816: [[73], 256], 119817: [[74], 256], 119818: [[75], 256], 119819: [[76], 256], 119820: [[77], 256], 119821: [[78], 256], 119822: [[79], 256], 119823: [[80], 256], 119824: [[81], 256], 119825: [[82], 256], 119826: [[83], 256], 119827: [[84], 256], 119828: [[85], 256], 119829: [[86], 256], 119830: [[87], 256], 119831: [[88], 256], 119832: [[89], 256], 119833: [[90], 256], 119834: [[97], 256], 119835: [[98], 256], 119836: [[99], 256], 119837: [[100], 256], 119838: [[101], 256], 119839: [[102], 256], 119840: [[103], 256], 119841: [[104], 256], 119842: [[105], 256], 119843: [[106], 256], 119844: [[107], 256], 119845: [[108], 256], 119846: [[109], 256], 119847: [[110], 256], 119848: [[111], 256], 119849: [[112], 256], 119850: [[113], 256], 119851: [[114], 256], 119852: [[115], 256], 119853: [[116], 256], 119854: [[117], 256], 119855: [[118], 256], 119856: [[119], 256], 119857: [[120], 256], 119858: [[121], 256], 119859: [[122], 256], 119860: [[65], 256], 119861: [[66], 256], 119862: [[67], 256], 119863: [[68], 256], 119864: [[69], 256], 119865: [[70], 256], 119866: [[71], 256], 119867: [[72], 256], 119868: [[73], 256], 119869: [[74], 256], 119870: [[75], 256], 119871: [[76], 256], 119872: [[77], 256], 119873: [[78], 256], 119874: [[79], 256], 119875: [[80], 256], 119876: [[81], 256], 119877: [[82], 256], 119878: [[83], 256], 119879: [[84], 256], 119880: [[85], 256], 119881: [[86], 256], 119882: [[87], 256], 119883: [[88], 256], 119884: [[89], 256], 119885: [[90], 256], 119886: [[97], 256], 119887: [[98], 256], 119888: [[99], 256], 119889: [[100], 256], 119890: [[101], 256], 119891: [[102], 256], 119892: [[103], 256], 119894: [[105], 256], 119895: [[106], 256], 119896: [[107], 256], 119897: [[108], 256], 119898: [[109], 256], 119899: [[110], 256], 119900: [[111], 256], 119901: [[112], 256], 119902: [[113], 256], 119903: [[114], 256], 119904: [[115], 256], 119905: [[116], 256], 119906: [[117], 256], 119907: [[118], 256], 119908: [[119], 256], 119909: [[120], 256], 119910: [[121], 256], 119911: [[122], 256], 119912: [[65], 256], 119913: [[66], 256], 119914: [[67], 256], 119915: [[68], 256], 119916: [[69], 256], 119917: [[70], 256], 119918: [[71], 256], 119919: [[72], 256], 119920: [[73], 256], 119921: [[74], 256], 119922: [[75], 256], 119923: [[76], 256], 119924: [[77], 256], 119925: [[78], 256], 119926: [[79], 256], 119927: [[80], 256], 119928: [[81], 256], 119929: [[82], 256], 119930: [[83], 256], 119931: [[84], 256], 119932: [[85], 256], 119933: [[86], 256], 119934: [[87], 256], 119935: [[88], 256], 119936: [[89], 256], 119937: [[90], 256], 119938: [[97], 256], 119939: [[98], 256], 119940: [[99], 256], 119941: [[100], 256], 119942: [[101], 256], 119943: [[102], 256], 119944: [[103], 256], 119945: [[104], 256], 119946: [[105], 256], 119947: [[106], 256], 119948: [[107], 256], 119949: [[108], 256], 119950: [[109], 256], 119951: [[110], 256], 119952: [[111], 256], 119953: [[112], 256], 119954: [[113], 256], 119955: [[114], 256], 119956: [[115], 256], 119957: [[116], 256], 119958: [[117], 256], 119959: [[118], 256], 119960: [[119], 256], 119961: [[120], 256], 119962: [[121], 256], 119963: [[122], 256], 119964: [[65], 256], 119966: [[67], 256], 119967: [[68], 256], 119970: [[71], 256], 119973: [[74], 256], 119974: [[75], 256], 119977: [[78], 256], 119978: [[79], 256], 119979: [[80], 256], 119980: [[81], 256], 119982: [[83], 256], 119983: [[84], 256], 119984: [[85], 256], 119985: [[86], 256], 119986: [[87], 256], 119987: [[88], 256], 119988: [[89], 256], 119989: [[90], 256], 119990: [[97], 256], 119991: [[98], 256], 119992: [[99], 256], 119993: [[100], 256], 119995: [[102], 256], 119997: [[104], 256], 119998: [[105], 256], 119999: [[106], 256], 120000: [[107], 256], 120001: [[108], 256], 120002: [[109], 256], 120003: [[110], 256], 120005: [[112], 256], 120006: [[113], 256], 120007: [[114], 256], 120008: [[115], 256], 120009: [[116], 256], 120010: [[117], 256], 120011: [[118], 256], 120012: [[119], 256], 120013: [[120], 256], 120014: [[121], 256], 120015: [[122], 256], 120016: [[65], 256], 120017: [[66], 256], 120018: [[67], 256], 120019: [[68], 256], 120020: [[69], 256], 120021: [[70], 256], 120022: [[71], 256], 120023: [[72], 256], 120024: [[73], 256], 120025: [[74], 256], 120026: [[75], 256], 120027: [[76], 256], 120028: [[77], 256], 120029: [[78], 256], 120030: [[79], 256], 120031: [[80], 256], 120032: [[81], 256], 120033: [[82], 256], 120034: [[83], 256], 120035: [[84], 256], 120036: [[85], 256], 120037: [[86], 256], 120038: [[87], 256], 120039: [[88], 256], 120040: [[89], 256], 120041: [[90], 256], 120042: [[97], 256], 120043: [[98], 256], 120044: [[99], 256], 120045: [[100], 256], 120046: [[101], 256], 120047: [[102], 256], 120048: [[103], 256], 120049: [[104], 256], 120050: [[105], 256], 120051: [[106], 256], 120052: [[107], 256], 120053: [[108], 256], 120054: [[109], 256], 120055: [[110], 256], 120056: [[111], 256], 120057: [[112], 256], 120058: [[113], 256], 120059: [[114], 256], 120060: [[115], 256], 120061: [[116], 256], 120062: [[117], 256], 120063: [[118], 256] },
54528: { 120064: [[119], 256], 120065: [[120], 256], 120066: [[121], 256], 120067: [[122], 256], 120068: [[65], 256], 120069: [[66], 256], 120071: [[68], 256], 120072: [[69], 256], 120073: [[70], 256], 120074: [[71], 256], 120077: [[74], 256], 120078: [[75], 256], 120079: [[76], 256], 120080: [[77], 256], 120081: [[78], 256], 120082: [[79], 256], 120083: [[80], 256], 120084: [[81], 256], 120086: [[83], 256], 120087: [[84], 256], 120088: [[85], 256], 120089: [[86], 256], 120090: [[87], 256], 120091: [[88], 256], 120092: [[89], 256], 120094: [[97], 256], 120095: [[98], 256], 120096: [[99], 256], 120097: [[100], 256], 120098: [[101], 256], 120099: [[102], 256], 120100: [[103], 256], 120101: [[104], 256], 120102: [[105], 256], 120103: [[106], 256], 120104: [[107], 256], 120105: [[108], 256], 120106: [[109], 256], 120107: [[110], 256], 120108: [[111], 256], 120109: [[112], 256], 120110: [[113], 256], 120111: [[114], 256], 120112: [[115], 256], 120113: [[116], 256], 120114: [[117], 256], 120115: [[118], 256], 120116: [[119], 256], 120117: [[120], 256], 120118: [[121], 256], 120119: [[122], 256], 120120: [[65], 256], 120121: [[66], 256], 120123: [[68], 256], 120124: [[69], 256], 120125: [[70], 256], 120126: [[71], 256], 120128: [[73], 256], 120129: [[74], 256], 120130: [[75], 256], 120131: [[76], 256], 120132: [[77], 256], 120134: [[79], 256], 120138: [[83], 256], 120139: [[84], 256], 120140: [[85], 256], 120141: [[86], 256], 120142: [[87], 256], 120143: [[88], 256], 120144: [[89], 256], 120146: [[97], 256], 120147: [[98], 256], 120148: [[99], 256], 120149: [[100], 256], 120150: [[101], 256], 120151: [[102], 256], 120152: [[103], 256], 120153: [[104], 256], 120154: [[105], 256], 120155: [[106], 256], 120156: [[107], 256], 120157: [[108], 256], 120158: [[109], 256], 120159: [[110], 256], 120160: [[111], 256], 120161: [[112], 256], 120162: [[113], 256], 120163: [[114], 256], 120164: [[115], 256], 120165: [[116], 256], 120166: [[117], 256], 120167: [[118], 256], 120168: [[119], 256], 120169: [[120], 256], 120170: [[121], 256], 120171: [[122], 256], 120172: [[65], 256], 120173: [[66], 256], 120174: [[67], 256], 120175: [[68], 256], 120176: [[69], 256], 120177: [[70], 256], 120178: [[71], 256], 120179: [[72], 256], 120180: [[73], 256], 120181: [[74], 256], 120182: [[75], 256], 120183: [[76], 256], 120184: [[77], 256], 120185: [[78], 256], 120186: [[79], 256], 120187: [[80], 256], 120188: [[81], 256], 120189: [[82], 256], 120190: [[83], 256], 120191: [[84], 256], 120192: [[85], 256], 120193: [[86], 256], 120194: [[87], 256], 120195: [[88], 256], 120196: [[89], 256], 120197: [[90], 256], 120198: [[97], 256], 120199: [[98], 256], 120200: [[99], 256], 120201: [[100], 256], 120202: [[101], 256], 120203: [[102], 256], 120204: [[103], 256], 120205: [[104], 256], 120206: [[105], 256], 120207: [[106], 256], 120208: [[107], 256], 120209: [[108], 256], 120210: [[109], 256], 120211: [[110], 256], 120212: [[111], 256], 120213: [[112], 256], 120214: [[113], 256], 120215: [[114], 256], 120216: [[115], 256], 120217: [[116], 256], 120218: [[117], 256], 120219: [[118], 256], 120220: [[119], 256], 120221: [[120], 256], 120222: [[121], 256], 120223: [[122], 256], 120224: [[65], 256], 120225: [[66], 256], 120226: [[67], 256], 120227: [[68], 256], 120228: [[69], 256], 120229: [[70], 256], 120230: [[71], 256], 120231: [[72], 256], 120232: [[73], 256], 120233: [[74], 256], 120234: [[75], 256], 120235: [[76], 256], 120236: [[77], 256], 120237: [[78], 256], 120238: [[79], 256], 120239: [[80], 256], 120240: [[81], 256], 120241: [[82], 256], 120242: [[83], 256], 120243: [[84], 256], 120244: [[85], 256], 120245: [[86], 256], 120246: [[87], 256], 120247: [[88], 256], 120248: [[89], 256], 120249: [[90], 256], 120250: [[97], 256], 120251: [[98], 256], 120252: [[99], 256], 120253: [[100], 256], 120254: [[101], 256], 120255: [[102], 256], 120256: [[103], 256], 120257: [[104], 256], 120258: [[105], 256], 120259: [[106], 256], 120260: [[107], 256], 120261: [[108], 256], 120262: [[109], 256], 120263: [[110], 256], 120264: [[111], 256], 120265: [[112], 256], 120266: [[113], 256], 120267: [[114], 256], 120268: [[115], 256], 120269: [[116], 256], 120270: [[117], 256], 120271: [[118], 256], 120272: [[119], 256], 120273: [[120], 256], 120274: [[121], 256], 120275: [[122], 256], 120276: [[65], 256], 120277: [[66], 256], 120278: [[67], 256], 120279: [[68], 256], 120280: [[69], 256], 120281: [[70], 256], 120282: [[71], 256], 120283: [[72], 256], 120284: [[73], 256], 120285: [[74], 256], 120286: [[75], 256], 120287: [[76], 256], 120288: [[77], 256], 120289: [[78], 256], 120290: [[79], 256], 120291: [[80], 256], 120292: [[81], 256], 120293: [[82], 256], 120294: [[83], 256], 120295: [[84], 256], 120296: [[85], 256], 120297: [[86], 256], 120298: [[87], 256], 120299: [[88], 256], 120300: [[89], 256], 120301: [[90], 256], 120302: [[97], 256], 120303: [[98], 256], 120304: [[99], 256], 120305: [[100], 256], 120306: [[101], 256], 120307: [[102], 256], 120308: [[103], 256], 120309: [[104], 256], 120310: [[105], 256], 120311: [[106], 256], 120312: [[107], 256], 120313: [[108], 256], 120314: [[109], 256], 120315: [[110], 256], 120316: [[111], 256], 120317: [[112], 256], 120318: [[113], 256], 120319: [[114], 256] },
54784: { 120320: [[115], 256], 120321: [[116], 256], 120322: [[117], 256], 120323: [[118], 256], 120324: [[119], 256], 120325: [[120], 256], 120326: [[121], 256], 120327: [[122], 256], 120328: [[65], 256], 120329: [[66], 256], 120330: [[67], 256], 120331: [[68], 256], 120332: [[69], 256], 120333: [[70], 256], 120334: [[71], 256], 120335: [[72], 256], 120336: [[73], 256], 120337: [[74], 256], 120338: [[75], 256], 120339: [[76], 256], 120340: [[77], 256], 120341: [[78], 256], 120342: [[79], 256], 120343: [[80], 256], 120344: [[81], 256], 120345: [[82], 256], 120346: [[83], 256], 120347: [[84], 256], 120348: [[85], 256], 120349: [[86], 256], 120350: [[87], 256], 120351: [[88], 256], 120352: [[89], 256], 120353: [[90], 256], 120354: [[97], 256], 120355: [[98], 256], 120356: [[99], 256], 120357: [[100], 256], 120358: [[101], 256], 120359: [[102], 256], 120360: [[103], 256], 120361: [[104], 256], 120362: [[105], 256], 120363: [[106], 256], 120364: [[107], 256], 120365: [[108], 256], 120366: [[109], 256], 120367: [[110], 256], 120368: [[111], 256], 120369: [[112], 256], 120370: [[113], 256], 120371: [[114], 256], 120372: [[115], 256], 120373: [[116], 256], 120374: [[117], 256], 120375: [[118], 256], 120376: [[119], 256], 120377: [[120], 256], 120378: [[121], 256], 120379: [[122], 256], 120380: [[65], 256], 120381: [[66], 256], 120382: [[67], 256], 120383: [[68], 256], 120384: [[69], 256], 120385: [[70], 256], 120386: [[71], 256], 120387: [[72], 256], 120388: [[73], 256], 120389: [[74], 256], 120390: [[75], 256], 120391: [[76], 256], 120392: [[77], 256], 120393: [[78], 256], 120394: [[79], 256], 120395: [[80], 256], 120396: [[81], 256], 120397: [[82], 256], 120398: [[83], 256], 120399: [[84], 256], 120400: [[85], 256], 120401: [[86], 256], 120402: [[87], 256], 120403: [[88], 256], 120404: [[89], 256], 120405: [[90], 256], 120406: [[97], 256], 120407: [[98], 256], 120408: [[99], 256], 120409: [[100], 256], 120410: [[101], 256], 120411: [[102], 256], 120412: [[103], 256], 120413: [[104], 256], 120414: [[105], 256], 120415: [[106], 256], 120416: [[107], 256], 120417: [[108], 256], 120418: [[109], 256], 120419: [[110], 256], 120420: [[111], 256], 120421: [[112], 256], 120422: [[113], 256], 120423: [[114], 256], 120424: [[115], 256], 120425: [[116], 256], 120426: [[117], 256], 120427: [[118], 256], 120428: [[119], 256], 120429: [[120], 256], 120430: [[121], 256], 120431: [[122], 256], 120432: [[65], 256], 120433: [[66], 256], 120434: [[67], 256], 120435: [[68], 256], 120436: [[69], 256], 120437: [[70], 256], 120438: [[71], 256], 120439: [[72], 256], 120440: [[73], 256], 120441: [[74], 256], 120442: [[75], 256], 120443: [[76], 256], 120444: [[77], 256], 120445: [[78], 256], 120446: [[79], 256], 120447: [[80], 256], 120448: [[81], 256], 120449: [[82], 256], 120450: [[83], 256], 120451: [[84], 256], 120452: [[85], 256], 120453: [[86], 256], 120454: [[87], 256], 120455: [[88], 256], 120456: [[89], 256], 120457: [[90], 256], 120458: [[97], 256], 120459: [[98], 256], 120460: [[99], 256], 120461: [[100], 256], 120462: [[101], 256], 120463: [[102], 256], 120464: [[103], 256], 120465: [[104], 256], 120466: [[105], 256], 120467: [[106], 256], 120468: [[107], 256], 120469: [[108], 256], 120470: [[109], 256], 120471: [[110], 256], 120472: [[111], 256], 120473: [[112], 256], 120474: [[113], 256], 120475: [[114], 256], 120476: [[115], 256], 120477: [[116], 256], 120478: [[117], 256], 120479: [[118], 256], 120480: [[119], 256], 120481: [[120], 256], 120482: [[121], 256], 120483: [[122], 256], 120484: [[305], 256], 120485: [[567], 256], 120488: [[913], 256], 120489: [[914], 256], 120490: [[915], 256], 120491: [[916], 256], 120492: [[917], 256], 120493: [[918], 256], 120494: [[919], 256], 120495: [[920], 256], 120496: [[921], 256], 120497: [[922], 256], 120498: [[923], 256], 120499: [[924], 256], 120500: [[925], 256], 120501: [[926], 256], 120502: [[927], 256], 120503: [[928], 256], 120504: [[929], 256], 120505: [[1012], 256], 120506: [[931], 256], 120507: [[932], 256], 120508: [[933], 256], 120509: [[934], 256], 120510: [[935], 256], 120511: [[936], 256], 120512: [[937], 256], 120513: [[8711], 256], 120514: [[945], 256], 120515: [[946], 256], 120516: [[947], 256], 120517: [[948], 256], 120518: [[949], 256], 120519: [[950], 256], 120520: [[951], 256], 120521: [[952], 256], 120522: [[953], 256], 120523: [[954], 256], 120524: [[955], 256], 120525: [[956], 256], 120526: [[957], 256], 120527: [[958], 256], 120528: [[959], 256], 120529: [[960], 256], 120530: [[961], 256], 120531: [[962], 256], 120532: [[963], 256], 120533: [[964], 256], 120534: [[965], 256], 120535: [[966], 256], 120536: [[967], 256], 120537: [[968], 256], 120538: [[969], 256], 120539: [[8706], 256], 120540: [[1013], 256], 120541: [[977], 256], 120542: [[1008], 256], 120543: [[981], 256], 120544: [[1009], 256], 120545: [[982], 256], 120546: [[913], 256], 120547: [[914], 256], 120548: [[915], 256], 120549: [[916], 256], 120550: [[917], 256], 120551: [[918], 256], 120552: [[919], 256], 120553: [[920], 256], 120554: [[921], 256], 120555: [[922], 256], 120556: [[923], 256], 120557: [[924], 256], 120558: [[925], 256], 120559: [[926], 256], 120560: [[927], 256], 120561: [[928], 256], 120562: [[929], 256], 120563: [[1012], 256], 120564: [[931], 256], 120565: [[932], 256], 120566: [[933], 256], 120567: [[934], 256], 120568: [[935], 256], 120569: [[936], 256], 120570: [[937], 256], 120571: [[8711], 256], 120572: [[945], 256], 120573: [[946], 256], 120574: [[947], 256], 120575: [[948], 256] },
55040: { 120576: [[949], 256], 120577: [[950], 256], 120578: [[951], 256], 120579: [[952], 256], 120580: [[953], 256], 120581: [[954], 256], 120582: [[955], 256], 120583: [[956], 256], 120584: [[957], 256], 120585: [[958], 256], 120586: [[959], 256], 120587: [[960], 256], 120588: [[961], 256], 120589: [[962], 256], 120590: [[963], 256], 120591: [[964], 256], 120592: [[965], 256], 120593: [[966], 256], 120594: [[967], 256], 120595: [[968], 256], 120596: [[969], 256], 120597: [[8706], 256], 120598: [[1013], 256], 120599: [[977], 256], 120600: [[1008], 256], 120601: [[981], 256], 120602: [[1009], 256], 120603: [[982], 256], 120604: [[913], 256], 120605: [[914], 256], 120606: [[915], 256], 120607: [[916], 256], 120608: [[917], 256], 120609: [[918], 256], 120610: [[919], 256], 120611: [[920], 256], 120612: [[921], 256], 120613: [[922], 256], 120614: [[923], 256], 120615: [[924], 256], 120616: [[925], 256], 120617: [[926], 256], 120618: [[927], 256], 120619: [[928], 256], 120620: [[929], 256], 120621: [[1012], 256], 120622: [[931], 256], 120623: [[932], 256], 120624: [[933], 256], 120625: [[934], 256], 120626: [[935], 256], 120627: [[936], 256], 120628: [[937], 256], 120629: [[8711], 256], 120630: [[945], 256], 120631: [[946], 256], 120632: [[947], 256], 120633: [[948], 256], 120634: [[949], 256], 120635: [[950], 256], 120636: [[951], 256], 120637: [[952], 256], 120638: [[953], 256], 120639: [[954], 256], 120640: [[955], 256], 120641: [[956], 256], 120642: [[957], 256], 120643: [[958], 256], 120644: [[959], 256], 120645: [[960], 256], 120646: [[961], 256], 120647: [[962], 256], 120648: [[963], 256], 120649: [[964], 256], 120650: [[965], 256], 120651: [[966], 256], 120652: [[967], 256], 120653: [[968], 256], 120654: [[969], 256], 120655: [[8706], 256], 120656: [[1013], 256], 120657: [[977], 256], 120658: [[1008], 256], 120659: [[981], 256], 120660: [[1009], 256], 120661: [[982], 256], 120662: [[913], 256], 120663: [[914], 256], 120664: [[915], 256], 120665: [[916], 256], 120666: [[917], 256], 120667: [[918], 256], 120668: [[919], 256], 120669: [[920], 256], 120670: [[921], 256], 120671: [[922], 256], 120672: [[923], 256], 120673: [[924], 256], 120674: [[925], 256], 120675: [[926], 256], 120676: [[927], 256], 120677: [[928], 256], 120678: [[929], 256], 120679: [[1012], 256], 120680: [[931], 256], 120681: [[932], 256], 120682: [[933], 256], 120683: [[934], 256], 120684: [[935], 256], 120685: [[936], 256], 120686: [[937], 256], 120687: [[8711], 256], 120688: [[945], 256], 120689: [[946], 256], 120690: [[947], 256], 120691: [[948], 256], 120692: [[949], 256], 120693: [[950], 256], 120694: [[951], 256], 120695: [[952], 256], 120696: [[953], 256], 120697: [[954], 256], 120698: [[955], 256], 120699: [[956], 256], 120700: [[957], 256], 120701: [[958], 256], 120702: [[959], 256], 120703: [[960], 256], 120704: [[961], 256], 120705: [[962], 256], 120706: [[963], 256], 120707: [[964], 256], 120708: [[965], 256], 120709: [[966], 256], 120710: [[967], 256], 120711: [[968], 256], 120712: [[969], 256], 120713: [[8706], 256], 120714: [[1013], 256], 120715: [[977], 256], 120716: [[1008], 256], 120717: [[981], 256], 120718: [[1009], 256], 120719: [[982], 256], 120720: [[913], 256], 120721: [[914], 256], 120722: [[915], 256], 120723: [[916], 256], 120724: [[917], 256], 120725: [[918], 256], 120726: [[919], 256], 120727: [[920], 256], 120728: [[921], 256], 120729: [[922], 256], 120730: [[923], 256], 120731: [[924], 256], 120732: [[925], 256], 120733: [[926], 256], 120734: [[927], 256], 120735: [[928], 256], 120736: [[929], 256], 120737: [[1012], 256], 120738: [[931], 256], 120739: [[932], 256], 120740: [[933], 256], 120741: [[934], 256], 120742: [[935], 256], 120743: [[936], 256], 120744: [[937], 256], 120745: [[8711], 256], 120746: [[945], 256], 120747: [[946], 256], 120748: [[947], 256], 120749: [[948], 256], 120750: [[949], 256], 120751: [[950], 256], 120752: [[951], 256], 120753: [[952], 256], 120754: [[953], 256], 120755: [[954], 256], 120756: [[955], 256], 120757: [[956], 256], 120758: [[957], 256], 120759: [[958], 256], 120760: [[959], 256], 120761: [[960], 256], 120762: [[961], 256], 120763: [[962], 256], 120764: [[963], 256], 120765: [[964], 256], 120766: [[965], 256], 120767: [[966], 256], 120768: [[967], 256], 120769: [[968], 256], 120770: [[969], 256], 120771: [[8706], 256], 120772: [[1013], 256], 120773: [[977], 256], 120774: [[1008], 256], 120775: [[981], 256], 120776: [[1009], 256], 120777: [[982], 256], 120778: [[988], 256], 120779: [[989], 256], 120782: [[48], 256], 120783: [[49], 256], 120784: [[50], 256], 120785: [[51], 256], 120786: [[52], 256], 120787: [[53], 256], 120788: [[54], 256], 120789: [[55], 256], 120790: [[56], 256], 120791: [[57], 256], 120792: [[48], 256], 120793: [[49], 256], 120794: [[50], 256], 120795: [[51], 256], 120796: [[52], 256], 120797: [[53], 256], 120798: [[54], 256], 120799: [[55], 256], 120800: [[56], 256], 120801: [[57], 256], 120802: [[48], 256], 120803: [[49], 256], 120804: [[50], 256], 120805: [[51], 256], 120806: [[52], 256], 120807: [[53], 256], 120808: [[54], 256], 120809: [[55], 256], 120810: [[56], 256], 120811: [[57], 256], 120812: [[48], 256], 120813: [[49], 256], 120814: [[50], 256], 120815: [[51], 256], 120816: [[52], 256], 120817: [[53], 256], 120818: [[54], 256], 120819: [[55], 256], 120820: [[56], 256], 120821: [[57], 256], 120822: [[48], 256], 120823: [[49], 256], 120824: [[50], 256], 120825: [[51], 256], 120826: [[52], 256], 120827: [[53], 256], 120828: [[54], 256], 120829: [[55], 256], 120830: [[56], 256], 120831: [[57], 256] },
59392: { 125136: [, 220], 125137: [, 220], 125138: [, 220], 125139: [, 220], 125140: [, 220], 125141: [, 220], 125142: [, 220] },
60928: { 126464: [[1575], 256], 126465: [[1576], 256], 126466: [[1580], 256], 126467: [[1583], 256], 126469: [[1608], 256], 126470: [[1586], 256], 126471: [[1581], 256], 126472: [[1591], 256], 126473: [[1610], 256], 126474: [[1603], 256], 126475: [[1604], 256], 126476: [[1605], 256], 126477: [[1606], 256], 126478: [[1587], 256], 126479: [[1593], 256], 126480: [[1601], 256], 126481: [[1589], 256], 126482: [[1602], 256], 126483: [[1585], 256], 126484: [[1588], 256], 126485: [[1578], 256], 126486: [[1579], 256], 126487: [[1582], 256], 126488: [[1584], 256], 126489: [[1590], 256], 126490: [[1592], 256], 126491: [[1594], 256], 126492: [[1646], 256], 126493: [[1722], 256], 126494: [[1697], 256], 126495: [[1647], 256], 126497: [[1576], 256], 126498: [[1580], 256], 126500: [[1607], 256], 126503: [[1581], 256], 126505: [[1610], 256], 126506: [[1603], 256], 126507: [[1604], 256], 126508: [[1605], 256], 126509: [[1606], 256], 126510: [[1587], 256], 126511: [[1593], 256], 126512: [[1601], 256], 126513: [[1589], 256], 126514: [[1602], 256], 126516: [[1588], 256], 126517: [[1578], 256], 126518: [[1579], 256], 126519: [[1582], 256], 126521: [[1590], 256], 126523: [[1594], 256], 126530: [[1580], 256], 126535: [[1581], 256], 126537: [[1610], 256], 126539: [[1604], 256], 126541: [[1606], 256], 126542: [[1587], 256], 126543: [[1593], 256], 126545: [[1589], 256], 126546: [[1602], 256], 126548: [[1588], 256], 126551: [[1582], 256], 126553: [[1590], 256], 126555: [[1594], 256], 126557: [[1722], 256], 126559: [[1647], 256], 126561: [[1576], 256], 126562: [[1580], 256], 126564: [[1607], 256], 126567: [[1581], 256], 126568: [[1591], 256], 126569: [[1610], 256], 126570: [[1603], 256], 126572: [[1605], 256], 126573: [[1606], 256], 126574: [[1587], 256], 126575: [[1593], 256], 126576: [[1601], 256], 126577: [[1589], 256], 126578: [[1602], 256], 126580: [[1588], 256], 126581: [[1578], 256], 126582: [[1579], 256], 126583: [[1582], 256], 126585: [[1590], 256], 126586: [[1592], 256], 126587: [[1594], 256], 126588: [[1646], 256], 126590: [[1697], 256], 126592: [[1575], 256], 126593: [[1576], 256], 126594: [[1580], 256], 126595: [[1583], 256], 126596: [[1607], 256], 126597: [[1608], 256], 126598: [[1586], 256], 126599: [[1581], 256], 126600: [[1591], 256], 126601: [[1610], 256], 126603: [[1604], 256], 126604: [[1605], 256], 126605: [[1606], 256], 126606: [[1587], 256], 126607: [[1593], 256], 126608: [[1601], 256], 126609: [[1589], 256], 126610: [[1602], 256], 126611: [[1585], 256], 126612: [[1588], 256], 126613: [[1578], 256], 126614: [[1579], 256], 126615: [[1582], 256], 126616: [[1584], 256], 126617: [[1590], 256], 126618: [[1592], 256], 126619: [[1594], 256], 126625: [[1576], 256], 126626: [[1580], 256], 126627: [[1583], 256], 126629: [[1608], 256], 126630: [[1586], 256], 126631: [[1581], 256], 126632: [[1591], 256], 126633: [[1610], 256], 126635: [[1604], 256], 126636: [[1605], 256], 126637: [[1606], 256], 126638: [[1587], 256], 126639: [[1593], 256], 126640: [[1601], 256], 126641: [[1589], 256], 126642: [[1602], 256], 126643: [[1585], 256], 126644: [[1588], 256], 126645: [[1578], 256], 126646: [[1579], 256], 126647: [[1582], 256], 126648: [[1584], 256], 126649: [[1590], 256], 126650: [[1592], 256], 126651: [[1594], 256] },
61696: { 127232: [[48, 46], 256], 127233: [[48, 44], 256], 127234: [[49, 44], 256], 127235: [[50, 44], 256], 127236: [[51, 44], 256], 127237: [[52, 44], 256], 127238: [[53, 44], 256], 127239: [[54, 44], 256], 127240: [[55, 44], 256], 127241: [[56, 44], 256], 127242: [[57, 44], 256], 127248: [[40, 65, 41], 256], 127249: [[40, 66, 41], 256], 127250: [[40, 67, 41], 256], 127251: [[40, 68, 41], 256], 127252: [[40, 69, 41], 256], 127253: [[40, 70, 41], 256], 127254: [[40, 71, 41], 256], 127255: [[40, 72, 41], 256], 127256: [[40, 73, 41], 256], 127257: [[40, 74, 41], 256], 127258: [[40, 75, 41], 256], 127259: [[40, 76, 41], 256], 127260: [[40, 77, 41], 256], 127261: [[40, 78, 41], 256], 127262: [[40, 79, 41], 256], 127263: [[40, 80, 41], 256], 127264: [[40, 81, 41], 256], 127265: [[40, 82, 41], 256], 127266: [[40, 83, 41], 256], 127267: [[40, 84, 41], 256], 127268: [[40, 85, 41], 256], 127269: [[40, 86, 41], 256], 127270: [[40, 87, 41], 256], 127271: [[40, 88, 41], 256], 127272: [[40, 89, 41], 256], 127273: [[40, 90, 41], 256], 127274: [[12308, 83, 12309], 256], 127275: [[67], 256], 127276: [[82], 256], 127277: [[67, 68], 256], 127278: [[87, 90], 256], 127280: [[65], 256], 127281: [[66], 256], 127282: [[67], 256], 127283: [[68], 256], 127284: [[69], 256], 127285: [[70], 256], 127286: [[71], 256], 127287: [[72], 256], 127288: [[73], 256], 127289: [[74], 256], 127290: [[75], 256], 127291: [[76], 256], 127292: [[77], 256], 127293: [[78], 256], 127294: [[79], 256], 127295: [[80], 256], 127296: [[81], 256], 127297: [[82], 256], 127298: [[83], 256], 127299: [[84], 256], 127300: [[85], 256], 127301: [[86], 256], 127302: [[87], 256], 127303: [[88], 256], 127304: [[89], 256], 127305: [[90], 256], 127306: [[72, 86], 256], 127307: [[77, 86], 256], 127308: [[83, 68], 256], 127309: [[83, 83], 256], 127310: [[80, 80, 86], 256], 127311: [[87, 67], 256], 127338: [[77, 67], 256], 127339: [[77, 68], 256], 127376: [[68, 74], 256] },
61952: { 127488: [[12411, 12363], 256], 127489: [[12467, 12467], 256], 127490: [[12469], 256], 127504: [[25163], 256], 127505: [[23383], 256], 127506: [[21452], 256], 127507: [[12487], 256], 127508: [[20108], 256], 127509: [[22810], 256], 127510: [[35299], 256], 127511: [[22825], 256], 127512: [[20132], 256], 127513: [[26144], 256], 127514: [[28961], 256], 127515: [[26009], 256], 127516: [[21069], 256], 127517: [[24460], 256], 127518: [[20877], 256], 127519: [[26032], 256], 127520: [[21021], 256], 127521: [[32066], 256], 127522: [[29983], 256], 127523: [[36009], 256], 127524: [[22768], 256], 127525: [[21561], 256], 127526: [[28436], 256], 127527: [[25237], 256], 127528: [[25429], 256], 127529: [[19968], 256], 127530: [[19977], 256], 127531: [[36938], 256], 127532: [[24038], 256], 127533: [[20013], 256], 127534: [[21491], 256], 127535: [[25351], 256], 127536: [[36208], 256], 127537: [[25171], 256], 127538: [[31105], 256], 127539: [[31354], 256], 127540: [[21512], 256], 127541: [[28288], 256], 127542: [[26377], 256], 127543: [[26376], 256], 127544: [[30003], 256], 127545: [[21106], 256], 127546: [[21942], 256], 127552: [[12308, 26412, 12309], 256], 127553: [[12308, 19977, 12309], 256], 127554: [[12308, 20108, 12309], 256], 127555: [[12308, 23433, 12309], 256], 127556: [[12308, 28857, 12309], 256], 127557: [[12308, 25171, 12309], 256], 127558: [[12308, 30423, 12309], 256], 127559: [[12308, 21213, 12309], 256], 127560: [[12308, 25943, 12309], 256], 127568: [[24471], 256], 127569: [[21487], 256] },
63488: { 194560: [[20029]], 194561: [[20024]], 194562: [[20033]], 194563: [[131362]], 194564: [[20320]], 194565: [[20398]], 194566: [[20411]], 194567: [[20482]], 194568: [[20602]], 194569: [[20633]], 194570: [[20711]], 194571: [[20687]], 194572: [[13470]], 194573: [[132666]], 194574: [[20813]], 194575: [[20820]], 194576: [[20836]], 194577: [[20855]], 194578: [[132380]], 194579: [[13497]], 194580: [[20839]], 194581: [[20877]], 194582: [[132427]], 194583: [[20887]], 194584: [[20900]], 194585: [[20172]], 194586: [[20908]], 194587: [[20917]], 194588: [[168415]], 194589: [[20981]], 194590: [[20995]], 194591: [[13535]], 194592: [[21051]], 194593: [[21062]], 194594: [[21106]], 194595: [[21111]], 194596: [[13589]], 194597: [[21191]], 194598: [[21193]], 194599: [[21220]], 194600: [[21242]], 194601: [[21253]], 194602: [[21254]], 194603: [[21271]], 194604: [[21321]], 194605: [[21329]], 194606: [[21338]], 194607: [[21363]], 194608: [[21373]], 194609: [[21375]], 194610: [[21375]], 194611: [[21375]], 194612: [[133676]], 194613: [[28784]], 194614: [[21450]], 194615: [[21471]], 194616: [[133987]], 194617: [[21483]], 194618: [[21489]], 194619: [[21510]], 194620: [[21662]], 194621: [[21560]], 194622: [[21576]], 194623: [[21608]], 194624: [[21666]], 194625: [[21750]], 194626: [[21776]], 194627: [[21843]], 194628: [[21859]], 194629: [[21892]], 194630: [[21892]], 194631: [[21913]], 194632: [[21931]], 194633: [[21939]], 194634: [[21954]], 194635: [[22294]], 194636: [[22022]], 194637: [[22295]], 194638: [[22097]], 194639: [[22132]], 194640: [[20999]], 194641: [[22766]], 194642: [[22478]], 194643: [[22516]], 194644: [[22541]], 194645: [[22411]], 194646: [[22578]], 194647: [[22577]], 194648: [[22700]], 194649: [[136420]], 194650: [[22770]], 194651: [[22775]], 194652: [[22790]], 194653: [[22810]], 194654: [[22818]], 194655: [[22882]], 194656: [[136872]], 194657: [[136938]], 194658: [[23020]], 194659: [[23067]], 194660: [[23079]], 194661: [[23000]], 194662: [[23142]], 194663: [[14062]], 194664: [[14076]], 194665: [[23304]], 194666: [[23358]], 194667: [[23358]], 194668: [[137672]], 194669: [[23491]], 194670: [[23512]], 194671: [[23527]], 194672: [[23539]], 194673: [[138008]], 194674: [[23551]], 194675: [[23558]], 194676: [[24403]], 194677: [[23586]], 194678: [[14209]], 194679: [[23648]], 194680: [[23662]], 194681: [[23744]], 194682: [[23693]], 194683: [[138724]], 194684: [[23875]], 194685: [[138726]], 194686: [[23918]], 194687: [[23915]], 194688: [[23932]], 194689: [[24033]], 194690: [[24034]], 194691: [[14383]], 194692: [[24061]], 194693: [[24104]], 194694: [[24125]], 194695: [[24169]], 194696: [[14434]], 194697: [[139651]], 194698: [[14460]], 194699: [[24240]], 194700: [[24243]], 194701: [[24246]], 194702: [[24266]], 194703: [[172946]], 194704: [[24318]], 194705: [[140081]], 194706: [[140081]], 194707: [[33281]], 194708: [[24354]], 194709: [[24354]], 194710: [[14535]], 194711: [[144056]], 194712: [[156122]], 194713: [[24418]], 194714: [[24427]], 194715: [[14563]], 194716: [[24474]], 194717: [[24525]], 194718: [[24535]], 194719: [[24569]], 194720: [[24705]], 194721: [[14650]], 194722: [[14620]], 194723: [[24724]], 194724: [[141012]], 194725: [[24775]], 194726: [[24904]], 194727: [[24908]], 194728: [[24910]], 194729: [[24908]], 194730: [[24954]], 194731: [[24974]], 194732: [[25010]], 194733: [[24996]], 194734: [[25007]], 194735: [[25054]], 194736: [[25074]], 194737: [[25078]], 194738: [[25104]], 194739: [[25115]], 194740: [[25181]], 194741: [[25265]], 194742: [[25300]], 194743: [[25424]], 194744: [[142092]], 194745: [[25405]], 194746: [[25340]], 194747: [[25448]], 194748: [[25475]], 194749: [[25572]], 194750: [[142321]], 194751: [[25634]], 194752: [[25541]], 194753: [[25513]], 194754: [[14894]], 194755: [[25705]], 194756: [[25726]], 194757: [[25757]], 194758: [[25719]], 194759: [[14956]], 194760: [[25935]], 194761: [[25964]], 194762: [[143370]], 194763: [[26083]], 194764: [[26360]], 194765: [[26185]], 194766: [[15129]], 194767: [[26257]], 194768: [[15112]], 194769: [[15076]], 194770: [[20882]], 194771: [[20885]], 194772: [[26368]], 194773: [[26268]], 194774: [[32941]], 194775: [[17369]], 194776: [[26391]], 194777: [[26395]], 194778: [[26401]], 194779: [[26462]], 194780: [[26451]], 194781: [[144323]], 194782: [[15177]], 194783: [[26618]], 194784: [[26501]], 194785: [[26706]], 194786: [[26757]], 194787: [[144493]], 194788: [[26766]], 194789: [[26655]], 194790: [[26900]], 194791: [[15261]], 194792: [[26946]], 194793: [[27043]], 194794: [[27114]], 194795: [[27304]], 194796: [[145059]], 194797: [[27355]], 194798: [[15384]], 194799: [[27425]], 194800: [[145575]], 194801: [[27476]], 194802: [[15438]], 194803: [[27506]], 194804: [[27551]], 194805: [[27578]], 194806: [[27579]], 194807: [[146061]], 194808: [[138507]], 194809: [[146170]], 194810: [[27726]], 194811: [[146620]], 194812: [[27839]], 194813: [[27853]], 194814: [[27751]], 194815: [[27926]] },
63744: { 63744: [[35912]], 63745: [[26356]], 63746: [[36554]], 63747: [[36040]], 63748: [[28369]], 63749: [[20018]], 63750: [[21477]], 63751: [[40860]], 63752: [[40860]], 63753: [[22865]], 63754: [[37329]], 63755: [[21895]], 63756: [[22856]], 63757: [[25078]], 63758: [[30313]], 63759: [[32645]], 63760: [[34367]], 63761: [[34746]], 63762: [[35064]], 63763: [[37007]], 63764: [[27138]], 63765: [[27931]], 63766: [[28889]], 63767: [[29662]], 63768: [[33853]], 63769: [[37226]], 63770: [[39409]], 63771: [[20098]], 63772: [[21365]], 63773: [[27396]], 63774: [[29211]], 63775: [[34349]], 63776: [[40478]], 63777: [[23888]], 63778: [[28651]], 63779: [[34253]], 63780: [[35172]], 63781: [[25289]], 63782: [[33240]], 63783: [[34847]], 63784: [[24266]], 63785: [[26391]], 63786: [[28010]], 63787: [[29436]], 63788: [[37070]], 63789: [[20358]], 63790: [[20919]], 63791: [[21214]], 63792: [[25796]], 63793: [[27347]], 63794: [[29200]], 63795: [[30439]], 63796: [[32769]], 63797: [[34310]], 63798: [[34396]], 63799: [[36335]], 63800: [[38706]], 63801: [[39791]], 63802: [[40442]], 63803: [[30860]], 63804: [[31103]], 63805: [[32160]], 63806: [[33737]], 63807: [[37636]], 63808: [[40575]], 63809: [[35542]], 63810: [[22751]], 63811: [[24324]], 63812: [[31840]], 63813: [[32894]], 63814: [[29282]], 63815: [[30922]], 63816: [[36034]], 63817: [[38647]], 63818: [[22744]], 63819: [[23650]], 63820: [[27155]], 63821: [[28122]], 63822: [[28431]], 63823: [[32047]], 63824: [[32311]], 63825: [[38475]], 63826: [[21202]], 63827: [[32907]], 63828: [[20956]], 63829: [[20940]], 63830: [[31260]], 63831: [[32190]], 63832: [[33777]], 63833: [[38517]], 63834: [[35712]], 63835: [[25295]], 63836: [[27138]], 63837: [[35582]], 63838: [[20025]], 63839: [[23527]], 63840: [[24594]], 63841: [[29575]], 63842: [[30064]], 63843: [[21271]], 63844: [[30971]], 63845: [[20415]], 63846: [[24489]], 63847: [[19981]], 63848: [[27852]], 63849: [[25976]], 63850: [[32034]], 63851: [[21443]], 63852: [[22622]], 63853: [[30465]], 63854: [[33865]], 63855: [[35498]], 63856: [[27578]], 63857: [[36784]], 63858: [[27784]], 63859: [[25342]], 63860: [[33509]], 63861: [[25504]], 63862: [[30053]], 63863: [[20142]], 63864: [[20841]], 63865: [[20937]], 63866: [[26753]], 63867: [[31975]], 63868: [[33391]], 63869: [[35538]], 63870: [[37327]], 63871: [[21237]], 63872: [[21570]], 63873: [[22899]], 63874: [[24300]], 63875: [[26053]], 63876: [[28670]], 63877: [[31018]], 63878: [[38317]], 63879: [[39530]], 63880: [[40599]], 63881: [[40654]], 63882: [[21147]], 63883: [[26310]], 63884: [[27511]], 63885: [[36706]], 63886: [[24180]], 63887: [[24976]], 63888: [[25088]], 63889: [[25754]], 63890: [[28451]], 63891: [[29001]], 63892: [[29833]], 63893: [[31178]], 63894: [[32244]], 63895: [[32879]], 63896: [[36646]], 63897: [[34030]], 63898: [[36899]], 63899: [[37706]], 63900: [[21015]], 63901: [[21155]], 63902: [[21693]], 63903: [[28872]], 63904: [[35010]], 63905: [[35498]], 63906: [[24265]], 63907: [[24565]], 63908: [[25467]], 63909: [[27566]], 63910: [[31806]], 63911: [[29557]], 63912: [[20196]], 63913: [[22265]], 63914: [[23527]], 63915: [[23994]], 63916: [[24604]], 63917: [[29618]], 63918: [[29801]], 63919: [[32666]], 63920: [[32838]], 63921: [[37428]], 63922: [[38646]], 63923: [[38728]], 63924: [[38936]], 63925: [[20363]], 63926: [[31150]], 63927: [[37300]], 63928: [[38584]], 63929: [[24801]], 63930: [[20102]], 63931: [[20698]], 63932: [[23534]], 63933: [[23615]], 63934: [[26009]], 63935: [[27138]], 63936: [[29134]], 63937: [[30274]], 63938: [[34044]], 63939: [[36988]], 63940: [[40845]], 63941: [[26248]], 63942: [[38446]], 63943: [[21129]], 63944: [[26491]], 63945: [[26611]], 63946: [[27969]], 63947: [[28316]], 63948: [[29705]], 63949: [[30041]], 63950: [[30827]], 63951: [[32016]], 63952: [[39006]], 63953: [[20845]], 63954: [[25134]], 63955: [[38520]], 63956: [[20523]], 63957: [[23833]], 63958: [[28138]], 63959: [[36650]], 63960: [[24459]], 63961: [[24900]], 63962: [[26647]], 63963: [[29575]], 63964: [[38534]], 63965: [[21033]], 63966: [[21519]], 63967: [[23653]], 63968: [[26131]], 63969: [[26446]], 63970: [[26792]], 63971: [[27877]], 63972: [[29702]], 63973: [[30178]], 63974: [[32633]], 63975: [[35023]], 63976: [[35041]], 63977: [[37324]], 63978: [[38626]], 63979: [[21311]], 63980: [[28346]], 63981: [[21533]], 63982: [[29136]], 63983: [[29848]], 63984: [[34298]], 63985: [[38563]], 63986: [[40023]], 63987: [[40607]], 63988: [[26519]], 63989: [[28107]], 63990: [[33256]], 63991: [[31435]], 63992: [[31520]], 63993: [[31890]], 63994: [[29376]], 63995: [[28825]], 63996: [[35672]], 63997: [[20160]], 63998: [[33590]], 63999: [[21050]], 194816: [[27966]], 194817: [[28023]], 194818: [[27969]], 194819: [[28009]], 194820: [[28024]], 194821: [[28037]], 194822: [[146718]], 194823: [[27956]], 194824: [[28207]], 194825: [[28270]], 194826: [[15667]], 194827: [[28363]], 194828: [[28359]], 194829: [[147153]], 194830: [[28153]], 194831: [[28526]], 194832: [[147294]], 194833: [[147342]], 194834: [[28614]], 194835: [[28729]], 194836: [[28702]], 194837: [[28699]], 194838: [[15766]], 194839: [[28746]], 194840: [[28797]], 194841: [[28791]], 194842: [[28845]], 194843: [[132389]], 194844: [[28997]], 194845: [[148067]], 194846: [[29084]], 194847: [[148395]], 194848: [[29224]], 194849: [[29237]], 194850: [[29264]], 194851: [[149000]], 194852: [[29312]], 194853: [[29333]], 194854: [[149301]], 194855: [[149524]], 194856: [[29562]], 194857: [[29579]], 194858: [[16044]], 194859: [[29605]], 194860: [[16056]], 194861: [[16056]], 194862: [[29767]], 194863: [[29788]], 194864: [[29809]], 194865: [[29829]], 194866: [[29898]], 194867: [[16155]], 194868: [[29988]], 194869: [[150582]], 194870: [[30014]], 194871: [[150674]], 194872: [[30064]], 194873: [[139679]], 194874: [[30224]], 194875: [[151457]], 194876: [[151480]], 194877: [[151620]], 194878: [[16380]], 194879: [[16392]], 194880: [[30452]], 194881: [[151795]], 194882: [[151794]], 194883: [[151833]], 194884: [[151859]], 194885: [[30494]], 194886: [[30495]], 194887: [[30495]], 194888: [[30538]], 194889: [[16441]], 194890: [[30603]], 194891: [[16454]], 194892: [[16534]], 194893: [[152605]], 194894: [[30798]], 194895: [[30860]], 194896: [[30924]], 194897: [[16611]], 194898: [[153126]], 194899: [[31062]], 194900: [[153242]], 194901: [[153285]], 194902: [[31119]], 194903: [[31211]], 194904: [[16687]], 194905: [[31296]], 194906: [[31306]], 194907: [[31311]], 194908: [[153980]], 194909: [[154279]], 194910: [[154279]], 194911: [[31470]], 194912: [[16898]], 194913: [[154539]], 194914: [[31686]], 194915: [[31689]], 194916: [[16935]], 194917: [[154752]], 194918: [[31954]], 194919: [[17056]], 194920: [[31976]], 194921: [[31971]], 194922: [[32000]], 194923: [[155526]], 194924: [[32099]], 194925: [[17153]], 194926: [[32199]], 194927: [[32258]], 194928: [[32325]], 194929: [[17204]], 194930: [[156200]], 194931: [[156231]], 194932: [[17241]], 194933: [[156377]], 194934: [[32634]], 194935: [[156478]], 194936: [[32661]], 194937: [[32762]], 194938: [[32773]], 194939: [[156890]], 194940: [[156963]], 194941: [[32864]], 194942: [[157096]], 194943: [[32880]], 194944: [[144223]], 194945: [[17365]], 194946: [[32946]], 194947: [[33027]], 194948: [[17419]], 194949: [[33086]], 194950: [[23221]], 194951: [[157607]], 194952: [[157621]], 194953: [[144275]], 194954: [[144284]], 194955: [[33281]], 194956: [[33284]], 194957: [[36766]], 194958: [[17515]], 194959: [[33425]], 194960: [[33419]], 194961: [[33437]], 194962: [[21171]], 194963: [[33457]], 194964: [[33459]], 194965: [[33469]], 194966: [[33510]], 194967: [[158524]], 194968: [[33509]], 194969: [[33565]], 194970: [[33635]], 194971: [[33709]], 194972: [[33571]], 194973: [[33725]], 194974: [[33767]], 194975: [[33879]], 194976: [[33619]], 194977: [[33738]], 194978: [[33740]], 194979: [[33756]], 194980: [[158774]], 194981: [[159083]], 194982: [[158933]], 194983: [[17707]], 194984: [[34033]], 194985: [[34035]], 194986: [[34070]], 194987: [[160714]], 194988: [[34148]], 194989: [[159532]], 194990: [[17757]], 194991: [[17761]], 194992: [[159665]], 194993: [[159954]], 194994: [[17771]], 194995: [[34384]], 194996: [[34396]], 194997: [[34407]], 194998: [[34409]], 194999: [[34473]], 195000: [[34440]], 195001: [[34574]], 195002: [[34530]], 195003: [[34681]], 195004: [[34600]], 195005: [[34667]], 195006: [[34694]], 195007: [[17879]], 195008: [[34785]], 195009: [[34817]], 195010: [[17913]], 195011: [[34912]], 195012: [[34915]], 195013: [[161383]], 195014: [[35031]], 195015: [[35038]], 195016: [[17973]], 195017: [[35066]], 195018: [[13499]], 195019: [[161966]], 195020: [[162150]], 195021: [[18110]], 195022: [[18119]], 195023: [[35488]], 195024: [[35565]], 195025: [[35722]], 195026: [[35925]], 195027: [[162984]], 195028: [[36011]], 195029: [[36033]], 195030: [[36123]], 195031: [[36215]], 195032: [[163631]], 195033: [[133124]], 195034: [[36299]], 195035: [[36284]], 195036: [[36336]], 195037: [[133342]], 195038: [[36564]], 195039: [[36664]], 195040: [[165330]], 195041: [[165357]], 195042: [[37012]], 195043: [[37105]], 195044: [[37137]], 195045: [[165678]], 195046: [[37147]], 195047: [[37432]], 195048: [[37591]], 195049: [[37592]], 195050: [[37500]], 195051: [[37881]], 195052: [[37909]], 195053: [[166906]], 195054: [[38283]], 195055: [[18837]], 195056: [[38327]], 195057: [[167287]], 195058: [[18918]], 195059: [[38595]], 195060: [[23986]], 195061: [[38691]], 195062: [[168261]], 195063: [[168474]], 195064: [[19054]], 195065: [[19062]], 195066: [[38880]], 195067: [[168970]], 195068: [[19122]], 195069: [[169110]], 195070: [[38923]], 195071: [[38923]] },
64000: { 64000: [[20999]], 64001: [[24230]], 64002: [[25299]], 64003: [[31958]], 64004: [[23429]], 64005: [[27934]], 64006: [[26292]], 64007: [[36667]], 64008: [[34892]], 64009: [[38477]], 64010: [[35211]], 64011: [[24275]], 64012: [[20800]], 64013: [[21952]], 64016: [[22618]], 64018: [[26228]], 64021: [[20958]], 64022: [[29482]], 64023: [[30410]], 64024: [[31036]], 64025: [[31070]], 64026: [[31077]], 64027: [[31119]], 64028: [[38742]], 64029: [[31934]], 64030: [[32701]], 64032: [[34322]], 64034: [[35576]], 64037: [[36920]], 64038: [[37117]], 64042: [[39151]], 64043: [[39164]], 64044: [[39208]], 64045: [[40372]], 64046: [[37086]], 64047: [[38583]], 64048: [[20398]], 64049: [[20711]], 64050: [[20813]], 64051: [[21193]], 64052: [[21220]], 64053: [[21329]], 64054: [[21917]], 64055: [[22022]], 64056: [[22120]], 64057: [[22592]], 64058: [[22696]], 64059: [[23652]], 64060: [[23662]], 64061: [[24724]], 64062: [[24936]], 64063: [[24974]], 64064: [[25074]], 64065: [[25935]], 64066: [[26082]], 64067: [[26257]], 64068: [[26757]], 64069: [[28023]], 64070: [[28186]], 64071: [[28450]], 64072: [[29038]], 64073: [[29227]], 64074: [[29730]], 64075: [[30865]], 64076: [[31038]], 64077: [[31049]], 64078: [[31048]], 64079: [[31056]], 64080: [[31062]], 64081: [[31069]], 64082: [[31117]], 64083: [[31118]], 64084: [[31296]], 64085: [[31361]], 64086: [[31680]], 64087: [[32244]], 64088: [[32265]], 64089: [[32321]], 64090: [[32626]], 64091: [[32773]], 64092: [[33261]], 64093: [[33401]], 64094: [[33401]], 64095: [[33879]], 64096: [[35088]], 64097: [[35222]], 64098: [[35585]], 64099: [[35641]], 64100: [[36051]], 64101: [[36104]], 64102: [[36790]], 64103: [[36920]], 64104: [[38627]], 64105: [[38911]], 64106: [[38971]], 64107: [[24693]], 64108: [[148206]], 64109: [[33304]], 64112: [[20006]], 64113: [[20917]], 64114: [[20840]], 64115: [[20352]], 64116: [[20805]], 64117: [[20864]], 64118: [[21191]], 64119: [[21242]], 64120: [[21917]], 64121: [[21845]], 64122: [[21913]], 64123: [[21986]], 64124: [[22618]], 64125: [[22707]], 64126: [[22852]], 64127: [[22868]], 64128: [[23138]], 64129: [[23336]], 64130: [[24274]], 64131: [[24281]], 64132: [[24425]], 64133: [[24493]], 64134: [[24792]], 64135: [[24910]], 64136: [[24840]], 64137: [[24974]], 64138: [[24928]], 64139: [[25074]], 64140: [[25140]], 64141: [[25540]], 64142: [[25628]], 64143: [[25682]], 64144: [[25942]], 64145: [[26228]], 64146: [[26391]], 64147: [[26395]], 64148: [[26454]], 64149: [[27513]], 64150: [[27578]], 64151: [[27969]], 64152: [[28379]], 64153: [[28363]], 64154: [[28450]], 64155: [[28702]], 64156: [[29038]], 64157: [[30631]], 64158: [[29237]], 64159: [[29359]], 64160: [[29482]], 64161: [[29809]], 64162: [[29958]], 64163: [[30011]], 64164: [[30237]], 64165: [[30239]], 64166: [[30410]], 64167: [[30427]], 64168: [[30452]], 64169: [[30538]], 64170: [[30528]], 64171: [[30924]], 64172: [[31409]], 64173: [[31680]], 64174: [[31867]], 64175: [[32091]], 64176: [[32244]], 64177: [[32574]], 64178: [[32773]], 64179: [[33618]], 64180: [[33775]], 64181: [[34681]], 64182: [[35137]], 64183: [[35206]], 64184: [[35222]], 64185: [[35519]], 64186: [[35576]], 64187: [[35531]], 64188: [[35585]], 64189: [[35582]], 64190: [[35565]], 64191: [[35641]], 64192: [[35722]], 64193: [[36104]], 64194: [[36664]], 64195: [[36978]], 64196: [[37273]], 64197: [[37494]], 64198: [[38524]], 64199: [[38627]], 64200: [[38742]], 64201: [[38875]], 64202: [[38911]], 64203: [[38923]], 64204: [[38971]], 64205: [[39698]], 64206: [[40860]], 64207: [[141386]], 64208: [[141380]], 64209: [[144341]], 64210: [[15261]], 64211: [[16408]], 64212: [[16441]], 64213: [[152137]], 64214: [[154832]], 64215: [[163539]], 64216: [[40771]], 64217: [[40846]], 195072: [[38953]], 195073: [[169398]], 195074: [[39138]], 195075: [[19251]], 195076: [[39209]], 195077: [[39335]], 195078: [[39362]], 195079: [[39422]], 195080: [[19406]], 195081: [[170800]], 195082: [[39698]], 195083: [[40000]], 195084: [[40189]], 195085: [[19662]], 195086: [[19693]], 195087: [[40295]], 195088: [[172238]], 195089: [[19704]], 195090: [[172293]], 195091: [[172558]], 195092: [[172689]], 195093: [[40635]], 195094: [[19798]], 195095: [[40697]], 195096: [[40702]], 195097: [[40709]], 195098: [[40719]], 195099: [[40726]], 195100: [[40763]], 195101: [[173568]] },
64256: { 64256: [[102, 102], 256], 64257: [[102, 105], 256], 64258: [[102, 108], 256], 64259: [[102, 102, 105], 256], 64260: [[102, 102, 108], 256], 64261: [[383, 116], 256], 64262: [[115, 116], 256], 64275: [[1396, 1398], 256], 64276: [[1396, 1381], 256], 64277: [[1396, 1387], 256], 64278: [[1406, 1398], 256], 64279: [[1396, 1389], 256], 64285: [[1497, 1460], 512], 64286: [, 26], 64287: [[1522, 1463], 512], 64288: [[1506], 256], 64289: [[1488], 256], 64290: [[1491], 256], 64291: [[1492], 256], 64292: [[1499], 256], 64293: [[1500], 256], 64294: [[1501], 256], 64295: [[1512], 256], 64296: [[1514], 256], 64297: [[43], 256], 64298: [[1513, 1473], 512], 64299: [[1513, 1474], 512], 64300: [[64329, 1473], 512], 64301: [[64329, 1474], 512], 64302: [[1488, 1463], 512], 64303: [[1488, 1464], 512], 64304: [[1488, 1468], 512], 64305: [[1489, 1468], 512], 64306: [[1490, 1468], 512], 64307: [[1491, 1468], 512], 64308: [[1492, 1468], 512], 64309: [[1493, 1468], 512], 64310: [[1494, 1468], 512], 64312: [[1496, 1468], 512], 64313: [[1497, 1468], 512], 64314: [[1498, 1468], 512], 64315: [[1499, 1468], 512], 64316: [[1500, 1468], 512], 64318: [[1502, 1468], 512], 64320: [[1504, 1468], 512], 64321: [[1505, 1468], 512], 64323: [[1507, 1468], 512], 64324: [[1508, 1468], 512], 64326: [[1510, 1468], 512], 64327: [[1511, 1468], 512], 64328: [[1512, 1468], 512], 64329: [[1513, 1468], 512], 64330: [[1514, 1468], 512], 64331: [[1493, 1465], 512], 64332: [[1489, 1471], 512], 64333: [[1499, 1471], 512], 64334: [[1508, 1471], 512], 64335: [[1488, 1500], 256], 64336: [[1649], 256], 64337: [[1649], 256], 64338: [[1659], 256], 64339: [[1659], 256], 64340: [[1659], 256], 64341: [[1659], 256], 64342: [[1662], 256], 64343: [[1662], 256], 64344: [[1662], 256], 64345: [[1662], 256], 64346: [[1664], 256], 64347: [[1664], 256], 64348: [[1664], 256], 64349: [[1664], 256], 64350: [[1658], 256], 64351: [[1658], 256], 64352: [[1658], 256], 64353: [[1658], 256], 64354: [[1663], 256], 64355: [[1663], 256], 64356: [[1663], 256], 64357: [[1663], 256], 64358: [[1657], 256], 64359: [[1657], 256], 64360: [[1657], 256], 64361: [[1657], 256], 64362: [[1700], 256], 64363: [[1700], 256], 64364: [[1700], 256], 64365: [[1700], 256], 64366: [[1702], 256], 64367: [[1702], 256], 64368: [[1702], 256], 64369: [[1702], 256], 64370: [[1668], 256], 64371: [[1668], 256], 64372: [[1668], 256], 64373: [[1668], 256], 64374: [[1667], 256], 64375: [[1667], 256], 64376: [[1667], 256], 64377: [[1667], 256], 64378: [[1670], 256], 64379: [[1670], 256], 64380: [[1670], 256], 64381: [[1670], 256], 64382: [[1671], 256], 64383: [[1671], 256], 64384: [[1671], 256], 64385: [[1671], 256], 64386: [[1677], 256], 64387: [[1677], 256], 64388: [[1676], 256], 64389: [[1676], 256], 64390: [[1678], 256], 64391: [[1678], 256], 64392: [[1672], 256], 64393: [[1672], 256], 64394: [[1688], 256], 64395: [[1688], 256], 64396: [[1681], 256], 64397: [[1681], 256], 64398: [[1705], 256], 64399: [[1705], 256], 64400: [[1705], 256], 64401: [[1705], 256], 64402: [[1711], 256], 64403: [[1711], 256], 64404: [[1711], 256], 64405: [[1711], 256], 64406: [[1715], 256], 64407: [[1715], 256], 64408: [[1715], 256], 64409: [[1715], 256], 64410: [[1713], 256], 64411: [[1713], 256], 64412: [[1713], 256], 64413: [[1713], 256], 64414: [[1722], 256], 64415: [[1722], 256], 64416: [[1723], 256], 64417: [[1723], 256], 64418: [[1723], 256], 64419: [[1723], 256], 64420: [[1728], 256], 64421: [[1728], 256], 64422: [[1729], 256], 64423: [[1729], 256], 64424: [[1729], 256], 64425: [[1729], 256], 64426: [[1726], 256], 64427: [[1726], 256], 64428: [[1726], 256], 64429: [[1726], 256], 64430: [[1746], 256], 64431: [[1746], 256], 64432: [[1747], 256], 64433: [[1747], 256], 64467: [[1709], 256], 64468: [[1709], 256], 64469: [[1709], 256], 64470: [[1709], 256], 64471: [[1735], 256], 64472: [[1735], 256], 64473: [[1734], 256], 64474: [[1734], 256], 64475: [[1736], 256], 64476: [[1736], 256], 64477: [[1655], 256], 64478: [[1739], 256], 64479: [[1739], 256], 64480: [[1733], 256], 64481: [[1733], 256], 64482: [[1737], 256], 64483: [[1737], 256], 64484: [[1744], 256], 64485: [[1744], 256], 64486: [[1744], 256], 64487: [[1744], 256], 64488: [[1609], 256], 64489: [[1609], 256], 64490: [[1574, 1575], 256], 64491: [[1574, 1575], 256], 64492: [[1574, 1749], 256], 64493: [[1574, 1749], 256], 64494: [[1574, 1608], 256], 64495: [[1574, 1608], 256], 64496: [[1574, 1735], 256], 64497: [[1574, 1735], 256], 64498: [[1574, 1734], 256], 64499: [[1574, 1734], 256], 64500: [[1574, 1736], 256], 64501: [[1574, 1736], 256], 64502: [[1574, 1744], 256], 64503: [[1574, 1744], 256], 64504: [[1574, 1744], 256], 64505: [[1574, 1609], 256], 64506: [[1574, 1609], 256], 64507: [[1574, 1609], 256], 64508: [[1740], 256], 64509: [[1740], 256], 64510: [[1740], 256], 64511: [[1740], 256] },
64512: { 64512: [[1574, 1580], 256], 64513: [[1574, 1581], 256], 64514: [[1574, 1605], 256], 64515: [[1574, 1609], 256], 64516: [[1574, 1610], 256], 64517: [[1576, 1580], 256], 64518: [[1576, 1581], 256], 64519: [[1576, 1582], 256], 64520: [[1576, 1605], 256], 64521: [[1576, 1609], 256], 64522: [[1576, 1610], 256], 64523: [[1578, 1580], 256], 64524: [[1578, 1581], 256], 64525: [[1578, 1582], 256], 64526: [[1578, 1605], 256], 64527: [[1578, 1609], 256], 64528: [[1578, 1610], 256], 64529: [[1579, 1580], 256], 64530: [[1579, 1605], 256], 64531: [[1579, 1609], 256], 64532: [[1579, 1610], 256], 64533: [[1580, 1581], 256], 64534: [[1580, 1605], 256], 64535: [[1581, 1580], 256], 64536: [[1581, 1605], 256], 64537: [[1582, 1580], 256], 64538: [[1582, 1581], 256], 64539: [[1582, 1605], 256], 64540: [[1587, 1580], 256], 64541: [[1587, 1581], 256], 64542: [[1587, 1582], 256], 64543: [[1587, 1605], 256], 64544: [[1589, 1581], 256], 64545: [[1589, 1605], 256], 64546: [[1590, 1580], 256], 64547: [[1590, 1581], 256], 64548: [[1590, 1582], 256], 64549: [[1590, 1605], 256], 64550: [[1591, 1581], 256], 64551: [[1591, 1605], 256], 64552: [[1592, 1605], 256], 64553: [[1593, 1580], 256], 64554: [[1593, 1605], 256], 64555: [[1594, 1580], 256], 64556: [[1594, 1605], 256], 64557: [[1601, 1580], 256], 64558: [[1601, 1581], 256], 64559: [[1601, 1582], 256], 64560: [[1601, 1605], 256], 64561: [[1601, 1609], 256], 64562: [[1601, 1610], 256], 64563: [[1602, 1581], 256], 64564: [[1602, 1605], 256], 64565: [[1602, 1609], 256], 64566: [[1602, 1610], 256], 64567: [[1603, 1575], 256], 64568: [[1603, 1580], 256], 64569: [[1603, 1581], 256], 64570: [[1603, 1582], 256], 64571: [[1603, 1604], 256], 64572: [[1603, 1605], 256], 64573: [[1603, 1609], 256], 64574: [[1603, 1610], 256], 64575: [[1604, 1580], 256], 64576: [[1604, 1581], 256], 64577: [[1604, 1582], 256], 64578: [[1604, 1605], 256], 64579: [[1604, 1609], 256], 64580: [[1604, 1610], 256], 64581: [[1605, 1580], 256], 64582: [[1605, 1581], 256], 64583: [[1605, 1582], 256], 64584: [[1605, 1605], 256], 64585: [[1605, 1609], 256], 64586: [[1605, 1610], 256], 64587: [[1606, 1580], 256], 64588: [[1606, 1581], 256], 64589: [[1606, 1582], 256], 64590: [[1606, 1605], 256], 64591: [[1606, 1609], 256], 64592: [[1606, 1610], 256], 64593: [[1607, 1580], 256], 64594: [[1607, 1605], 256], 64595: [[1607, 1609], 256], 64596: [[1607, 1610], 256], 64597: [[1610, 1580], 256], 64598: [[1610, 1581], 256], 64599: [[1610, 1582], 256], 64600: [[1610, 1605], 256], 64601: [[1610, 1609], 256], 64602: [[1610, 1610], 256], 64603: [[1584, 1648], 256], 64604: [[1585, 1648], 256], 64605: [[1609, 1648], 256], 64606: [[32, 1612, 1617], 256], 64607: [[32, 1613, 1617], 256], 64608: [[32, 1614, 1617], 256], 64609: [[32, 1615, 1617], 256], 64610: [[32, 1616, 1617], 256], 64611: [[32, 1617, 1648], 256], 64612: [[1574, 1585], 256], 64613: [[1574, 1586], 256], 64614: [[1574, 1605], 256], 64615: [[1574, 1606], 256], 64616: [[1574, 1609], 256], 64617: [[1574, 1610], 256], 64618: [[1576, 1585], 256], 64619: [[1576, 1586], 256], 64620: [[1576, 1605], 256], 64621: [[1576, 1606], 256], 64622: [[1576, 1609], 256], 64623: [[1576, 1610], 256], 64624: [[1578, 1585], 256], 64625: [[1578, 1586], 256], 64626: [[1578, 1605], 256], 64627: [[1578, 1606], 256], 64628: [[1578, 1609], 256], 64629: [[1578, 1610], 256], 64630: [[1579, 1585], 256], 64631: [[1579, 1586], 256], 64632: [[1579, 1605], 256], 64633: [[1579, 1606], 256], 64634: [[1579, 1609], 256], 64635: [[1579, 1610], 256], 64636: [[1601, 1609], 256], 64637: [[1601, 1610], 256], 64638: [[1602, 1609], 256], 64639: [[1602, 1610], 256], 64640: [[1603, 1575], 256], 64641: [[1603, 1604], 256], 64642: [[1603, 1605], 256], 64643: [[1603, 1609], 256], 64644: [[1603, 1610], 256], 64645: [[1604, 1605], 256], 64646: [[1604, 1609], 256], 64647: [[1604, 1610], 256], 64648: [[1605, 1575], 256], 64649: [[1605, 1605], 256], 64650: [[1606, 1585], 256], 64651: [[1606, 1586], 256], 64652: [[1606, 1605], 256], 64653: [[1606, 1606], 256], 64654: [[1606, 1609], 256], 64655: [[1606, 1610], 256], 64656: [[1609, 1648], 256], 64657: [[1610, 1585], 256], 64658: [[1610, 1586], 256], 64659: [[1610, 1605], 256], 64660: [[1610, 1606], 256], 64661: [[1610, 1609], 256], 64662: [[1610, 1610], 256], 64663: [[1574, 1580], 256], 64664: [[1574, 1581], 256], 64665: [[1574, 1582], 256], 64666: [[1574, 1605], 256], 64667: [[1574, 1607], 256], 64668: [[1576, 1580], 256], 64669: [[1576, 1581], 256], 64670: [[1576, 1582], 256], 64671: [[1576, 1605], 256], 64672: [[1576, 1607], 256], 64673: [[1578, 1580], 256], 64674: [[1578, 1581], 256], 64675: [[1578, 1582], 256], 64676: [[1578, 1605], 256], 64677: [[1578, 1607], 256], 64678: [[1579, 1605], 256], 64679: [[1580, 1581], 256], 64680: [[1580, 1605], 256], 64681: [[1581, 1580], 256], 64682: [[1581, 1605], 256], 64683: [[1582, 1580], 256], 64684: [[1582, 1605], 256], 64685: [[1587, 1580], 256], 64686: [[1587, 1581], 256], 64687: [[1587, 1582], 256], 64688: [[1587, 1605], 256], 64689: [[1589, 1581], 256], 64690: [[1589, 1582], 256], 64691: [[1589, 1605], 256], 64692: [[1590, 1580], 256], 64693: [[1590, 1581], 256], 64694: [[1590, 1582], 256], 64695: [[1590, 1605], 256], 64696: [[1591, 1581], 256], 64697: [[1592, 1605], 256], 64698: [[1593, 1580], 256], 64699: [[1593, 1605], 256], 64700: [[1594, 1580], 256], 64701: [[1594, 1605], 256], 64702: [[1601, 1580], 256], 64703: [[1601, 1581], 256], 64704: [[1601, 1582], 256], 64705: [[1601, 1605], 256], 64706: [[1602, 1581], 256], 64707: [[1602, 1605], 256], 64708: [[1603, 1580], 256], 64709: [[1603, 1581], 256], 64710: [[1603, 1582], 256], 64711: [[1603, 1604], 256], 64712: [[1603, 1605], 256], 64713: [[1604, 1580], 256], 64714: [[1604, 1581], 256], 64715: [[1604, 1582], 256], 64716: [[1604, 1605], 256], 64717: [[1604, 1607], 256], 64718: [[1605, 1580], 256], 64719: [[1605, 1581], 256], 64720: [[1605, 1582], 256], 64721: [[1605, 1605], 256], 64722: [[1606, 1580], 256], 64723: [[1606, 1581], 256], 64724: [[1606, 1582], 256], 64725: [[1606, 1605], 256], 64726: [[1606, 1607], 256], 64727: [[1607, 1580], 256], 64728: [[1607, 1605], 256], 64729: [[1607, 1648], 256], 64730: [[1610, 1580], 256], 64731: [[1610, 1581], 256], 64732: [[1610, 1582], 256], 64733: [[1610, 1605], 256], 64734: [[1610, 1607], 256], 64735: [[1574, 1605], 256], 64736: [[1574, 1607], 256], 64737: [[1576, 1605], 256], 64738: [[1576, 1607], 256], 64739: [[1578, 1605], 256], 64740: [[1578, 1607], 256], 64741: [[1579, 1605], 256], 64742: [[1579, 1607], 256], 64743: [[1587, 1605], 256], 64744: [[1587, 1607], 256], 64745: [[1588, 1605], 256], 64746: [[1588, 1607], 256], 64747: [[1603, 1604], 256], 64748: [[1603, 1605], 256], 64749: [[1604, 1605], 256], 64750: [[1606, 1605], 256], 64751: [[1606, 1607], 256], 64752: [[1610, 1605], 256], 64753: [[1610, 1607], 256], 64754: [[1600, 1614, 1617], 256], 64755: [[1600, 1615, 1617], 256], 64756: [[1600, 1616, 1617], 256], 64757: [[1591, 1609], 256], 64758: [[1591, 1610], 256], 64759: [[1593, 1609], 256], 64760: [[1593, 1610], 256], 64761: [[1594, 1609], 256], 64762: [[1594, 1610], 256], 64763: [[1587, 1609], 256], 64764: [[1587, 1610], 256], 64765: [[1588, 1609], 256], 64766: [[1588, 1610], 256], 64767: [[1581, 1609], 256] },
64768: { 64768: [[1581, 1610], 256], 64769: [[1580, 1609], 256], 64770: [[1580, 1610], 256], 64771: [[1582, 1609], 256], 64772: [[1582, 1610], 256], 64773: [[1589, 1609], 256], 64774: [[1589, 1610], 256], 64775: [[1590, 1609], 256], 64776: [[1590, 1610], 256], 64777: [[1588, 1580], 256], 64778: [[1588, 1581], 256], 64779: [[1588, 1582], 256], 64780: [[1588, 1605], 256], 64781: [[1588, 1585], 256], 64782: [[1587, 1585], 256], 64783: [[1589, 1585], 256], 64784: [[1590, 1585], 256], 64785: [[1591, 1609], 256], 64786: [[1591, 1610], 256], 64787: [[1593, 1609], 256], 64788: [[1593, 1610], 256], 64789: [[1594, 1609], 256], 64790: [[1594, 1610], 256], 64791: [[1587, 1609], 256], 64792: [[1587, 1610], 256], 64793: [[1588, 1609], 256], 64794: [[1588, 1610], 256], 64795: [[1581, 1609], 256], 64796: [[1581, 1610], 256], 64797: [[1580, 1609], 256], 64798: [[1580, 1610], 256], 64799: [[1582, 1609], 256], 64800: [[1582, 1610], 256], 64801: [[1589, 1609], 256], 64802: [[1589, 1610], 256], 64803: [[1590, 1609], 256], 64804: [[1590, 1610], 256], 64805: [[1588, 1580], 256], 64806: [[1588, 1581], 256], 64807: [[1588, 1582], 256], 64808: [[1588, 1605], 256], 64809: [[1588, 1585], 256], 64810: [[1587, 1585], 256], 64811: [[1589, 1585], 256], 64812: [[1590, 1585], 256], 64813: [[1588, 1580], 256], 64814: [[1588, 1581], 256], 64815: [[1588, 1582], 256], 64816: [[1588, 1605], 256], 64817: [[1587, 1607], 256], 64818: [[1588, 1607], 256], 64819: [[1591, 1605], 256], 64820: [[1587, 1580], 256], 64821: [[1587, 1581], 256], 64822: [[1587, 1582], 256], 64823: [[1588, 1580], 256], 64824: [[1588, 1581], 256], 64825: [[1588, 1582], 256], 64826: [[1591, 1605], 256], 64827: [[1592, 1605], 256], 64828: [[1575, 1611], 256], 64829: [[1575, 1611], 256], 64848: [[1578, 1580, 1605], 256], 64849: [[1578, 1581, 1580], 256], 64850: [[1578, 1581, 1580], 256], 64851: [[1578, 1581, 1605], 256], 64852: [[1578, 1582, 1605], 256], 64853: [[1578, 1605, 1580], 256], 64854: [[1578, 1605, 1581], 256], 64855: [[1578, 1605, 1582], 256], 64856: [[1580, 1605, 1581], 256], 64857: [[1580, 1605, 1581], 256], 64858: [[1581, 1605, 1610], 256], 64859: [[1581, 1605, 1609], 256], 64860: [[1587, 1581, 1580], 256], 64861: [[1587, 1580, 1581], 256], 64862: [[1587, 1580, 1609], 256], 64863: [[1587, 1605, 1581], 256], 64864: [[1587, 1605, 1581], 256], 64865: [[1587, 1605, 1580], 256], 64866: [[1587, 1605, 1605], 256], 64867: [[1587, 1605, 1605], 256], 64868: [[1589, 1581, 1581], 256], 64869: [[1589, 1581, 1581], 256], 64870: [[1589, 1605, 1605], 256], 64871: [[1588, 1581, 1605], 256], 64872: [[1588, 1581, 1605], 256], 64873: [[1588, 1580, 1610], 256], 64874: [[1588, 1605, 1582], 256], 64875: [[1588, 1605, 1582], 256], 64876: [[1588, 1605, 1605], 256], 64877: [[1588, 1605, 1605], 256], 64878: [[1590, 1581, 1609], 256], 64879: [[1590, 1582, 1605], 256], 64880: [[1590, 1582, 1605], 256], 64881: [[1591, 1605, 1581], 256], 64882: [[1591, 1605, 1581], 256], 64883: [[1591, 1605, 1605], 256], 64884: [[1591, 1605, 1610], 256], 64885: [[1593, 1580, 1605], 256], 64886: [[1593, 1605, 1605], 256], 64887: [[1593, 1605, 1605], 256], 64888: [[1593, 1605, 1609], 256], 64889: [[1594, 1605, 1605], 256], 64890: [[1594, 1605, 1610], 256], 64891: [[1594, 1605, 1609], 256], 64892: [[1601, 1582, 1605], 256], 64893: [[1601, 1582, 1605], 256], 64894: [[1602, 1605, 1581], 256], 64895: [[1602, 1605, 1605], 256], 64896: [[1604, 1581, 1605], 256], 64897: [[1604, 1581, 1610], 256], 64898: [[1604, 1581, 1609], 256], 64899: [[1604, 1580, 1580], 256], 64900: [[1604, 1580, 1580], 256], 64901: [[1604, 1582, 1605], 256], 64902: [[1604, 1582, 1605], 256], 64903: [[1604, 1605, 1581], 256], 64904: [[1604, 1605, 1581], 256], 64905: [[1605, 1581, 1580], 256], 64906: [[1605, 1581, 1605], 256], 64907: [[1605, 1581, 1610], 256], 64908: [[1605, 1580, 1581], 256], 64909: [[1605, 1580, 1605], 256], 64910: [[1605, 1582, 1580], 256], 64911: [[1605, 1582, 1605], 256], 64914: [[1605, 1580, 1582], 256], 64915: [[1607, 1605, 1580], 256], 64916: [[1607, 1605, 1605], 256], 64917: [[1606, 1581, 1605], 256], 64918: [[1606, 1581, 1609], 256], 64919: [[1606, 1580, 1605], 256], 64920: [[1606, 1580, 1605], 256], 64921: [[1606, 1580, 1609], 256], 64922: [[1606, 1605, 1610], 256], 64923: [[1606, 1605, 1609], 256], 64924: [[1610, 1605, 1605], 256], 64925: [[1610, 1605, 1605], 256], 64926: [[1576, 1582, 1610], 256], 64927: [[1578, 1580, 1610], 256], 64928: [[1578, 1580, 1609], 256], 64929: [[1578, 1582, 1610], 256], 64930: [[1578, 1582, 1609], 256], 64931: [[1578, 1605, 1610], 256], 64932: [[1578, 1605, 1609], 256], 64933: [[1580, 1605, 1610], 256], 64934: [[1580, 1581, 1609], 256], 64935: [[1580, 1605, 1609], 256], 64936: [[1587, 1582, 1609], 256], 64937: [[1589, 1581, 1610], 256], 64938: [[1588, 1581, 1610], 256], 64939: [[1590, 1581, 1610], 256], 64940: [[1604, 1580, 1610], 256], 64941: [[1604, 1605, 1610], 256], 64942: [[1610, 1581, 1610], 256], 64943: [[1610, 1580, 1610], 256], 64944: [[1610, 1605, 1610], 256], 64945: [[1605, 1605, 1610], 256], 64946: [[1602, 1605, 1610], 256], 64947: [[1606, 1581, 1610], 256], 64948: [[1602, 1605, 1581], 256], 64949: [[1604, 1581, 1605], 256], 64950: [[1593, 1605, 1610], 256], 64951: [[1603, 1605, 1610], 256], 64952: [[1606, 1580, 1581], 256], 64953: [[1605, 1582, 1610], 256], 64954: [[1604, 1580, 1605], 256], 64955: [[1603, 1605, 1605], 256], 64956: [[1604, 1580, 1605], 256], 64957: [[1606, 1580, 1581], 256], 64958: [[1580, 1581, 1610], 256], 64959: [[1581, 1580, 1610], 256], 64960: [[1605, 1580, 1610], 256], 64961: [[1601, 1605, 1610], 256], 64962: [[1576, 1581, 1610], 256], 64963: [[1603, 1605, 1605], 256], 64964: [[1593, 1580, 1605], 256], 64965: [[1589, 1605, 1605], 256], 64966: [[1587, 1582, 1610], 256], 64967: [[1606, 1580, 1610], 256], 65008: [[1589, 1604, 1746], 256], 65009: [[1602, 1604, 1746], 256], 65010: [[1575, 1604, 1604, 1607], 256], 65011: [[1575, 1603, 1576, 1585], 256], 65012: [[1605, 1581, 1605, 1583], 256], 65013: [[1589, 1604, 1593, 1605], 256], 65014: [[1585, 1587, 1608, 1604], 256], 65015: [[1593, 1604, 1610, 1607], 256], 65016: [[1608, 1587, 1604, 1605], 256], 65017: [[1589, 1604, 1609], 256], 65018: [[1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 1604, 1610, 1607, 32, 1608, 1587, 1604, 1605], 256], 65019: [[1580, 1604, 32, 1580, 1604, 1575, 1604, 1607], 256], 65020: [[1585, 1740, 1575, 1604], 256] },
65024: { 65040: [[44], 256], 65041: [[12289], 256], 65042: [[12290], 256], 65043: [[58], 256], 65044: [[59], 256], 65045: [[33], 256], 65046: [[63], 256], 65047: [[12310], 256], 65048: [[12311], 256], 65049: [[8230], 256], 65056: [, 230], 65057: [, 230], 65058: [, 230], 65059: [, 230], 65060: [, 230], 65061: [, 230], 65062: [, 230], 65063: [, 220], 65064: [, 220], 65065: [, 220], 65066: [, 220], 65067: [, 220], 65068: [, 220], 65069: [, 220], 65072: [[8229], 256], 65073: [[8212], 256], 65074: [[8211], 256], 65075: [[95], 256], 65076: [[95], 256], 65077: [[40], 256], 65078: [[41], 256], 65079: [[123], 256], 65080: [[125], 256], 65081: [[12308], 256], 65082: [[12309], 256], 65083: [[12304], 256], 65084: [[12305], 256], 65085: [[12298], 256], 65086: [[12299], 256], 65087: [[12296], 256], 65088: [[12297], 256], 65089: [[12300], 256], 65090: [[12301], 256], 65091: [[12302], 256], 65092: [[12303], 256], 65095: [[91], 256], 65096: [[93], 256], 65097: [[8254], 256], 65098: [[8254], 256], 65099: [[8254], 256], 65100: [[8254], 256], 65101: [[95], 256], 65102: [[95], 256], 65103: [[95], 256], 65104: [[44], 256], 65105: [[12289], 256], 65106: [[46], 256], 65108: [[59], 256], 65109: [[58], 256], 65110: [[63], 256], 65111: [[33], 256], 65112: [[8212], 256], 65113: [[40], 256], 65114: [[41], 256], 65115: [[123], 256], 65116: [[125], 256], 65117: [[12308], 256], 65118: [[12309], 256], 65119: [[35], 256], 65120: [[38], 256], 65121: [[42], 256], 65122: [[43], 256], 65123: [[45], 256], 65124: [[60], 256], 65125: [[62], 256], 65126: [[61], 256], 65128: [[92], 256], 65129: [[36], 256], 65130: [[37], 256], 65131: [[64], 256], 65136: [[32, 1611], 256], 65137: [[1600, 1611], 256], 65138: [[32, 1612], 256], 65140: [[32, 1613], 256], 65142: [[32, 1614], 256], 65143: [[1600, 1614], 256], 65144: [[32, 1615], 256], 65145: [[1600, 1615], 256], 65146: [[32, 1616], 256], 65147: [[1600, 1616], 256], 65148: [[32, 1617], 256], 65149: [[1600, 1617], 256], 65150: [[32, 1618], 256], 65151: [[1600, 1618], 256], 65152: [[1569], 256], 65153: [[1570], 256], 65154: [[1570], 256], 65155: [[1571], 256], 65156: [[1571], 256], 65157: [[1572], 256], 65158: [[1572], 256], 65159: [[1573], 256], 65160: [[1573], 256], 65161: [[1574], 256], 65162: [[1574], 256], 65163: [[1574], 256], 65164: [[1574], 256], 65165: [[1575], 256], 65166: [[1575], 256], 65167: [[1576], 256], 65168: [[1576], 256], 65169: [[1576], 256], 65170: [[1576], 256], 65171: [[1577], 256], 65172: [[1577], 256], 65173: [[1578], 256], 65174: [[1578], 256], 65175: [[1578], 256], 65176: [[1578], 256], 65177: [[1579], 256], 65178: [[1579], 256], 65179: [[1579], 256], 65180: [[1579], 256], 65181: [[1580], 256], 65182: [[1580], 256], 65183: [[1580], 256], 65184: [[1580], 256], 65185: [[1581], 256], 65186: [[1581], 256], 65187: [[1581], 256], 65188: [[1581], 256], 65189: [[1582], 256], 65190: [[1582], 256], 65191: [[1582], 256], 65192: [[1582], 256], 65193: [[1583], 256], 65194: [[1583], 256], 65195: [[1584], 256], 65196: [[1584], 256], 65197: [[1585], 256], 65198: [[1585], 256], 65199: [[1586], 256], 65200: [[1586], 256], 65201: [[1587], 256], 65202: [[1587], 256], 65203: [[1587], 256], 65204: [[1587], 256], 65205: [[1588], 256], 65206: [[1588], 256], 65207: [[1588], 256], 65208: [[1588], 256], 65209: [[1589], 256], 65210: [[1589], 256], 65211: [[1589], 256], 65212: [[1589], 256], 65213: [[1590], 256], 65214: [[1590], 256], 65215: [[1590], 256], 65216: [[1590], 256], 65217: [[1591], 256], 65218: [[1591], 256], 65219: [[1591], 256], 65220: [[1591], 256], 65221: [[1592], 256], 65222: [[1592], 256], 65223: [[1592], 256], 65224: [[1592], 256], 65225: [[1593], 256], 65226: [[1593], 256], 65227: [[1593], 256], 65228: [[1593], 256], 65229: [[1594], 256], 65230: [[1594], 256], 65231: [[1594], 256], 65232: [[1594], 256], 65233: [[1601], 256], 65234: [[1601], 256], 65235: [[1601], 256], 65236: [[1601], 256], 65237: [[1602], 256], 65238: [[1602], 256], 65239: [[1602], 256], 65240: [[1602], 256], 65241: [[1603], 256], 65242: [[1603], 256], 65243: [[1603], 256], 65244: [[1603], 256], 65245: [[1604], 256], 65246: [[1604], 256], 65247: [[1604], 256], 65248: [[1604], 256], 65249: [[1605], 256], 65250: [[1605], 256], 65251: [[1605], 256], 65252: [[1605], 256], 65253: [[1606], 256], 65254: [[1606], 256], 65255: [[1606], 256], 65256: [[1606], 256], 65257: [[1607], 256], 65258: [[1607], 256], 65259: [[1607], 256], 65260: [[1607], 256], 65261: [[1608], 256], 65262: [[1608], 256], 65263: [[1609], 256], 65264: [[1609], 256], 65265: [[1610], 256], 65266: [[1610], 256], 65267: [[1610], 256], 65268: [[1610], 256], 65269: [[1604, 1570], 256], 65270: [[1604, 1570], 256], 65271: [[1604, 1571], 256], 65272: [[1604, 1571], 256], 65273: [[1604, 1573], 256], 65274: [[1604, 1573], 256], 65275: [[1604, 1575], 256], 65276: [[1604, 1575], 256] },
65280: { 65281: [[33], 256], 65282: [[34], 256], 65283: [[35], 256], 65284: [[36], 256], 65285: [[37], 256], 65286: [[38], 256], 65287: [[39], 256], 65288: [[40], 256], 65289: [[41], 256], 65290: [[42], 256], 65291: [[43], 256], 65292: [[44], 256], 65293: [[45], 256], 65294: [[46], 256], 65295: [[47], 256], 65296: [[48], 256], 65297: [[49], 256], 65298: [[50], 256], 65299: [[51], 256], 65300: [[52], 256], 65301: [[53], 256], 65302: [[54], 256], 65303: [[55], 256], 65304: [[56], 256], 65305: [[57], 256], 65306: [[58], 256], 65307: [[59], 256], 65308: [[60], 256], 65309: [[61], 256], 65310: [[62], 256], 65311: [[63], 256], 65312: [[64], 256], 65313: [[65], 256], 65314: [[66], 256], 65315: [[67], 256], 65316: [[68], 256], 65317: [[69], 256], 65318: [[70], 256], 65319: [[71], 256], 65320: [[72], 256], 65321: [[73], 256], 65322: [[74], 256], 65323: [[75], 256], 65324: [[76], 256], 65325: [[77], 256], 65326: [[78], 256], 65327: [[79], 256], 65328: [[80], 256], 65329: [[81], 256], 65330: [[82], 256], 65331: [[83], 256], 65332: [[84], 256], 65333: [[85], 256], 65334: [[86], 256], 65335: [[87], 256], 65336: [[88], 256], 65337: [[89], 256], 65338: [[90], 256], 65339: [[91], 256], 65340: [[92], 256], 65341: [[93], 256], 65342: [[94], 256], 65343: [[95], 256], 65344: [[96], 256], 65345: [[97], 256], 65346: [[98], 256], 65347: [[99], 256], 65348: [[100], 256], 65349: [[101], 256], 65350: [[102], 256], 65351: [[103], 256], 65352: [[104], 256], 65353: [[105], 256], 65354: [[106], 256], 65355: [[107], 256], 65356: [[108], 256], 65357: [[109], 256], 65358: [[110], 256], 65359: [[111], 256], 65360: [[112], 256], 65361: [[113], 256], 65362: [[114], 256], 65363: [[115], 256], 65364: [[116], 256], 65365: [[117], 256], 65366: [[118], 256], 65367: [[119], 256], 65368: [[120], 256], 65369: [[121], 256], 65370: [[122], 256], 65371: [[123], 256], 65372: [[124], 256], 65373: [[125], 256], 65374: [[126], 256], 65375: [[10629], 256], 65376: [[10630], 256], 65377: [[12290], 256], 65378: [[12300], 256], 65379: [[12301], 256], 65380: [[12289], 256], 65381: [[12539], 256], 65382: [[12530], 256], 65383: [[12449], 256], 65384: [[12451], 256], 65385: [[12453], 256], 65386: [[12455], 256], 65387: [[12457], 256], 65388: [[12515], 256], 65389: [[12517], 256], 65390: [[12519], 256], 65391: [[12483], 256], 65392: [[12540], 256], 65393: [[12450], 256], 65394: [[12452], 256], 65395: [[12454], 256], 65396: [[12456], 256], 65397: [[12458], 256], 65398: [[12459], 256], 65399: [[12461], 256], 65400: [[12463], 256], 65401: [[12465], 256], 65402: [[12467], 256], 65403: [[12469], 256], 65404: [[12471], 256], 65405: [[12473], 256], 65406: [[12475], 256], 65407: [[12477], 256], 65408: [[12479], 256], 65409: [[12481], 256], 65410: [[12484], 256], 65411: [[12486], 256], 65412: [[12488], 256], 65413: [[12490], 256], 65414: [[12491], 256], 65415: [[12492], 256], 65416: [[12493], 256], 65417: [[12494], 256], 65418: [[12495], 256], 65419: [[12498], 256], 65420: [[12501], 256], 65421: [[12504], 256], 65422: [[12507], 256], 65423: [[12510], 256], 65424: [[12511], 256], 65425: [[12512], 256], 65426: [[12513], 256], 65427: [[12514], 256], 65428: [[12516], 256], 65429: [[12518], 256], 65430: [[12520], 256], 65431: [[12521], 256], 65432: [[12522], 256], 65433: [[12523], 256], 65434: [[12524], 256], 65435: [[12525], 256], 65436: [[12527], 256], 65437: [[12531], 256], 65438: [[12441], 256], 65439: [[12442], 256], 65440: [[12644], 256], 65441: [[12593], 256], 65442: [[12594], 256], 65443: [[12595], 256], 65444: [[12596], 256], 65445: [[12597], 256], 65446: [[12598], 256], 65447: [[12599], 256], 65448: [[12600], 256], 65449: [[12601], 256], 65450: [[12602], 256], 65451: [[12603], 256], 65452: [[12604], 256], 65453: [[12605], 256], 65454: [[12606], 256], 65455: [[12607], 256], 65456: [[12608], 256], 65457: [[12609], 256], 65458: [[12610], 256], 65459: [[12611], 256], 65460: [[12612], 256], 65461: [[12613], 256], 65462: [[12614], 256], 65463: [[12615], 256], 65464: [[12616], 256], 65465: [[12617], 256], 65466: [[12618], 256], 65467: [[12619], 256], 65468: [[12620], 256], 65469: [[12621], 256], 65470: [[12622], 256], 65474: [[12623], 256], 65475: [[12624], 256], 65476: [[12625], 256], 65477: [[12626], 256], 65478: [[12627], 256], 65479: [[12628], 256], 65482: [[12629], 256], 65483: [[12630], 256], 65484: [[12631], 256], 65485: [[12632], 256], 65486: [[12633], 256], 65487: [[12634], 256], 65490: [[12635], 256], 65491: [[12636], 256], 65492: [[12637], 256], 65493: [[12638], 256], 65494: [[12639], 256], 65495: [[12640], 256], 65498: [[12641], 256], 65499: [[12642], 256], 65500: [[12643], 256], 65504: [[162], 256], 65505: [[163], 256], 65506: [[172], 256], 65507: [[175], 256], 65508: [[166], 256], 65509: [[165], 256], 65510: [[8361], 256], 65512: [[9474], 256], 65513: [[8592], 256], 65514: [[8593], 256], 65515: [[8594], 256], 65516: [[8595], 256], 65517: [[9632], 256], 65518: [[9675], 256] }
};
/***** Module to export */
var unorm = {
nfc: nfc,
nfd: nfd,
nfkc: nfkc,
nfkd: nfkd
};
/*globals module:true,define:true*/
// CommonJS
if ((typeof module === "undefined" ? "undefined" : _typeof(module)) === "object") {
module.exports = unorm;
// AMD
} else if (typeof define === "function" && define.amd) {
define("unorm", function () {
return unorm;
});
// Global
} else {
root.unorm = unorm;
}
/***** Export as shim for String::normalize method *****/
/*
http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#november_8_2013_draft_rev_21
21.1.3.12 String.prototype.normalize(form="NFC")
When the normalize method is called with one argument form, the following steps are taken:
1. Let O be CheckObjectCoercible(this value).
2. Let S be ToString(O).
3. ReturnIfAbrupt(S).
4. If form is not provided or undefined let form be "NFC".
5. Let f be ToString(form).
6. ReturnIfAbrupt(f).
7. If f is not one of "NFC", "NFD", "NFKC", or "NFKD", then throw a RangeError Exception.
8. Let ns be the String value is the result of normalizing S into the normalization form named by f as specified in Unicode Standard Annex #15, UnicodeNormalizatoin Forms.
9. Return ns.
The length property of the normalize method is 0.
*NOTE* The normalize function is intentionally generic; it does not require that its this value be a String object. Therefore it can be transferred to other kinds of objects for use as a method.
*/
unorm.shimApplied = false;
if (!String.prototype.normalize) {
String.prototype.normalize = function (form) {
var str = "" + this;
form = form === undefined ? "NFC" : form;
if (form === "NFC") {
return unorm.nfc(str);
} else if (form === "NFD") {
return unorm.nfd(str);
} else if (form === "NFKC") {
return unorm.nfkc(str);
} else if (form === "NFKD") {
return unorm.nfkd(str);
} else {
throw new RangeError("Invalid normalization form: " + form);
}
};
unorm.shimApplied = true;
}
})(undefined);
},{}],340:[function(require,module,exports){
(function (global){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/*! https://mths.be/utf8js v2.1.2 by @mathias */
;(function (root) {
// Detect free variables `exports`
var freeExports = (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) == 'object' && exports;
// Detect free variable `module`
var freeModule = (typeof module === 'undefined' ? 'undefined' : _typeof(module)) == 'object' && module && module.exports == freeExports && module;
// Detect free variable `global`, from Node.js or Browserified code,
// and use it as `root`
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global;
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
root = freeGlobal;
}
/*--------------------------------------------------------------------------*/
var stringFromCharCode = String.fromCharCode;
// Taken from https://mths.be/punycode
function ucs2decode(string) {
var output = [];
var counter = 0;
var length = string.length;
var value;
var extra;
while (counter < length) {
value = string.charCodeAt(counter++);
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
// high surrogate, and there is a next character
extra = string.charCodeAt(counter++);
if ((extra & 0xFC00) == 0xDC00) {
// low surrogate
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
} else {
// unmatched surrogate; only append this code unit, in case the next
// code unit is the high surrogate of a surrogate pair
output.push(value);
counter--;
}
} else {
output.push(value);
}
}
return output;
}
// Taken from https://mths.be/punycode
function ucs2encode(array) {
var length = array.length;
var index = -1;
var value;
var output = '';
while (++index < length) {
value = array[index];
if (value > 0xFFFF) {
value -= 0x10000;
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
value = 0xDC00 | value & 0x3FF;
}
output += stringFromCharCode(value);
}
return output;
}
function checkScalarValue(codePoint) {
if (codePoint >= 0xD800 && codePoint <= 0xDFFF) {
throw Error('Lone surrogate U+' + codePoint.toString(16).toUpperCase() + ' is not a scalar value');
}
}
/*--------------------------------------------------------------------------*/
function createByte(codePoint, shift) {
return stringFromCharCode(codePoint >> shift & 0x3F | 0x80);
}
function encodeCodePoint(codePoint) {
if ((codePoint & 0xFFFFFF80) == 0) {
// 1-byte sequence
return stringFromCharCode(codePoint);
}
var symbol = '';
if ((codePoint & 0xFFFFF800) == 0) {
// 2-byte sequence
symbol = stringFromCharCode(codePoint >> 6 & 0x1F | 0xC0);
} else if ((codePoint & 0xFFFF0000) == 0) {
// 3-byte sequence
checkScalarValue(codePoint);
symbol = stringFromCharCode(codePoint >> 12 & 0x0F | 0xE0);
symbol += createByte(codePoint, 6);
} else if ((codePoint & 0xFFE00000) == 0) {
// 4-byte sequence
symbol = stringFromCharCode(codePoint >> 18 & 0x07 | 0xF0);
symbol += createByte(codePoint, 12);
symbol += createByte(codePoint, 6);
}
symbol += stringFromCharCode(codePoint & 0x3F | 0x80);
return symbol;
}
function utf8encode(string) {
var codePoints = ucs2decode(string);
var length = codePoints.length;
var index = -1;
var codePoint;
var byteString = '';
while (++index < length) {
codePoint = codePoints[index];
byteString += encodeCodePoint(codePoint);
}
return byteString;
}
/*--------------------------------------------------------------------------*/
function readContinuationByte() {
if (byteIndex >= byteCount) {
throw Error('Invalid byte index');
}
var continuationByte = byteArray[byteIndex] & 0xFF;
byteIndex++;
if ((continuationByte & 0xC0) == 0x80) {
return continuationByte & 0x3F;
}
// If we end up here, its not a continuation byte
throw Error('Invalid continuation byte');
}
function decodeSymbol() {
var byte1;
var byte2;
var byte3;
var byte4;
var codePoint;
if (byteIndex > byteCount) {
throw Error('Invalid byte index');
}
if (byteIndex == byteCount) {
return false;
}
// Read first byte
byte1 = byteArray[byteIndex] & 0xFF;
byteIndex++;
// 1-byte sequence (no continuation bytes)
if ((byte1 & 0x80) == 0) {
return byte1;
}
// 2-byte sequence
if ((byte1 & 0xE0) == 0xC0) {
byte2 = readContinuationByte();
codePoint = (byte1 & 0x1F) << 6 | byte2;
if (codePoint >= 0x80) {
return codePoint;
} else {
throw Error('Invalid continuation byte');
}
}
// 3-byte sequence (may include unpaired surrogates)
if ((byte1 & 0xF0) == 0xE0) {
byte2 = readContinuationByte();
byte3 = readContinuationByte();
codePoint = (byte1 & 0x0F) << 12 | byte2 << 6 | byte3;
if (codePoint >= 0x0800) {
checkScalarValue(codePoint);
return codePoint;
} else {
throw Error('Invalid continuation byte');
}
}
// 4-byte sequence
if ((byte1 & 0xF8) == 0xF0) {
byte2 = readContinuationByte();
byte3 = readContinuationByte();
byte4 = readContinuationByte();
codePoint = (byte1 & 0x07) << 0x12 | byte2 << 0x0C | byte3 << 0x06 | byte4;
if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) {
return codePoint;
}
}
throw Error('Invalid UTF-8 detected');
}
var byteArray;
var byteCount;
var byteIndex;
function utf8decode(byteString) {
byteArray = ucs2decode(byteString);
byteCount = byteArray.length;
byteIndex = 0;
var codePoints = [];
var tmp;
while ((tmp = decodeSymbol()) !== false) {
codePoints.push(tmp);
}
return ucs2encode(codePoints);
}
/*--------------------------------------------------------------------------*/
var utf8 = {
'version': '2.1.2',
'encode': utf8encode,
'decode': utf8decode
};
// Some AMD build optimizers, like r.js, check for specific condition patterns
// like the following:
if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) {
define(function () {
return utf8;
});
} else if (freeExports && !freeExports.nodeType) {
if (freeModule) {
// in Node.js or RingoJS v0.8.0+
freeModule.exports = utf8;
} else {
// in Narwhal or RingoJS v0.7.0-
var object = {};
var hasOwnProperty = object.hasOwnProperty;
for (var key in utf8) {
hasOwnProperty.call(utf8, key) && (freeExports[key] = utf8[key]);
}
}
} else {
// in Rhino or a web browser
root.utf8 = utf8;
}
})(undefined);
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],341:[function(require,module,exports){
(function (global){
'use strict';
/**
* Module exports.
*/
module.exports = deprecate;
/**
* Mark that a method should not be used.
* Returns a modified function which warns once by default.
*
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
*
* If `localStorage.throwDeprecation = true` is set, then deprecated functions
* will throw an Error when invoked.
*
* If `localStorage.traceDeprecation = true` is set, then deprecated functions
* will invoke `console.trace()` instead of `console.error()`.
*
* @param {Function} fn - the function to deprecate
* @param {String} msg - the string to print to the console when `fn` is invoked
* @returns {Function} a new "deprecated" version of `fn`
* @api public
*/
function deprecate(fn, msg) {
if (config('noDeprecation')) {
return fn;
}
var warned = false;
function deprecated() {
if (!warned) {
if (config('throwDeprecation')) {
throw new Error(msg);
} else if (config('traceDeprecation')) {
console.trace(msg);
} else {
console.warn(msg);
}
warned = true;
}
return fn.apply(this, arguments);
}
return deprecated;
}
/**
* Checks `localStorage` for boolean values for the given `name`.
*
* @param {String} name
* @returns {Boolean}
* @api private
*/
function config(name) {
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
try {
if (!global.localStorage) return false;
} catch (_) {
return false;
}
var val = global.localStorage[name];
if (null == val) return false;
return String(val).toLowerCase() === 'true';
}
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],342:[function(require,module,exports){
arguments[4][266][0].apply(exports,arguments)
},{"dup":266}],343:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
module.exports = function isBuffer(arg) {
return arg && (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function';
};
},{}],344:[function(require,module,exports){
(function (process,global){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var formatRegExp = /%[sdj%]/g;
exports.format = function (f) {
if (!isString(f)) {
var objects = [];
for (var i = 0; i < arguments.length; i++) {
objects.push(inspect(arguments[i]));
}
return objects.join(' ');
}
var i = 1;
var args = arguments;
var len = args.length;
var str = String(f).replace(formatRegExp, function (x) {
if (x === '%%') return '%';
if (i >= len) return x;
switch (x) {
case '%s':
return String(args[i++]);
case '%d':
return Number(args[i++]);
case '%j':
try {
return JSON.stringify(args[i++]);
} catch (_) {
return '[Circular]';
}
default:
return x;
}
});
for (var x = args[i]; i < len; x = args[++i]) {
if (isNull(x) || !isObject(x)) {
str += ' ' + x;
} else {
str += ' ' + inspect(x);
}
}
return str;
};
// Mark that a method should not be used.
// Returns a modified function which warns once by default.
// If --no-deprecation is set, then it is a no-op.
exports.deprecate = function (fn, msg) {
// Allow for deprecating things in the process of starting up.
if (isUndefined(global.process)) {
return function () {
return exports.deprecate(fn, msg).apply(this, arguments);
};
}
if (process.noDeprecation === true) {
return fn;
}
var warned = false;
function deprecated() {
if (!warned) {
if (process.throwDeprecation) {
throw new Error(msg);
} else if (process.traceDeprecation) {
console.trace(msg);
} else {
console.error(msg);
}
warned = true;
}
return fn.apply(this, arguments);
}
return deprecated;
};
var debugs = {};
var debugEnviron;
exports.debuglog = function (set) {
if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || '';
set = set.toUpperCase();
if (!debugs[set]) {
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
var pid = process.pid;
debugs[set] = function () {
var msg = exports.format.apply(exports, arguments);
console.error('%s %d: %s', set, pid, msg);
};
} else {
debugs[set] = function () {};
}
}
return debugs[set];
};
/**
* Echos the value of a value. Trys to print the value out
* in the best way possible given the different types.
*
* @param {Object} obj The object to print out.
* @param {Object} opts Optional options object that alters the output.
*/
/* legacy: obj, showHidden, depth, colors*/
function inspect(obj, opts) {
// default options
var ctx = {
seen: [],
stylize: stylizeNoColor
};
// legacy...
if (arguments.length >= 3) ctx.depth = arguments[2];
if (arguments.length >= 4) ctx.colors = arguments[3];
if (isBoolean(opts)) {
// legacy...
ctx.showHidden = opts;
} else if (opts) {
// got an "options" object
exports._extend(ctx, opts);
}
// set default options
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
if (isUndefined(ctx.depth)) ctx.depth = 2;
if (isUndefined(ctx.colors)) ctx.colors = false;
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
if (ctx.colors) ctx.stylize = stylizeWithColor;
return formatValue(ctx, obj, ctx.depth);
}
exports.inspect = inspect;
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
inspect.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]
};
// Don't use 'blue' not visible on cmd.exe
inspect.styles = {
'special': 'cyan',
'number': 'yellow',
'boolean': 'yellow',
'undefined': 'grey',
'null': 'bold',
'string': 'green',
'date': 'magenta',
// "name": intentionally not styling
'regexp': 'red'
};
function stylizeWithColor(str, styleType) {
var style = inspect.styles[styleType];
if (style) {
return '\x1B[' + inspect.colors[style][0] + 'm' + str + '\x1B[' + inspect.colors[style][1] + 'm';
} else {
return str;
}
}
function stylizeNoColor(str, styleType) {
return str;
}
function arrayToHash(array) {
var hash = {};
array.forEach(function (val, idx) {
hash[val] = true;
});
return hash;
}
function formatValue(ctx, value, recurseTimes) {
// Provide a hook for user-specified inspect functions.
// Check that value is an object with an inspect function on it
if (ctx.customInspect && value && isFunction(value.inspect) &&
// Filter out the util module, it's inspect function is special
value.inspect !== exports.inspect &&
// Also filter out any prototype objects using the circular check.
!(value.constructor && value.constructor.prototype === value)) {
var ret = value.inspect(recurseTimes, ctx);
if (!isString(ret)) {
ret = formatValue(ctx, ret, recurseTimes);
}
return ret;
}
// Primitive types cannot have properties
var primitive = formatPrimitive(ctx, value);
if (primitive) {
return primitive;
}
// Look up the keys of the object.
var keys = Object.keys(value);
var visibleKeys = arrayToHash(keys);
if (ctx.showHidden) {
keys = Object.getOwnPropertyNames(value);
}
// IE doesn't make error fields non-enumerable
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
return formatError(value);
}
// Some type of object without properties can be shortcutted.
if (keys.length === 0) {
if (isFunction(value)) {
var name = value.name ? ': ' + value.name : '';
return ctx.stylize('[Function' + name + ']', 'special');
}
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
}
if (isDate(value)) {
return ctx.stylize(Date.prototype.toString.call(value), 'date');
}
if (isError(value)) {
return formatError(value);
}
}
var base = '',
array = false,
braces = ['{', '}'];
// Make Array say that they are Array
if (isArray(value)) {
array = true;
braces = ['[', ']'];
}
// Make functions say that they are functions
if (isFunction(value)) {
var n = value.name ? ': ' + value.name : '';
base = ' [Function' + n + ']';
}
// Make RegExps say that they are RegExps
if (isRegExp(value)) {
base = ' ' + RegExp.prototype.toString.call(value);
}
// Make dates with properties first say the date
if (isDate(value)) {
base = ' ' + Date.prototype.toUTCString.call(value);
}
// Make error with message first say the error
if (isError(value)) {
base = ' ' + formatError(value);
}
if (keys.length === 0 && (!array || value.length == 0)) {
return braces[0] + base + braces[1];
}
if (recurseTimes < 0) {
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
} else {
return ctx.stylize('[Object]', 'special');
}
}
ctx.seen.push(value);
var output;
if (array) {
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
} else {
output = keys.map(function (key) {
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
});
}
ctx.seen.pop();
return reduceToSingleString(output, base, braces);
}
function formatPrimitive(ctx, value) {
if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');
if (isString(value)) {
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + '\'';
return ctx.stylize(simple, 'string');
}
if (isNumber(value)) return ctx.stylize('' + value, 'number');
if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');
// For some reason typeof null is "object", so special case here.
if (isNull(value)) return ctx.stylize('null', 'null');
}
function formatError(value) {
return '[' + Error.prototype.toString.call(value) + ']';
}
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
var output = [];
for (var i = 0, l = value.length; i < l; ++i) {
if (hasOwnProperty(value, String(i))) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
} else {
output.push('');
}
}
keys.forEach(function (key) {
if (!key.match(/^\d+$/)) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
}
});
return output;
}
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
var name, str, desc;
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
if (desc.get) {
if (desc.set) {
str = ctx.stylize('[Getter/Setter]', 'special');
} else {
str = ctx.stylize('[Getter]', 'special');
}
} else {
if (desc.set) {
str = ctx.stylize('[Setter]', 'special');
}
}
if (!hasOwnProperty(visibleKeys, key)) {
name = '[' + key + ']';
}
if (!str) {
if (ctx.seen.indexOf(desc.value) < 0) {
if (isNull(recurseTimes)) {
str = formatValue(ctx, desc.value, null);
} else {
str = formatValue(ctx, desc.value, recurseTimes - 1);
}
if (str.indexOf('\n') > -1) {
if (array) {
str = str.split('\n').map(function (line) {
return ' ' + line;
}).join('\n').substr(2);
} else {
str = '\n' + str.split('\n').map(function (line) {
return ' ' + line;
}).join('\n');
}
}
} else {
str = ctx.stylize('[Circular]', 'special');
}
}
if (isUndefined(name)) {
if (array && key.match(/^\d+$/)) {
return str;
}
name = JSON.stringify('' + key);
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
name = name.substr(1, name.length - 2);
name = ctx.stylize(name, 'name');
} else {
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
name = ctx.stylize(name, 'string');
}
}
return name + ': ' + str;
}
function reduceToSingleString(output, base, braces) {
var numLinesEst = 0;
var length = output.reduce(function (prev, cur) {
numLinesEst++;
if (cur.indexOf('\n') >= 0) numLinesEst++;
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
}, 0);
if (length > 60) {
return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1];
}
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
}
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(ar) {
return Array.isArray(ar);
}
exports.isArray = isArray;
function isBoolean(arg) {
return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;
function isNull(arg) {
return arg === null;
}
exports.isNull = isNull;
function isNullOrUndefined(arg) {
return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;
function isNumber(arg) {
return typeof arg === 'number';
}
exports.isNumber = isNumber;
function isString(arg) {
return typeof arg === 'string';
}
exports.isString = isString;
function isSymbol(arg) {
return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol';
}
exports.isSymbol = isSymbol;
function isUndefined(arg) {
return arg === void 0;
}
exports.isUndefined = isUndefined;
function isRegExp(re) {
return isObject(re) && objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;
function isObject(arg) {
return (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg !== null;
}
exports.isObject = isObject;
function isDate(d) {
return isObject(d) && objectToString(d) === '[object Date]';
}
exports.isDate = isDate;
function isError(e) {
return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);
}
exports.isError = isError;
function isFunction(arg) {
return typeof arg === 'function';
}
exports.isFunction = isFunction;
function isPrimitive(arg) {
return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;
exports.isBuffer = require('./support/isBuffer');
function objectToString(o) {
return Object.prototype.toString.call(o);
}
function pad(n) {
return n < 10 ? '0' + n.toString(10) : n.toString(10);
}
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
// 26 Feb 16:19:34
function timestamp() {
var d = new Date();
var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');
return [d.getDate(), months[d.getMonth()], time].join(' ');
}
// log is just a thin wrapper to console.log that prepends a timestamp
exports.log = function () {
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
};
/**
* Inherit the prototype methods from one constructor into another.
*
* The Function.prototype.inherits from lang.js rewritten as a standalone
* function (not on Function.prototype). NOTE: If this file is to be loaded
* during bootstrapping this function needs to be rewritten using some native
* functions as prototype setup using normal JavaScript does not work as
* expected during bootstrapping (see mirror.js in r114903).
*
* @param {function} ctor Constructor function which needs to inherit the
* prototype.
* @param {function} superCtor Constructor function to inherit prototype from.
*/
exports.inherits = require('inherits');
exports._extend = function (origin, add) {
// Don't do anything if add isn't an object
if (!add || !isObject(add)) return origin;
var keys = Object.keys(add);
var i = keys.length;
while (i--) {
origin[keys[i]] = add[keys[i]];
}
return origin;
};
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./support/isBuffer":343,"_process":294,"inherits":342}],345:[function(require,module,exports){
'use strict';
var v1 = require('./v1');
var v4 = require('./v4');
var uuid = v4;
uuid.v1 = v1;
uuid.v4 = v4;
module.exports = uuid;
},{"./v1":348,"./v4":349}],346:[function(require,module,exports){
'use strict';
/**
* Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/
var byteToHex = [];
for (var i = 0; i < 256; ++i) {
byteToHex[i] = (i + 0x100).toString(16).substr(1);
}
function bytesToUuid(buf, offset) {
var i = offset || 0;
var bth = byteToHex;
return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];
}
module.exports = bytesToUuid;
},{}],347:[function(require,module,exports){
(function (global){
"use strict";
// Unique ID creation requires a high quality random # generator. In the
// browser this is a little complicated due to unknown quality of Math.random()
// and inconsistent support for the `crypto` API. We do the best we can via
// feature-detection
var rng;
var crypto = global.crypto || global.msCrypto; // for IE 11
if (crypto && crypto.getRandomValues) {
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
rng = function whatwgRNG() {
crypto.getRandomValues(rnds8);
return rnds8;
};
}
if (!rng) {
// Math.random()-based (RNG)
//
// If all else fails, use Math.random(). It's fast, but is of unspecified
// quality.
var rnds = new Array(16);
rng = function rng() {
for (var i = 0, r; i < 16; i++) {
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
}
return rnds;
};
}
module.exports = rng;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],348:[function(require,module,exports){
'use strict';
var rng = require('./lib/rng');
var bytesToUuid = require('./lib/bytesToUuid');
// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html
// random #'s we need to init node and clockseq
var _seedBytes = rng();
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
var _nodeId = [_seedBytes[0] | 0x01, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]];
// Per 4.2.2, randomize (14 bit) clockseq
var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff;
// Previous uuid creation time
var _lastMSecs = 0,
_lastNSecs = 0;
// See https://github.com/broofa/node-uuid for API details
function v1(options, buf, offset) {
var i = buf && offset || 0;
var b = buf || [];
options = options || {};
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
// Per 4.2.1.2, use count of uuid's generated during the current clock
// cycle to simulate higher resolution clock
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
// Time since last uuid creation (in msecs)
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
// Per 4.2.1.2, Bump clockseq on clock regression
if (dt < 0 && options.clockseq === undefined) {
clockseq = clockseq + 1 & 0x3fff;
}
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
// time interval
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
nsecs = 0;
}
// Per 4.2.1.2 Throw error if too many uuids are requested
if (nsecs >= 10000) {
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
}
_lastMSecs = msecs;
_lastNSecs = nsecs;
_clockseq = clockseq;
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
msecs += 12219292800000;
// `time_low`
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
b[i++] = tl >>> 24 & 0xff;
b[i++] = tl >>> 16 & 0xff;
b[i++] = tl >>> 8 & 0xff;
b[i++] = tl & 0xff;
// `time_mid`
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
b[i++] = tmh >>> 8 & 0xff;
b[i++] = tmh & 0xff;
// `time_high_and_version`
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
b[i++] = tmh >>> 16 & 0xff;
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
b[i++] = clockseq >>> 8 | 0x80;
// `clock_seq_low`
b[i++] = clockseq & 0xff;
// `node`
var node = options.node || _nodeId;
for (var n = 0; n < 6; ++n) {
b[i + n] = node[n];
}
return buf ? buf : bytesToUuid(b);
}
module.exports = v1;
},{"./lib/bytesToUuid":346,"./lib/rng":347}],349:[function(require,module,exports){
'use strict';
var rng = require('./lib/rng');
var bytesToUuid = require('./lib/bytesToUuid');
function v4(options, buf, offset) {
var i = buf && offset || 0;
if (typeof options == 'string') {
buf = options == 'binary' ? new Array(16) : null;
options = null;
}
options = options || {};
var rnds = options.random || (options.rng || rng)();
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = rnds[6] & 0x0f | 0x40;
rnds[8] = rnds[8] & 0x3f | 0x80;
// Copy bytes to buffer, if provided
if (buf) {
for (var ii = 0; ii < 16; ++ii) {
buf[i + ii] = rnds[ii];
}
}
return buf || bytesToUuid(rnds);
}
module.exports = v4;
},{"./lib/bytesToUuid":346,"./lib/rng":347}],350:[function(require,module,exports){
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var indexOf = require('indexof');
var Object_keys = function Object_keys(obj) {
if (Object.keys) return Object.keys(obj);else {
var res = [];
for (var key in obj) {
res.push(key);
}return res;
}
};
var forEach = function forEach(xs, fn) {
if (xs.forEach) return xs.forEach(fn);else for (var i = 0; i < xs.length; i++) {
fn(xs[i], i, xs);
}
};
var defineProp = function () {
try {
Object.defineProperty({}, '_', {});
return function (obj, name, value) {
Object.defineProperty(obj, name, {
writable: true,
enumerable: false,
configurable: true,
value: value
});
};
} catch (e) {
return function (obj, name, value) {
obj[name] = value;
};
}
}();
var globals = ['Array', 'Boolean', 'Date', 'Error', 'EvalError', 'Function', 'Infinity', 'JSON', 'Math', 'NaN', 'Number', 'Object', 'RangeError', 'ReferenceError', 'RegExp', 'String', 'SyntaxError', 'TypeError', 'URIError', 'decodeURI', 'decodeURIComponent', 'encodeURI', 'encodeURIComponent', 'escape', 'eval', 'isFinite', 'isNaN', 'parseFloat', 'parseInt', 'undefined', 'unescape'];
function Context() {}
Context.prototype = {};
var Script = exports.Script = function NodeScript(code) {
if (!(this instanceof Script)) return new Script(code);
this.code = code;
};
Script.prototype.runInContext = function (context) {
if (!(context instanceof Context)) {
throw new TypeError("needs a 'context' argument.");
}
var iframe = document.createElement('iframe');
if (!iframe.style) iframe.style = {};
iframe.style.display = 'none';
document.body.appendChild(iframe);
var win = iframe.contentWindow;
var wEval = win.eval,
wExecScript = win.execScript;
if (!wEval && wExecScript) {
// win.eval() magically appears when this is called in IE:
wExecScript.call(win, 'null');
wEval = win.eval;
}
forEach(Object_keys(context), function (key) {
win[key] = context[key];
});
forEach(globals, function (key) {
if (context[key]) {
win[key] = context[key];
}
});
var winKeys = Object_keys(win);
var res = wEval.call(win, this.code);
forEach(Object_keys(win), function (key) {
// Avoid copying circular objects like `top` and `window` by only
// updating existing context properties or new properties in the `win`
// that was only introduced after the eval.
if (key in context || indexOf(winKeys, key) === -1) {
context[key] = win[key];
}
});
forEach(globals, function (key) {
if (!(key in context)) {
defineProp(context, key, win[key]);
}
});
document.body.removeChild(iframe);
return res;
};
Script.prototype.runInThisContext = function () {
return eval(this.code); // maybe...
};
Script.prototype.runInNewContext = function (context) {
var ctx = Script.createContext(context);
var res = this.runInContext(ctx);
forEach(Object_keys(ctx), function (key) {
context[key] = ctx[key];
});
return res;
};
forEach(Object_keys(Script.prototype), function (name) {
exports[name] = Script[name] = function (code) {
var s = Script(code);
return s[name].apply(s, [].slice.call(arguments, 1));
};
});
exports.createScript = function (code) {
return exports.Script(code);
};
exports.createContext = Script.createContext = function (context) {
var copy = new Context();
if ((typeof context === 'undefined' ? 'undefined' : _typeof(context)) === 'object') {
forEach(Object_keys(context), function (key) {
copy[key] = context[key];
});
}
return copy;
};
},{"indexof":265}],351:[function(require,module,exports){
'use strict';
// Base58 encoding/decoding
// Originally written by Mike Hearn for BitcoinJ
// Copyright (c) 2011 Google Inc
// Ported to JavaScript by Stefan Thomas
// Merged Buffer refactorings from base58-native by Stephen Pair
// Copyright (c) 2013 BitPay Inc
(function (isNode) {
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
var ALPHABET_MAP = {};
for (var i = 0; i < ALPHABET.length; ++i) {
ALPHABET_MAP[ALPHABET.charAt(i)] = i;
}
var BASE = ALPHABET.length;
var base58 = {
decode: function decode(string) {
if (string.length === 0) return [];
var i,
j,
bytes = [0];
for (i = 0; i < string.length; ++i) {
var c = string[i];
if (!(c in ALPHABET_MAP)) throw new Error('Non-base58 character');
for (j = 0; j < bytes.length; ++j) {
bytes[j] *= BASE;
}bytes[0] += ALPHABET_MAP[c];
var carry = 0;
for (j = 0; j < bytes.length; ++j) {
bytes[j] += carry;
carry = bytes[j] >> 8;
bytes[j] &= 0xff;
}
while (carry) {
bytes.push(carry & 0xff);
carry >>= 8;
}
}
// deal with leading zeros
for (i = 0; string[i] === '1' && i < string.length - 1; ++i) {
bytes.push(0);
}return bytes.reverse();
}
};
// export base58 module
if (isNode) {
module.exports = base58;
} else {
if (typeof window.WAValidator === 'undefined') {
window.WAValidator = { __imports: {} };
}
window.WAValidator.__imports.base58 = base58;
}
})(typeof module !== 'undefined' && typeof module.exports !== 'undefined');
},{}],352:[function(require,module,exports){
'use strict';
(function (isNode) {
var jsSHA = isNode ? require('jssha') : window.jsSHA;
function numberToHex(number) {
var hex = Math.round(number).toString(16);
if (hex.length == 1) {
hex = '0' + hex;
}
return hex;
}
var cryptoUtils = {
toHex: function toHex(arrayOfBytes) {
var hex = '';
for (var i = 0; i < arrayOfBytes.length; i++) {
hex += numberToHex(arrayOfBytes[i]);
}
return hex;
},
sha256: function sha256(hexString) {
var sha = new jsSHA(hexString, 'HEX');
return sha.getHash('SHA-256', 'HEX');
}
};
// export cryptoUtils module
if (isNode) {
module.exports = cryptoUtils;
} else {
if (typeof window.WAValidator === 'undefined') {
window.WAValidator = { __imports: {} };
}
window.WAValidator.__imports.cryptoUtils = cryptoUtils;
}
})(typeof module !== 'undefined' && typeof module.exports !== 'undefined');
},{"jssha":270}],353:[function(require,module,exports){
'use strict';
(function (isNode) {
// defines P2PKH and P2SH address types for standard (prod) and testnet networks
var CURRENCIES = [{
name: 'bitcoin',
symbol: 'btc',
addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'litecoin',
symbol: 'ltc',
addressTypes: { prod: ['30', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'peercoin',
symbol: 'ppc',
addressTypes: { prod: ['37', '75'], testnet: ['6f', 'c4'] }
}, {
name: 'dogecoin',
symbol: 'doge',
addressTypes: { prod: ['1e', '16'], testnet: ['71', 'c4'] }
}, {
name: 'beavercoin',
symbol: 'bvc',
addressTypes: { prod: ['19', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'freicoin',
symbol: 'frc',
addressTypes: { prod: ['00', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'protoshares',
symbol: 'pts',
addressTypes: { prod: ['38', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'megacoin',
symbol: 'mec',
addressTypes: { prod: ['32', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'primecoin',
symbol: 'xpm',
addressTypes: { prod: ['17', '53'], testnet: ['6f', 'c4'] }
}, {
name: 'auroracoin',
symbol: 'aur',
addressTypes: { prod: ['17', '05'], testnet: ['6f', 'c4'] }
}, {
name: 'namecoin',
symbol: 'nmc',
addressTypes: { prod: ['34'], testnet: [] }
}, {
name: 'biocoin',
symbol: 'bio',
addressTypes: { prod: ['19', '14'], testnet: ['6f', 'c4'] }
}];
var currencies = {
getByNameOrSymbol: function getByNameOrSymbol(currencyNameOrSymbol) {
var nameOrSymbol = currencyNameOrSymbol.toLowerCase();
for (var i = 0; i < CURRENCIES.length; i++) {
var currency = CURRENCIES[i];
if (currency.name === nameOrSymbol || currency.symbol === nameOrSymbol) {
return currency;
}
}
return null;
}
};
// export currencies module
if (isNode) {
module.exports = currencies;
} else {
if (typeof window.WAValidator === 'undefined') {
window.WAValidator = { __imports: {} };
}
window.WAValidator.__imports.currencies = currencies;
}
})(typeof module !== 'undefined' && typeof module.exports !== 'undefined');
},{}],354:[function(require,module,exports){
'use strict';
(function (isNode) {
var base58, cryptoUtils, currencies;
if (isNode) {
base58 = require('./base58');
cryptoUtils = require('./crypto_utils');
currencies = require('./currencies');
} else {
var imports = window.WAValidator.__imports;
base58 = imports.base58;
cryptoUtils = imports.cryptoUtils;
currencies = imports.currencies;
}
var DEFAULT_CURRENCY_NAME = 'bitcoin',
DEFAULT_NETWORK_TYPE = 'prod';
var WAValidator = {
getAddressType: function getAddressType(address) {
var decoded;
try {
decoded = base58.decode(address);
} catch (e) {
// if decoding fails, assume invalid address
return null;
}
var length = decoded.length;
// should be 25 bytes per btc address spec
if (length != 25) {
return null;
}
var checksum = cryptoUtils.toHex(decoded.slice(length - 4, length)),
body = cryptoUtils.toHex(decoded.slice(0, length - 4)),
goodChecksum = cryptoUtils.sha256(cryptoUtils.sha256(body)).substr(0, 8);
return checksum === goodChecksum ? cryptoUtils.toHex(decoded.slice(0, 1)) : null;
},
validate: function validate(address, currencyNameOrSymbol, networkType) {
currencyNameOrSymbol = currencyNameOrSymbol || DEFAULT_CURRENCY_NAME;
networkType = networkType || DEFAULT_NETWORK_TYPE;
var correctAddressTypes,
currency = currencies.getByNameOrSymbol(currencyNameOrSymbol),
addressType = this.getAddressType(address);
if (networkType === 'prod' || networkType === 'testnet') {
correctAddressTypes = currency.addressTypes[networkType];
} else {
correctAddressTypes = currency.addressTypes.prod.concat(currency.addressTypes.testnet);
}
return correctAddressTypes.indexOf(addressType) >= 0;
}
};
// export WAValidator module
if (isNode) {
module.exports = WAValidator;
} else {
window.WAValidator = WAValidator;
}
})(typeof module !== 'undefined' && typeof module.exports !== 'undefined');
},{"./base58":351,"./crypto_utils":352,"./currencies":353}]},{},[61]);